diff --git a/ui/dist/ui/index.html b/ui/dist/ui/index.html index 326dddbfa..23aab8919 100644 --- a/ui/dist/ui/index.html +++ b/ui/dist/ui/index.html @@ -12,5 +12,5 @@ - + diff --git a/ui/dist/ui/main.e05c00d26c028177.js b/ui/dist/ui/main.e05c00d26c028177.js deleted file mode 100644 index 33988edec..000000000 --- a/ui/dist/ui/main.e05c00d26c028177.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkui=self.webpackChunkui||[]).push([[590],{652:(cd,G,Pe)=>{"use strict";let S=null,U=1;const W=Symbol("SIGNAL");function V(t){const n=S;return S=t,n}function j(t){if((!H(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==U)){if(!t.producerMustRecompute(t)&&!Ne(t))return t.dirty=!1,void(t.lastCleanEpoch=U);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=U}}function Ne(t){ve(t);for(let n=0;n0}function ve(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let he=null;function J(t){return"function"==typeof t}function L(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const O=L(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function K(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class de{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(J(i))try{i()}catch(r){n=r instanceof O?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{je(r)}catch(a){n=n??[],a instanceof O?n=[...n,...a.errors]:n.push(a)}}if(n)throw new O(n)}}add(n){var e;if(n&&n!==this)if(this.closed)je(n);else{if(n instanceof de){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&K(e,n)}remove(n){const{_finalizers:e}=this;e&&K(e,n),n instanceof de&&n._removeParent(this)}}de.EMPTY=(()=>{const t=new de;return t.closed=!0,t})();const Ee=de.EMPTY;function re(t){return t instanceof de||t&&"closed"in t&&J(t.remove)&&J(t.add)&&J(t.unsubscribe)}function je(t){J(t)?t():t.unsubscribe()}const Xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ze={setTimeout(t,n,...e){const{delegate:i}=ze;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=ze;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function dt(t){ze.setTimeout(()=>{const{onUnhandledError:n}=Xe;if(!n)throw t;n(t)})}function ii(){}const Gt=_o("C",void 0,void 0);function _o(t,n,e){return{kind:t,value:n,error:e}}let Do=null;function Ci(t){if(Xe.useDeprecatedSynchronousErrorHandling){const n=!Do;if(n&&(Do={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Do;if(Do=null,e)throw i}}else t()}class xs extends de{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,re(n)&&n.add(this)):this.destination=bc}static create(n,e,i){return new Cs(n,e,i)}next(n){this.isStopped?Kr(function ws(t){return _o("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Kr(function go(t){return _o("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Kr(Gt,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ar=Function.prototype.bind;function gc(t,n){return ar.call(t,n)}class Mg{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){_c(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){_c(i)}else _c(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){_c(e)}}}class Cs extends xs{constructor(n,e,i){let o;if(super(),J(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Xe.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&gc(n.next,r),error:n.error&&gc(n.error,r),complete:n.complete&&gc(n.complete,r)}):o=n}this.destination=new Mg(o)}}function _c(t){Xe.useDeprecatedSynchronousErrorHandling?function fc(t){Xe.useDeprecatedSynchronousErrorHandling&&Do&&(Do.errorThrown=!0,Do.error=t)}(t):dt(t)}function Kr(t,n){const{onStoppedNotification:e}=Xe;e&&ze.setTimeout(()=>e(t,n))}const bc={closed:!0,next:ii,error:function xh(t){throw t},complete:ii},Ig="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ra(t){return t}function kx(t){return 0===t.length?Ra:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let ci=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function zN(t){return t&&t instanceof xs||function jN(t){return t&&J(t.next)&&J(t.error)&&J(t.complete)}(t)&&re(t)}(e)?e:new Cs(e,i,o);return Ci(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Tx(i))((o,r)=>{const a=new Cs({next:s=>{try{e(s)}catch(c){r(c),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Ig](){return this}pipe(...e){return kx(e)(this)}toPromise(e){return new(e=Tx(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function Tx(t){var n;return null!==(n=t??Xe.Promise)&&void 0!==n?n:Promise}const HN=L(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let qe=(()=>{class t extends ci{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Mx(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new HN}next(e){Ci(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Ci(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Ci(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?Ee:(this.currentObservers=null,r.push(e),new de(()=>{this.currentObservers=null,K(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new ci;return e.source=this,e}}return t.create=(n,e)=>new Mx(n,e),t})();class Mx extends qe{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:Ee}}class bt extends qe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Ix(t){return J(t?.lift)}function ji(t){return n=>{if(Ix(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Fi(t,n,e,i,o){return new UN(t,n,e,i,o)}class UN extends xs{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){n.error(c)}}:super._next,this._error=o?function(s){try{o(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function nt(t,n){return ji((e,i)=>{let o=0;e.subscribe(Fi(i,r=>{i.next(t.call(n,r,o++))}))})}const Ex="https://g.co/ng/security#xss";class ue extends Error{constructor(n,e){super(function vc(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function Eg(t){return n=>{setTimeout(t,void 0,n)}}const Re=class $N extends qe{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const c=n;o=c.next?.bind(c),r=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(r=Eg(r),o&&(o=Eg(o)),a&&(a=Eg(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof de&&n.add(s),s}};var Ht=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}(Ht||{});function fn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(fn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Og(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}var Dh=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Dh||{}),sr=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(sr||{});function Zr(t){return{toString:t}.toString()}const li=globalThis,Dr={},Qt=[];function mi(t){for(let n in t)if(t[n]===mi)return n;throw Error("Could not find renamed property on target object.")}function KN(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}const ld=mi({\u0275cmp:mi}),Ag=mi({\u0275dir:mi}),Pg=mi({\u0275pipe:mi}),Px=mi({\u0275mod:mi}),Yr=mi({\u0275fac:mi}),dd=mi({__NG_ELEMENT_ID__:mi}),Rx=mi({__NG_ENV_ID__:mi});var pe=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(pe||{});function Nx(t,n,e){let i=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const r=n.length;if(o+r===i||t.charCodeAt(o+r)<=32)return o}e=o+1}}function Rg(t,n,e){let i=0;for(;in){a=r-1;break}}}for(;rr?"":o[g+1].toLowerCase();const x=8&i?b:null;if(x&&-1!==Nx(x,u,0)||2&i&&u!==b){if(cr(i))return!1;a=!0}}}}else{if(!a&&!cr(i)&&!cr(c))return!1;if(a&&cr(c))continue;a=!1,i=c|1&i}}return cr(i)||a}function cr(t){return 0==(1&t)}function XN(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!cr(a)&&(n+=Hx(r,o),o=""),i=a,r=r||!cr(i);e++}return""!==o&&(n+=Hx(r,o)),n}function Ie(t){return Zr(()=>{const n=$x(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Dh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||sr.Emulated,styles:t.styles||Qt,_:null,schemas:t.schemas||null,tView:null,id:""};Gx(e);const i=t.dependencies;return e.directiveDefs=Sh(i,!1),e.pipeDefs=Sh(i,!0),e.id=function lF(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function aF(t){return jt(t)||gn(t)}function sF(t){return null!==t}function st(t){return Zr(()=>({type:t.type,bootstrap:t.bootstrap||Qt,declarations:t.declarations||Qt,imports:t.imports||Qt,exports:t.exports||Qt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ux(t,n){if(null==t)return Dr;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,a,s=pe.None;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r):(r=o,a=o),n?(e[r]=s!==pe.None?[i,s]:i,n[r]=a):e[r]=i}return e}function Q(t){return Zr(()=>{const n=$x(t);return Gx(n),n})}function bo(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 jt(t){return t[ld]||null}function gn(t){return t[Ag]||null}function Nn(t){return t[Pg]||null}function zn(t,n){const e=t[Px]||null;if(!e&&!0===n)throw new Error(`Type ${fn(t)} does not have '\u0275mod' property.`);return e}function $x(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||Dr,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Qt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ux(t.inputs,n),outputs:Ux(t.outputs),debugInfo:null}}function Gx(t){t.features?.forEach(n=>n(t))}function Sh(t,n){if(!t)return null;const e=n?Nn:aF;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(sF)}const Li=0,He=1,ct=2,Qi=3,lr=4,Hn=5,dr=6,yc=7,Di=8,Un=9,Qr=10,Mt=11,hd=12,Wx=13,wc=14,zi=15,md=16,xc=17,Xr=18,pd=19,qx=20,La=21,kh=22,Ds=23,Et=25,Ng=1,Sr=7,Cc=9,Xi=10;var Fg=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Fg||{});function $n(t){return Array.isArray(t)&&"object"==typeof t[Ng]}function Gn(t){return Array.isArray(t)&&!0===t[Ng]}function Lg(t){return 0!=(4&t.flags)}function Ss(t){return t.componentOffset>-1}function Mh(t){return 1==(1&t.flags)}function ur(t){return!!t.template}function Bg(t){return 0!=(512&t[ct])}const Qx="svg";let Jx=!1;function _i(t){for(;Array.isArray(t);)t=t[Li];return t}function gd(t,n){return _i(n[t])}function eo(t,n){return _i(n[t.index])}function _d(t,n){return t.data[n]}function Dc(t,n){return t[n]}function To(t,n){const e=n[t];return $n(e)?e:e[Li]}function Hg(t){return 128==(128&t[ct])}function kr(t,n){return null==n?null:t[n]}function eC(t){t[xc]=0}function _F(t){1024&t[ct]||(t[ct]|=1024,Hg(t)&&bd(t))}function Ug(t){return!!(9216&t[ct]||t[Ds]?.dirty)}function $g(t){Ug(t)?bd(t):64&t[ct]&&(function mF(){return Jx}()?(t[ct]|=1024,bd(t)):t[Qr].changeDetectionScheduler?.notify())}function bd(t){t[Qr].changeDetectionScheduler?.notify();let n=ks(t);for(;null!==n&&!(8192&n[ct])&&(n[ct]|=8192,Hg(n));)n=ks(n)}function Ih(t,n){if(256==(256&t[ct]))throw new ue(911,!1);null===t[La]&&(t[La]=[]),t[La].push(n)}function ks(t){const n=t[Qi];return Gn(n)?n[Qi]:n}const Ct={lFrame:dC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function nC(){return Ct.bindingsEnabled}function Sc(){return null!==Ct.skipHydrationRootTNode}function fe(){return Ct.lFrame.lView}function Ut(){return Ct.lFrame.tView}function ae(t){return Ct.lFrame.contextLView=t,t[Di]}function se(t){return Ct.lFrame.contextLView=null,t}function pi(){let t=oC();for(;null!==t&&64===t.type;)t=t.parent;return t}function oC(){return Ct.lFrame.currentTNode}function Tr(t,n){const e=Ct.lFrame;e.currentTNode=t,e.isParent=n}function Wg(){return Ct.lFrame.isParent}function qg(){Ct.lFrame.isParent=!1}function to(){const t=Ct.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Jr(){return Ct.lFrame.bindingIndex}function hr(){return Ct.lFrame.bindingIndex++}function ea(t){const n=Ct.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function MF(t,n){const e=Ct.lFrame;e.bindingIndex=e.bindingRootIndex=t,Kg(n)}function Kg(t){Ct.lFrame.currentDirectiveIndex=t}function Zg(t){const n=Ct.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Yg(){return Ct.lFrame.currentQueryIndex}function Eh(t){Ct.lFrame.currentQueryIndex=t}function EF(t){const n=t[He];return 2===n.type?n.declTNode:1===n.type?t[Hn]:null}function cC(t,n,e){if(e&Ht.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&Ht.Host||(o=EF(r),null===o||(r=r[wc],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Ct.lFrame=lC();return i.currentTNode=n,i.lView=t,!0}function Qg(t){const n=lC(),e=t[He];Ct.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function lC(){const t=Ct.lFrame,n=null===t?null:t.child;return null===n?dC(t):n}function dC(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function uC(){const t=Ct.lFrame;return Ct.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const hC=uC;function Xg(){const t=uC();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 Wn(){return Ct.lFrame.selectedIndex}function Ts(t){Ct.lFrame.selectedIndex=t}function Si(){const t=Ct.lFrame;return _d(t.tView,t.selectedIndex)}function Xt(){Ct.lFrame.currentNamespace=Qx}function mr(){!function PF(){Ct.lFrame.currentNamespace=null}()}let pC=!0;function Oh(){return pC}function Ba(t){pC=t}function RF(){return kc(pi(),fe())}function kc(t,n){return new Be(eo(t,n))}let t_,Be=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=RF}return t})();function fC(t){return t instanceof Be?t.nativeElement:t}function Tc(t,n){t.forEach(e=>Array.isArray(e)?Tc(e,n):n(e))}function gC(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ah(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Mo(t,n,e){let i=Mc(t,n);return i>=0?t[1|i]=e:(i=~i,function _C(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function e_(t,n){const e=Mc(t,n);if(e>=0)return t[1|e]}function Mc(t,n){return function bC(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<HF}),HF="ng",CC=new oe(""),ia=new oe("",{providedIn:"platform",factory:()=>"unknown"}),di=new oe(""),n_=new oe("",{providedIn:"root",factory:()=>Va().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),GF=mi({__forward_ref__:mi});function qt(t){return t.__forward_ref__=qt,t.toString=function(){return fn(this())},t}function wt(t){return Vh(t)?t():t}function Vh(t){return"function"==typeof t&&t.hasOwnProperty(GF)&&t.__forward_ref__===qt}function c_(t){return t&&!!t.\u0275providers}function Ot(t){return"string"==typeof t?t:null==t?"":String(t)}function l_(t,n){throw new ue(-201,!1)}let d_;function SC(){return d_}function yo(t){const n=d_;return d_=t,n}function kC(t,n,e){const i=Fh(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Ht.Optional?null:void 0!==n?n:void l_()}const xd={},u_="__NG_DI_FLAG__",jh="ngTempTokenPath",QF=/\n/gm,TC="__source";let Ic;function ja(t){const n=Ic;return Ic=t,n}function e3(t,n=Ht.Default){if(void 0===Ic)throw new ue(-203,!1);return null===Ic?kC(t,void 0,n):Ic.get(t,n&Ht.Optional?null:void 0,n)}function X(t,n=Ht.Default){return(SC()||e3)(wt(t),n)}function we(t,n=Ht.Default){return X(t,zh(n))}function zh(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function h_(t){const n=[];for(let e=0;enull;function y_(t,n,e=!1){return IC(t,n,e)}const Rc="__parameters__";function Fc(t,n,e){return Zr(()=>{const i=function D_(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(c,u,p){const g=c.hasOwnProperty(Rc)?c[Rc]:Object.defineProperty(c,Rc,{value:[]})[Rc];for(;g.length<=p;)g.push(null);return(g[p]=g[p]||[]).push(a),c}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const za=Cd(Fc("Optional"),8),Lc=Cd(Fc("SkipSelf"),4);function Ms(t,n){return t.hasOwnProperty(Yr)?t[Yr]:null}const Is=new oe(""),NC=new oe("",-1),S_=new oe("");class qh{get(n,e=xd){if(e===xd){const i=new Error(`NullInjectorError: No provider for ${fn(n)}!`);throw i.name="NullInjectorError",i}return e}}function g3(...t){return{\u0275providers:FC(0,t),\u0275fromNgModule:!0}}function FC(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return Tc(n,a=>{const s=a;Zh(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&LC(o,r),e}function LC(t,n){for(let e=0;e{n(r,i)})}}function Zh(t,n,e,i){if(!(t=wt(t)))return!1;let o=null,r=Lh(t);const a=!r&&jt(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const c=t.ngModule;if(r=Lh(c),!r)return!1;o=c}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const u of c)Zh(u,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let u;i.add(o);try{Tc(r.imports,p=>{Zh(p,n,e,i)&&(u||=[],u.push(p))})}finally{}void 0!==u&&LC(u,n)}if(!s){const u=Ms(o)||(()=>new o);n({provide:o,useFactory:u,deps:Qt},o),n({provide:S_,useValue:o,multi:!0},o),n({provide:Is,useValue:()=>X(o),multi:!0},o)}const c=r.providers;if(null!=c&&!s){const u=t;k_(c,p=>{n(p,u)})}}}return o!==t&&void 0!==t.providers}function k_(t,n){for(let e of t)c_(e)&&(e=e.\u0275providers),Array.isArray(e)?k_(e,n):n(e)}const _3=mi({provide:String,useValue:mi});function T_(t){return null!==t&&"object"==typeof t&&_3 in t}function Es(t){return"function"==typeof t}const M_=new oe(""),Yh={},v3={};let I_;function Qh(){return void 0===I_&&(I_=new qh),I_}class Io{}class Bc extends Io{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,O_(n,a=>this.processProvider(a)),this.records.set(NC,Vc(void 0,this)),o.has("environment")&&this.records.set(Io,Vc(void 0,this));const r=this.records.get(M_);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(S_,Qt,Ht.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of n)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=ja(this),i=yo(void 0);try{return n()}finally{ja(e),yo(i)}}get(n,e=xd,i=Ht.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Rx))return n[Rx](this);i=zh(i);const r=ja(this),a=yo(void 0);try{if(!(i&Ht.SkipSelf)){let c=this.records.get(n);if(void 0===c){const u=function D3(t){return"function"==typeof t||"object"==typeof t&&t instanceof oe}(n)&&Fh(n);c=u&&this.injectableDefInScope(u)?Vc(E_(n),Yh):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&Ht.Self?Qh():this.parent).get(n,e=i&Ht.Optional&&e===xd?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[jh]=s[jh]||[]).unshift(fn(n)),r)throw s;return function n3(t,n,e,i){const o=t[jh];throw n[TC]&&o.unshift(n[TC]),t.message=function o3(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=fn(n);if(Array.isArray(n))o=n.map(fn).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):fn(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(QF,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[jh]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{yo(a),ja(r)}}resolveInjectorInitializers(){const n=ja(this),e=yo(void 0);try{const o=this.get(Is,Qt,Ht.Self);for(const r of o)r()}finally{ja(n),yo(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(fn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ue(205,!1)}processProvider(n){let e=Es(n=wt(n))?n:wt(n&&n.provide);const i=function w3(t){return T_(t)?Vc(void 0,t.useValue):Vc(jC(t),Yh)}(n);if(!Es(n)&&!0===n.multi){let o=this.records.get(e);o||(o=Vc(void 0,Yh,!0),o.factory=()=>h_(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Yh&&(e.value=v3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function C3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=wt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function E_(t){const n=Fh(t),e=null!==n?n.factory:Ms(t);if(null!==e)return e;if(t instanceof oe)throw new ue(204,!1);if(t instanceof Function)return function y3(t){if(t.length>0)throw new ue(204,!1);const e=function jF(t){return t&&(t[Bh]||t[xC])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ue(204,!1)}function jC(t,n,e){let i;if(Es(t)){const o=wt(t);return Ms(o)||E_(o)}if(T_(t))i=()=>wt(t.useValue);else if(function VC(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...h_(t.deps||[]));else if(function BC(t){return!(!t||!t.useExisting)}(t))i=()=>X(wt(t.useExisting));else{const o=wt(t&&(t.useClass||t.provide));if(!function x3(t){return!!t.deps}(t))return Ms(o)||E_(o);i=()=>new o(...h_(t.deps))}return i}function Vc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function O_(t,n){for(const e of t)Array.isArray(e)?O_(e,n):e&&c_(e)?O_(e.\u0275providers,n):n(e)}function Ha(t,n){t instanceof Bc&&t.assertNotDestroyed();const i=ja(t),o=yo(void 0);try{return n()}finally{ja(i),yo(o)}}class R3{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function HC(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function fi(){return UC}function UC(t){return t.type.prototype.ngOnChanges&&(t.setInput=F3),N3}function N3(){const t=GC(this),n=t?.current;if(n){const e=t.previous;if(e===Dr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function F3(t,n,e,i,o){const r=this.declaredInputs[i],a=GC(t)||function L3(t,n){return t[$C]=n}(t,{previous:Dr,current:null}),s=a.current||(a.current={}),c=a.previous,u=c[r];s[r]=new R3(u&&u.currentValue,e,c===Dr),HC(t,n,o,e)}fi.ngInherit=!0;const $C="__ngSimpleChanges__";function GC(t){return t[$C]||null}const Mr=function(t,n,e){};function Jh(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[c]<0&&(t[xc]+=65536),(s>14>16&&(3&t[ct])===n&&(t[ct]+=16384,qC(s,r)):qC(s,r)}const zc=-1;class Md{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function L_(t){return t!==zc}function Id(t){return 32767&t}function Ed(t,n){let e=function G3(t){return t>>16}(t),i=n;for(;e>0;)i=i[wc],e--;return i}let B_=!0;function im(t){const n=B_;return B_=t,n}const KC=255,ZC=5;let W3=0;const Ir={};function nm(t,n){const e=YC(t,n);if(-1!==e)return e;const i=n[He];i.firstCreatePass&&(t.injectorIndex=n.length,V_(i.data,t),V_(n,null),V_(i.blueprint,null));const o=om(t,n),r=t.injectorIndex;if(L_(o)){const a=Id(o),s=Ed(o,n),c=s[He].data;for(let u=0;u<8;u++)n[r+u]=s[a+u]|c[a+u]}return n[r+8]=o,r}function V_(t,n){t.push(0,0,0,0,0,0,0,0,n)}function YC(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function om(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=o1(o),null===i)return zc;if(e++,o=o[wc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return zc}function j_(t,n,e){!function q3(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(dd)&&(i=e[dd]),null==i&&(i=e[dd]=W3++);const o=i&KC;n.data[t+(o>>ZC)]|=1<=0?n&KC:Q3:n}(e);if("function"==typeof r){if(!cC(n,t,i))return i&Ht.Host?QC(o,0,i):XC(n,e,i,o);try{let a;if(a=r(i),null!=a||i&Ht.Optional)return a;l_()}finally{hC()}}else if("number"==typeof r){let a=null,s=YC(t,n),c=zc,u=i&Ht.Host?n[zi][Hn]:null;for((-1===s||i&Ht.SkipSelf)&&(c=-1===s?om(t,n):n[s+8],c!==zc&&n1(i,!1)?(a=n[He],s=Id(c),n=Ed(c,n)):s=-1);-1!==s;){const p=n[He];if(t1(r,s,p.data)){const g=Z3(s,n,e,a,i,u);if(g!==Ir)return g}c=n[s+8],c!==zc&&n1(i,n[He].data[s+8]===u)&&t1(r,s,n)?(a=p,s=Id(c),n=Ed(c,n)):s=-1}}return o}function Z3(t,n,e,i,o,r){const a=n[He],s=a.data[t+8],p=rm(s,a,e,null==i?Ss(s)&&B_:i!=a&&0!=(3&s.type),o&Ht.Host&&r===s);return null!==p?Os(n,a,p,s):Ir}function rm(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,c=t.directiveStart,p=r>>20,b=o?s+p:t.directiveEnd;for(let x=i?s:s+p;x=c&&T.type===e)return x}if(o){const x=a[c];if(x&&ur(x)&&x.type===e)return c}return null}function Os(t,n,e,i){let o=t[e];const r=n.data;if(function z3(t){return t instanceof Md}(o)){const a=o;a.resolving&&function KF(t,n){throw n&&n.join(" > "),new ue(-200,t)}(function ni(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ot(t)}(r[e]));const s=im(a.canSeeViewProviders);a.resolving=!0;const u=a.injectImpl?yo(a.injectImpl):null;cC(t,i,Ht.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function V3(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=UC(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==u&&yo(u),im(s),a.resolving=!1,hC()}}return o}function t1(t,n,e){return!!(e[n+(t>>ZC)]&1<{const n=t.prototype.constructor,e=n[Yr]||z_(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[Yr]||z_(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function z_(t){return Vh(t)?()=>{const n=z_(wt(t));return n&&n()}:Ms(t)}function o1(t){const n=t[He],e=n.type;return 2===e?n.declTNode:1===e?t[Hn]:null}function io(t){return function K3(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{class t{static#e=this.THROW_IF_NOT_FOUND=xd;static#t=this.NULL=new qh;static create(e,i){if(Array.isArray(e))return l1({name:""},i,e,"");{const o=e.name??"";return l1({name:o},e.parent,e.providers,o)}}static#i=this.\u0275prov=Se({token:t,providedIn:"any",factory:()=>X(NC)});static#n=this.__NG_ELEMENT_ID__=-1}return t})();function U_(t){return t.ngOriginalError}class Ho{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&U_(n);for(;e&&U_(e);)e=U_(e);return e||null}}const h1=new oe("",{providedIn:"root",factory:()=>we(Ho).handleError.bind(void 0)}),p1=new oe("",{providedIn:"root",factory:()=>!1});let cm,lm;function $c(t){return function $_(){if(void 0===cm&&(cm=null,li.trustedTypes))try{cm=li.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return cm}()?.createHTML(t)||t}function G_(){if(void 0===lm&&(lm=null,li.trustedTypes))try{lm=li.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return lm}function f1(t){return G_()?.createHTML(t)||t}function _1(t){return G_()?.createScriptURL(t)||t}class As{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ex})`}}class cL extends As{getTypeName(){return"HTML"}}class lL extends As{getTypeName(){return"Style"}}class dL extends As{getTypeName(){return"Script"}}class uL extends As{getTypeName(){return"URL"}}class hL extends As{getTypeName(){return"ResourceURL"}}function Eo(t){return t instanceof As?t.changingThisBreaksApplicationSecurity:t}function Er(t,n){const e=function mL(t){return t instanceof As&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Ex})`)}return e===n}class vL{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString($c(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class yL{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=$c(n),e}}const xL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function dm(t){return(t=String(t)).match(xL)?t:"unsafe:"+t}function na(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Od(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const v1=na("area,br,col,hr,img,wbr"),y1=na("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),w1=na("rp,rt"),W_=Od(v1,Od(y1,na("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")),Od(w1,na("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")),Od(w1,y1)),q_=na("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),x1=Od(q_,na("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"),na("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")),CL=na("script,style,template");class DL{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)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(n){const e=n.nodeName.toLowerCase();if(!W_.hasOwnProperty(e))return this.sanitizedSomething=!0,!CL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=n.nodeName.toLowerCase();W_.hasOwnProperty(e)&&!v1.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(C1(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const SL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kL=/([^\#-~ |!])/g;function C1(t){return t.replace(/&/g,"&").replace(SL,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(kL,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let um;function D1(t,n){let e=null;try{um=um||function b1(t){const n=new yL(t);return function wL(){try{return!!(new window.DOMParser).parseFromString($c(""),"text/html")}catch{return!1}}()?new vL(n):n}(t);let i=n?String(n):"";e=um.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=um.getInertBodyElement(i)}while(i!==r);return $c((new DL).sanitizeChildren(K_(e)||e))}finally{if(e){const i=K_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function K_(t){return"content"in t&&function TL(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Fn=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}(Fn||{});function S1(t){const n=Ad();return n?f1(n.sanitize(Fn.HTML,t)||""):Er(t,"HTML")?f1(Eo(t)):D1(Va(),Ot(t))}function Uo(t){const n=Ad();return n?n.sanitize(Fn.URL,t)||"":Er(t,"URL")?Eo(t):dm(Ot(t))}function k1(t){const n=Ad();if(n)return _1(n.sanitize(Fn.RESOURCE_URL,t)||"");if(Er(t,"ResourceURL"))return _1(Eo(t));throw new ue(904,!1)}function Ad(){const t=fe();return t&&t[Qr].sanitizer}const PL=/^>|^->||--!>|)/g,NL="\u200b$1\u200b";const Z_=new Map;let jL=0;const Q_="__ngContext__";function qn(t,n){$n(n)?(t[Q_]=n[pd],function HL(t){Z_.set(t[pd],t)}(n)):t[Q_]=n}function Oo(t){return t instanceof Function?t():t}var $a=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}($a||{});let tb;function ib(t,n){return tb(t,n)}function Wc(t,n,e,i,o){if(null!=i){let r,a=!1;Gn(i)?r=i:$n(i)&&(a=!0,i=i[Li]);const s=_i(i);0===t&&null!==e?null==o?W1(n,e,s):Ps(n,e,s,o||null,!0):1===t&&null!==e?Ps(n,e,s,o||null,!0):2===t?function vm(t,n,e){const i=_m(t,n);i&&function u4(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function p4(t,n,e,i,o){const r=e[Sr];r!==_i(e)&&Wc(n,t,i,r,o);for(let s=Xi;sn.replace(RL,NL))}(n))}function fm(t,n,e){return t.createElement(n,e)}function U1(t,n){ym(t,n,n[Mt],2,null,null)}function $1(t,n){const e=t[Cc],i=e.indexOf(n);e.splice(i,1)}function Rd(t,n){if(t.length<=Xi)return;const e=Xi+n,i=t[e];if(i){const o=i[md];null!==o&&o!==t&&$1(o,i),n>0&&(t[e-1][lr]=i[lr]);const r=Ah(t,Xi+n);!function o4(t,n){U1(t,n),n[Li]=null,n[Hn]=null}(i[He],i);const a=r[Xr];null!==a&&a.detachView(r[He]),i[Qi]=null,i[lr]=null,i[ct]&=-129}return i}function gm(t,n){if(!(256&n[ct])){const e=n[Mt];e.destroyNode&&ym(t,n,e,3,null,null),function a4(t){let n=t[hd];if(!n)return ob(t[He],t);for(;n;){let e=null;if($n(n))e=n[hd];else{const i=n[Xi];i&&(e=i)}if(!e){for(;n&&!n[lr]&&n!==t;)$n(n)&&ob(n[He],n),n=n[Qi];null===n&&(n=t),$n(n)&&ob(n[He],n),e=n&&n[lr]}n=e}}(n)}}function ob(t,n){if(!(256&n[ct])){n[ct]&=-129,n[ct]|=256,n[Ds]&&function _e(t){if(ve(t),H(t))for(let n=0;n=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[yc]=null);const o=n[La];if(null!==o){n[La]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===sr.None||r===sr.Emulated)return null}return eo(i,e)}}(t,n.parent,e)}function Ps(t,n,e,i,o){t.insertBefore(n,e,i,o)}function W1(t,n,e){t.appendChild(n,e)}function q1(t,n,e,i,o){null!==i?Ps(t,n,e,i,o):W1(t,n,e)}function _m(t,n){return t.parentNode(n)}function K1(t,n,e){return Y1(t,n,e)}let ab,Y1=function Z1(t,n,e){return 40&t.type?eo(t,e):null};function bm(t,n,e,i){const o=rb(t,i,n),r=n[Mt],s=K1(i.parent||n[Hn],i,n);if(null!=o)if(Array.isArray(e))for(let c=0;cEt&&nD(t,n,Et,!1),Mr(a?2:0,o),e(i,o)}finally{Ts(r),Mr(a?3:1,o)}}function db(t,n,e){if(Lg(n)){const i=V(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function cD(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];if(void 0===a)continue;i??={};let s,c=pe.None;Array.isArray(a)?(s=a[0],c=a[1]):s=a;let u=r;if(null!==o){if(!o.hasOwnProperty(r))continue;u=o[r]}0===t?lD(i,e,u,s,c):lD(i,e,u,s)}return i}function lD(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function xo(t,n,e,i,o,r,a,s){const c=eo(n,e);let p,u=n.inputs;!s&&null!=u&&(p=u[i])?(bb(t,e,p,i,o),Ss(n)&&function T4(t,n){const e=To(n,t);16&e[ct]||(e[ct]|=64)}(e,n.index)):3&n.type&&(i=function k4(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(c,i,o))}function pb(t,n,e,i){if(nC()){const o=null===i?null:{"":-1},r=function P4(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,Fd(t,e,o.hostVars,Pt),o)}function Ar(t,n,e,i,o,r){const a=eo(t,n);!function gb(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?Ot(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[Mt],a,r,t.value,e,i,o)}function V4(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s0&&(e[o-1][lr]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{bd(t.lView)},consumerOnSignalRead(){this.lView[Ds]=this}};function yD(t){return xD(t[hd])}function wD(t){return xD(t[lr])}function xD(t){for(;null!==t&&!Gn(t);)t=t[lr];return t}function Dm(t,n=!0,e=0){const i=t[Qr],o=i.rendererFactory;o.begin?.();try{!function Y4(t,n){wb(t,n);let e=0;for(;Ug(t);){if(100===e)throw new ue(103,!1);e++,wb(t,1)}}(t,e)}catch(a){throw n&&Cm(t,a),a}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function Q4(t,n,e,i){const o=n[ct];if(256==(256&o))return;n[Qr].inlineEffectRunner?.flush(),Qg(n);let a=null,s=null;(function X4(t){return 2!==t.type})(t)&&(s=function $4(t){return t[Ds]??function G4(t){const n=vD.pop()??Object.create(q4);return n.lView=t,n}(t)}(n),a=function Te(t){return t&&(t.nextProducerIndex=0),V(t)}(s));try{eC(n),function aC(t){return Ct.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&rD(t,n,e,2,i);const c=3==(3&o);if(c){const g=t.preOrderCheckHooks;null!==g&&em(n,g,null)}else{const g=t.preOrderHooks;null!==g&&tm(n,g,0,null),N_(n,0)}if(function J4(t){for(let n=yD(t);null!==n;n=wD(n)){if(!(n[ct]&Fg.HasTransplantedViews))continue;const e=n[Cc];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(s,a),function W4(t){t.lView[Ds]!==t&&(t.lView=null,vD.push(t))}(s)),Xg()}}function DD(t,n){for(let e=yD(t);null!==e;e=wD(e))for(let i=Xi;i-1&&(Rd(n,i),Ah(e,i))}this._attachedToViewContainer=!1}gm(this._lView[He],this._lView)}onDestroy(n){Ih(this._lView,n)}markForCheck(){jd(this._cdRefInjectingView||this._lView)}detach(){this._lView[ct]&=-129}reattach(){$g(this._lView),this._lView[ct]|=128}detectChanges(){this._lView[ct]|=1024,Dm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,U1(this._lView[He],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=n,$g(this._lView)}}let gi=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=o5}return t})();const t5=gi,n5=class extends t5{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=function Ld(t,n,e,i){const o=n.tView,s=wm(t,o,e,4096&t[ct]?4096:16,null,n,null,null,null,i?.injector??null,i?.dehydratedView??null);s[md]=t[n.index];const u=t[Xr];return null!==u&&(s[Xr]=u.createEmbeddedView(o)),vb(o,s,e),s}(this._declarationLView,this._declarationTContainer,n,{injector:e,dehydratedView:i});return new zd(o)}};function o5(){return Sm(pi(),fe())}function Sm(t,n){return 4&t.type?new n5(n,t,kc(t,n)):null}class Tb{}class k5{}class PD{}class M5{resolveComponentFactory(n){throw function T5(t){const n=Error(`No component factory found for ${fn(t)}.`);return n.ngComponent=t,n}(n)}}let Rs=(()=>{class t{static#e=this.NULL=new M5}return t})();class Mb{}let ra=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function I5(){const t=fe(),e=To(pi().index,t);return($n(e)?e:t)[Mt]}()}return t})(),E5=(()=>{class t{static#e=this.\u0275prov=Se({token:t,providedIn:"root",factory:()=>null})}return t})();const Ib={};function FD(t){return function ND(t){return"function"==typeof t&&void 0!==t[W]}(t)&&"function"==typeof t.set}function LD(t){const n=V(null);try{return t()}finally{V(n)}}function Em(t){return!!Eb(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Eb(t){return null!==t&&("function"==typeof t||"object"==typeof t)}class BD{constructor(){}supports(n){return Em(n)}create(n){return new F5(n)}}const N5=(t,n)=>n;class F5{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||N5}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new L5(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new VD),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new VD),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class L5{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class B5{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class VD{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new B5,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jD(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new j5(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class j5{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function HD(){return new pr([new BD])}let pr=(()=>{class t{static#e=this.\u0275prov=Se({token:t,providedIn:"root",factory:HD});constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||HD()),deps:[[t,new Lc,new za]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new ue(901,!1)}}return t})();function UD(){return new Om([new zD])}let Om=(()=>{class t{static#e=this.\u0275prov=Se({token:t,providedIn:"root",factory:UD});constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||UD()),deps:[[t,new Lc,new za]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new ue(901,!1)}}return t})(),Ft=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=H5}return t})();function H5(t){return function U5(t,n,e){if(Ss(t)&&!e){const i=To(t.index,n);return new zd(i,i)}return 47&t.type?new zd(n[zi],n):null}(pi(),fe(),16==(16&t))}let Am=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=q5;static#t=this.__NG_ENV_ID__=e=>e}return t})();class W5 extends Am{constructor(n){super(),this._lView=n}onDestroy(n){return Ih(this._lView,n),()=>function Gg(t,n){if(null===t[La])return;const e=t[La].indexOf(n);-1!==e&&t[La].splice(e,1)}(this._lView,n)}}function q5(){return new W5(fe())}const $D=new Set;function Ns(t){$D.has(t)||($D.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function GD(...t){}class We{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Re(!1),this.onMicrotaskEmpty=new Re(!1),this.onStable=new Re(!1),this.onError=new Re(!1),typeof Zone>"u")throw new ue(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)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function J5(){const t="function"==typeof li.requestAnimationFrame;let n=li[t?"requestAnimationFrame":"setTimeout"],e=li[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function iB(t){const n=()=>{!function tB(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(li,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ab(t),t.isCheckStableRunning=!0,Ob(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ab(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function nB(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return WD(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),qD(t)}},onInvoke:(e,i,o,r,a,s,c)=>{try{return WD(t),e.invoke(o,r,a,s,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),qD(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Ab(t),Ob(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!We.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(We.isInAngularZone())throw new ue(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,eB,GD,GD);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const eB={};function Ob(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 Ab(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function WD(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function qD(t){t._nesting--,Ob(t)}class KD{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Re,this.onMicrotaskEmpty=new Re,this.onStable=new Re,this.onError=new Re}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}var Fs=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Fs||{});const ZD={destroy(){}};function QD(t,n){!n&&function A_(t){if(!SC()&&!function JF(){return Ic}())throw new ue(-203,!1)}();const e=n?.injector??we(Bi);if(!function Ua(t){return"browser"===(t??we(Bi)).get(ia)}(e))return ZD;Ns("NgAfterNextRender");const i=e.get(Wd),o=i.handler??=new JD,r=n?.phase??Fs.MixedReadWrite,a=()=>{o.unregister(c),s()},s=e.get(Am).onDestroy(a),c=new XD(e,r,()=>{a(),t()});return o.register(c),{destroy:a}}class XD{constructor(n,e,i){this.phase=e,this.callbackFn=i,this.zone=n.get(We),this.errorHandler=n.get(Ho,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class JD{constructor(){this.executingCallbacks=!1,this.buckets={[Fs.EarlyRead]:new Set,[Fs.Write]:new Set,[Fs.MixedReadWrite]:new Set,[Fs.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Wd=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i();this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Se({token:t,providedIn:"root",factory:()=>new t})}return t})();function Rm(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0&&tD(t,e,r.join(" "))}}(b,pt,T,i),void 0!==e&&function gB(t,n,e){const i=t.projection=[];for(let o=0;o{class t{static#e=this.__NG_ELEMENT_ID__=bB}return t})();function bB(){return aS(pi(),fe())}const vB=bi,oS=class extends vB{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return kc(this._hostTNode,this._hostLView)}get injector(){return new bn(this._hostTNode,this._hostLView)}get parentInjector(){const n=om(this._hostTNode,this._hostLView);if(L_(n)){const e=Ed(n,this._hostLView),i=Id(n);return new bn(e[He].data[i+8],e)}return new bn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=rS(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Xi}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const s=n.createEmbeddedViewImpl(e||{},r,null);return this.insertImpl(s,o,Kc(this._hostTNode,null)),s}createComponent(n,e,i,o,r){const a=n&&!function Td(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const T=e||{};s=T.index,i=T.injector,o=T.projectableNodes,r=T.environmentInjector||T.ngModuleRef}const c=a?n:new Zd(jt(n)),u=i||this.parentInjector;if(!r&&null==c.ngModule){const I=(a?u:this.parentInjector).get(Io,null);I&&(r=I)}jt(c.componentType??{});const x=c.create(u,o,null,r);return this.insertImpl(x.hostView,s,Kc(this._hostTNode,null)),x}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function gF(t){return Gn(t[Qi])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const c=o[Qi],u=new oS(c,c[Hn],c[Qi]);u.detach(u.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;return Bd(a,o,r,i),n.attachToViewContainerRef(),gC(Nb(a),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=rS(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Rd(this._lContainer,e);i&&(Ah(Nb(this._lContainer),e),gm(i[He],i))}detach(n){const e=this._adjustIndex(n,-1),i=Rd(this._lContainer,e);return i&&null!=Ah(Nb(this._lContainer),e)?new zd(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function rS(t){return t[8]}function Nb(t){return t[8]||(t[8]=[])}function aS(t,n){let e;const i=n[t.index];return Gn(i)?e=i:(e=hD(i,n,null,t),n[t.index]=e,xm(n,e)),sS(e,n,t,i),new oS(e,t,n)}let sS=function lS(t,n,e,i){if(t[Sr])return;let o;o=8&e.type?_i(i):function yB(t,n){const e=t[Mt],i=e.createComment(""),o=eo(n,t);return Ps(e,_m(e,o),i,function h4(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[Sr]=o},Fb=()=>!1;class Lb{constructor(n){this.queryList=n,this.matches=null}clone(){return new Lb(this.queryList)}setDirty(){this.queryList.setDirty()}}class Bb{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;rn.trim())}(n):n}}class Vb{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(a[s/2]);else{const u=r[s+1],p=n[-c];for(let g=Xi;g=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=ud(o.hostAttrs,e=ud(e,o.hostAttrs))}}(i)}function VB(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function Fm(t){return t===Dr?{}:t===Qt?[]:t}function zB(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function HB(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function UB(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function OS(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[3]&&(e[i]=o[3])}t.inputTransforms=e}class Ls{}class AS{}class Gb extends Ls{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new iS(this);const o=zn(n);this._bootstrapComponents=Oo(o.bootstrap),this._r3Injector=d1(n,e,[{provide:Ls,useValue:this},{provide:Rs,useValue:this.componentFactoryResolver},...i],fn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Wb extends AS{constructor(n){super(),this.moduleType=n}create(n){return new Gb(this.moduleType,n,[])}}class PS extends Ls{constructor(n){super(),this.componentFactoryResolver=new iS(this),this.instance=null;const e=new Bc([...n.providers,{provide:Ls,useValue:this},{provide:Rs,useValue:this.componentFactoryResolver}],n.parent||Qh(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function qb(t,n,e=null){return new PS({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let Bs=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new bt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pr(t,n,e){return t[n]=e}function Qd(t,n){return t[n]}function Ji(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Vs(t,n,e,i){const o=Ji(t,n,e);return Ji(t,n+1,i)||o}function Bm(t,n,e,i,o){const r=Vs(t,n,e,i);return Ji(t,n+2,o)||r}function $o(t,n,e,i,o,r){const a=Vs(t,n,e,i);return Vs(t,n+2,o,r)||a}function y(t,n,e,i,o,r,a,s){const c=fe(),u=Ut(),p=t+Et,g=u.firstCreatePass?function XB(t,n,e,i,o,r,a,s,c){const u=n.consts,p=qc(n,t,4,a||null,kr(u,s));pb(n,e,p,kr(u,c)),Jh(n,p);const g=p.tView=mb(2,p,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u,null);return null!==n.queries&&(n.queries.template(n,p),g.queries=n.queries.embeddedTView(p)),p}(p,u,c,n,e,i,o,r,a):u.data[p];Tr(g,!1);const b=RS(u,c,g,t);Oh()&&bm(u,c,b,g),qn(b,c);const x=hD(b,c,b,g);return c[p]=x,xm(c,x),function cS(t,n,e){return Fb(t,n,e)}(x,g,c),Mh(g)&&ub(u,c,g),null!=a&&hb(c,g,s),y}let RS=function NS(t,n,e,i){return Ba(!0),n[Mt].createComment("")};function Je(t,n,e,i){const o=fe();return Ji(o,hr(),n)&&(Ut(),Ar(Si(),o,t,n,e,i)),Je}function ol(t,n,e,i){return Ji(t,hr(),e)?n+Ot(e)+i:Pt}function $m(t,n){return t<<17|n<<2}function Ka(t){return t>>17&32767}function nv(t){return 2|t}function zs(t){return(131068&t)>>2}function ov(t,n){return-131069&t|n<<2}function rv(t){return 1|t}function hk(t,n,e,i){const o=t[e+1],r=null===n;let a=i?Ka(o):zs(o),s=!1;for(;0!==a&&(!1===s||r);){const u=t[a+1];F6(t[a],n)&&(s=!0,t[a+1]=i?rv(u):nv(u)),a=i?Ka(u):zs(u)}s&&(t[e+1]=i?nv(o):rv(o))}function F6(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Mc(t,n)>=0}const vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function mk(t){return t.substring(vn.key,vn.keyEnd)}function pk(t,n){const e=vn.textEnd;return e===n?-1:(n=vn.keyEnd=function j6(t,n,e){for(;n32;)n++;return n}(t,vn.key=n,e),hl(t,n,e))}function hl(t,n,e){for(;n=0;e=pk(n,e))Mo(t,mk(n),!0)}function fr(t,n,e,i){const o=fe(),r=Ut(),a=ea(2);r.firstUpdatePass&&yk(r,t,a,i),n!==Pt&&Ji(o,a,n)&&xk(r,r.data[Wn()],o,o[Mt],t,o[a+1]=function X6(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=fn(Eo(t)))),t}(n,e),i,a)}function vk(t,n){return n>=t.expandoStartIndex}function yk(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[Wn()],a=vk(t,e);Dk(r,i)&&null===n&&!a&&(n=!1),n=function G6(t,n,e,i){const o=Zg(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=tu(e=sv(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=sv(o,t,n,e,i),null===r){let c=function W6(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==zs(i))return t[Ka(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=sv(null,t,n,c[1],i),c=tu(c,n.attrs,i),function q6(t,n,e,i){t[Ka(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else r=function K6(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(u=!0)):p=e,o)if(0!==c){const b=Ka(t[s+1]);t[i+1]=$m(b,s),0!==b&&(t[b+1]=ov(t[b+1],i)),t[s+1]=function A6(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=$m(s,0),0!==s&&(t[s+1]=ov(t[s+1],i)),s=i;else t[i+1]=$m(c,0),0===s?s=i:t[c+1]=ov(t[c+1],i),c=i;u&&(t[i+1]=nv(t[i+1])),hk(t,p,i,!0),hk(t,p,i,!1),function N6(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Mc(r,n)>=0&&(e[i+1]=rv(e[i+1]))}(n,p,t,i,r),a=$m(s,c),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function sv(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const c=t[o],u=Array.isArray(c),p=u?c[1]:c,g=null===p;let b=e[o+1];b===Pt&&(b=g?Qt:void 0);let x=g?e_(b,i):p===i?b:void 0;if(u&&!Gm(x)&&(x=e_(c,i)),Gm(x)&&(s=x,a))return s;const T=t[o+1];o=a?Ka(T):zs(T)}if(null!==n){let c=r?n.residualClasses:n.residualStyles;null!=c&&(s=e_(c,i))}return s}function Gm(t){return void 0!==t}function Dk(t,n){return 0!=(t.flags&(n?8:16))}function Sk(t,n,e){!function gr(t,n,e,i){const o=Ut(),r=ea(2);o.firstUpdatePass&&yk(o,null,r,i);const a=fe();if(e!==Pt&&Ji(a,r,e)){const s=o.data[Wn()];if(Dk(s,i)&&!vk(o,r)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=Og(c,e||"")),av(o,s,a,e,i)}else!function Q6(t,n,e,i,o,r,a,s){o===Pt&&(o=Qt);let c=0,u=0,p=0(Ba(!0),fm(i,o,function mC(){return Ct.lFrame.currentNamespace}()));function Ce(t,n,e){const i=fe(),o=Ut(),r=t+Et,a=o.firstCreatePass?function C8(t,n,e,i,o){const r=n.consts,a=kr(r,i),s=qc(n,t,8,"ng-container",a);return null!==a&&Rm(s,a,!0),pb(n,e,s,kr(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];Tr(a,!0);const s=Ek(o,i,a,t);return i[r]=s,Oh()&&bm(o,i,s,a),qn(s,i),Mh(a)&&(ub(o,i,a),db(o,a,i)),null!=e&&hb(i,a),Ce}function De(){let t=pi();const n=Ut();return Wg()?qg():(t=t.parent,Tr(t,!1)),n.firstCreatePass&&(Jh(n,t),Lg(t)&&n.queries.elementEnd(t)),De}function no(t,n,e){return Ce(t,n,e),De(),no}let Ek=(t,n,e,i)=>(Ba(!0),nb(n[Mt],""));function ge(){return fe()}function oo(t,n,e){const i=fe();return Ji(i,hr(),n)&&xo(Ut(),Si(),i,t,n,i[Mt],e,!0),oo}function Wm(t,n,e){const i=fe();if(Ji(i,hr(),n)){const r=Ut(),a=Si();xo(r,a,i,t,n,gD(Zg(r.data),a,i),e,!0)}return Wm}const pl="en-US";let Pk=pl;function N(t,n,e,i){const o=fe(),r=Ut(),a=pi();return pv(r,o,o[Mt],a,t,n,i),N}function Qm(t,n){const e=pi(),i=fe(),o=Ut();return pv(o,i,gD(Zg(o.data),e,i),e,t,n),Qm}function pv(t,n,e,i,o,r,a){const s=Mh(i),u=t.firstCreatePass&&fD(t),p=n[Di],g=pD(n);let b=!0;if(3&i.type||a){const I=eo(i,n),z=a?a(I):I,ie=g.length,ne=a?tt=>a(_i(tt[i.index])):i.index;let Ue=null;if(!a&&s&&(Ue=function xV(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rc?s[c]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==Ue)(Ue.__ngLastListenerFn__||Ue).__ngNextListenerFn__=r,Ue.__ngLastListenerFn__=r,b=!1;else{r=rT(i,n,p,r,!1);const tt=e.listen(z,o,r);g.push(r,tt),u&&u.push(o,ne,ie,ie+1)}}else r=rT(i,n,p,r,!1);const x=i.outputs;let T;if(b&&null!==x&&(T=x[o])){const I=T.length;if(I)for(let z=0;z-1?To(t.index,n):n);let c=oT(n,e,i,a),u=r.__ngNextListenerFn__;for(;u;)c=oT(n,e,u,a)&&c,u=u.__ngNextListenerFn__;return o&&!1===c&&a.preventDefault(),c}}function w(t=1){return function OF(t){return(Ct.lFrame.contextLView=function tC(t,n){for(;t>0;)n=n[wc],t--;return n}(t,Ct.lFrame.contextLView))[Di]}(t)}function CV(t,n){let e=null;const i=function JN(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o(Ba(!0),function pm(t,n){return t.createText(n)}(n[Mt],i));function Fe(t){return Me("",t,""),Fe}function Me(t,n,e){const i=fe(),o=ol(i,t,n,e);return o!==Pt&&oa(i,Wn(),o),Me}function fl(t,n,e,i,o){const r=fe(),a=function rl(t,n,e,i,o,r){const s=Vs(t,Jr(),e,o);return ea(2),s?n+Ot(e)+i+Ot(o)+r:Pt}(r,t,n,e,i,o);return a!==Pt&&oa(r,Wn(),a),fl}function _v(t,n,e,i,o,r,a){const s=fe(),c=function al(t,n,e,i,o,r,a,s){const u=Bm(t,Jr(),e,o,a);return ea(3),u?n+Ot(e)+i+Ot(o)+r+Ot(a)+s:Pt}(s,t,n,e,i,o,r,a);return c!==Pt&&oa(s,Wn(),c),_v}function bv(t,n,e,i,o,r,a,s,c){const u=fe(),p=function sl(t,n,e,i,o,r,a,s,c,u){const g=$o(t,Jr(),e,o,a,c);return ea(4),g?n+Ot(e)+i+Ot(o)+r+Ot(a)+s+Ot(c)+u:Pt}(u,t,n,e,i,o,r,a,s,c);return p!==Pt&&oa(u,Wn(),p),bv}function Sn(t,n,e){FD(n)&&(n=n());const i=fe();return Ji(i,hr(),n)&&xo(Ut(),Si(),i,t,n,i[Mt],e,!1),Sn}function Ln(t,n){const e=FD(t);return e&&t.set(n),e}function kn(t,n){const e=fe(),i=Ut(),o=pi();return pv(i,e,e[Mt],o,t,n),kn}function vv(t,n,e,i,o){if(t=wt(t),Array.isArray(t))for(let r=0;r>20;if(Es(t)||!t.multi){const x=new Md(u,o,_),T=wv(c,n,o?p:p+b,g);-1===T?(j_(nm(s,a),r,c),yv(r,t,n.length),n.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(x),a.push(x)):(e[T]=x,a[T]=x)}else{const x=wv(c,n,p+b,g),T=wv(c,n,p,p+b),z=T>=0&&e[T];if(o&&!z||!o&&!(x>=0&&e[x])){j_(nm(s,a),r,c);const ie=function HV(t,n,e,i,o){const r=new Md(t,e,_);return r.multi=[],r.index=n,r.componentProviders=0,IT(r,o,i&&!e),r}(o?zV:jV,e.length,o,i,u);!o&&z&&(e[T].providerFactory=ie),yv(r,t,n.length,0),n.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(ie),a.push(ie)}else yv(r,t,x>-1?x:T,IT(e[o?T:x],u,!o&&i));!o&&i&&z&&e[T].componentProviders++}}}function yv(t,n,e,i){const o=Es(n),r=function b3(t){return!!t.useClass}(n);if(o||r){const c=(r?wt(n.useClass):n).prototype.ngOnDestroy;if(c){const u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const p=u.indexOf(e);-1===p?u.push(e,[i,c]):u[p+1].push(i,c)}else u.push(e,c)}}}function IT(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function wv(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function VV(t,n,e){const i=Ut();if(i.firstCreatePass){const o=ur(t);vv(e,i.data,i.blueprint,o,!0),vv(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let UV=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=FC(0,e.type),o=i.length>0?qb([i],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=Se({token:t,providedIn:"environment",factory:()=>new t(X(Io))})}return t})();function ET(t){Ns("NgStandalone"),t.getStandaloneInjector=n=>n.get(UV).getOrCreateStandaloneInjector(t)}function Wo(t,n,e){const i=to()+t,o=fe();return o[i]===Pt?Pr(o,i,e?n.call(e):n()):Qd(o,i)}function ui(t,n,e,i){return UT(fe(),to(),t,n,e,i)}function VT(t,n,e,i,o){return function $T(t,n,e,i,o,r,a){const s=n+e;return Vs(t,s,o,r)?Pr(t,s+2,a?i.call(a,o,r):i(o,r)):su(t,s+2)}(fe(),to(),t,n,e,i,o)}function jT(t,n,e,i,o,r){return function GT(t,n,e,i,o,r,a,s){const c=n+e;return Bm(t,c,o,r,a)?Pr(t,c+3,s?i.call(s,o,r,a):i(o,r,a)):su(t,c+3)}(fe(),to(),t,n,e,i,o,r)}function su(t,n){const e=t[n];return e===Pt?void 0:e}function UT(t,n,e,i,o,r){const a=n+e;return Ji(t,a,o)?Pr(t,a+1,r?i.call(r,o):i(o)):su(t,a+1)}function Dv(t,n){const e=Ut();let i;const o=t+Et;e.firstCreatePass?(i=function nj(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=Ms(i.type)),s=yo(_);try{const c=im(!1),u=r();return im(c),function TV(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,fe(),o,u),u}finally{yo(s)}}function Sv(t,n,e){const i=t+Et,o=fe(),r=Dc(o,i);return function cu(t,n){return t[He].data[n].pure}(o,i)?UT(o,to(),n,r.transform,e,r):r.transform(e)}function _r(t,n){return Sm(t,n)}let lM=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const pM=new oe(""),tp=new oe("");let Pv,Ov=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Pv||(function ez(t){Pv=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,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,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static#e=this.\u0275fac=function(i){return new(i||t)(X(We),X(Av),X(tp))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),Av=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Pv?.findTestabilityInTree(this,e,i)??null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function uu(t){return!!t&&"function"==typeof t.then}function fM(t){return!!t&&"function"==typeof t.subscribe}const Rv=new oe("");let Nv=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=we(Rv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(uu(r))e.push(r);else if(fM(r)){const a=new Promise((s,c)=>{r.subscribe({complete:s,error:c})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Fv=new oe("");function bM(t,n){return Array.isArray(n)?n.reduce(bM,t):{...t,...n}}let Za=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=we(h1),this.afterRenderEffectManager=we(Wd),this.componentTypes=[],this.components=[],this.isStable=we(Bs).hasPendingTasks.pipe(nt(e=>!e)),this._injector=we(Io)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof PD;if(!this._injector.get(Nv).done)throw!o&&function Fa(t){const n=jt(t)||gn(t)||Nn(t);return null!==n&&n.standalone}(e),new ue(405,!1);let a;a=o?e:this._injector.get(Rs).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function tz(t){return t.isBoundToModule}(a)?void 0:this._injector.get(Ls),u=a.create(Bi.NULL,[],i||a.selector,s),p=u.location.nativeElement,g=u.injector.get(pM,null);return g?.registerApplication(p),u.onDestroy(()=>{this.detachView(u.hostView),ip(this.components,u),g?.unregisterApplication(p)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new ue(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let e=0;do{if(100===e)throw new ue(103,!1);const i=0===e;for(let{_lView:o,notifyErrorHandler:r}of this._views)!i&&!vM(o)||this.detectChangesInView(o,r,i);this.afterRenderEffectManager.execute(),e++}while(this._views.some(({_lView:i})=>vM(i)))}detectChangesInView(e,i,o){let r;o?(r=0,e[ct]|=1024):r=64&e[ct]?0:1,Dm(e,i,r)}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;ip(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(Fv,[]);[...this._bootstrapListeners,...i].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),()=>ip(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ip(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function vM(t){return Ug(t)}class nz{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let yM=(()=>{class t{compileModuleSync(e){return new Wb(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=Oo(zn(e).declarations).reduce((a,s)=>{const c=jt(s);return c&&a.push(new Zd(c)),a},[]);return new nz(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),az=(()=>{class t{constructor(){this.zone=we(We),this.applicationRef=we(Za)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sz(){const t=we(We),n=we(Ho);return e=>t.runOutsideAngular(()=>n.handleError(e))}let lz=(()=>{class t{constructor(){this.subscription=new de,this.initialized=!1,this.zone=we(We),this.pendingTasks=we(Bs)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{We.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Fr=new oe("",{providedIn:"root",factory:()=>we(Fr,Ht.Optional|Ht.SkipSelf)||function dz(){return typeof $localize<"u"&&$localize.locale||pl}()}),Lv=new oe("");let DM=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function oB(t="zone.js",n){return"noop"===t?new KD:"zone.js"===t?new We(n):t}(i?.ngZone,function CM(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function QB(t,n,e){return new Gb(t,n,e)}(e.moduleType,this.injector,function xM(t){return[{provide:We,useFactory:t},{provide:Is,multi:!0,useFactory:()=>{const n=we(az,{optional:!0});return()=>n.initialize()}},{provide:Is,multi:!0,useFactory:()=>{const n=we(lz);return()=>{n.initialize()}}},{provide:h1,useFactory:sz}]}(()=>o)),a=r.injector.get(Ho,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:c=>{a.handleError(c)}});r.onDestroy(()=>{ip(this._modules,r),s.unsubscribe()})}),function _M(t,n,e){try{const i=e();return uu(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(Nv);return s.runInitializers(),s.donePromise.then(()=>(function Rk(t){"string"==typeof t&&(Pk=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(Fr,pl)||pl),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=bM({},i);return function rz(t,n,e){const i=new Wb(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Za);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new ue(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ue(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Lv,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||t)(X(Bi))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Ya=null;const SM=new oe("");function kM(t,n,e=[]){const i=`Platform: ${n}`,o=new oe(i);return(r=[])=>{let a=Bv();if(!a||a.injector.get(SM,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function mz(t){if(Ya&&!Ya.get(SM,!1))throw new ue(400,!1);(function gM(){!function _t(t){he=t}(()=>{throw new ue(600,!1)})})(),Ya=t;const n=t.get(DM);(function MM(t){t.get(CC,null)?.forEach(e=>e())})(t)}(function TM(t=[],n){return Bi.create({name:n,providers:[{provide:M_,useValue:"platform"},{provide:Lv,useValue:new Set([()=>Ya=null])},...t]})}(s,i))}return function pz(t){const n=Bv();if(!n)throw new ue(401,!1);return n}()}}function Bv(){return Ya?.get(DM)??null}const vz=kM(null,"core",[]);let yz=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(i){return new(i||t)(X(Za))};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();function vl(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let JM=null;function Qa(){return JM}class Yz{}const lt=new oe("");let Gv=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>we(Xz),providedIn:"platform"})}return t})();const Qz=new oe("");let Xz=(()=>{class t extends Gv{constructor(){super(),this._doc=we(lt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qa().getBaseHref(this._doc)}onPopState(e){const i=Qa().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Qa().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,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(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Wv(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function eI(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function aa(t){return t&&"?"!==t[0]?"?"+t:t}let Gs=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>we(iI),providedIn:"root"})}return t})();const tI=new oe("");let iI=(()=>{class t extends Gs{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??we(lt).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 Wv(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+aa(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+aa(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+aa(r));this._platformLocation.replaceState(e,i,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(i){return new(i||t)(X(Gv),X(tI,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Jz=(()=>{class t extends Gs{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Wv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+aa(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+aa(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,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(i){return new(i||t)(X(Gv),X(tI,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),Ws=(()=>{class t{constructor(e){this._subject=new Re,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function i7(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(eI(nI(i))),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,i=""){return this.path()==this.normalize(e+aa(i))}normalize(e){return t.stripTrailingSlash(function t7(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,nI(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+aa(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+aa(i)),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.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static#e=this.normalizeQueryParams=aa;static#t=this.joinWithSlash=Wv;static#i=this.stripTrailingSlash=eI;static#n=this.\u0275fac=function(i){return new(i||t)(X(Gs))};static#o=this.\u0275prov=Se({token:t,factory:()=>function e7(){return new Ws(X(Gs))}(),providedIn:"root"})}return t})();function nI(t){return t.replace(/\/index.html$/,"")}function hI(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const iy=/\s+/,mI=[];let vr=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=mI,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(iy):mI}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(iy):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(iy).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ra))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[pe.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class z7{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,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 dn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,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 i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new z7(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),fI(s,o)}});for(let o=0,r=i.length;o{fI(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(gi),_(pr))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function fI(t,n){t.context.$implicit=n.item}let Tt=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new H7,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){gI("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){gI("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class H7{constructor(){this.$implicit=null,this.ngIf=null}}function gI(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${fn(n)}'.`)}class ny{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let wl=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e===this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),xp=(()=>{class t{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new ny(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(gi),_(wl,9))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),_I=(()=>{class t{constructor(e,i,o){o._addDefault(new ny(e,i))}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(gi),_(wl,9))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),vI=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,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,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:$a.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Om),_(ra))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),Cp=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[fi]})}return t})();function yr(t,n){return new ue(2100,!1)}class G7{createSubscription(n,e){return LD(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){LD(()=>n.unsubscribe())}}class W7{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const q7=new W7,K7=new G7;let yI=(()=>{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,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(uu(e))return q7;if(fM(e))return K7;throw yr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft,16))};static#t=this.\u0275pipe=bo({name:"async",type:t,pure:!1,standalone:!0})}return t})(),wI=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw yr();return e.toUpperCase()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=bo({name:"uppercase",type:t,pure:!0,standalone:!0})}return t})(),Bn=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const CI="browser";function DI(t){return t===CI}function SI(t){return"server"===t}let p9=(()=>{class t{static#e=this.\u0275prov=Se({token:t,providedIn:"root",factory:()=>DI(we(ia))?new f9(we(lt),window):new _9})}return t})();class f9{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function g9(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}}class _9{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class kI{}class G9 extends Yz{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class sy extends G9{static makeCurrent(){!function Zz(t){JM??=t}(new sy)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function W9(){return _u=_u||document.querySelector("base"),_u?_u.getAttribute("href"):null}();return null==e?null:function q9(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){_u=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return hI(document.cookie,n)}}let _u=null,Z9=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const cy=new oe("");let NI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new ue(5101,!1);return this._eventNameToPlugin.set(e,i),i}static#e=this.\u0275fac=function(i){return new(i||t)(X(cy),X(We))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();class FI{constructor(n){this._doc=n}}const ly="ng-app-id";let LI=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=SI(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${ly}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(ly),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(ly,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||t)(X(lt),X(wd),X(n_,8),X(ia))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const dy={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/"},uy=/%COMP%/g,J9=new oe("",{providedIn:"root",factory:()=>!0});function VI(t,n){return n.map(e=>e.replace(uy,t))}let hy=(()=>{class t{constructor(e,i,o,r,a,s,c,u=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=SI(s),this.defaultRenderer=new my(e,a,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===sr.ShadowDom&&(i={...i,encapsulation:sr.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof zI?o.applyToHost(e):o instanceof py&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(i.encapsulation){case sr.Emulated:r=new zI(c,u,i,this.appId,p,a,s,g);break;case sr.ShadowDom:return new nH(c,u,e,i,a,s,this.nonce,g);default:r=new py(c,u,i,p,a,s,g)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(X(NI),X(LI),X(wd),X(J9),X(lt),X(ia),X(We),X(n_))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();class my{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(dy[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(jI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(jI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new ue(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=dy[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=dy[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&($a.DashCase|$a.Important)?n.style.setProperty(e,i,o&$a.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&$a.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=Qa().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function jI(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class nH extends my{constructor(n,e,i,o,r,a,s,c){super(n,r,a,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=VI(o.id,o.styles);for(const p of u){const g=document.createElement("style");s&&g.setAttribute("nonce",s),g.textContent=p,this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class py extends my{constructor(n,e,i,o,r,a,s,c){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=c?VI(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class zI extends py{constructor(n,e,i,o,r,a,s,c){const u=o+"-"+i.id;super(n,e,i,r,a,s,c,u),this.contentAttr=function eH(t){return"_ngcontent-%COMP%".replace(uy,t)}(u),this.hostAttr=function tH(t){return"_nghost-%COMP%".replace(uy,t)}(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let oH=(()=>{class t extends FI{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(X(lt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const HI=["alt","control","meta","shift"],rH={"\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"},aH={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let sH=(()=>{class t extends FI{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qa().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),HI.forEach(u=>{const p=i.indexOf(u);p>-1&&(i.splice(p,1),a+=u+".")}),a+=r,0!=i.length||0===r.length)return null;const c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(e,i){let o=rH[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),HI.forEach(a=>{a!==o&&(0,aH[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(i){return new(i||t)(X(lt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const uH=kM(vz,"browser",[{provide:ia,useValue:CI},{provide:CC,useValue:function cH(){sy.makeCurrent()},multi:!0},{provide:lt,useFactory:function dH(){return function BF(t){t_=t}(document),document},deps:[]}]),hH=new oe(""),GI=[{provide:tp,useClass:class K9{addToWindow(n){li.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new ue(5103,!1);return r},li.getAllAngularTestabilities=()=>n.getAllTestabilities(),li.getAllAngularRootElements=()=>n.getAllRootElements(),li.frameworkStabilizers||(li.frameworkStabilizers=[]),li.frameworkStabilizers.push(i=>{const o=li.getAllAngularTestabilities();let r=o.length;const a=function(){r--,0==r&&i()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Qa().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:pM,useClass:Ov,deps:[We,Av,tp]},{provide:Ov,useClass:Ov,deps:[We,Av,tp]}],WI=[{provide:M_,useValue:"root"},{provide:Ho,useFactory:function lH(){return new Ho},deps:[]},{provide:cy,useClass:oH,multi:!0,deps:[lt,We,ia]},{provide:cy,useClass:sH,multi:!0,deps:[lt]},hy,LI,NI,{provide:Mb,useExisting:hy},{provide:kI,useClass:Z9,deps:[]},[]];let qI=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:wd,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(X(hH,12))};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[...WI,...GI],imports:[Bn,yz]})}return t})(),mH=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(i){return new(i||t)(X(lt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fy=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:function(i){let o=null;return o=i?new(i||t):X(_H),o},providedIn:"root"})}return t})(),_H=(()=>{class t extends fy{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Fn.NONE:return i;case Fn.HTML:return Er(i,"HTML")?Eo(i):D1(this._doc,String(i)).toString();case Fn.STYLE:return Er(i,"Style")?Eo(i):i;case Fn.SCRIPT:if(Er(i,"Script"))return Eo(i);throw new ue(5200,!1);case Fn.URL:return Er(i,"URL")?Eo(i):dm(String(i));case Fn.RESOURCE_URL:if(Er(i,"ResourceURL"))return Eo(i);throw new ue(5201,!1);default:throw new ue(5202,!1)}}bypassSecurityTrustHtml(e){return function pL(t){return new cL(t)}(e)}bypassSecurityTrustStyle(e){return function fL(t){return new lL(t)}(e)}bypassSecurityTrustScript(e){return function gL(t){return new dL(t)}(e)}bypassSecurityTrustUrl(e){return function _L(t){return new uL(t)}(e)}bypassSecurityTrustResourceUrl(e){return function bL(t){return new hL(t)}(e)}static#e=this.\u0275fac=function(i){return new(i||t)(X(lt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Dt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Dt||{});const la="*";function Po(t,n){return{type:Dt.Trigger,name:t,definitions:n,options:{}}}function qi(t,n=null){return{type:Dt.Animate,styles:n,timings:t}}function gy(t,n=null){return{type:Dt.Group,steps:t,options:n}}function Wt(t){return{type:Dt.Style,styles:t,offset:null}}function un(t,n,e){return{type:Dt.State,name:t,styles:n,options:e}}function Ki(t,n,e=null){return{type:Dt.Transition,expr:t,animation:n,options:e}}function _y(t=null){return{type:Dt.AnimateChild,options:t}}function by(t,n,e=null){return{type:Dt.Query,selector:t,animation:n,options:e}}class vu{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class QI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function XI(t){return new ue(3e3,!1)}function Xa(t){switch(t.length){case 0:return new vu;case 1:return t[0];default:return new QI(t)}}function JI(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(c=>{const u=c.get("offset"),p=u==a,g=p&&s||new Map;c.forEach((b,x)=>{let T=x,I=b;if("offset"!==x)switch(T=t.normalizePropertyName(T,o),I){case"!":I=e.get(x);break;case la:I=i.get(x);break;default:I=t.normalizeStyleValue(x,T,I,o)}g.set(T,I)}),p||r.push(g),s=g,a=u}),o.length)throw function GH(t){return new ue(3502,!1)}();return r}function yy(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&wy(e,"start",t)));break;case"done":t.onDone(()=>i(e&&wy(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&wy(e,"destroy",t)))}}function wy(t,n,e){const r=xy(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function xy(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function Ro(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function e2(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const nU=typeof document>"u"?null:document.documentElement;function Cy(t){const n=t.parentNode||t.host||null;return n===nU?null:n}let qs=null,t2=!1;function n2(t,n){for(;n;){if(n===t)return!0;n=Cy(n)}return!1}function o2(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let Dy=(()=>{class t{validateStyleProperty(e){return function rU(t){qs||(qs=function aU(){return typeof document<"u"?document.body:null}()||{},t2=!!qs.style&&"WebkitAppearance"in qs.style);let n=!0;return qs.style&&!function oU(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in qs.style,!n&&t2&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in qs.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return n2(e,i)}getParentElement(e){return Cy(e)}query(e,i,o){return o2(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],c){return new vu(o,r)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();class Sy{static#e=this.NOOP=new Dy}class ky{}const cU=1e3,Ty="ng-enter",kp="ng-leave",Tp="ng-trigger",Mp=".ng-trigger",a2="ng-animating",My=".ng-animating";function da(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Iy(parseFloat(n[1]),n[2])}function Iy(t,n){return"s"===n?t*cU:t}function Ip(t,n,e){return t.hasOwnProperty("duration")?t:function dU(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(XI()),{duration:0,delay:0,easing:""};o=Iy(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(r=Iy(parseFloat(c),s[4]));const u=s[5];u&&(a=u)}else o=t;if(!e){let s=!1,c=n.length;o<0&&(n.push(function CH(){return new ue(3100,!1)}()),s=!0),r<0&&(n.push(function DH(){return new ue(3101,!1)}()),s=!0),s&&n.splice(c,0,XI())}return{duration:o,delay:r,easing:a}}(t,n,e)}function Lr(t,n,e){n.forEach((i,o)=>{const r=Oy(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Ks(t,n){n.forEach((e,i)=>{const o=Oy(i);t.style[o]=""})}function yu(t){return Array.isArray(t)?1==t.length?t[0]:function bH(t,n=null){return{type:Dt.Sequence,steps:t,options:n}}(t):t}const Ey=new RegExp("{{\\s*(.+?)\\s*}}","g");function c2(t){let n=[];if("string"==typeof t){let e;for(;e=Ey.exec(t);)n.push(e[1]);Ey.lastIndex=0}return n}function wu(t,n,e){const i=`${t}`,o=i.replace(Ey,(r,a)=>{let s=n[a];return null==s&&(e.push(function kH(t){return new ue(3003,!1)}()),s=""),s.toString()});return o==i?t:o}const mU=/-+([a-z0-9])/g;function Oy(t){return t.replace(mU,(...n)=>n[1].toUpperCase())}function No(t,n,e){switch(n.type){case Dt.Trigger:return t.visitTrigger(n,e);case Dt.State:return t.visitState(n,e);case Dt.Transition:return t.visitTransition(n,e);case Dt.Sequence:return t.visitSequence(n,e);case Dt.Group:return t.visitGroup(n,e);case Dt.Animate:return t.visitAnimate(n,e);case Dt.Keyframes:return t.visitKeyframes(n,e);case Dt.Style:return t.visitStyle(n,e);case Dt.Reference:return t.visitReference(n,e);case Dt.AnimateChild:return t.visitAnimateChild(n,e);case Dt.AnimateRef:return t.visitAnimateRef(n,e);case Dt.Query:return t.visitQuery(n,e);case Dt.Stagger:return t.visitStagger(n,e);default:throw function TH(t){return new ue(3004,!1)}()}}function Ay(t,n){return window.getComputedStyle(t)[n]}const gU=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 l2 extends ky{normalizePropertyName(n,e){return Oy(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(gU.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function MH(t,n){return new ue(3005,!1)}())}return a+r}}const Ep="*";const Op=new Set(["true","1"]),Ap=new Set(["false","0"]);function d2(t,n){const e=Op.has(t)||Ap.has(t),i=Op.has(n)||Ap.has(n);return(o,r)=>{let a=t==Ep||t==o,s=n==Ep||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?Op.has(t):Ap.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?Op.has(n):Ap.has(n)),a&&s}}const yU=new RegExp("s*:selfs*,?","g");function Py(t,n,e,i){return new wU(t).build(n,e,i)}class wU{constructor(n){this._driver=n}build(n,e,i){const o=new DU(e);return this._resetContextStyleTimingState(o),No(this,yu(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function IH(){return new ue(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Dt.State){const c=s,u=c.name;u.toString().split(/\s*,\s*/).forEach(p=>{c.name=p,r.push(this.visitState(c,e))}),c.name=u}else if(s.type==Dt.Transition){const c=this.visitTransition(s,e);i+=c.queryCount,o+=c.depCount,a.push(c)}else e.errors.push(function EH(){return new ue(3007,!1)}())}),{type:Dt.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{c2(c).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(function OH(t,n){return new ue(3008,!1)}(0,r.values()))}return{type:Dt.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=No(this,yu(n.animation),e),o=function _U(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function bU(t,n,e){if(":"==t[0]){const c=function vU(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof c)return void n.push(c);t=c}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function jH(t){return new ue(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(d2(o,a)),"<"==r[0]&&(o!=Ep||a!=Ep)&&n.push(d2(a,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:Dt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Zs(n.options)}}visitSequence(n,e){return{type:Dt.Sequence,steps:n.steps.map(i=>No(this,i,e)),options:Zs(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=No(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Dt.Group,steps:r,options:Zs(n.options)}}visitAnimate(n,e){const i=function kU(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Ry(Ip(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Ry(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=Ip(e,n);return Ry(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:Wt({});if(r.type==Dt.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const u={};i.easing&&(u.easing=i.easing),a=Wt(u)}e.currentTime+=i.duration+i.delay;const c=this.visitStyle(a,e);c.isEmptyStep=s,o=c}return e.currentAnimateTimings=null,{type:Dt.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===la?i.push(s):e.errors.push(new ue(3002,!1)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let c of s.values())if(c.toString().indexOf("{{")>=0){r=!0;break}}),{type:Dt.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,c)=>{const u=e.collectedStyles.get(e.currentQuerySelector),p=u.get(c);let g=!0;p&&(r!=o&&r>=p.startTime&&o<=p.endTime&&(e.errors.push(function PH(t,n,e,i,o){return new ue(3010,!1)}()),g=!1),r=p.startTime),g&&u.set(c,{startTime:r,endTime:o}),e.options&&function hU(t,n,e){const i=n.params||{},o=c2(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function SH(t){return new ue(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:Dt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function RH(){return new ue(3011,!1)}()),i;let r=0;const a=[];let s=!1,c=!1,u=0;const p=n.steps.map(ie=>{const ne=this._makeStyleAst(ie,e);let Ue=null!=ne.offset?ne.offset:function SU(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(ne.styles),tt=0;return null!=Ue&&(r++,tt=ne.offset=Ue),c=c||tt<0||tt>1,s=s||tt0&&r{const Ue=b>0?ne==x?1:b*ne:a[ne],tt=Ue*z;e.currentTime=T+I.delay+tt,I.duration=tt,this._validateStyleAst(ie,e),ie.offset=Ue,i.styles.push(ie)}),i}visitReference(n,e){return{type:Dt.Reference,animation:No(this,yu(n.animation),e),options:Zs(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Dt.AnimateChild,options:Zs(n.options)}}visitAnimateRef(n,e){return{type:Dt.AnimateRef,animation:this.visitReference(n.animation,e),options:Zs(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function xU(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(yU,"")),t=t.replace(/@\*/g,Mp).replace(/@\w+/g,e=>Mp+"-"+e.slice(1)).replace(/:animating/g,My),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,Ro(e.collectedStyles,e.currentQuerySelector,new Map);const s=No(this,yu(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Dt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Zs(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function BH(){return new ue(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Ip(n.timings,e.errors,!0);return{type:Dt.Stagger,animation:No(this,yu(n.animation),e),timings:i,options:null}}}class DU{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Zs(t){return t?(t={...t}).params&&(t.params=function CU(t){return t?{...t}:null}(t.params)):t={},t}function Ry(t,n,e){return{duration:t,delay:n,easing:e}}function Ny(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class Pp{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const IU=new RegExp(":enter","g"),OU=new RegExp(":leave","g");function Fy(t,n,e,i,o,r=new Map,a=new Map,s,c,u=[]){return(new AU).buildKeyframes(t,n,e,i,o,r,a,s,c,u)}class AU{buildKeyframes(n,e,i,o,r,a,s,c,u,p=[]){u=u||new Pp;const g=new Ly(n,e,u,o,r,p,[]);g.options=c;const b=c.delay?da(c.delay):0;g.currentTimeline.delayNextStep(b),g.currentTimeline.setStyles([a],null,g.errors,c),No(this,i,g);const x=g.timelines.filter(T=>T.containsAnimation());if(x.length&&s.size){let T;for(let I=x.length-1;I>=0;I--){const z=x[I];if(z.element===e){T=z;break}}T&&!T.allowOnlyTimelineStyles()&&T.setStyles([s],null,g.errors,c)}return x.length?x.map(T=>T.buildKeyframes()):[Ny(e,[],[],[],0,b,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:da(wu(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?da(i.duration):null,s=null!=i.delay?da(i.delay):null;return 0!==a&&n.forEach(c=>{const u=e.appendInstructionToTimeline(c,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),No(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==Dt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Rp);const a=da(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>No(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?da(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),No(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Ip(e.params?wu(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==Dt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(c=>{s.forwardTime((c.offset||0)*r),s.setStyles(c.styles,c.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?da(o.delay):0;r&&(e.previousNode.type===Dt.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Rp);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let c=null;s.forEach((u,p)=>{e.currentQueryIndex=p;const g=e.createSubContext(n.options,u);r&&g.delayNextStep(r),u===e.element&&(c=g.currentTimeline),No(this,n.animation,g),g.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,g.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let c=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":c=s-c;break;case"full":c=i.currentStaggerTime}const p=e.currentTimeline;c&&p.delayNextStep(c);const g=p.currentTime;No(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-g+(o.startTime-i.currentTimeline.startTime)}}const Rp={};class Ly{constructor(n,e,i,o,r,a,s,c){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Np(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=da(i.duration)),null!=i.delay&&(o.delay=da(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=wu(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new Ly(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Rp,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new PU(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(IU,"."+this._enterClassName)).replace(OU,"."+this._leaveClassName);let u=this._driver.query(this.element,n,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push(...u)}return!r&&0==s.length&&a.push(function VH(t){return new ue(3014,!1)}()),s}}class Np{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,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(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Np(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||la),this._currentKeyframe.set(e,la);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function RU(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,la)}else for(let[r,a]of o)e.set(r,a)}),e}(n,this._globalTimelineStyles);for(let[s,c]of a){const u=wu(c,r,i);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??la),this._updateStyle(s,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,c)=>{const u=new Map([...this._backFill,...s]);u.forEach((p,g)=>{"!"===p?n.add(g):p===la&&e.add(g)}),i||u.set("offset",c/this.duration),o.push(u)});const r=[...n.values()],a=[...e.values()];if(i){const s=o[0],c=new Map(s);s.set("offset",0),c.set("offset",1),o=[s,c]}return Ny(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class PU extends Np{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,c=new Map(n[0]);c.set("offset",0),r.push(c);const u=new Map(n[0]);u.set("offset",m2(s)),r.push(u);const p=n.length-1;for(let g=1;g<=p;g++){let b=new Map(n[g]);const x=b.get("offset");b.set("offset",m2((e+x*i)/a)),r.push(b)}i=a,e=0,o="",n=r}return Ny(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function m2(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function p2(t,n,e,i,o,r,a,s,c,u,p,g,b){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:p,totalTime:g,errors:b}}const By={};class f2{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function NU(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,c,u,p){const g=[],b=this.ast.options&&this.ast.options.params||By,T=this.buildStyles(i,s&&s.params||By,g),I=c&&c.params||By,z=this.buildStyles(o,I,g),ie=new Set,ne=new Map,Ue=new Map,tt="void"===o,pt={params:g2(I,b),delay:this.ast.options?.delay},Vt=p?[]:Fy(n,e,this.ast.animation,r,a,T,z,pt,u,g);let Ni=0;return Vt.forEach(Dn=>{Ni=Math.max(Dn.duration+Dn.delay,Ni)}),g.length?p2(e,this._triggerName,i,o,tt,T,z,[],[],ne,Ue,Ni,g):(Vt.forEach(Dn=>{const Pa=Dn.element,sd=Ro(ne,Pa,new Set);Dn.preStyleProps.forEach(mc=>sd.add(mc));const NN=Ro(Ue,Pa,new Set);Dn.postStyleProps.forEach(mc=>NN.add(mc)),Pa!==e&&ie.add(Pa)}),p2(e,this._triggerName,i,o,tt,T,z,Vt,[...ie.values()],ne,Ue,Ni))}}function g2(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class FU{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=g2(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=wu(a,o,e));const c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),i.set(s,a)})}),i}}class BU{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new FU(o.style,o.options&&o.options.params||{},i))}),_2(this.states,"true","1"),_2(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new f2(n,o,this.states))}),this.fallbackTransition=function VU(t,n,e){return new f2(t,{type:Dt.Transition,animation:{type:Dt.Sequence,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function _2(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const jU=new Pp;class zU{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=Py(this._driver,e,i,[]);if(i.length)throw function WH(t){return new ue(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=JI(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=Fy(this._driver,e,r,Ty,kp,new Map,new Map,i,jU,o),a.forEach(p=>{const g=Ro(s,p.element,new Map);p.postStyleProps.forEach(b=>g.set(b,null))})):(o.push(function qH(){return new ue(3300,!1)}()),a=[]),o.length)throw function KH(t){return new ue(3504,!1)}();s.forEach((p,g)=>{p.forEach((b,x)=>{p.set(x,this._driver.computeStyle(g,x,la))})});const u=Xa(a.map(p=>{const g=s.get(p.element);return this._buildPlayer(p,new Map,g)}));return this._playersById.set(n,u),u.onDestroy(()=>this.destroy(n)),this.players.push(u),u}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function ZH(t){return new ue(3301,!1)}();return e}listen(n,e,i,o){const r=xy(e,"","","");return yy(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const b2="ng-animate-queued",Vy="ng-animate-disabled",WU=[],v2={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qU={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},wr="__ng_removed";class jy{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function QU(t){return t??null}(i?n.value:n),i){const{value:r,...a}=n;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const xu="void",zy=new jy(xu);class KU{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Zo(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function YH(t,n){return new ue(3302,!1)}();if(null==i||0==i.length)throw function QH(t){return new ue(3303,!1)}();if(!function XU(t){return"start"==t||"done"==t}(i))throw function XH(t,n){return new ue(3400,!1)}();const r=Ro(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=Ro(this._engine.statesByElement,n,new Map);return s.has(e)||(Zo(n,Tp),Zo(n,Tp+"-"+e),s.set(e,zy)),()=>{this._engine.afterFlush(()=>{const c=r.indexOf(a);c>=0&&r.splice(c,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function JH(t){return new ue(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new Hy(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(Zo(n,Tp),Zo(n,Tp+"-"+e),this._engine.statesByElement.set(n,s=new Map));let c=s.get(e);const u=new jy(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s.set(e,u),c||(c=zy),u.value!==xu&&c.value===u.value){if(!function t$(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Ks(n,z),Lr(n,ie)})}return}const b=Ro(this._engine.playersByElement,n,[]);b.forEach(I=>{I.namespaceId==this.id&&I.triggerName==e&&I.queued&&I.destroy()});let x=r.matchTransition(c.value,u.value,n,u.params),T=!1;if(!x){if(!o)return;x=r.fallbackTransition,T=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:x,fromState:c,toState:u,player:a,isFallbackTransition:T}),T||(Zo(n,b2),a.onStart(()=>{xl(n,b2)})),a.onDone(()=>{let I=this.players.indexOf(a);I>=0&&this.players.splice(I,1);const z=this._engine.playersByElement.get(n);if(z){let ie=z.indexOf(a);ie>=0&&z.splice(ie,1)}}),this.players.push(a),b.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Mp,!0);i.forEach(o=>{if(o[wr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((c,u)=>{if(a.set(u,c.value),this._triggers.has(u)){const p=this.trigger(n,u,xu,o);p&&s.push(p)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Xa(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const c=this._triggers.get(a).fallbackTransition,u=i.get(a)||zy,p=new jy(xu),g=new Hy(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:c,fromState:u,toState:p,player:g,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[wr];(!r||r===v2)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Zo(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const c=xy(r,i.triggerName,i.fromState.value,i.toState.value);c._data=n,yy(i.player,s.phase,c,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class ZU{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,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=(r,a)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new KU(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const c=o.get(s);if(c){const u=i.indexOf(c);i.splice(u+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(Fp(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!Fp(e))return;const r=e[wr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Zo(n,Vy)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),xl(n,Vy))}removeNode(n,e,i){if(Fp(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[wr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Fp(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Mp,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,My,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Xa(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[wr];if(e&&e.setForRemoval){if(n[wr]=v2,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Vy)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Xa(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function eU(t){return new ue(3402,!1)}()}_flushAnimations(n,e){const i=new Pp,o=[],r=new Map,a=[],s=new Map,c=new Map,u=new Map,p=new Set;this.disabledNodes.forEach(rt=>{p.add(rt);const gt=this.driver.query(rt,".ng-animate-queued",!0);for(let xt=0;xt{const xt=Ty+I++;T.set(gt,xt),rt.forEach(Jt=>Zo(Jt,xt))});const z=[],ie=new Set,ne=new Set;for(let rt=0;rtie.add(Jt)):ne.add(gt))}const Ue=new Map,tt=x2(b,Array.from(ie));tt.forEach((rt,gt)=>{const xt=kp+I++;Ue.set(gt,xt),rt.forEach(Jt=>Zo(Jt,xt))}),n.push(()=>{x.forEach((rt,gt)=>{const xt=T.get(gt);rt.forEach(Jt=>xl(Jt,xt))}),tt.forEach((rt,gt)=>{const xt=Ue.get(gt);rt.forEach(Jt=>xl(Jt,xt))}),z.forEach(rt=>{this.processLeaveNode(rt)})});const pt=[],Vt=[];for(let rt=this._namespaceList.length-1;rt>=0;rt--)this._namespaceList[rt].drainQueuedTransitions(e).forEach(xt=>{const Jt=xt.player,Pn=xt.element;if(pt.push(Jt),this.collectedEnterElements.length){const Jn=Pn[wr];if(Jn&&Jn.setForMove){if(Jn.previousTriggersValues&&Jn.previousTriggersValues.has(xt.triggerName)){const pc=Jn.previousTriggersValues.get(xt.triggerName),or=this.statesByElement.get(xt.element);if(or&&or.has(xt.triggerName)){const Tg=or.get(xt.triggerName);Tg.value=pc,or.set(xt.triggerName,Tg)}}return void Jt.destroy()}}const qr=!g||!this.driver.containsElement(g,Pn),zo=Ue.get(Pn),ys=T.get(Pn),Gi=this._buildInstruction(xt,i,ys,zo,qr);if(Gi.errors&&Gi.errors.length)return void Vt.push(Gi);if(qr)return Jt.onStart(()=>Ks(Pn,Gi.fromStyles)),Jt.onDestroy(()=>Lr(Pn,Gi.toStyles)),void o.push(Jt);if(xt.isFallbackTransition)return Jt.onStart(()=>Ks(Pn,Gi.fromStyles)),Jt.onDestroy(()=>Lr(Pn,Gi.toStyles)),void o.push(Jt);const BN=[];Gi.timelines.forEach(Jn=>{Jn.stretchStartingKeyframe=!0,this.disabledNodes.has(Jn.element)||BN.push(Jn)}),Gi.timelines=BN,i.append(Pn,Gi.timelines),a.push({instruction:Gi,player:Jt,element:Pn}),Gi.queriedElements.forEach(Jn=>Ro(s,Jn,[]).push(Jt)),Gi.preStyleProps.forEach((Jn,pc)=>{if(Jn.size){let or=c.get(pc);or||c.set(pc,or=new Set),Jn.forEach((Tg,Sx)=>or.add(Sx))}}),Gi.postStyleProps.forEach((Jn,pc)=>{let or=u.get(pc);or||u.set(pc,or=new Set),Jn.forEach((Tg,Sx)=>or.add(Sx))})});if(Vt.length){const rt=[];Vt.forEach(gt=>{rt.push(function tU(t,n){return new ue(3505,!1)}())}),pt.forEach(gt=>gt.destroy()),this.reportError(rt)}const Ni=new Map,Dn=new Map;a.forEach(rt=>{const gt=rt.element;i.has(gt)&&(Dn.set(gt,gt),this._beforeAnimationBuild(rt.player.namespaceId,rt.instruction,Ni))}),o.forEach(rt=>{const gt=rt.element;this._getPreviousPlayers(gt,!1,rt.namespaceId,rt.triggerName,null).forEach(Jt=>{Ro(Ni,gt,[]).push(Jt),Jt.destroy()})});const Pa=z.filter(rt=>D2(rt,c,u)),sd=new Map;w2(sd,this.driver,ne,u,la).forEach(rt=>{D2(rt,c,u)&&Pa.push(rt)});const mc=new Map;x.forEach((rt,gt)=>{w2(mc,this.driver,new Set(rt),c,"!")}),Pa.forEach(rt=>{const gt=sd.get(rt),xt=mc.get(rt);sd.set(rt,new Map([...gt?.entries()??[],...xt?.entries()??[]]))});const Dx=[],FN=[],LN={};a.forEach(rt=>{const{element:gt,player:xt,instruction:Jt}=rt;if(i.has(gt)){if(p.has(gt))return xt.onDestroy(()=>Lr(gt,Jt.toStyles)),xt.disabled=!0,xt.overrideTotalTime(Jt.totalTime),void o.push(xt);let Pn=LN;if(Dn.size>1){let zo=gt;const ys=[];for(;zo=zo.parentNode;){const Gi=Dn.get(zo);if(Gi){Pn=Gi;break}ys.push(zo)}ys.forEach(Gi=>Dn.set(Gi,Pn))}const qr=this._buildAnimation(xt.namespaceId,Jt,Ni,r,mc,sd);if(xt.setRealPlayer(qr),Pn===LN)Dx.push(xt);else{const zo=this.playersByElement.get(Pn);zo&&zo.length&&(xt.parentPlayer=Xa(zo)),o.push(xt)}}else Ks(gt,Jt.fromStyles),xt.onDestroy(()=>Lr(gt,Jt.toStyles)),FN.push(xt),p.has(gt)&&o.push(xt)}),FN.forEach(rt=>{const gt=r.get(rt.element);if(gt&>.length){const xt=Xa(gt);rt.setRealPlayer(xt)}}),o.forEach(rt=>{rt.parentPlayer?rt.syncPlayerEvents(rt.parentPlayer):rt.destroy()});for(let rt=0;rt!qr.destroyed);Pn.length?JU(this,gt,Pn):this.processLeaveNode(gt)}return z.length=0,Dx.forEach(rt=>{this.players.push(rt),rt.onDone(()=>{rt.destroy();const gt=this.players.indexOf(rt);this.players.splice(gt,1)}),rt.play()}),Dx}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const c=!r||r==xu;s.forEach(u=>{u.queued||!c&&u.triggerName!=o||a.push(u)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const u=c.element,p=u!==r,g=Ro(i,u,[]);this._getPreviousPlayers(u,p,a,s,e.toState).forEach(x=>{const T=x.getRealPlayer();T.beforeDestroy&&T.beforeDestroy(),x.destroy(),g.push(x)})}Ks(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,c=e.element,u=[],p=new Set,g=new Set,b=e.timelines.map(T=>{const I=T.element;p.add(I);const z=I[wr];if(z&&z.removedBeforeQueried)return new vu(T.duration,T.delay);const ie=I!==c,ne=function e$(t){const n=[];return C2(t,n),n}((i.get(I)||WU).map(Ni=>Ni.getRealPlayer())).filter(Ni=>!!Ni.element&&Ni.element===I),Ue=r.get(I),tt=a.get(I),pt=JI(this._normalizer,T.keyframes,Ue,tt),Vt=this._buildPlayer(T,pt,ne);if(T.subTimeline&&o&&g.add(I),ie){const Ni=new Hy(n,s,I);Ni.setRealPlayer(Vt),u.push(Ni)}return Vt});u.forEach(T=>{Ro(this.playersByQueriedElement,T.element,[]).push(T),T.onDone(()=>function YU(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,T.element,T))}),p.forEach(T=>Zo(T,a2));const x=Xa(b);return x.onDestroy(()=>{p.forEach(T=>xl(T,a2)),Lr(c,e.toStyles)}),g.forEach(T=>{Ro(o,T,[]).push(x)}),x}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new vu(n.duration,n.delay)}}class Hy{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new vu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>yy(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Ro(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Fp(t){return t&&1===t.nodeType}function y2(t,n){const e=t.style.display;return t.style.display=n??"none",e}function w2(t,n,e,i,o){const r=[];e.forEach(c=>r.push(y2(c)));const a=[];i.forEach((c,u)=>{const p=new Map;c.forEach(g=>{const b=n.computeStyle(u,g,o);p.set(g,b),(!b||0==b.length)&&(u[wr]=qU,a.push(u))}),t.set(u,p)});let s=0;return e.forEach(c=>y2(c,r[s++])),a}function x2(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let c=r.get(s);if(c)return c;const u=s.parentNode;return c=e.has(u)?u:o.has(u)?1:a(u),r.set(s,c),c}return n.forEach(s=>{const c=a(s);1!==c&&e.get(c).push(s)}),e}function Zo(t,n){t.classList?.add(n)}function xl(t,n){t.classList?.remove(n)}function JU(t,n,e){Xa(e).onDone(()=>t.processLeaveNode(n))}function C2(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class Cu{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new ZU(n.body,e,i,o),this._timelineEngine=new zU(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const c=[],p=Py(this._driver,r,c,[]);if(c.length)throw function $H(t,n){return new ue(3404,!1)}();s=function LU(t,n,e){return new BU(t,n,e)}(o,p,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=e2(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=e2(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class Du{static#e=this.initialStylesByElement=new WeakMap;constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=Du.initialStylesByElement.get(n);o||Du.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Lr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Lr(this._element,this._initialStyles),this._endStyles&&(Lr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Du.initialStylesByElement.delete(this._element),this._startStyles&&(Ks(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ks(this._element,this._endStyles),this._endStyles=null),Lr(this._element,this._initialStyles),this._state=3)}}function Uy(t){let n=null;return t.forEach((e,i)=>{(function n$(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class S2{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:Ay(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class k2{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return n2(n,e)}getParentElement(n){return Cy(n)}query(n,e,i){return o2(n,e,i)}computeStyle(n,e,i){return Ay(n,e)}animate(n,e,i,o,r,a=[]){const c={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(c.easing=r);const u=new Map,p=a.filter(x=>x instanceof S2);(function pU(t,n){return 0===t||0===n})(i,o)&&p.forEach(x=>{x.currentSnapshot.forEach((T,I)=>u.set(I,T))});let g=function uU(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(x=>new Map(x));g=function fU(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,Ay(t,s)))}}return n}(n,g,u);const b=function i$(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Uy(n[0]),n.length>1&&(i=Uy(n[n.length-1]))):n instanceof Map&&(e=Uy(n)),e||i?new Du(t,e,i):null}(n,g);return new S2(n,g,c,b)}}const T2="@.disabled";class M2{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==T2?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class o$ extends M2{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==T2?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function r$(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function a$(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}class s${constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const a=r?.parentNode(o);a&&r.removeChild(a,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const u=this._rendererCache;let p=u.get(o);return p||(p=new M2("",o,this.engine,()=>u.delete(o)),u.set(o,p)),p}const r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,n,u.name,u)};return e.data.animation.forEach(s),new o$(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const I2=[{provide:ky,useFactory:function l$(){return new l2}},{provide:Cu,useClass:(()=>{class t extends Cu{constructor(e,i,o){super(e,i,o,we(Tb,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(X(lt),X(Sy),X(ky))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})()},{provide:Mb,useFactory:function d$(t,n,e){return new s$(t,n,e)},deps:[hy,Cu,We]}],$y=[{provide:Sy,useFactory:()=>new k2},{provide:di,useValue:"BrowserAnimations"},...I2],E2=[{provide:Sy,useClass:Dy},{provide:di,useValue:"NoopAnimations"},...I2];let Gy,u$=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?E2:$y}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:$y,imports:[qI]})}return t})();try{Gy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Gy=!1}let Cl,ai=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?DI(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&&!Gy)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(i){return new(i||t)(X(ia))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const O2=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function A2(){if(Cl)return Cl;if("object"!=typeof document||!document)return Cl=new Set(O2),Cl;let t=document.createElement("input");return Cl=new Set(O2.filter(n=>(t.setAttribute("type",n),t.type===n))),Cl}let Su,Bp,Ys,Wy;function Ja(t){return function h$(){if(null==Su&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Su=!0}))}finally{Su=Su||!1}return Su}()?t:!!t.capture}function P2(){if(null==Ys){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ys=!1,Ys;if("scrollBehavior"in document.documentElement.style)Ys=!0;else{const t=Element.prototype.scrollTo;Ys=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Ys}function ku(){if("object"!=typeof document||!document)return 0;if(null==Bp){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Bp=0,0===t.scrollLeft&&(t.scrollLeft=1,Bp=0===t.scrollLeft?1:2),t.remove()}return Bp}function Vp(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function ua(t){return t.composedPath?t.composedPath()[0]:t.target}function qy(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function R2(t){return t&&J(t.schedule)}function Ky(t){return t[t.length-1]}function N2(t){return J(Ky(t))?t.pop():void 0}function Tu(t){return R2(Ky(t))?t.pop():void 0}function es(t){return this instanceof es?(this.v=t,this):new es(t)}function V2(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Xy(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,c){!function o(r,a,s,c){Promise.resolve(c).then(function(u){r({value:u,done:s})},a)}(s,c,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Jy=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function j2(t){return J(t?.then)}function z2(t){return J(t[Ig])}function H2(t){return Symbol.asyncIterator&&J(t?.[Symbol.asyncIterator])}function U2(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 $2=function L$(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function G2(t){return J(t?.[$2])}function W2(t){return function B2(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(b){i[b]&&(o[b]=function(x){return new Promise(function(T,I){r.push([b,x,T,I])>1||s(b,x)})})}function s(b,x){try{!function c(b){b.value instanceof es?Promise.resolve(b.value.v).then(u,p):g(r[0][2],b)}(i[b](x))}catch(T){g(r[0][3],T)}}function u(b){s("next",b)}function p(b){s("throw",b)}function g(b,x){b(x),r.shift(),r.length&&s(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield es(e.read());if(o)return yield es(void 0);yield yield es(i)}}finally{e.releaseLock()}})}function q2(t){return J(t?.getReader)}function Kn(t){if(t instanceof ci)return t;if(null!=t){if(z2(t))return function B$(t){return new ci(n=>{const e=t[Ig]();if(J(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Jy(t))return function V$(t){return new ci(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,dt)})}(t);if(H2(t))return K2(t);if(G2(t))return function z$(t){return new ci(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(q2(t))return function H$(t){return K2(W2(t))}(t)}throw U2(t)}function K2(t){return new ci(n=>{(function U$(t,n){var e,i,o,r;return function F2(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(p){try{u(i.next(p))}catch(g){a(g)}}function c(p){try{u(i.throw(p))}catch(g){a(g)}}function u(p){p.done?r(p.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(p.value).then(s,c)}u((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=V2(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function ha(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function Z2(t,n=0){return ji((e,i)=>{e.subscribe(Fi(i,o=>ha(i,t,()=>i.next(o),n),()=>ha(i,t,()=>i.complete(),n),o=>ha(i,t,()=>i.error(o),n)))})}function Y2(t,n=0){return ji((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function Q2(t,n){if(!t)throw new Error("Iterable cannot be null");return new ci(e=>{ha(e,n,()=>{const i=t[Symbol.asyncIterator]();ha(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function Zi(t,n){return n?function Z$(t,n){if(null!=t){if(z2(t))return function $$(t,n){return Kn(t).pipe(Y2(n),Z2(n))}(t,n);if(Jy(t))return function W$(t,n){return new ci(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(j2(t))return function G$(t,n){return Kn(t).pipe(Y2(n),Z2(n))}(t,n);if(H2(t))return Q2(t,n);if(G2(t))return function q$(t,n){return new ci(e=>{let i;return ha(e,n,()=>{i=t[$2](),ha(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>J(i?.return)&&i.return()})}(t,n);if(q2(t))return function K$(t,n){return Q2(W2(t),n)}(t,n)}throw U2(t)}(t,n):Kn(t)}function Ke(...t){return Zi(t,Tu(t))}function Tn(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Kt(t,n,e){const i=J(t)||n||e?{next:t,error:n,complete:e}:t;return i?ji((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Fi(r,c=>{var u;null===(u=i.next)||void 0===u||u.call(i,c),r.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),r.complete()},c=>{var u;s=!1,null===(u=i.error)||void 0===u||u.call(i,c),r.error(c)},()=>{var c,u;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(u=i.finalize)||void 0===u||u.call(i)}))}):Ra}class lG extends de{constructor(n,e){super()}schedule(n,e=0){return this}}const Up={setInterval(t,n,...e){const{delegate:i}=Up;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Up;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class n0 extends lG{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Up.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Up.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,K(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const o0={now:()=>(o0.delegate||Date).now(),delegate:void 0};class Iu{constructor(n,e=Iu.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Iu.now=o0.now;class r0 extends Iu{constructor(n,e=Iu.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Eu=new r0(n0),dG=Eu;function $p(t,n=Eu){return ji((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const u=r;r=null,i.next(u)}};function c(){const u=a+t,p=n.now();if(p{r=u,a=n.now(),o||(o=n.schedule(c,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}function It(t,n){return ji((e,i)=>{let o=0;e.subscribe(Fi(i,r=>t.call(n,r,o++)&&i.next(r)))})}const Fo=new ci(t=>t.complete());function Nt(t){return t<=0?()=>Fo:ji((n,e)=>{let i=0;n.subscribe(Fi(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function a0(t){return It((n,e)=>t<=e)}function Ou(t,n=Ra){return t=t??hG,ji((e,i)=>{let o,r=!0;e.subscribe(Fi(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function hG(t,n){return t===n}function ot(t){return ji((n,e)=>{Kn(t).subscribe(Fi(e,()=>e.complete(),ii)),!e.closed&&n.subscribe(e)})}function $e(t){return null!=t&&"false"!=`${t}`}function vi(t,n=0){return X2(t)?Number(t):n}function X2(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Gp(t){return Array.isArray(t)?t:[t]}function hn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function pa(t){return t instanceof Be?t.nativeElement:t}let J2=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pG=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=pa(e);return new ci(o=>{const a=this._observeElement(i).subscribe(o);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new qe,o=this._mutationObserverFactory.create(r=>i.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(i){return new(i||t)(X(J2))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),eE=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=vi(e),this._subscribe()}constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new Re,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($p(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(pG),_(Be),_(We))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[pe.None,"cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Wp=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[J2]})}return t})();const{isArray:fG}=Array,{getPrototypeOf:gG,prototype:_G,keys:bG}=Object;function tE(t){if(1===t.length){const n=t[0];if(fG(n))return{args:n,keys:null};if(function vG(t){return t&&"object"==typeof t&&gG(t)===_G}(n)){const e=bG(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:yG}=Array;function s0(t){return nt(n=>function wG(t,n){return yG(n)?t(...n):t(n)}(t,n))}function iE(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Qs(...t){const n=Tu(t),e=N2(t),{args:i,keys:o}=tE(t);if(0===i.length)return Zi([],n);const r=new ci(function xG(t,n,e=Ra){return i=>{nE(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let c=0;c{const u=Zi(t[c],n);let p=!1;u.subscribe(Fi(i,g=>{r[c]=g,p||(p=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>iE(o,a):Ra));return e?r.pipe(s0(e)):r}function nE(t,n,e){t?ha(e,t,n):n()}function Mn(t,n,e=1/0){return J(n)?Mn((i,o)=>nt((r,a)=>n(i,r,o,a))(Kn(t(i,o))),e):("number"==typeof n&&(e=n),ji((i,o)=>function CG(t,n,e,i,o,r,a,s){const c=[];let u=0,p=0,g=!1;const b=()=>{g&&!c.length&&!u&&n.complete()},x=I=>u{r&&n.next(I),u++;let z=!1;Kn(e(I,p++)).subscribe(Fi(n,ie=>{o?.(ie),r?x(ie):n.next(ie)},()=>{z=!0},void 0,()=>{if(z)try{for(u--;c.length&&uT(ie)):T(ie)}b()}catch(ie){n.error(ie)}}))};return t.subscribe(Fi(n,x,()=>{g=!0,b()})),()=>{s?.()}}(i,o,t,e)))}function Sl(t=1/0){return Mn(Ra,t)}function Au(...t){return function DG(){return Sl(1)}()(Zi(t,Tu(t)))}function nn(...t){const n=Tu(t);return ji((e,i)=>{(n?Au(t,e,n):Au(t,e)).subscribe(i)})}const oE=new Set;let Xs,SG=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):TG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function kG(t,n){if(!oE.has(t))try{Xs||(Xs=document.createElement("style"),n&&(Xs.nonce=n),Xs.setAttribute("type","text/css"),document.head.appendChild(Xs)),Xs.sheet&&(Xs.sheet.insertRule(`@media ${t} {body{ }}`,0),oE.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai),X(n_,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function TG(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let c0=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new qe}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return rE(Gp(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=Qs(rE(Gp(e)).map(a=>this._registerQuery(a).observable));return r=Au(r.pipe(Nt(1)),r.pipe(a0(1),$p(0))),r.pipe(nt(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:u})=>{s.matches=s.matches||c,s.breakpoints[u]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new ci(a=>{const s=c=>this._zone.run(()=>a.next(c));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(nn(i),nt(({matches:a})=>({query:e,matches:a})),ot(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static#e=this.\u0275fac=function(i){return new(i||t)(X(SG),X(We))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rE(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function qp(t,n,e){const i=Kp(t,n);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))}function kl(t,n,e){const o=Kp(t,n).filter(r=>r!=e.trim());o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function Kp(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const sE="cdk-describedby-message",Zp="cdk-describedby-host";let l0=0,IG=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+l0++,this._document=e,this._id=we(wd)+"-"+l0++}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const r=d0(i,o);"string"!=typeof i?(cE(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,o){if(!i||!this._isElementNode(e))return;const r=d0(i,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof i){const a=this._messageRegistry.get(r);a&&0===a.referenceCount&&this._deleteMessageElement(r)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Zp}="${this._id}"]`);for(let i=0;i0!=o.indexOf(sE));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=this._messageRegistry.get(i);qp(e,"aria-describedby",o.messageElement.id),e.setAttribute(Zp,this._id),o.referenceCount++}_removeMessageReference(e,i){const o=this._messageRegistry.get(i);o.referenceCount--,kl(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Zp)}_isElementDescribedByMessage(e,i){const o=Kp(e,"aria-describedby"),r=this._messageRegistry.get(i),a=r&&r.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const o=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!o||r&&r.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(i){return new(i||t)(X(lt),X(ai))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function d0(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function cE(t,n){t.id||(t.id=`${sE}-${n}-${l0++}`)}class lE{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new qe,this._typeaheadSubscription=de.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 qe,this.change=new qe,n instanceof ta&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Kt(e=>this._pressedLetters.push(e)),$p(n),It(()=>this._pressedLetters.length>0),nt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-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 r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof ta?this._items.toArray():this._items}}class dE extends lE{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class Yp extends lE{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let Pu=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function OG(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function EG(t){try{return t.frameElement}catch{return null}}(function VG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===hE(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=hE(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function LG(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function BG(t){return!function PG(t){return function NG(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function AG(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function RG(t){return function FG(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||uE(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uE(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function hE(t){if(!uE(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class mE{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Nt(1)).subscribe(n)}}let Qp=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new mE(e,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||t)(X(Pu),X(We),X(lt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function u0(t){return 0===t.buttons||0===t.detail}function h0(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const jG=new oe("cdk-input-modality-detector-options"),zG={ignoreKeys:[18,17,224,91,16]},Tl=Ja({passive:!0,capture:!0});let HG=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new bt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ua(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(u0(a)?"keyboard":"mouse"),this._mostRecentTarget=ua(a))},this._onTouchstart=a=>{h0(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ua(a))},this._options={...zG,...r},this.modalityDetected=this._modality.pipe(a0(1)),this.modalityChanged=this.modalityDetected.pipe(Ou()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Tl),o.addEventListener("mousedown",this._onMousedown,Tl),o.addEventListener("touchstart",this._onTouchstart,Tl)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Tl),document.removeEventListener("mousedown",this._onMousedown,Tl),document.removeEventListener("touchstart",this._onTouchstart,Tl))}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai),X(We),X(lt),X(jG,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const UG=new oe("liveAnnouncerElement",{providedIn:"root",factory:function $G(){return null}}),GG=new oe("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let WG=0,m0=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),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",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,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 qe,this._rootNodeFocusAndBlurListener=s=>{for(let u=ua(s);u;u=u.parentElement)"focus"===s.type?this._onFocus(s,u):this._onBlur(s,u)},this._document=r,this._detectionMode=a?.detectionMode||0}monitor(e,i=!1){const o=pa(e);if(!this._platform.isBrowser||1!==o.nodeType)return Ke();const r=function p$(t){if(function m$(){if(null==Wy){const t=typeof document<"u"?document.head:null;Wy=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Wy}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new qe,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=pa(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=pa(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,c])=>this._originChanged(s,i,c)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=ua(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Xp),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Xp)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ot(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Xp),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Xp),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Re}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lo))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();const fE="cdk-high-contrast-black-on-white",gE="cdk-high-contrast-white-on-black",p0="cdk-high-contrast-active";let _E=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=we(c0).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 i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){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(p0,fE,gE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(p0,fE):2===i&&e.add(p0,gE)}}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai),X(lt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),f0=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||t)(X(_E))};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Wp]})}return t})();const ZG=new oe("cdk-dir-doc",{providedIn:"root",factory:function YG(){return we(lt)}}),QG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let mn=(()=>{class t{constructor(e){this.value="ltr",this.change=new Re,e&&(this.value=function XG(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?QG.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(X(ZG,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ru=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const JG=["text"];function eW(t,n){if(1&t&&D(0,"mat-pseudo-checkbox",6),2&t){const e=w();f("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function tW(t,n){1&t&&D(0,"mat-pseudo-checkbox",7),2&t&&f("disabled",w().disabled)}function iW(t,n){if(1&t&&(d(0,"span",8),h(1),l()),2&t){const e=w();m(),Me("(",e.group.label,")")}}const nW=[[["mat-icon"]],"*"],oW=["mat-icon","*"],aW=new oe("mat-sanity-checks",{providedIn:"root",factory:function rW(){return!0}});let St=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!qy()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(i){return new(i||t)(X(_E),X(aW,8),X(lt))};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Ru,Ru]})}return t})();function fa(t){return class extends t{get disabled(){return this._disabled}set disabled(n){this._disabled=$e(n)}constructor(...n){super(...n),this._disabled=!1}}}function is(t,n){return class extends t{get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...e){super(...e),this.defaultColor=n,this.color=n}}}function ns(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=$e(n)}constructor(...n){super(...n),this._disableRipple=!1}}}function os(t,n=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?vi(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}}}function g0(t){return class extends t{updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}constructor(...n){super(...n),this.errorState=!1}}}function sW(t){return class extends t{constructor(...n){super(...n),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ci(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(n){n.next(),n.complete()}}}let Jp=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class lW{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const yE=Ja({passive:!0,capture:!0});class dW{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=ua(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,yE)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,yE)))}}const wE={enterDuration:225,exitDuration:150},xE=Ja({passive:!0,capture:!0}),CE=["mousedown","touchstart"],DE=["mouseup","mouseleave","touchend","touchcancel"];class Fu{static#e=this._eventManager=new dW;constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=pa(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...wE,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function hW(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,c=e-o.top,u=r.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=s-a+"px",p.style.top=c-a+"px",p.style.height=2*a+"px",p.style.width=2*a+"px",null!=i.color&&(p.style.backgroundColor=i.color),p.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(p);const g=window.getComputedStyle(p),x=g.transitionDuration,T="none"===g.transitionProperty||"0s"===x||"0s, 0s"===x||0===o.width&&0===o.height,I=new lW(this,p,i,T);p.style.transform="scale3d(1, 1, 1)",I.state=0,i.persistent||(this._mostRecentTransientRipple=I);let z=null;return!T&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ie=()=>this._finishRippleTransition(I),ne=()=>this._destroyRipple(I);p.addEventListener("transitionend",ie),p.addEventListener("transitioncancel",ne),z={onTransitionEnd:ie,onTransitionCancel:ne}}),this._activeRipples.set(I,z),(T||!u)&&this._finishRippleTransition(I),I}fadeOutRipple(n){if(2===n.state||3===n.state)return;const e=n.element,i={...wE,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=pa(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,CE.forEach(i=>{Fu._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{DE.forEach(e=>{this._triggerElement.addEventListener(e,this,xE)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=u0(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(CE.forEach(e=>Fu._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&DE.forEach(e=>n.removeEventListener(e,this,xE)))}}const Ml=new oe("mat-ripple-global-options");let rs=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Fu(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(ai),_(Ml,8),_(di,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-ripple-unbounded",o.unbounded)},inputs:{color:[pe.None,"matRippleColor","color"],unbounded:[pe.None,"matRippleUnbounded","unbounded"],centered:[pe.None,"matRippleCentered","centered"],radius:[pe.None,"matRippleRadius","radius"],animation:[pe.None,"matRippleAnimation","animation"],disabled:[pe.None,"matRippleDisabled","disabled"],trigger:[pe.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})(),as=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,St]})}return t})(),mW=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(i){return new(i||t)(_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&et("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{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-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{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return t})(),SE=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St]})}return t})();const _0=new oe("MAT_OPTION_PARENT_COMPONENT"),b0=new oe("MatOptgroup");let pW=0;class kE{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let fW=(()=>{class t{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=$e(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+pW++,this.onSelectionChange=new Re,this._stateChanges=new qe}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}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)&&!Tn(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new kE(this,e))}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(JG,7),2&i){let r;Oe(r=Ae())&&(o._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return t})(),In=(()=>{class t extends fW{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(_0,8),_(b0,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&N("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(oo("id",o.id),Je("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),et("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},exportAs:["matOption"],features:[be],ngContentSelectors:oW,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(i,o){1&i&&(zt(nW),y(0,eW,1,2,"mat-pseudo-checkbox",0),Ze(1),d(2,"span",1,2),Ze(4,1),l(),y(5,tW,1,1,"mat-pseudo-checkbox",3)(6,iW,2,1,"span",4),D(7,"div",5)),2&i&&(f("ngIf",o.multiple),m(5),f("ngIf",!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator),m(),f("ngIf",o.group&&o.group._inert),m(),f("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[rs,Tt,mW],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-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-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();function TE(t,n,e){if(e.length){let i=n.toArray(),o=e.toArray(),r=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}let ef=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[as,Bn,St,SE]})}return t})();const IE={capture:!0},EE=["focus","click","mouseenter","touchstart"],v0="mat-ripple-loader-uninitialized",y0="mat-ripple-loader-class-name",OE="mat-ripple-loader-centered",tf="mat-ripple-loader-disabled";let AE=(()=>{class t{constructor(){this._document=we(lt,{optional:!0}),this._animationMode=we(di,{optional:!0}),this._globalRippleOptions=we(Ml,{optional:!0}),this._platform=we(ai),this._ngZone=we(We),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${v0}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of EE)this._document?.addEventListener(e,this._onInteraction,IE)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of EE)this._document?.removeEventListener(i,this._onInteraction,IE)}configureRipple(e,i){e.setAttribute(v0,""),(i.className||!e.hasAttribute(y0))&&e.setAttribute(y0,i.className||""),i.centered&&e.setAttribute(OE,""),i.disabled&&e.setAttribute(tf,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const o=this._hosts.get(e);o?o.disabled=i:i?e.setAttribute(tf,""):e.removeAttribute(tf)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(y0)),e.append(o);const r=new rs(new Be(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(OE),r.disabled=e.hasAttribute(tf),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(v0),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const gW=["*",[["mat-toolbar-row"]]],_W=["*","mat-toolbar-row"],bW=is(class{constructor(t){this._elementRef=t}});let vW=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),yW=(()=>{class t extends bW{constructor(e,i,o){super(e),this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(lt))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&&ft(r,vW,5),2&i){let a;Oe(a=Ae())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[be],ngContentSelectors:_W,decls:2,vars:0,template:function(i,o){1&i&&(zt(gW),Ze(0),Ze(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.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;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return t})(),PE=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,St]})}return t})();const RE=["mat-button",""],NE=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],FE=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],LE=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",xW=["mat-icon-button",""],CW=["*"],DW=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],SW=is(fa(ns(class{constructor(t){this._elementRef=t}})));let w0=(()=>{class t extends SW{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$e(e),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._updateRippleDisabled()}constructor(e,i,o,r){super(e),this._platform=i,this._ngZone=o,this._animationMode=r,this._focusMonitor=we(Lo),this._rippleLoader=we(AE),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const a=e.nativeElement.classList;for(const s of DW)this._hasHostAttributes(s.selector)&&s.mdcClasses.forEach(c=>{a.add(c)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,features:[be]})}return t})(),TW=(()=>{class t extends w0{constructor(e,i,o,r){super(e,i,o,r),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,features:[be]})}return t})(),Yt=(()=>{class t extends w0{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(We),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(i,o){2&i&&(Je("disabled",o.disabled||null),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[be],attrs:RE,ngContentSelectors:FE,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(zt(NE),D(0,"span",0),Ze(1),d(2,"span",1),Ze(3,1),l(),Ze(4,2),D(5,"span",2)(6,"span",3)),2&i&&et("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return t})(),BE=(()=>{class t extends TW{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(We),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:9,hostBindings:function(i,o){2&i&&(Je("disabled",o.disabled||null)("tabindex",o.disabled?-1:o.tabIndex)("aria-disabled",o.disabled.toString()),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[be],attrs:RE,ngContentSelectors:FE,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(zt(NE),D(0,"span",0),Ze(1),d(2,"span",1),Ze(3,1),l(),Ze(4,2),D(5,"span",2)(6,"span",3)),2&i&&et("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',LE],encapsulation:2,changeDetection:0})}return t})(),ga=(()=>{class t extends w0{constructor(e,i,o,r){super(e,i,o,r),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(We),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(i,o){2&i&&(Je("disabled",o.disabled||null),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[be],attrs:xW,ngContentSelectors:CW,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(zt(),D(0,"span",0),Ze(1),D(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',LE],encapsulation:2,changeDetection:0})}return t})(),nf=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,as,St]})}return t})();function Lu(t,n){const e=J(t)?t:()=>t,i=o=>o.error(e());return new ci(n?o=>n.schedule(i,0,o):i)}function x0(...t){const n=N2(t),{args:e,keys:i}=tE(t),o=new ci(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let c=a,u=a;for(let p=0;p{g||(g=!0,u--),s[p]=b},()=>c--,void 0,()=>{(!c||!g)&&(u||r.next(i?iE(i,s):s),r.complete())}))}});return n?o.pipe(s0(n)):o}function Hi(t){return ji((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Fi(e,void 0,void 0,a=>{r=Kn(t(a,Hi(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function Js(t){return ji((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function VE(t={}){const{connector:n=(()=>new qe),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,c,u=0,p=!1,g=!1;const b=()=>{s?.unsubscribe(),s=void 0},x=()=>{b(),a=c=void 0,p=g=!1},T=()=>{const I=a;x(),I?.unsubscribe()};return ji((I,z)=>{u++,!g&&!p&&b();const ie=c=c??n();z.add(()=>{u--,0===u&&!g&&!p&&(s=C0(T,o))}),ie.subscribe(z),!a&&u>0&&(a=new Cs({next:ne=>ie.next(ne),error:ne=>{g=!0,b(),s=C0(x,e,ne),ie.error(ne)},complete:()=>{p=!0,b(),s=C0(x,i),ie.complete()}}),Kn(I).subscribe(a))})(r)}}function C0(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new Cs({next:()=>{i.unsubscribe(),t()}});return Kn(n(...e)).subscribe(i)}function Il(t,n){return J(n)?Mn(t,n,1):Mn(t,1)}function pn(t,n){return ji((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Fi(i,c=>{o?.unsubscribe();let u=0;const p=r++;Kn(t(c,p)).subscribe(o=Fi(i,g=>i.next(n?n(c,g,p,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}class rf{}class af{}class Qo{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Qo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Qo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Qo?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),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(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class IW{encodeKey(n){return jE(n)}encodeValue(n){return jE(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const OW=/%(\d[a-f0-9])/gi,AW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function jE(t){return encodeURIComponent(t).replace(OW,(n,e)=>AW[e]??n)}function sf(t){return`${t}`}class ss{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new IW,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function EW(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(sf):[sf(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new ss({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(sf(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(sf(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class PW{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function zE(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function HE(t){return typeof Blob<"u"&&t instanceof Blob}function UE(t){return typeof FormData<"u"&&t instanceof FormData}class Bu{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function RW(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!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Qo,this.context??=new PW,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sg.set(b,n.setHeaders[b]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((g,b)=>g.set(b,n.setParams[b]),u)),new Bu(e,i,r,{params:u,headers:c,context:p,reportProgress:s,responseType:o,withCredentials:a})}}var cs=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}(cs||{});class D0{constructor(n,e=Vu.Ok,i="OK"){this.headers=n.headers||new Qo,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class cf extends D0{constructor(n={}){super(n),this.type=cs.ResponseHeader}clone(n={}){return new cf({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ec extends D0{constructor(n={}){super(n),this.type=cs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ec({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class El extends D0{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var Vu=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Vu||{});function S0(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let lf=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof Bu)r=e;else{let c,u;c=o.headers instanceof Qo?o.headers:new Qo(o.headers),o.params&&(u=o.params instanceof ss?o.params:new ss({fromObject:o.params})),r=new Bu(e,i,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Ke(r).pipe(Il(c=>this.handler.handle(c)));if(e instanceof Bu||"events"===o.observe)return a;const s=a.pipe(It(c=>c instanceof ec));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return s.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return s.pipe(nt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe(nt(c=>c.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ss).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,S0(o,i))}post(e,i,o={}){return this.request("POST",e,S0(o,i))}put(e,i,o={}){return this.request("PUT",e,S0(o,i))}static#e=this.\u0275fac=function(i){return new(i||t)(X(rf))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();function GE(t,n){return n(t)}function jW(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const WE=new oe(""),ju=new oe(""),qE=new oe(""),KE=new oe("");function HW(){let t=null;return(n,e)=>{null===t&&(t=(we(WE,{optional:!0})??[]).reduceRight(jW,GE));const i=we(Bs),o=i.add();return t(n,e).pipe(Js(()=>i.remove(o)))}}let ZE=(()=>{class t extends rf{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=we(Bs);const o=we(KE,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(ju),...this.injector.get(qE,[])]));this.chain=o.reduceRight((r,a)=>function zW(t,n,e){return(i,o)=>Ha(e,()=>n(i,r=>t(r,o)))}(r,a,this.injector),GE)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Js(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||t)(X(af),X(Io))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const qW=/^\)\]\}',?\n/;let QE=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new ue(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?Zi(i.\u0275loadImpl()):Ke(null)).pipe(pn(()=>new ci(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((I,z)=>a.setRequestHeader(I,z.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const I=e.detectContentTypeHeader();null!==I&&a.setRequestHeader("Content-Type",I)}if(e.responseType){const I=e.responseType.toLowerCase();a.responseType="json"!==I?I:"text"}const s=e.serializeBody();let c=null;const u=()=>{if(null!==c)return c;const I=a.statusText||"OK",z=new Qo(a.getAllResponseHeaders()),ie=function KW(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 c=new cf({headers:z,status:a.status,statusText:I,url:ie}),c},p=()=>{let{headers:I,status:z,statusText:ie,url:ne}=u(),Ue=null;z!==Vu.NoContent&&(Ue=typeof a.response>"u"?a.responseText:a.response),0===z&&(z=Ue?Vu.Ok:0);let tt=z>=200&&z<300;if("json"===e.responseType&&"string"==typeof Ue){const pt=Ue;Ue=Ue.replace(qW,"");try{Ue=""!==Ue?JSON.parse(Ue):null}catch(Vt){Ue=pt,tt&&(tt=!1,Ue={error:Vt,text:Ue})}}tt?(r.next(new ec({body:Ue,headers:I,status:z,statusText:ie,url:ne||void 0})),r.complete()):r.error(new El({error:Ue,headers:I,status:z,statusText:ie,url:ne||void 0}))},g=I=>{const{url:z}=u(),ie=new El({error:I,status:a.status||0,statusText:a.statusText||"Unknown Error",url:z||void 0});r.error(ie)};let b=!1;const x=I=>{b||(r.next(u()),b=!0);let z={type:cs.DownloadProgress,loaded:I.loaded};I.lengthComputable&&(z.total=I.total),"text"===e.responseType&&a.responseText&&(z.partialText=a.responseText),r.next(z)},T=I=>{let z={type:cs.UploadProgress,loaded:I.loaded};I.lengthComputable&&(z.total=I.total),r.next(z)};return a.addEventListener("load",p),a.addEventListener("error",g),a.addEventListener("timeout",g),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",x),null!==s&&a.upload&&a.upload.addEventListener("progress",T)),a.send(s),r.next({type:cs.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",p),a.removeEventListener("timeout",g),e.reportProgress&&(a.removeEventListener("progress",x),null!==s&&a.upload&&a.upload.removeEventListener("progress",T)),a.readyState!==a.DONE&&a.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||t)(X(kI))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const M0=new oe(""),XE=new oe("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),JE=new oe("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class eO{}let QW=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,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=hI(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(X(lt),X(ia),X(XE))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();function XW(t,n){const e=t.url.toLowerCase();if(!we(M0)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=we(eO).getToken(),o=we(JE);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var ls=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}(ls||{});function JW(...t){const n=[lf,QE,ZE,{provide:rf,useExisting:ZE},{provide:af,useExisting:QE},{provide:ju,useValue:XW,multi:!0},{provide:M0,useValue:!0},{provide:eO,useClass:QW}];for(const e of t)n.push(...e.\u0275providers);return function Kh(t){return{\u0275providers:t}}(n)}const tO=new oe("");function eq(){return function tc(t,n){return{\u0275kind:t,\u0275providers:n}}(ls.LegacyInterceptors,[{provide:tO,useFactory:HW},{provide:ju,useExisting:tO,multi:!0}])}let tq=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[JW(eq())]})}return t})();const sq=["*"];let uf;function zu(t){return function cq(){if(void 0===uf&&(uf=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(uf=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return uf}()?.createHTML(t)||t}function cO(t){return Error(`Unable to find icon with the name "${t}"`)}function lO(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function dO(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class ic{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let hf=(()=>{class t{constructor(e,i,o,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,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,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,r){return this._addSvgIconConfig(e,i,new ic(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,r){const a=this._sanitizer.sanitize(Fn.HTML,o);if(!a)throw dO(o);const s=zu(a);return this._addSvgIconConfig(e,i,new ic("",s,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new ic(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const r=this._sanitizer.sanitize(Fn.HTML,i);if(!r)throw dO(i);const a=zu(r);return this._addSvgIconSetConfig(e,new ic("",a,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Fn.RESOURCE_URL,e);if(!i)throw lO(e);const o=this._cachedIconsByUrl.get(i);return o?Ke(mf(o)):this._loadSvgIconFromConfig(new ic(e,null)).pipe(Kt(r=>this._cachedIconsByUrl.set(i,r)),nt(r=>mf(r)))}getNamedSvgIcon(e,i=""){const o=uO(i,e);let r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);const a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Lu(cO(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Ke(mf(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(nt(i=>mf(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?Ke(o):x0(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Hi(s=>{const u=`Loading icon set URL: ${this._sanitizer.sanitize(Fn.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Ke(null)})))).pipe(nt(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw cO(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Kt(i=>e.svgText=i),nt(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Ke(null):this._fetchIcon(e).pipe(Kt(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const a=r.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 s=this._svgElementFromString(zu(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const i=this._svgElementFromString(zu("")),o=e.attributes;for(let r=0;rzu(u)),Js(()=>this._inProgressUrlFetches.delete(a)),VE());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(uO(e,i),o),this}_addSvgIconSetConfig(e,i){const o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;on?n.pathname+n.search:""}}}),hO=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],gq=hO.map(t=>`[${t}]`).join(", "),_q=/^url\(['"]?#(.*?)['"]?\)$/;let Ii=(()=>{class t extends hq{get inline(){return this._inline}set inline(e){this._inline=$e(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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,o,r,a,s){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=de.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const o=e.childNodes[i];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),i.forEach(o=>e.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(gq),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{const s=i[r],c=s.getAttribute(a),u=c?c.match(_q):null;if(u){let p=o.get(s);p||(p=[],o.set(s,p)),p.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(Nt(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${r.message}`))})}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(hf),io("aria-hidden"),_(pq),_(Ho),_(mq,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(i,o){2&i&&(Je("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),et("mat-icon-inline",o.inline)("mat-icon-no-color","primary"!==o.color&&"accent"!==o.color&&"warn"!==o.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[be],ngContentSelectors:sq,decls:1,vars:0,template:function(i,o){1&i&&(zt(),Ze(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.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})}return t})(),mO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,St]})}return t})();const bq=["*"],wq=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],xq=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],Cq=new oe("MAT_CARD_CONFIG");let Hu=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}static#e=this.\u0275fac=function(i){return new(i||t)(_(Cq,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-mdc-card-outlined","outlined"===o.appearance)("mdc-card--outlined","outlined"===o.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:bq,decls:1,vars:0,template:function(i,o){1&i&&(zt(),Ze(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return t})(),I0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})(),E0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})(),pO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:xq,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,o){1&i&&(zt(wq),Ze(0),d(1,"div",0),Ze(2,1),l(),Ze(3,2))},encapsulation:2,changeDetection:0})}return t})(),fO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,Bn,St]})}return t})();const Tq=new oe("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Iq=is(class{constructor(t){this._elementRef=t}},"primary");let gO=(()=>{class t extends Iq{constructor(e,i,o,r,a){super(e),this._ngZone=i,this._changeDetectorRef=o,this._animationMode=r,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new Re,this._mode="determinate",this._transitionendHandler=s=>{0===this.animationEnd.observers.length||!s.target||!s.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===r,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=_O(vi(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=_O(vi(e)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(Ft),_(di,8),_(Tq,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(i,o){2&i&&(Je("aria-valuenow",o._isIndeterminate()?null:o.value)("mode",o.mode),et("_mat-animation-noopable",o._isNoopAnimation)("mdc-linear-progress--animation-ready",!o._isNoopAnimation)("mdc-linear-progress--indeterminate",o._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[be],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(i,o){1&i&&(d(0,"div",0),D(1,"div",1)(2,"div",2),l(),d(3,"div",3),D(4,"span",4),l(),d(5,"div",5),D(6,"span",4),l()),2&i&&(m(),yn("flex-basis",o._getBufferBarFlexBasis()),m(2),yn("transform",o._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-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(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-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 mdc-linear-progress-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(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{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(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{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(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return t})();function _O(t,n=0,e=100){return Math.max(n,Math.min(e,t))}let bO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St]})}return t})();function Ei(...t){const n=Tu(t),e=function f$(t,n){return"number"==typeof Ky(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Kn(i[0]):Sl(e)(Zi(i,n)):Fo}let vO=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=$e(e)}get inset(){return this._inset}set inset(e){this._inset=$e(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,o){2&i&&(Je("aria-orientation",o.vertical?"vertical":"horizontal"),et("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,o){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.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})}return t})(),O0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,St]})}return t})();function A0(){return ji((t,n)=>{let e=null;t._refCount++;const i=Fi(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class P0 extends ci{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Ix(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new de;const e=this.getSubject();n.add(this.source.subscribe(Fi(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=de.EMPTY)}return n}refCount(){return A0()(this)}}function Ol(t){return!!t&&(t instanceof ci||J(t.lift)&&J(t.subscribe))}class pf{}function ff(t){return t&&"function"==typeof t.connect&&!(t instanceof P0)}class yO{applyChanges(n,e,i,o,r){n.forEachOperation((a,s,c)=>{let u,p;if(null==a.previousIndex){const g=i(a,s,c);u=e.createEmbeddedView(g.templateRef,g.context,g.index),p=1}else null==c?(e.remove(s),p=3):(u=e.get(s),e.move(u,c),p=2);r&&r({context:u?.context,operation:p,record:a})})}detach(){}}class Uu{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,o){this._multiple=n,this._emitChanges=i,this.compareWith=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new qe,e&&e.length&&(n?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);const e=this.selected,i=new Set(n);n.forEach(r=>this._markSelected(r)),e.filter(r=>!i.has(r)).forEach(r=>this._unmarkSelected(r));const o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(n){if(this.compareWith){for(let e of this._selection)if(this.compareWith(n,e))return e;return n}return n}}let R0=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const $u=new oe("_ViewRepeater");let xO=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(ra),_(Be))};static#t=this.\u0275dir=Q({type:t})}return t})(),nc=(()=>{class t extends xO{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,features:[be]})}return t})();const co=new oe(""),Oq={provide:co,useExisting:qt(()=>Oi),multi:!0},Pq=new oe("");let Oi=(()=>{class t extends xO{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Aq(){const t=Qa()?Qa().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(ra),_(Be),_(Pq,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&N("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:[Ye([Oq]),be]})}return t})();function ds(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function DO(t){return null!=t&&"number"==typeof t.length}const Vn=new oe(""),us=new oe(""),Rq=/^(?=.{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 ce{static min(n){return function SO(t){return n=>{if(ds(n.value)||ds(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(ds(n.value)||ds(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return TO(n)}static requiredTrue(n){return function MO(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function IO(t){return ds(t.value)||Rq.test(t.value)?null:{email:!0}}(n)}static minLength(n){return EO(n)}static maxLength(n){return OO(n)}static pattern(n){return AO(n)}static nullValidator(n){return null}static compose(n){return BO(n)}static composeAsync(n){return VO(n)}}function TO(t){return ds(t.value)?{required:!0}:null}function EO(t){return n=>ds(n.value)||!DO(n.value)?null:n.value.lengthDO(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function AO(t){if(!t)return gf;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(ds(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function gf(t){return null}function PO(t){return null!=t}function RO(t){return uu(t)?Zi(t):t}function NO(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function FO(t,n){return n.map(e=>e(t))}function LO(t){return t.map(n=>function Nq(t){return!t.validate}(n)?n:e=>n.validate(e))}function BO(t){if(!t)return null;const n=t.filter(PO);return 0==n.length?null:function(e){return NO(FO(e,n))}}function N0(t){return null!=t?BO(LO(t)):null}function VO(t){if(!t)return null;const n=t.filter(PO);return 0==n.length?null:function(e){return x0(FO(e,n).map(RO)).pipe(nt(NO))}}function F0(t){return null!=t?VO(LO(t)):null}function jO(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function zO(t){return t._rawValidators}function HO(t){return t._rawAsyncValidators}function L0(t){return t?Array.isArray(t)?t:[t]:[]}function _f(t,n){return Array.isArray(t)?t.includes(n):t===n}function UO(t,n){const e=L0(n);return L0(t).forEach(o=>{_f(e,o)||e.push(o)}),e}function $O(t,n){return L0(n).filter(e=>!_f(t,e))}class GO{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=N0(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=F0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class lo extends GO{get formDirective(){return null}get path(){return null}}class xr extends GO{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class WO{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let xi=(()=>{class t extends WO{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(xr,2))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&et("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:[be]})}return t})(),Ui=(()=>{class t extends WO{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(lo,10))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){2&i&&et("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:[be]})}return t})();const Gu="VALID",vf="INVALID",Al="PENDING",Wu="DISABLED";function j0(t){return(yf(t)?t.validators:t)||null}function z0(t,n){return(yf(n)?n.asyncValidators:t)||null}function yf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function KO(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new ue(1e3,"");if(!i[e])throw new ue(1001,"")}function ZO(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new ue(1002,"")})}class wf{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Gu}get invalid(){return this.status===vf}get pending(){return this.status==Al}get disabled(){return this.status===Wu}get enabled(){return this.status!==Wu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(UO(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(UO(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators($O(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators($O(n,this._rawAsyncValidators))}hasValidator(n){return _f(this._rawValidators,n)}hasAsyncValidator(n){return _f(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Al,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Wu,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Gu,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Gu||this.status===Al)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Wu:Gu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Al,this._hasOwnPendingAsyncValidator=!0;const e=RO(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Re,this.statusChanges=new Re}_calculateStatus(){return this._allControlsDisabled()?Wu:this.errors?vf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Al)?Al:this._anyControlsHaveStatus(vf)?vf:Gu}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){yf(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function Vq(t){return Array.isArray(t)?N0(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function jq(t){return Array.isArray(t)?F0(t):t||null}(this._rawAsyncValidators)}}class ei extends wf{constructor(n,e,i){super(j0(e),z0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){ZO(this,0,n),Object.keys(n).forEach(i=>{KO(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class YO extends ei{}const oc=new oe("CallSetDisabledState",{providedIn:"root",factory:()=>qu}),qu="always";function xf(t,n){return[...n.path,t]}function Ku(t,n,e=qu){H0(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function Hq(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&QO(t,n)})}(t,n),function $q(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function Uq(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&QO(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function zq(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Cf(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Sf(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Df(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function H0(t,n){const e=zO(t);null!==n.validator?t.setValidators(jO(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=HO(t);null!==n.asyncValidator?t.setAsyncValidators(jO(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();Df(n._rawValidators,o),Df(n._rawAsyncValidators,o)}function Sf(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=zO(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=HO(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return Df(n._rawValidators,i),Df(n._rawAsyncValidators,i),e}function QO(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function XO(t,n){H0(t,n)}function $0(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function JO(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function G0(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===Oi?e=r:function qq(t){return Object.getPrototypeOf(t.constructor)===nc}(r)?i=r:o=r}),o||i||e||null}const Zq={provide:lo,useExisting:qt(()=>hs)},Zu=Promise.resolve();let hs=(()=>{class t extends lo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Re,this.form=new ei({},N0(e),F0(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Zu.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Ku(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Zu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Zu.then(()=>{const i=this._findContainer(e.path),o=new ei({});XO(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Zu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Zu.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,JO(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static#e=this.\u0275fac=function(i){return new(i||t)(_(Vn,10),_(us,10),_(oc,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&N("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[pe.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([Zq]),be]})}return t})();function eA(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function tA(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Z=class extends wf{constructor(n=null,e,i){super(j0(e),z0(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),yf(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=tA(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){eA(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){eA(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){tA(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let iA=(()=>{class t extends lo{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return xf(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,features:[be]})}return t})();const Xq={provide:xr,useExisting:qt(()=>Pl)},oA=Promise.resolve();let Pl=(()=>{class t extends xr{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Z,this._registered=!1,this.name="",this.update=new Re,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=G0(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),$0(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(){Ku(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){oA.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&vl(i);oA.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?xf(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(_(lo,9),_(Vn,10),_(us,10),_(co,10),_(Ft,8),_(oc,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[pe.None,"disabled","isDisabled"],model:[pe.None,"ngModel","model"],options:[pe.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ye([Xq]),be,fi]})}return t})(),En=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})();const Jq={provide:co,useExisting:qt(()=>W0),multi:!0};let W0=(()=>{class t extends nc{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){1&i&&N("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Ye([Jq]),be]})}return t})();const q0=new oe(""),nK={provide:xr,useExisting:qt(()=>Rl)};let Rl=(()=>{class t extends xr{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Re,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=G0(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Cf(i,this,!1),Ku(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}$0(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Cf(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(i){return new(i||t)(_(Vn,10),_(us,10),_(co,10),_(q0,8),_(oc,8))};static#i=this.\u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[pe.None,"formControl","form"],isDisabled:[pe.None,"disabled","isDisabled"],model:[pe.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ye([nK]),be,fi]})}return t})();const oK={provide:lo,useExisting:qt(()=>Ai)};let Ai=(()=>{class t extends lo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Re,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Sf(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Ku(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Cf(e.control||null,e,!1),function Kq(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,JO(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(Cf(i||null,e),(t=>t instanceof Z)(o)&&(Ku(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);XO(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function Gq(t,n){return Sf(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){H0(this.form,this),this._oldForm&&Sf(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Vn,10),_(us,10),_(oc,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&N("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[pe.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([oK]),be,fi]})}return t})();const rK={provide:lo,useExisting:qt(()=>Yu)};let Yu=(()=>{class t extends iA{constructor(e,i,o){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){sA(this._parent)}static#e=this.\u0275fac=function(i){return new(i||t)(_(lo,13),_(Vn,10),_(us,10))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formGroupName",""]],inputs:{name:[pe.None,"formGroupName","name"]},features:[Ye([rK]),be]})}return t})();const aK={provide:lo,useExisting:qt(()=>Qu)};let Qu=(()=>{class t extends lo{constructor(e,i,o){super(),this.name=null,this._parent=e,this._setValidators(i),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 xf(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){sA(this._parent)}static#e=this.\u0275fac=function(i){return new(i||t)(_(lo,13),_(Vn,10),_(us,10))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formArrayName",""]],inputs:{name:[pe.None,"formArrayName","name"]},features:[Ye([aK]),be]})}return t})();function sA(t){return!(t instanceof Yu||t instanceof Ai||t instanceof Qu)}const sK={provide:xr,useExisting:qt(()=>Yi)};let Yi=(()=>{class t extends xr{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Re,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=G0(0,r)}ngOnChanges(e){this._added||this._setUpControl(),$0(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 xf(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(i){return new(i||t)(_(lo,13),_(Vn,10),_(us,10),_(co,10),_(q0,8))};static#i=this.\u0275dir=Q({type:t,selectors:[["","formControlName",""]],inputs:{name:[pe.None,"formControlName","name"],isDisabled:[pe.None,"disabled","isDisabled"],model:[pe.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ye([sK]),be,fi]})}return t})();function dA(t){return"number"==typeof t?t:parseInt(t,10)}let rc=(()=>{class t{constructor(){this._validator=gf}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):gf,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,features:[fi]})}return t})();const gK={provide:Vn,useExisting:qt(()=>Bo),multi:!0};let Bo=(()=>{class t extends rc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=vl,this.createValidator=e=>TO}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&Je("required",o._enabled?"":null)},inputs:{required:"required"},features:[Ye([gK]),be]})}return t})();const vK={provide:Vn,useExisting:qt(()=>Q0),multi:!0};let Q0=(()=>{class t extends rc{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>dA(e),this.createValidator=e=>EO(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Je("minlength",o._enabled?o.minlength:null)},inputs:{minlength:"minlength"},features:[Ye([vK]),be]})}return t})();const yK={provide:Vn,useExisting:qt(()=>X0),multi:!0};let X0=(()=>{class t extends rc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>dA(e),this.createValidator=e=>OO(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Je("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ye([yK]),be]})}return t})();const wK={provide:Vn,useExisting:qt(()=>J0),multi:!0};let J0=(()=>{class t extends rc{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>AO(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Je("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[Ye([wK]),be]})}return t})(),fA=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();class gA extends wf{constructor(n,e,i){super(j0(e),z0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);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:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){ZO(this,0,n),n.forEach((i,o)=>{KO(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function _A(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let _a=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return _A(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new ei(o,r)}record(e,i=null){const o=this._reduceControls(e);return new YO(o,i)}control(e,i,o){let r={};return this.useNonNullable?(_A(i)?r=i:(r.validators=i,r.asyncValidators=o),new Z(e,{...r,nonNullable:!0})):new Z(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new gA(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof Z||e instanceof wf?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xK=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:oc,useValue:e.callSetDisabledState??qu}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[fA]})}return t})(),bA=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:q0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:oc,useValue:e.callSetDisabledState??qu}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[fA]})}return t})(),CA=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Wp,Bn,St,as,SE,O0]})}return t})();class XK extends qe{constructor(n=1/0,e=1/0,i=o0){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(i.push(n),!o&&i.push(r.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let a=0;athis._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new ci(e=>{const i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(It(e=>e.some(i=>i.target===n)),function JK(t,n,e){let i,o=!1;return t&&"object"==typeof t?({bufferSize:i=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:e}=t):i=t??1/0,VE({connector:()=>new XK(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}({bufferSize:1,refCount:!0}),ot(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let tZ=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=we(We)}ngOnDestroy(){for(const[,e]of this._observers)e.destroy();this._observers.clear()}observe(e,i){const o=i?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new eZ(o)),this._observers.get(o).observe(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const iZ=["notch"],nZ=["matFormFieldNotchedOutline",""],oZ=["*"],rZ=["textField"],aZ=["iconPrefixContainer"],sZ=["textPrefixContainer"];function cZ(t,n){1&t&&D(0,"span",19)}function lZ(t,n){if(1&t&&(d(0,"label",17),Ze(1,1),y(2,cZ,1,0,"span",18),l()),2&t){const e=w(2);f("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),Je("for",e._control.id),m(2),f("ngIf",!e.hideRequiredMarker&&e._control.required)}}function dZ(t,n){1&t&&y(0,lZ,3,5,"label",16),2&t&&f("ngIf",w()._hasFloatingLabel())}function uZ(t,n){1&t&&D(0,"div",20)}function hZ(t,n){}function mZ(t,n){1&t&&y(0,hZ,0,0,"ng-template",22),2&t&&(w(2),f("ngTemplateOutlet",Rt(1)))}function pZ(t,n){if(1&t&&(d(0,"div",21),y(1,mZ,1,1,"ng-template",9),l()),2&t){const e=w();f("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),f("ngIf",!e._forceDisplayInfixLabel())}}function fZ(t,n){1&t&&(d(0,"div",23,24),Ze(2,2),l())}function gZ(t,n){1&t&&(d(0,"div",25,26),Ze(2,3),l())}function _Z(t,n){}function bZ(t,n){1&t&&y(0,_Z,0,0,"ng-template",22),2&t&&(w(),f("ngTemplateOutlet",Rt(1)))}function vZ(t,n){1&t&&(d(0,"div",27),Ze(1,4),l())}function yZ(t,n){1&t&&(d(0,"div",28),Ze(1,5),l())}function wZ(t,n){1&t&&D(0,"div",29)}function xZ(t,n){1&t&&(d(0,"div",30),Ze(1,6),l()),2&t&&f("@transitionMessages",w()._subscriptAnimationState)}function CZ(t,n){if(1&t&&(d(0,"mat-hint",34),h(1),l()),2&t){const e=w(2);f("id",e._hintLabelId),m(),Fe(e.hintLabel)}}function DZ(t,n){if(1&t&&(d(0,"div",31),y(1,CZ,2,2,"mat-hint",32),Ze(2,7),D(3,"div",33),Ze(4,8),l()),2&t){const e=w();f("@transitionMessages",e._subscriptAnimationState),m(),f("ngIf",e.hintLabel)}}const SZ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],kZ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Pi=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),TZ=0;const DA=new oe("MatError");let tw=(()=>{class t{constructor(e,i){this.id="mat-mdc-error-"+TZ++,e||i.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(i){return new(i||t)(io("aria-live"),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,o){2&i&&oo("id",o.id)},inputs:{id:"id"},features:[Ye([{provide:DA,useExisting:t}])]})}return t})(),MZ=0,Nl=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+MZ++}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,o){2&i&&(oo("id",o.id),Je("align",null),et("mat-mdc-form-field-hint-end","end"===o.align))},inputs:{align:"align",id:"id"}})}return t})();const IZ=new oe("MatPrefix"),SA=new oe("MatSuffix");let iw=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[pe.None,"matTextSuffix","_isTextSelector"]},features:[Ye([{provide:SA,useExisting:t}])]})}return t})();const kA=new oe("FloatingLabelParent");let TA=(()=>{class t{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=we(tZ),this._ngZone=we(We),this._parent=we(kA),this._resizeSubscription=new de}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function EZ(t){if(null!==t.offsetParent)return t.scrollWidth;const e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,o){2&i&&et("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();const MA="mdc-line-ripple--active",kf="mdc-line-ripple--deactivating";let IA=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=o=>{const r=this._elementRef.nativeElement.classList,a=r.contains(kf);"opacity"===o.propertyName&&a&&r.remove(MA,kf)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(kf),e.add(MA)}deactivate(){this._elementRef.nativeElement.classList.add(kf)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We))};static#t=this.\u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),EA=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){this._notch.nativeElement.style.width=this.open&&e?`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,o){if(1&i&&vt(iZ,5),2&i){let r;Oe(r=Ae())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,o){2&i&&et("mdc-notched-outline--notched",o.open)},inputs:{open:[pe.None,"matFormFieldNotchedOutlineOpen","open"]},attrs:nZ,ngContentSelectors:oZ,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(i,o){1&i&&(zt(),D(0,"div",0),d(1,"div",1,2),Ze(3),l(),D(4,"div",3))},encapsulation:2,changeDetection:0})}return t})();const OZ={transitionMessages:Po("transitionMessages",[un("enter",Wt({opacity:1,transform:"translateY(0%)"})),Ki("void => enter",[Wt({opacity:0,transform:"translateY(-5px)"}),qi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Tf=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t})}return t})();const Xu=new oe("MatFormField"),AZ=new oe("MAT_FORM_FIELD_DEFAULT_OPTIONS");let OA=0,Ri=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=$e(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,o,r,a,s,c,u){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=r,this._platform=a,this._defaults=s,this._animationMode=c,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+OA++,this._hintLabelId="mat-mdc-hint-"+OA++,this._subscriptAnimationState="",this._destroyed=new qe,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=!!s?.hideRequiredMarker,s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ot(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Ei(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ot(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(ot(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_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 i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,o=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,r=i?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${r+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(We),_(mn),_(ai),_(AZ,8),_(di,8),_(lt))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,Pi,5),ft(r,Pi,7),ft(r,Tf,5),ft(r,IZ,5),ft(r,SA,5),ft(r,DA,5),ft(r,Nl,5)),2&i){let a;Oe(a=Ae())&&(o._labelChildNonStatic=a.first),Oe(a=Ae())&&(o._labelChildStatic=a.first),Oe(a=Ae())&&(o._formFieldControl=a.first),Oe(a=Ae())&&(o._prefixChildren=a),Oe(a=Ae())&&(o._suffixChildren=a),Oe(a=Ae())&&(o._errorChildren=a),Oe(a=Ae())&&(o._hintChildren=a)}},viewQuery:function(i,o){if(1&i&&(vt(rZ,5),vt(aZ,5),vt(sZ,5),vt(TA,5),vt(EA,5),vt(IA,5)),2&i){let r;Oe(r=Ae())&&(o._textField=r.first),Oe(r=Ae())&&(o._iconPrefixContainer=r.first),Oe(r=Ae())&&(o._textPrefixContainer=r.first),Oe(r=Ae())&&(o._floatingLabel=r.first),Oe(r=Ae())&&(o._notchedOutline=r.first),Oe(r=Ae())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,o){2&i&&et("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===o._animationMode)("mat-form-field-appearance-fill","fill"==o.appearance)("mat-form-field-appearance-outline","outline"==o.appearance)("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary","accent"!==o.color&&"warn"!==o.color)("mat-accent","accent"===o.color)("mat-warn","warn"===o.color)("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ye([{provide:Xu,useExisting:t},{provide:kA,useExisting:t}])],ngContentSelectors:kZ,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(i,o){1&i&&(zt(SZ),y(0,dZ,1,1,"ng-template",null,0,_r),d(2,"div",1,2),N("click",function(a){return o._control.onContainerClick(a)}),y(4,uZ,1,0,"div",3),d(5,"div",4),y(6,pZ,2,2,"div",5)(7,fZ,3,0,"div",6)(8,gZ,3,0,"div",7),d(9,"div",8),y(10,bZ,1,1,"ng-template",9),Ze(11),l(),y(12,vZ,2,0,"div",10)(13,yZ,2,0,"div",11),l(),y(14,wZ,1,0,"div",12),l(),d(15,"div",13),y(16,xZ,2,1,"div",14)(17,DZ,5,2,"div",15),l()),2&i&&(m(2),et("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),m(2),f("ngIf",!o._hasOutline()&&!o._control.disabled),m(2),f("ngIf",o._hasOutline()),m(),f("ngIf",o._hasIconPrefix),m(),f("ngIf",o._hasTextPrefix),m(2),f("ngIf",!o._hasOutline()||o._forceDisplayInfixLabel()),m(2),f("ngIf",o._hasTextSuffix),m(),f("ngIf",o._hasIconSuffix),m(),f("ngIf",!o._hasOutline()),m(),et("mat-mdc-form-field-subscript-dynamic-size","dynamic"===o.subscriptSizing),f("ngSwitch",o._getDisplayedMessages()),m(),f("ngSwitchCase","error"),m(),f("ngSwitchCase","hint"))},dependencies:[Tt,Cp,wl,xp,Nl,TA,EA,IA],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-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;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[OZ.transitionMessages]},changeDetection:0})}return t})(),Ju=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,Bn,Wp,St]})}return t})();const NZ=["addListener","removeListener"],FZ=["addEventListener","removeEventListener"],LZ=["on","off"];function Xo(t,n,e,i){if(J(e)&&(i=e,e=void 0),i)return Xo(t,n,e).pipe(s0(i));const[o,r]=function jZ(t){return J(t.addEventListener)&&J(t.removeEventListener)}(t)?FZ.map(a=>s=>t[a](n,s,e)):function BZ(t){return J(t.addListener)&&J(t.removeListener)}(t)?NZ.map(RA(t,n)):function VZ(t){return J(t.on)&&J(t.off)}(t)?LZ.map(RA(t,n)):[];if(!o&&Jy(t))return Mn(a=>Xo(a,n,e))(Kn(t));if(!o)throw new TypeError("Invalid event target");return new ci(a=>{const s=(...c)=>a.next(1r(s)})}function RA(t,n){return e=>i=>t[e](n,i)}function Mf(t=0,n,e=dG){let i=-1;return null!=n&&(R2(n)?e=n:i=n),new ci(o=>{let r=function HZ(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function nw(t,n=Eu){return function zZ(t){return ji((n,e)=>{let i=!1,o=null,r=null,a=!1;const s=()=>{if(r?.unsubscribe(),r=null,i){i=!1;const u=o;o=null,e.next(u)}a&&e.complete()},c=()=>{r=null,a&&e.complete()};n.subscribe(Fi(e,u=>{i=!0,o=u,r||Kn(t(u)).subscribe(r=Fi(e,s,c))},()=>{a=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>Mf(t,n))}const NA=Ja({passive:!0});let UZ=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Fo;const i=pa(e),o=this._monitoredElements.get(i);if(o)return o.subject;const r=new qe,a="cdk-text-field-autofilled",s=c=>{"cdk-text-field-autofill-start"!==c.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",s,NA),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",s,NA)}}),r}stopMonitoring(e){const i=pa(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai),X(We))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),FA=(()=>{class t{get minRows(){return this._minRows}set minRows(e){this._minRows=vi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=vi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=$e(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(e,i,o,r){this._elementRef=e,this._platform=i,this._ngZone=o,this._destroyed=new qe,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=a=>{this._hasFocus="focus"===a.type},this._document=r,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Xo(this._getWindow(),"resize").pipe(nw(16),ot(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,i=e.style.marginBottom||"",o=this._platform.FIREFOX,r=o&&this._hasFocus,a=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";r&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);const s=e.scrollHeight-4;return e.classList.remove(a),r&&(e.style.marginBottom=i),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const i=this._elementRef.nativeElement,o=i.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const r=this._measureScrollHeight(),a=Math.max(r,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:i,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(We),_(lt,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,o){1&i&&N("input",function(){return o._noopInputHandler()})},inputs:{minRows:[pe.None,"cdkAutosizeMinRows","minRows"],maxRows:[pe.None,"cdkAutosizeMaxRows","maxRows"],enabled:[pe.None,"cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),$Z=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const GZ=new oe("MAT_INPUT_VALUE_ACCESSOR"),WZ=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let qZ=0;const KZ=g0(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new qe}});let on=(()=>{class t extends KZ{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(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(ce.required)??!1}set required(e){this._required=$e(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&A2().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=$e(e)}constructor(e,i,o,r,a,s,c,u,p,g){super(s,r,a,o),this._elementRef=e,this._platform=i,this._autofillMonitor=u,this._formField=g,this._uid="mat-input-"+qZ++,this.focused=!1,this.stateChanges=new qe,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(T=>A2().has(T)),this._iOSKeyupListener=T=>{const I=T.target;!I.value&&0===I.selectionStart&&0===I.selectionEnd&&(I.setSelectionRange(1,1),I.setSelectionRange(0,0))};const b=this._elementRef.nativeElement,x=b.nodeName.toLowerCase();this._inputValueAccessor=c||b,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&p.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===x,this._isTextarea="textarea"===x,this._isInFormField=!!g,this._isNativeSelect&&(this.controlType=b.multiple?"mat-native-select-multiple":"mat-native-select")}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(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){WZ.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.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)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(xr,10),_(hs,8),_(Ai,8),_(Jp),_(GZ,10),_(UZ),_(We),_(Xu,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(i,o){1&i&&N("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),2&i&&(oo("id",o.id)("disabled",o.disabled)("required",o.required),Je("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),et("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[pe.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Ye([{provide:Tf,useExisting:t}]),be,fi]})}return t})(),LA=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,Ju,Ju,$Z,St]})}return t})();const eh={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=eh;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=n(r=>{e=void 0,t(r)});return new de(()=>e?.(o))},requestAnimationFrame(...t){const{delegate:n}=eh;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=eh;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};new class YZ extends r0{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class ZZ extends n0{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=eh.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(eh.cancelAnimationFrame(e),n._scheduled=void 0)}});let ow,XZ=1;const If={};function BA(t){return t in If&&(delete If[t],!0)}const JZ={setImmediate(t){const n=XZ++;return If[n]=!0,ow||(ow=Promise.resolve()),ow.then(()=>BA(n)&&t()),n},clearImmediate(t){BA(t)}},{setImmediate:eY,clearImmediate:tY}=JZ,Ef={setImmediate(...t){const{delegate:n}=Ef;return(n?.setImmediate||eY)(...t)},clearImmediate(t){const{delegate:n}=Ef;return(n?.clearImmediate||tY)(t)},delegate:void 0},rw=new class nY extends r0{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class iY extends n0{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Ef.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(Ef.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});let th=(()=>{class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new qe,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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ci(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(nw(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ke()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(It(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=pa(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Xo(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(i){return new(i||t)(X(We),X(ai),X(lt,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ih=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new qe,this._elementScrolled=new ci(a=>this.ngZone.runOutsideAngular(()=>Xo(this.elementRef.nativeElement,"scroll").pipe(ot(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 i=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=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=ku()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==ku()?e.left=e.right:1==ku()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;P2()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",r=this.elementRef.nativeElement;if("top"==e)return r.scrollTop;if("bottom"==e)return r.scrollHeight-r.clientHeight-r.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?o:i:"end"==e&&(e=a?i:o),a&&2==ku()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&1==ku()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(th),_(We),_(mn,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return t})(),ba=(()=>{class t{constructor(e,i,o){this._platform=e,this._change=new qe,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(nw(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai),X(We),X(lt,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ms=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})(),aw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Ru,ms,Ru,ms]})}return t})();class sw{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Fl extends sw{constructor(n,e,i,o,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o,this.projectableNodes=r}}class va extends sw{constructor(n,e,i,o){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class sY extends sw{constructor(n){super(),this.element=n instanceof Be?n.nativeElement:n}}class Of{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Fl?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof va?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof sY?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class cY extends Of{constructor(n,e,i,o,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=a=>{const s=a.element,c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>o.destroy())):(o=i.create(n.injector||this._defaultInjector||Bi.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=n,o}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let lY=(()=>{class t extends va{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(bi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[be]})}return t})(),ya=(()=>{class t extends Of{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Re,this.attachDomPortal=r=>{const a=r.element,s=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},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 i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==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 i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rs),_(bi),_(lt))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[pe.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[be]})}return t})(),ac=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const VA=P2();class dY{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=hn(-this._previousScrollPosition.left),n.style.top=hn(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),VA&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),VA&&(i.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class uY{constructor(n,e,i,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(It(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class jA{enable(){}disable(){}attach(){}}function cw(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function zA(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class hY{constructor(n,e,i,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();cw(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let mY=(()=>{class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new jA,this.close=a=>new uY(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new dY(this._viewportRuler,this._document),this.reposition=a=>new hY(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}static#e=this.\u0275fac=function(i){return new(i||t)(X(th),X(ba),X(We),X(lt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class Ll{constructor(n){if(this.scrollStrategy=new jA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class pY{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let HA=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(i){return new(i||t)(X(lt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fY=(()=>{class t extends HA{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){const s=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(o)):s.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(i){return new(i||t)(X(lt),X(We,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),gY=(()=>{class t extends HA{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=ua(r)},this._clickListener=r=>{const a=ua(r),s="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let u=c.length-1;u>-1;u--){const p=c[u];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(p.overlayElement.contains(a)||p.overlayElement.contains(s))break;const g=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>g.next(r)):g.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(i){return new(i||t)(X(lt),X(ai),X(We,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Af=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||qy()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(g),this._backdropTransitionendHandler=g=>{this._disposeBackdrop(g.target)},this._keydownEvents=new qe,this._outsidePointerEvents=new qe,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(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Nt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=hn(this._config.width),n.height=hn(this._config.height),n.minWidth=hn(this._config.minWidth),n.minHeight=hn(this._config.minHeight),n.maxWidth=hn(this._config.maxWidth),n.maxHeight=hn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const o=Gp(e||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(ot(Ei(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const UA="cdk-overlay-connected-position-bounding-box",_Y=/([A-Za-z%]+)$/;class bY{get positions(){return this._preferredPositions}constructor(n,e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r,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 qe,this._resizeSubscription=de.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(UA),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let a;for(let s of this._preferredPositions){let c=this._getOriginPoint(n,o,s),u=this._getOverlayPoint(c,e,s),p=this._getOverlayFit(u,e,i,s);if(p.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(p,u,i)?r.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!a||a.overlayFit.visibleAreac&&(c=p,s=u)}return this._isPushed=!1,void this._applyPosition(s.position,s.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&&sc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(UA),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let o,r;if("center"==i.originX)o=n.left+n.width/2;else{const a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;o="start"==i.originX?a:s}return e.left<0&&(o-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,i,o){const r=GA(e);let{x:a,y:s}=n,c=this._getOffset(o,"x"),u=this._getOffset(o,"y");c&&(a+=c),u&&(s+=u);let b=0-s,x=s+r.height-i.height,T=this._subtractOverflows(r.width,0-a,a+r.width-i.width),I=this._subtractOverflows(r.height,b,x),z=T*I;return{visibleArea:z,isCompletelyWithinViewport:r.width*r.height===z,fitsInViewportVertically:I===r.height,fitsInViewportHorizontally:T==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,a=$A(this._overlayRef.getConfig().minHeight),s=$A(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=a&&a<=o)&&(n.fitsInViewportHorizontally||null!=s&&s<=r)}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=GA(e),r=this._viewportRect,a=Math.max(n.x+o.width-r.width,0),s=Math.max(n.y+o.height-r.height,0),c=Math.max(r.top-i.top-n.y,0),u=Math.max(r.left-i.left-n.x,0);let p=0,g=0;return p=o.width<=r.width?u||-a:n.xT&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-T/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)b=i.width-n.x+this._viewportMargin,p=n.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)g=n.x,p=i.right-n.x;else{const x=Math.min(i.right-n.x+i.left,n.x),T=this._lastBoundingBoxSize.width;p=2*x,g=n.x-x,p>T&&!this._isInitialRender&&!this._growAfterOpen&&(g=n.x-T/2)}return{top:a,left:g,bottom:s,right:b,width:p,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=hn(i.height),o.top=hn(i.top),o.bottom=hn(i.bottom),o.width=hn(i.width),o.left=hn(i.left),o.right=hn(i.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",r&&(o.maxHeight=hn(r)),a&&(o.maxWidth=hn(a))}this._lastBoundingBoxSize=i,sc(this._boundingBox.style,o)}_resetBoundingBoxStyles(){sc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){sc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){const p=this._viewportRuler.getViewportScrollPosition();sc(i,this._getExactOverlayY(e,n,p)),sc(i,this._getExactOverlayX(e,n,p))}else i.position="static";let s="",c=this._getOffset(e,"x"),u=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),u&&(s+=`translateY(${u}px)`),i.transform=s.trim(),a.maxHeight&&(o?i.maxHeight=hn(a.maxHeight):r&&(i.maxHeight="")),a.maxWidth&&(o?i.maxWidth=hn(a.maxWidth):r&&(i.maxWidth="")),sc(this._pane.style,i)}_getExactOverlayY(n,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=hn(r.y),o}_getExactOverlayX(n,e,i){let a,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),a=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===a?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=hn(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:zA(n,i),isOriginOutsideView:cw(n,i),isOverlayClipped:zA(e,i),isOverlayOutsideView:cw(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&Gp(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Be)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function sc(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function $A(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(_Y);return e&&"px"!==e?null:parseFloat(n)}return t||null}function GA(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 WA="cdk-global-overlay-wrapper";class vY{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(WA),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=i,c=!("100%"!==o&&"100vw"!==o||a&&"100%"!==a&&"100vw"!==a),u=!("100%"!==r&&"100vh"!==r||s&&"100%"!==s&&"100vh"!==s),p=this._xPosition,g=this._xOffset,b="rtl"===this._overlayRef.getConfig().direction;let x="",T="",I="";c?I="flex-start":"center"===p?(I="center",b?T=g:x=g):b?"left"===p||"end"===p?(I="flex-end",x=g):("right"===p||"start"===p)&&(I="flex-start",T=g):"left"===p||"start"===p?(I="flex-start",x=g):("right"===p||"end"===p)&&(I="flex-end",T=g),n.position=this._cssPosition,n.marginLeft=c?"0":x,n.marginTop=u?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":T,e.justifyContent=I,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(WA),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let yY=(()=>{class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new vY}flexibleConnectedTo(e){return new bY(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||t)(X(ba),X(lt),X(ai),X(Af))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wY=0,Zn=(()=>{class t{constructor(e,i,o,r,a,s,c,u,p,g,b,x){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=s,this._ngZone=c,this._document=u,this._directionality=p,this._location=g,this._outsideClickDispatcher=b,this._animationsModuleType=x}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),a=new Ll(e);return a.direction=a.direction||this._directionality.value,new nh(r,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+wY++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Za)),new cY(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(X(mY),X(Af),X(Rs),X(yY),X(fY),X(Bi),X(We),X(lt),X(mn),X(Ws),X(gY),X(di,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const xY=[{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"}],qA=new oe("cdk-connected-overlay-scroll-strategy");let lw=(()=>{class t{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return t})(),KA=(()=>{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=$e(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=$e(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=$e(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=$e(e)}get push(){return this._push}set push(e){this._push=$e(e)}constructor(e,i,o,r,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=de.EMPTY,this._attachSubscription=de.EMPTY,this._detachSubscription=de.EMPTY,this._positionSubscription=de.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Re,this.positionChange=new Re,this.attach=new Re,this.detach=new Re,this.overlayKeydown=new Re,this.overlayOutsideClick=new Re,this._templatePortal=new va(i,o),this._scrollStrategyFactory=r,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=xY);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(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Tn(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Ll({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=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(i).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 lw?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 aY(t,n=!1){return ji((e,i)=>{let o=0;e.subscribe(Fi(i,r=>{const a=t(r,o++);(a||n)&&i.next(r),!a&&i.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(i){return new(i||t)(_(Zn),_(gi),_(bi),_(qA),_(mn,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[pe.None,"cdkConnectedOverlayOrigin","origin"],positions:[pe.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[pe.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[pe.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[pe.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[pe.None,"cdkConnectedOverlayWidth","width"],height:[pe.None,"cdkConnectedOverlayHeight","height"],minWidth:[pe.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[pe.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[pe.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[pe.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[pe.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[pe.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[pe.None,"cdkConnectedOverlayOpen","open"],disableClose:[pe.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[pe.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[pe.None,"cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:[pe.None,"cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:[pe.None,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:[pe.None,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:[pe.None,"cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[fi]})}return t})();const DY={provide:qA,deps:[Zn],useFactory:function CY(t){return()=>t.scrollStrategies.reposition()}};let cc=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[Zn,DY],imports:[Ru,ac,aw,aw]})}return t})();function Bl(t){return new ci(n=>{Kn(t()).subscribe(n)})}const SY=["trigger"],kY=["panel"];function TY(t,n){if(1&t&&(d(0,"span",10),h(1),l()),2&t){const e=w();m(),Fe(e.placeholder)}}function MY(t,n){if(1&t&&(d(0,"span",14),h(1),l()),2&t){const e=w(2);m(),Fe(e.triggerValue)}}function IY(t,n){1&t&&Ze(0,0,["*ngSwitchCase","true"])}function EY(t,n){1&t&&(d(0,"span",11),y(1,MY,2,1,"span",12)(2,IY,1,0,"ng-content",13),l()),2&t&&(f("ngSwitch",!!w().customTrigger),m(2),f("ngSwitchCase",!0))}function OY(t,n){if(1&t){const e=ge();Xt(),mr(),d(0,"div",15,16),N("@transformPanel.done",function(o){return ae(e),se(w()._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){return ae(e),se(w()._handleKeydown(o))}),Ze(2,1),l()}if(2&t){const e=w();Sk("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),f("ngClass",e.panelClass)("@transformPanel","showing"),Je("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const AY=[[["mat-select-trigger"]],"*"],PY=["mat-select-trigger","*"],RY={transformPanelWrap:Po("transformPanelWrap",[Ki("* => void",by("@transformPanel",[_y()],{optional:!0}))]),transformPanel:Po("transformPanel",[un("void",Wt({opacity:0,transform:"scale(1, 0.8)"})),Ki("void => showing",qi("120ms cubic-bezier(0, 0, 0.2, 1)",Wt({opacity:1,transform:"scale(1, 1)"}))),Ki("* => void",qi("100ms linear",Wt({opacity:0})))])};let ZA=0;const YA=new oe("mat-select-scroll-strategy"),FY=new oe("MAT_SELECT_CONFIG"),LY={provide:YA,deps:[Zn],useFactory:function NY(t){return()=>t.scrollStrategies.reposition()}},BY=new oe("MatSelectTrigger");class VY{constructor(n,e){this.source=n,this.value=e}}const jY=ns(os(fa(g0(class{constructor(t,n,e,i,o){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new qe}}))));let zY=(()=>{class t extends jY{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(ce.required)??!1}set required(e){this._required=$e(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=$e(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=$e(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=vi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,o,r,a,s,c,u,p,g,b,x,T,I){super(a,r,c,u,g),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=s,this._parentFormField=p,this._liveAnnouncer=T,this._defaultOptions=I,this._panelOpen=!1,this._compareWith=(z,ie)=>z===ie,this._uid="mat-select-"+ZA++,this._triggerAriaLabelledBy=null,this._destroy=new qe,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ZA++,this._panelDoneAnimatingStream=new qe,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=Bl(()=>{const z=this.options;return z?z.changes.pipe(nn(z),pn(()=>Ei(...z.map(ie=>ie.onSelectionChange)))):this._ngZone.onStable.pipe(Nt(1),pn(()=>this.optionSelectionChanges))}),this.openedChange=new Re,this._openedStream=this.openedChange.pipe(It(z=>z),nt(()=>{})),this._closedStream=this.openedChange.pipe(It(z=>!z),nt(()=>{})),this.selectionChange=new Re,this.valueChange=new Re,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=I?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=I.typeaheadDebounceInterval),this._scrollStrategyFactory=x,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(b)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Uu(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ou(),ot(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(ot(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(nn(null),ot(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;const i=`${this.id}-panel`;this._trackedModal&&kl(this._trackedModal,"aria-owns",i),qp(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(kl(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}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(i=>i.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 i=e.keyCode,o=40===i||38===i||37===i||39===i,r=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&r&&!Tn(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;a.onKeydown(e);const c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,o=e.keyCode,r=40===o||38===o,a=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(a||13!==o&&32!==o||!i.activeItem||Tn(e))if(!a&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.deselect())})}else{const s=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Nt(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.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=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 i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_skipPredicate(e){return e.disabled}_initKeyManager(){this._keyManager=new dE(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.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=Ei(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ot(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ei(...this.options.map(i=>i._stateChanges)).pipe(ot(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&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((i,o)=>this.sortComparator?this.sortComparator(i,o,e):e.indexOf(i)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0}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 i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_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}static#e=this.\u0275fac=function(i){return new(i||t)(_(ba),_(Ft),_(We),_(Jp),_(Be),_(mn,8),_(hs,8),_(Ai,8),_(Xu,8),_(xr,10),io("tabindex"),_(YA),_(m0),_(FY,8))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&(vt(SY,5),vt(kY,5),vt(KA,5)),2&i){let r;Oe(r=Ae())&&(o.trigger=r.first),Oe(r=Ae())&&(o.panel=r.first),Oe(r=Ae())&&(o._overlayDir=r.first)}},inputs:{userAriaDescribedBy:[pe.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[be,fi]})}return t})(),uo=(()=>{class t extends zY{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=e=>!this.panelOpen&&e.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(ot(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const o=this.panel.nativeElement,r=TE(e,this.options,this.optionGroups),a=i._getHostElement();o.scrollTop=0===e&&1===r?0:ME(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new VY(this,e)}_getOverlayWidth(e){return"auto"===this.panelWidth?(e instanceof lw?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=$e(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-select"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,BY,5),ft(r,In,5),ft(r,b0,5)),2&i){let a;Oe(a=Ae())&&(o.customTrigger=a.first),Oe(a=Ae())&&(o.options=a),Oe(a=Ae())&&(o.optionGroups=a)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,o){1&i&&N("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&i&&(Je("id",o.id)("tabindex",o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),et("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[Ye([{provide:Tf,useExisting:t},{provide:_0,useExisting:t}]),be],ngContentSelectors:PY,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(i,o){if(1&i&&(zt(AY),d(0,"div",0,1),N("click",function(){return o.toggle()}),d(3,"div",2),y(4,TY,2,1,"span",3)(5,EY,3,2,"span",4),l(),d(6,"div",5)(7,"div",6),Xt(),d(8,"svg",7),D(9,"path",8),l()()()(),y(10,OY,3,9,"ng-template",9),N("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&i){const r=Rt(1);m(3),f("ngSwitch",o.empty),Je("id",o._valueId),m(),f("ngSwitchCase",!0),m(),f("ngSwitchCase",!1),m(5),f("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[vr,wl,xp,_I,KA,lw],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[RY.transformPanel]},changeDetection:0})}return t})(),dw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[LY],imports:[Bn,cc,ef,St,ms,Ju,ef,St]})}return t})();function Pf(t){return nt(()=>t)}function QA(t,n){return n?e=>Au(n.pipe(Nt(1),function HY(){return ji((t,n)=>{t.subscribe(Fi(n,ii))})}()),e.pipe(QA(t))):Mn((e,i)=>Kn(t(e,i)).pipe(Nt(1),Pf(e)))}function uw(t,n=Eu){const e=Mf(t,n);return QA(()=>e)}const UY=["mat-menu-item",""];function $Y(t,n){1&t&&(Xt(),d(0,"svg",3),D(1,"polygon",4),l())}const GY=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],WY=["mat-icon, [matMenuItemIcon]","*"];function qY(t,n){if(1&t){const e=ge();d(0,"div",0),N("keydown",function(o){return ae(e),se(w()._handleKeydown(o))})("click",function(){return ae(e),se(w().closed.emit("click"))})("@transformMenu.start",function(o){return ae(e),se(w()._onAnimationStart(o))})("@transformMenu.done",function(o){return ae(e),se(w()._onAnimationDone(o))}),d(1,"div",1),Ze(2),l()()}if(2&t){const e=w();f("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Je("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const KY=["*"],hw=new oe("MAT_MENU_PANEL"),ZY=ns(fa(class{}));let wa=(()=>{class t extends ZY{constructor(e,i,o,r,a){super(),this._elementRef=e,this._document=i,this._focusMonitor=o,this._parentMenu=r,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new qe,this._focused=new qe,this._highlighted=!1,this._triggersSubmenu=!1,r?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",qi("120ms cubic-bezier(0, 0, 0.2, 1)",Wt({opacity:1,transform:"scale(1)"}))),Ki("* => void",qi("100ms 25ms linear",Wt({opacity:0})))]),fadeInItems:Po("fadeInItems",[un("showing",Wt({opacity:1})),Ki("void => *",[Wt({opacity:0}),qi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let QY=0;const XA=new oe("mat-menu-default-options",{providedIn:"root",factory:function XY(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let oh=(()=>{class t{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=$e(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=$e(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.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}constructor(e,i,o,r){this._elementRef=e,this._ngZone=i,this._changeDetectorRef=r,this._directDescendantItems=new ta,this._classList={},this._panelAnimationState="void",this._animationDone=new qe,this.closed=new Re,this.close=this.closed,this.panelId="mat-menu-panel-"+QY++,this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this._overlapTrigger=o.overlapTrigger,this._hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Yp(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(nn(this._directDescendantItems),pn(e=>Ei(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const o=e.toArray(),r=Math.max(0,Math.min(o.length-1,i.activeItemIndex||0));o[r]&&!o[r].disabled?i.setActiveItem(r):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(nn(this._directDescendantItems),pn(i=>Ei(...i.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,o=this._keyManager;switch(i){case 27:Tn(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===i||40===i)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(Nt(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,i=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===e,o["mat-menu-after"]="after"===e,o["mat-menu-above"]="above"===i,o["mat-menu-below"]="below"===i,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(nn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(XA),_(Ft))};static#t=this.\u0275dir=Q({type:t,contentQueries:function(i,o,r){if(1&i&&(ft(r,YY,5),ft(r,wa,5),ft(r,wa,4)),2&i){let a;Oe(a=Ae())&&(o.lazyContent=a.first),Oe(a=Ae())&&(o._allItems=a),Oe(a=Ae())&&(o.items=a)}},viewQuery:function(i,o){if(1&i&&vt(gi,5),2&i){let r;Oe(r=Ae())&&(o.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[pe.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:[pe.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}})}return t})(),Vl=(()=>{class t extends oh{constructor(e,i,o,r){super(e,i,o,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(XA),_(Ft))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(i,o){2&i&&Je("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ye([{provide:hw,useExisting:t}]),be],ngContentSelectors:KY,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(i,o){1&i&&(zt(),y(0,qY,3,6,"ng-template"))},dependencies:[vr],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{--mat-menu-container-shape:4px;min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Rf.transformMenu,Rf.fadeInItems]},changeDetection:0})}return t})();const JA=new oe("mat-menu-scroll-strategy"),eQ={provide:JA,deps:[Zn],useFactory:function JY(t){return()=>t.scrollStrategies.reposition()}},eP=Ja({passive:!0});let tQ=(()=>{class t{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(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,o,r,a,s,c,u,p){this._overlay=e,this._element=i,this._viewContainerRef=o,this._menuItemInstance=s,this._dir=c,this._focusMonitor=u,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=de.EMPTY,this._hoverSubscription=de.EMPTY,this._menuCloseSubscription=de.EMPTY,this._changeDetectorRef=we(Ft),this._handleTouchStart=g=>{h0(g)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Re,this.onMenuOpen=this.menuOpened,this.menuClosed=new Re,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=a instanceof oh?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,eP)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,eP),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&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),o=i.getConfig(),r=o.positionStrategy;this._setPosition(e,r),o.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof oh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ot(e.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof oh?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(It(o=>"void"===o.toState),Nt(1),ot(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.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 i=0,o=e.parentMenu;for(;o;)i++,o=o.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Ll({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,i){e.setPositionClasses&&i.positionChanges.subscribe(o=>{const r="start"===o.connectionPair.overlayX?"after":"before",a="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(r,a)):e.setPositionClasses(r,a)})}_setPosition(e,i){let[o,r]="before"===e.xPosition?["end","start"]:["start","end"],[a,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,u]=[a,s],[p,g]=[o,r],b=0;if(this.triggersSubmenu()){if(g=o="before"===e.xPosition?"start":"end",r=p="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const x=this._parentMaterialMenu.items.first;this._parentInnerPadding=x?x._getHostElement().offsetTop:0}b="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===a?"bottom":"top",u="top"===s?"bottom":"top");i.withPositions([{originX:o,originY:c,overlayX:p,overlayY:a,offsetY:b},{originX:r,originY:c,overlayX:g,overlayY:a,offsetY:b},{originX:o,originY:u,overlayX:p,overlayY:s,offsetY:-b},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-b}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Ei(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ke(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(It(a=>a!==this._menuItemInstance),It(()=>this._menuOpen)):Ke(),i)}_handleMousedown(e){u0(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"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(It(e=>e===this._menuItemInstance&&!e.disabled),uw(0,rw)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof oh&&this.menu._isAnimating?this.menu._animationDone.pipe(Nt(1),uw(0,rw),ot(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new va(e.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(i){return new(i||t)(_(Zn),_(Be),_(bi),_(JA),_(hw,8),_(wa,10),_(mn,8),_(Lo),_(We))};static#t=this.\u0275dir=Q({type:t,hostVars:3,hostBindings:function(i,o){1&i&&N("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),2&i&&Je("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[pe.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[pe.None,"matMenuTriggerFor","menu"],menuData:[pe.None,"matMenuTriggerData","menuData"],restoreFocus:[pe.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}})}return t})(),jl=(()=>{class t extends tQ{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[be]})}return t})(),tP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[eQ],imports:[Bn,as,St,cc,ms,St]})}return t})();const iQ=[[["caption"]],[["colgroup"],["col"]]],nQ=["caption","colgroup, col"];function mw(t){return class extends t{get sticky(){return this._sticky}set sticky(n){const e=this._sticky;this._sticky=$e(n),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const n=this._hasStickyChanged;return this._hasStickyChanged=!1,n}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...n){super(...n),this._sticky=!1,this._hasStickyChanged=!1}}}const zl=new oe("CDK_TABLE");let Hl=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),Ul=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),Nf=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})();class sQ{}const cQ=mw(sQ);let xa=(()=>{class t extends cQ{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=$e(e),this._hasStickyChanged=i!==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(i){return new(i||t)(_(zl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,o,r){if(1&i&&(ft(r,Hl,5),ft(r,Ul,5),ft(r,Nf,5)),2&i){let a;Oe(a=Ae())&&(o.cell=a.first),Oe(a=Ae())&&(o.headerCell=a.first),Oe(a=Ae())&&(o.footerCell=a.first)}},inputs:{sticky:"sticky",name:[pe.None,"cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Ye([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),be]})}return t})();class pw{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let fw=(()=>{class t extends pw{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(xa),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[be]})}return t})(),gw=(()=>{class t extends pw{constructor(e,i){if(super(e,i),1===e._table?._elementRef.nativeElement.nodeType){const o=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}static#e=this.\u0275fac=function(i){return new(i||t)(_(xa),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[be]})}return t})();class nP{constructor(){this.tasks=[],this.endTasks=[]}}const _w=new oe("_COALESCED_STYLE_SCHEDULER");let oP=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new qe}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 nP,this._getScheduleObservable().pipe(ot(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new nP;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Zi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Nt(1))}static#e=this.\u0275fac=function(i){return new(i||t)(X(We))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),bw=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof rh?e.headerCell.template:this instanceof ah?e.footerCell.template:e.cell.template}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(pr))};static#t=this.\u0275dir=Q({type:t,features:[fi]})}return t})();class lQ extends bw{}const dQ=mw(lQ);let rh=(()=>{class t extends dQ{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(pr),_(zl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[pe.None,"cdkHeaderRowDef","columns"],sticky:[pe.None,"cdkHeaderRowDefSticky","sticky"]},features:[be,fi]})}return t})();class uQ extends bw{}const hQ=mw(uQ);let ah=(()=>{class t extends hQ{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(pr),_(zl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[pe.None,"cdkFooterRowDef","columns"],sticky:[pe.None,"cdkFooterRowDefSticky","sticky"]},features:[be,fi]})}return t})(),Ff=(()=>{class t extends bw{constructor(e,i,o){super(e,i),this._table=o}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(pr),_(zl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[pe.None,"cdkRowDefColumns","columns"],when:[pe.None,"cdkRowDefWhen","when"]},features:[be]})}return t})(),Ca=(()=>{class t{static#e=this.mostRecentCellOutlet=null;constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(i){return new(i||t)(_(bi))};static#i=this.\u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),vw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({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(i,o){1&i&&no(0,0)},dependencies:[Ca],encapsulation:2})}return t})(),ww=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&no(0,0)},dependencies:[Ca],encapsulation:2})}return t})(),Lf=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})();const rP=["top","bottom","left","right"];class mQ{constructor(n,e,i,o,r=!0,a=!0,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=r,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const o of n)if(o.nodeType===o.ELEMENT_NODE){i.push(o);for(let r=0;r{for(const o of i)this._removeStickyStyle(o,e)})}updateStickyColumns(n,e,i,o=!0){if(!n.length||!this._isBrowser||!e.some(b=>b)&&!i.some(b=>b))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=n[0],a=r.children.length,s=this._getCellWidths(r,o),c=this._getStickyStartColumnPositions(s,e),u=this._getStickyEndColumnPositions(s,i),p=e.lastIndexOf(!0),g=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const b="rtl"===this.direction,x=b?"right":"left",T=b?"left":"right";for(const I of n)for(let z=0;ze[z]?I:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===g?[]:s.slice(g).map((I,z)=>i[z+g]?I:null).reverse()}))})}stickRows(n,e,i){if(!this._isBrowser)return;const o="bottom"===i?n.slice().reverse():n,r="bottom"===i?e.slice().reverse():e,a=[],s=[],c=[];for(let p=0,g=0;p{for(let p=0;p{e.some(o=>!o)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(n,e){for(const o of e)n.style[o]="",n.classList.remove(this._borderCellCss[o]);rP.some(o=>-1===e.indexOf(o)&&n.style[o])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,o){n.classList.add(this._stickCellCss),o&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const o of rP)n.style[o]&&(i+=e[o]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],o=n.children;for(let r=0;r0;r--)e[r]&&(i[r]=o,o+=n[r]);return i}}const xw=new oe("CDK_SPL");let Bf=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),Vf=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),jf=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),zf=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),Hf=(()=>{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=$e(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=$e(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,i,o,r,a,s,c,u,p,g,b,x){this._differs=e,this._changeDetectorRef=i,this._elementRef=o,this._dir=a,this._platform=c,this._viewRepeater=u,this._coalescedStyleScheduler=p,this._viewportRuler=g,this._stickyPositioningListener=b,this._ngZone=x,this._onDestroy=new qe,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 Re,this.viewChange=new bt({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(ot(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}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(),ff(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(o,r,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=>{i.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&We.isInAngularZone()?this._ngZone.onStable.pipe(Nt(1),ot(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 r=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,r,"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 r=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{const a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{const s=o&&o.has(a)?o.get(a):[];if(s.length){const c=s.shift();return c.dataIndex=i,c}return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Uf(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Uf(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Uf(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Uf(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,s)=>a||!!s.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();const r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),i||o||r}_switchDataSource(e){this._data=[],ff(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;ff(this.dataSource)?e=this.dataSource.connect(this):Ol(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ke(this.dataSource)),this._renderChangeSubscription=e.pipe(ot(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const o=Array.from(i.columns||[]).map(s=>this._columnDefsByName.get(s)),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let o=0;o!r.when||r.when(i,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;r&&o.push(r)}return o}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,o,r={}){const a=e.viewContainer.createEmbeddedView(i.template,r,o);return this._renderCellTemplateForItem(i,r),a}_renderCellTemplateForItem(e,i){for(let o of this._getCellTemplates(e))Ca.mostRecentCellOutlet&&Ca.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,o=e.length;i{const o=this._columnDefsByName.get(i);return e.extractCellTemplate(o)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const o of i){const r=this._document.createElement(o.tag);r.setAttribute("role","rowgroup");for(const a of o.outlets)r.appendChild(a.elementRef.nativeElement);e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,o)=>i||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 mQ(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Ke()).pipe(ot(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const o=this._noDataRowOutlet.viewContainer;if(i){const r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];1===r.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(_(pr),_(Ft),_(Be),io("role"),_(mn,8),_(lt),_(ai),_($u),_(_w),_(ba),_(xw,12),_(We,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,o,r){if(1&i&&(ft(r,Lf,5),ft(r,xa,5),ft(r,Ff,5),ft(r,rh,5),ft(r,ah,5)),2&i){let a;Oe(a=Ae())&&(o._noDataRow=a.first),Oe(a=Ae())&&(o._contentColumnDefs=a),Oe(a=Ae())&&(o._contentRowDefs=a),Oe(a=Ae())&&(o._contentHeaderRowDefs=a),Oe(a=Ae())&&(o._contentFooterRowDefs=a)}},viewQuery:function(i,o){if(1&i&&(vt(Bf,7),vt(Vf,7),vt(jf,7),vt(zf,7)),2&i){let r;Oe(r=Ae())&&(o._rowOutlet=r.first),Oe(r=Ae())&&(o._headerRowOutlet=r.first),Oe(r=Ae())&&(o._footerRowOutlet=r.first),Oe(r=Ae())&&(o._noDataRowOutlet=r.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(i,o){2&i&&et("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ye([{provide:zl,useExisting:t},{provide:$u,useClass:yO},{provide:_w,useClass:oP},{provide:xw,useValue:null}])],ngContentSelectors:nQ,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){1&i&&(zt(iQ),Ze(0),Ze(1,1),no(2,0)(3,1)(4,2)(5,3))},dependencies:[Bf,Vf,jf,zf],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function Uf(t,n){return t.concat(Array.from(n))}let fQ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[aw]})}return t})();const gQ=[[["caption"]],[["colgroup"],["col"]]],_Q=["caption","colgroup, col"];let ps=(()=>{class t extends Hf{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,o){2&i&&et("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Ye([{provide:Hf,useExisting:t},{provide:zl,useExisting:t},{provide:_w,useClass:oP},{provide:$u,useClass:yO},{provide:xw,useValue:null}]),be],ngContentSelectors:_Q,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){1&i&&(zt(gQ),Ze(0),Ze(1,1),no(2,0)(3,1)(4,2)(5,3))},dependencies:[Bf,Vf,jf,zf],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{--mat-table-row-item-outline-width:1px;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return t})(),Da=(()=>{class t extends Hl{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Ye([{provide:Hl,useExisting:t}]),be]})}return t})(),Sa=(()=>{class t extends Ul{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ye([{provide:Ul,useExisting:t}]),be]})}return t})(),ka=(()=>{class t extends xa{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:[pe.None,"matColumnDef","name"]},features:[Ye([{provide:xa,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),be]})}return t})(),Ta=(()=>{class t extends fw{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[be]})}return t})(),Ma=(()=>{class t extends gw{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[be]})}return t})(),fs=(()=>{class t extends rh{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[pe.None,"matHeaderRowDef","columns"],sticky:[pe.None,"matHeaderRowDefSticky","sticky"]},features:[Ye([{provide:rh,useExisting:t}]),be]})}return t})(),gs=(()=>{class t extends Ff{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[pe.None,"matRowDefColumns","columns"],when:[pe.None,"matRowDefWhen","when"]},features:[Ye([{provide:Ff,useExisting:t}]),be]})}return t})(),_s=(()=>{class t extends vw{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ye([{provide:vw,useExisting:t}]),be],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&no(0,0)},dependencies:[Ca],encapsulation:2})}return t})(),bs=(()=>{class t extends ww{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ye([{provide:ww,useExisting:t}]),be],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&no(0,0)},dependencies:[Ca],encapsulation:2})}return t})(),sP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,fQ,St]})}return t})();class kQ extends pf{get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}constructor(n=[]){super(),this._renderData=new bt([]),this._filter=new bt(""),this._internalPageChanges=new qe,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const o=e[i];if(X2(o)){const r=Number(o);return r<9007199254740991?r:o}return o},this.sortData=(e,i)=>{const o=i.active,r=i.direction;return o&&""!=r?e.sort((a,s)=>{let c=this.sortingDataAccessor(a,o),u=this.sortingDataAccessor(s,o);const p=typeof c,g=typeof u;p!==g&&("number"===p&&(c+=""),"number"===g&&(u+=""));let b=0;return null!=c&&null!=u?c>u?b=1:c{const o=Object.keys(e).reduce((a,s)=>a+e[s]+"\u25ec","").toLowerCase(),r=i.trim().toLowerCase();return-1!=o.indexOf(r)},this._data=new bt(n),this._updateChangeSubscription()}_updateChangeSubscription(){const n=this._sort?Ei(this._sort.sortChange,this._sort.initialized):Ke(null),e=this._paginator?Ei(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Ke(null),o=Qs([this._data,this._filter]).pipe(nt(([s])=>this._filterData(s))),r=Qs([o,n]).pipe(nt(([s])=>this._orderData(s))),a=Qs([r,e]).pipe(nt(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,i);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 cP extends kQ{}const lP=new oe("CdkAccordion");let TQ=0,MQ=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=$e(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=$e(e)}constructor(e,i,o){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=de.EMPTY,this.closed=new Re,this.opened=new Re,this.destroyed=new Re,this.expandedChange=new Re,this.id="cdk-accordion-child-"+TQ++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((r,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==r&&(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(i){return new(i||t)(_(lP,12),_(Ft),_(R0))};static#t=this.\u0275dir=Q({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ye([{provide:lP,useValue:void 0}])]})}return t})(),IQ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const EQ=["body"];function OQ(t,n){}const AQ=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],PQ=["mat-expansion-panel-header","*","mat-action-row"];function RQ(t,n){1&t&&D(0,"span",2),2&t&&f("@indicatorRotate",w()._getExpandedState())}const NQ=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],FQ=["mat-panel-title","mat-panel-description","*"],dP=new oe("MAT_ACCORDION"),uP="225ms cubic-bezier(0.4,0.0,0.2,1)",hP={indicatorRotate:Po("indicatorRotate",[un("collapsed, void",Wt({transform:"rotate(0deg)"})),un("expanded",Wt({transform:"rotate(180deg)"})),Ki("expanded <=> collapsed, void => collapsed",qi(uP))]),bodyExpansion:Po("bodyExpansion",[un("collapsed, void",Wt({height:"0px",visibility:"hidden"})),un("expanded",Wt({height:"*",visibility:""})),Ki("expanded <=> collapsed, void => collapsed",qi(uP))])},mP=new oe("MAT_EXPANSION_PANEL");let LQ=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(mP,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),BQ=0;const pP=new oe("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Cw=(()=>{class t extends MQ{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=$e(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,i,o,r,a,s,c){super(e,i,o),this._viewContainerRef=r,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new Re,this.afterCollapse=new Re,this._inputChanges=new qe,this._headerId="mat-expansion-panel-header-"+BQ++,this._bodyAnimationDone=new qe,this.accordion=e,this._document=a,this._bodyAnimationDone.pipe(Ou((u,p)=>u.fromState===p.fromState&&u.toState===p.toState)).subscribe(u=>{"void"!==u.fromState&&("expanded"===u.toState?this.afterExpand.emit():"collapsed"===u.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}_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(nn(null),It(()=>this.expanded&&!this._portal),Nt(1)).subscribe(()=>{this._portal=new va(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(dP,12),_(Ft),_(R0),_(bi),_(lt),_(di,8),_(pP,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,o,r){if(1&i&&ft(r,LQ,5),2&i){let a;Oe(a=Ae())&&(o._lazyContent=a.first)}},viewQuery:function(i,o){if(1&i&&vt(EQ,5),2&i){let r;Oe(r=Ae())&&(o._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(i,o){2&i&&et("mat-expanded",o.expanded)("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ye([{provide:dP,useValue:void 0},{provide:mP,useExisting:t}]),be,fi],ngContentSelectors:PQ,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(i,o){1&i&&(zt(AQ),Ze(0),d(1,"div",0,1),N("@bodyExpansion.done",function(a){return o._bodyAnimationDone.next(a)}),d(3,"div",2),Ze(4,1),y(5,OQ,0,0,"ng-template",3),l(),Ze(6,2),l()),2&i&&(m(),f("@bodyExpansion",o._getExpandedState())("id",o.id),Je("aria-labelledby",o._headerId),m(4),f("cdkPortalOutlet",o._portal))},dependencies:[ya],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;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;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.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:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.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;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.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;border-top-color:var(--mat-expansion-actions-divider-color)}.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:[hP.bodyExpansion]},changeDetection:0})}return t})();class VQ{}const jQ=os(VQ);let fP=(()=>{class t extends jQ{constructor(e,i,o,r,a,s,c){super(),this.panel=e,this._element=i,this._focusMonitor=o,this._changeDetectorRef=r,this._animationMode=s,this._parentChangeSubscription=de.EMPTY;const u=e.accordion?e.accordion._stateChanges.pipe(It(p=>!(!p.hideToggle&&!p.togglePosition))):Fo;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Ei(e.opened,e.closed,u,e._inputChanges.pipe(It(p=>!!(p.hideToggle||p.disabled||p.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(It(()=>e._containsFocus())).subscribe(()=>o.focusVia(i,"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:Tn(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Cw,1),_(Be),_(Lo),_(Ft),_(pP,8),_(di,8),io("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(i,o){1&i&&N("click",function(){return o._toggle()})("keydown",function(a){return o._keydown(a)}),2&i&&(Je("id",o.panel._headerId)("tabindex",o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),yn("height",o._getHeaderHeight()),et("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after","after"===o._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===o._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===o._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[be],ngContentSelectors:FQ,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(i,o){1&i&&(zt(NQ),d(0,"span",0),Ze(1),Ze(2,1),Ze(3,2),l(),y(4,RQ,1,1,"span",1)),2&i&&(et("mat-content-hide-toggle",!o._showToggle()),m(4),f("ngIf",o._showToggle()))},dependencies:[Tt],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);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.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.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{color:var(--mat-expansion-header-text-color)}.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[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.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;color:var(--mat-expansion-header-indicator-color)}.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:[hP.indicatorRotate]},changeDetection:0})}return t})(),zQ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})(),gP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Bn,St,IQ,ac]})}return t})();function HQ(t,n){1&t&&(d(0,"span",7),Ze(1,1),l())}function UQ(t,n){1&t&&(d(0,"span",8),Ze(1,2),l())}const _P=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],bP=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function WQ(t,n){1&t&&(Ce(0),D(1,"span",8),De())}function qQ(t,n){1&t&&(d(0,"span",9),Ze(1),l())}function KQ(t,n){1&t&&(Ce(0),Ze(1,1),De())}function ZQ(t,n){1&t&&Ze(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function YQ(t,n){1&t&&D(0,"span",12)}function QQ(t,n){if(1&t&&(Ce(0),y(1,ZQ,1,0,"ng-content",10)(2,YQ,1,0,"ng-template",null,11,_r),De()),2&t){const e=Rt(3),i=w();m(),f("ngIf",i.contentEditInput)("ngIfElse",e)}}function XQ(t,n){1&t&&(d(0,"span",13),Ze(1,3),l())}const JQ=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],eX=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],Dw=["*"],$f=new oe("mat-chips-default-options"),Sw=new oe("MatChipAvatar"),kw=new oe("MatChipTrailingIcon"),Tw=new oe("MatChipRemove"),Gf=new oe("MatChip");class tX{}const iX=os(tX,-1);let $l=(()=>{class t extends iX{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=$e(e)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,i){super(),this._elementRef=e,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Gf))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(i,o){1&i&&N("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Je("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),et("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[be]})}return t})(),wP=(()=>{class t extends $l{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(i,o){2&i&&Je("aria-hidden",null)},features:[Ye([{provide:Tw,useExisting:t}]),be]})}return t})(),rX=0;const aX=os(is(ns(fa(class{constructor(t){this._elementRef=t}})),"primary"),-1);let lc=(()=>{class t extends aX{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get removable(){return this._removable}set removable(e){this._removable=$e(e)}get highlighted(){return this._highlighted}set highlighted(e){this._highlighted=$e(e)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}constructor(e,i,o,r,a,s,c,u){super(i),this._changeDetectorRef=e,this._ngZone=o,this._focusMonitor=r,this._globalRippleOptions=c,this._onFocus=new qe,this._onBlur=new qe,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+rX++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new Re,this.destroyed=new Re,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=we(AE),this._document=a,this._animationsDisabled="NoopAnimations"===s,null!=u&&(this.tabIndex=parseInt(u)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const e=this._elementRef.nativeElement;this._isBasicChip=e.hasAttribute(this.basicChipAttrName)||e.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Ei(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(e){(8===e.keyCode||46===e.keyCode)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{const o=i._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){const e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=null!==e;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(Nt(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(Be),_(We),_(Lo),_(lt),_(di,8),_(Ml,8),io("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,o,r){if(1&i&&(ft(r,Sw,5),ft(r,kw,5),ft(r,Tw,5),ft(r,Sw,5),ft(r,kw,5),ft(r,Tw,5)),2&i){let a;Oe(a=Ae())&&(o.leadingIcon=a.first),Oe(a=Ae())&&(o.trailingIcon=a.first),Oe(a=Ae())&&(o.removeIcon=a.first),Oe(a=Ae())&&(o._allLeadingIcons=a),Oe(a=Ae())&&(o._allTrailingIcons=a),Oe(a=Ae())&&(o._allRemoveIcons=a)}},viewQuery:function(i,o){if(1&i&&vt($l,5),2&i){let r;Oe(r=Ae())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(i,o){1&i&&N("keydown",function(a){return o._handleKeydown(a)}),2&i&&(oo("id",o.id),Je("role",o.role)("tabindex",o.role?o.tabIndex:null)("aria-label",o.ariaLabel),et("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaDescription:[pe.None,"aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ye([{provide:Gf,useExisting:t}]),be],ngContentSelectors:bP,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,o){1&i&&(zt(_P),D(0,"span",0),d(1,"span",1)(2,"span",2),y(3,HQ,2,0,"span",3),d(4,"span",4),Ze(5),D(6,"span",5),l()()(),y(7,UQ,2,0,"span",6)),2&i&&(m(2),f("isInteractive",!1),m(),f("ngIf",o.leadingIcon),m(4),f("ngIf",o._hasTrailingIcon()))},dependencies:[Tt,$l],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})(),Wf=(()=>{class t{constructor(e,i){this._elementRef=e,this._document=i}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);const i=window.getSelection();i.removeAllRanges(),i.addRange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(lt))};static#t=this.\u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),Mw=(()=>{class t extends lc{constructor(e,i,o,r,a,s,c,u){super(e,i,o,r,a,s,c,u),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Re,this._isEditing=!1,this.role="row",this._onBlur.pipe(ot(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){13!==e.keyCode||this.disabled?this._isEditing?e.stopPropagation():super._handleKeydown(e):this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e)}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;const i=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(i),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(Be),_(We),_(Lo),_(lt),_(di,8),_(Ml,8),io("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(i,o,r){if(1&i&&ft(r,Wf,5),2&i){let a;Oe(a=Ae())&&(o.contentEditInput=a.first)}},viewQuery:function(i,o){if(1&i&&vt(Wf,5),2&i){let r;Oe(r=Ae())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(i,o){1&i&&N("focus",function(a){return o._handleFocus(a)})("dblclick",function(a){return o._handleDoubleclick(a)}),2&i&&(oo("id",o.id),Je("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),et("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[Ye([{provide:lc,useExisting:t},{provide:Gf,useExisting:t}]),be],ngContentSelectors:eX,decls:10,vars:12,consts:[[4,"ngIf"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,o){1&i&&(zt(JQ),y(0,WQ,2,0,"ng-container",0),d(1,"span",1),y(2,qQ,2,0,"span",2),d(3,"span",3),y(4,KQ,2,0,"ng-container",4)(5,QQ,4,2,"ng-container",4),D(6,"span",5),l()(),y(7,XQ,2,0,"span",6),d(8,"span",7),h(9),l()),2&i&&(f("ngIf",!o._isEditing),m(),f("tabIndex",o.tabIndex)("disabled",o.disabled),Je("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),m(),f("ngIf",o.leadingIcon),m(),f("ngSwitch",o._isEditing),m(),f("ngSwitchCase",!1),m(),f("ngSwitchCase",!0),m(2),f("ngIf",o._hasTrailingIcon()),m(),f("id",o._ariaDescriptionId),m(),Fe(o.ariaDescription))},dependencies:[Tt,wl,xp,$l,Wf],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();class sX{constructor(n){}}const cX=os(sX);let Iw=(()=>{class t extends cX{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,i,o){super(e),this._elementRef=e,this._changeDetectorRef=i,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new qe,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new ta}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(nn(null),pn(()=>Ei(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(nn(this._chips)).subscribe(e=>{const i=[];e.forEach(o=>o._getActions().forEach(r=>i.push(r))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new Yp(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(ot(this._destroyed)).subscribe(({chip:e})=>{const i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(ot(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(nn(null),ot(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(ot(this._destroyed)).subscribe(e=>{const o=this._chips.toArray().indexOf(e.chip);this._isValidIndex(o)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(mn,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,o,r){if(1&i&&ft(r,lc,5),2&i){let a;Oe(a=Ae())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,o){1&i&&N("keydown",function(a){return o._handleKeydown(a)}),2&i&&Je("role",o.role)},inputs:{disabled:"disabled",role:"role"},features:[be],ngContentSelectors:Dw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,o){1&i&&(zt(),d(0,"div",0),Ze(1),l())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return t})();class uX{constructor(n,e){this.source=n,this.value=e}}class hX extends Iw{constructor(n,e,i,o,r,a,s){super(n,e,i),this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=a,this.ngControl=s,this.stateChanges=new qe}}const mX=g0(hX);let DP=(()=>{class t extends mX{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=$e(e),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(ce.required)??!1}set required(e){this._required=$e(e),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}constructor(e,i,o,r,a,s,c){super(e,i,o,s,r,a,c),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Re,this.valueChange=new Re,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(ot(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),Ei(this.chipFocusChanges,this._chips.changes).pipe(ot(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?.setDescribedByIds(e)}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(e){9===e.keyCode?this._chipInput.focused&&Tn(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(e),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const e=this._chips.length?this._chips.toArray().map(i=>i.value):[];this._value=e,this.change.emit(new uX(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(mn,8),_(hs,8),_(Ai,8),_(Jp),_(xr,10))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(i,o,r){if(1&i&&ft(r,Mw,5),2&i){let a;Oe(a=Ae())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(i,o){1&i&&N("focus",function(){return o.focus()})("blur",function(){return o._blur()}),2&i&&(oo("tabIndex",o._chips&&0===o._chips.length?-1:o.tabIndex),Je("role",o.role)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),et("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-invalid",o.errorState)("mat-mdc-chip-list-required",o.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Ye([{provide:Tf,useExisting:t}]),be],ngContentSelectors:Dw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,o){1&i&&(zt(),d(0,"div",0),Ze(1),l())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return t})(),pX=0,SP=(()=>{class t{set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=$e(e)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=$e(e)}get empty(){return!this.inputElement.value}constructor(e,i,o){this._elementRef=e,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new Re,this.placeholder="",this.id="mat-mdc-chip-list-input-"+pX++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=i.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(e){(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(e){const i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!Tn(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_($f),_(Xu,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(i,o){1&i&&N("keydown",function(a){return o._keydown(a)})("keyup",function(a){return o._keyup(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),2&i&&(oo("id",o.id),Je("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[pe.None,"matChipInputFor","chipGrid"],addOnBlur:[pe.None,"matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:[pe.None,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[fi]})}return t})(),Ew=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[Jp,{provide:$f,useValue:{separatorKeyCodes:[13]}}],imports:[St,Bn,as,St]})}return t})();class kP{constructor(){this.expansionModel=new Uu(!0)}toggle(n){this.expansionModel.toggle(this._trackByValue(n))}expand(n){this.expansionModel.select(this._trackByValue(n))}collapse(n){this.expansionModel.deselect(this._trackByValue(n))}isExpanded(n){return this.expansionModel.isSelected(this._trackByValue(n))}toggleDescendants(n){this.expansionModel.isSelected(this._trackByValue(n))?this.collapseDescendants(n):this.expandDescendants(n)}collapseAll(){this.expansionModel.clear()}expandDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}collapseDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.deselect(...e.map(i=>this._trackByValue(i)))}_trackByValue(n){return this.trackBy?this.trackBy(n):n}}class TP extends kP{constructor(n,e,i){super(),this.getLevel=n,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(n){const i=[];for(let o=this.dataNodes.indexOf(n)+1;othis._trackByValue(n)))}}let vX=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})(),MP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[vX,St,St]})}return t})();class SX{constructor(n,e,i,o){this.transformFunction=n,this.getLevel=e,this.isExpandable=i,this.getChildren=o}_flattenNode(n,e,i,o){const r=this.transformFunction(n,e);if(i.push(r),this.isExpandable(r)){const a=this.getChildren(n);a&&(Array.isArray(a)?this._flattenChildren(a,e,i,o):a.pipe(Nt(1)).subscribe(s=>{this._flattenChildren(s,e,i,o)}))}return i}_flattenChildren(n,e,i,o){n.forEach((r,a)=>{let s=o.slice();s.push(a!=n.length-1),this._flattenNode(r,e+1,i,s)})}flattenNodes(n){let e=[];return n.forEach(i=>this._flattenNode(i,0,e,[])),e}expandFlattenedNodes(n,e){let i=[],o=[];return o[0]=!0,n.forEach(r=>{let a=!0;for(let s=0;s<=this.getLevel(r);s++)a=a&&o[s];a&&i.push(r),this.isExpandable(r)&&(o[this.getLevel(r)+1]=e.isExpanded(r))}),i}}class IP extends pf{get data(){return this._data.value}set data(n){this._data.next(n),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}constructor(n,e,i){super(),this._treeControl=n,this._treeFlattener=e,this._flattenedData=new bt([]),this._expandedData=new bt([]),this._data=new bt([]),i&&(this.data=i)}connect(n){return Ei(n.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(nt(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}function kX(t,n){}const TX=t=>({animationDuration:t}),MX=(t,n)=>({value:t,params:n});function IX(t,n){1&t&&Ze(0)}const EP=["*"],EX=["tabListContainer"],OX=["tabList"],AX=["tabListInner"],PX=["nextPaginator"],RX=["previousPaginator"],NX=["tabBodyWrapper"],FX=["tabHeader"];function LX(t,n){}function BX(t,n){1&t&&y(0,LX,0,0,"ng-template",14),2&t&&f("cdkPortalOutlet",w().$implicit.templateLabel)}function VX(t,n){1&t&&h(0),2&t&&Fe(w().$implicit.textLabel)}function jX(t,n){if(1&t){const e=ge();d(0,"div",6,7),N("click",function(){const o=ae(e),r=o.$implicit,a=o.index,s=w(),c=Rt(1);return se(s._handleClick(r,c,a))})("cdkFocusChange",function(o){const a=ae(e).index;return se(w()._tabFocusChanged(o,a))}),D(2,"span",8)(3,"div",9),d(4,"span",10)(5,"span",11),y(6,BX,1,1,"ng-template",12)(7,VX,1,1,"ng-template",null,13,_r),l()()()}if(2&t){const e=n.$implicit,i=n.index,o=Rt(1),r=Rt(8),a=w();et("mdc-tab--active",a.selectedIndex===i),f("id",a._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),Je("tabIndex",a._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(i))("aria-selected",a.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),f("matRippleTrigger",o)("matRippleDisabled",e.disabled||a.disableRipple),m(3),f("ngIf",e.templateLabel)("ngIfElse",r)}}function zX(t,n){if(1&t){const e=ge();d(0,"mat-tab-body",15),N("_onCentered",function(){return ae(e),se(w()._removeTabBodyWrapperHeight())})("_onCentering",function(o){return ae(e),se(w()._setTabBodyWrapperHeight(o))}),l()}if(2&t){const e=n.$implicit,i=n.index,o=w();et("mat-mdc-tab-body-active",o.selectedIndex===i),f("id",o._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),Je("tabindex",null!=o.contentTabIndex&&o.selectedIndex===i?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(i))("aria-hidden",o.selectedIndex!==i)}}const HX={translateTab:Po("translateTab",[un("center, void, left-origin-center, right-origin-center",Wt({transform:"none"})),un("left",Wt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),un("right",Wt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Ki("* => left, * => right, left => center, right => center",qi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ki("void => left-origin-center",[Wt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),qi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ki("void => right-origin-center",[Wt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),qi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let UX=(()=>{class t extends ya{constructor(e,i,o,r){super(e,i,r),this._host=o,this._centeringSub=de.EMPTY,this._leavingSub=de.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(nn(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rs),_(bi),_(qt(()=>OP)),_(lt))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[be]})}return t})(),$X=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,o){this._elementRef=e,this._dir=i,this._dirChangeSubscription=de.EMPTY,this._translateTabComplete=new qe,this._onCentering=new Re,this._beforeCentering=new Re,this._afterLeavingCenter=new Re,this._onCentered=new Re(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(r=>{this._computePositionAnimationState(r),o.markForCheck()})),this._translateTabComplete.pipe(Ou((r,a)=>r.fromState===a.fromState&&r.toState===a.toState)).subscribe(r=>{this._isCenterPosition(r.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(r.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(mn,8),_(Ft))};static#t=this.\u0275dir=Q({type:t,inputs:{_content:[pe.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}return t})(),OP=(()=>{class t extends $X{constructor(e,i,o){super(e,i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(mn,8),_(Ft))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,o){if(1&i&&vt(ya,5),2&i){let r;Oe(r=Ae())&&(o._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[be],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(i,o){1&i&&(d(0,"div",0,1),N("@translateTab.start",function(a){return o._onTranslateTabStarted(a)})("@translateTab.done",function(a){return o._translateTabComplete.next(a)}),y(2,kX,0,0,"ng-template",2),l()),2&i&&f("@translateTab",VT(3,MX,o._position,ui(1,TX,o.animationDuration)))},dependencies:[UX],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[HX.translateTab]}})}return t})();const GX=new oe("MatTabContent");let WX=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Ye([{provide:GX,useExisting:t}])]})}return t})();const qX=new oe("MatTabLabel"),AP=new oe("MAT_TAB");let Nw=(()=>{class t extends lY{constructor(e,i,o){super(e,i),this._closestTab=o}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(bi),_(AP,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ye([{provide:qX,useExisting:t}]),be]})}return t})();const Fw="mdc-tab-indicator--active",PP="mdc-tab-indicator--no-transition";class KX{constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar())}alignToElement(n){const e=this._items.find(o=>o.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){const o=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}}function ZX(t){return class extends t{constructor(...n){super(...n),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(n){const e=$e(n);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(n){const e=this.elementRef.nativeElement;if(!n||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(Fw);const i=e.getBoundingClientRect(),o=n.width/i.width,r=n.left-i.left;e.classList.add(PP),this._inkBarContentElement.style.setProperty("transform",`translateX(${r}px) scaleX(${o})`),e.getBoundingClientRect(),e.classList.remove(PP),e.classList.add(Fw),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Fw)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const n=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=n.createElement("span"),this._inkBarContentElement=n.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const QX=fa(class{}),XX=ZX((()=>{class t extends QX{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be))};static#t=this.\u0275dir=Q({type:t,features:[be]})}return t})());let RP=(()=>{class t extends XX{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,o){2&i&&(Je("aria-disabled",!!o.disabled),et("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[be]})}return t})();const JX=fa(class{}),NP=new oe("MAT_TAB_GROUP");let eJ=(()=>{class t extends JX{get content(){return this._contentPortal}constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new qe,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new va(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(NP,8))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(gi,7),2&i){let r;Oe(r=Ae())&&(o._implicitContent=r.first)}},inputs:{textLabel:[pe.None,"label","textLabel"],ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[be,fi]})}return t})(),Zf=(()=>{class t extends eJ{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,WX,7,gi),ft(r,Nw,5)),2&i){let a;Oe(a=Ae())&&(o._explicitContent=a.first),Oe(a=Ae())&&(o.templateLabel=a.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[Ye([{provide:AP,useExisting:t}]),be],ngContentSelectors:EP,decls:1,vars:0,template:function(i,o){1&i&&(zt(),y(0,IX,1,0,"ng-template"))},encapsulation:2})}return t})();const FP=Ja({passive:!0});let nJ=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=$e(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=vi(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,i,o,r,a,s,c){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=o,this._dir=r,this._ngZone=a,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new qe,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new qe,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Re,this.indexFocused=new Re,a.runOutsideAngular(()=>{Xo(e.nativeElement,"mouseleave").pipe(ot(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Xo(this._previousPaginator.nativeElement,"touchstart",FP).pipe(ot(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Xo(this._nextPaginator.nativeElement,"touchstart",FP).pipe(ot(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Ke("ltr"),i=this._viewportRuler.change(150),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Yp(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Nt(1)).subscribe(o),Ei(e,i,this._items.changes,this._itemsResized()).pipe(ot(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.subscribe(r=>{this.indexFocused.emit(r),this._setTabFocus(r)})}_itemsResized(){return"function"!=typeof ResizeObserver?Fo:this._items.changes.pipe(nn(this._items),pn(e=>new ci(i=>this._ngZone.runOutsideAngular(()=>{const o=new ResizeObserver(r=>i.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),a0(1),It(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Tn(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=i.elementRef.nativeElement;let s,c;"ltr"==this._getLayoutDirection()?(s=r,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-r,s=c-a);const u=this.scrollDistance,p=this.scrollDistance+o;sp&&(this.scrollDistance+=Math.min(c-p,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),Mf(650,100).pipe(ot(Ei(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(0===r||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(ba),_(mn,8),_(We),_(ai),_(di,8))};static#t=this.\u0275dir=Q({type:t,inputs:{disablePagination:"disablePagination"}})}return t})(),oJ=(()=>{class t extends nJ{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$e(e)}constructor(e,i,o,r,a,s,c){super(e,i,o,r,a,s,c),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(ba),_(mn,8),_(We),_(ai),_(di,8))};static#t=this.\u0275dir=Q({type:t,inputs:{disableRipple:"disableRipple"},features:[be]})}return t})(),rJ=(()=>{class t extends oJ{constructor(e,i,o,r,a,s,c){super(e,i,o,r,a,s,c)}ngAfterContentInit(){this._inkBar=new KX(this._items),super.ngAfterContentInit()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(ba),_(mn,8),_(We),_(ai),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,o,r){if(1&i&&ft(r,RP,4),2&i){let a;Oe(a=Ae())&&(o._items=a)}},viewQuery:function(i,o){if(1&i&&(vt(EX,7),vt(OX,7),vt(AX,7),vt(PX,5),vt(RX,5)),2&i){let r;Oe(r=Ae())&&(o._tabListContainer=r.first),Oe(r=Ae())&&(o._tabList=r.first),Oe(r=Ae())&&(o._tabListInner=r.first),Oe(r=Ae())&&(o._nextPaginator=r.first),Oe(r=Ae())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==o._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[be],ngContentSelectors:EP,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(i,o){1&i&&(zt(),d(0,"button",0,1),N("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),D(2,"div",2),l(),d(3,"div",3,4),N("keydown",function(a){return o._handleKeydown(a)}),d(5,"div",5,6),N("cdkObserveContent",function(){return o._onContentChanges()}),d(7,"div",7,8),Ze(9),l()()(),d(10,"button",9,10),N("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),D(12,"div",2),l()),2&i&&(et("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),f("matRippleDisabled",o._disableScrollBefore||o.disableRipple)("disabled",o._disableScrollBefore||null),m(3),et("_mat-animation-noopable","NoopAnimations"===o._animationMode),m(7),et("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),f("matRippleDisabled",o._disableScrollAfter||o.disableRipple)("disabled",o._disableScrollAfter||null))},dependencies:[rs,eE],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return t})();const LP=new oe("MAT_TABS_CONFIG");let aJ=0;const sJ=is(ns(class{constructor(t){this._elementRef=t}}),"primary");let cJ=(()=>{class t extends sJ{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=$e(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=vi(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=vi(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=$e(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=$e(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,o,r){super(e),this._changeDetectorRef=i,this._animationMode=r,this._tabs=new ta,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=de.EMPTY,this._tabLabelSubscription=de.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Re,this.focusChange=new Re,this.animationDone=new Re,this.selectedTabChange=new Re(!0),this._groupId=aJ++,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}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,o)=>{i.position=o-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let o;for(let r=0;r{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(nn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new lJ;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Ei(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,o){i.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(LP,8),_(di,8))};static#t=this.\u0275dir=Q({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:[be]})}return t})(),Lw=(()=>{class t extends cJ{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=$e(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=$e(e)}constructor(e,i,o,r){super(e,i,o,r),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!o||null==o.fitInkBarToContent)&&o.fitInkBarToContent,this.stretchTabs=!o||null==o.stretchTabs||o.stretchTabs}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(LP,8),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,o,r){if(1&i&&ft(r,Zf,5),2&i){let a;Oe(a=Ae())&&(o._allTabs=a)}},viewQuery:function(i,o){if(1&i&&(vt(NX,5),vt(FX,5)),2&i){let r;Oe(r=Ae())&&(o._tabBodyWrapper=r.first),Oe(r=Ae())&&(o._tabHeader=r.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(i,o){2&i&&(yn("--mat-tab-animation-duration",o.animationDuration),et("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===o.headerPosition)("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:[pe.None,"mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[Ye([{provide:NP,useExisting:t}]),be],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(i,o){1&i&&(d(0,"mat-tab-header",0,1),N("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),y(2,jX,9,17,"div",2),l(),d(3,"div",3,4),y(5,zX,1,12,"mat-tab-body",5),l()),2&i&&(f("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),m(2),f("ngForOf",o._tabs),m(),et("_mat-animation-noopable","NoopAnimations"===o._animationMode),m(2),f("ngForOf",o._tabs))},dependencies:[vr,dn,Tt,ya,rs,KG,OP,RP,rJ],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return t})();class lJ{}let BP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Bn,St,ac,as,Wp,f0,St]})}return t})();function dJ(t,n){if(1&t){const e=ge();d(0,"div",2)(1,"button",3),N("click",function(){return ae(e),se(w().action())}),h(2),l()()}if(2&t){const e=w();m(2),Me(" ",e.data.action," ")}}const uJ=["label"];function hJ(t,n){}const mJ=Math.pow(2,31)-1;class Bw{constructor(n,e){this._overlayRef=e,this._afterDismissed=new qe,this._afterOpened=new qe,this._onAction=new qe,this._dismissedByAction=!1,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,mJ))}_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}}const VP=new oe("MatSnackBarData");class Yf{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let pJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),fJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),gJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),_J=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(i){return new(i||t)(_(Bw),_(VP))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0),h(1),l(),y(2,dJ,3,1,"div",1)),2&i&&(m(),Me(" ",o.data.message,"\n"),m(),f("ngIf",o.hasAction))},dependencies:[Tt,Yt,pJ,fJ,gJ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return t})();const bJ={snackBarState:Po("state",[un("void, hidden",Wt({transform:"scale(0.8)",opacity:0})),un("visible",Wt({transform:"scale(1)",opacity:1})),Ki("* => visible",qi("150ms cubic-bezier(0, 0, 0.2, 1)")),Ki("* => void, * => hidden",qi("75ms cubic-bezier(0.4, 0.0, 1, 1)",Wt({opacity:0})))])};let vJ=0,yJ=(()=>{class t extends Of{constructor(e,i,o,r,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=o,this._platform=r,this.snackBarConfig=a,this._document=we(lt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new qe,this._onExit=new qe,this._onEnter=new qe,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+vJ++,this.attachDomPortal=s=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(s);return this._afterPortalAttached(),c},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 i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:o}=e;if(("void"===o&&"void"!==i||"hidden"===o)&&this._completeExit(),"visible"===o){const r=this._onEnter;this._ngZone.run(()=>{r.next(),r.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._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Nt(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(o=>e.classList.add(o)):e.classList.add(i)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{const i=e.getAttribute("aria-owns");if(i){const o=i.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(o=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(We),_(Be),_(Ft),_(ai),_(Yf))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(ya,7),2&i){let r;Oe(r=Ae())&&(o._portalOutlet=r.first)}},features:[be]})}return t})(),wJ=(()=>{class t extends yJ{_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,i="mdc-snackbar__label";e.classList.toggle(i,!e.querySelector(`.${i}`))}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,o){if(1&i&&vt(uJ,7),2&i){let r;Oe(r=Ae())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(i,o){1&i&&Qm("@state.done",function(a){return o.onAnimationEnd(a)}),2&i&&Wm("@state",o._animationState)},features:[be],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1,2)(3,"div",3),y(4,hJ,0,0,"ng-template",4),l(),D(5,"div"),l()()),2&i&&(m(5),Je("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[ya],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[bJ.snackBarState]}})}return t})(),Vw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[cc,ac,Bn,nf,St,St]})}return t})();const jP=new oe("mat-snack-bar-default-options",{providedIn:"root",factory:function xJ(){return new Yf}});let CJ=(()=>{class t{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,o,r,a,s){this._overlay=e,this._live=i,this._injector=o,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",o){const r={...this._defaultConfig,...o};return r.data={message:e,action:i},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const r=Bi.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Yf,useValue:i}]}),a=new Fl(this.snackBarContainerComponent,i.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){const o={...new Yf,...this._defaultConfig,...i},r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Bw(a,r);if(e instanceof gi){const c=new va(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(o,s),u=new Fl(e,void 0,c),p=a.attachComponentPortal(u);s.instance=p.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(ot(r.detachments())).subscribe(c=>{r.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Ll;i.direction=e.direction;let o=this._overlay.position().global();const r="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,s=!a&&"center"!==e.horizontalPosition;return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(e,i){return Bi.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Bw,useValue:i},{provide:VP,useValue:e.data}]})}static#e=this.\u0275fac=function(i){return new(i||t)(X(Zn),X(m0),X(Bi),X(c0),X(t,12),X(jP))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),DJ=(()=>{class t extends CJ{constructor(e,i,o,r,a,s){super(e,i,o,r,a,s),this.simpleSnackBarComponent=_J,this.snackBarContainerComponent=wJ,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#e=this.\u0275fac=function(i){return new(i||t)(X(Zn),X(m0),X(Bi),X(c0),X(t,12),X(jP))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:Vw})}return t})();function SJ(t,n){}class Qf{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 zP=(()=>{class t extends Of{constructor(e,i,o,r,a,s,c,u){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=r,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=c,this._focusMonitor=u,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=p=>{this._portalOutlet.hasAttached();const g=this._portalOutlet.attachDomPortal(p);return this._contentAttached(),g},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 i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const o=Vp(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Vp();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Vp())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Qp),_(lt,8),_(Qf),_(Pu),_(We),_(nh),_(Lo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,o){if(1&i&&vt(ya,7),2&i){let r;Oe(r=Ae())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,o){2&i&&Je("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:[be],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,o){1&i&&y(0,SJ,0,0,"ng-template",0)},dependencies:[ya],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})();class jw{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new qe,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!Tn(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const HP=new oe("DialogScrollStrategy"),kJ=new oe("DialogData"),TJ=new oe("DefaultDialogConfig"),IJ={provide:HP,deps:[Zn],useFactory:function MJ(t){return()=>t.scrollStrategies.block()}};let EJ=0,UP=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,o,r,a,s){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this._ariaHiddenElements=new Map,this.afterAllClosed=Bl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(nn(void 0))),this._scrollStrategy=s}open(e,i){(i={...this._defaultOptions||new Qf,...i}).id=i.id||"cdk-dialog-"+EJ++,i.id&&this.getDialogById(i.id);const r=this._getOverlayConfig(i),a=this._overlay.create(r),s=new jw(a,i),c=this._attachContainer(a,s,i);return s.containerInstance=c,this._attachDialogContent(e,s,c,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){zw(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){zw(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),zw(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Ll({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,o){const r=o.injector||o.viewContainerRef?.injector,a=[{provide:Qf,useValue:o},{provide:jw,useValue:i},{provide:nh,useValue:e}];let s;o.container?"function"==typeof o.container?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=zP;const c=new Fl(s,o.viewContainerRef,Bi.create({parent:r||this._injector,providers:a}),o.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,o,r){if(e instanceof gi){const a=this._createInjector(r,i,o,void 0);let s={$implicit:r.data,dialogRef:i};r.templateContext&&(s={...s,..."function"==typeof r.templateContext?r.templateContext():r.templateContext}),o.attachTemplatePortal(new va(e,null,s,a))}else{const a=this._createInjector(r,i,o,this._injector),s=o.attachComponentPortal(new Fl(e,r.viewContainerRef,a,r.componentFactoryResolver));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,o,r){const a=e.injector||e.viewContainerRef?.injector,s=[{provide:kJ,useValue:e.data},{provide:jw,useValue:i}];return e.providers&&("function"==typeof e.providers?s.push(...e.providers(i,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(mn,null,{optional:!0}))&&s.push({provide:mn,useValue:{value:e.direction,change:Ke()}}),Bi.create({parent:a||r,providers:s})}_removeOpenDialog(e,i){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){const r=i[o];r!==e&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(i){return new(i||t)(X(Zn),X(Bi),X(TJ,8),X(t,12),X(Af),X(HP))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();function zw(t,n){let e=t.length;for(;e--;)n(t[e])}let OJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[UP,IJ],imports:[cc,ac,f0,ac]})}return t})();function AJ(t,n){}class Xf{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}}const Hw="mdc-dialog--open",$P="mdc-dialog--opening",GP="mdc-dialog--closing";let NJ=(()=>{class t extends zP{constructor(e,i,o,r,a,s,c,u){super(e,i,o,r,a,s,c,u),this._animationStateChanged=new Re}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Qp),_(lt,8),_(Xf),_(Pu),_(We),_(nh),_(Lo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["ng-component"]],features:[be],decls:0,vars:0,template:function(i,o){},encapsulation:2})}return t})();const WP="--mat-dialog-transition-duration";function qP(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?vi(t.substring(0,t.length-2)):t.endsWith("s")?1e3*vi(t.substring(0,t.length-1)):"0"===t?0:null}let FJ=(()=>{class t extends NJ{constructor(e,i,o,r,a,s,c,u,p){super(e,i,o,r,a,s,c,p),this._animationMode=u,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?qP(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?qP(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(WP,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add($P,Hw)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Hw),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Hw),this._animationsEnabled?(this._hostElement.style.setProperty(WP,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(GP)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove($P,GP)}_waitForAnimationToComplete(e,i){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Qp),_(lt,8),_(Xf),_(Pu),_(We),_(nh),_(di,8),_(Lo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(i,o){2&i&&(oo("id",o._config.id),Je("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),et("_mat-animation-noopable",!o._animationsEnabled))},features:[be],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1),y(2,AJ,0,0,"ng-template",2),l()())},dependencies:[ya],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return t})();class On{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new qe,this._beforeClosed=new qe,this._state=0,this.disableClose=e.disableClose,this.id=n.id,i._animationStateChanged.pipe(It(o=>"opened"===o.state),Nt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(It(o=>"closed"===o.state),Nt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ei(this.backdropClick(),this.keydownEvents().pipe(It(o=>27===o.keyCode&&!this.disableClose&&!Tn(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),KP(this,"keydown"===o.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(It(e=>"closing"===e.state),Nt(1)).subscribe(e=>{this._beforeClosed.next(n),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(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function KP(t,n,e){return t._closeInteractionType=n,t.close(e)}const ho=new oe("MatMdcDialogData"),LJ=new oe("mat-mdc-dialog-default-options"),ZP=new oe("mat-mdc-dialog-scroll-strategy"),VJ={provide:ZP,deps:[Zn],useFactory:function BJ(t){return()=>t.scrollStrategies.block()}};let jJ=0,zJ=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,o,r,a,s,c,u,p,g){this._overlay=e,this._defaultOptions=o,this._parentDialog=r,this._dialogRefConstructor=c,this._dialogContainerType=u,this._dialogDataToken=p,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this._idPrefix="mat-dialog-",this.dialogConfigClass=Xf,this.afterAllClosed=Bl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(nn(void 0))),this._scrollStrategy=s,this._dialog=i.get(UP)}open(e,i){let o;(i={...this._defaultOptions||new Xf,...i}).id=i.id||`${this._idPrefix}${jJ++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const r=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Qf,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(a,s,c)=>(o=new this._dialogRefConstructor(a,i,c),o.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentRef=r.componentRef,o.componentInstance=r.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(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),Vr=(()=>{class t extends zJ{constructor(e,i,o,r,a,s,c,u){super(e,i,r,s,c,a,On,FJ,ho,u),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(i){return new(i||t)(X(Zn),X(Bi),X(Ws,8),X(LJ,8),X(ZP),X(t,12),X(Af),X(di,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),HJ=0,mo=(()=>{class t{constructor(e,i,o){this.dialogRef=e,this._elementRef=i,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=YP(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){KP(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(i){return new(i||t)(_(On,8),_(Be),_(Vr))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,o){1&i&&N("click",function(a){return o._onButtonClick(a)}),2&i&&Je("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[pe.None,"aria-label","ariaLabel"],type:"type",dialogResult:[pe.None,"mat-dialog-close","dialogResult"],_matDialogClose:[pe.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[fi]})}return t})(),UJ=(()=>{class t{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o,this.id="mat-mdc-dialog-title-"+HJ++}ngOnInit(){this._dialogRef||(this._dialogRef=YP(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const e=this._dialogRef?._containerInstance?._ariaLabelledByQueue;e&&Promise.resolve().then(()=>{const i=e.indexOf(this.id);i>-1&&e.splice(i,1)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(On,8),_(Be),_(Vr))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,o){2&i&&oo("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return t})(),Jo=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return t})(),er=(()=>{class t{constructor(){this.align="start"}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-mdc-dialog-actions-align-center","center"===o.align)("mat-mdc-dialog-actions-align-end","end"===o.align)},inputs:{align:"align"}})}return t})();function YP(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}let QP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[Vr,VJ],imports:[OJ,cc,ac,St,St]})}return t})();const $J=["tooltip"],JP=new oe("mat-tooltip-scroll-strategy"),qJ={provide:JP,deps:[Zn],useFactory:function WJ(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},ZJ=new oe("mat-tooltip-default-options",{providedIn:"root",factory:function KJ(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),eR="tooltip-panel",tR=Ja({passive:!0});let tee=(()=>{class t{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 positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=$e(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=vi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=vi(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)}constructor(e,i,o,r,a,s,c,u,p,g,b,x){this._overlay=e,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=r,this._ngZone=a,this._platform=s,this._ariaDescriber=c,this._focusMonitor=u,this._dir=g,this._defaultOptions=b,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new qe,this._scrollStrategy=p,this._document=x,b&&(this._showDelay=b.showDelay,this._hideDelay=b.hideDelay,b.position&&(this.position=b.position),b.positionAtOrigin&&(this.positionAtOrigin=b.positionAtOrigin),b.touchGestures&&(this.touchGestures=b.touchGestures)),g.change.pipe(ot(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ot(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(([i,o])=>{e.removeEventListener(i,o,tR)}),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,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const o=this._createOverlay(i);this._detach(),this._portal=this._portal||new Fl(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(ot(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&r._origin instanceof Be)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(ot(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${eR}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ot(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ot(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ot(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!Tn(r)&&(r.preventDefault(),r.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 i=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset({...o.main,...r.main}),this._addOffset({...o.fallback,...r.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});const{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Nt(1),ot(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:o,originY:r}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===r?"above":"below",a!==this._currentPosition){const s=this._overlayRef;if(s){const c=`${this._cssClassPrefix}-${eR}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],o=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const o=i.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,tR)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,inputs:{position:[pe.None,"matTooltipPosition","position"],positionAtOrigin:[pe.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[pe.None,"matTooltipDisabled","disabled"],showDelay:[pe.None,"matTooltipShowDelay","showDelay"],hideDelay:[pe.None,"matTooltipHideDelay","hideDelay"],touchGestures:[pe.None,"matTooltipTouchGestures","touchGestures"],message:[pe.None,"matTooltip","message"],tooltipClass:[pe.None,"matTooltipClass","tooltipClass"]}})}return t})(),xn=(()=>{class t extends tee{constructor(e,i,o,r,a,s,c,u,p,g,b,x){super(e,i,o,r,a,s,c,u,p,g,b,x),this._tooltipComponent=nee,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const o=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=o?-8:8:"end"===e.originX&&(e.offsetX=o?8:-8),e}static#e=this.\u0275fac=function(i){return new(i||t)(_(Zn),_(Be),_(th),_(bi),_(We),_(ai),_(IG),_(Lo),_(JP),_(mn,8),_(ZJ,8),_(lt))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-mdc-tooltip-disabled",o.disabled)},exportAs:["matTooltip"],features:[be]})}return t})(),iee=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new qe,this._animationsDisabled="NoopAnimations"===i}show(e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){null!=this._showTimeoutId&&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(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:o),i.classList.add(e?o:r),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(di,8))};static#t=this.\u0275dir=Q({type:t})}return t})(),nee=(()=>{class t extends iee{constructor(e,i,o){super(e,o),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(Be),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,o){if(1&i&&vt($J,7),2&i){let r;Oe(r=Ae())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,o){1&i&&N("mouseleave",function(a){return o._handleMouseLeave(a)}),2&i&&yn("zoom",o.isVisible()?1:null)},features:[be],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(i,o){1&i&&(d(0,"div",0,1),N("animationend",function(a){return o._handleAnimationEnd(a)}),d(2,"div",2),h(3),l()()),2&i&&(et("mdc-tooltip--multiline",o._isMultiline),f("ngClass",o.tooltipClass),m(3),Fe(o.message))},dependencies:[vr],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return t})(),Uw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[qJ],imports:[f0,Bn,cc,St,St,ms]})}return t})();const oee=["input"],ree=["label"],aee=["*"],see=new oe("mat-checkbox-default-options",{providedIn:"root",factory:iR});function iR(){return{color:"accent",clickAction:"check-indeterminate"}}const cee={provide:co,useExisting:qt(()=>Jf),multi:!0};class lee{}let dee=0;const nR=iR(),uee=os(is(ns(fa(class{constructor(t){this._elementRef=t}}))));let hee=(()=>{class t extends uee{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=$e(e)}constructor(e,i,o,r,a,s,c){super(i),this._changeDetectorRef=o,this._ngZone=r,this._animationMode=s,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Re,this.indeterminateChange=new Re,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||nR,this.color=this.defaultColor=this._options.color||nR.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++dee}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=$e(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=$e(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=$e(e),i&&(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}_transitionCheckState(e){let i=this._currentCheckState,o=this._getAnimationTargetElement();if(i!==e&&o&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&(vt(oee,5),vt(ree,5),vt(rs,5)),2&i){let r;Oe(r=Ae())&&(o._inputElement=r.first),Oe(r=Ae())&&(o._labelElement=r.first),Oe(r=Ae())&&(o.ripple=r.first)}},inputs:{ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[pe.None,"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:[be]})}return t})(),Jf=(()=>{class t extends hee{constructor(e,i,o,r,a,s){super("mat-mdc-checkbox-",e,i,o,r,a,s),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new lee;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(We),io("tabindex"),_(di,8),_(see,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&(oo("id",o.id),Je("tabindex",null)("aria-label",null)("aria-labelledby",null),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[Ye([cee]),be],ngContentSelectors:aee,decls:15,vars:20,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(i,o){if(1&i&&(zt(),d(0,"div",0),N("click",function(a){return o._preventBubblingFromLabel(a)}),d(1,"div",1,2)(3,"div",3),N("click",function(){return o._onTouchTargetClick()}),l(),d(4,"input",4,5),N("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),l(),D(6,"div",6),d(7,"div",7),Xt(),d(8,"svg",8),D(9,"path",9),l(),mr(),D(10,"div",10),l(),D(11,"div",11),l(),d(12,"label",12,13),Ze(14),l()()),2&i){const r=Rt(2);et("mdc-form-field--align-end","before"==o.labelPosition),m(4),et("mdc-checkbox--selected",o.checked),f("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.tabIndex),Je("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),m(7),f("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),f("for",o.inputId)}},dependencies:[rs],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})(),oR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})(),rR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,as,oR,St,oR]})}return t})();const eg=["*"],fee=["content"];function gee(t,n){if(1&t){const e=ge();d(0,"div",2),N("click",function(){return ae(e),se(w()._onBackdropClicked())}),l()}2&t&&et("mat-drawer-shown",w()._isShowingBackdrop())}function _ee(t,n){1&t&&(d(0,"mat-drawer-content"),Ze(1,2),l())}const bee=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],vee=["mat-drawer","mat-drawer-content","*"];function yee(t,n){if(1&t){const e=ge();d(0,"div",2),N("click",function(){return ae(e),se(w()._onBackdropClicked())}),l()}2&t&&et("mat-drawer-shown",w()._isShowingBackdrop())}function wee(t,n){1&t&&(d(0,"mat-sidenav-content"),Ze(1,2),l())}const xee=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Cee=["mat-sidenav","mat-sidenav-content","*"],aR={transformDrawer:Po("transform",[un("open, open-instant",Wt({transform:"none",visibility:"visible"})),un("void",Wt({"box-shadow":"none",visibility:"hidden"})),Ki("void => open-instant",qi("0ms")),Ki("void <=> open, open-instant => void",qi("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},See=new oe("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function kee(){return!1}}),$w=new oe("MAT_DRAWER_CONTAINER");let tg=(()=>{class t extends ih{constructor(e,i,o,r,a){super(o,r,a),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(qt(()=>cR)),_(Be),_(th),_(We))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(i,o){2&i&&yn("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},features:[Ye([{provide:ih,useExisting:t}]),be],ngContentSelectors:eg,decls:1,vars:0,template:function(i,o){1&i&&(zt(),Ze(0))},encapsulation:2,changeDetection:0})}return t})(),sR=(()=>{class t{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=$e(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=$e(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle($e(e))}constructor(e,i,o,r,a,s,c,u){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=r,this._ngZone=a,this._interactivityChecker=s,this._doc=c,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new qe,this._animationEnd=new qe,this._animationState="void",this.openedChange=new Re(!0),this._openedStream=this.openedChange.pipe(It(p=>p),nt(()=>{})),this.openedStart=this._animationStarted.pipe(It(p=>p.fromState!==p.toState&&0===p.toState.indexOf("open")),Pf(void 0)),this._closedStream=this.openedChange.pipe(It(p=>!p),nt(()=>{})),this.closedStart=this._animationStarted.pipe(It(p=>p.fromState!==p.toState&&"void"===p.toState),Pf(void 0)),this._destroyed=new qe,this.onPositionChanged=new Re,this._modeChanged=new qe,this.openedChange.subscribe(p=>{p?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Xo(this._elementRef.nativeElement,"keydown").pipe(It(p=>27===p.keyCode&&!this.disableClose&&!Tn(p)),ot(this._destroyed)).subscribe(p=>this._ngZone.run(()=>{this.close(),p.stopPropagation(),p.preventDefault()}))}),this._animationEnd.pipe(Ou((p,g)=>p.fromState===g.fromState&&p.toState===g.toState)).subscribe(p=>{const{fromState:g,toState:b}=p;(0===b.indexOf("open")&&"void"===g||"void"===b&&0===g.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,i){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(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_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(i=>{!i&&"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,i){e&&i&&(this._openedVia=i);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,i,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(Nt(1)).subscribe(a=>r(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Qp),_(Lo),_(ai),_(We),_(Pu),_(lt,8),_($w,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,o){if(1&i&&vt(fee,5),2&i){let r;Oe(r=Ae())&&(o._content=r.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(i,o){1&i&&Qm("@transform.start",function(a){return o._animationStarted.next(a)})("@transform.done",function(a){return o._animationEnd.next(a)}),2&i&&(Je("align",null),Wm("@transform",o._animationState),et("mat-drawer-end","end"===o.position)("mat-drawer-over","over"===o.mode)("mat-drawer-push","push"===o.mode)("mat-drawer-side","side"===o.mode)("mat-drawer-opened",o.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:eg,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(i,o){1&i&&(zt(),d(0,"div",0,1),Ze(2),l())},dependencies:[ih],encapsulation:2,data:{animation:[aR.transformDrawer]},changeDetection:0})}return t})(),cR=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=$e(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=null==e?null:$e(e)}get scrollable(){return this._userContent||this._content}constructor(e,i,o,r,a,s=!1,c){this._dir=e,this._element=i,this._ngZone=o,this._changeDetectorRef=r,this._animationMode=c,this._drawers=new ta,this.backdropClick=new Re,this._destroyed=new qe,this._doCheckSubject=new qe,this._contentMargins={left:null,right:null},this._contentMarginChanges=new qe,e&&e.change.pipe(ot(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(ot(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}ngAfterContentInit(){this._allDrawers.changes.pipe(nn(this._allDrawers),ot(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(nn(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($p(10),ot(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,i=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,i-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();i+=o,e-=o}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(It(i=>i.fromState!==i.toState),ot(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(ot(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(ot(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Nt(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(ot(Ei(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.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._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return null!=e&&e.opened}_drawerHasBackdrop(e){return null==this._backdropOverride?!!e&&"side"!==e.mode:this._backdropOverride}static#e=this.\u0275fac=function(i){return new(i||t)(_(mn,8),_(Be),_(We),_(Ft),_(ba),_(See),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,tg,5),ft(r,sR,5)),2&i){let a;Oe(a=Ae())&&(o._content=a.first),Oe(a=Ae())&&(o._allDrawers=a)}},viewQuery:function(i,o){if(1&i&&vt(tg,5),2&i){let r;Oe(r=Ae())&&(o._userContent=r.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ye([{provide:$w,useExisting:t}])],ngContentSelectors:vee,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(i,o){1&i&&(zt(bee),y(0,gee,1,2,"div",0),Ze(1),Ze(2,1),y(3,_ee,2,0,"mat-drawer-content",1)),2&i&&(f("ngIf",o.hasBackdrop),m(3),f("ngIf",!o._content))},dependencies:[Tt,tg],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);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;background-color:var(--mat-sidenav-scrim-color)}.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{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);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);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return t})(),Gw=(()=>{class t extends tg{constructor(e,i,o,r,a){super(e,i,o,r,a)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(qt(()=>dR)),_(Be),_(th),_(We))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(i,o){2&i&&yn("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},features:[Ye([{provide:ih,useExisting:t}]),be],ngContentSelectors:eg,decls:1,vars:0,template:function(i,o){1&i&&(zt(),Ze(0))},encapsulation:2,changeDetection:0})}return t})(),lR=(()=>{class t extends sR{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=$e(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=vi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=vi(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(i,o){2&i&&(Je("align",null),yn("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),et("mat-drawer-end","end"===o.position)("mat-drawer-over","over"===o.mode)("mat-drawer-push","push"===o.mode)("mat-drawer-side","side"===o.mode)("mat-drawer-opened",o.opened)("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[be],ngContentSelectors:eg,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(i,o){1&i&&(zt(),d(0,"div",0,1),Ze(2),l())},dependencies:[ih],encapsulation:2,data:{animation:[aR.transformDrawer]},changeDetection:0})}return t})(),dR=(()=>{class t extends cR{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,Gw,5),ft(r,lR,5)),2&i){let a;Oe(a=Ae())&&(o._content=a.first),Oe(a=Ae())&&(o._allDrawers=a)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ye([{provide:$w,useExisting:t}]),be],ngContentSelectors:Cee,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(i,o){1&i&&(zt(xee),y(0,yee,1,2,"div",0),Ze(1),Ze(2,1),y(3,wee,2,0,"mat-sidenav-content",1)),2&i&&(f("ngIf",o.hasBackdrop),m(3),f("ngIf",!o._content))},dependencies:[Tt,Gw],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);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;background-color:var(--mat-sidenav-scrim-color)}.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{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);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);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return t})(),uR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Bn,St,ms,ms,St]})}return t})();const Tee=["panel"];function Mee(t,n){if(1&t){const e=ge();d(0,"div",0,1),N("@panelAnimation.done",function(o){return ae(e),se(w()._animationDone.next(o))}),Ze(2),l()}if(2&t){const e=n.id,i=w();f("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),Je("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const Iee=["*"],Eee=Po("panelAnimation",[un("void, hidden",Wt({opacity:0,transform:"scaleY(0.8)"})),Ki(":enter, hidden => visible",[gy([qi("0.03s linear",Wt({opacity:1})),qi("0.12s cubic-bezier(0, 0, 0.2, 1)",Wt({transform:"scaleY(1)"}))])]),Ki(":leave, visible => hidden",[qi("0.075s linear",Wt({opacity:0}))])]);let Oee=0;class Aee{constructor(n,e){this.source=n,this.option=e}}const Pee=ns(class{}),hR=new oe("mat-autocomplete-default-options",{providedIn:"root",factory:function Ree(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let Nee=(()=>{class t extends Pee{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=$e(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=$e(e)}get requireSelection(){return this._requireSelection}set requireSelection(e){this._requireSelection=$e(e)}set classList(e){this._classList=e&&e.length?function mG(t,n=/\s+/){const e=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(n);for(const o of i){const r=`${o}`.trim();r&&e.push(r)}}return e}(e).reduce((i,o)=>(i[o]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,i,o,r){super(),this._changeDetectorRef=e,this._elementRef=i,this._defaults=o,this._activeOptionChanges=de.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Re,this.opened=new Re,this.closed=new Re,this.optionActivated=new Re,this._classList={},this.id="mat-autocomplete-"+Oee++,this.inertGroups=r?.SAFARI||!1,this._autoActiveFirstOption=!!o.autoActiveFirstOption,this._autoSelectActiveOption=!!o.autoSelectActiveOption,this._requireSelection=!!o.requireSelection}ngAfterContentInit(){this._keyManager=new dE(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),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 i=new Aee(this,e);this.optionSelected.emit(i)}_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}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}_skipPredicate(e){return e.disabled}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(Be),_(hR),_(ai))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&(vt(gi,7),vt(Tee,5)),2&i){let r;Oe(r=Ae())&&(o.template=r.first),Oe(r=Ae())&&(o.panel=r.first)}},inputs:{ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:[pe.None,"class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[be]})}return t})(),Fee=(()=>{class t extends Nee{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new Re,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=$e(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(e){return!1}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,b0,5),ft(r,In,5)),2&i){let a;Oe(a=Ae())&&(o.optionGroups=a),Oe(a=Ae())&&(o.options=a)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[Ye([{provide:_0,useExisting:t}]),be],ngContentSelectors:Iee,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(i,o){1&i&&(zt(),y(0,Mee,3,5,"ng-template"))},dependencies:[vr],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Eee]},changeDetection:0})}return t})();const Lee={provide:co,useExisting:qt(()=>pR),multi:!0},mR=new oe("mat-autocomplete-scroll-strategy"),Vee={provide:mR,deps:[Zn],useFactory:function Bee(t){return()=>t.scrollStrategies.reposition()}};let jee=(()=>{class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=$e(e)}constructor(e,i,o,r,a,s,c,u,p,g,b){this._element=e,this._overlay=i,this._viewContainerRef=o,this._zone=r,this._changeDetectorRef=a,this._dir=c,this._formField=u,this._document=p,this._viewportRuler=g,this._defaults=b,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=de.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new qe,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=Bl(()=>{const x=this.autocomplete?this.autocomplete.options:null;return x?x.changes.pipe(nn(x),pn(()=>Ei(...x.map(T=>T.onSelectionChange)))):this._zone.onStable.pipe(Nt(1),pn(()=>this.optionSelections))}),this._handlePanelKeydown=x=>{(27===x.keyCode&&!Tn(x)||38===x.keyCode&&Tn(x,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),x.stopPropagation(),x.preventDefault())},this._trackedModal=null,this._scrollStrategy=s}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(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&qp(this._trackedModal,"aria-owns",this.autocomplete.id)}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._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&kl(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Ei(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(It(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(It(()=>this._overlayAttached)):Ke()).pipe(nt(e=>e instanceof kE?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Ei(Xo(this._document,"click"),Xo(this._document,"auxclick"),Xo(this._document,"touchend")).pipe(It(e=>{const i=ua(e),o=this._formField?this._formField._elementRef.nativeElement:null,r=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(i))&&(!r||!r.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}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 i=e.keyCode,o=Tn(e);if(27===i&&!o&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==r)&&(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 i=e.target,o=i.value;"number"===i.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),o||this._clearPreviousSelectedOption(null,!1),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&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Ei(this._zone.onStable.pipe(Nt(1)),this.autocomplete.options.changes.pipe(Kt(()=>this._positionStrategy.reapplyLastPosition()),uw(0))).pipe(pn(()=>(this._zone.run(()=>{const o=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?(this._captureValueOnAttach(),this._emitOpened()):this.autocomplete.closed.emit())}),this.panelClosingActions)),Nt(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_captureValueOnAttach(){this._valueOnAttach=this._element.nativeElement.value}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=this.autocomplete,o=e?e.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),i._emitSelectEvent(o),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),i._animationDone?i._animationDone.pipe(Nt(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(i)})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new va(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=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 i=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this._captureValueOnAttach(),this.panelOpen&&i!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Ll({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,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 i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{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?r:"below"===this.position?i:[...i,...r],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;if(e.autoActiveFirstOption){let i=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;const i=this.autocomplete.id;this._trackedModal&&kl(this._trackedModal,"aria-owns",i),qp(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(kl(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Zn),_(bi),_(We),_(Ft),_(mR),_(mn,8),_(Xu,9),_(lt,8),_(ba),_(hR,8))};static#t=this.\u0275dir=Q({type:t,inputs:{autocomplete:[pe.None,"matAutocomplete","autocomplete"],position:[pe.None,"matAutocompletePosition","position"],connectedTo:[pe.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[pe.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[pe.None,"matAutocompleteDisabled","autocompleteDisabled"]},features:[fi]})}return t})(),pR=(()=>{class t extends jee{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,o){1&i&&N("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),2&i&&Je("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||null==o.autocomplete?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Ye([Lee]),be]})}return t})(),fR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[Vee],imports:[cc,ef,St,Bn,ms,ef,St]})}return t})();function zee(t,n){if(1&t&&(d(0,"mat-option",19),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Me(" ",e," ")}}function Hee(t,n){if(1&t){const e=ge();d(0,"mat-form-field",16)(1,"mat-select",17),N("selectionChange",function(o){return ae(e),se(w(2)._changePageSize(o.value))}),y(2,zee,2,2,"mat-option",18),l()()}if(2&t){const e=w(2);f("appearance",e._formFieldAppearance)("color",e.color),m(),f("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(),f("ngForOf",e._displayedPageSizeOptions)}}function Uee(t,n){if(1&t&&(d(0,"div",20),h(1),l()),2&t){const e=w(2);m(),Fe(e.pageSize)}}function $ee(t,n){if(1&t&&(d(0,"div",12)(1,"div",13),h(2),l(),y(3,Hee,3,8,"mat-form-field",14)(4,Uee,2,1,"div",15),l()),2&t){const e=w();m(),fv("id",e._pageSizeLabelId),m(),Me(" ",e._intl.itemsPerPageLabel," "),m(),f("ngIf",e._displayedPageSizeOptions.length>1),m(),f("ngIf",e._displayedPageSizeOptions.length<=1)}}function Gee(t,n){if(1&t){const e=ge();d(0,"button",21),N("click",function(){return ae(e),se(w().firstPage())}),Xt(),d(1,"svg",7),D(2,"path",22),l()()}if(2&t){const e=w();f("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Je("aria-label",e._intl.firstPageLabel)}}function Wee(t,n){if(1&t){const e=ge();Xt(),mr(),d(0,"button",23),N("click",function(){return ae(e),se(w().lastPage())}),Xt(),d(1,"svg",7),D(2,"path",24),l()()}if(2&t){const e=w();f("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Je("aria-label",e._intl.lastPageLabel)}}let ig=(()=>{class t{constructor(){this.changes=new qe,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,o)=>{if(0==o||0==i)return`0 of ${o}`;const r=e*i;return`${r+1} \u2013 ${r<(o=Math.max(o,0))?Math.min(r+i,o):r+i} of ${o}`}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Kee={provide:ig,deps:[[new za,new Lc,ig]],useFactory:function qee(t){return t||new ig}},Yee=new oe("MAT_PAGINATOR_DEFAULT_OPTIONS"),Qee=fa(sW(class{}));let Xee=(()=>{class t extends Qee{get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(vi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=vi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(vi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>vi(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=$e(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=$e(e)}constructor(e,i,o){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new Re,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){const{pageSize:r,pageSizeOptions:a,hidePageSize:s,showFirstLastButtons:c}=o;null!=r&&(this._pageSize=r),null!=a&&(this._pageSizeOptions=a),null!=s&&(this._hidePageSize=s),null!=c&&(this._showFirstLastButtons=c)}}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.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[be]})}return t})(),Jee=0,Ww=(()=>{class t extends Xee{constructor(e,i,o){super(e,i,o),this._pageSizeLabelId="mat-paginator-page-size-label-"+Jee++,this._formFieldAppearance=o?.formFieldAppearance||"outline"}static#e=this.\u0275fac=function(i){return new(i||t)(_(ig),_(Ft),_(Yee,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[be],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-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-mdc-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-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-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-mdc-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(i,o){1&i&&(d(0,"div",0)(1,"div",1),y(2,$ee,5,4,"div",2),d(3,"div",3)(4,"div",4),h(5),l(),y(6,Gee,3,5,"button",5),d(7,"button",6),N("click",function(){return o.previousPage()}),Xt(),d(8,"svg",7),D(9,"path",8),l()(),mr(),d(10,"button",9),N("click",function(){return o.nextPage()}),Xt(),d(11,"svg",7),D(12,"path",10),l()(),y(13,Wee,3,5,"button",11),l()()()),2&i&&(m(2),f("ngIf",!o.hidePageSize),m(3),Me(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),f("ngIf",o.showFirstLastButtons),m(),f("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("matTooltipPosition","above")("disabled",o._previousButtonsDisabled()),Je("aria-label",o._intl.previousPageLabel),m(3),f("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("matTooltipPosition","above")("disabled",o._nextButtonsDisabled()),Je("aria-label",o._intl.nextPageLabel),m(3),f("ngIf",o.showFirstLastButtons))},dependencies:[dn,Tt,ga,Ri,uo,In,xn],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return t})(),gR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[Kee],imports:[Bn,nf,dw,Uw]})}return t})();const ete=[PE,nf,mO,fO,bO,CA,Ju,LA,dw,bA,tP,sP,gP,Ew,gR,MP,BP,Vw,QP,O0,Uw,rR,uR,fR];let tte=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[ete,PE,nf,mO,fO,bO,CA,Ju,LA,dw,bA,tP,sP,gP,Ew,gR,MP,BP,Vw,QP,O0,Uw,rR,uR,fR]})}return t})();const ite=["input"],nte=["*"];let _R=0;class bR{constructor(n,e){this.source=n,this.value=e}}const ote={provide:co,useExisting:qt(()=>ng),multi:!0},vR=new oe("MatRadioGroup"),rte=new oe("mat-radio-default-options",{providedIn:"root",factory:function ate(){return{color:"accent"}}});let ste=(()=>{class t{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=$e(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+_R++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Re}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new bR(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft))};static#t=this.\u0275dir=Q({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}})}return t})();class cte{constructor(n){this._elementRef=n}}const lte=ns(os(cte));let dte=(()=>{class t extends lte{get checked(){return this._checked}set checked(e){const i=$e(e);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled($e(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=$e(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,o,r,a,s,c,u){super(i),this._changeDetector=o,this._focusMonitor=r,this._radioDispatcher=a,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++_R,this.id=this._uniqueId,this.change=new Re,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,u&&(this.tabIndex=vi(u,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new bR(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let i;if(i=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const o=this._inputElement?.nativeElement;o&&(o.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(ite,5),2&i){let r;Oe(r=Ae())&&(o._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[pe.None,"aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[be]})}return t})(),ng=(()=>{class t extends ste{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,o,r){if(1&i&&ft(r,og,5),2&i){let a;Oe(a=Ae())&&(o._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[Ye([ote,{provide:vR,useExisting:t}]),be]})}return t})(),og=(()=>{class t extends dte{constructor(e,i,o,r,a,s,c,u){super(e,i,o,r,a,s,c,u)}static#e=this.\u0275fac=function(i){return new(i||t)(_(vR,8),_(Be),_(Ft),_(Lo),_(R0),_(di,8),_(rte,8),io("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(i,o){1&i&&N("focus",function(){return o._inputElement.nativeElement.focus()}),2&i&&(Je("id",o.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),et("mat-primary","primary"===o.color)("mat-accent","accent"===o.color)("mat-warn","warn"===o.color)("mat-mdc-radio-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[be],ngContentSelectors:nte,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,o){if(1&i&&(zt(),d(0,"div",0,1)(2,"div",2)(3,"div",3),N("click",function(a){return o._onTouchTargetClick(a)}),l(),d(4,"input",4,5),N("change",function(a){return o._onInputInteraction(a)}),l(),d(6,"div",6),D(7,"div",7)(8,"div",8),l(),d(9,"div",9),D(10,"div",10),l()(),d(11,"label",11),Ze(12),l()()),2&i){const r=Rt(1);et("mdc-form-field--align-end","before"==o.labelPosition),m(2),et("mdc-radio--disabled",o.disabled),m(2),f("id",o.inputId)("checked",o.checked)("disabled",o.disabled)("required",o.required),Je("name",o.name)("value",o.value)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby),m(5),f("matRippleTrigger",r)("matRippleDisabled",o._isRippleDisabled())("matRippleCentered",!0),m(2),f("for",o.inputId)}},dependencies:[rs],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return t})(),ute=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,Bn,as,St]})}return t})();class hte{constructor(n,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),o=i.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",i.setAttribute("aria-hidden","true"),i.value=n,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){const n=this._textarea;let e=!1;try{if(n){const i=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){const n=this._textarea;n&&(n.remove(),this._textarea=void 0)}}let mte=(()=>{class t{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),o=i.copy();return i.destroy(),o}beginCopy(e){return new hte(e,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(X(lt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const pte=new oe("CDK_COPY_TO_CLIPBOARD_CONFIG");let qw=(()=>{class t{constructor(e,i,o){this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new Re,this._pending=new Set,o&&null!=o.attempts&&(this.attempts=o.attempts)}copy(e=this.attempts){if(e>1){let i=e;const o=this._clipboard.beginCopy(this.text);this._pending.add(o);const r=()=>{const a=o.copy();a||! --i||this._destroyed?(this._currentTimeout=null,this._pending.delete(o),o.destroy(),this.copied.emit(a)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(r,1))};r()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}static#e=this.\u0275fac=function(i){return new(i||t)(_(mte),_(We),_(pte,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(i,o){1&i&&N("click",function(){return o.copy()})},inputs:{text:[pe.None,"cdkCopyToClipboard","text"],attempts:[pe.None,"cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}})}return t})(),fte=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const rg=L(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ag(t){return ji((n,e)=>{let i=!1;n.subscribe(Fi(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function yR(t=gte){return ji((n,e)=>{let i=!1;n.subscribe(Fi(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function gte(){return new rg}function dc(t,n){const e=arguments.length>=2;return i=>i.pipe(t?It((o,r)=>t(o,r,i)):Ra,Nt(1),e?ag(n):yR(()=>new rg))}function Kw(t){return t<=0?()=>Fo:ji((n,e)=>{let i=[];n.subscribe(Fi(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}const Lt="primary",ch=Symbol("RouteTitle");class yte{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Gl(t){return new yte(t)}function wte(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function xR(t){return t.length>0?t[t.length-1]:null}function vs(t){return Ol(t)?t:uu(t)?Zi(Promise.resolve(t)):Ke(t)}const Cte={exact:function SR(t,n,e){if(!uc(t.segments,n.segments)||!sg(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!SR(t.children[i],n.children[i],e))return!1;return!0},subset:kR},CR={exact:function Dte(t,n){return jr(t,n)},subset:function Ste(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>wR(t[e],n[e]))},ignored:()=>!0};function DR(t,n,e){return Cte[e.paths](t.root,n.root,e.matrixParams)&&CR[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function kR(t,n,e){return TR(t,n,n.segments,e)}function TR(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!uc(o,e)||n.hasChildren()||!sg(o,e,i))}if(t.segments.length===e.length){if(!uc(t.segments,e)||!sg(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!kR(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(uc(t.segments,o)&&sg(t.segments,o,i)&&t.children[Lt])&&TR(t.children[Lt],n,r,i)}}function sg(t,n,e){return n.every((i,o)=>CR[e](t[o].parameters,i.parameters))}class Wl{constructor(n=new yi([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Gl(this.queryParams),this._queryParamMap}toString(){return Mte.serialize(this)}}class yi{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return cg(this)}}class lh{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Gl(this.parameters),this._parameterMap}toString(){return ER(this)}}function uc(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let ql=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>new Yw,providedIn:"root"})}return t})();class Yw{parse(n){const e=new Vte(n);return new Wl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${dh(n.root,!0)}`,i=function Ote(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${lg(e)}=${lg(o)}`).join("&"):`${lg(e)}=${lg(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function Ite(t){return encodeURI(t)}(n.fragment)}`:""}`}}const Mte=new Yw;function cg(t){return t.segments.map(n=>ER(n)).join("/")}function dh(t,n){if(!t.hasChildren())return cg(t);if(n){const e=t.children[Lt]?dh(t.children[Lt],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Lt&&i.push(`${o}:${dh(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function Tte(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===Lt&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==Lt&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===Lt?[dh(t.children[Lt],!1)]:[`${o}:${dh(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Lt]?`${cg(t)}/${e[0]}`:`${cg(t)}/(${e.join("//")})`}}function MR(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lg(t){return MR(t).replace(/%3B/gi,";")}function Qw(t){return MR(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dg(t){return decodeURIComponent(t)}function IR(t){return dg(t.replace(/\+/g,"%20"))}function ER(t){return`${Qw(t.path)}${function Ete(t){return Object.entries(t).map(([n,e])=>`;${Qw(n)}=${Qw(e)}`).join("")}(t.parameters)}`}const Ate=/^[^\/()?;#]+/;function Xw(t){const n=t.match(Ate);return n?n[0]:""}const Pte=/^[^\/()?;=#]+/,Nte=/^[^=?&#]+/,Lte=/^[^&#]+/;class Vte{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yi([],{}):new yi([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Lt]=new yi(n,e)),i}parseSegment(){const n=Xw(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new ue(4009,!1);return this.capture(n),new lh(dg(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function Rte(t){const n=t.match(Pte);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=Xw(this.remaining);o&&(i=o,this.capture(i))}n[dg(e)]=dg(i)}parseQueryParam(n){const e=function Fte(t){const n=t.match(Nte);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function Bte(t){const n=t.match(Lte);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=IR(e),r=IR(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Xw(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new ue(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Lt);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[Lt]:new yi([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new ue(4011,!1)}}function OR(t){return t.segments.length>0?new yi([],{[Lt]:t}):t}function AR(t){const n={};for(const[i,o]of Object.entries(t.children)){const r=AR(o);if(i===Lt&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function jte(t){if(1===t.numberOfChildren&&t.children[Lt]){const n=t.children[Lt];return new yi(t.segments.concat(n.segments),n.children)}return t}(new yi(t.segments,n))}function Kl(t){return t instanceof Wl}function PR(t){let n;const o=OR(function e(r){const a={};for(const c of r.children){const u=e(c);a[c.outlet]=u}const s=new yi(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function RR(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return Jw(o,o,o,e,i);const r=function Hte(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new FR(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([c,u])=>{s[c]="string"==typeof u?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new FR(e,n,i)}(n);if(r.toRoot())return Jw(o,o,new yi([],{}),e,i);const a=function Ute(t,n,e){if(t.isAbsolute)return new hg(n,!0,0);if(!e)return new hg(n,!1,NaN);if(null===e.parent)return new hg(e,!0,0);const i=ug(t.commands[0])?0:1;return function $te(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new ue(4005,!1);o=i.segments.length}return new hg(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?hh(a.segmentGroup,a.index,r.commands):LR(a.segmentGroup,a.index,r.commands);return Jw(o,a.segmentGroup,s,e,i)}function ug(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function uh(t){return"object"==typeof t&&null!=t&&t.outlets}function Jw(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([c,u])=>{r[c]=Array.isArray(u)?u.map(p=>`${p}`):`${u}`}),a=t===n?e:NR(t,n,e);const s=OR(AR(a));return new Wl(s,r,o)}function NR(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:NR(r,n,e)}),new yi(t.segments,i)}class FR{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&ug(i[0]))throw new ue(4003,!1);const o=i.find(uh);if(o&&o!==xR(i))throw new ue(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class hg{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function LR(t,n,e){if(t??=new yi([],{}),0===t.segments.length&&t.hasChildren())return hh(t,n,e);const i=function Wte(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(uh(s))break;const c=`${s}`,u=i0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!VR(c,u,a))return r;i+=2}else{if(!VR(c,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==Lt)&&t.children[Lt]&&1===t.numberOfChildren&&0===t.children[Lt].segments.length){const r=hh(t.children[Lt],n,e);return new yi(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=LR(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new yi(t.segments,o)}}function ex(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=ex(new yi([],{}),0,i))}),n}function BR(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function VR(t,n,e){return t==e.path&&jr(n,e.parameters)}const mh="imperative";var Zt=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Zt||{});class zr{constructor(n,e){this.id=n,this.url=e}}class mg extends zr{constructor(n,e,i="imperative",o=null){super(n,e),this.type=Zt.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ea extends zr{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=Zt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var tr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(tr||{}),pg=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(pg||{});class Zl extends zr{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=Zt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Yl extends zr{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=Zt.NavigationSkipped}}class fg extends zr{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=Zt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class jR extends zr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Zt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Kte extends zr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Zt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zte extends zr{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=Zt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Yte extends zr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Zt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qte extends zr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Zt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xte{constructor(n){this.route=n,this.type=Zt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Jte{constructor(n){this.route=n,this.type=Zt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class eie{constructor(n){this.snapshot=n,this.type=Zt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tie{constructor(n){this.snapshot=n,this.type=Zt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iie{constructor(n){this.snapshot=n,this.type=Zt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nie{constructor(n){this.snapshot=n,this.type=Zt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zR{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=Zt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class tx{}class ix{constructor(n){this.url=n}}class oie{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ph,this.attachRef=null}}let ph=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new oie,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class HR{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=nx(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=nx(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=ox(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return ox(n,this._root).map(e=>e.value)}}function nx(t,n){if(t===n.value)return n;for(const e of n.children){const i=nx(t,e);if(i)return i}return null}function ox(t,n){if(t===n.value)return[n];for(const e of n.children){const i=ox(t,e);if(i.length)return i.unshift(n),i}return[]}class Cr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ql(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class UR extends HR{constructor(n,e){super(n),this.snapshot=e,sx(this,n)}toString(){return this.snapshot.toString()}}function $R(t){const n=function rie(t){const r=new ax([],{},{},"",{},Lt,t,null,{});return new GR("",new Cr(r,[]))}(t),e=new bt([new lh("",{})]),i=new bt({}),o=new bt({}),r=new bt({}),a=new bt(""),s=new Xl(e,i,r,a,o,Lt,t,n.root);return s.snapshot=n.root,new UR(new Cr(s,[]),n)}class Xl{constructor(n,e,i,o,r,a,s,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(nt(u=>u[ch]))??Ke(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(nt(n=>Gl(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(nt(n=>Gl(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rx(t,n,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===n||"always"!==e&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...o?.data,...t._resolvedData}},o&&qR(o)&&(i.resolve[ch]=o.title),i}class ax{get title(){return this.data?.[ch]}constructor(n,e,i,o,r,a,s,c,u){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=u}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??=Gl(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Gl(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class GR extends HR{constructor(n,e){super(e),this.url=n,sx(this,e)}toString(){return WR(this._root)}}function sx(t,n){n.value._routerState=t,n.children.forEach(e=>sx(t,e))}function WR(t){const n=t.children.length>0?` { ${t.children.map(WR).join(", ")} } `:"";return`${t.value}${n}`}function cx(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,jr(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),jr(n.params,e.params)||t.paramsSubject.next(e.params),function xte(t,n){if(t.length!==n.length)return!1;for(let e=0;ejr(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||lx(t.parent,n.parent))}function qR(t){return"string"==typeof t.title||null===t.title}let gg=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Lt,this.activateEvents=new Re,this.deactivateEvents=new Re,this.attachEvents=new Re,this.detachEvents=new Re,this.parentContexts=we(ph),this.location=we(bi),this.changeDetector=we(Ft),this.environmentInjector=we(Io),this.inputBinder=we(_g,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)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 ue(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new ue(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new aie(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[fi]})}return t})();class aie{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Xl?this.route:n===ph?this.childContexts:this.parent.get(n,e)}}const _g=new oe("");let KR=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=Qs([i.queryParams,i.params,i.data]).pipe(pn(([r,a,s],c)=>(s={...r,...a,...s},0===c?Ke(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function Kz(t){const n=jt(t);if(!n)return null;const e=new Zd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();function fh(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function cie(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return fh(t,i,o);return fh(t,i)})}(t,n,e);return new Cr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>fh(t,s)),a}}const i=function lie(t){return new Xl(new bt(t.url),new bt(t.params),new bt(t.queryParams),new bt(t.fragment),new bt(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>fh(t,r));return new Cr(i,o)}}const ZR="ngNavigationCancelingError";function YR(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Kl(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=QR(!1,tr.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function QR(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[ZR]=!0,e.cancellationCode=n,e}function XR(t){return!!t&&t[ZR]}let JR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["ng-component"]],standalone:!0,features:[ET],decls:1,vars:0,template:function(i,o){1&i&&D(0,"router-outlet")},dependencies:[gg],encapsulation:2})}return t})();function dx(t){const n=t.children&&t.children.map(dx),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Lt&&(e.component=JR),e}function Hr(t){return t.outlet||Lt}function gh(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class _ie{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),cx(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=Ql(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=Ql(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=Ql(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=Ql(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new nie(r.value.snapshot))}),n.children.length&&this.forwardEvent(new tie(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(cx(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),cx(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=gh(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class eN{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class bg{constructor(n,e){this.component=n,this.route=e}}function bie(t,n,e){const i=t._root;return _h(i,n?n._root:null,e,[i.value])}function Jl(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function VF(t){return null!==Fh(t)}(t)?n.get(t):t:i}function _h(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=Ql(n);return t.children.forEach(a=>{(function yie(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const c=function wie(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!uc(t.url,n.url);case"pathParamsOrQueryParamsChange":return!uc(t.url,n.url)||!jr(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lx(t,n)||!jr(t.queryParams,n.queryParams);default:return!lx(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new eN(i)):(r.data=a.data,r._resolvedData=a._resolvedData),_h(t,n,r.component?s?s.children:null:e,i,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new bg(s.outlet.component,a))}else a&&bh(n,s,o),o.canActivateChecks.push(new eN(i)),_h(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>bh(s,e.getContext(a),o)),o}function bh(t,n,e){const i=Ql(t),o=t.value;Object.entries(i).forEach(([r,a])=>{bh(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new bg(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function vh(t){return"function"==typeof t}function tN(t){return t instanceof rg||"EmptyError"===t?.name}const vg=Symbol("INITIAL_VALUE");function ed(){return pn(t=>Qs(t.map(n=>n.pipe(Nt(1),nn(vg)))).pipe(nt(n=>{for(const e of n)if(!0!==e){if(e===vg)return vg;if(!1===e||e instanceof Wl)return e}return!0}),It(n=>n!==vg),Nt(1)))}function iN(t){return function VN(...t){return kx(t)}(Kt(n=>{if(Kl(n))throw YR(0,n)}),nt(n=>!0===n))}class ux{constructor(n){this.segmentGroup=n||null}}class hx extends Error{constructor(n){super(),this.urlTree=n}}function td(t){return Lu(new ux(t))}class jie{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Ke(i);if(o.numberOfChildren>1||!o.children[Lt])return Lu(new ue(4e3,!1));o=o.children[Lt]}}applyRedirectCommands(n,e,i){const o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new hx(o);return o}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new Wl(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(n,c,i,o)}),new yi(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new ue(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const mx={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zie(t,n,e,i,o){const r=px(t,n,e);return r.matched?(i=function uie(t,n){return t.providers&&!t._injector&&(t._injector=qb(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function Lie(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?Ke(o.map(a=>{const s=Jl(a,t);return vs(function Tie(t){return t&&vh(t.canMatch)}(s)?s.canMatch(n,e):Ha(t,()=>s(n,e)))})).pipe(ed(),iN()):Ke(!0)}(i,n,e).pipe(nt(a=>!0===a?r:{...mx}))):Ke(r)}function px(t,n,e){if("**"===n.path)return function Hie(t){return{matched:!0,parameters:t.length>0?xR(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...mx}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||wte)(e,t,n);if(!o)return{...mx};const r={};Object.entries(o.posParams??{}).forEach(([s,c])=>{r[s]=c.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function nN(t,n,e,i){return e.length>0&&function Gie(t,n,e){return e.some(i=>yg(t,n,i)&&Hr(i)!==Lt)}(t,e,i)?{segmentGroup:new yi(n,$ie(i,new yi(e,t.children))),slicedSegments:[]}:0===e.length&&function Wie(t,n,e){return e.some(i=>yg(t,n,i))}(t,e,i)?{segmentGroup:new yi(t.segments,Uie(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new yi(t.segments,t.children),slicedSegments:e}}function Uie(t,n,e,i){const o={};for(const r of e)if(yg(t,n,r)&&!i[Hr(r)]){const a=new yi([],{});o[Hr(r)]=a}return{...i,...o}}function $ie(t,n){const e={};e[Lt]=n;for(const i of t)if(""===i.path&&Hr(i)!==Lt){const o=new yi([],{});e[Hr(i)]=o}return e}function yg(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class Zie{}class Xie{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new jie(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new ue(4002,`'${n.segmentGroup}'`)}recognize(){const n=nN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(nt(e=>{const i=new ax([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Lt,this.rootComponentType,null,{}),o=new Cr(i,e),r=new GR("",o),a=function zte(t,n,e=null,i=null){return RR(PR(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,Lt).pipe(Hi(i=>{if(i instanceof hx)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof ux?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,o=rx(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),n.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0).pipe(nt(r=>r instanceof Cr?[r]:[]))}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return Zi(o).pipe(Il(r=>{const a=i.children[r],s=function fie(t,n){const e=t.filter(i=>Hr(i)===n);return e.push(...t.filter(i=>Hr(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function bte(t,n){return ji(function _te(t,n,e,i,o){return(r,a)=>{let s=e,c=n,u=0;r.subscribe(Fi(a,p=>{const g=u++;c=s?t(c,p,g):(s=!0,p),i&&a.next(c)},o&&(()=>{s&&a.next(c),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),ag(null),function vte(t,n){const e=arguments.length>=2;return i=>i.pipe(t?It((o,r)=>t(o,r,i)):Ra,Kw(1),e?ag(n):yR(()=>new rg))}(),Mn(r=>{if(null===r)return td(i);const a=oN(r);return function Jie(t){t.sort((n,e)=>n.value.outlet===Lt?-1:e.value.outlet===Lt?1:n.value.outlet.localeCompare(e.value.outlet))}(a),Ke(a)}))}processSegment(n,e,i,o,r,a){return Zi(e).pipe(Il(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(Hi(c=>{if(c instanceof ux)return Ke(null);throw c}))),dc(s=>!!s),Hi(s=>{if(tN(s))return function Kie(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?Ke(new Zie):td(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function qie(t,n,e,i){return!!(Hr(t)===i||i!==Lt&&yg(n,e,t))&&px(n,t,e).matched}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):td(o):td(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:c,positionalParamSegments:u,remainingSegments:p}=px(e,o,r);if(!s)return td(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const g=this.applyRedirects.applyRedirectCommands(c,o.redirectTo,u);return this.applyRedirects.lineralizeSegments(o,g).pipe(Mn(b=>this.processSegment(n,i,e,b.concat(p),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){const a=zie(e,i,o,n);return"**"===i.path&&(e.children={}),a.pipe(pn(s=>s.matched?this.getChildConfig(n=i._injector??n,i,o).pipe(pn(({routes:c})=>{const u=i._loadedInjector??n,{consumedSegments:p,remainingSegments:g,parameters:b}=s,x=new ax(p,b,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function tne(t){return t.data||{}}(i),Hr(i),i.component??i._loadedComponent??null,i,function ine(t){return t.resolve||{}}(i)),{segmentGroup:T,slicedSegments:I}=nN(e,p,g,c);if(0===I.length&&T.hasChildren())return this.processChildren(u,c,T).pipe(nt(ie=>null===ie?null:new Cr(x,ie)));if(0===c.length&&0===I.length)return Ke(new Cr(x,[]));const z=Hr(i)===r;return this.processSegment(u,c,T,I,z?Lt:r,!0).pipe(nt(ie=>new Cr(x,ie instanceof Cr?[ie]:[])))})):td(e)))}getChildConfig(n,e,i){return e.children?Ke({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Ke({routes:e._loadedRoutes,injector:e._loadedInjector}):function Fie(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?Ke(!0):Ke(o.map(a=>{const s=Jl(a,t);return vs(function Cie(t){return t&&vh(t.canLoad)}(s)?s.canLoad(n,e):Ha(t,()=>s(n,e)))})).pipe(ed(),iN())}(n,e,i).pipe(Mn(o=>o?this.configLoader.loadChildren(n,e).pipe(Kt(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function Vie(t){return Lu(QR(!1,tr.GuardRejected))}())):Ke({routes:[],injector:n})}}function ene(t){const n=t.value.routeConfig;return n&&""===n.path}function oN(t){const n=[],e=new Set;for(const i of t){if(!ene(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=oN(i.children);n.push(new Cr(i.value,o))}return n.filter(i=>!e.has(i))}function rN(t){const n=t.children.map(e=>rN(e)).flat();return[t,...n]}function fx(t){return pn(n=>{const e=t(n);return e?Zi(e).pipe(nt(()=>n)):Ke(n)})}let aN=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===Lt);return i}getResolvedTitleForRoute(e){return e.data[ch]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>we(cne),providedIn:"root"})}return t})(),cne=(()=>{class t extends aN{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||t)(X(mH))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const id=new oe("",{providedIn:"root",factory:()=>({})}),nd=new oe("");let gx=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=we(yM)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Ke(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=vs(e.loadComponent()).pipe(nt(sN),Kt(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Js(()=>{this.componentLoaders.delete(e)})),o=new P0(i,()=>new qe).pipe(A0());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Ke({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function lne(t,n,e,i){return vs(t.loadChildren()).pipe(nt(sN),Mn(o=>o instanceof AS||Array.isArray(o)?Ke(o):Zi(n.compileModuleAsync(o))),nt(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(nd,[],{optional:!0,self:!0}).flat()),{routes:a.map(dx),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(Js(()=>{this.childrenLoaders.delete(i)})),a=new P0(r,()=>new qe).pipe(A0());return this.childrenLoaders.set(i,a),a}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sN(t){return function dne(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let _x=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>we(une),providedIn:"root"})}return t})(),une=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const cN=new oe(""),lN=new oe("");function hne(t,n,e){const i=t.get(lN),o=t.get(lt);return t.get(We).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r;const a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),function mne(t){return new Promise(n=>{QD(n,{injector:t})})}(t))),{onViewTransitionCreated:c}=i;return c&&Ha(t,()=>c({transition:s,from:n,to:e})),a})}let wg=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new qe,this.transitionAbortSubject=new qe,this.configLoader=we(gx),this.environmentInjector=we(Io),this.urlSerializer=we(ql),this.rootContexts=we(ph),this.location=we(Ws),this.inputBindingEnabled=null!==we(_g,{optional:!0}),this.titleStrategy=we(aN),this.options=we(id,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=we(_x),this.createViewTransition=we(cN,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Ke(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Jte(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new Xte(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new bt({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:mh,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(It(r=>0!==r.id),nt(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),pn(r=>{this.currentTransition=r;let a=!1,s=!1;return Ke(r).pipe(Kt(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),pn(c=>{const u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!u&&"reload"!==(c.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const g="";return this.events.next(new Yl(c.id,this.urlSerializer.serialize(c.rawUrl),g,pg.IgnoredSameUrlNavigation)),c.resolve(null),Fo}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Ke(c).pipe(pn(g=>{const b=this.transitions?.getValue();return this.events.next(new mg(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),b!==this.transitions?.getValue()?Fo:Promise.resolve(g)}),function nne(t,n,e,i,o,r){return Mn(a=>function Yie(t,n,e,i,o,r,a="emptyOnly"){return new Xie(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(nt(({state:s,tree:c})=>({...a,targetSnapshot:s,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Kt(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:g.urlAfterRedirects};const b=new jR(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(b)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:g,extractedUrl:b,source:x,restoredState:T,extras:I}=c,z=new mg(g,this.urlSerializer.serialize(b),x,T);this.events.next(z);const ie=$R(this.rootComponentType).snapshot;return this.currentTransition=r={...c,targetSnapshot:ie,urlAfterRedirects:b,extras:{...I,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=b,Ke(r)}{const g="";return this.events.next(new Yl(c.id,this.urlSerializer.serialize(c.extractedUrl),g,pg.IgnoredByUrlHandlingStrategy)),c.resolve(null),Fo}}),Kt(c=>{const u=new Kte(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),nt(c=>(this.currentTransition=r={...c,guards:bie(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},r)),function Mie(t,n){return Mn(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?Ke({...e,guardsResult:!0}):function Iie(t,n,e,i){return Zi(t).pipe(Mn(o=>function Nie(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Ke(r.map(s=>{const c=gh(n)??o,u=Jl(s,c);return vs(function kie(t){return t&&vh(t.canDeactivate)}(u)?u.canDeactivate(t,n,e,i):Ha(c,()=>u(t,n,e,i))).pipe(dc())})).pipe(ed()):Ke(!0)}(o.component,o.route,e,n,i)),dc(o=>!0!==o,!0))}(a,i,o,t).pipe(Mn(s=>s&&function xie(t){return"boolean"==typeof t}(s)?function Eie(t,n,e,i){return Zi(n).pipe(Il(o=>Au(function Aie(t,n){return null!==t&&n&&n(new eie(t)),Ke(!0)}(o.route.parent,i),function Oie(t,n){return null!==t&&n&&n(new iie(t)),Ke(!0)}(o.route,i),function Rie(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function vie(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Bl(()=>Ke(a.guards.map(c=>{const u=gh(a.node)??e,p=Jl(c,u);return vs(function Sie(t){return t&&vh(t.canActivateChild)}(p)?p.canActivateChild(i,t):Ha(u,()=>p(i,t))).pipe(dc())})).pipe(ed())));return Ke(r).pipe(ed())}(t,o.path,e),function Pie(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Ke(!0);const o=i.map(r=>Bl(()=>{const a=gh(n)??e,s=Jl(r,a);return vs(function Die(t){return t&&vh(t.canActivate)}(s)?s.canActivate(n,t):Ha(a,()=>s(n,t))).pipe(dc())}));return Ke(o).pipe(ed())}(t,o.route,e))),dc(o=>!0!==o,!0))}(i,r,t,n):Ke(s)),nt(s=>({...e,guardsResult:s})))})}(this.environmentInjector,c=>this.events.next(c)),Kt(c=>{if(r.guardsResult=c.guardsResult,Kl(c.guardsResult))throw YR(0,c.guardsResult);const u=new Zte(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),It(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",tr.GuardRejected),!1)),fx(c=>{if(c.guards.canActivateChecks.length)return Ke(c).pipe(Kt(u=>{const p=new Yte(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}),pn(u=>{let p=!1;return Ke(u).pipe(function one(t,n){return Mn(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Ke(e);const r=new Set(o.map(c=>c.route)),a=new Set;for(const c of r)if(!a.has(c))for(const u of rN(c))a.add(u);let s=0;return Zi(a).pipe(Il(c=>r.has(c)?function rne(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!qR(o)&&(r[ch]=o.title),function ane(t,n,e,i){const o=Zw(t);if(0===o.length)return Ke({});const r={};return Zi(o).pipe(Mn(a=>function sne(t,n,e,i){const o=gh(n)??i,r=Jl(t,o);return vs(r.resolve?r.resolve(n,e):Ha(o,()=>r(n,e)))}(t[a],n,e,i).pipe(dc(),Kt(s=>{r[a]=s}))),Kw(1),Pf(r),Hi(a=>tN(a)?Fo:Lu(a)))}(r,t,n,i).pipe(nt(a=>(t._resolvedData=a,t.data=rx(t,t.parent,e).resolve,null)))}(c,i,t,n):(c.data=rx(c,c.parent,t).resolve,Ke(void 0))),Kt(()=>s++),Kw(1),Mn(c=>s===a.size?Ke(e):Fo))})}(this.paramsInheritanceStrategy,this.environmentInjector),Kt({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(u,"",tr.NoDataFromResolver)}}))}),Kt(u=>{const p=new Qte(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}))}),fx(c=>{const u=p=>{const g=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(p.routeConfig).pipe(Kt(b=>{p.component=b}),nt(()=>{})));for(const b of p.children)g.push(...u(b));return g};return Qs(u(c.targetSnapshot.root)).pipe(ag(null),Nt(1))}),fx(()=>this.afterPreactivation()),pn(()=>{const{currentSnapshot:c,targetSnapshot:u}=r,p=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return p?Zi(p).pipe(nt(()=>r)):Ke(r)}),nt(c=>{const u=function sie(t,n,e){const i=fh(t,n._root,e?e._root:void 0);return new UR(i,n)}(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r={...c,targetRouterState:u},this.currentNavigation.targetRouterState=u,r}),Kt(()=>{this.events.next(new tx)}),((t,n,e,i)=>nt(o=>(new _ie(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Nt(1),Kt({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ea(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),ot(this.transitionAbortSubject.pipe(Kt(c=>{throw c}))),Js(()=>{!a&&!s&&this.cancelNavigationTransition(r,"",tr.SupersededByNewNavigation),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Hi(c=>{if(s=!0,XR(c))this.events.next(new Zl(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),function die(t){return XR(t)&&Kl(t.url)}(c)?this.events.next(new ix(c.url)):r.resolve(!1);else{this.events.next(new fg(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(c))}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return Fo}))}))}cancelNavigationTransition(e,i,o){const r=new Zl(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pne(t){return t!==mh}let fne=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>we(_ne),providedIn:"root"})}return t})();class gne{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let _ne=(()=>{class t extends gne{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dN=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>we(bne),providedIn:"root"})}return t})(),bne=(()=>{class t extends dN{constructor(){super(...arguments),this.location=we(Ws),this.urlSerializer=we(ql),this.options=we(id,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=we(_x),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Wl,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=$R(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof mg)this.stateMemento=this.createStateMemento();else if(e instanceof Yl)this.rawUrlTree=i.initialUrl;else if(e instanceof jR){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else e instanceof tx?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof Zl&&(e.code===tr.GuardRejected||e.code===tr.NoDataFromResolver)?this.restoreHistory(i):e instanceof fg?this.restoreHistory(i,!0):e instanceof Ea&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&0===r&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ut(t)))(o||t)}})();static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var yh=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(yh||{});function uN(t,n){t.events.pipe(It(e=>e instanceof Ea||e instanceof Zl||e instanceof fg||e instanceof Yl),nt(e=>e instanceof Ea||e instanceof Yl?yh.COMPLETE:e instanceof Zl&&(e.code===tr.Redirect||e.code===tr.SupersededByNewNavigation)?yh.REDIRECTING:yh.FAILED),It(e=>e!==yh.REDIRECTING),Nt(1)).subscribe(()=>{n()})}function vne(t){throw t}const yne={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wne={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let An=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=we(lM),this.stateManager=we(dN),this.options=we(id,{optional:!0})||{},this.pendingTasks=we(Bs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=we(wg),this.urlSerializer=we(ql),this.location=we(Ws),this.urlHandlingStrategy=we(_x),this._events=new qe,this.errorHandler=this.options.errorHandler||vne,this.navigated=!1,this.routeReuseStrategy=we(fne),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=we(nd,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!we(_g,{optional:!0}),this.eventsSubscription=new de,this.isNgZoneEnabled=we(We)instanceof We&&We.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==o&&null!==r)if(this.stateManager.handleRouterEvent(i,r),i instanceof Zl&&i.code!==tr.Redirect&&i.code!==tr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Ea)this.navigated=!0;else if(i instanceof ix){const a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||pne(o.source)};this.scheduleNavigation(a,mh,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function Cne(t){return!(t instanceof tx||t instanceof ix)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),mh,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(r.state=c)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(dx),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:c}=i,u=c?this.currentUrlTree.fragment:a;let g,p=null;switch(s){case"merge":p={...this.currentUrlTree.queryParams,...r};break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}null!==p&&(p=this.removeEmptyProps(p));try{g=PR(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),g=this.currentUrlTree.root}return RR(g,e,p,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=Kl(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,mh,null,i)}navigate(e,i={skipLocationChange:!1}){return function xne(t){for(let n=0;n(null!=r&&(i[o]=r),i),{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,c,u;a?(s=a.resolve,c=a.reject,u=a.promise):u=new Promise((g,b)=>{s=g,c=b});const p=this.pendingTasks.add();return uN(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(g=>Promise.reject(g))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ur=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new qe,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof Ea&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function T1(t,n,e){return function AL(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?k1:Uo}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(i){return new(i||t)(_(An),_(Xl),io("tabindex"),_(ra),_(Be),_(Gs))};static#t=this.\u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&N("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&Je("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[pe.HasDecoratorInputTransform,"preserveFragment","preserveFragment",vl],skipLocationChange:[pe.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",vl],replaceUrl:[pe.HasDecoratorInputTransform,"replaceUrl","replaceUrl",vl],routerLink:"routerLink"},standalone:!0,features:[OS,fi]})}return t})();class hN{}let kne=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(It(e=>e instanceof Ea),Il(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=qb(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Zi(o).pipe(Sl())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Ke(null);const r=o.pipe(Mn(a=>null===a?Ke(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?Zi([r,this.loader.loadComponent(i)]).pipe(Sl()):r})}static#e=this.\u0275fac=function(i){return new(i||t)(X(An),X(yM),X(Io),X(hN),X(gx))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const bx=new oe("");let mN=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",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 mg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ea?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Yl&&e.code===pg.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof zR&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new zR(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();function $r(t,n){return{\u0275kind:t,\u0275providers:n}}function fN(){const t=we(Bi);return n=>{const e=t.get(Za);if(n!==e.components[0])return;const i=t.get(An),o=t.get(gN);1===t.get(vx)&&i.initialNavigation(),t.get(_N,null,Ht.Optional)?.setUpPreloading(),t.get(bx,null,Ht.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const gN=new oe("",{factory:()=>new qe}),vx=new oe("",{providedIn:"root",factory:()=>1}),_N=new oe("");function Ene(t){return $r(0,[{provide:_N,useExisting:kne},{provide:hN,useExisting:t}])}function Ane(t){return $r(9,[{provide:cN,useValue:hne},{provide:lN,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const bN=new oe("ROUTER_FORROOT_GUARD"),Pne=[Ws,{provide:ql,useClass:Yw},An,ph,{provide:Xl,useFactory:function pN(t){return t.routerState.root},deps:[An]},gx,[]];let vN=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[Pne,[],{provide:nd,multi:!0,useValue:e},{provide:bN,useFactory:Lne,deps:[[An,new za,new Lc]]},{provide:id,useValue:i||{}},i?.useHash?{provide:Gs,useClass:Jz}:{provide:Gs,useClass:iI},{provide:bx,useFactory:()=>{const t=we(p9),n=we(We),e=we(id),i=we(wg),o=we(ql);return e.scrollOffset&&t.setOffset(e.scrollOffset),new mN(o,i,t,n,e)}},i?.preloadingStrategy?Ene(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?Bne(i):[],i?.bindToComponentInputs?$r(8,[KR,{provide:_g,useExisting:KR}]).\u0275providers:[],i?.enableViewTransitions?Ane().\u0275providers:[],[{provide:yN,useFactory:fN},{provide:Fv,multi:!0,useExisting:yN}]]}}static forChild(e){return{ngModule:t,providers:[{provide:nd,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(i){return new(i||t)(X(bN,8))};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();function Lne(t){return"guarded"}function Bne(t){return["disabled"===t.initialNavigation?$r(3,[{provide:Rv,multi:!0,useFactory:()=>{const n=we(An);return()=>{n.setUpLocationChangeListener()}}},{provide:vx,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?$r(2,[{provide:vx,useValue:0},{provide:Rv,multi:!0,deps:[Bi],useFactory:n=>{const e=n.get(Qz,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(An),r=n.get(gN);uN(o,()=>{i(!0)}),n.get(wg).afterPreactivation=()=>(i(!0),r.closed?Ke(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const yN=new oe("");var Yn=function(t){return t.DirectConnect="directConnect",t.DumpFile="dumpFile",t.SessionFile="sessionFile",t.ResumeSession="resumeSession",t}(Yn||{}),rn=function(t){return t.Type="inputType",t.Config="config",t.SourceDbName="sourceDbName",t}(rn||{}),Oa=function(t){return t.MySQL="MySQL",t.Postgres="Postgres",t.SQLServer="SQL Server",t.Oracle="Oracle",t}(Oa||{}),hi=function(t){return t.DbName="databaseName",t.Tables="tables",t.Table="tableName",t.Indexes="indexes",t.Index="indexName",t}(hi||{}),Gr=function(t){return t.schemaOnly="Schema",t.dataOnly="Data",t.schemaAndData="Schema And Data",t}(Gr||{}),od=function(t){return t.Table="table",t.Index="index",t}(od||{}),jn=function(t){return t.bulkMigration="bulk",t.lowDowntimeMigration="lowdt",t}(jn||{}),me=function(t){return t.MigrationMode="migrationMode",t.MigrationType="migrationType",t.IsTargetDetailSet="isTargetDetailSet",t.IsSourceConnectionProfileSet="isSourceConnectionProfileSet",t.IsSourceDetailsSet="isSourceDetailsSet",t.IsTargetConnectionProfileSet="isTargetConnectionProfileSet",t.IsMigrationDetailSet="isMigrationDetailSet",t.IsMigrationInProgress="isMigrationInProgress",t.HasDataMigrationStarted="hasDataMigrationStarted",t.HasSchemaMigrationStarted="hasSchemaMigrationStarted",t.SchemaProgressMessage="schemaProgressMessage",t.DataProgressMessage="dataProgressMessage",t.DataMigrationProgress="dataMigrationProgress",t.SchemaMigrationProgress="schemaMigrationProgress",t.HasForeignKeyUpdateStarted="hasForeignKeyUpdateStarted",t.ForeignKeyProgressMessage="foreignKeyProgressMessage",t.ForeignKeyUpdateProgress="foreignKeyUpdateProgress",t.GeneratingResources="generatingResources",t.NumberOfShards="numberOfShards",t.NumberOfInstances="numberOfInstances",t.isForeignKeySkipped="isForeignKeySkipped",t}(me||{}),si=function(t){return t.TargetDB="targetDb",t.Dialect="dialect",t.SourceConnProfile="sourceConnProfile",t.TargetConnProfile="targetConnProfile",t.ReplicationSlot="replicationSlot",t.Publication="publication",t}(si||{});var rd=function(t){return t[t.SchemaMigrationComplete=1]="SchemaMigrationComplete",t[t.SchemaCreationInProgress=2]="SchemaCreationInProgress",t[t.DataMigrationComplete=3]="DataMigrationComplete",t[t.DataWriteInProgress=4]="DataWriteInProgress",t[t.ForeignKeyUpdateInProgress=5]="ForeignKeyUpdateInProgress",t[t.ForeignKeyUpdateComplete=6]="ForeignKeyUpdateComplete",t}(rd||{});const wN=[{value:"google_standard_sql",displayName:"Google Standard SQL Dialect"},{value:"postgresql",displayName:"PostgreSQL Dialect"}],Cn={StorageMaxLength:0x8000000000000000,StringMaxLength:2621440,ByteMaxLength:10485760,DataTypes:["STRING","BYTES","VARCHAR"]},xN_GoogleStandardSQL=["BOOL","BYTES","DATE","FLOAT64","INT64","STRING","TIMESTAMP","NUMERIC","JSON"],xN_PostgreSQL=["BOOL","BYTEA","DATE","FLOAT8","INT8","VARCHAR","TIMESTAMPTZ","NUMERIC","JSONB"];var Wr=function(t){return t.DirectConnectForm="directConnectForm",t.IsConnectionSuccessful="isConnectionSuccessful",t}(Wr||{});function xg(t){return"mysql"==t||"mysqldump"==t?Oa.MySQL:"postgres"===t||"pgdump"===t||"pg_dump"===t?Oa.Postgres:"oracle"===t?Oa.Oracle:"sqlserver"===t?Oa.SQLServer:t}function CN(t){var n=document.createElement("a");let e=JSON.stringify(t).replace(/9223372036854776000/g,"9223372036854775807");n.href="data:text/json;charset=utf-8,"+encodeURIComponent(e),n.download=`${t.SessionName}_${t.DatabaseType}_${t.DatabaseName}.json`,n.click()}let Qn=(()=>{class t{constructor(e){this.http=e,this.url=window.location.origin}connectTodb(e,i){const{dbEngine:o,isSharded:r,hostName:a,port:s,dbName:c,userName:u,password:p}=e;return this.http.post(`${this.url}/connect`,{Driver:o,IsSharded:r,Host:a,Port:s,Database:c,User:u,Password:p,Dialect:i},{observe:"response"})}getLastSessionDetails(){return this.http.get(`${this.url}/GetLatestSessionDetails`)}getSchemaConversionFromDirectConnect(){return this.http.get(`${this.url}/convert/infoschema`)}getSchemaConversionFromDump(e){return this.http.post(`${this.url}/convert/dump`,e)}setSourceDBDetailsForDump(e){return this.http.post(`${this.url}/SetSourceDBDetailsForDump`,e)}setSourceDBDetailsForDirectConnect(e){const{dbEngine:i,hostName:o,port:r,dbName:a,userName:s,password:c}=e;return this.http.post(`${this.url}/SetSourceDBDetailsForDirectConnect`,{Driver:i,Host:o,Port:r,Database:a,User:s,Password:c})}setShardsSourceDBDetailsForBulk(e){const{dbConfigs:i,isRestoredSession:o}=e;let r=[];return i.forEach(a=>{r.push({Driver:a.dbEngine,Host:a.hostName,Port:a.port,Database:a.dbName,User:a.userName,Password:a.password,DataShardId:a.shardId})}),this.http.post(`${this.url}/SetShardsSourceDBDetailsForBulk`,{DbConfigs:r,IsRestoredSession:o})}setShardsSourceDBDetailsForDataflow(e){return this.http.post(`${this.url}/SetShardsSourceDBDetailsForDataflow`,{MigrationProfile:e})}setDatastreamDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetDatastreamDetailsForShardedMigrations`,e)}setGcsDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetGcsDetailsForShardedMigrations`,e)}setDataflowDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetDataflowDetailsForShardedMigrations`,e)}getSourceProfile(){return this.http.get(`${this.url}/GetSourceProfileConfig`)}getSchemaConversionFromSessionFile(e){return this.http.post(`${this.url}/convert/session`,e)}getDStructuredReport(){return this.http.get(`${this.url}/downloadStructuredReport`)}getDTextReport(){return this.http.get(`${this.url}/downloadTextReport`)}getDSpannerDDL(){return this.http.get(`${this.url}/downloadDDL`)}getIssueDescription(){return this.http.get(`${this.url}/issueDescription`)}getConversionRate(){return this.http.get(`${this.url}/conversion`)}getConnectionProfiles(e){return this.http.get(`${this.url}/GetConnectionProfiles?source=${e}`)}getGeneratedResources(){return this.http.get(`${this.url}/GetGeneratedResources`)}getStaticIps(){return this.http.get(`${this.url}/GetStaticIps`)}createConnectionProfile(e){return this.http.post(`${this.url}/CreateConnectionProfile`,e)}verifyJsonConfiguration(e){return this.http.post(`${this.url}/VerifyJsonConfiguration`,{MigrationProfile:e})}getSummary(){return this.http.get(`${this.url}/summary`)}getDdl(){return this.http.get(`${this.url}/ddl`)}getTypeMap(){return this.http.get(`${this.url}/typemap`)}getAutoGenMap(){return this.http.get(`${this.url}/autoGenMap`)}getSpannerDefaultTypeMap(){return this.http.get(`${this.url}/spannerDefaultTypeMap`)}reviewTableUpdate(e,i){return this.http.post(`${this.url}/typemap/reviewTableSchema?table=${e}`,i)}updateTable(e,i){return this.http.post(`${this.url}/typemap/table?table=${e}`,i)}removeInterleave(e){return this.http.post(`${this.url}/removeParent?tableId=${e}`,{})}restoreTables(e){return this.http.post(`${this.url}/restore/tables`,e)}restoreTable(e){return this.http.post(`${this.url}/restore/table?table=${e}`,{})}dropTable(e){return this.http.post(`${this.url}/drop/table?table=${e}`,{})}dropTables(e){return this.http.post(`${this.url}/drop/tables`,e)}updatePk(e){return this.http.post(`${this.url}/primaryKey`,e)}updateFk(e,i){return this.http.post(`${this.url}/update/fks?table=${e}`,i)}addColumn(e,i){return this.http.post(`${this.url}/AddColumn?table=${e}`,i)}removeFk(e,i){return this.http.post(`${this.url}/drop/fk?table=${e}`,{Id:i})}getTableWithErrors(){return this.http.get(`${this.url}/GetTableWithErrors`)}getSessions(){return this.http.get(`${this.url}/GetSessions`)}getConvForSession(e){return this.http.get(`${this.url}/GetSession/${e}`,{responseType:"blob"})}resumeSession(e){return this.http.post(`${this.url}/ResumeSession/${e}`,{})}saveSession(e){return this.http.post(`${this.url}/SaveRemoteSession`,e)}getSpannerConfig(){return this.http.get(`${this.url}/GetConfig`)}setSpannerConfig(e){return this.http.post(`${this.url}/SetSpannerConfig`,e)}getIsOffline(){return this.http.get(`${this.url}/IsOffline`)}updateIndex(e,i){return this.http.post(`${this.url}/update/indexes?table=${e}`,i)}dropIndex(e,i){return this.http.post(`${this.url}/drop/secondaryindex?table=${e}`,{Id:i})}restoreIndex(e,i){return this.http.post(`${this.url}/restore/secondaryIndex?tableId=${e}&indexId=${i}`,{})}getInterleaveStatus(e){return this.http.get(`${this.url}/setparent?table=${e}&update=false`)}setInterleave(e){return this.http.get(`${this.url}/setparent?table=${e}&update=true`)}getSourceDestinationSummary(){return this.http.get(`${this.url}/GetSourceDestinationSummary`)}migrate(e){return this.http.post(`${this.url}/Migrate`,e)}getProgress(){return this.http.get(`${this.url}/GetProgress`)}uploadFile(e){return this.http.post(`${this.url}/uploadFile`,e)}cleanUpStreamingJobs(){return this.http.post(`${this.url}/CleanUpStreamingJobs`,{})}applyRule(e){return this.http.post(`${this.url}/applyrule`,e)}dropRule(e){return this.http.post(`${this.url}/dropRule?id=${e}`,{})}getStandardTypeToPGSQLTypemap(){return this.http.get(`${this.url}/typemap/GetStandardTypeToPGSQLTypemap`)}getPGSQLToStandardTypeTypemap(){return this.http.get(`${this.url}/typemap/GetPGSQLToStandardTypeTypemap`)}checkBackendHealth(){return this.http.get(`${this.url}/ping`)}static#e=this.\u0275fac=function(i){return new(i||t)(X(lf))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ir=(()=>{class t{constructor(e){this.snackBar=e}openSnackBar(e,i,o){o||(o=10),this.snackBar.open(e,i,{duration:1e3*o})}openSnackBarWithoutTimeout(e,i){this.snackBar.open(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(X(DJ))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nr=(()=>{class t{constructor(){this.spannerConfigSub=new bt(!1),this.datebaseLoaderSub=new bt({type:"",databaseName:""}),this.viewAssesmentSub=new bt({srcDbType:"",connectionDetail:"",conversionRates:{good:0,ok:0,bad:0}}),this.tabToSpannerSub=new bt(!1),this.cancelDbLoadSub=new bt(!1),this.spannerConfig=this.spannerConfigSub.asObservable(),this.databaseLoader=this.datebaseLoaderSub.asObservable(),this.viewAssesment=this.viewAssesmentSub.asObservable(),this.tabToSpanner=this.tabToSpannerSub.asObservable(),this.cancelDbLoad=this.cancelDbLoadSub.asObservable()}openSpannerConfig(){this.spannerConfigSub.next(!0)}openDatabaseLoader(e,i){this.datebaseLoaderSub.next({type:e,databaseName:i})}closeDatabaseLoader(){this.datebaseLoaderSub.next({type:"",databaseName:""})}setViewAssesmentData(e){this.viewAssesmentSub.next(e)}setTabToSpanner(){this.tabToSpannerSub.next(!0)}cancelDbLoading(){this.cancelDbLoadSub.next(!0)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yx=(()=>{class t{constructor(){this.reviewTableChangesSub=new bt({Changes:[],DDL:""}),this.tableUpdateDetailSub=new bt({tableName:"",tableId:"",updateDetail:{UpdateCols:{}}}),this.reviewTableChanges=this.reviewTableChangesSub.asObservable(),this.tableUpdateDetail=this.tableUpdateDetailSub.asObservable()}setTableReviewChanges(e){this.reviewTableChangesSub.next(e)}setTableUpdateDetail(e){this.tableUpdateDetailSub.next(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hc=(()=>{class t{constructor(e){this.fetch=e,this.standardTypeToPGSQLTypeMapSub=new bt(new Map),this.pgSQLToStandardTypeTypeMapSub=new bt(new Map),this.standardTypeToPGSQLTypeMap=this.standardTypeToPGSQLTypeMapSub.asObservable(),this.pgSQLToStandardTypeTypeMap=this.pgSQLToStandardTypeTypeMapSub.asObservable()}getStandardTypeToPGSQLTypemap(){return this.fetch.getStandardTypeToPGSQLTypemap().subscribe({next:e=>{this.standardTypeToPGSQLTypeMapSub.next(new Map(Object.entries(e)))}})}getPGSQLToStandardTypeTypemap(){return this.fetch.getPGSQLToStandardTypeTypemap().subscribe({next:e=>{this.pgSQLToStandardTypeTypeMapSub.next(new Map(Object.entries(e)))}})}createTreeNode(e,i,o="",r=""){let a=Object.keys(e.SpSchema).filter(p=>e.SpSchema[p].Name.toLocaleLowerCase().includes(o.toLocaleLowerCase())),s=Object.keys(e.SrcSchema).filter(p=>-1==a.indexOf(p)&&e.SrcSchema[p].Name.replace(/[^A-Za-z0-9_]/g,"_").includes(o.toLocaleLowerCase())),c=this.getDeletedIndexes(e),u={name:`Tables (${a.length})`,type:hi.Tables,parent:"",pos:-1,isSpannerNode:!0,id:"",parentId:"",children:a.map(p=>{let g=e.SpSchema[p];return{name:g.Name,status:i[p],type:hi.Table,parent:""!=g.ParentId?e.SpSchema[g.ParentId]?.Name:"",pos:-1,isSpannerNode:!0,id:p,parentId:g.ParentId,children:[{name:`Indexes (${g.Indexes?g.Indexes.length:0})`,status:"",type:hi.Indexes,parent:e.SpSchema[p].Name,pos:-1,isSpannerNode:!0,id:"",parentId:p,children:g.Indexes?g.Indexes.map((b,x)=>({name:b.Name,type:hi.Index,parent:e.SpSchema[p].Name,pos:x,isSpannerNode:!0,id:b.Id,parentId:p})):[]}]}})};return"asc"===r||""===r?u.children?.sort((p,g)=>p.name>g.name?1:g.name>p.name?-1:0):"desc"===r&&u.children?.sort((p,g)=>g.name>p.name?1:p.name>g.name?-1:0),s.forEach(p=>{u.children?.push({name:e.SrcSchema[p].Name.replace(/[^A-Za-z0-9_]/g,"_"),status:"DARK",type:hi.Table,pos:-1,isSpannerNode:!0,children:[],isDeleted:!0,id:p,parent:"",parentId:""})}),u.children?.forEach((p,g)=>{c[p.id]&&c[p.id].forEach(b=>{u.children[g].children[0].children?.push({name:b.Name.replace(/[^A-Za-z0-9_]/g,"_"),type:hi.Index,parent:e.SpSchema[p.name]?.Name,pos:g,isSpannerNode:!0,isDeleted:!0,id:b.Id,parentId:p.id})})}),[{name:e.DatabaseName,children:[u],type:hi.DbName,parent:"",pos:-1,isSpannerNode:!0,id:"",parentId:""}]}createTreeNodeForSource(e,i,o="",r=""){let a=Object.keys(e.SrcSchema).filter(c=>e.SrcSchema[c].Name.toLocaleLowerCase().includes(o.toLocaleLowerCase())),s={name:`Tables (${a.length})`,type:hi.Tables,pos:-1,isSpannerNode:!1,id:"",parent:"",parentId:"",children:a.map(c=>{let u=e.SrcSchema[c];return{name:u.Name,status:i[c]?i[c]:"NONE",type:hi.Table,parent:"",pos:-1,isSpannerNode:!1,id:c,parentId:"",children:[{name:`Indexes (${u.Indexes?.length||"0"})`,status:"",type:hi.Indexes,parent:"",pos:-1,isSpannerNode:!1,id:"",parentId:"",children:u.Indexes?u.Indexes.map((p,g)=>({name:p.Name,type:hi.Index,parent:e.SrcSchema[c].Name,isSpannerNode:!1,pos:g,id:p.Id,parentId:c})):[]}]}})};return"asc"===r||""===r?s.children?.sort((c,u)=>c.name>u.name?1:u.name>c.name?-1:0):"desc"===r&&s.children?.sort((c,u)=>u.name>c.name?1:c.name>u.name?-1:0),[{name:e.DatabaseName,children:[s],type:hi.DbName,isSpannerNode:!1,parent:"",pos:-1,id:"",parentId:""}]}getColumnMapping(e,i){let u,o=this.getSpannerTableNameFromId(e,i),r=i.SrcSchema[e].ColIds,a=i.SpSchema[e]?i.SpSchema[e].ColIds:null,s=i.SrcSchema[e].PrimaryKeys,c=a?i.SpSchema[e].PrimaryKeys:null;this.standardTypeToPGSQLTypeMap.subscribe(b=>{u=b});const p=Cn.StorageMaxLength,g=i.SrcSchema[e].ColIds.map((b,x)=>{let T;o&&i.SpSchema[e].PrimaryKeys.forEach(ie=>{ie.ColId==b&&(T=ie.Order)});let I=o?i.SpSchema[e]?.ColDefs[b]:null,z=I?u.get(I.T.Name):"";return{spOrder:I?x+1:"",srcOrder:x+1,spColName:I?I.Name:"",spDataType:I?"postgresql"===i.SpDialect?void 0===z?I.T.Name:z:I.T.Name:"",srcColName:i.SrcSchema[e].ColDefs[b].Name,srcDataType:i.SrcSchema[e].ColDefs[b].Type.Name,spIsPk:!(!I||!o)&&-1!==i.SpSchema[e].PrimaryKeys?.map(ie=>ie.ColId).indexOf(b),srcIsPk:!!s&&-1!==s.map(ie=>ie.ColId).indexOf(b),spIsNotNull:!(!I||!o)&&I.NotNull,srcIsNotNull:i.SrcSchema[e].ColDefs[b].NotNull,srcId:b,spId:I?b:"",spColMaxLength:0!=I?.T.Len?I?.T.Len!=p?I?.T.Len:"MAX":"",srcColMaxLength:null!=i.SrcSchema[e].ColDefs[b].Type.Mods?i.SrcSchema[e].ColDefs[b].Type.Mods[0]:""}});return a&&a.forEach((b,x)=>{if(r.indexOf(b)<0){let T=i.SpSchema[e].ColDefs[b],I=o?i.SpSchema[e]?.ColDefs[b]:null,z=I?u.get(I.T.Name):"";g.push({spOrder:x+1,srcOrder:"",spColName:T.Name,spDataType:I?"postgresql"===i.SpDialect?void 0===z?I.T.Name:z:I.T.Name:"",srcColName:"",srcDataType:"",spIsPk:!!c&&-1!==c.map(ie=>ie.ColId).indexOf(b),srcIsPk:!1,spIsNotNull:T.NotNull,srcIsNotNull:!1,srcId:"",spId:b,srcColMaxLength:"",spColMaxLength:I?.T.Len})}}),g}getPkMapping(e){let i=e.filter(o=>o.spIsPk||o.srcIsPk);return JSON.parse(JSON.stringify(i))}getFkMapping(e,i){let o=i.SrcSchema[e]?.ForeignKeys;return o?o.map(r=>{let a=this.getSpannerFkFromId(i,e,r.Id),s=a?a.ColIds.map(x=>i.SpSchema[e].ColDefs[x].Name):[],c=a?a.ColIds:[],u=r.ColIds.map(x=>i.SrcSchema[e].ColDefs[x].Name),p=a?a.ReferColumnIds.map(x=>i.SpSchema[r.ReferTableId].ColDefs[x].Name):[],g=a?a.ReferColumnIds:[],b=r.ReferColumnIds.map(x=>i.SrcSchema[r.ReferTableId].ColDefs[x].Name);return{srcFkId:r.Id,spFkId:a?.Id,spName:a?a.Name:"",srcName:r.Name,spColumns:s,srcColumns:u,spReferTable:a?i.SpSchema[a.ReferTableId].Name:"",srcReferTable:i.SrcSchema[r.ReferTableId].Name,spReferColumns:p,srcReferColumns:b,spColIds:c,spReferColumnIds:g,spReferTableId:a?a.ReferTableId:""}}):[]}getIndexMapping(e,i,o){let r=this.getSourceIndexFromId(i,e,o),a=this.getSpannerIndexFromId(i,e,o),s=r?r.Keys.map(p=>p.ColId):[],c=a?a.Keys.map(p=>p.ColId):[],u=r?r.Keys.map(p=>{let g=this.getSpannerIndexKeyFromColId(i,e,o,p.ColId);return{srcColId:p.ColId,spColId:g?g.ColId:void 0,srcColName:i.SrcSchema[e].ColDefs[p.ColId].Name,srcOrder:p.Order,srcDesc:p.Desc,spColName:g?i.SpSchema[e].ColDefs[g.ColId].Name:"",spOrder:g?g.Order:void 0,spDesc:g?g.Desc:void 0}}):[];return c.forEach(p=>{if(-1==s.indexOf(p)){let g=this.getSpannerIndexKeyFromColId(i,e,o,p);u.push({srcColName:"",srcOrder:"",srcColId:void 0,srcDesc:void 0,spColName:i.SpSchema[e].ColDefs[p].Name,spOrder:g?g.Order:void 0,spDesc:g?g.Desc:void 0,spColId:g?g.ColId:void 0})}}),u}getSpannerFkFromId(e,i,o){let r=null;return e.SpSchema[i]?.ForeignKeys?.forEach(a=>{a.Id==o&&(r=a)}),r}getSourceIndexFromId(e,i,o){let r=null;return e.SrcSchema[i]?.Indexes?.forEach(a=>{a.Id==o&&(r=a)}),r}getSpannerIndexFromId(e,i,o){let r=null;return e.SpSchema[i]?.Indexes?.forEach(a=>{a.Id==o&&(r=a)}),r}getSpannerIndexKeyFromColId(e,i,o,r){let a=null,s=e.SpSchema[i]?.Indexes?e.SpSchema[i].Indexes.filter(c=>c.Id==o):null;if(s&&s.length>0){let c=s[0].Keys.filter(u=>u.ColId==r);a=c.length>0?c[0]:null}return a}getSourceIndexKeyFromColId(e,i,o,r){let a=null,s=e.SrcSchema[i]?.Indexes?e.SrcSchema[i].Indexes.filter(c=>c.Id==o):null;if(s&&s.length>0){let c=s[0].Keys.filter(u=>u.ColId==r);a=c.length>0?c[0]:null}return a}getSpannerColDefFromId(e,i,o){let r=null;return Object.keys(o.SpSchema[e].ColDefs).forEach(a=>{o.SpSchema[e].ColDefs[a].Id==i&&(r=o.SpSchema[e].ColDefs[a])}),r}getSourceTableNameFromId(e,i){let o="";return Object.keys(i.SrcSchema).forEach(r=>{i.SrcSchema[r].Id===e&&(o=i.SrcSchema[r].Name)}),o}getSpannerTableNameFromId(e,i){let o=null;return Object.keys(i.SpSchema).forEach(r=>{i.SpSchema[r].Id===e&&(o=i.SpSchema[r].Name)}),o}getTableIdFromSpName(e,i){let o="";return Object.keys(i.SpSchema).forEach(r=>{i.SpSchema[r].Name===e&&(o=i.SpSchema[r].Id)}),o}getColIdFromSpannerColName(e,i,o){let r="";return Object.keys(o.SpSchema[i].ColDefs).forEach(a=>{o.SpSchema[i].ColDefs[a].Name===e&&(r=o.SpSchema[i].ColDefs[a].Id)}),r}getDeletedIndexes(e){let i={};return Object.keys(e.SpSchema).forEach(o=>{let r=e.SpSchema[o],a=e.SrcSchema[o],s=r&&r.Indexes?r.Indexes.map(u=>u.Id):[],c=a&&a.Indexes?a.Indexes?.filter(u=>!s.includes(u.Id)):null;r&&a&&c&&c.length>0&&(i[o]=c)}),i}static#e=this.\u0275fac=function(i){return new(i||t)(X(Qn))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$i=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snackbar=i,this.clickEvent=o,this.tableUpdatePubSub=r,this.conversion=a,this.convSubject=new bt({}),this.conversionRateSub=new bt({}),this.typeMapSub=new bt({}),this.defaultTypeMapSub=new bt({}),this.summarySub=new bt(new Map),this.ddlSub=new bt({}),this.tableInterleaveStatusSub=new bt({}),this.sessionsSub=new bt({}),this.configSub=new bt({}),this.currentSessionSub=new bt({}),this.isOfflineSub=new bt(!1),this.ruleMapSub=new bt([]),this.rule=this.ruleMapSub.asObservable(),this.conv=this.convSubject.asObservable().pipe(It(s=>0!==Object.keys(s).length)),this.conversionRate=this.conversionRateSub.asObservable().pipe(It(s=>0!==Object.keys(s).length)),this.typeMap=this.typeMapSub.asObservable().pipe(It(s=>0!==Object.keys(s).length)),this.defaultTypeMap=this.defaultTypeMapSub.asObservable().pipe(It(s=>0!==Object.keys(s).length)),this.summary=this.summarySub.asObservable(),this.ddl=this.ddlSub.asObservable().pipe(It(s=>0!==Object.keys(s).length)),this.tableInterleaveStatus=this.tableInterleaveStatusSub.asObservable(),this.sessions=this.sessionsSub.asObservable(),this.config=this.configSub.asObservable().pipe(It(s=>0!==Object.keys(s).length)),this.isOffline=this.isOfflineSub.asObservable(),this.currentSession=this.currentSessionSub.asObservable().pipe(It(s=>0!==Object.keys(s).length)),this.getLastSessionDetails(),this.getConfig(),this.updateIsOffline()}resetStore(){this.convSubject.next({}),this.conversionRateSub.next({}),this.typeMapSub.next({}),this.defaultTypeMapSub.next({}),this.summarySub.next(new Map),this.ddlSub.next({}),this.tableInterleaveStatusSub.next({})}getDdl(){this.fetch.getDdl().subscribe(e=>{this.ddlSub.next(e)})}getSchemaConversionFromDb(){this.fetch.getSchemaConversionFromDirectConnect().subscribe({next:e=>{this.convSubject.next(e),this.ruleMapSub.next(e?.Rules)},error:e=>{this.clickEvent.closeDatabaseLoader(),this.snackbar.openSnackBar(e.error,"Close")}})}getAllSessions(){this.fetch.getSessions().subscribe({next:e=>{this.sessionsSub.next(e)},error:e=>{this.snackbar.openSnackBar("Unable to fetch sessions.","Close")}})}getLastSessionDetails(){this.fetch.getLastSessionDetails().subscribe({next:e=>{this.convSubject.next(e),this.ruleMapSub.next(e?.Rules)},error:e=>{this.snackbar.openSnackBar(e.error,"Close")}})}getSchemaConversionFromDump(e){return this.fetch.getSchemaConversionFromDump(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.clickEvent.closeDatabaseLoader(),this.snackbar.openSnackBar(i.error,"Close")}})}getSchemaConversionFromSession(e){return this.fetch.getSchemaConversionFromSessionFile(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.snackbar.openSnackBar(i.error,"Close"),this.clickEvent.closeDatabaseLoader()}})}getSchemaConversionFromResumeSession(e){this.fetch.resumeSession(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}getConversionRate(){this.fetch.getConversionRate().subscribe(e=>{this.conversionRateSub.next(e)})}getRateTypemapAndSummary(){return x0({rates:this.fetch.getConversionRate(),typeMap:this.fetch.getTypeMap(),defaultTypeMap:this.fetch.getSpannerDefaultTypeMap(),summary:this.fetch.getSummary(),ddl:this.fetch.getDdl()}).pipe(Hi(e=>Ke(e))).subscribe(({rates:e,typeMap:i,defaultTypeMap:o,summary:r,ddl:a})=>{this.conversionRateSub.next(e),this.typeMapSub.next(i),this.defaultTypeMapSub.next(o),this.summarySub.next(new Map(Object.entries(r))),this.ddlSub.next(a)})}getSummary(){return this.fetch.getSummary().subscribe({next:e=>{this.summarySub.next(new Map(Object.entries(e)))}})}reviewTableUpdate(e,i){return this.fetch.reviewTableUpdate(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>{if(o.error)return o.error;{let r;return this.conversion.standardTypeToPGSQLTypeMap.subscribe(a=>{r=a}),this.conv.subscribe(a=>{o.Changes.forEach(s=>{s.InterleaveColumnChanges.forEach(c=>{if("postgresql"===a.SpDialect){let u=r.get(c.Type),p=r.get(c.UpdateType);c.Type=void 0===u?c.Type:u,c.UpdateType=void 0===p?c.UpdateType:p}Cn.DataTypes.indexOf(c.Type.toString())>-1&&(c.Type+=this.updateColumnSize(c.Size)),Cn.DataTypes.indexOf(c.UpdateType.toString())>-1&&(c.UpdateType+=this.updateColumnSize(c.UpdateSize))})})}),this.tableUpdatePubSub.setTableReviewChanges(o),""}}))}updateColumnSize(e){return e===Cn.StorageMaxLength?"(MAX)":"("+e+")"}updateTable(e,i){return this.fetch.updateTable(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}removeInterleave(e){return this.fetch.removeInterleave(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>(this.getDdl(),i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),""))))}restoreTables(e){return this.fetch.restoreTables(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Selected tables restored successfully","Close",5),"")))}restoreTable(e){return this.fetch.restoreTable(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Table restored successfully","Close",5),"")))}dropTable(e){return this.fetch.dropTable(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Table skipped successfully","Close",5),"")))}dropTables(e){return this.fetch.dropTables(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Selected tables skipped successfully","Close",5),"")))}updatePk(e){return this.fetch.updatePk(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?i.error:(this.convSubject.next(i),this.getDdl(),"")))}updateFkNames(e,i){return this.fetch.updateFk(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}dropFk(e,i){return this.fetch.removeFk(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}getConfig(){this.fetch.getSpannerConfig().subscribe(e=>{this.configSub.next(e)})}updateConfig(e){this.configSub.next(e)}updateIsOffline(){this.fetch.getIsOffline().subscribe(e=>{this.isOfflineSub.next(e)})}addColumn(e,i){this.fetch.addColumn(e,i).subscribe({next:o=>{this.convSubject.next(o),this.getDdl(),this.snackbar.openSnackBar("Added new column.","Close",5)},error:o=>{this.snackbar.openSnackBar(o.error,"Close")}})}applyRule(e){this.fetch.applyRule(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules),this.getDdl(),this.snackbar.openSnackBar("Added new rule.","Close",5)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}updateIndex(e,i){return this.fetch.updateIndex(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}dropIndex(e,i){return this.fetch.dropIndex(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?(this.snackbar.openSnackBar(o.error,"Close"),o.error):(this.convSubject.next(o),this.getDdl(),this.ruleMapSub.next(o?.Rules),this.snackbar.openSnackBar("Index skipped successfully","Close",5),"")))}restoreIndex(e,i){return this.fetch.restoreIndex(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?(this.snackbar.openSnackBar(o.error,"Close"),o.error):(this.convSubject.next(o),this.snackbar.openSnackBar("Index restored successfully","Close",5),"")))}getInterleaveConversionForATable(e){this.fetch.getInterleaveStatus(e).subscribe(i=>{this.tableInterleaveStatusSub.next(i)})}setInterleave(e){this.fetch.setInterleave(e).subscribe(i=>{this.convSubject.next(i.sessionState),this.getDdl(),i.sessionState&&this.convSubject.next(i.sessionState)})}uploadFile(e){return this.fetch.uploadFile(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar("File upload failed","Close"),i.error):(this.snackbar.openSnackBar("File uploaded successfully","Close",5),"")))}dropRule(e){return this.fetch.dropRule(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules),this.getDdl(),this.snackbar.openSnackBar("Rule deleted successfully","Close",5)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(X(Qn),X(ir),X(nr),X(yx),X(hc))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cg=(()=>{class t{constructor(){this.isLoadingSub=new bt(!1),this.isLoading=this.isLoadingSub.asObservable()}startLoader(){this.isLoadingSub.next(!0)}stopLoader(){this.isLoadingSub.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function zne(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.displayName," ")}}function Hne(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.displayName," ")}}function Une(t,n){1&t&&(d(0,"b"),h(1,"Note: For sharded migrations, please enter below the details of the shard you want Spanner migration tool to read the schema from. The complete connection configuration of all the shards will be taken in later, during data migration."),l())}function $ne(t,n){if(1&t&&(d(0,"div",19)(1,"div",20)(2,"mat-form-field",21)(3,"mat-label"),h(4,"Sharded Migration"),l(),d(5,"mat-select",22),y(6,Hne,2,2,"mat-option",6),l()(),d(7,"mat-icon",23),h(8,"info"),l(),d(9,"mat-chip",24),h(10," Preview "),l()(),D(11,"br"),y(12,Une,2,0,"b",25),l()),2&t){const e=w();m(6),f("ngForOf",e.shardedResponseList),m(3),f("removable",!1),m(3),f("ngIf",e.connectForm.value.isSharded)}}function Gne(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.displayName," ")}}function Wne(t,n){1&t&&(d(0,"mat-icon",26),h(1," check_circle "),l())}let qne=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.fetch=i,this.data=o,this.loader=r,this.snackbarService=a,this.clickEvent=s,this.connectForm=new ei({dbEngine:new Z("",[ce.required]),isSharded:new Z(!1),hostName:new Z("",[ce.required]),port:new Z("",[ce.required,ce.pattern("^[0-9]+$")]),userName:new Z("",[ce.required]),password:new Z(""),dbName:new Z("",[ce.required]),dialect:new Z("",[ce.required])}),this.dbEngineList=[{value:"mysql",displayName:"MySQL"},{value:"sqlserver",displayName:"SQL Server"},{value:"oracle",displayName:"Oracle"},{value:"postgres",displayName:"PostgreSQL"}],this.isTestConnectionSuccessful=!1,this.connectRequest=null,this.getSchemaRequest=null,this.shardedResponseList=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.dialect=wN}ngOnInit(){null!=localStorage.getItem(Wr.DirectConnectForm)&&this.connectForm.setValue(JSON.parse(localStorage.getItem(Wr.DirectConnectForm))),null!=localStorage.getItem(Wr.IsConnectionSuccessful)&&(this.isTestConnectionSuccessful="true"===localStorage.getItem(Wr.IsConnectionSuccessful)),this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.connectRequest&&(this.connectRequest.unsubscribe(),this.getSchemaRequest&&this.getSchemaRequest.unsubscribe())}})}testConn(){this.clickEvent.openDatabaseLoader("test-connection",this.connectForm.value.dbName);const{dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c,dialect:u}=this.connectForm.value;localStorage.setItem(Wr.DirectConnectForm,JSON.stringify(this.connectForm.value)),this.connectRequest=this.fetch.connectTodb({dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c},u).subscribe({next:()=>{this.snackbarService.openSnackBar("SUCCESS! Spanner migration tool was able to successfully ping source database","Close",3),localStorage.setItem(Wr.IsConnectionSuccessful,"true"),this.clickEvent.closeDatabaseLoader()},error:g=>{this.isTestConnectionSuccessful=!1,this.snackbarService.openSnackBar(g.error,"Close"),localStorage.setItem(Wr.IsConnectionSuccessful,"false"),this.clickEvent.closeDatabaseLoader()}})}connectToDb(){this.clickEvent.openDatabaseLoader("direct",this.connectForm.value.dbName),window.scroll(0,0),this.data.resetStore(),localStorage.clear();const{dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c,dialect:u}=this.connectForm.value;localStorage.setItem(Wr.DirectConnectForm,JSON.stringify(this.connectForm.value)),this.connectRequest=this.fetch.connectTodb({dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c},u).subscribe({next:()=>{this.getSchemaRequest=this.data.getSchemaConversionFromDb(),this.data.conv.subscribe(g=>{localStorage.setItem(rn.Config,JSON.stringify({dbEngine:e,hostName:o,port:r,userName:a,password:s,dbName:c})),localStorage.setItem(rn.Type,Yn.DirectConnect),localStorage.setItem(rn.SourceDbName,xg(e)),this.clickEvent.closeDatabaseLoader(),localStorage.removeItem(Wr.DirectConnectForm),this.router.navigate(["/workspace"])})},error:g=>{this.snackbarService.openSnackBar(g.error,"Close"),this.clickEvent.closeDatabaseLoader()}})}refreshDbSpecifcConnectionOptions(){this.connectForm.value.isSharded=!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(An),_(Qn),_($i),_(Cg),_(ir),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-direct-connection"]],decls:54,vars:8,consts:[["id","direct-connection-component",1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup"],[1,"primary-header"],["appearance","outline",1,"full-width"],["formControlName","dbEngine","id","dbengine-input",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","shardingConfig",4,"ngIf"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName","id","hostname-input"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port","id","port-input"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName","id","username-input"],["matInput","","name","password","type","password","formControlName","password","id","password-input"],["matInput","","name","dbname","type","text","formControlName","dbName","id","dbname-input"],["matSelect","","name","dialect","formControlName","dialect","appearance","outline","id","spanner-dialect-input"],["class","success","matTooltip","Source Connection Successful","matTooltipPosition","above",4,"ngIf"],["mat-raised-button","","id","test-connect-btn","type","submit","color","accent",3,"disabled","click"],["mat-raised-button","","id","connect-btn","type","submit","color","primary",3,"disabled","click"],["mat-raised-button","",3,"routerLink"],[3,"value"],[1,"shardingConfig"],[1,"flex-container"],["appearance","outline",1,"flex-item"],["formControlName","isSharded"],["matTooltip","Configure multiple source database instances (shards) and consolidate them by migrating to a single Cloud Spanner instance to take advantage of Spanner's horizontal scalability and consistency semantics.",1,"flex-item","configure"],[1,"flex-item","rounded-chip",3,"removable"],[4,"ngIf"],["matTooltip","Source Connection Successful","matTooltipPosition","above",1,"success"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"form",2)(3,"h3",3),h(4,"Connect to Source Database"),l(),d(5,"mat-form-field",4)(6,"mat-label"),h(7,"Database Engine"),l(),d(8,"mat-select",5),N("selectionChange",function(){return o.refreshDbSpecifcConnectionOptions()}),y(9,zne,2,2,"mat-option",6),l()(),y(10,$ne,13,3,"div",7),D(11,"br"),d(12,"h3",3),h(13,"Connection Detail"),l(),d(14,"mat-form-field",4)(15,"mat-label"),h(16,"Hostname"),l(),D(17,"input",8),l(),d(18,"mat-form-field",4)(19,"mat-label"),h(20,"Port"),l(),D(21,"input",9),d(22,"mat-error"),h(23," Only numbers are allowed. "),l()(),D(24,"br"),d(25,"mat-form-field",4)(26,"mat-label"),h(27,"User name"),l(),D(28,"input",10),l(),d(29,"mat-form-field",4)(30,"mat-label"),h(31,"Password"),l(),D(32,"input",11),l(),D(33,"br"),d(34,"mat-form-field",4)(35,"mat-label"),h(36,"Database Name"),l(),D(37,"input",12),l(),D(38,"br"),d(39,"h3",3),h(40,"Spanner Dialect"),l(),d(41,"mat-form-field",4)(42,"mat-label"),h(43,"Spanner dialect"),l(),d(44,"mat-select",13),y(45,Gne,2,2,"mat-option",6),l()(),D(46,"br"),y(47,Wne,2,0,"mat-icon",14),d(48,"button",15),N("click",function(){return o.testConn()}),h(49," Test Connection "),l(),d(50,"button",16),N("click",function(){return o.connectToDb()}),h(51," Connect "),l(),d(52,"button",17),h(53,"Cancel"),l()()()()),2&i&&(m(2),f("formGroup",o.connectForm),m(7),f("ngForOf",o.dbEngineList),m(),f("ngIf","mysql"===o.connectForm.value.dbEngine),m(35),f("ngForOf",o.dialect),m(2),f("ngIf",o.isTestConnectionSuccessful),m(),f("disabled",!o.connectForm.valid),m(2),f("disabled",!o.connectForm.valid||!o.isTestConnectionSuccessful),m(2),f("routerLink","/"))},dependencies:[dn,Tt,Ur,Yt,Ii,Ri,Pi,tw,on,uo,In,En,Oi,xi,Ui,Ai,Yi,lc,xn],styles:[".connect-load-database-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:0}.configure[_ngcontent-%COMP%]{color:#1967d2}.flex-container[_ngcontent-%COMP%]{display:flex;align-items:center}.flex-item[_ngcontent-%COMP%]{margin-right:8px;align-self:baseline}.rounded-chip[_ngcontent-%COMP%]{background-color:#fff!important;color:#0f33ab!important;border-radius:16px;padding:6px 12px;border:1px solid black;cursor:not-allowed;pointer-events:none}"]})}return t})();function Kne(t,n){if(1&t){const e=ge();d(0,"button",7),N("click",function(){return ae(e),se(w().onConfirm())}),h(1," Continue "),l()}}let jo=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,void 0===i.title&&(i.title="Update can not be saved")}ngOnInit(){}onConfirm(){this.dialogRef.close(!0)}onDismiss(){this.dialogRef.close(!1)}getIconFromMessageType(){switch(this.data.type){case"warning":return"warning";case"error":return"error";case"success":return"check_circle";default:return"message"}}static#e=this.\u0275fac=function(i){return new(i||t)(_(On),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-infodialog"]],decls:9,vars:3,consts:[[1,"dialog-container"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"dialog-message",3,"innerHtml"],["mat-dialog-actions","",1,"dialog-action"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h1",1),h(2),l(),d(3,"div",2),D(4,"p",3),l(),d(5,"div",4)(6,"button",5),h(7,"CANCEL"),l(),y(8,Kne,2,0,"button",6),l()()),2&i&&(m(2),Fe(o.data.title),m(2),f("innerHtml",o.data.message,S1),m(4),f("ngIf","error"!=o.data.type))},dependencies:[Tt,Yt,mo,UJ,Jo,er]})}return t})();function DN(t=0,n=Eu){return t<0&&(t=0),Mf(t,t,n)}let Zne=(()=>{class t{constructor(e,i){this.fetch=e,this.dialog=i,this.healthCheckSubscription=new de,this.unHealthyCheckCount=0,this.MAX_UNHEALTHY_CHECK_ATTEMPTS=5}startHealthCheck(){this.healthCheckSubscription=DN(5e3).subscribe(()=>{this.checkBackendHealth()})}stopHealthCheck(){this.healthCheckSubscription&&this.healthCheckSubscription.unsubscribe()}checkBackendHealth(){this.checkHealth().subscribe(e=>{e?this.unHealthyCheckCount=0:(this.unHealthyCheckCount==this.MAX_UNHEALTHY_CHECK_ATTEMPTS&&this.openHealthDialog(),this.unHealthyCheckCount++)})}openHealthDialog(){let e=this.dialog.open(jo,{width:"500px",data:{message:"Please check terminal logs for more details. In case of a crash please file a github issue with all the details.",type:"error",title:"Spanner migration tool unresponsive"}});this.stopHealthCheck(),e.afterClosed().subscribe(()=>{this.startHealthCheck()})}checkHealth(){return Zi(this.fetch.checkBackendHealth()).pipe(nt(()=>!0),Hi(()=>Ke(!1)))}ngOnDestroy(){this.stopHealthCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(X(Qn),X(Vr))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Yne(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function Qne(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function Xne(t,n){if(1&t){const e=ge();d(0,"mat-form-field",24)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),kn("ngModelChange",function(o){ae(e);const r=w(3);return Ln(r.filterColumnsValue.sessionName,o)||(r.filterColumnsValue.sessionName=o),se(o)}),N("keyup",function(o){return ae(e),se(w(3).updateFilterValue(o,"sessionName"))}),l()()}if(2&t){const e=w(3);m(3),Sn("ngModel",e.filterColumnsValue.sessionName)}}function Jne(t,n){if(1&t){const e=ge();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Session Name"),l(),d(4,"button",21),N("click",function(){return ae(e),se(w(2).toggleFilterDisplay("sessionName"))}),y(5,Yne,2,0,"mat-icon",22)(6,Qne,2,0,"mat-icon",22),l()(),y(7,Xne,4,1,"mat-form-field",23),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.displayFilter.sessionName),m(),f("ngIf",!e.displayFilter.sessionName),m(),f("ngIf",e.displayFilter.sessionName)}}function eoe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.SessionName)}}function toe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function ioe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function noe(t,n){if(1&t){const e=ge();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),kn("ngModelChange",function(o){ae(e);const r=w(3);return Ln(r.filterColumnsValue.editorName,o)||(r.filterColumnsValue.editorName=o),se(o)}),N("keyup",function(o){return ae(e),se(w(3).updateFilterValue(o,"editorName"))}),l()()}if(2&t){const e=w(3);m(3),Sn("ngModel",e.filterColumnsValue.editorName)}}function ooe(t,n){if(1&t){const e=ge();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Editor"),l(),d(4,"button",21),N("click",function(){return ae(e),se(w(2).toggleFilterDisplay("editorName"))}),y(5,toe,2,0,"mat-icon",22)(6,ioe,2,0,"mat-icon",22),l()(),y(7,noe,4,1,"mat-form-field",27),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.displayFilter.editorName),m(),f("ngIf",!e.displayFilter.editorName),m(),f("ngIf",e.displayFilter.editorName)}}function roe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.EditorName)}}function aoe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function soe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function coe(t,n){if(1&t){const e=ge();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),kn("ngModelChange",function(o){ae(e);const r=w(3);return Ln(r.filterColumnsValue.databaseType,o)||(r.filterColumnsValue.databaseType=o),se(o)}),N("keyup",function(o){return ae(e),se(w(3).updateFilterValue(o,"databaseType"))}),l()()}if(2&t){const e=w(3);m(3),Sn("ngModel",e.filterColumnsValue.databaseType)}}function loe(t,n){if(1&t){const e=ge();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Database Type"),l(),d(4,"button",21),N("click",function(){return ae(e),se(w(2).toggleFilterDisplay("databaseType"))}),y(5,aoe,2,0,"mat-icon",22)(6,soe,2,0,"mat-icon",22),l()(),y(7,coe,4,1,"mat-form-field",27),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.displayFilter.databaseType),m(),f("ngIf",!e.displayFilter.databaseType),m(),f("ngIf",e.displayFilter.databaseType)}}function doe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.DatabaseType)}}function uoe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function hoe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function moe(t,n){if(1&t){const e=ge();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),kn("ngModelChange",function(o){ae(e);const r=w(3);return Ln(r.filterColumnsValue.databaseName,o)||(r.filterColumnsValue.databaseName=o),se(o)}),N("keyup",function(o){return ae(e),se(w(3).updateFilterValue(o,"databaseName"))}),l()()}if(2&t){const e=w(3);m(3),Sn("ngModel",e.filterColumnsValue.databaseName)}}function poe(t,n){if(1&t){const e=ge();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Database Name"),l(),d(4,"button",21),N("click",function(){return ae(e),se(w(2).toggleFilterDisplay("databaseName"))}),y(5,uoe,2,0,"mat-icon",22)(6,hoe,2,0,"mat-icon",22),l()(),y(7,moe,4,1,"mat-form-field",27),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.displayFilter.databaseName),m(),f("ngIf",!e.displayFilter.databaseName),m(),f("ngIf",e.displayFilter.databaseName)}}function foe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.DatabaseName)}}function goe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function _oe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function boe(t,n){if(1&t){const e=ge();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),kn("ngModelChange",function(o){ae(e);const r=w(3);return Ln(r.filterColumnsValue.dialect,o)||(r.filterColumnsValue.dialect=o),se(o)}),N("keyup",function(o){return ae(e),se(w(3).updateFilterValue(o,"dialect"))}),l()()}if(2&t){const e=w(3);m(3),Sn("ngModel",e.filterColumnsValue.dialect)}}function voe(t,n){if(1&t){const e=ge();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Spanner Dialect"),l(),d(4,"button",21),N("click",function(){return ae(e),se(w(2).toggleFilterDisplay("dialect"))}),y(5,goe,2,0,"mat-icon",22)(6,_oe,2,0,"mat-icon",22),l()(),y(7,boe,4,1,"mat-form-field",27),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.displayFilter.dialect),m(),f("ngIf",!e.displayFilter.dialect),m(),f("ngIf",e.displayFilter.dialect)}}function yoe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.Dialect)}}function woe(t,n){1&t&&(d(0,"th",19),h(1,"Notes"),l())}function xoe(t,n){if(1&t){const e=ge();d(0,"button",34),N("click",function(){ae(e);const o=w(2).index,r=w(2);return se(r.notesToggle[o]=!r.notesToggle[o])}),h(1," ... "),l()}}function Coe(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e)}}function Doe(t,n){if(1&t&&(d(0,"div"),y(1,Coe,2,1,"p",35),l()),2&t){const e=w(2).$implicit;m(),f("ngForOf",e.Notes)}}function Soe(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w(2).$implicit;m(),Fe(null==e.Notes||null==e.Notes[0]?null:e.Notes[0].substring(0,20))}}function koe(t,n){if(1&t&&(d(0,"div",30),y(1,xoe,2,0,"button",31)(2,Doe,2,1,"div",32)(3,Soe,2,1,"ng-template",null,33,_r),l()),2&t){const e=Rt(4),i=w(),o=i.$implicit,r=i.index,a=w(2);m(),f("ngIf",(null==o.Notes?null:o.Notes.length)>1||(null==o.Notes[0]?null:o.Notes[0].length)>20),m(),f("ngIf",a.notesToggle[r])("ngIfElse",e)}}function Toe(t,n){if(1&t&&(d(0,"td",26),y(1,koe,5,3,"div",29),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.Notes)}}function Moe(t,n){1&t&&(d(0,"th",19),h(1,"Created At"),l())}function Ioe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit,i=w(2);m(),Fe(i.convertDateTime(e.CreateTimestamp))}}function Eoe(t,n){1&t&&D(0,"th",19)}function Ooe(t,n){if(1&t){const e=ge();d(0,"td",26)(1,"button",36),N("click",function(){const r=ae(e).$implicit;return se(w(2).resumeFromSessionFile(r.VersionId))}),h(2," Resume "),l(),d(3,"button",36),N("click",function(){const r=ae(e).$implicit;return se(w(2).downloadSessionFile(r.VersionId,r.SessionName,r.DatabaseType,r.DatabaseName))}),h(4," Download "),l()()}}function Aoe(t,n){1&t&&D(0,"tr",37)}function Poe(t,n){1&t&&D(0,"tr",38)}function Roe(t,n){if(1&t&&(d(0,"div",5)(1,"table",6),Ce(2,7),y(3,Jne,8,3,"th",8)(4,eoe,2,1,"td",9),De(),Ce(5,10),y(6,ooe,8,3,"th",8)(7,roe,2,1,"td",9),De(),Ce(8,11),y(9,loe,8,3,"th",8)(10,doe,2,1,"td",9),De(),Ce(11,12),y(12,poe,8,3,"th",8)(13,foe,2,1,"td",9),De(),Ce(14,13),y(15,voe,8,3,"th",8)(16,yoe,2,1,"td",9),De(),Ce(17,14),y(18,woe,2,0,"th",8)(19,Toe,2,1,"td",9),De(),Ce(20,15),y(21,Moe,2,0,"th",8)(22,Ioe,2,1,"td",9),De(),Ce(23,16),y(24,Eoe,1,0,"th",8)(25,Ooe,5,0,"td",9),De(),y(26,Aoe,1,0,"tr",17)(27,Poe,1,0,"tr",18),l()()),2&t){const e=w();m(),f("dataSource",e.filteredDataSource),m(25),f("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",!0),m(),f("matRowDefColumns",e.displayedColumns)}}function Noe(t,n){if(1&t){const e=ge();d(0,"div",39),Xt(),d(1,"svg",40),D(2,"rect",41)(3,"path",42),l(),mr(),d(4,"button",43),N("click",function(){return ae(e),se(w().openSpannerConfigDialog())}),h(5," Configure Spanner Details "),l(),d(6,"span"),h(7,"Do not have any previous session to display. "),d(8,"u"),h(9," OR "),l(),D(10,"br"),h(11," Invalid Spanner configuration. "),l()()}}let Foe=(()=>{class t{constructor(e,i,o,r){this.fetch=e,this.data=i,this.router=o,this.clickEvent=r,this.displayedColumns=["SessionName","EditorName","DatabaseType","DatabaseName","Dialect","Notes","CreateTimestamp","Action"],this.notesToggle=[],this.dataSource=[],this.filteredDataSource=[],this.filterColumnsValue={sessionName:"",editorName:"",databaseType:"",databaseName:"",dialect:""},this.displayFilter={sessionName:!1,editorName:!1,databaseType:!1,databaseName:!1,dialect:!1}}ngOnInit(){this.data.getAllSessions(),this.data.sessions.subscribe({next:e=>{null!=e?(this.filteredDataSource=e,this.dataSource=e):(this.filteredDataSource=[],this.dataSource=[])}})}toggleFilterDisplay(e){this.displayFilter[e]=!this.displayFilter[e]}updateFilterValue(e,i){e.stopPropagation(),this.filterColumnsValue[i]=e.target.value,this.applyFilter()}applyFilter(){this.filteredDataSource=this.dataSource.filter(e=>!!e.SessionName.toLowerCase().includes(this.filterColumnsValue.sessionName.toLowerCase())).filter(e=>!!e.EditorName.toLowerCase().includes(this.filterColumnsValue.editorName.toLowerCase())).filter(e=>!!e.DatabaseType.toLowerCase().includes(this.filterColumnsValue.databaseType.toLowerCase())).filter(e=>!!e.DatabaseName.toLowerCase().includes(this.filterColumnsValue.databaseName.toLowerCase())).filter(e=>!!e.Dialect.toLowerCase().includes(this.filterColumnsValue.dialect.toLowerCase()))}downloadSessionFile(e,i,o,r){this.fetch.getConvForSession(e).subscribe(a=>{var s=document.createElement("a");s.href=URL.createObjectURL(a),s.download=`${i}_${o}_${r}.json`,s.click()})}resumeFromSessionFile(e){this.data.resetStore(),this.data.getSchemaConversionFromResumeSession(e),this.data.conv.subscribe(i=>{localStorage.setItem(rn.Config,e),localStorage.setItem(rn.Type,Yn.ResumeSession),this.router.navigate(["/workspace"])})}openSpannerConfigDialog(){this.clickEvent.openSpannerConfig()}convertDateTime(e){return(e=(e=new Date(e).toString()).substring(e.indexOf(" ")+1)).substring(0,e.indexOf("("))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Qn),_($i),_(An),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-session-listing"]],decls:8,vars:2,consts:[[1,"sessions-wrapper"],[1,"primary-header"],[1,"summary"],["class","session-container mat-elevation-z3",4,"ngIf"],["class","mat-elevation-z3 warning-container",4,"ngIf"],[1,"session-container","mat-elevation-z3"],["mat-table","",3,"dataSource"],["matColumnDef","SessionName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","EditorName"],["matColumnDef","DatabaseType"],["matColumnDef","DatabaseName"],["matColumnDef","Dialect"],["matColumnDef","Notes"],["matColumnDef","CreateTimestamp"],["matColumnDef","Action"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"table-header-container"],["mat-icon-button","",3,"click"],[4,"ngIf"],["appearance","outline","class","full-width",4,"ngIf"],["appearance","outline",1,"full-width"],["matInput","","autocomplete","off",3,"ngModel","ngModelChange","keyup"],["mat-cell",""],["appearance","outline",4,"ngIf"],["appearance","outline"],["class","notes-wrapper",4,"ngIf"],[1,"notes-wrapper"],["class","notes-toggle-button",3,"click",4,"ngIf"],[4,"ngIf","ngIfElse"],["short",""],[1,"notes-toggle-button",3,"click"],[4,"ngFor","ngForOf"],["mat-button","","color","primary",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-elevation-z3","warning-container"],["width","49","height","48","viewBox","0 0 49 48","fill","none","xmlns","http://www.w3.org/2000/svg"],["x","0.907227","width","48","height","48","rx","4","fill","#E6ECFA"],["fill-rule","evenodd","clip-rule","evenodd","d","M17.9072 15C16.8027 15 15.9072 15.8954 15.9072 17V31C15.9072 32.1046 16.8027 33 17.9072 33H31.9072C33.0118 33 33.9072 32.1046 33.9072 31V17C33.9072 15.8954 33.0118 15 31.9072 15H17.9072ZM20.9072 18H18.9072V20H20.9072V18ZM21.9072 18H23.9072V20H21.9072V18ZM20.9072 23H18.9072V25H20.9072V23ZM21.9072 23H23.9072V25H21.9072V23ZM20.9072 28H18.9072V30H20.9072V28ZM21.9072 28H23.9072V30H21.9072V28ZM30.9072 18H24.9072V20H30.9072V18ZM24.9072 23H30.9072V25H24.9072V23ZM30.9072 28H24.9072V30H30.9072V28Z","fill","#3367D6"],["mat-button","","color","primary",1,"spanner-config-button",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h3",1),h(2,"Session history"),l(),d(3,"div",2),h(4," Choose a session to resume an existing migration session, or download the session file. "),l(),D(5,"br"),y(6,Roe,28,4,"div",3)(7,Noe,12,0,"div",4),l()),2&i&&(m(6),f("ngIf",o.dataSource.length>0),m(),f("ngIf",0===o.dataSource.length))},dependencies:[dn,Tt,Yt,ga,Ii,Ri,Pi,on,Oi,xi,ps,Sa,fs,ka,Da,gs,Ta,Ma,_s,bs,Pl],styles:[".session-container[_ngcontent-%COMP%]{max-height:500px;overflow:auto}.session-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:13px}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .table-header-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.sessions-wrapper[_ngcontent-%COMP%]{margin-top:20px}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:57vh;text-align:center}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-bottom:10px}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%] .spanner-config-button[_ngcontent-%COMP%]{text-decoration:underline}.mat-mdc-column-Notes[_ngcontent-%COMP%]{max-width:200px;padding-right:10px}.notes-toggle-button[_ngcontent-%COMP%]{float:right;margin-right:32px;background-color:#f5f5f5;border:none;border-radius:2px;padding:0 5px 5px}.notes-toggle-button[_ngcontent-%COMP%]:hover{background-color:#ebe7e7;cursor:pointer}.notes-wrapper[_ngcontent-%COMP%]{margin-top:10px}.mat-mdc-column-SessionName[_ngcontent-%COMP%], .mat-mdc-column-EditorName[_ngcontent-%COMP%], .mat-mdc-column-DatabaseType[_ngcontent-%COMP%], .mat-mdc-column-DatabaseName[_ngcontent-%COMP%], .mat-mdc-column-Dialect[_ngcontent-%COMP%]{width:13vw;min-width:150px}.mat-mdc-column-Action[_ngcontent-%COMP%], .mat-mdc-column-Notes[_ngcontent-%COMP%], .mat-mdc-column-CreateTimestamp[_ngcontent-%COMP%]{width:15vw;min-width:150px}.mat-mdc-form-field[_ngcontent-%COMP%]{width:80%}"]})}return t})(),Loe=(()=>{class t{constructor(e,i,o){this.dialog=e,this.router=i,this.healthCheckService=o}ngOnInit(){this.healthCheckService.startHealthCheck(),null!=localStorage.getItem(me.IsMigrationInProgress)&&"true"===localStorage.getItem(me.IsMigrationInProgress)&&(this.dialog.open(jo,{data:{title:"Redirecting to prepare migration page",message:"Another migration already in progress",type:"error"},maxWidth:"500px"}),this.router.navigate(["/prepare-migration"]))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Vr),_(An),_(Zne))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-home"]],decls:21,vars:4,consts:[[1,"container"],[1,"primary-header"],[1,"summary","global-font-color","body-font-size"],["href","https://github.com/GoogleCloudPlatform/spanner-migration-tool#readme","target","_blank"],[1,"btn-source-select"],["mat-raised-button","","color","primary","id","connect-to-database-btn",1,"split-button-left",3,"routerLink"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"h3",1),h(2,"Get started with Spanner migration tool"),l(),d(3,"div",2),h(4," Spanner migration tool (formerly known as HarbourBridge) is a stand-alone open source tool for Cloud Spanner evaluation and migration, using data from an existing PostgreSQL, MySQL, SQL Server, Oracle or DynamoDB database. "),d(5,"a",3),h(6,"Learn More"),l(),h(7,". "),l(),d(8,"div",4)(9,"button",5),h(10," Connect to database "),l(),d(11,"button",6)(12,"mat-icon",7),h(13,"expand_more"),l()(),d(14,"mat-menu",8,9)(16,"button",10),h(17,"Load database dump"),l(),d(18,"button",10),h(19,"Load session file"),l()()(),D(20,"app-session-listing"),l()),2&i){const r=Rt(15);m(9),f("routerLink","/source/direct-connection"),m(2),f("matMenuTriggerFor",r),m(5),f("routerLink","/source/load-dump"),m(2),f("routerLink","/source/load-session")}},dependencies:[Ur,Yt,Ii,Vl,wa,jl,Foe],styles:[".container[_ngcontent-%COMP%]{padding:7px 27px}.container[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{width:500px;font-weight:lighter}.container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 5px}.container[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;margin-bottom:20px}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%]{margin:20px 0;padding-bottom:5px}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-left[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-right[_ngcontent-%COMP%]{width:30px!important;min-width:unset!important;padding:0 2px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid #fafafa}"]})}return t})(),Xn=(()=>{class t{constructor(){this.sidenavOpenSub=new bt(!1),this.sidenavComponentSub=new bt(""),this.sidenavRuleTypeSub=new bt(""),this.sidenavAddIndexTableSub=new bt(""),this.setSidenavDatabaseNameSub=new bt(""),this.ruleDataSub=new bt({}),this.displayRuleFlagSub=new bt(!1),this.setMiddleColumn=new bt(!1),this.isSidenav=this.sidenavOpenSub.asObservable(),this.sidenavComponent=this.sidenavComponentSub.asObservable(),this.sidenavRuleType=this.sidenavRuleTypeSub.asObservable(),this.sidenavAddIndexTable=this.sidenavAddIndexTableSub.asObservable(),this.sidenavDatabaseName=this.setSidenavDatabaseNameSub.asObservable(),this.ruleData=this.ruleDataSub.asObservable(),this.displayRuleFlag=this.displayRuleFlagSub.asObservable(),this.setMiddleColumnComponent=this.setMiddleColumn.asObservable()}openSidenav(){this.sidenavOpenSub.next(!0)}closeSidenav(){this.sidenavOpenSub.next(!1)}setSidenavComponent(e){this.sidenavComponentSub.next(e)}setSidenavRuleType(e){this.sidenavRuleTypeSub.next(e)}setSidenavAddIndexTable(e){this.sidenavAddIndexTableSub.next(e)}setSidenavDatabaseName(e){this.setSidenavDatabaseNameSub.next(e)}setRuleData(e){this.ruleDataSub.next(e)}setDisplayRuleFlag(e){this.displayRuleFlagSub.next(e)}setMiddleColComponent(e){this.setMiddleColumn.next(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),SN=(()=>{class t{constructor(e){this.sidenav=e}ngOnInit(){}closeInstructionSidenav(){this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Xn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-instruction"]],decls:150,vars:0,consts:[[1,"instructions-div"],[1,"instruction-header-div"],["mat-icon-button","",3,"click"],["src","../../../assets/icons/google-spanner-logo.png",1,"instructions-icon"],[1,"textCenter"],[1,"instructions-main-heading"],[1,"instructions-sub-heading"],[1,"instructions-command"],["href","https://github.com/GoogleCloudPlatform/spanner-migration-tool",1,"instructionsLink"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"button",2),N("click",function(){return o.closeInstructionSidenav()}),d(3,"mat-icon"),h(4,"close"),l()()(),D(5,"img",3),d(6,"h1",4),h(7,"Spanner migration tool User Manual"),l(),D(8,"br")(9,"br"),d(10,"h3",5),h(11,"1 \xa0 \xa0 \xa0Introduction"),l(),d(12,"p"),h(13," Spanner migration tool (formerly known as HarbourBridge) is a stand-alone open source tool for Cloud Spanner evaluation, using data from an existing PostgreSQL or MySQL database. The tool ingests schema and data from either a pg_dump/mysqldump file or directly from the source database, automatically builds a Spanner schema, and creates a new Spanner database populated with data from the source database. "),D(14,"br")(15,"br")(16,"br"),h(17," Spanner migration tool is designed to simplify Spanner evaluation, and in particular to bootstrap the process by getting moderate-size PostgreSQL/MySQL datasets into Spanner (up to a few tens of GB). Many features of PostgreSQL/MySQL, especially those that don't map directly to Spanner features, are ignored, e.g. (non-primary) indexes, functions, and sequences. Types such as integers, floats, char/text, bools, timestamps, and (some) array types, map fairly directly to Spanner, but many other types do not and instead are mapped to Spanner's STRING(MAX). "),l(),D(18,"br"),d(19,"h4",6),h(20,"1.1 \xa0 \xa0 \xa0Spanner migration tool UI"),l(),d(21,"p"),h(22," Spanner migration tool UI is designed to focus on generating spanner schema from either a pg_dump/mysqldump file or directly from the source database and providing edit functionality to the spanner schema and thereby creating a new spanner database populated with new data. UI gives the provision to edit column name, edit data type, edit constraints, drop foreign key and drop secondary index of spanner schema. "),l(),D(23,"br"),d(24,"h3",5),h(25,"2 \xa0 \xa0 \xa0Key Features of UI"),l(),d(26,"ul")(27,"li"),h(28,"Connecting to a new database"),l(),d(29,"li"),h(30,"Load dump file"),l(),d(31,"li"),h(32,"Load session file"),l(),d(33,"li"),h(34,"Storing session for each conversion"),l(),d(35,"li"),h(36,"Edit data type globally for each table in schema"),l(),d(37,"li"),h(38,"Edit data type, column name, constraint for a particular table"),l(),d(39,"li"),h(40,"Edit foreign key and secondary index name"),l(),d(41,"li"),h(42,"Drop a column from a table"),l(),d(43,"li"),h(44,"Drop foreign key from a table"),l(),d(45,"li"),h(46,"Drop secondary index from a table"),l(),d(47,"li"),h(48,"Convert foreign key into interleave table"),l(),d(49,"li"),h(50,"Search a table"),l(),d(51,"li"),h(52,"Download schema, report and session files"),l()(),D(53,"br"),d(54,"h3",5),h(55,"3 \xa0 \xa0 \xa0UI Setup"),l(),d(56,"ul")(57,"li"),h(58,"Install go in local"),l(),d(59,"li"),h(60," Clone Spanner migration tool project and run following command in the terminal: "),D(61,"br"),d(62,"span",7),h(63,"go run main.go --web"),l()(),d(64,"li"),h(65,"Open "),d(66,"span",7),h(67,"http://localhost:8080"),l(),h(68,"in browser"),l()(),D(69,"br"),d(70,"h3",5),h(71," 4 \xa0 \xa0 \xa0Different modes to select source database "),l(),d(72,"h4",6),h(73,"4.1 \xa0 \xa0 \xa0Connect to Database"),l(),d(74,"ul")(75,"li"),h(76,"Enter database details in connect to database dialog box"),l(),d(77,"li"),h(78," Input Fields: database type, database host, database port, database user, database name, database password "),l()(),d(79,"h4",6),h(80,"4.2 \xa0 \xa0 \xa0Load Database Dump"),l(),d(81,"ul")(82,"li"),h(83,"Enter dump file path in load database dialog box"),l(),d(84,"li"),h(85,"Input Fields: database type, file path"),l()(),d(86,"h4",6),h(87,"4.3 \xa0 \xa0 \xa0Import Schema File"),l(),d(88,"ul")(89,"li"),h(90,"Enter session file path in load session dialog box"),l(),d(91,"li"),h(92,"Input Fields: database type, session file path"),l()(),d(93,"h3",5),h(94,"5 \xa0 \xa0 \xa0Session Table"),l(),d(95,"ul")(96,"li"),h(97,"Session table is used to store the previous sessions of schema conversion"),l()(),d(98,"h3",5),h(99,"6 \xa0 \xa0 \xa0Edit Global Data Type"),l(),d(100,"ul")(101,"li"),h(102,"Click on edit global data type button on the screen"),l(),d(103,"li"),h(104,"Select required spanner data type from the dropdown available for each source data type"),l(),d(105,"li"),h(106,"Click on next button after making all the changes"),l()(),d(107,"h3",5),h(108," 7 \xa0 \xa0 \xa0Edit Spanner Schema for a particular table "),l(),d(109,"ul")(110,"li"),h(111,"Expand any table"),l(),d(112,"li"),h(113,"Click on edit spanner schema button"),l(),d(114,"li"),h(115,"Edit column name/ data type/ constraint of spanner schema"),l(),d(116,"li"),h(117,"Edit name of secondary index or foreign key"),l(),d(118,"li"),h(119,"Select to convert foreign key to interleave or use as is (if option is available)"),l(),d(120,"li"),h(121,"Drop a column by unselecting any checkbox"),l(),d(122,"li"),h(123," Drop a foreign key or secondary index by expanding foreign keys or secondary indexes tab inside table "),l(),d(124,"li"),h(125,"Click on save changes button to save the changes"),l(),d(126,"li"),h(127," If current table is involved in foreign key/secondary indexes relationship with other table then user will be prompt to delete foreign key or secondary indexes and then proceed with save changes "),l()(),d(128,"p"),h(129,"- Warning before deleting secondary index from a table"),l(),d(130,"p"),h(131,"- Error on saving changes"),l(),d(132,"p"),h(133,"- Changes saved successfully after resolving all errors"),l(),d(134,"h3",5),h(135,"8 \xa0 \xa0 \xa0Download Session File"),l(),d(136,"ul")(137,"li"),h(138,"Save all the changes done in spanner schema table wise or globally"),l(),d(139,"li"),h(140,"Click on download session file button on the top right corner"),l(),d(141,"li"),h(142,"Save the generated session file with all the changes in local machine"),l()(),d(143,"h3",5),h(144,"9 \xa0 \xa0 \xa0How to use Session File"),l(),d(145,"p"),h(146," Please refer below link to get more information on how to use session file with Spanner migration tool "),l(),d(147,"a",8),h(148,"Refer this to use Session File"),l(),D(149,"br"),l())},dependencies:[ga,Ii],styles:[".instructions-div[_ngcontent-%COMP%]{padding:5px 20px 20px}.instructions-div[_ngcontent-%COMP%] .instruction-header-div[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.instructions-icon[_ngcontent-%COMP%]{height:200px;display:block;margin-left:auto;margin-right:auto}.textCenter[_ngcontent-%COMP%]{text-align:center}.instructions-main-heading[_ngcontent-%COMP%]{font-size:1.25rem;color:#4285f4;font-weight:700}.instructions-sub-heading[_ngcontent-%COMP%]{font-size:1rem;color:#4285f4;font-weight:700}.instructions-command[_ngcontent-%COMP%]{background-color:#8080806b;border-radius:5px;padding:0 5px}.instructions-img-width[_ngcontent-%COMP%]{width:800px}.instructionsLink[_ngcontent-%COMP%]{color:#4285f4;text-decoration:underline}"]})}return t})();const Boe=["determinateSpinner"];function Voe(t,n){if(1&t&&(Xt(),d(0,"svg",11),D(1,"circle",12),l()),2&t){const e=w();Je("viewBox",e._viewBox()),m(),yn("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),Je("r",e._circleRadius())}}const joe=is(class{constructor(t){this._elementRef=t}},"primary"),zoe=new oe("mat-progress-spinner-default-options",{providedIn:"root",factory:function Hoe(){return{diameter:kN}}}),kN=100;let ad=(()=>{class t extends joe{constructor(e,i,o){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=kN,this._noopAnimations="NoopAnimations"===i&&!!o&&!o._forceAnimations,o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,vi(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=vi(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=vi(e)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const e=2*this._circleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(di,8),_(zoe))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,o){if(1&i&&vt(Boe,5),2&i){let r;Oe(r=Ae())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(i,o){2&i&&(Je("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===o.mode?o.value:null)("mode",o.mode),yn("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),et("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===o.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[be],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(i,o){if(1&i&&(y(0,Voe,2,8,"ng-template",null,0,_r),d(2,"div",1,2),Xt(),d(4,"svg",3),D(5,"circle",4),l()(),mr(),d(6,"div",5)(7,"div",6)(8,"div",7),no(9,8),l(),d(10,"div",9),no(11,8),l(),d(12,"div",10),no(13,8),l()()()),2&i){const r=Rt(1);m(4),Je("viewBox",o._viewBox()),m(),yn("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),Je("r",o._circleRadius()),m(4),f("ngTemplateOutlet",r),m(2),f("ngTemplateOutlet",r),m(2),f("ngTemplateOutlet",r)}},dependencies:[Cp],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return t})(),$oe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Bn,St]})}return t})();function Goe(t,n){if(1&t&&(d(0,"mat-option",17),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.displayName," ")}}function Woe(t,n){1&t&&D(0,"mat-spinner",18),2&t&&f("diameter",25)}function qoe(t,n){1&t&&(d(0,"mat-icon",19),h(1,"check_circle"),l())}function Koe(t,n){1&t&&(d(0,"mat-icon",20),h(1,"cancel"),l())}function Zoe(t,n){if(1&t&&(d(0,"mat-option",17),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.displayName," ")}}let Yoe=(()=>{class t{constructor(e,i,o){this.data=e,this.router=i,this.clickEvent=o,this.connectForm=new ei({dbEngine:new Z("mysqldump",[ce.required]),filePath:new Z("",[ce.required]),dialect:new Z("",[ce.required])}),this.dbEngineList=[{value:"mysqldump",displayName:"MySQL"},{value:"pg_dump",displayName:"PostgreSQL"}],this.dialect=wN,this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.getSchemaRequest=null}ngOnInit(){this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.getSchemaRequest&&this.getSchemaRequest.unsubscribe()}})}convertFromDump(){this.clickEvent.openDatabaseLoader("dump",""),this.data.resetStore(),localStorage.clear();const{dbEngine:e,filePath:i,dialect:o}=this.connectForm.value,s={Config:{Driver:e,Path:i},SpannerDetails:{Dialect:o}};this.getSchemaRequest=this.data.getSchemaConversionFromDump(s),this.data.conv.subscribe(c=>{localStorage.setItem(rn.Config,JSON.stringify(s)),localStorage.setItem(rn.Type,Yn.DumpFile),localStorage.setItem(rn.SourceDbName,xg(e)),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/workspace"])})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.connectForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.data.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}static#e=this.\u0275fac=function(i){return new(i||t)(_($i),_(An),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-load-dump"]],decls:36,vars:8,consts:[[1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline",1,"full-width"],["matSelect","","name","dbEngine","formControlName","dbEngine","appearance","outline"],[3,"value",4,"ngFor","ngForOf"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["mat-stroked-button","","type","button",3,"click"],["hidden","","type","file",3,"change"],["file",""],["matSelect","","name","dialect","formControlName","dialect","appearance","outline"],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["mat-raised-button","",3,"routerLink"],[3,"value"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"]],template:function(i,o){if(1&i){const r=ge();d(0,"div",0)(1,"div",1)(2,"form",2),N("ngSubmit",function(){return o.convertFromDump()}),d(3,"h3",3),h(4,"Load from database dump"),l(),d(5,"mat-form-field",4)(6,"mat-label"),h(7,"Database Engine"),l(),d(8,"mat-select",5),y(9,Goe,2,2,"mat-option",6),l()(),d(10,"h3",3),h(11,"Dump File"),l(),d(12,"mat-form-field",4)(13,"mat-label"),h(14,"File path"),l(),d(15,"input",7),N("click",function(){return ae(r),se(Rt(22).click())}),l(),y(16,Woe,1,1,"mat-spinner",8)(17,qoe,2,0,"mat-icon",9)(18,Koe,2,0,"mat-icon",10),l(),d(19,"button",11),N("click",function(){return ae(r),se(Rt(22).click())}),h(20,"Upload File"),l(),d(21,"input",12,13),N("change",function(s){return o.handleFileInput(s)}),l(),D(23,"br"),d(24,"h3",3),h(25,"Spanner Dialect"),l(),d(26,"mat-form-field",4)(27,"mat-label"),h(28,"Select a spanner dialect"),l(),d(29,"mat-select",14),y(30,Zoe,2,2,"mat-option",6),l()(),D(31,"br"),d(32,"button",15),h(33," Convert "),l(),d(34,"button",16),h(35,"Cancel"),l()()()()}2&i&&(m(2),f("formGroup",o.connectForm),m(7),f("ngForOf",o.dbEngineList),m(7),f("ngIf",o.uploadStart&&!o.uploadSuccess&&!o.uploadFail),m(),f("ngIf",o.uploadStart&&o.uploadSuccess),m(),f("ngIf",o.uploadStart&&o.uploadFail),m(12),f("ngForOf",o.dialect),m(2),f("disabled",!o.connectForm.valid||!o.uploadSuccess),m(2),f("routerLink","/"))},dependencies:[dn,Tt,Ur,Yt,Ii,Ri,Pi,iw,on,uo,In,En,Oi,xi,Ui,Ai,Yi,ad]})}return t})();function Qoe(t,n){if(1&t&&(d(0,"mat-option",16),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.displayName," ")}}function Xoe(t,n){1&t&&D(0,"mat-spinner",17),2&t&&f("diameter",25)}function Joe(t,n){1&t&&(d(0,"mat-icon",18),h(1,"check_circle"),l())}function ere(t,n){1&t&&(d(0,"mat-icon",19),h(1,"cancel"),l())}let tre=(()=>{class t{constructor(e,i,o){this.data=e,this.router=i,this.clickEvent=o,this.connectForm=new ei({dbEngine:new Z("mysql",[ce.required]),filePath:new Z("",[ce.required])}),this.dbEngineList=[{value:"mysql",displayName:"MySQL"},{value:"sqlserver",displayName:"SQL Server"},{value:"oracle",displayName:"Oracle"},{value:"postgres",displayName:"PostgreSQL"}],this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.getSchemaRequest=null}ngOnInit(){this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.getSchemaRequest&&this.getSchemaRequest.unsubscribe()}})}convertFromSessionFile(){this.clickEvent.openDatabaseLoader("session",""),this.data.resetStore(),localStorage.clear();const{dbEngine:e,filePath:i}=this.connectForm.value,o={driver:e,filePath:i};this.getSchemaRequest=this.data.getSchemaConversionFromSession(o),this.data.conv.subscribe(r=>{localStorage.setItem(rn.Config,JSON.stringify(o)),localStorage.setItem(rn.Type,Yn.SessionFile),localStorage.setItem(rn.SourceDbName,xg(e)),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/workspace"])})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.connectForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.data.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}static#e=this.\u0275fac=function(i){return new(i||t)(_($i),_(An),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-load-session"]],decls:28,vars:7,consts:[[1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline",1,"full-width"],["matSelect","","name","dbEngine","formControlName","dbEngine","appearance","outline"],[3,"value",4,"ngFor","ngForOf"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["mat-stroked-button","","type","button",3,"click"],["hidden","","type","file",3,"change"],["file",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["mat-raised-button","",3,"routerLink"],[3,"value"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"]],template:function(i,o){if(1&i){const r=ge();d(0,"div",0)(1,"div",1)(2,"form",2),N("ngSubmit",function(){return o.convertFromSessionFile()}),d(3,"h3",3),h(4,"Load from session"),l(),d(5,"mat-form-field",4)(6,"mat-label"),h(7,"Database Engine"),l(),d(8,"mat-select",5),y(9,Qoe,2,2,"mat-option",6),l()(),d(10,"h3",3),h(11,"Session File"),l(),d(12,"mat-form-field",4)(13,"mat-label"),h(14,"File path"),l(),d(15,"input",7),N("click",function(){return ae(r),se(Rt(22).click())}),l(),y(16,Xoe,1,1,"mat-spinner",8)(17,Joe,2,0,"mat-icon",9)(18,ere,2,0,"mat-icon",10),l(),d(19,"button",11),N("click",function(){return ae(r),se(Rt(22).click())}),h(20,"Upload File"),l(),d(21,"input",12,13),N("change",function(s){return o.handleFileInput(s)}),l(),D(23,"br"),d(24,"button",14),h(25," Convert "),l(),d(26,"button",15),h(27,"Cancel"),l()()()()}2&i&&(m(2),f("formGroup",o.connectForm),m(7),f("ngForOf",o.dbEngineList),m(7),f("ngIf",o.uploadStart&&!o.uploadSuccess&&!o.uploadFail),m(),f("ngIf",o.uploadStart&&o.uploadSuccess),m(),f("ngIf",o.uploadStart&&o.uploadFail),m(6),f("disabled",!o.connectForm.valid||!o.uploadSuccess),m(2),f("routerLink","/"))},dependencies:[dn,Tt,Ur,Yt,Ii,Ri,Pi,iw,on,uo,In,En,Oi,xi,Ui,Ai,Yi,ad]})}return t})();function ire(t,n){if(1&t&&(d(0,"h3"),h(1),l()),2&t){const e=w();m(),Me("Reading schema for ",e.databaseName," database. Please wait...")}}function nre(t,n){1&t&&(d(0,"h4"),h(1,"Tip: Spanner migration tool will read the information schema at source and automatically map it to Cloud Spanner"),l())}function ore(t,n){if(1&t&&(d(0,"h3"),h(1),l()),2&t){const e=w();m(),Me("Testing connection to ",e.databaseName," database...")}}function rre(t,n){1&t&&(d(0,"h4"),h(1,"Tip: Spanner migration tool is attempting to ping the source database, it will retry a couple of times before timing out."),l())}function are(t,n){1&t&&(d(0,"h3"),h(1,"Loading the dump file..."),l())}function sre(t,n){1&t&&(d(0,"h3"),h(1,"Loading the session file..."),l())}let cre=(()=>{class t{constructor(e,i){this.router=e,this.clickEvent=i,this.loaderType="",this.databaseName="",this.timeElapsed=0,this.timeElapsedInterval=setInterval(()=>{this.timeElapsed+=1},1e3)}ngOnInit(){this.timeElapsed=0}ngOnDestroy(){clearInterval(this.timeElapsedInterval)}cancelDbLoad(){this.clickEvent.cancelDbLoading(),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/"])}static#e=this.\u0275fac=function(i){return new(i||t)(_(An),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-database-loader"]],inputs:{loaderType:"loaderType",databaseName:"databaseName"},decls:12,vars:7,consts:[[1,"container","content-height"],["src","../../../assets/gifs/database-loader.gif","alt","database-loader-gif",1,"loader-gif"],[4,"ngIf"],["mat-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0),D(1,"img",1),y(2,ire,2,1,"h3",2)(3,nre,2,0,"h4",2)(4,ore,2,1,"h3",2)(5,rre,2,0,"h4",2)(6,are,2,0,"h3",2)(7,sre,2,0,"h3",2),d(8,"h5"),h(9),l(),d(10,"button",3),N("click",function(){return o.cancelDbLoad()}),h(11,"Cancel"),l()()),2&i&&(m(2),f("ngIf","direct"===o.loaderType),m(),f("ngIf","direct"===o.loaderType),m(),f("ngIf","test-connection"===o.loaderType),m(),f("ngIf","test-connection"===o.loaderType),m(),f("ngIf","dump"===o.loaderType),m(),f("ngIf","session"===o.loaderType),m(2),Me("",o.timeElapsed," seconds have elapsed"))},dependencies:[Tt,Yt],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .loader-gif[_ngcontent-%COMP%]{width:10rem;height:10rem}"]})}return t})();function lre(t,n){1&t&&(d(0,"div"),D(1,"router-outlet"),l())}function dre(t,n){if(1&t&&(d(0,"div"),D(1,"app-database-loader",1),l()),2&t){const e=w();m(),f("loaderType",e.loaderType)("databaseName",e.databaseName)}}let ure=(()=>{class t{constructor(e){this.clickevent=e,this.isDatabaseLoading=!1,this.loaderType="",this.databaseName=""}ngOnInit(){this.clickevent.databaseLoader.subscribe(e=>{this.loaderType=e.type,this.databaseName=e.databaseName,this.isDatabaseLoading=""!==this.loaderType})}static#e=this.\u0275fac=function(i){return new(i||t)(_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-source-selection"]],decls:2,vars:2,consts:[[4,"ngIf"],[3,"loaderType","databaseName"]],template:function(i,o){1&i&&y(0,lre,2,0,"div",0)(1,dre,2,2,"div",0),2&i&&(f("ngIf",!o.isDatabaseLoading),m(),f("ngIf",o.isDatabaseLoading))},dependencies:[Tt,gg,cre],styles:[".mat-card-class[_ngcontent-%COMP%]{padding:0 20px}"]})}return t})();var TN=Pe(304);function hre(t,n){if(1&t){const e=ge();d(0,"mat-chip-row",16),N("removed",function(){const r=ae(e).$implicit;return se(w().removeFilter(r))}),h(1),d(2,"button",17)(3,"mat-icon"),h(4,"cancel"),l()()()}if(2&t){const e=n.$implicit;m(),Me(" ",e," ")}}function mre(t,n){if(1&t){const e=ge();d(0,"mat-option",18),N("click",function(){const r=ae(e).$implicit;return se(w().addFilter(r))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e),m(),Me(" ",e," ")}}function pre(t,n){1&t&&(d(0,"mat-icon",31),h(1," error "),l())}function fre(t,n){1&t&&(d(0,"mat-icon",32),h(1," warning "),l())}function gre(t,n){1&t&&(d(0,"mat-icon",33),h(1," wb_incandescent "),l())}function _re(t,n){1&t&&(d(0,"mat-icon",34),h(1," check_circle "),l())}function bre(t,n){if(1&t){const e=ge();d(0,"button",35),N("click",function(){ae(e);const o=w().$implicit;return se(w(2).toggleRead(o))}),d(1,"span"),h(2,"Mark as read"),l()()}}function vre(t,n){if(1&t){const e=ge();d(0,"button",35),N("click",function(){ae(e);const o=w().$implicit;return se(w(2).toggleRead(o))}),d(1,"span"),h(2,"Mark as unread"),l()()}}function yre(t,n){if(1&t&&(d(0,"section",21)(1,"div",2)(2,"div",3),y(3,pre,2,0,"mat-icon",22)(4,fre,2,0,"mat-icon",23)(5,gre,2,0,"mat-icon",24)(6,_re,2,0,"mat-icon",25),l(),d(7,"div",26),h(8),l(),d(9,"div",6)(10,"mat-icon",27),h(11,"more_vert"),l(),d(12,"mat-menu",28,29),y(14,bre,3,0,"button",30)(15,vre,3,0,"button",30),l()()()()),2&t){const e=n.$implicit,i=Rt(13);m(3),f("ngIf","error"==e.type),m(),f("ngIf","warning"==e.type),m(),f("ngIf","suggestion"==e.type),m(),f("ngIf","note"==e.type),m(2),Fe(e.content),m(2),f("matMenuTriggerFor",i),m(4),f("ngIf",!e.isRead),m(),f("ngIf",e.isRead)}}function wre(t,n){if(1&t&&(d(0,"div",19),y(1,yre,16,8,"section",20),l()),2&t){const e=w();m(),f("ngForOf",e.filteredSummaryRows)}}function xre(t,n){1&t&&(d(0,"div",36)(1,"div",37),Xt(),d(2,"svg",38),D(3,"path",39),l()(),mr(),d(4,"div",40),h(5," Woohoo! No issues or suggestions"),D(6,"br"),h(7,"found. "),l()())}let Cre=(()=>{class t{constructor(e,i){this.data=e,this.clickEvent=i,this.changeIssuesLabel=new Re,this.summaryRows=[],this.summary=new Map,this.filteredSummaryRows=[],this.separatorKeysCodes=[],this.summaryCount=0,this.totalNoteCount=0,this.totalWarningCount=0,this.totalSuggestionCount=0,this.totalErrorCount=0,this.filterInput=new Z,this.options=["read","unread","warning","suggestion","note","error"],this.obsFilteredOptions=new ci,this.searchFilters=["unread","warning","note","suggestion","error"],this.currentObject=null}ngOnInit(){this.data.summary.subscribe({next:e=>{if(this.summary=e,this.currentObject){let i=this.currentObject.id;"indexName"==this.currentObject.type&&(i=this.currentObject.parentId);let o=this.summary.get(i);o?(this.summaryRows=[],this.initiateSummaryCollection(o),this.applyFilters(),this.summaryCount=o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount,this.changeIssuesLabel.emit(o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount)):(this.summaryCount=0,this.changeIssuesLabel.emit(0))}else this.initialiseSummaryCollectionForAllTables(this.summary),this.summaryCount=this.totalNoteCount+this.totalErrorCount+this.totalSuggestionCount+this.totalWarningCount,this.changeIssuesLabel.emit(this.summaryCount)}}),this.registerAutoCompleteChange()}initialiseSummaryCollectionForAllTables(e){this.summaryRows=[],this.totalErrorCount=0,this.totalNoteCount=0,this.totalSuggestionCount=0,this.totalWarningCount=0;for(const i of e.values())this.initiateSummaryCollection(i);this.applyFilters()}ngOnChanges(e){if(this.currentObject=e?.currentObject?.currentValue||this.currentObject,this.summaryRows=[],this.currentObject){let i=this.currentObject.id;"indexName"==this.currentObject.type&&(i=this.currentObject.parentId);let o=this.summary.get(i);o?(this.summaryRows=[],this.initiateSummaryCollection(o),this.applyFilters(),this.summaryCount=o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount,this.changeIssuesLabel.emit(o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount)):(this.summaryCount=0,this.changeIssuesLabel.emit(0))}else this.summaryCount=0,this.changeIssuesLabel.emit(0)}initiateSummaryCollection(e){this.totalErrorCount+=e.ErrorsCount,this.totalNoteCount+=e.NotesCount,this.totalWarningCount+=e.WarningsCount,this.totalSuggestionCount+=e.SuggestionsCount,e.Errors.forEach(i=>{this.summaryRows.push({type:"error",content:i.description,isRead:!1})}),e.Warnings.forEach(i=>{this.summaryRows.push({type:"warning",content:i.description,isRead:!1})}),e.Suggestions.forEach(i=>{this.summaryRows.push({type:"suggestion",content:i.description,isRead:!1})}),e.Notes.forEach(i=>{this.summaryRows.push({type:"note",content:i.description,isRead:!1})})}applyFilters(){let e=[],i=[];this.searchFilters.includes("read")&&i.push(o=>o.isRead),this.searchFilters.includes("unread")&&i.push(o=>!o.isRead),this.searchFilters.includes("warning")&&e.push(o=>"warning"==o.type),this.searchFilters.includes("note")&&e.push(o=>"note"==o.type),this.searchFilters.includes("suggestion")&&e.push(o=>"suggestion"==o.type),this.searchFilters.includes("error")&&e.push(o=>"error"==o.type),this.filteredSummaryRows=this.summaryRows.filter(o=>(!i.length||i.some(r=>r(o)))&&(!e.length||e.some(r=>r(o))))}addFilter(e){e&&!this.searchFilters.includes(e)&&this.searchFilters.push(e),this.applyFilters(),this.registerAutoCompleteChange()}removeFilter(e){const i=this.searchFilters.indexOf(e);i>=0&&this.searchFilters.splice(i,1),this.applyFilters()}toggleRead(e){e.isRead=!e.isRead,this.applyFilters()}registerAutoCompleteChange(){this.obsFilteredOptions=this.filterInput.valueChanges.pipe(nn(""),nt(e=>this.autoCompleteOnChangeFilter(e)))}autoCompleteOnChangeFilter(e){return this.options.filter(i=>i.toLowerCase().includes(e))}spannerTab(){this.clickEvent.setTabToSpanner()}static#e=this.\u0275fac=function(i){return new(i||t)(_($i),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-summary"]],inputs:{currentObject:"currentObject"},outputs:{changeIssuesLabel:"changeIssuesLabel"},features:[fi],decls:29,vars:11,consts:[[1,"container"],[1,"filter"],[1,"columns"],[1,"left"],[1,"material-icons","filter-icon"],[1,"filter-text"],[1,"right"],[1,"chip-list"],["chipGrid",""],["class","primary",3,"removed",4,"ngFor","ngForOf"],["placeholder","New Filter...",3,"formControl","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matAutocomplete"],["auto","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[1,"header"],["class","content",4,"ngIf"],["class","no-issue-container",4,"ngIf"],[1,"primary",3,"removed"],["matChipRemove",""],[3,"value","click"],[1,"content"],["class","summary-row",4,"ngFor","ngForOf"],[1,"summary-row"],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above","class","danger",4,"ngIf"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above","class","warning",4,"ngIf"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above","class","suggestion",4,"ngIf"],["matTooltip","Note : This is informational and you dont need to do anything.","matTooltipPosition","above","class","success",4,"ngIf"],[1,"middle"],[3,"matMenuTriggerFor"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above",1,"danger"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above",1,"warning"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above",1,"suggestion"],["matTooltip","Note : This is informational and you dont need to do anything.","matTooltipPosition","above",1,"success"],["mat-menu-item","",3,"click"],[1,"no-issue-container"],[1,"no-issue-icon-container"],["width","36","height","36","viewBox","0 0 24 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.8332 0.69873C16.0051 7.45842 16.2492 9.44782 10.4672 10.2012C16.1511 11.1242 16.2329 13.2059 16.8332 19.7037C17.6237 13.1681 17.4697 11.2106 23.1986 10.2012C17.4247 9.45963 17.6194 7.4505 16.8332 0.69873ZM4.23739 0.872955C3.79064 4.52078 3.92238 5.59467 0.802246 6.00069C3.86944 6.49885 3.91349 7.62218 4.23739 11.1284C4.66397 7.60153 4.581 6.54497 7.67271 6.00069C4.55696 5.60052 4.66178 4.51623 4.23739 0.872955ZM7.36426 11.1105C7.05096 13.6683 7.14331 14.4212 4.95554 14.7061C7.10612 15.0553 7.13705 15.8431 7.36426 18.3017C7.66333 15.8288 7.60521 15.088 9.77298 14.7061C7.58818 14.4255 7.66177 13.6653 7.36426 11.1105Z","fill","#3367D6"],[1,"no-issue-message"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"div",3)(5,"span",4),h(6,"filter_list"),l(),d(7,"span",5),h(8,"Filter"),l()(),d(9,"div",6)(10,"mat-form-field",7)(11,"mat-chip-grid",null,8),y(13,hre,5,1,"mat-chip-row",9),l(),D(14,"input",10),d(15,"mat-autocomplete",null,11),y(17,mre,2,2,"mat-option",12),Dv(18,"async"),l()()()()(),d(19,"div",13)(20,"div",2)(21,"div",3)(22,"span"),h(23," Status "),l()(),d(24,"div",6)(25,"span"),h(26," Summary "),l()()()(),y(27,wre,2,1,"div",14)(28,xre,8,0,"div",15),l()()),2&i){const r=Rt(12),a=Rt(16);m(13),f("ngForOf",o.searchFilters),m(),f("formControl",o.filterInput)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!1)("matAutocomplete",a),m(3),f("ngForOf",Sv(18,9,o.obsFilteredOptions)),m(10),f("ngIf",0!==o.summaryCount),m(),f("ngIf",0===o.summaryCount)}},dependencies:[dn,Tt,Ii,Ri,In,Oi,xi,Rl,Vl,wa,jl,DP,SP,wP,Mw,xn,Fee,pR,yI],styles:[".container[_ngcontent-%COMP%]{height:calc(100vh - 271px);position:relative;overflow-y:auto;background-color:#fff}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%] .no-object-icon-container[_ngcontent-%COMP%]{padding:10px;background-color:#3367d61f;border-radius:3px;margin:20px}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%] .no-object-message[_ngcontent-%COMP%]{width:80%;max-width:500px;text-align:center}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%]{width:100%;position:absolute;top:50%;display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%] .no-issue-icon-container[_ngcontent-%COMP%]{padding:10px;background-color:#3367d61f;border-radius:3px;margin:20px}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%] .no-issue-message[_ngcontent-%COMP%]{width:80%;max-width:500px;text-align:center}h3[_ngcontent-%COMP%]{margin-bottom:0;padding-left:15px}.filter[_ngcontent-%COMP%]{display:flex;flex:1;min-height:65px;padding:0 15px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{order:1;position:relative;padding-top:20px;width:100px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .filter-icon[_ngcontent-%COMP%]{position:absolute;font-size:20px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .filter-text[_ngcontent-%COMP%]{position:absolute;margin-left:30px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{order:2;width:100%}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;min-height:22px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .mat-mdc-chip-input[_ngcontent-%COMP%]{height:24px;flex:0}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .primary[_ngcontent-%COMP%]{background-color:#3f51b5;color:#fff}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .primary[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#fff;opacity:.4}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-underline{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-chip[_ngcontent-%COMP%]{min-height:24px;font-weight:lighter}.header[_ngcontent-%COMP%]{display:flex;flex:1;padding:5px 0;background-color:#f5f5f5;text-align:center}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:60px;order:1}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1;order:2}.summary-row[_ngcontent-%COMP%]{display:flex;flex:1;padding:10px 0;border-bottom:1px solid #ccc}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:60px;order:1;text-align:center;padding-top:5px}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{flex:1;order:2}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:30px;order:3;cursor:pointer}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:18px}.chip-list[_ngcontent-%COMP%]{width:100%}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mdc-chip-label-text-color: #fff}"]})}return t})();function Dre(t,n){if(1&t&&(d(0,"h2"),h(1),l()),2&t){const e=w();m(),Me("Skip ",e.eligibleTables.length," table(s)?")}}function Sre(t,n){if(1&t&&(d(0,"h2"),h(1),l()),2&t){const e=w();m(),Me("Restore ",e.eligibleTables.length," table(s) and all associated indexes?")}}function kre(t,n){1&t&&(d(0,"span",9),h(1," Confirm skip by typing the following below: "),d(2,"b"),h(3,"SKIP"),l(),D(4,"br"),l())}function Tre(t,n){1&t&&(d(0,"span",9),h(1," Confirm restoration by typing the following below: "),d(2,"b"),h(3,"RESTORE"),l(),D(4,"br"),l())}function Mre(t,n){if(1&t&&(d(0,"div")(1,"b"),h(2,"Note:"),l(),h(3),D(4,"br"),d(5,"b"),h(6,"Already skipped tables:"),l(),h(7),l()),2&t){const e=w();m(3),fl(" You selected ",e.data.tables.length," tables. ",e.ineligibleTables.length," table(s) will not be skipped since they are already skipped."),m(4),Me(" ",e.ineligibleTables," ")}}function Ire(t,n){if(1&t&&(d(0,"div")(1,"b"),h(2,"Note:"),l(),h(3),D(4,"br"),d(5,"b"),h(6,"Already active tables:"),l(),h(7),l()),2&t){const e=w();m(3),fl(" You selected ",e.data.tables.length," tables. ",e.ineligibleTables.length," table(s) will not be restored since they are already active."),m(4),Me(" ",e.ineligibleTables," ")}}let MN=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i,this.eligibleTables=[],this.ineligibleTables=[];let o="";"SKIP"==this.data.operation?(o="SKIP",this.data.tables.forEach(r=>{r.isDeleted?this.ineligibleTables.push(r.TableName):this.eligibleTables.push(r.TableName)})):(o="RESTORE",this.data.tables.forEach(r=>{r.isDeleted?this.eligibleTables.push(r.TableName):this.ineligibleTables.push(r.TableName)})),this.confirmationInput=new Z("",[ce.required,ce.pattern(o)]),i.disableClose=!0}confirm(){this.dialogRef.close(this.data.operation)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(On))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-bulk-drop-restore-table-dialog"]],decls:19,vars:8,consts:[["mat-dialog-content",""],[4,"ngIf"],[1,"form-container"],["class","form-custom-label",4,"ngIf"],["appearance","outline"],["matInput","","type","text",3,"formControl"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[1,"form-custom-label"]],template:function(i,o){1&i&&(d(0,"div",0),y(1,Dre,2,1,"h2",1)(2,Sre,2,1,"h2",1),d(3,"mat-dialog-content")(4,"div",2)(5,"form"),y(6,kre,5,0,"span",3)(7,Tre,5,0,"span",3),d(8,"mat-form-field",4)(9,"mat-label"),h(10,"Confirm"),l(),D(11,"input",5),l(),y(12,Mre,8,3,"div",1)(13,Ire,8,3,"div",1),l()()(),d(14,"div",6)(15,"button",7),h(16,"Cancel"),l(),d(17,"button",8),N("click",function(){return o.confirm()}),h(18," Confirm "),l()()()),2&i&&(m(),f("ngIf","SKIP"==o.data.operation),m(),f("ngIf","RESTORE"==o.data.operation),m(4),f("ngIf","SKIP"==o.data.operation),m(),f("ngIf","RESTORE"==o.data.operation),m(4),f("formControl",o.confirmationInput),m(),f("ngIf","SKIP"==o.data.operation&&0!=o.ineligibleTables.length),m(),f("ngIf","RESTORE"==o.data.operation&&0!=o.ineligibleTables.length),m(4),f("disabled",!o.confirmationInput.valid))},dependencies:[Tt,Yt,Ri,Pi,on,En,Oi,xi,Ui,Rl,mo,Jo,er,hs],styles:[".alert-container[_ngcontent-%COMP%]{padding:.5rem;display:flex;align-items:center;margin-bottom:1rem;background-color:#f8f4f4}.alert-container[_ngcontent-%COMP%] mat-mdc-icon[_ngcontent-%COMP%]{color:#f3b300;margin-right:20px}.form-container[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}"]})}return t})();const IN=t=>({"blue-font-color":t});function Ere(t,n){if(1&t&&(d(0,"span",25),h(1),l()),2&t){const e=w();f("ngClass",ui(2,IN,"source"===e.selectedTab)),m(),Me(" ",e.srcDbName.toUpperCase()," ")}}function Ore(t,n){1&t&&(d(0,"th",26),h(1,"Status"),l())}function Are(t,n){1&t&&(Xt(),d(0,"svg",31),D(1,"path",32),l())}function Pre(t,n){1&t&&(d(0,"mat-icon",33),h(1," work "),l())}function Rre(t,n){1&t&&(d(0,"mat-icon",34),h(1," work_history "),l())}function Nre(t,n){if(1&t&&(d(0,"td",27),y(1,Are,2,0,"svg",28)(2,Pre,2,0,"mat-icon",29)(3,Rre,2,0,"mat-icon",30),l()),2&t){const e=n.$implicit;m(),f("ngIf","EXCELLENT"===e.status||"NONE"===e.status),m(),f("ngIf","OK"===e.status||"GOOD"===e.status),m(),f("ngIf","POOR"===e.status)}}function Fre(t,n){1&t&&(d(0,"mat-icon",38),h(1,"arrow_upward"),l())}function Lre(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_upward"),l())}function Bre(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_downward"),l())}function Vre(t,n){if(1&t){const e=ge();d(0,"th",35),N("click",function(){return ae(e),se(w().srcTableSort())}),d(1,"div")(2,"span"),h(3," Object Name "),l(),y(4,Fre,2,0,"mat-icon",36)(5,Lre,2,0,"mat-icon",37)(6,Bre,2,0,"mat-icon",37),l()()}if(2&t){const e=w();m(4),f("ngIf",""===e.srcSortOrder),m(),f("ngIf","asc"===e.srcSortOrder),m(),f("ngIf","desc"===e.srcSortOrder)}}function jre(t,n){1&t&&(Xt(),d(0,"svg",48),D(1,"path",49),l())}function zre(t,n){1&t&&(Xt(),d(0,"svg",50),D(1,"path",51),l())}function Hre(t,n){1&t&&(Xt(),d(0,"svg",52),D(1,"path",53),l())}function Ure(t,n){1&t&&(Xt(),d(0,"svg",54),D(1,"path",55),l())}function $re(t,n){if(1&t&&(d(0,"span",56)(1,"mat-icon",57),h(2,"more_vert"),l(),d(3,"mat-menu",null,58)(5,"button",59)(6,"span"),h(7,"Add Index"),l()()()()),2&t){const e=Rt(4);m(),f("matMenuTriggerFor",e)}}function Gre(t,n){if(1&t){const e=ge();d(0,"td",40)(1,"button",41),N("click",function(){const r=ae(e).$implicit;return se(w().srcTreeControl.toggle(r))}),y(2,jre,2,0,"svg",42)(3,zre,2,0,"ng-template",null,43,_r),l(),d(5,"span",44),N("click",function(){const r=ae(e).$implicit;return se(w().objectSelected(r))}),d(6,"span"),y(7,Hre,2,0,"svg",45)(8,Ure,2,0,"svg",46),d(9,"span"),h(10),l()(),y(11,$re,8,1,"span",47),l()()}if(2&t){const e=n.$implicit,i=Rt(4),o=w();m(),yn("visibility",e.expandable?"":"hidden")("margin-left",10*e.level,"px"),m(),f("ngIf",o.srcTreeControl.isExpanded(e))("ngIfElse",i),m(5),f("ngIf",o.isTableNode(e.type)),m(),f("ngIf",o.isIndexNode(e.type)),m(2),Fe(e.name),m(),f("ngIf",o.isIndexNode(e.type)&&e.isSpannerNode)}}function Wre(t,n){1&t&&D(0,"tr",60)}const EN=t=>({"selected-row":t});function qre(t,n){if(1&t&&D(0,"tr",61),2&t){const e=n.$implicit,i=w();f("ngClass",ui(1,EN,i.shouldHighlight(e)))}}function Kre(t,n){if(1&t&&(d(0,"span",25),h(1," SPANNER DRAFT "),l()),2&t){const e=w();f("ngClass",ui(1,IN,"spanner"===e.selectedTab))}}function Zre(t,n){1&t&&(d(0,"th",26),h(1,"Status"),l())}function Yre(t,n){1&t&&(Xt(),d(0,"svg",31),D(1,"path",32),l())}function Qre(t,n){1&t&&(d(0,"mat-icon",33),h(1," work "),l())}function Xre(t,n){1&t&&(d(0,"mat-icon",34),h(1," work_history "),l())}function Jre(t,n){1&t&&(d(0,"mat-icon",63),h(1," delete "),l())}function eae(t,n){if(1&t&&(d(0,"td",27),y(1,Yre,2,0,"svg",28)(2,Qre,2,0,"mat-icon",29)(3,Xre,2,0,"mat-icon",30)(4,Jre,2,0,"mat-icon",62),l()),2&t){const e=n.$implicit;m(),f("ngIf","EXCELLENT"===e.status||"NONE"===e.status),m(),f("ngIf","OK"===e.status||"GOOD"===e.status),m(),f("ngIf","POOR"===e.status),m(),f("ngIf","DARK"===e.status||1==e.isDeleted)}}function tae(t,n){1&t&&(d(0,"mat-icon",65),h(1,"arrow_upward"),l())}function iae(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_upward"),l())}function nae(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_downward"),l())}function oae(t,n){if(1&t){const e=ge();d(0,"th",35),N("click",function(){return ae(e),se(w().spannerTableSort())}),d(1,"div")(2,"span"),h(3," Object Name "),l(),y(4,tae,2,0,"mat-icon",64)(5,iae,2,0,"mat-icon",37)(6,nae,2,0,"mat-icon",37),l()()}if(2&t){const e=w();m(4),f("ngIf",""===e.spannerSortOrder),m(),f("ngIf","asc"===e.spannerSortOrder),m(),f("ngIf","desc"===e.spannerSortOrder)}}function rae(t,n){if(1&t){const e=ge();d(0,"mat-checkbox",70),N("change",function(){ae(e);const o=w().$implicit;return se(w().selectionToggle(o))}),l()}if(2&t){const e=w().$implicit;f("checked",w().checklistSelection.isSelected(e))}}function aae(t,n){1&t&&(Xt(),d(0,"svg",48),D(1,"path",49),l())}function sae(t,n){1&t&&(Xt(),d(0,"svg",50),D(1,"path",51),l())}function cae(t,n){1&t&&(Xt(),d(0,"svg",52),D(1,"path",53),l())}function lae(t,n){1&t&&(Xt(),d(0,"svg",54),D(1,"path",55),l())}function dae(t,n){if(1&t){const e=ge();d(0,"span",56)(1,"mat-icon",71),h(2,"more_vert"),l(),d(3,"mat-menu",72,58)(5,"button",73),N("click",function(){ae(e);const o=w().$implicit;return se(w().openAddIndexForm(o.parent))}),d(6,"span"),h(7,"Add Index"),l()()()()}if(2&t){const e=Rt(4);m(),f("matMenuTriggerFor",e)}}const uae=()=>({sidebar_link:!0}),hae=t=>({"gray-out":t});function mae(t,n){if(1&t){const e=ge();d(0,"td",66),y(1,rae,1,1,"mat-checkbox",67),d(2,"button",41),N("click",function(){const r=ae(e).$implicit;return se(w().treeControl.toggle(r))}),y(3,aae,2,0,"svg",42)(4,sae,2,0,"ng-template",null,43,_r),l(),d(6,"span",68),N("click",function(){const r=ae(e).$implicit;return se(w().objectSelected(r))}),d(7,"span"),y(8,cae,2,0,"svg",45)(9,lae,2,0,"svg",46),d(10,"span",69),h(11),l()(),y(12,dae,8,1,"span",47),l()()}if(2&t){const e=n.$implicit,i=Rt(5),o=w();f("ngClass",Wo(13,uae)),m(),f("ngIf",!o.isIndexLikeNode(e)),m(),yn("visibility",e.expandable?"":"hidden")("margin-left",10*e.level,"px"),m(),f("ngIf",o.treeControl.isExpanded(e))("ngIfElse",i),m(3),f("ngClass",ui(14,hae,e.isDeleted)),m(2),f("ngIf",o.isTableNode(e.type)),m(),f("ngIf",o.isIndexNode(e.type)),m(2),Fe(e.name),m(),f("ngIf",o.isIndexNode(e.type))}}function pae(t,n){1&t&&D(0,"tr",60)}function fae(t,n){if(1&t&&D(0,"tr",61),2&t){const e=n.$implicit,i=w();f("ngClass",ui(1,EN,i.shouldHighlight(e)))}}const wx=t=>[t];let gae=(()=>{class t{constructor(e,i,o,r,a){this.conversion=e,this.dialog=i,this.data=o,this.sidenav=r,this.clickEvent=a,this.isLeftColumnCollapse=!1,this.currentSelectedObject=null,this.srcSortOrder="",this.spannerSortOrder="",this.srcSearchText="",this.spannerSearchText="",this.selectedTab="spanner",this.selectedDatabase=new Re,this.selectObject=new Re,this.updateSpannerTable=new Re,this.updateSrcTable=new Re,this.leftCollaspe=new Re,this.updateSidebar=new Re,this.spannerTree=[],this.srcTree=[],this.srcDbName="",this.selectedIndex=1,this.transformer=(s,c)=>({expandable:!!s.children&&s.children.length>0,name:s.name,status:s.status,type:s.type,parent:s.parent,parentId:s.parentId,pos:s.pos,isSpannerNode:s.isSpannerNode,level:c,isDeleted:!!s.isDeleted,id:s.id}),this.treeControl=new TP(s=>s.level,s=>s.expandable),this.srcTreeControl=new TP(s=>s.level,s=>s.expandable),this.treeFlattener=new SX(this.transformer,s=>s.level,s=>s.expandable,s=>s.children),this.dataSource=new IP(this.treeControl,this.treeFlattener),this.srcDataSource=new IP(this.srcTreeControl,this.treeFlattener),this.checklistSelection=new Uu(!0,[]),this.displayedColumns=["status","name"]}ngOnInit(){this.clickEvent.tabToSpanner.subscribe({next:e=>{this.setSpannerTab()}})}ngOnChanges(e){let i=e?.spannerTree?.currentValue,o=e?.srcTree?.currentValue;o&&(this.srcDataSource.data=o,this.srcTreeControl.expand(this.srcTreeControl.dataNodes[0]),this.srcTreeControl.expand(this.srcTreeControl.dataNodes[1])),i&&(this.dataSource.data=i,this.treeControl.expand(this.treeControl.dataNodes[0]),this.treeControl.expand(this.treeControl.dataNodes[1]))}filterSpannerTable(){this.updateSpannerTable.emit({text:this.spannerSearchText,order:this.spannerSortOrder})}filterSrcTable(){this.updateSrcTable.emit({text:this.srcSearchText,order:this.srcSortOrder})}srcTableSort(){this.srcSortOrder=""===this.srcSortOrder?"asc":"asc"===this.srcSortOrder?"desc":"",this.updateSrcTable.emit({text:this.srcSearchText,order:this.srcSortOrder})}spannerTableSort(){this.spannerSortOrder=""===this.spannerSortOrder?"asc":"asc"===this.spannerSortOrder?"desc":"",this.updateSpannerTable.emit({text:this.spannerSearchText,order:this.spannerSortOrder})}objectSelected(e){this.currentSelectedObject=e,(e.type===hi.Index||e.type===hi.Table)&&this.selectObject.emit(e)}leftColumnToggle(){this.isLeftColumnCollapse=!this.isLeftColumnCollapse,this.leftCollaspe.emit()}isTableNode(e){return new RegExp("^tables").test(e)}isIndexNode(e){return new RegExp("^indexes").test(e)}isIndexLikeNode(e){return e.type==hi.Index||e.type==hi.Indexes}openAddIndexForm(e){this.sidenav.setSidenavAddIndexTable(e),this.sidenav.setSidenavRuleType("addIndex"),this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("rule"),this.sidenav.setRuleData([]),this.sidenav.setDisplayRuleFlag(!1)}shouldHighlight(e){return e.name===this.currentSelectedObject?.name&&(e.type===hi.Table||e.type===hi.Index)}onTabChanged(){"spanner"==this.selectedTab?(this.selectedTab="source",this.selectedIndex=0):(this.selectedTab="spanner",this.selectedIndex=1),this.selectedDatabase.emit(this.selectedTab),this.currentSelectedObject=null,this.selectObject.emit(void 0)}setSpannerTab(){this.selectedIndex=1}checkDropSelection(){return 0!=this.countSelectionByCategory().eligibleForDrop}checkRestoreSelection(){return 0!=this.countSelectionByCategory().eligibleForRestore}countSelectionByCategory(){let i=0,o=0;return this.checklistSelection.selected.forEach(r=>{r.isDeleted?o+=1:i+=1}),{eligibleForDrop:i,eligibleForRestore:o}}dropSelected(){var i=[];this.checklistSelection.selected.forEach(a=>{""!=a.id&&a.type==hi.Table&&i.push({TableId:a.id,TableName:a.name,isDeleted:a.isDeleted})});let o=this.dialog.open(MN,{width:"35vw",minWidth:"450px",maxWidth:"600px",maxHeight:"90vh",data:{tables:i,operation:"SKIP"}});var r={TableList:[]};i.forEach(a=>{r.TableList.push(a.TableId)}),o.afterClosed().subscribe(a=>{"SKIP"==a&&(this.data.dropTables(r).pipe(Nt(1)).subscribe(s=>{""===s&&(this.data.getConversionRate(),this.updateSidebar.emit(!0))}),this.checklistSelection.clear())})}restoreSelected(){var i=[];this.checklistSelection.selected.forEach(a=>{""!=a.id&&a.type==hi.Table&&i.push({TableId:a.id,TableName:a.name,isDeleted:a.isDeleted})});let o=this.dialog.open(MN,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{tables:i,operation:"RESTORE"}});var r={TableList:[]};i.forEach(a=>{r.TableList.push(a.TableId)}),o.afterClosed().subscribe(a=>{"RESTORE"==a&&(this.data.restoreTables(r).pipe(Nt(1)).subscribe(s=>{this.data.getConversionRate(),this.data.getDdl()}),this.checklistSelection.clear())})}selectionToggle(e){this.checklistSelection.toggle(e);const i=this.treeControl.getDescendants(e);this.checklistSelection.isSelected(e)?this.checklistSelection.select(...i):this.checklistSelection.deselect(...i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(hc),_(Vr),_($i),_(Xn),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-object-explorer"]],inputs:{spannerTree:"spannerTree",srcTree:"srcTree",srcDbName:"srcDbName"},outputs:{selectedDatabase:"selectedDatabase",selectObject:"selectObject",updateSpannerTable:"updateSpannerTable",updateSrcTable:"updateSrcTable",leftCollaspe:"leftCollaspe",updateSidebar:"updateSidebar"},features:[fi],decls:59,vars:20,consts:[[1,"container"],[3,"ngClass","selectedIndex","selectedTabChange"],["mat-tab-label",""],[1,"filter-wrapper"],[1,"left"],[1,"material-icons","filter-icon"],[1,"filter-text"],[1,"right"],["placeholder","Filter by table name",3,"ngModel","ngModelChange"],[1,"explorer-table"],["mat-table","",3,"dataSource"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","class","mat-header-cell-name cursor-pointer",3,"click",4,"matHeaderCellDef"],["mat-cell","","class","sidebar_link",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["clas","delete-selected-btn"],["mat-button","","color","primary",1,"icon","drop",3,"disabled","click"],["clas","restore-selected-btn"],["mat-table","","id","table-and-index-list",3,"dataSource"],["mat-cell","",3,"ngClass",4,"matCellDef"],["id","left-column-toggle-button",3,"click"],[3,"ngClass"],["mat-header-cell",""],["mat-cell",""],["class","icon success","matTooltip","Can be converted automatically","matTooltipPosition","above","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","black",4,"ngIf"],["class","work","matTooltip","Requires minimal conversion changes","matTooltipPosition","above",4,"ngIf"],["class","work_history","matTooltip","Requires high complexity conversion changes","matTooltipPosition","above",4,"ngIf"],["matTooltip","Can be converted automatically","matTooltipPosition","above","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","black",1,"icon","success"],["d","m10.4 17.6-2-4.4-4.4-2 4.4-2 2-4.4 2 4.4 4.4 2-4.4 2Zm6.4 1.6-1-2.2-2.2-1 2.2-1 1-2.2 1 2.2 2.2 1-2.2 1Z"],["matTooltip","Requires minimal conversion changes","matTooltipPosition","above",1,"work"],["matTooltip","Requires high complexity conversion changes","matTooltipPosition","above",1,"work_history"],["mat-header-cell","",1,"mat-header-cell-name","cursor-pointer",3,"click"],["class","src-unsorted-icon sort-icon",4,"ngIf"],["class","sort-icon",4,"ngIf"],[1,"src-unsorted-icon","sort-icon"],[1,"sort-icon"],["mat-cell","",1,"sidebar_link"],["mat-icon-button","",3,"click"],["width","12","height","6","viewBox","0 0 12 6","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf","ngIfElse"],["collaps",""],[1,"sidebar_link",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["width","12","height","14","viewBox","0 0 12 14","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["class","actions",4,"ngIf"],["width","12","height","6","viewBox","0 0 12 6","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 0L0 0L6 6L12 0Z","fill","black","fill-opacity","0.54"],["width","6","height","12","viewBox","0 0 6 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M-5.24537e-07 2.62268e-07L0 12L6 6L-5.24537e-07 2.62268e-07Z","fill","black","fill-opacity","0.54"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M0 0V18H18V0H0ZM16 2V6H2V2H16ZM7.33 11V8H10.66V11H7.33ZM10.67 13V16H7.34V13H10.67ZM5.33 11H2V8H5.33V11ZM12.67 8H16V11H12.67V8ZM2 13H5.33V16H2V13ZM12.67 16V13H16V16H12.67Z","fill","black","fill-opacity","0.54"],["width","12","height","14","viewBox","0 0 12 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.005 14C11.555 14 12 13.554 12 13.002V5L10 3V12H2V14H11.005ZM0 0.996C0 0.446 0.438 0 1.003 0H7L9 2.004V10.004C9 10.554 8.554 11 8.002 11H0.998C0.867035 11.0003 0.737304 10.9747 0.616233 10.9248C0.495162 10.8748 0.385128 10.8015 0.292428 10.709C0.199729 10.6165 0.126186 10.5066 0.0760069 10.3856C0.0258282 10.2646 -2.64036e-07 10.135 0 10.004V0.996ZM6 1L5 5.5H2L6 1ZM3 10L4 5.5H7L3 10Z","fill","black","fill-opacity","0.54"],[1,"actions"],[3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item",""],["mat-header-row",""],["mat-row","",3,"ngClass"],["class","icon dark","matTooltip","Deleted","matTooltipPosition","above",4,"ngIf"],["matTooltip","Deleted","matTooltipPosition","above",1,"icon","dark"],["class","spanner-unsorted-icon sort-icon",4,"ngIf"],[1,"spanner-unsorted-icon","sort-icon"],["mat-cell","",3,"ngClass"],["class","checklist-node",3,"checked","change",4,"ngIf"],[1,"sidebar_link",3,"ngClass","click"],[1,"object-name"],[1,"checklist-node",3,"checked","change"],[1,"add-index-icon",3,"matMenuTriggerFor"],["xPosition","before"],["mat-menu-item","",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-tab-group",1),N("selectedTabChange",function(){return o.onTabChanged()}),d(2,"mat-tab"),y(3,Ere,2,4,"ng-template",2),d(4,"div",3)(5,"div",4)(6,"span",5),h(7,"filter_list"),l(),d(8,"span",6),h(9,"Filter"),l()(),d(10,"div",7)(11,"input",8),kn("ngModelChange",function(a){return Ln(o.srcSearchText,a)||(o.srcSearchText=a),a}),N("ngModelChange",function(){return o.filterSrcTable()}),l()()(),d(12,"div",9)(13,"table",10),Ce(14,11),y(15,Ore,2,0,"th",12)(16,Nre,4,3,"td",13),De(),Ce(17,14),y(18,Vre,7,3,"th",15)(19,Gre,12,10,"td",16),De(),y(20,Wre,1,0,"tr",17)(21,qre,1,3,"tr",18),l()()(),d(22,"mat-tab"),y(23,Kre,2,3,"ng-template",2),d(24,"div",3)(25,"div",4)(26,"span",5),h(27,"filter_list"),l(),d(28,"span",6),h(29,"Filter"),l()(),d(30,"div",7)(31,"input",8),kn("ngModelChange",function(a){return Ln(o.spannerSearchText,a)||(o.spannerSearchText=a),a}),N("ngModelChange",function(){return o.filterSpannerTable()}),l()(),d(32,"div",19)(33,"button",20),N("click",function(){return o.dropSelected()}),d(34,"mat-icon"),h(35,"delete"),l(),d(36,"span"),h(37,"SKIP"),l()()(),d(38,"div",21)(39,"button",20),N("click",function(){return o.restoreSelected()}),d(40,"mat-icon"),h(41,"undo"),l(),d(42,"span"),h(43,"RESTORE"),l()()()(),d(44,"div",9)(45,"table",22),Ce(46,11),y(47,Zre,2,0,"th",12)(48,eae,5,4,"td",13),De(),Ce(49,14),y(50,oae,7,3,"th",15)(51,mae,13,16,"td",23),De(),y(52,pae,1,0,"tr",17)(53,fae,1,3,"tr",18),l()()()(),d(54,"button",24),N("click",function(){return o.leftColumnToggle()}),d(55,"mat-icon",25),h(56,"first_page"),l(),d(57,"mat-icon",25),h(58,"last_page"),l()()()),2&i&&(m(),f("ngClass",ui(14,wx,o.isLeftColumnCollapse?"hidden":"display"))("selectedIndex",o.selectedIndex),m(10),Sn("ngModel",o.srcSearchText),m(2),f("dataSource",o.srcDataSource),m(7),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns),m(10),Sn("ngModel",o.spannerSearchText),m(2),f("disabled",!o.checkDropSelection()),m(6),f("disabled",!o.checkRestoreSelection()),m(6),f("dataSource",o.dataSource),m(7),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns),m(2),f("ngClass",ui(16,wx,o.isLeftColumnCollapse?"hidden":"display")),m(2),f("ngClass",ui(18,wx,o.isLeftColumnCollapse?"display":"hidden")))},dependencies:[vr,Tt,Yt,ga,Ii,Oi,xi,Vl,wa,jl,ps,Sa,fs,ka,Da,gs,Ta,Ma,_s,bs,Nw,Zf,Lw,xn,Jf,Pl],styles:[".container[_ngcontent-%COMP%]{position:relative;background-color:#fff}.container[_ngcontent-%COMP%] .filter-wrapper[_ngcontent-%COMP%]{padding:0 10px}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]{height:35px}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] .spanner-unsorted-icon[_ngcontent-%COMP%]{visibility:hidden}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]:hover .spanner-unsorted-icon[_ngcontent-%COMP%]{visibility:visible;opacity:.7}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] .src-unsorted-icon[_ngcontent-%COMP%]{visibility:hidden}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]:hover .src-unsorted-icon[_ngcontent-%COMP%]{visibility:visible;opacity:.7}.container[_ngcontent-%COMP%] .sort-icon[_ngcontent-%COMP%]{font-size:1.1rem;vertical-align:middle}.selected-row[_ngcontent-%COMP%]{background-color:#61b3ff4a}.explorer-table[_ngcontent-%COMP%]{height:calc(100vh - 320px);width:100%;overflow:auto}.mdc-data-table__cell[_ngcontent-%COMP%], .mdc-data-table__header-cell[_ngcontent-%COMP%]{padding:0 0 0 16px}.mat-mdc-table[_ngcontent-%COMP%]{width:100%;border:inset}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;height:40px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:10px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{height:40px;margin-left:14px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .add-index-icon[_ngcontent-%COMP%]{margin-top:7px}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%], .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%]{height:29px}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%]{font-family:Roboto;font-size:13px;font-style:normal;font-weight:500;line-height:18px;background:#f5f5f5}.mat-mdc-table[_ngcontent-%COMP%] .mat-column-status[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:medium}.mat-mdc-table[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:20px}.filter-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;height:48px}.filter-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:30%;display:flex;align-items:center}.filter-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:5px}.filter-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:70%}.filter-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:70%;border:none;outline:none;background-color:transparent}#left-column-toggle-button[_ngcontent-%COMP%]{z-index:100;position:absolute;right:4px;top:10px;border:none;background-color:inherit}#left-column-toggle-button[_ngcontent-%COMP%]:hover{cursor:pointer}.mat-mdc-column-status[_ngcontent-%COMP%]{width:80px} .column-left .mat-mdc-tab-label-container{margin-right:40px} .column-left .mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-label-container{margin-right:0} .column-left .mat-mdc-tab-header-pagination-after{margin-right:40px}"]})}return t})();function _ae(t,n){1&t&&(d(0,"div",9)(1,"mat-icon"),h(2,"warning"),l(),d(3,"span"),h(4,"This operation cannot be undone"),l()())}let ON=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i,this.ObjectDetailNodeType=od,this.confirmationInput=new Z("",[ce.required,ce.pattern(`^${e.name}$`)]),i.disableClose=!0}delete(){this.dialogRef.close(this.data.type)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(On))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-drop-index-dialog"]],decls:19,vars:7,consts:[["mat-dialog-content",""],["class","alert-container",4,"ngIf"],[1,"form-container"],[1,"form-custom-label"],["appearance","outline"],["matInput","","type","text",3,"formControl"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[1,"alert-container"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),h(2),l(),y(3,_ae,5,0,"div",1),d(4,"div",2)(5,"form")(6,"span",3),h(7," Confirm deletion by typing the following below: "),d(8,"b"),h(9),l()(),d(10,"mat-form-field",4)(11,"mat-label"),h(12),l(),D(13,"input",5),l()()()(),d(14,"div",6)(15,"button",7),h(16,"Cancel"),l(),d(17,"button",8),N("click",function(){return o.delete()}),h(18," Confirm "),l()()),2&i&&(m(2),fl("Skip ",o.data.type," (",o.data.name,")?"),m(),f("ngIf","Index"===o.data.type),m(6),Fe(o.data.name),m(3),Me("",o.data.type==o.ObjectDetailNodeType.Table?"Table":"Index"," Name"),m(),f("formControl",o.confirmationInput),m(4),f("disabled",!o.confirmationInput.valid))},dependencies:[Tt,Yt,Ii,Ri,Pi,on,En,Oi,xi,Ui,Rl,mo,Jo,er,hs],styles:[".alert-container[_ngcontent-%COMP%]{padding:.5rem;display:flex;align-items:center;margin-bottom:1rem;background-color:#f8f4f4}.alert-container[_ngcontent-%COMP%] mat-mdc-icon[_ngcontent-%COMP%]{color:#f3b300;margin-right:20px}.form-container[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}"]})}return t})();function bae(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Fe(e)}}function vae(t,n){1&t&&(d(0,"div")(1,"mat-form-field",2)(2,"mat-label"),h(3,"Length"),l(),D(4,"input",13),l(),D(5,"br"),l())}function yae(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.displayName," ")}}let wae=(()=>{class t{constructor(e,i,o,r){this.formBuilder=e,this.dataService=i,this.dialogRef=o,this.data=r,this.dialect="",this.datatypes=[],this.selectedDatatype="",this.tableId="",this.selectedNull=!0,this.dataTypesWithColLen=Cn.DataTypes,this.isColumnNullable=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.dialect=r.dialect,this.tableId=r.tableId,this.addNewColumnForm=this.formBuilder.group({name:["",[ce.required,ce.minLength(1),ce.maxLength(128),ce.pattern("^[a-zA-Z][a-zA-Z0-9_]*$")]],datatype:["",ce.required],length:["",ce.pattern("^[0-9]+$")],isNullable:[]})}ngOnInit(){this.datatypes="google_standard_sql"==this.dialect?xN_GoogleStandardSQL:xN_PostgreSQL}changeValidator(){this.addNewColumnForm.controls.length.clearValidators(),"BYTES"===this.selectedDatatype?this.addNewColumnForm.get("length")?.addValidators([ce.required,ce.max(Cn.ByteMaxLength)]):("VARCHAR"===this.selectedDatatype||"STRING"===this.selectedDatatype)&&this.addNewColumnForm.get("length")?.addValidators([ce.required,ce.max(Cn.StringMaxLength)]),this.addNewColumnForm.controls.length.updateValueAndValidity()}addNewColumn(){let e=this.addNewColumnForm.value,i={Name:e.name,Datatype:this.selectedDatatype,Length:parseInt(e.length),IsNullable:this.selectedNull};this.dataService.addColumn(this.tableId,i),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(_a),_($i),_(On),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-add-new-column"]],decls:26,vars:7,consts:[["mat-dialog-content",""],[1,"add-new-column-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","placeholder","Column Name","type","text","formControlName","name"],["appearance","outline"],["formControlName","datatype","required","true",1,"input-field",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["formControlName","isNullable","required","true",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[3,"value"],["matInput","","placeholder","Length","type","text","formControlName","length"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Column Details"),l(),d(4,"mat-form-field",2)(5,"mat-label"),h(6,"Name"),l(),D(7,"input",3),l(),D(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),h(11,"Datatype"),l(),d(12,"mat-select",5),kn("ngModelChange",function(a){return Ln(o.selectedDatatype,a)||(o.selectedDatatype=a),a}),N("selectionChange",function(){return o.changeValidator()}),y(13,bae,2,2,"mat-option",6),l()(),D(14,"br"),y(15,vae,6,0,"div",7),d(16,"mat-form-field",4)(17,"mat-label"),h(18,"IsNullable"),l(),d(19,"mat-select",8),kn("ngModelChange",function(a){return Ln(o.selectedNull,a)||(o.selectedNull=a),a}),y(20,yae,2,2,"mat-option",6),l()()(),d(21,"div",9)(22,"button",10),h(23,"CANCEL"),l(),d(24,"button",11),N("click",function(){return o.addNewColumn()}),h(25," ADD "),l()()()),2&i&&(m(),f("formGroup",o.addNewColumnForm),m(11),Sn("ngModel",o.selectedDatatype),m(),f("ngForOf",o.datatypes),m(2),f("ngIf",o.dataTypesWithColLen.indexOf(o.selectedDatatype)>-1),m(4),Sn("ngModel",o.selectedNull),m(),f("ngForOf",o.isColumnNullable),m(4),f("disabled",!o.addNewColumnForm.valid))},dependencies:[dn,Tt,Yt,Ri,Pi,on,uo,In,En,Oi,xi,Ui,Bo,Ai,Yi,mo,Jo,er]})}return t})();function xae(t,n){1&t&&(d(0,"span"),h(1," To view and modify an object details, click on the object name on the Spanner draft panel. "),l())}function Cae(t,n){if(1&t&&(d(0,"span"),h(1),l()),2&t){const e=w(2);m(),Me(" To view an object details, click on the object name on the ",e.srcDbName," panel. ")}}const Dg=t=>[t];function Dae(t,n){if(1&t){const e=ge();d(0,"div",2)(1,"div",3)(2,"h3",4),h(3,"OBJECT VIEWER"),l(),d(4,"button",5),N("click",function(){return ae(e),se(w().middleColumnToggle())}),d(5,"mat-icon",6),h(6,"first_page"),l(),d(7,"mat-icon",6),h(8,"last_page"),l()()(),D(9,"mat-divider"),d(10,"div",7)(11,"div",8),Xt(),d(12,"svg",9),D(13,"path",10),l()(),mr(),d(14,"div",11),y(15,xae,2,0,"span",12)(16,Cae,2,1,"span",12),l()()()}if(2&t){const e=w();m(5),f("ngClass",ui(4,Dg,e.isMiddleColumnCollapse?"display":"hidden")),m(2),f("ngClass",ui(6,Dg,e.isMiddleColumnCollapse?"hidden":"display")),m(8),f("ngIf","spanner"==e.currentDatabase),m(),f("ngIf","source"==e.currentDatabase)}}function Sae(t,n){1&t&&(d(0,"mat-icon",23),h(1," table_chart"),l())}function kae(t,n){1&t&&(Xt(),d(0,"svg",24),D(1,"path",25),l())}function Tae(t,n){if(1&t&&(d(0,"span"),h(1),Dv(2,"uppercase"),l()),2&t){const e=w(2);m(),Me("( TABLE: ",Sv(2,1,e.currentObject.parent)," ) ")}}function Mae(t,n){if(1&t){const e=ge();d(0,"button",26),N("click",function(){return ae(e),se(w(2).dropIndex())}),d(1,"mat-icon"),h(2,"delete"),l(),d(3,"span"),h(4,"SKIP INDEX"),l()()}}function Iae(t,n){if(1&t){const e=ge();d(0,"button",26),N("click",function(){return ae(e),se(w(2).restoreIndex())}),d(1,"mat-icon"),h(2,"undo"),l(),d(3,"span"),h(4," RESTORE INDEX"),l()()}}function Eae(t,n){if(1&t){const e=ge();d(0,"button",26),N("click",function(){return ae(e),se(w(2).dropTable())}),d(1,"mat-icon"),h(2,"delete"),l(),d(3,"span"),h(4,"SKIP TABLE"),l()()}}function Oae(t,n){if(1&t){const e=ge();d(0,"button",26),N("click",function(){return ae(e),se(w(2).restoreSpannerTable())}),d(1,"mat-icon"),h(2,"undo"),l(),d(3,"span"),h(4," RESTORE TABLE"),l()()}}function Aae(t,n){if(1&t&&(d(0,"div",27),h(1," Interleaved: "),d(2,"div",28),h(3),l()()),2&t){const e=w(2);m(3),Me(" ",e.interleaveParentName," ")}}function Pae(t,n){1&t&&(d(0,"span"),h(1,"COLUMNS "),l())}function Rae(t,n){if(1&t&&(d(0,"th",74),h(1),l()),2&t){const e=w(3);m(),Fe(e.srcDbName)}}function Nae(t,n){1&t&&(d(0,"th",75),h(1,"S No."),l())}function Fae(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcOrder").value," ")}}function Lae(t,n){1&t&&(d(0,"th",75),h(1,"Name"),l())}function Bae(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcColName").value," ")}}function Vae(t,n){1&t&&(d(0,"th",75),h(1,"Type"),l())}function jae(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcDataType").value," ")}}function zae(t,n){1&t&&(d(0,"th",75),h(1,"Max Length"),l())}function Hae(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcColMaxLength").value," ")}}function Uae(t,n){1&t&&(d(0,"th",75),h(1,"Pk"),l())}function $ae(t,n){1&t&&(d(0,"div"),Xt(),d(1,"svg",77),D(2,"path",78),l()())}function Gae(t,n){if(1&t&&(d(0,"td",76),y(1,$ae,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("srcIsPk").value)}}function Wae(t,n){1&t&&(d(0,"th",75),h(1,"Nullable"),l())}function qae(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcIsNotNull").value?"Not Null":""," ")}}function Kae(t,n){1&t&&D(0,"tr",79)}function Zae(t,n){1&t&&D(0,"tr",79)}const Yae=t=>({"scr-column-data-edit-mode":t});function Qae(t,n){if(1&t&&D(0,"tr",80),2&t){const e=w(3);f("ngClass",ui(1,Yae,e.isEditMode))}}function Xae(t,n){if(1&t){const e=ge();d(0,"button",84),N("click",function(){return ae(e),se(w(5).toggleEdit())}),d(1,"mat-icon",85),h(2,"edit"),l(),h(3," EDIT "),l()}}function Jae(t,n){if(1&t&&(d(0,"div"),y(1,Xae,4,0,"button",83),l()),2&t){const e=w(4);m(),f("ngIf",e.currentObject.isSpannerNode)}}function ese(t,n){if(1&t){const e=ge();d(0,"button",84),N("click",function(){return ae(e),se(w(5).addNewColumn())}),d(1,"mat-icon",85),h(2,"edit"),l(),h(3," ADD COLUMN "),l()}}function tse(t,n){if(1&t&&(d(0,"div"),y(1,ese,4,0,"button",83),l()),2&t){const e=w(4);m(),f("ngIf",e.currentObject.isSpannerNode)}}function ise(t,n){if(1&t&&(d(0,"th",81)(1,"div",82)(2,"span"),h(3,"Spanner"),l(),y(4,Jae,2,1,"div",12)(5,tse,2,1,"div",12),l()()),2&t){const e=w(3);m(4),f("ngIf",!e.isEditMode&&!e.currentObject.isDeleted),m(),f("ngIf",!e.isEditMode&&!e.currentObject.isDeleted)}}function nse(t,n){1&t&&(d(0,"th",75),h(1,"Name"),l())}function ose(t,n){if(1&t&&(d(0,"div"),D(1,"input",86),l()),2&t){const e=w().$implicit;let i;m(),f("formControl",e.get("spColName"))("matTooltipDisabled",!(null!=(i=e.get("spColName"))&&i.hasError("pattern")))}}function rse(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Fe(e.get("spColName").value)}}function ase(t,n){if(1&t&&(d(0,"td",76),y(1,ose,2,2,"div",12)(2,rse,2,1,"p",12),l()),2&t){const e=n.$implicit,i=w(3);m(),f("ngIf",i.isEditMode&&""!==e.get("spDataType").value&&""!==e.get("srcId").value),m(),f("ngIf",!i.isEditMode||""===e.get("srcId").value)}}function sse(t,n){1&t&&(d(0,"th",75),h(1,"Type"),l())}function cse(t,n){if(1&t&&(d(0,"span",90),h(1,"warning"),l()),2&t){const e=w().index;f("matTooltip",w(3).spTableSuggestion[e])}}function lse(t,n){if(1&t&&(d(0,"mat-option",97),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayT),m(),Me(" ",e.DisplayT," ")}}function dse(t,n){1&t&&(d(0,"mat-option",98),h(1," STRING "),l())}function use(t,n){1&t&&(d(0,"mat-option",99),h(1," VARCHAR "),l())}function hse(t,n){if(1&t){const e=ge();d(0,"mat-form-field",91)(1,"mat-select",92,93),N("selectionChange",function(){ae(e);const o=Rt(2),r=w().index;return se(w(3).spTableEditSuggestionHandler(r,o.value))}),y(3,lse,2,2,"mat-option",94)(4,dse,2,0,"mat-option",95)(5,use,2,0,"mat-option",96),l()()}if(2&t){const e=w().$implicit,i=w(3);m(),f("formControl",e.get("spDataType")),m(2),f("ngForOf",i.typeMap[e.get("srcDataType").value]),m(),f("ngIf",""==e.get("srcDataType").value&&!i.isPostgreSQLDialect),m(),f("ngIf",""==e.get("srcDataType").value&&i.isPostgreSQLDialect)}}function mse(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Fe(e.get("spDataType").value)}}function pse(t,n){if(1&t&&(d(0,"td",76)(1,"div",87),y(2,cse,2,1,"span",88)(3,hse,6,4,"mat-form-field",89)(4,mse,2,1,"p",12),l()()),2&t){const e=n.$implicit,i=n.index,o=w(3);m(2),f("ngIf",o.isSpTableSuggesstionDisplay[i]&&""!==e.get("spDataType").value),m(),f("ngIf",o.isEditMode&&""!==e.get("spDataType").value&&""!==e.get("srcId").value),m(),f("ngIf",!o.isEditMode||""===e.get("srcId").value)}}function fse(t,n){1&t&&(d(0,"th",75),h(1,"Max Length"),l())}function gse(t,n){if(1&t&&(d(0,"div"),D(1,"input",100),l()),2&t){const e=w(2).$implicit;m(),f("formControl",e.get("spColMaxLength"))}}function _se(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w(2).$implicit;m(),Me(" ",e.get("spColMaxLength").value," ")}}function bse(t,n){if(1&t&&(d(0,"div"),y(1,gse,2,1,"div",12)(2,_se,2,1,"p",12),l()),2&t){const e=w().$implicit,i=w(3);m(),f("ngIf",i.isEditMode&&""!=e.get("srcDataType").value&&e.get("spId").value!==i.shardIdCol),m(),f("ngIf",!i.isEditMode||e.get("spId").value===i.shardIdCol)}}function vse(t,n){if(1&t&&(d(0,"td",76),y(1,bse,3,2,"div",12),l()),2&t){const e=n.$implicit,i=w(3);m(),f("ngIf",i.dataTypesWithColLen.indexOf(e.get("spDataType").value)>-1)}}function yse(t,n){1&t&&(d(0,"th",75),h(1,"Pk"),l())}function wse(t,n){1&t&&(d(0,"div"),Xt(),d(1,"svg",77),D(2,"path",78),l()())}function xse(t,n){if(1&t&&(d(0,"td",76),y(1,wse,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spIsPk").value)}}function Cse(t,n){1&t&&(d(0,"span"),h(1,"Not Null"),l())}function Dse(t,n){1&t&&(d(0,"span"),h(1,"Nullable"),l())}function Sse(t,n){if(1&t&&(d(0,"th",75),y(1,Cse,2,0,"span",12)(2,Dse,2,0,"span",12),l()),2&t){const e=w(3);m(),f("ngIf",e.isEditMode),m(),f("ngIf",!e.isEditMode)}}function kse(t,n){if(1&t&&(d(0,"div"),D(1,"mat-checkbox",102),l()),2&t){const e=w().$implicit;m(),f("formControl",e.get("spIsNotNull"))}}function Tse(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Me(" ",e.get("spIsNotNull").value?"Not Null":""," ")}}function Mse(t,n){if(1&t&&(d(0,"td",76)(1,"div",101),y(2,kse,2,1,"div",12)(3,Tse,2,1,"p",12),l()()),2&t){const e=n.$implicit,i=w(3);m(2),f("ngIf",i.isEditMode&&""!==e.get("spDataType").value&&e.get("spId").value!==i.shardIdCol),m(),f("ngIf",!i.isEditMode||e.get("spId").value===i.shardIdCol)}}function Ise(t,n){1&t&&D(0,"th",75)}function Ese(t,n){if(1&t){const e=ge();d(0,"div",105)(1,"mat-icon",106),h(2,"more_vert"),l(),d(3,"mat-menu",107,108)(5,"button",109),N("click",function(){ae(e);const o=w().$implicit;return se(w(3).dropColumn(o))}),d(6,"span"),h(7,"Drop Column"),l()()()()}if(2&t){const e=Rt(4);m(),f("matMenuTriggerFor",e)}}const Sg=t=>({"drop-button-left-border":t});function Ose(t,n){if(1&t&&(d(0,"td",103),y(1,Ese,8,1,"div",104),l()),2&t){const e=n.$implicit,i=w(3);f("ngClass",ui(2,Sg,i.isEditMode)),m(),f("ngIf",i.isEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spDataType").value&&e.get("spId").value!==i.shardIdCol)}}function Ase(t,n){1&t&&D(0,"tr",79)}function Pse(t,n){1&t&&D(0,"tr",79)}function Rse(t,n){1&t&&D(0,"tr",110)}function Nse(t,n){if(1&t&&(d(0,"mat-option",97),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Fe(e)}}function Fse(t,n){if(1&t){const e=ge();d(0,"div",111)(1,"mat-form-field",112)(2,"mat-label"),h(3,"Column Name"),l(),d(4,"mat-select",113),N("selectionChange",function(o){return ae(e),se(w(3).setColumn(o.value))}),y(5,Nse,2,2,"mat-option",94),l()(),d(6,"button",114),N("click",function(){return ae(e),se(w(3).restoreColumn())}),d(7,"mat-icon"),h(8,"add"),l(),h(9," RESTORE COLUMN "),l()()}if(2&t){const e=w(3);f("formGroup",e.addColumnForm),m(5),f("ngForOf",e.droppedSourceColumns)}}function Lse(t,n){1&t&&(d(0,"span"),h(1,"PRIMARY KEY "),l())}function Bse(t,n){if(1&t&&(d(0,"th",115),h(1),l()),2&t){const e=w(3);m(),Fe(e.srcDbName)}}function Vse(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",84),N("click",function(){return ae(e),se(w(4).togglePkEdit())}),d(2,"mat-icon",85),h(3,"edit"),l(),h(4," EDIT "),l()()}}function jse(t,n){if(1&t&&(d(0,"th",74)(1,"div",82)(2,"span"),h(3,"Spanner"),l(),y(4,Vse,5,0,"div",12),l()()),2&t){const e=w(3);m(4),f("ngIf",!e.isPkEditMode&&e.pkDataSource.length>0&&e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function zse(t,n){1&t&&(d(0,"th",75),h(1,"Order"),l())}function Hse(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcOrder").value," ")}}function Use(t,n){1&t&&(d(0,"th",75),h(1,"Name"),l())}function $se(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcColName").value," ")}}function Gse(t,n){1&t&&(d(0,"th",75),h(1,"Type"),l())}function Wse(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcDataType").value," ")}}function qse(t,n){1&t&&(d(0,"th",75),h(1,"PK"),l())}function Kse(t,n){1&t&&(d(0,"div"),Xt(),d(1,"svg",77),D(2,"path",78),l()())}function Zse(t,n){if(1&t&&(d(0,"td",76),y(1,Kse,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("srcIsPk").value)}}function Yse(t,n){1&t&&(d(0,"th",75),h(1,"Nullable"),l())}function Qse(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcIsNotNull").value?"Not Null":""," ")}}function Xse(t,n){1&t&&(d(0,"th",75),h(1,"Order"),l())}function Jse(t,n){if(1&t&&(d(0,"div"),D(1,"input",116),l()),2&t){const e=w().$implicit;let i;m(),f("formControl",e.get("spOrder"))("matTooltipDisabled",!(null!=(i=e.get("spOrder"))&&i.hasError("pattern")))}}function ece(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Fe(e.get("spOrder").value)}}function tce(t,n){if(1&t&&(d(0,"td",76),y(1,Jse,2,2,"div",12)(2,ece,2,1,"p",12),l()),2&t){const e=n.$implicit,i=w(3);m(),f("ngIf",i.isPkEditMode&&""!==e.get("spColName").value),m(),f("ngIf",!i.isPkEditMode)}}function ice(t,n){1&t&&(d(0,"th",75),h(1,"Name"),l())}function nce(t,n){if(1&t&&(d(0,"td",76)(1,"p"),h(2),l()()),2&t){const e=n.$implicit;m(2),Fe(e.get("spColName").value)}}function oce(t,n){1&t&&(d(0,"th",75),h(1,"Type"),l())}function rce(t,n){if(1&t&&(d(0,"span",90),h(1,"warning"),l()),2&t){const e=w().index;f("matTooltip",w(3).spTableSuggestion[e])}}function ace(t,n){if(1&t&&(d(0,"td",76)(1,"div",87),y(2,rce,2,1,"span",88),d(3,"p"),h(4),l()()()),2&t){const e=n.$implicit,i=n.index,o=w(3);m(2),f("ngIf",o.isSpTableSuggesstionDisplay[i]&&""!==e.get("spColName").value),m(2),Fe(e.get("spDataType").value)}}function sce(t,n){1&t&&(d(0,"th",75),h(1,"Pk"),l())}function cce(t,n){1&t&&(d(0,"div"),Xt(),d(1,"svg",77),D(2,"path",78),l()())}function lce(t,n){if(1&t&&(d(0,"td",76),y(1,cce,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spIsPk").value)}}function dce(t,n){1&t&&(d(0,"th",75),h(1,"Nullable"),l())}function uce(t,n){if(1&t&&(d(0,"td",76)(1,"div",101)(2,"p"),h(3),l()()()),2&t){const e=n.$implicit;m(3),Me(" ",e.get("spIsNotNull").value?"Not Null":""," ")}}function hce(t,n){1&t&&D(0,"th",75)}function mce(t,n){if(1&t){const e=ge();d(0,"div",105)(1,"mat-icon",106),h(2,"more_vert"),l(),d(3,"mat-menu",107,108)(5,"button",117),N("click",function(){ae(e);const o=w().$implicit;return se(w(3).dropPk(o))}),d(6,"span"),h(7,"Remove primary key"),l()()()()}if(2&t){const e=Rt(4),i=w(4);m(),f("matMenuTriggerFor",e),m(4),f("disabled",!i.isPkEditMode)}}function pce(t,n){if(1&t&&(d(0,"td",103),y(1,mce,8,2,"div",104),l()),2&t){const e=n.$implicit,i=w(3);f("ngClass",ui(2,Sg,i.isPkEditMode)),m(),f("ngIf",i.isPkEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spColName").value)}}function fce(t,n){1&t&&D(0,"tr",79)}function gce(t,n){1&t&&D(0,"tr",79)}function _ce(t,n){1&t&&D(0,"tr",110)}function bce(t,n){if(1&t&&(d(0,"mat-option",97),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Fe(e)}}function vce(t,n){if(1&t){const e=ge();d(0,"div",118)(1,"mat-form-field",112)(2,"mat-label"),h(3,"Column Name"),l(),d(4,"mat-select",113),N("selectionChange",function(o){return ae(e),se(w(3).setPkColumn(o.value))}),y(5,bce,2,2,"mat-option",94),l()(),d(6,"button",114),N("click",function(){return ae(e),se(w(3).addPkColumn())}),d(7,"mat-icon"),h(8,"add"),l(),h(9," ADD COLUMN "),l()()}if(2&t){const e=w(3);f("formGroup",e.addPkColumnForm),m(5),f("ngForOf",e.pkColumnNames)}}function yce(t,n){1&t&&(d(0,"span"),h(1,"FOREIGN KEY"),l())}function wce(t,n){if(1&t&&(d(0,"th",119),h(1),l()),2&t){const e=w(3);m(),Fe(e.srcDbName)}}function xce(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",84),N("click",function(){return ae(e),se(w(4).toggleFkEdit())}),d(2,"mat-icon",85),h(3,"edit"),l(),h(4," EDIT "),l()()}}function Cce(t,n){if(1&t&&(d(0,"th",115)(1,"div",82)(2,"span"),h(3,"Spanner"),l(),y(4,xce,5,0,"div",12),l()()),2&t){const e=w(3);m(4),f("ngIf",!e.isFkEditMode&&e.fkDataSource.length>0&&e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function Dce(t,n){1&t&&(d(0,"th",75),h(1,"Name"),l())}function Sce(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcName").value," ")}}function kce(t,n){1&t&&(d(0,"th",75),h(1,"Columns"),l())}function Tce(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcColumns").value," ")}}function Mce(t,n){1&t&&(d(0,"th",75),h(1,"Refer Table"),l())}function Ice(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcReferTable").value," ")}}function Ece(t,n){1&t&&(d(0,"th",75),h(1,"Refer Columns"),l())}function Oce(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcReferColumns").value," ")}}function Ace(t,n){1&t&&(d(0,"th",75),h(1,"Name"),l())}function Pce(t,n){if(1&t&&(d(0,"div"),D(1,"input",86),l()),2&t){const e=w().$implicit;let i;m(),f("formControl",e.get("spName"))("matTooltipDisabled",!(null!=(i=e.get("spName"))&&i.hasError("pattern")))}}function Rce(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Fe(e.get("spName").value)}}function Nce(t,n){if(1&t&&(d(0,"td",76),y(1,Pce,2,2,"div",12)(2,Rce,2,1,"p",12),l()),2&t){const e=n.$implicit,i=w(3);m(),f("ngIf",i.isFkEditMode&&""!==e.get("spReferTable").value),m(),f("ngIf",!i.isFkEditMode)}}function Fce(t,n){1&t&&(d(0,"th",75),h(1,"Columns"),l())}function Lce(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("spColumns").value," ")}}function Bce(t,n){1&t&&(d(0,"th",75),h(1,"Refer Table"),l())}function Vce(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("spReferTable").value," ")}}function jce(t,n){1&t&&(d(0,"th",75),h(1,"Refer Columns"),l())}function zce(t,n){if(1&t&&(d(0,"td",76)(1,"div",120),h(2),l()()),2&t){const e=n.$implicit;m(2),Me(" ",e.get("spReferColumns").value," ")}}function Hce(t,n){1&t&&D(0,"th",75)}function Uce(t,n){if(1&t){const e=ge();d(0,"button",117),N("click",function(){return ae(e),se(w(5).setInterleave())}),d(1,"span"),h(2,"Convert to interleave"),l()()}2&t&&f("disabled",""===w(2).$implicit.get("spName").value)}function $ce(t,n){if(1&t){const e=ge();d(0,"div",105)(1,"mat-icon",106),h(2,"more_vert"),l(),d(3,"mat-menu",107,108)(5,"button",117),N("click",function(){ae(e);const o=w().$implicit;return se(w(3).dropFk(o))}),d(6,"span"),h(7,"Drop Foreign Key"),l()(),y(8,Uce,3,1,"button",121),l()()}if(2&t){const e=Rt(4),i=w().$implicit,o=w(3);m(),f("matMenuTriggerFor",e),m(4),f("disabled",""===i.get("spName").value),m(3),f("ngIf",o.interleaveStatus.tableInterleaveStatus&&o.interleaveStatus.tableInterleaveStatus.Possible)}}function Gce(t,n){if(1&t&&(d(0,"td",103),y(1,$ce,9,3,"div",104),l()),2&t){const e=n.$implicit,i=w(3);f("ngClass",ui(2,Sg,i.isFkEditMode)),m(),f("ngIf",i.isFkEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spReferTable").value)}}function Wce(t,n){1&t&&D(0,"tr",79)}function qce(t,n){1&t&&D(0,"tr",79)}function Kce(t,n){1&t&&D(0,"tr",110)}function Zce(t,n){if(1&t){const e=ge();d(0,"button",125),N("click",function(){return ae(e),se(w(4).setInterleave())}),h(1," Convert to Interleave "),l()}}function Yce(t,n){if(1&t){const e=ge();d(0,"button",125),N("click",function(){return ae(e),se(w(4).removeInterleave())}),h(1," Convert Back to Foreign Key "),l()}}function Qce(t,n){if(1&t&&(d(0,"div"),h(1," This table is interleaved with "),d(2,"span",126),h(3),l(),h(4,". Click on the above button to convert back to foreign key. "),l()),2&t){const e=w(4);m(3),Fe(e.interleaveParentName)}}function Xce(t,n){if(1&t&&(d(0,"mat-tab",122)(1,"div",123),y(2,Zce,2,0,"button",124)(3,Yce,2,0,"button",124),D(4,"br"),y(5,Qce,5,1,"div",12),l()()),2&t){const e=w(3);m(2),f("ngIf",e.interleaveStatus.tableInterleaveStatus&&e.interleaveStatus.tableInterleaveStatus.Possible&&null===e.interleaveParentName),m(),f("ngIf",e.interleaveStatus.tableInterleaveStatus&&!e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName),m(2),f("ngIf",e.interleaveStatus.tableInterleaveStatus&&!e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName)}}function Jce(t,n){1&t&&(d(0,"span"),h(1,"SQL"),l())}function ele(t,n){if(1&t&&(d(0,"mat-tab"),y(1,Jce,2,0,"ng-template",30),d(2,"div",127)(3,"pre")(4,"code"),h(5),l()()()()),2&t){const e=w(3);m(5),Fe(e.ddlStmts[e.currentObject.id])}}const tle=t=>({"height-on-edit":t}),ile=()=>["srcDatabase"],nle=()=>["spDatabase"],xx=()=>["srcDatabase","spDatabase"];function ole(t,n){if(1&t){const e=ge();d(0,"mat-tab-group",29),N("selectedTabChange",function(o){return ae(e),se(w(2).tabChanged(o))}),d(1,"mat-tab"),y(2,Pae,2,0,"ng-template",30),d(3,"div",31)(4,"div",32)(5,"table",33),Ce(6,34),y(7,Rae,2,1,"th",35),De(),Ce(8,36),y(9,Nae,2,0,"th",37)(10,Fae,2,1,"td",38),De(),Ce(11,39),y(12,Lae,2,0,"th",37)(13,Bae,2,1,"td",38),De(),Ce(14,40),y(15,Vae,2,0,"th",41)(16,jae,2,1,"td",38),De(),Ce(17,42),y(18,zae,2,0,"th",41)(19,Hae,2,1,"td",38),De(),Ce(20,43),y(21,Uae,2,0,"th",37)(22,Gae,2,1,"td",38),De(),Ce(23,44),y(24,Wae,2,0,"th",41)(25,qae,2,1,"td",38),De(),y(26,Kae,1,0,"tr",45)(27,Zae,1,0,"tr",45)(28,Qae,1,3,"tr",46),l(),d(29,"table",33),Ce(30,47),y(31,ise,6,2,"th",48),De(),Ce(32,49),y(33,nse,2,0,"th",41)(34,ase,3,2,"td",38),De(),Ce(35,50),y(36,sse,2,0,"th",41)(37,pse,5,3,"td",38),De(),Ce(38,51),y(39,fse,2,0,"th",41)(40,vse,2,1,"td",38),De(),Ce(41,52),y(42,yse,2,0,"th",37)(43,xse,2,1,"td",38),De(),Ce(44,53),y(45,Sse,3,2,"th",41)(46,Mse,4,2,"td",38),De(),Ce(47,54),y(48,Ise,1,0,"th",41)(49,Ose,2,4,"td",55),De(),y(50,Ase,1,0,"tr",45)(51,Pse,1,0,"tr",45)(52,Rse,1,0,"tr",56),l()(),y(53,Fse,10,2,"div",57),l()(),d(54,"mat-tab"),y(55,Lse,2,0,"ng-template",30),d(56,"div",58)(57,"table",33),Ce(58,34),y(59,Bse,2,1,"th",59),De(),Ce(60,47),y(61,jse,5,1,"th",35),De(),Ce(62,36),y(63,zse,2,0,"th",37)(64,Hse,2,1,"td",38),De(),Ce(65,39),y(66,Use,2,0,"th",37)(67,$se,2,1,"td",38),De(),Ce(68,40),y(69,Gse,2,0,"th",41)(70,Wse,2,1,"td",38),De(),Ce(71,43),y(72,qse,2,0,"th",37)(73,Zse,2,1,"td",38),De(),Ce(74,44),y(75,Yse,2,0,"th",41)(76,Qse,2,1,"td",38),De(),Ce(77,60),y(78,Xse,2,0,"th",37)(79,tce,3,2,"td",38),De(),Ce(80,49),y(81,ice,2,0,"th",41)(82,nce,3,1,"td",38),De(),Ce(83,50),y(84,oce,2,0,"th",41)(85,ace,5,2,"td",38),De(),Ce(86,52),y(87,sce,2,0,"th",37)(88,lce,2,1,"td",38),De(),Ce(89,53),y(90,dce,2,0,"th",41)(91,uce,4,1,"td",38),De(),Ce(92,54),y(93,hce,1,0,"th",41)(94,pce,2,4,"td",55),De(),y(95,fce,1,0,"tr",45)(96,gce,1,0,"tr",45)(97,_ce,1,0,"tr",56),l(),y(98,vce,10,2,"div",61),l()(),d(99,"mat-tab"),y(100,yce,2,0,"ng-template",30),d(101,"div",62)(102,"table",33),Ce(103,34),y(104,wce,2,1,"th",63),De(),Ce(105,47),y(106,Cce,5,1,"th",59),De(),Ce(107,64),y(108,Dce,2,0,"th",37)(109,Sce,2,1,"td",38),De(),Ce(110,65),y(111,kce,2,0,"th",37)(112,Tce,2,1,"td",38),De(),Ce(113,66),y(114,Mce,2,0,"th",37)(115,Ice,2,1,"td",38),De(),Ce(116,67),y(117,Ece,2,0,"th",37)(118,Oce,2,1,"td",38),De(),Ce(119,68),y(120,Ace,2,0,"th",41)(121,Nce,3,2,"td",38),De(),Ce(122,69),y(123,Fce,2,0,"th",37)(124,Lce,2,1,"td",38),De(),Ce(125,70),y(126,Bce,2,0,"th",37)(127,Vce,2,1,"td",38),De(),Ce(128,71),y(129,jce,2,0,"th",37)(130,zce,3,1,"td",38),De(),Ce(131,72),y(132,Hce,1,0,"th",41)(133,Gce,2,4,"td",55),De(),y(134,Wce,1,0,"tr",45)(135,qce,1,0,"tr",45)(136,Kce,1,0,"tr",56),l()()(),y(137,Xce,6,3,"mat-tab",73)(138,ele,6,1,"mat-tab",12),l()}if(2&t){const e=w(2);f("ngClass",ui(21,tle,e.isEditMode||e.isPkEditMode||e.isFkEditMode)),m(5),f("dataSource",e.srcDataSource),m(21),f("matHeaderRowDef",Wo(23,ile)),m(),f("matHeaderRowDef",e.srcDisplayedColumns),m(),f("matRowDefColumns",e.srcDisplayedColumns),m(),f("dataSource",e.spDataSource),m(21),f("matHeaderRowDef",Wo(24,nle)),m(),f("matHeaderRowDef",e.spDisplayedColumns),m(),f("matRowDefColumns",e.spDisplayedColumns),m(),f("ngIf",e.isEditMode&&0!=e.droppedSourceColumns.length),m(4),f("dataSource",e.pkDataSource),m(38),f("matHeaderRowDef",Wo(25,xx)),m(),f("matHeaderRowDef",e.displayedPkColumns),m(),f("matRowDefColumns",e.displayedPkColumns),m(),f("ngIf",e.isPkEditMode),m(4),f("dataSource",e.fkDataSource),m(32),f("matHeaderRowDef",Wo(26,xx)),m(),f("matHeaderRowDef",e.displayedFkColumns),m(),f("matRowDefColumns",e.displayedFkColumns),m(),f("ngIf",(e.interleaveStatus.tableInterleaveStatus&&e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName)&&e.currentObject.isSpannerNode),m(),f("ngIf",e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function rle(t,n){if(1&t&&(d(0,"th",138),h(1),l()),2&t){const e=w(3);m(),Fe(e.srcDbName)}}function ale(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",84),N("click",function(){return ae(e),se(w(4).toggleIndexEdit())}),d(2,"mat-icon",85),h(3,"edit"),l(),h(4," EDIT "),l()()}}function sle(t,n){if(1&t&&(d(0,"th",119)(1,"div",82)(2,"span"),h(3,"Spanner"),l(),y(4,ale,5,0,"div",12),l()()),2&t){const e=w(3);m(4),f("ngIf",!e.isIndexEditMode&&!e.currentObject.isDeleted&&e.currentObject.isSpannerNode)}}function cle(t,n){1&t&&(d(0,"th",75),h(1,"Column"),l())}function lle(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcColName").value," ")}}function dle(t,n){1&t&&(d(0,"th",75),h(1,"Sort By"),l())}function ule(t,n){1&t&&(d(0,"p"),h(1,"Desc"),l())}function hle(t,n){1&t&&(d(0,"p"),h(1,"Asc"),l())}function mle(t,n){if(1&t&&(d(0,"td",76),y(1,ule,2,0,"p",12)(2,hle,2,0,"p",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("srcDesc").value),m(),f("ngIf",!1===e.get("srcDesc").value)}}function ple(t,n){1&t&&(d(0,"th",75),h(1,"Column Order"),l())}function fle(t,n){if(1&t&&(d(0,"td",76),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.get("srcOrder").value," ")}}function gle(t,n){1&t&&(d(0,"th",75),h(1,"Column"),l())}function _le(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Fe(e.get("spColName").value)}}function ble(t,n){if(1&t&&(d(0,"td",76),y(1,_le,2,1,"p",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spColName").value)}}function vle(t,n){1&t&&(d(0,"th",75),h(1,"Sort By"),l())}function yle(t,n){1&t&&(d(0,"p"),h(1,"Desc"),l())}function wle(t,n){1&t&&(d(0,"p"),h(1,"Asc"),l())}function xle(t,n){if(1&t&&(d(0,"td",76),y(1,yle,2,0,"p",12)(2,wle,2,0,"p",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spDesc").value),m(),f("ngIf",!1===e.get("spDesc").value)}}function Cle(t,n){1&t&&(d(0,"th",75),h(1,"Column Order"),l())}function Dle(t,n){if(1&t&&(d(0,"div"),D(1,"input",139),l()),2&t){const e=w().$implicit;m(),f("formControl",e.get("spOrder"))}}function Sle(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Fe(e.get("spOrder").value)}}function kle(t,n){if(1&t&&(d(0,"td",76),y(1,Dle,2,1,"div",12)(2,Sle,2,1,"p",12),l()),2&t){const e=n.$implicit,i=w(3);m(),f("ngIf",i.isIndexEditMode&&e.get("spColName").value),m(),f("ngIf",!i.isIndexEditMode)}}function Tle(t,n){1&t&&D(0,"th",75)}function Mle(t,n){if(1&t){const e=ge();d(0,"div")(1,"mat-icon",106),h(2,"more_vert"),l(),d(3,"mat-menu",107,108)(5,"button",109),N("click",function(){ae(e);const o=w().index;return se(w(3).dropIndexKey(o))}),d(6,"span"),h(7,"Drop Index Key"),l()()()()}if(2&t){const e=Rt(4);m(),f("matMenuTriggerFor",e)}}function Ile(t,n){if(1&t&&(d(0,"td",103),y(1,Mle,8,1,"div",12),l()),2&t){const e=n.$implicit,i=w(3);f("ngClass",ui(2,Sg,i.isIndexEditMode)),m(),f("ngIf",i.isIndexEditMode&&e.get("spColName").value)}}function Ele(t,n){1&t&&D(0,"tr",79)}function Ole(t,n){1&t&&D(0,"tr",79)}function Ale(t,n){1&t&&D(0,"tr",140)}function Ple(t,n){if(1&t&&(d(0,"mat-option",97),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Fe(e)}}function Rle(t,n){if(1&t){const e=ge();d(0,"div",141)(1,"mat-form-field",142)(2,"mat-label"),h(3,"Column Name"),l(),d(4,"mat-select",143),y(5,Ple,2,2,"mat-option",94),l()(),d(6,"mat-form-field",144)(7,"mat-label"),h(8,"Sort By"),l(),d(9,"mat-select",145)(10,"mat-option",146),h(11,"Ascending"),l(),d(12,"mat-option",147),h(13,"Descending"),l()()(),d(14,"button",148),N("click",function(){return ae(e),se(w(3).addIndexKey())}),d(15,"mat-icon"),h(16,"add"),l(),d(17,"span"),h(18," ADD COLUMN"),l()()()}if(2&t){const e=w(3);f("formGroup",e.addIndexKeyForm),m(5),f("ngForOf",e.indexColumnNames),m(9),f("disabled",!e.addIndexKeyForm.valid)}}function Nle(t,n){if(1&t&&(d(0,"div",128)(1,"table",33),Ce(2,34),y(3,rle,2,1,"th",129),De(),Ce(4,47),y(5,sle,5,1,"th",63),De(),Ce(6,130),y(7,cle,2,0,"th",37)(8,lle,2,1,"td",38),De(),Ce(9,131),y(10,dle,2,0,"th",41)(11,mle,3,2,"td",38),De(),Ce(12,132),y(13,ple,2,0,"th",37)(14,fle,2,1,"td",38),De(),Ce(15,133),y(16,gle,2,0,"th",41)(17,ble,2,1,"td",38),De(),Ce(18,134),y(19,vle,2,0,"th",41)(20,xle,3,2,"td",38),De(),Ce(21,135),y(22,Cle,2,0,"th",37)(23,kle,3,2,"td",38),De(),Ce(24,54),y(25,Tle,1,0,"th",41)(26,Ile,2,4,"td",55),De(),y(27,Ele,1,0,"tr",45)(28,Ole,1,0,"tr",45)(29,Ale,1,0,"tr",136),l(),y(30,Rle,19,3,"div",137),l()),2&t){const e=w(2);m(),f("dataSource",e.spDataSource),m(26),f("matHeaderRowDef",Wo(5,xx)),m(),f("matHeaderRowDef",e.indexDisplayedColumns),m(),f("matRowDefColumns",e.indexDisplayedColumns),m(),f("ngIf",e.isIndexEditMode&&e.indexColumnNames.length>0)}}function Fle(t,n){1&t&&D(0,"mat-divider")}function Lle(t,n){if(1&t){const e=ge();d(0,"button",152),N("click",function(){return ae(e),se(w(3).toggleEdit())}),h(1," CANCEL "),l()}}function Ble(t,n){if(1&t){const e=ge();d(0,"div",149)(1,"button",150),N("click",function(){return ae(e),se(w(2).saveColumnTable())}),h(2," SAVE & CONVERT "),l(),y(3,Lle,2,0,"button",151),l()}if(2&t){const e=w(2);m(),f("disabled",!e.spRowArray.valid),m(2),f("ngIf",e.currentObject.isSpannerNode)}}function Vle(t,n){if(1&t){const e=ge();d(0,"button",152),N("click",function(){return ae(e),se(w(3).togglePkEdit())}),h(1," CANCEL "),l()}}function jle(t,n){if(1&t){const e=ge();d(0,"div",149)(1,"button",150),N("click",function(){return ae(e),se(w(2).savePk())}),h(2," SAVE & CONVERT "),l(),y(3,Vle,2,0,"button",151),l()}if(2&t){const e=w(2);m(),f("disabled",!e.pkArray.valid),m(2),f("ngIf",e.currentObject.isSpannerNode)}}function zle(t,n){if(1&t){const e=ge();d(0,"button",152),N("click",function(){return ae(e),se(w(3).toggleFkEdit())}),h(1," CANCEL "),l()}}function Hle(t,n){if(1&t){const e=ge();d(0,"div",149)(1,"button",125),N("click",function(){return ae(e),se(w(2).saveFk())}),h(2,"SAVE & CONVERT"),l(),y(3,zle,2,0,"button",151),l()}if(2&t){const e=w(2);m(3),f("ngIf",e.currentObject.isSpannerNode)}}function Ule(t,n){if(1&t){const e=ge();d(0,"button",152),N("click",function(){return ae(e),se(w(3).toggleIndexEdit())}),h(1," CANCEL "),l()}}function $le(t,n){if(1&t){const e=ge();d(0,"div",149)(1,"button",125),N("click",function(){return ae(e),se(w(2).saveIndex())}),h(2,"SAVE & CONVERT"),l(),y(3,Ule,2,0,"button",151),l()}if(2&t){const e=w(2);m(3),f("ngIf",e.currentObject.isSpannerNode)}}function Gle(t,n){if(1&t){const e=ge();d(0,"div",13)(1,"div",3)(2,"span")(3,"h3",4),y(4,Sae,2,0,"mat-icon",14)(5,kae,2,0,"svg",15),d(6,"span",16),h(7),l(),y(8,Tae,3,3,"span",12)(9,Mae,5,0,"button",17)(10,Iae,5,0,"button",17)(11,Eae,5,0,"button",17)(12,Oae,5,0,"button",17),l(),y(13,Aae,4,1,"div",18),l(),d(14,"button",5),N("click",function(){return ae(e),se(w().middleColumnToggle())}),d(15,"mat-icon",6),h(16,"first_page"),l(),d(17,"mat-icon",6),h(18,"last_page"),l()()(),y(19,ole,139,27,"mat-tab-group",19)(20,Nle,31,6,"div",20),d(21,"div",21),y(22,Fle,1,0,"mat-divider",12)(23,Ble,4,2,"div",22)(24,jle,4,2,"div",22)(25,Hle,4,1,"div",22)(26,$le,4,1,"div",22),l()()}if(2&t){const e=w();m(4),f("ngIf",e.currentObject.type===e.ObjectExplorerNodeType.Table),m(),f("ngIf",e.currentObject.type===e.ObjectExplorerNodeType.Index),m(2),Fe(" "+e.currentObject.name+" "),m(),f("ngIf",""!=e.currentObject.parent),m(),f("ngIf",e.currentObject.isSpannerNode&&!e.currentObject.isDeleted&&"indexName"===e.currentObject.type),m(),f("ngIf",e.currentObject.isSpannerNode&&e.currentObject.isDeleted&&e.currentObject.type==e.ObjectExplorerNodeType.Index),m(),f("ngIf",e.currentObject.isSpannerNode&&"indexName"!==e.currentObject.type&&!e.currentObject.isDeleted),m(),f("ngIf",e.currentObject.isSpannerNode&&e.currentObject.isDeleted&&e.currentObject.type==e.ObjectExplorerNodeType.Table),m(),f("ngIf",e.interleaveParentName&&e.currentObject.isSpannerNode),m(2),f("ngClass",ui(18,Dg,e.isMiddleColumnCollapse?"display":"hidden")),m(2),f("ngClass",ui(20,Dg,e.isMiddleColumnCollapse?"hidden":"display")),m(2),f("ngIf","tableName"===e.currentObject.type),m(),f("ngIf","indexName"===e.currentObject.type),m(2),f("ngIf",e.isEditMode||e.isPkEditMode||e.isFkEditMode),m(),f("ngIf",e.isEditMode&&0===e.currentTabIndex),m(),f("ngIf",e.isPkEditMode&&1===e.currentTabIndex),m(),f("ngIf",e.isFkEditMode&&2===e.currentTabIndex),m(),f("ngIf",e.isIndexEditMode&&-1===e.currentTabIndex)}}let Wle=(()=>{class t{constructor(e,i,o,r,a,s,c){this.data=e,this.dialog=i,this.snackbar=o,this.conversion=r,this.sidenav=a,this.tableUpdatePubSub=s,this.fb=c,this.currentObject=null,this.typeMap={},this.defaultTypeMap={},this.ddlStmts={},this.fkData=[],this.tableData=[],this.currentDatabase="spanner",this.indexData=[],this.srcDbName=localStorage.getItem(rn.SourceDbName),this.updateSidebar=new Re,this.ObjectExplorerNodeType=hi,this.conv={},this.interleaveParentName=null,this.localTableData=[],this.localIndexData=[],this.isMiddleColumnCollapse=!1,this.isPostgreSQLDialect=!1,this.srcDisplayedColumns=["srcOrder","srcColName","srcDataType","srcColMaxLength","srcIsPk","srcIsNotNull"],this.spDisplayedColumns=["spColName","spDataType","spColMaxLength","spIsPk","spIsNotNull","dropButton"],this.displayedFkColumns=["srcName","srcColumns","srcReferTable","srcReferColumns","spName","spColumns","spReferTable","spReferColumns","dropButton"],this.displayedPkColumns=["srcOrder","srcColName","srcDataType","srcIsPk","srcIsNotNull","spOrder","spColName","spDataType","spIsPk","spIsNotNull","dropButton"],this.indexDisplayedColumns=["srcIndexColName","srcSortBy","srcIndexOrder","spIndexColName","spSortBy","spIndexOrder","dropButton"],this.spDataSource=[],this.srcDataSource=[],this.fkDataSource=[],this.pkDataSource=[],this.pkData=[],this.isPkEditMode=!1,this.isEditMode=!1,this.isFkEditMode=!1,this.isIndexEditMode=!1,this.isObjectSelected=!1,this.srcRowArray=this.fb.array([]),this.spRowArray=this.fb.array([]),this.pkArray=this.fb.array([]),this.fkArray=this.fb.array([]),this.isSpTableSuggesstionDisplay=[],this.spTableSuggestion=[],this.currentTabIndex=0,this.addedColumnName="",this.droppedColumns=[],this.droppedSourceColumns=[],this.pkColumnNames=[],this.indexColumnNames=[],this.shardIdCol="",this.addColumnForm=new ei({columnName:new Z("",[ce.required])}),this.addIndexKeyForm=new ei({columnName:new Z("",[ce.required]),ascOrDesc:new Z("",[ce.required])}),this.addedPkColumnName="",this.addPkColumnForm=new ei({columnName:new Z("",[ce.required])}),this.pkObj={},this.dataTypesWithColLen=Cn.DataTypes}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.isPostgreSQLDialect="postgresql"===this.conv.SpDialect}})}ngOnChanges(e){this.fkData=e.fkData?.currentValue||this.fkData,this.currentObject=e.currentObject?.currentValue||this.currentObject,this.tableData=e.tableData?.currentValue||this.tableData,this.indexData=e.indexData?.currentValue||this.indexData,this.currentDatabase=e.currentDatabase?.currentValue||this.currentDatabase,this.currentTabIndex=this.currentObject?.type===hi.Table?0:-1,this.isObjectSelected=!!this.currentObject,this.pkData=this.conversion.getPkMapping(this.tableData),this.interleaveParentName=this.getInterleaveParentFromConv(),this.isEditMode=!1,this.isFkEditMode=!1,this.isIndexEditMode=!1,this.isPkEditMode=!1,this.srcRowArray=this.fb.array([]),this.spRowArray=this.fb.array([]),this.droppedColumns=[],this.droppedSourceColumns=[],this.pkColumnNames=[],this.interleaveParentName=this.getInterleaveParentFromConv(),this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.localIndexData=JSON.parse(JSON.stringify(this.indexData)),this.currentObject?.type===hi.Table?(this.checkIsInterleave(),this.interleaveObj=this.data.tableInterleaveStatus.subscribe(i=>{this.interleaveStatus=i}),this.setSrcTableRows(),this.setSpTableRows(),this.setColumnsToAdd(),this.setAddPkColumnList(),this.setPkOrder(),this.setPkRows(),this.setFkRows(),this.updateSpTableSuggestion(),this.setShardIdColumn()):this.currentObject?.type===hi.Index&&(this.indexOrderValidation(),this.setIndexRows()),this.data.getSummary()}setSpTableRows(){this.spRowArray=this.fb.array([]),this.localTableData.forEach(e=>{if(e.spOrder){let i=new ei({srcOrder:new Z(e.srcOrder),srcColName:new Z(e.srcColName),srcDataType:new Z(e.srcDataType),srcIsPk:new Z(e.srcIsPk),srcIsNotNull:new Z(e.srcIsNotNull),srcColMaxLength:new Z(e.srcColMaxLength),spOrder:new Z(e.srcOrder),spColName:new Z(e.spColName,[ce.required,ce.pattern("^[a-zA-Z]([a-zA-Z0-9/_]*[a-zA-Z0-9])?")]),spDataType:new Z(e.spDataType),spIsPk:new Z(e.spIsPk),spIsNotNull:new Z(e.spIsNotNull),spId:new Z(e.spId),srcId:new Z(e.srcId),spColMaxLength:new Z(e.spColMaxLength,[ce.required])});this.dataTypesWithColLen.indexOf(e.spDataType.toString())>-1?(i.get("spColMaxLength")?.setValidators([ce.required,ce.pattern("([1-9][0-9]*|MAX)")]),(void 0===e.spColMaxLength||"MAX"!==e.spColMaxLength&&(("STRING"===e.spDataType||"VARCHAR"===e.spDataType)&&"number"==typeof e.spColMaxLength&&e.spColMaxLength>Cn.StringMaxLength||"BYTES"===e.spDataType&&"number"==typeof e.spColMaxLength&&e.spColMaxLength>Cn.ByteMaxLength))&&i.get("spColMaxLength")?.setValue("MAX")):i.controls.spColMaxLength.clearValidators(),i.controls.spColMaxLength.updateValueAndValidity(),this.spRowArray.push(i)}}),this.spDataSource=this.spRowArray.controls}setSrcTableRows(){this.srcRowArray=this.fb.array([]),this.localTableData.forEach(e=>{this.srcRowArray.push(new ei(""!=e.spColName?{srcOrder:new Z(e.srcOrder),srcColName:new Z(e.srcColName),srcDataType:new Z(e.srcDataType),srcIsPk:new Z(e.srcIsPk),srcIsNotNull:new Z(e.srcIsNotNull),srcColMaxLength:new Z(e.srcColMaxLength),spOrder:new Z(e.spOrder),spColName:new Z(e.spColName),spDataType:new Z(e.spDataType),spIsPk:new Z(e.spIsPk),spIsNotNull:new Z(e.spIsNotNull),spId:new Z(e.spId),srcId:new Z(e.srcId),spColMaxLength:new Z(e.spColMaxLength)}:{srcOrder:new Z(e.srcOrder),srcColName:new Z(e.srcColName),srcDataType:new Z(e.srcDataType),srcIsPk:new Z(e.srcIsPk),srcIsNotNull:new Z(e.srcIsNotNull),srcColMaxLength:new Z(e.srcColMaxLength),spOrder:new Z(e.srcOrder),spColName:new Z(e.srcColName),spDataType:new Z(this.defaultTypeMap[e.srcDataType].Name),spIsPk:new Z(e.srcIsPk),spIsNotNull:new Z(e.srcIsNotNull),spColMaxLength:new Z(e.srcColMaxLength)}))}),this.srcDataSource=this.srcRowArray.controls}setColumnsToAdd(){this.localTableData.forEach(e=>{e.spColName||this.srcRowArray.value.forEach(i=>{e.srcColName==i.srcColName&&""!=i.srcColName&&(this.droppedColumns.push(i),this.droppedSourceColumns.push(i.srcColName))})})}toggleEdit(){this.currentTabIndex=0,this.isEditMode?(this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.setSpTableRows(),this.isEditMode=!1):this.isEditMode=!0}saveColumnTable(){this.isEditMode=!1;let i,e={UpdateCols:{}};this.conversion.pgSQLToStandardTypeTypeMap.subscribe(o=>{i=o}),this.spRowArray.value.forEach((o,r)=>{for(let a=0;aCn.StringMaxLength||"BYTES"===o.spDataType&&"number"==typeof o.spColMaxLength&&o.spColMaxLength>Cn.ByteMaxLength)&&(o.spColMaxLength="MAX"),"number"==typeof o.spColMaxLength&&(o.spColMaxLength=o.spColMaxLength.toString()),"STRING"!=o.spDataType&&"BYTES"!=o.spDataType&&"VARCHAR"!=o.spDataType&&(o.spColMaxLength=""),o.srcId==this.tableData[a].srcId&&""!=this.tableData[a].srcId){e.UpdateCols[this.tableData[a].srcId]={Add:""==this.tableData[a].spId,Rename:s.spColName!==o.spColName?o.spColName:"",NotNull:o.spIsNotNull?"ADDED":"REMOVED",Removed:!1,ToType:"postgresql"===this.conv.SpDialect?void 0===c?o.spDataType:c:o.spDataType,MaxColLength:o.spColMaxLength};break}o.spId==this.tableData[a].spId&&(e.UpdateCols[this.tableData[a].spId]={Add:""==this.tableData[a].spId,Rename:s.spColName!==o.spColName?o.spColName:"",NotNull:o.spIsNotNull?"ADDED":"REMOVED",Removed:!1,ToType:"postgresql"===this.conv.SpDialect?void 0===c?o.spDataType:c:o.spDataType,MaxColLength:o.spColMaxLength})}}),this.droppedColumns.forEach(o=>{e.UpdateCols[o.spId]={Add:!1,Rename:"",NotNull:"",Removed:!0,ToType:"",MaxColLength:""}}),this.data.reviewTableUpdate(this.currentObject.id,e).subscribe({next:o=>{""==o?(this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("reviewChanges"),this.tableUpdatePubSub.setTableUpdateDetail({tableName:this.currentObject.name,tableId:this.currentObject.id,updateDetail:e}),this.isEditMode=!0):(this.dialog.open(jo,{data:{message:o,type:"error"},maxWidth:"500px"}),this.isEditMode=!0)}})}addNewColumn(){this.dialog.open(wae,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{dialect:this.conv.SpDialect,tableId:this.currentObject?.id}})}setColumn(e){this.addedColumnName=e}restoreColumn(){let e=this.tableData.map(r=>r.srcColName).indexOf(this.addedColumnName),i=this.droppedColumns.map(r=>r.srcColName).indexOf(this.addedColumnName);this.localTableData[e].spColName=this.droppedColumns[i].spColName,this.localTableData[e].spDataType=this.droppedColumns[i].spDataType,this.localTableData[e].spOrder=-1,this.localTableData[e].spIsPk=this.droppedColumns[i].spIsPk,this.localTableData[e].spIsNotNull=this.droppedColumns[i].spIsNotNull,this.localTableData[e].spColMaxLength=this.droppedColumns[i].spColMaxLength;let o=this.droppedColumns.map(r=>r.spColName).indexOf(this.addedColumnName);o>-1&&(this.droppedColumns.splice(o,1),this.droppedSourceColumns.indexOf(this.addedColumnName)>-1&&this.droppedSourceColumns.splice(this.droppedSourceColumns.indexOf(this.addedColumnName),1)),this.setSpTableRows()}dropColumn(e){let i=e.get("srcColName").value,o=e.get("srcId").value,r=e.get("spId").value,a=""!=o?o:r,s=e.get("spColName").value,c=this.getAssociatedIndexs(a);if(this.checkIfPkColumn(a)||0!=c.length){let u="",p="",g="";this.checkIfPkColumn(a)&&(u=" Primary key"),0!=c.length&&(p=` Index ${c}`),""!=u&&""!=p&&(g=" and"),this.dialog.open(jo,{data:{message:`Column ${s} is a part of${u}${g}${p}. Remove the dependencies from respective tabs before dropping the Column. `,type:"error"},maxWidth:"500px"})}else this.spRowArray.value.forEach((u,p)=>{u.spId===r&&this.droppedColumns.push(u)}),this.dropColumnFromUI(r),""!==i&&this.droppedSourceColumns.push(i)}checkIfPkColumn(e){let i=!1;return null!=this.conv.SpSchema[this.currentObject.id].PrimaryKeys&&this.conv.SpSchema[this.currentObject.id].PrimaryKeys.map(o=>o.ColId).includes(e)&&(i=!0),i}setShardIdColumn(){void 0!==this.conv.SpSchema[this.currentObject.id]&&(this.shardIdCol=this.conv.SpSchema[this.currentObject.id].ShardIdColumn)}getAssociatedIndexs(e){let i=[];return null!=this.conv.SpSchema[this.currentObject.id].Indexes&&this.conv.SpSchema[this.currentObject.id].Indexes.forEach(o=>{o.Keys.map(r=>r.ColId).includes(e)&&i.push(o.Name)}),i}dropColumnFromUI(e){this.localTableData.forEach((i,o)=>{i.spId==e&&(i.spColName="",i.spDataType="",i.spIsNotNull=!1,i.spIsPk=!1,i.spOrder="",i.spColMaxLength="")}),this.setSpTableRows()}updateSpTableSuggestion(){this.isSpTableSuggesstionDisplay=[],this.spTableSuggestion=[],this.localTableData.forEach(e=>{const i=e.srcDataType,o=e.spDataType;let r="";this.typeMap[i]?.forEach(a=>{o==a.DiplayT&&(r=a.Brief)}),this.isSpTableSuggesstionDisplay.push(""!==r),this.spTableSuggestion.push(r)})}spTableEditSuggestionHandler(e,i){let r="";this.typeMap[this.localTableData[e].srcDataType].forEach(a=>{i==a.T&&(r=a.Brief)}),this.isSpTableSuggesstionDisplay[e]=""!==r,this.spTableSuggestion[e]=r}setPkRows(){this.pkArray=this.fb.array([]),this.pkOrderValidation();var e=new Array,i=new Array;this.pkData.forEach(o=>{o.srcIsPk&&e.push({srcColName:o.srcColName,srcDataType:o.srcDataType,srcIsNotNull:o.srcIsNotNull,srcIsPk:o.srcIsPk,srcOrder:o.srcOrder,srcId:o.srcId}),o.spIsPk&&i.push({spColName:o.spColName,spDataType:o.spDataType,spIsNotNull:o.spIsNotNull,spIsPk:o.spIsPk,spOrder:o.spOrder,spId:o.spId})}),i.sort((o,r)=>o.spOrder-r.spOrder);for(let o=0;oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);or.spColName).indexOf(this.addedPkColumnName),i=this.localTableData[e],o=1;this.localTableData[e].spIsPk=!0,this.pkData=[],this.pkData=this.conversion.getPkMapping(this.localTableData),e=this.pkData.findIndex(r=>r.srcId===i.srcId||r.spId==i.spId),this.pkArray.value.forEach(r=>{r.spIsPk&&(o+=1);for(let a=0;a{i.spIsPk&&e.push(i.spColName)});for(let i=0;i{if(this.pkData[i].spId===this.conv.SpSchema[this.currentObject.id].PrimaryKeys[i].ColId)this.pkData[i].spOrder=this.conv.SpSchema[this.currentObject.id].PrimaryKeys[i].Order;else{let o=this.conv.SpSchema[this.currentObject.id].PrimaryKeys.map(r=>r.ColId).indexOf(e.spId);e.spOrder=this.conv.SpSchema[this.currentObject.id].PrimaryKeys[o]?.Order}}:(e,i)=>{let o=this.conv.SpSchema[this.currentObject.id]?.PrimaryKeys.map(r=>r.ColId).indexOf(e.spId);-1!==o&&(e.spOrder=this.conv.SpSchema[this.currentObject.id]?.PrimaryKeys[o].Order)})}pkOrderValidation(){let e=this.pkData.filter(i=>i.spIsPk).map(i=>Number(i.spOrder));if(e.sort((i,o)=>i-o),e[e.length-1]>e.length&&e.forEach((i,o)=>{this.pkData.forEach(r=>{r.spOrder==i&&(r.spOrder=o+1)})}),0==e[0]&&e[e.length-1]<=e.length){let i;for(let o=0;o{"number"==typeof o.spOrder&&o.spOrder{o.spIsPk&&i.push({ColId:o.spId,Desc:typeof this.conv.SpSchema[this.currentObject.id].PrimaryKeys.find(({ColId:r})=>r===o.spId)<"u"&&this.conv.SpSchema[this.currentObject.id].PrimaryKeys.find(({ColId:r})=>r===o.spId).Desc,Order:parseInt(o.spOrder)})}),this.pkObj.TableId=e,this.pkObj.Columns=i}togglePkEdit(){this.currentTabIndex=1,this.isPkEditMode?(this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.pkData=this.conversion.getPkMapping(this.tableData),this.setAddPkColumnList(),this.setPkOrder(),this.setPkRows(),this.isPkEditMode=!1):this.isPkEditMode=!0}savePk(){if(this.pkArray.value.forEach(e=>{for(let i=0;i{o&&this.data.removeInterleave(""!=this.conv.SpSchema[this.currentObject.id].ParentId?this.currentObject.id:this.conv.SpSchema[e].Id).pipe(Nt(1)).subscribe(a=>{this.updatePk()})}):this.updatePk()}}updatePk(){this.isPkEditMode=!1,this.data.updatePk(this.pkObj).subscribe({next:e=>{""==e?this.isEditMode=!1:(this.dialog.open(jo,{data:{message:e,type:"error"},maxWidth:"500px"}),this.isPkEditMode=!0)}})}dropPk(e){let i=this.localTableData.map(a=>a.spColName).indexOf(e.value.spColName);this.localTableData[i].spId==(this.conv.SyntheticPKeys[this.currentObject.id]?this.conv.SyntheticPKeys[this.currentObject.id].ColId:"")?this.dialog.open(jo,{data:{message:"Removing this synthetic id column from primary key will drop the column from the table",title:"Confirm removal of synthetic id",type:"warning"},maxWidth:"500px"}).afterClosed().subscribe(s=>{s&&this.dropPkHelper(i,e.value.spOrder)}):this.dropPkHelper(i,e.value.spOrder)}dropPkHelper(e,i){this.localTableData[e].spIsPk=!1,this.pkData=[],this.pkData=this.conversion.getPkMapping(this.localTableData),this.pkArray.value.forEach(o=>{for(let r=0;r{"number"==typeof o.spOrder&&o.spOrder>i&&(o.spOrder=Number(o.spOrder)-1)}),this.setAddPkColumnList(),this.setPkRows()}setFkRows(){this.fkArray=this.fb.array([]);var e=new Array,i=new Array;this.fkData.forEach(o=>{e.push({srcName:o.srcName,srcColumns:o.srcColumns,srcRefTable:o.srcReferTable,srcRefColumns:o.srcReferColumns,Id:o.srcFkId}),""!=o.spName&&i.push({spName:o.spName,spColumns:o.spColumns,spRefTable:o.spReferTable,spRefColumns:o.spReferColumns,Id:o.spFkId,spColIds:o.spColIds,spReferColumnIds:o.spReferColumnIds,spReferTableId:o.spReferTableId})});for(let o=0;oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);o{e.push({Name:i.spName,ColIds:i.spColIds,ReferTableId:i.spReferTableId,ReferColumnIds:i.spReferColumnIds,Id:i.spFkId})}),this.data.updateFkNames(this.currentObject.id,e).subscribe({next:i=>{""==i?this.isFkEditMode=!1:this.dialog.open(jo,{data:{message:i,type:"error"},maxWidth:"500px"})}})}dropFk(e){this.fkData.forEach(i=>{i.spName==e.get("spName").value&&(i.spName="",i.spColumns=[],i.spReferTable="",i.spReferColumns=[],i.spColIds=[],i.spReferColumnIds=[],i.spReferTableId="")}),this.setFkRows()}getRemovedFkIndex(e){let i=-1;return this.fkArray.value.forEach((o,r)=>{o.spName===e.get("spName").value&&(i=r)}),i}removeInterleave(){this.data.removeInterleave(this.currentObject.id).pipe(Nt(1)).subscribe(i=>{""===i&&this.snackbar.openSnackBar("Interleave removed and foreign key restored successfully","Close",5)})}checkIsInterleave(){this.currentObject&&!this.currentObject?.isDeleted&&this.currentObject?.isSpannerNode&&this.data.getInterleaveConversionForATable(this.currentObject.id)}setInterleave(){this.data.setInterleave(this.currentObject.id)}getInterleaveParentFromConv(){return this.currentObject?.type===hi.Table&&this.currentObject.isSpannerNode&&!this.currentObject.isDeleted&&""!=this.conv.SpSchema[this.currentObject.id].ParentId?this.conv.SpSchema[this.conv.SpSchema[this.currentObject.id].ParentId]?.Name:null}setIndexRows(){this.spRowArray=this.fb.array([]);const e=this.localIndexData.map(i=>i.spColName?i.spColName:"").filter(i=>""!=i);this.indexColumnNames=this.conv.SpSchema[this.currentObject.parentId]?.ColIds?.filter(i=>!e.includes(this.conv.SpSchema[this.currentObject.parentId]?.ColDefs[i]?.Name)).map(i=>this.conv.SpSchema[this.currentObject.parentId]?.ColDefs[i]?.Name),this.localIndexData.forEach(i=>{this.spRowArray.push(new ei({srcOrder:new Z(i.srcOrder),srcColName:new Z(i.srcColName),srcDesc:new Z(i.srcDesc),spOrder:new Z(i.spOrder),spColName:new Z(i.spColName,[ce.required,ce.pattern("^[a-zA-Z]([a-zA-Z0-9/_]*[a-zA-Z0-9])?")]),spDesc:new Z(i.spDesc)}))}),this.spDataSource=this.spRowArray.controls}setIndexOrder(){this.spRowArray.value.forEach(e=>{for(let i=0;i""!=i.spColName).map(i=>Number(i.spOrder));if(e.sort((i,o)=>i-o),e[e.length-1]>e.length&&e.forEach((i,o)=>{this.localIndexData.forEach(r=>{""!=r.spColName&&r.spOrder==i&&(r.spOrder=o+1)})}),0==e[0]&&e[e.length-1]<=e.length){let i;for(let o=0;o{o.spOrder!!i.spColId).map(i=>({ColId:i.spColId,Desc:i.spDesc,Order:i.spOrder})),Id:this.currentObject.id}),0==e[0].Keys.length?this.dropIndex():(this.data.updateIndex(this.currentObject?.parentId,e).subscribe({next:i=>{""==i?this.isEditMode=!1:(this.dialog.open(jo,{data:{message:i,type:"error"},maxWidth:"500px"}),this.isIndexEditMode=!0)}}),this.addIndexKeyForm.controls.columnName.setValue(""),this.addIndexKeyForm.controls.ascOrDesc.setValue(""),this.addIndexKeyForm.markAsUntouched(),this.data.getSummary(),this.isIndexEditMode=!1)}dropIndex(){this.dialog.open(ON,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{name:this.currentObject?.name,type:od.Index}}).afterClosed().subscribe(i=>{i===od.Index&&(this.data.dropIndex(this.currentObject.parentId,this.currentObject.id).pipe(Nt(1)).subscribe(o=>{""===o&&(this.isObjectSelected=!1,this.updateSidebar.emit(!0))}),this.currentObject=null)})}restoreIndex(){this.data.restoreIndex(this.currentObject.parentId,this.currentObject.id).pipe(Nt(1)).subscribe(o=>{""===o&&(this.isObjectSelected=!1)}),this.currentObject=null}dropIndexKey(e){this.localIndexData[e].srcColName?(this.localIndexData[e].spColName="",this.localIndexData[e].spColId="",this.localIndexData[e].spDesc="",this.localIndexData[e].spOrder=""):this.localIndexData.splice(e,1),this.setIndexRows()}addIndexKey(){let e=0;this.localIndexData.forEach(i=>{i.spColName&&(e+=1)}),this.localIndexData.push({spColName:this.addIndexKeyForm.value.columnName,spDesc:"desc"===this.addIndexKeyForm.value.ascOrDesc,spOrder:e+1,srcColName:"",srcDesc:void 0,srcOrder:"",srcColId:void 0,spColId:this.currentObject?this.conversion.getColIdFromSpannerColName(this.addIndexKeyForm.value.columnName,this.currentObject.parentId,this.conv):""}),this.setIndexRows()}restoreSpannerTable(){this.data.restoreTable(this.currentObject.id).pipe(Nt(1)).subscribe(e=>{""===e&&(this.isObjectSelected=!1),this.data.getConversionRate(),this.data.getDdl()}),this.currentObject=null}dropTable(){this.dialog.open(ON,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{name:this.currentObject?.name,type:od.Table}}).afterClosed().subscribe(i=>{i===od.Table&&(this.data.dropTable(this.currentObject.id).pipe(Nt(1)).subscribe(r=>{""===r&&(this.isObjectSelected=!1,this.data.getConversionRate(),this.updateSidebar.emit(!0))}),this.currentObject=null)})}tabChanged(e){this.currentTabIndex=e.index}middleColumnToggle(){this.isMiddleColumnCollapse=!this.isMiddleColumnCollapse,this.sidenav.setMiddleColComponent(this.isMiddleColumnCollapse)}tableInterleaveWith(e){if(""!=this.conv.SpSchema[e].ParentId)return this.conv.SpSchema[e].ParentId;let i="";return Object.keys(this.conv.SpSchema).forEach(o=>{""!=this.conv.SpSchema[o].ParentId&&this.conv.SpSchema[o].ParentId==e&&(i=o)}),i}isPKPrefixModified(e,i){let o,r;this.conv.SpSchema[e].ParentId!=i?(o=this.pkObj.Columns,r=this.conv.SpSchema[i].PrimaryKeys):(r=this.pkObj.Columns,o=this.conv.SpSchema[i].PrimaryKeys);for(let a=0;a{class t{constructor(e,i){this.sidenavService=e,this.data=i,this.dataSource=[],this.currentDataSource=[],this.displayedColumns=["order","name","type","objectType","associatedObject","enabled","view"],this.currentObject=null,this.lengthOfRules=new Re}ngOnInit(){this.dataSource=[],this.data.rule.subscribe({next:e=>{this.currentDataSource=e,this.updateRules()}})}ngOnChanges(){this.updateRules()}updateRules(){if(this.currentDataSource){let e=[],i=[];e=this.currentDataSource.filter(o=>"global_datatype_change"===o?.Type||"add_shard_id_primary_key"===o?.Type||"edit_column_max_length"===o?.Type&&"All table"===o?.AssociatedObjects),this.currentObject&&("tableName"===this.currentObject?.type||"indexName"===this.currentObject?.type)&&(i=this.currentDataSource.filter(o=>o?.AssociatedObjects===this.currentObject?.id||o?.AssociatedObjects===this.currentObject?.parentId||o?.AssociatedObjects===this.currentObject?.name||o?.AssociatedObjects===this.currentObject?.parent).map(o=>{let r="";return"tableName"===this.currentObject?.type?r=this.currentObject.name:"indexName"===this.currentObject?.type&&(r=this.currentObject.parent),o.AssociatedObjects=r,o})),this.dataSource=[...e,...i],this.lengthOfRules.emit(this.dataSource.length)}else this.dataSource=[],this.lengthOfRules.emit(0)}openSidenav(){this.sidenavService.openSidenav(),this.sidenavService.setSidenavComponent("rule"),this.sidenavService.setSidenavRuleType(""),this.sidenavService.setRuleData({}),this.sidenavService.setDisplayRuleFlag(!1)}viewSidenavRule(e){let i=[];for(let o=0;o[t],gde=(t,n,e,i,o)=>({"middle-column-expand":t,"middle-column-collapse":n,"middle-column-full":e,display:i,hidden:o}),_de=(t,n,e,i,o,r)=>({"right-column-half-expand":t,"right-column-full-expand":n,"right-column-collapse":e,"middle-column-hide":i,display:o,hidden:r}),AN=t=>({"blue-font-color":t});let bde=(()=>{class t{constructor(e,i,o,r,a,s,c){this.data=e,this.conversion=i,this.dialog=o,this.sidenav=r,this.router=a,this.clickEvent=s,this.fetch=c,this.fkData=[],this.tableData=[],this.indexData=[],this.typeMap=!1,this.defaultTypeMap=!1,this.conversionRates={},this.isLeftColumnCollapse=!1,this.isRightColumnCollapse=!0,this.isMiddleColumnCollapse=!0,this.isOfflineStatus=!1,this.spannerTree=[],this.srcTree=[],this.issuesAndSuggestionsLabel="ISSUES AND SUGGESTIONS",this.rulesLabel="RULES (0)",this.objectExplorerInitiallyRender=!1,this.srcDbName=localStorage.getItem(rn.SourceDbName),this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentages={good:0,ok:0,bad:0},this.currentDatabase="spanner",this.dialect="",this.currentObject=null}ngOnInit(){this.conversion.getStandardTypeToPGSQLTypemap(),this.conversion.getPGSQLToStandardTypeTypemap(),this.ddlsumconvObj=this.data.getRateTypemapAndSummary(),this.typemapObj=this.data.typeMap.subscribe(e=>{this.typeMap=e}),this.defaultTypemapObj=this.data.defaultTypeMap.subscribe(e=>{this.defaultTypeMap=e}),this.ddlObj=this.data.ddl.subscribe(e=>{this.ddlStmts=e}),this.sidenav.setMiddleColumnComponent.subscribe(e=>{this.isMiddleColumnCollapse=!e}),this.convObj=this.data.conv.subscribe(e=>{Object.keys(e.SrcSchema).length<=0&&this.router.navigate(["/"]);const i=this.isIndexAddedOrRemoved(e);e&&this.conv&&Object.keys(e?.SpSchema).length!=Object.keys(this.conv?.SpSchema).length&&(this.conv=e,this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc()),this.conv=e,this.conv.DatabaseType&&(this.srcDbName=xg(this.conv.DatabaseType)),i&&this.conversionRates&&this.reRenderObjectExplorerSpanner(),!this.objectExplorerInitiallyRender&&this.conversionRates&&(this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc(),this.objectExplorerInitiallyRender=!0),this.currentObject&&this.currentObject.type===hi.Table&&(this.fkData=this.currentObject?this.conversion.getFkMapping(this.currentObject.id,e):[],this.tableData=this.currentObject?this.conversion.getColumnMapping(this.currentObject.id,e):[]),this.currentObject&&this.currentObject?.type===hi.Index&&!i&&(this.indexData=this.conversion.getIndexMapping(this.currentObject.parentId,this.conv,this.currentObject.id)),this.dialect="postgresql"===this.conv.SpDialect?"PostgreSQL":"Google Standard SQL"}),this.converObj=this.data.conversionRate.subscribe(e=>{this.conversionRates=e,this.updateConversionRatePercentages(),this.conv?(this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc(),this.objectExplorerInitiallyRender=!0):this.objectExplorerInitiallyRender=!1}),this.data.isOffline.subscribe({next:e=>{this.isOfflineStatus=e}})}ngOnDestroy(){this.typemapObj.unsubscribe(),this.convObj.unsubscribe(),this.ddlObj.unsubscribe(),this.ddlsumconvObj.unsubscribe()}updateConversionRatePercentages(){let e=Object.keys(this.conversionRates).length;this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentages={good:0,ok:0,bad:0};for(const i in this.conversionRates)"NONE"===this.conversionRates[i]||"EXCELLENT"===this.conversionRates[i]?this.conversionRateCount.good+=1:"GOOD"===this.conversionRates[i]||"OK"===this.conversionRates[i]?this.conversionRateCount.ok+=1:this.conversionRateCount.bad+=1;if(e>0)for(let i in this.conversionRatePercentages)this.conversionRatePercentages[i]=Number((this.conversionRateCount[i]/e*100).toFixed(2))}reRenderObjectExplorerSpanner(){this.spannerTree=this.conversion.createTreeNode(this.conv,this.conversionRates)}reRenderObjectExplorerSrc(){this.srcTree=this.conversion.createTreeNodeForSource(this.conv,this.conversionRates)}changeCurrentObject(e){e.type===hi.Table?(this.currentObject=e,this.tableData=this.conversion.getColumnMapping(this.currentObject.id,this.conv),this.fkData=[],this.fkData=this.conversion.getFkMapping(this.currentObject.id,this.conv)):e.type===hi.Index?(this.currentObject=e,this.indexData=this.conversion.getIndexMapping(e.parentId,this.conv,e.id)):this.currentObject=null}changeCurrentDatabase(e){this.currentDatabase=e}updateIssuesLabel(e){setTimeout(()=>{this.issuesAndSuggestionsLabel=`ISSUES AND SUGGESTIONS (${e})`})}updateRulesLabel(e){setTimeout(()=>{this.rulesLabel=`RULES (${e})`})}leftColumnToggle(){this.isLeftColumnCollapse=!this.isLeftColumnCollapse}middleColumnToggle(){this.isMiddleColumnCollapse=!this.isMiddleColumnCollapse}rightColumnToggle(){this.isRightColumnCollapse=!this.isRightColumnCollapse}openAssessment(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("assessment");let e="";if(localStorage.getItem(rn.Type)==Yn.DirectConnect){let r=JSON.parse(localStorage.getItem(rn.Config));e=r?.hostName+" : "+r?.port}else e=this.conv.DatabaseName;this.clickEvent.setViewAssesmentData({srcDbType:this.srcDbName,connectionDetail:e,conversionRates:this.conversionRateCount})}openSaveSessionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("saveSession"),this.sidenav.setSidenavDatabaseName(this.conv.DatabaseName)}downloadSession(){CN(this.conv)}downloadArtifacts(){let e=new TN,i=`${this.conv.DatabaseName}`;this.fetch.getDStructuredReport().subscribe({next:o=>{let r=JSON.stringify(o).replace(/9223372036854776000/g,"9223372036854775807");e.file(i+"_migration_structuredReport.json",r),this.fetch.getDTextReport().subscribe({next:s=>{e.file(i+"_migration_textReport.txt",s),this.fetch.getDSpannerDDL().subscribe({next:c=>{e.file(i+"_spannerDDL.txt",c);let u=JSON.stringify(this.conv).replace(/9223372036854776000/g,"9223372036854775807");e.file(`${this.conv.SessionName}_${this.conv.DatabaseType}_${i}.json`,u),e.generateAsync({type:"blob"}).then(g=>{var b=document.createElement("a");b.href=URL.createObjectURL(g),b.download=`${i}_artifacts`,b.click()})}})}})}})}downloadStructuredReport(){var e=document.createElement("a");this.fetch.getDStructuredReport().subscribe({next:i=>{let o=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.href="data:text/json;charset=utf-8,"+encodeURIComponent(o),e.download=`${this.conv.DatabaseName}_migration_structuredReport.json`,e.click()}})}downloadTextReport(){var e=document.createElement("a");this.fetch.getDTextReport().subscribe({next:i=>{e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${this.conv.DatabaseName}_migration_textReport.txt`,e.click()}})}downloadDDL(){var e=document.createElement("a");this.fetch.getDSpannerDDL().subscribe({next:i=>{e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${this.conv.DatabaseName}_spannerDDL.txt`,e.click()}})}updateSpannerTable(e){this.spannerTree=this.conversion.createTreeNode(this.conv,this.conversionRates,e.text,e.order)}updateSrcTable(e){this.srcTree=this.conversion.createTreeNodeForSource(this.conv,this.conversionRates,e.text,e.order)}isIndexAddedOrRemoved(e){if(this.conv){let i=0,o=0;return Object.entries(this.conv.SpSchema).forEach(r=>{i+=r[1].Indexes?r[1].Indexes.length:0}),Object.entries(e.SpSchema).forEach(r=>{o+=r[1].Indexes?r[1].Indexes.length:0}),i!==o}return!1}prepareMigration(){this.fetch.getTableWithErrors().subscribe({next:e=>{if(null!=e&&0!=e.length){let i="Please fix the errors for the following tables to move ahead: "+e.map(o=>o.Name).join(", ");this.dialog.open(jo,{data:{message:i,type:"error",title:"Error in Spanner Draft"},maxWidth:"500px"})}else this.isOfflineStatus?this.dialog.open(jo,{data:{message:"Please configure spanner project id and instance id to proceed",type:"error",title:"Configure Spanner"},maxWidth:"500px"}):0==Object.keys(this.conv.SpSchema).length?this.dialog.open(jo,{data:{message:"Please restore some table(s) to proceed with the migration",type:"error",title:"All tables skipped"},maxWidth:"500px"}):this.router.navigate(["/prepare-migration"])}})}spannerTab(){this.clickEvent.setTabToSpanner()}static#e=this.\u0275fac=function(i){return new(i||t)(_($i),_(hc),_(Vr),_(Xn),_(An),_(nr),_(Qn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-workspace"]],decls:57,vars:59,consts:[[1,"header"],[1,"breadcrumb","vertical-center"],["mat-button","",1,"breadcrumb_source",3,"routerLink"],["mat-button","",1,"breadcrumb_workspace",3,"routerLink"],[1,"header_action"],["matTooltip","Connect to a spanner instance to run migration",3,"matTooltipDisabled"],["mat-button","",3,"click"],["mat-button","",3,"click",4,"ngIf"],[1,"artifactsButtons"],["mat-raised-button","","color","primary",1,"split-button-left",3,"click"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click"],[1,"container"],[1,"summary"],[1,"spanner-tab-link",3,"click"],[1,"columns"],[1,"column-left",3,"ngClass"],[3,"spannerTree","srcTree","srcDbName","selectedDatabase","selectObject","updateSpannerTable","updateSrcTable","leftCollaspe","middleCollapse"],[1,"column-middle",3,"ngClass"],[3,"currentObject","tableData","indexData","typeMap","ddlStmts","fkData","currentDatabase","defaultTypeMap","updateSidebar"],[1,"column-right",3,"ngClass"],[3,"ngClass","label"],[3,"currentObject","changeIssuesLabel"],[3,"currentObject","lengthOfRules"],["id","right-column-toggle-button",3,"click"],[3,"ngClass"]],template:function(i,o){if(1&i&&(d(0,"div")(1,"div",0)(2,"div",1)(3,"a",2),h(4,"Select Source"),l(),d(5,"span"),h(6,">"),l(),d(7,"a",3)(8,"b"),h(9),l()()(),d(10,"div",4)(11,"span",5)(12,"button",6),N("click",function(){return o.prepareMigration()}),h(13," PREPARE MIGRATION "),l()(),d(14,"button",6),N("click",function(){return o.openAssessment()}),h(15,"VIEW ASSESSMENT"),l(),y(16,fde,2,0,"button",7),d(17,"span",8)(18,"button",9),N("click",function(){return o.downloadArtifacts()}),h(19," DOWNLOAD ARTIFACTS "),l(),d(20,"button",10)(21,"mat-icon",11),h(22,"expand_more"),l()(),d(23,"mat-menu",12,13)(25,"button",14),N("click",function(){return o.downloadTextReport()}),h(26,"Download Text Report"),l(),d(27,"button",14),N("click",function(){return o.downloadStructuredReport()}),h(28,"Download Structured Report"),l(),d(29,"button",14),N("click",function(){return o.downloadSession()}),h(30,"Download Session File"),l(),d(31,"button",14),N("click",function(){return o.downloadDDL()}),h(32,"Download Spanner DDL"),l()()()()(),d(33,"div",15)(34,"div",16),h(35),D(36,"br"),h(37," To make schema changes go to "),d(38,"a",17),N("click",function(){return o.spannerTab()}),h(39,"Spanner Draft"),l(),h(40," pane. "),l()(),d(41,"div",18)(42,"div",19)(43,"app-object-explorer",20),N("selectedDatabase",function(a){return o.changeCurrentDatabase(a)})("selectObject",function(a){return o.changeCurrentObject(a)})("updateSpannerTable",function(a){return o.updateSpannerTable(a)})("updateSrcTable",function(a){return o.updateSrcTable(a)})("leftCollaspe",function(){return o.leftColumnToggle()})("middleCollapse",function(){return o.middleColumnToggle()}),l()(),d(44,"div",21)(45,"app-object-detail",22),N("updateSidebar",function(){return o.reRenderObjectExplorerSpanner()}),l()(),d(46,"div",23)(47,"mat-tab-group")(48,"mat-tab",24)(49,"app-summary",25),N("changeIssuesLabel",function(a){return o.updateIssuesLabel(a)}),l()(),d(50,"mat-tab",24)(51,"app-rule",26),N("lengthOfRules",function(a){return o.updateRulesLabel(a)}),l()()(),d(52,"button",27),N("click",function(){return o.rightColumnToggle()}),d(53,"mat-icon",28),h(54,"first_page"),l(),d(55,"mat-icon",28),h(56,"last_page"),l()()()()()),2&i){const r=Rt(24);m(3),f("routerLink","/"),m(4),f("routerLink","/workspace"),m(2),Me("Configure Schema (",o.dialect," Dialect)"),m(2),f("matTooltipDisabled",!o.isOfflineStatus),m(5),f("ngIf",!o.isOfflineStatus),m(4),f("matMenuTriggerFor",r),m(15),bv(" Estimation for ",o.srcDbName.toUpperCase()," to Spanner conversion: ",o.conversionRatePercentages.good,"% of tables can be converted automatically, ",o.conversionRatePercentages.ok,"% requires minimal conversion changes and ",o.conversionRatePercentages.bad,"% requires high complexity conversion changes. "),m(7),f("ngClass",ui(32,wh,o.isLeftColumnCollapse?"left-column-collapse":"left-column-expand")),m(),f("spannerTree",o.spannerTree)("srcTree",o.srcTree)("srcDbName",o.srcDbName),m(),f("ngClass",function zT(t,n,e,i,o,r,a,s){const c=to()+t,u=fe(),p=$o(u,c,e,i,o,r);return Ji(u,c+4,a)||p?Pr(u,c+5,s?n.call(s,e,i,o,r,a):n(e,i,o,r,a)):Qd(u,c+5)}(34,gde,o.isLeftColumnCollapse,!o.isLeftColumnCollapse,!o.isMiddleColumnCollapse,o.isRightColumnCollapse,!o.isRightColumnCollapse)),m(),f("currentObject",o.currentObject)("tableData",o.tableData)("indexData",o.indexData)("typeMap",o.typeMap)("ddlStmts",o.ddlStmts)("fkData",o.fkData)("currentDatabase",o.currentDatabase)("defaultTypeMap",o.defaultTypeMap),m(),f("ngClass",function HT(t,n,e,i,o,r,a,s,c){const u=to()+t,p=fe(),g=$o(p,u,e,i,o,r);return Vs(p,u+4,a,s)||g?Pr(p,u+6,c?n.call(c,e,i,o,r,a,s):n(e,i,o,r,a,s)):Qd(p,u+6)}(40,_de,!o.isRightColumnCollapse&&!o.isLeftColumnCollapse,!o.isRightColumnCollapse&&o.isLeftColumnCollapse,o.isRightColumnCollapse,!o.isMiddleColumnCollapse,o.isMiddleColumnCollapse,!o.isMiddleColumnCollapse)),m(2),f("ngClass",ui(49,AN,ui(47,wh,o.updateIssuesLabel)))("label",o.issuesAndSuggestionsLabel),m(),f("currentObject",o.currentObject),m(),f("ngClass",ui(53,AN,ui(51,wh,o.updateRulesLabel)))("label",o.rulesLabel),m(),f("currentObject",o.currentObject),m(2),f("ngClass",ui(55,wh,o.isRightColumnCollapse?"display":"hidden")),m(2),f("ngClass",ui(57,wh,o.isRightColumnCollapse?"hidden":"display"))}},dependencies:[vr,Tt,Ur,BE,Yt,Ii,Vl,wa,jl,Zf,Lw,xn,Cre,gae,Wle,pde],styles:["app-object-detail[_ngcontent-%COMP%]{height:100%}.vertical-center[_ngcontent-%COMP%]{display:flex;align-items:center}.columns[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;border-top:1px solid #d3d3d3;border-bottom:1px solid #d3d3d3;height:calc(100vh - 222px)}.artifactsButtons[_ngcontent-%COMP%]{white-space:nowrap}.container[_ngcontent-%COMP%]{padding:7px 20px;margin-bottom:20px}.container[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{font-weight:lighter}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 5px}.column-left[_ngcontent-%COMP%]{overflow:auto}.column-middle[_ngcontent-%COMP%]{width:48%;border-left:1px solid #d3d3d3;border-right:1px solid #d3d3d3;overflow:auto}.column-right[_ngcontent-%COMP%]{width:26%;position:relative;overflow:auto}.left-column-collapse[_ngcontent-%COMP%]{width:3%}.left-column-expand[_ngcontent-%COMP%]{width:26%}.middle-column-collapse[_ngcontent-%COMP%]{width:48%}.middle-column-expand[_ngcontent-%COMP%]{width:71%}.right-column-half-expand[_ngcontent-%COMP%]{width:80%}.right-column-collapse[_ngcontent-%COMP%]{width:26%}.right-column-full-expand[_ngcontent-%COMP%]{width:97%}.middle-column-hide[_ngcontent-%COMP%]{width:0%}.middle-column-full[_ngcontent-%COMP%]{width:100%}#right-column-toggle-button[_ngcontent-%COMP%]{border:none;background-color:inherit;position:absolute;top:10px;right:7px;z-index:100}#right-column-toggle-button[_ngcontent-%COMP%]:hover{cursor:pointer} .column-right .mat-mdc-tab-label .mat-mdc-tab-label-content{font-size:.8rem} .column-right .mat-mdc-tab-label{min-width:25px!important;padding:10px} .column-right .mat-mdc-tab-label.mat-mdc-tab-label-active{min-width:25px!important;padding:7px} .column-right .mat-mdc-tab-label-container{margin-right:40px} .column-right .mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-label-container{margin-right:0} .column-right .mat-mdc-tab-header-pagination-after{margin-right:40px}.split-button-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:none;padding-right:1px}.split-button-right[_ngcontent-%COMP%]{box-shadow:none;width:30px!important;min-width:unset!important;padding:0 2px;border-top-left-radius:0;border-bottom-left-radius:0;margin-right:7px}"]})}return t})(),vde=(()=>{class t{constructor(e,i,o){this.formBuilder=e,this.dialogRef=i,this.data=o,this.region="",this.spannerInstance="",this.dialect="",this.region=o.Region,this.spannerInstance=o.Instance,this.dialect=o.Dialect,this.targetDetailsForm=this.formBuilder.group({targetDb:["",ce.required]}),this.targetDetailsForm.setValue({targetDb:localStorage.getItem(si.TargetDB)})}ngOnInit(){}updateTargetDetails(){let e=this.targetDetailsForm.value;localStorage.setItem(si.TargetDB,e.targetDb),localStorage.setItem(si.Dialect,e.dialect),localStorage.setItem(me.IsTargetDetailSet,"true"),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(_a),_(On),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-target-details-form"]],decls:30,vars:5,consts:[["mat-dialog-content",""],[1,"target-detail-form",3,"formGroup"],["matTooltip","Schema & Schema and data migration: Specify new database name or existing database with empty schema. Data migration: Specify existing database with tables already created",1,"configure"],["appearance","outline",1,"full-width"],["matInput","","placeholder","Target Database","type","text","formControlName","targetDb","ng-value","targetDetails.TargetDB"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Spanner Database Details"),d(4,"mat-icon",2),h(5," info"),l()(),d(6,"mat-form-field",3)(7,"mat-label"),h(8,"Spanner Database"),l(),D(9,"input",4),l(),D(10,"br")(11,"br"),d(12,"b"),h(13,"Region:"),l(),h(14),D(15,"br")(16,"br"),d(17,"b"),h(18,"Spanner Instance:"),l(),h(19),D(20,"br")(21,"br"),d(22,"b"),h(23,"Dialect:"),l(),h(24),l(),d(25,"div",5)(26,"button",6),h(27,"Cancel"),l(),d(28,"button",7),N("click",function(){return o.updateTargetDetails()}),h(29," Save "),l()()()),2&i&&(m(),f("formGroup",o.targetDetailsForm),m(13),Me(" ",o.region," "),m(5),Me(" ",o.spannerInstance," "),m(5),Me(" ",o.dialect," "),m(4),f("disabled",!o.targetDetailsForm.valid))},dependencies:[Yt,Ii,Ri,Pi,on,En,Oi,xi,Ui,Ai,Yi,mo,Jo,er,xn]})}return t})();function yde(t,n){if(1&t){const e=ge();d(0,"mat-radio-button",10),N("change",function(){const r=ae(e).$implicit;return se(w().onItemChange(r.value))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.display,"")}}function wde(t,n){if(1&t&&(d(0,"mat-option",14),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayName),m(),Me(" ",e.DisplayName," ")}}function xde(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",11)(2,"mat-label"),h(3,"Select connection profile"),l(),d(4,"mat-select",12),y(5,wde,2,2,"mat-option",13),l()()()),2&t){const e=w();m(5),f("ngForOf",e.profileList)}}function Cde(t,n){1&t&&(d(0,"div")(1,"mat-form-field",15)(2,"mat-label"),h(3,"Connection profile name"),l(),D(4,"input",16),l()())}function Dde(t,n){1&t&&(d(0,"div")(1,"mat-form-field",11)(2,"mat-label"),h(3,"Replication slot"),l(),D(4,"input",17),l(),D(5,"br"),d(6,"mat-form-field",11)(7,"mat-label"),h(8,"Publication name"),l(),D(9,"input",18),l()())}function Sde(t,n){if(1&t&&(d(0,"li",24)(1,"span",25),h(2),l(),d(3,"span")(4,"mat-icon",26),h(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Fe(e),m(2),f("cdkCopyToClipboard",e)}}function kde(t,n){if(1&t&&(d(0,"div",27)(1,"span",25),h(2,"Test connection failed"),l(),d(3,"mat-icon",28),h(4," error "),l()()),2&t){const e=w(3);m(3),f("matTooltip",e.errorMsg)}}function Tde(t,n){1&t&&(d(0,"mat-icon",29),h(1," check_circle "),l())}function Mde(t,n){if(1&t){const e=ge();d(0,"div")(1,"div")(2,"b"),h(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",19),h(5,"Learn More"),l()(),D(6,"br"),y(7,Sde,6,2,"li",20)(8,kde,5,1,"div",21),D(9,"br"),d(10,"button",22),N("click",function(){return ae(e),se(w(2).testConnection())}),h(11,"Test Connection"),l(),y(12,Tde,2,0,"mat-icon",23),l()}if(2&t){const e=w(2);m(7),f("ngForOf",e.ipList),m(),f("ngIf",!e.testSuccess&&""!=e.errorMsg),m(2),f("disabled",!e.connectionProfileForm.valid),m(2),f("ngIf",e.testSuccess)}}function Ide(t,n){if(1&t&&(d(0,"div"),y(1,Mde,13,4,"div",6),l()),2&t){const e=w();m(),f("ngIf",e.isSource)}}let Ede=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.formBuilder=o,this.dialogRef=r,this.data=a,this.selectedProfile="",this.profileType="Source",this.profileList=[],this.ipList=[],this.selectedOption="new",this.profileOptions=[{value:"new",display:"Create a new connection profile"},{value:"existing",display:"Choose an existing connection profile"}],this.profileName="",this.errorMsg="",this.isSource=!1,this.sourceDatabaseType="",this.testSuccess=!1,this.testingSourceConnection=!1,this.isSource=a.IsSource,this.sourceDatabaseType=a.SourceDatabaseType,this.isSource||(this.profileType="Target"),this.connectionProfileForm=this.formBuilder.group({profileOption:["",ce.required],newProfile:["",[ce.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingProfile:[],replicationSlot:[],publication:[]}),"postgres"==this.sourceDatabaseType&&this.isSource&&(this.connectionProfileForm.get("replicationSlot")?.addValidators([ce.required]),this.connectionProfileForm.controls.replicationSlot.updateValueAndValidity(),this.connectionProfileForm.get("publication")?.addValidators([ce.required]),this.connectionProfileForm.controls.publication.updateValueAndValidity()),this.getConnectionProfilesAndIps()}onItemChange(e){this.selectedOption=e,"new"==this.selectedOption?(this.connectionProfileForm.get("newProfile")?.setValidators([ce.required]),this.connectionProfileForm.controls.existingProfile.clearValidators(),this.connectionProfileForm.controls.newProfile.updateValueAndValidity(),this.connectionProfileForm.controls.existingProfile.updateValueAndValidity()):(this.connectionProfileForm.controls.newProfile.clearValidators(),this.connectionProfileForm.get("existingProfile")?.addValidators([ce.required]),this.connectionProfileForm.controls.newProfile.updateValueAndValidity(),this.connectionProfileForm.controls.existingProfile.updateValueAndValidity())}testConnection(){this.testingSourceConnection=!0,this.fetch.createConnectionProfile({Id:this.connectionProfileForm.value.newProfile,IsSource:this.isSource,ValidateOnly:!0}).subscribe({next:()=>{this.testingSourceConnection=!1,this.testSuccess=!0},error:o=>{this.testingSourceConnection=!1,this.testSuccess=!1,this.errorMsg=o.error}})}createConnectionProfile(){let e=this.connectionProfileForm.value;this.isSource&&(localStorage.setItem(si.ReplicationSlot,e.replicationSlot),localStorage.setItem(si.Publication,e.publication)),"new"===this.selectedOption?this.fetch.createConnectionProfile({Id:e.newProfile,IsSource:this.isSource,ValidateOnly:!1}).subscribe({next:()=>{this.isSource?(localStorage.setItem(me.IsSourceConnectionProfileSet,"true"),localStorage.setItem(si.SourceConnProfile,e.newProfile)):(localStorage.setItem(me.IsTargetConnectionProfileSet,"true"),localStorage.setItem(si.TargetConnProfile,e.newProfile)),this.dialogRef.close()},error:o=>{this.snack.openSnackBar(o.error,"Close"),this.dialogRef.close()}}):(this.isSource?(localStorage.setItem(me.IsSourceConnectionProfileSet,"true"),localStorage.setItem(si.SourceConnProfile,e.existingProfile)):(localStorage.setItem(me.IsTargetConnectionProfileSet,"true"),localStorage.setItem(si.TargetConnProfile,e.existingProfile)),this.dialogRef.close())}ngOnInit(){}getConnectionProfilesAndIps(){this.fetch.getConnectionProfiles(this.isSource).subscribe({next:e=>{this.profileList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}}),this.isSource&&this.fetch.getStaticIps().subscribe({next:e=>{this.ipList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Qn),_(ir),_(_a),_(On),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-connection-profile-form"]],decls:19,vars:9,consts:[["mat-dialog-content",""],[1,"conn-profile-form",3,"formGroup"],[1,"mat-h3","header-title"],[1,"radio-button-container"],["formControlName","profileOption",3,"ngModel","ngModelChange"],[3,"value","change",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[3,"value","change"],["appearance","outline"],["formControlName","existingProfile","required","true","ng-value","selectedProfile",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["appearance","outline","hintLabel","Name can include lower case letters, numbers and hyphens. Must start with a letter.",1,"new-connection-profile-input"],["matInput","","placeholder","Connection profile name","type","text","formControlName","newProfile","required","true"],["matInput","","placeholder","Replication slot","type","text","formControlName","replicationSlot","required","true"],["matInput","","placeholder","Publication name","type","text","formControlName","publication","required","true"],["href","https://cloud.google.com/datastream/docs/network-connectivity-options#ipallowlists"],["class","connection-form-container",4,"ngFor","ngForOf"],["class","failure",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["class","success","matTooltip","Test connection successful","matTooltipPosition","above",4,"ngIf"],[1,"connection-form-container"],[1,"left-text"],["matTooltip","Copy",1,"icon","copy",3,"cdkCopyToClipboard"],[1,"failure"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],["matTooltip","Test connection successful","matTooltipPosition","above",1,"success"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"span",2),h(3),l(),D(4,"br"),d(5,"div",3)(6,"mat-radio-group",4),kn("ngModelChange",function(a){return Ln(o.selectedOption,a)||(o.selectedOption=a),a}),y(7,yde,2,2,"mat-radio-button",5),l()(),D(8,"br"),y(9,xde,6,1,"div",6)(10,Cde,5,0,"div",6),D(11,"br"),y(12,Dde,10,0,"div",6)(13,Ide,2,1,"div",6),d(14,"div",7)(15,"button",8),h(16,"Cancel"),l(),d(17,"button",9),N("click",function(){return o.createConnectionProfile()}),h(18," Save "),l()()()()),2&i&&(m(),f("formGroup",o.connectionProfileForm),m(2),Me("",o.profileType," Connection Profile"),m(3),Sn("ngModel",o.selectedOption),m(),f("ngForOf",o.profileOptions),m(2),f("ngIf","existing"===o.selectedOption),m(),f("ngIf","new"===o.selectedOption),m(2),f("ngIf",o.isSource&&"postgres"==o.sourceDatabaseType),m(),f("ngIf","new"===o.selectedOption),m(4),f("disabled",!o.connectionProfileForm.valid||!o.testSuccess&&"new"===o.selectedOption&&o.isSource))},dependencies:[dn,Tt,Yt,Ii,Ri,Pi,on,uo,In,En,Oi,xi,Ui,Bo,Ai,Yi,mo,Jo,er,xn,ng,og,qw],styles:[".icon[_ngcontent-%COMP%]{font-size:15px}.connection-form-container[_ngcontent-%COMP%]{display:block}.left-text[_ngcontent-%COMP%]{width:40%;display:inline-block}"]})}return t})();function Ode(t,n){if(1&t){const e=ge();d(0,"mat-radio-button",6),N("change",function(){const r=ae(e).$implicit;return se(w().onItemChange(r.value))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.display,"")}}function Ade(t,n){1&t&&D(0,"mat-spinner",19),2&t&&f("diameter",25)}function Pde(t,n){1&t&&(d(0,"mat-icon",20),h(1,"check_circle"),l())}function Rde(t,n){1&t&&(d(0,"mat-icon",21),h(1,"cancel"),l())}function Nde(t,n){if(1&t&&(d(0,"div",22)(1,"span",23),h(2,"Source database connection failed"),l(),d(3,"mat-icon",24),h(4," error "),l()()),2&t){const e=w(2);m(3),f("matTooltip",e.errorMsg)}}function Fde(t,n){if(1&t){const e=ge();d(0,"div")(1,"form",7),N("ngSubmit",function(){return ae(e),se(w().setSourceDBDetailsForDump())}),d(2,"h4",8),h(3,"Load from database dump"),l(),h(4," Dump File "),d(5,"mat-form-field",9)(6,"mat-label"),h(7,"File path"),l(),d(8,"input",10),N("click",function(){return ae(e),se(Rt(13).click())}),l(),y(9,Ade,1,1,"mat-spinner",11)(10,Pde,2,0,"mat-icon",12)(11,Rde,2,0,"mat-icon",13),l(),d(12,"input",14,15),N("change",function(o){return ae(e),se(w().handleFileInput(o))}),l(),D(14,"br"),d(15,"button",16),h(16,"CANCEL"),l(),d(17,"button",17),h(18," SAVE "),l(),y(19,Nde,5,1,"div",18),l()()}if(2&t){const e=w();m(),f("formGroup",e.dumpFileForm),m(8),f("ngIf",e.uploadStart&&!e.uploadSuccess&&!e.uploadFail),m(),f("ngIf",e.uploadStart&&e.uploadSuccess),m(),f("ngIf",e.uploadStart&&e.uploadFail),m(6),f("disabled",!e.dumpFileForm.valid||!e.uploadSuccess),m(2),f("ngIf",""!=e.errorMsg)}}function Lde(t,n){if(1&t&&(d(0,"div",22)(1,"span",23),h(2,"Source database connection failed"),l(),d(3,"mat-icon",24),h(4," error "),l()()),2&t){const e=w(2);m(3),f("matTooltip",e.errorMsg)}}function Bde(t,n){if(1&t){const e=ge();d(0,"div")(1,"form",7),N("ngSubmit",function(){return ae(e),se(w().setSourceDBDetailsForDirectConnect())}),d(2,"h4",8),h(3,"Connect to Source Database"),l(),h(4," Connection Detail "),d(5,"mat-form-field",25)(6,"mat-label"),h(7,"Hostname"),l(),D(8,"input",26),l(),d(9,"mat-form-field",25)(10,"mat-label"),h(11,"Port"),l(),D(12,"input",27),d(13,"mat-error"),h(14," Only numbers are allowed. "),l()(),D(15,"br"),d(16,"mat-form-field",25)(17,"mat-label"),h(18,"User name"),l(),D(19,"input",28),l(),d(20,"mat-form-field",25)(21,"mat-label"),h(22,"Password"),l(),D(23,"input",29),l(),D(24,"br"),d(25,"mat-form-field",25)(26,"mat-label"),h(27,"Database Name"),l(),D(28,"input",30),l(),D(29,"br"),d(30,"button",16),h(31,"CANCEL"),l(),d(32,"button",17),h(33," SAVE "),l(),y(34,Lde,5,1,"div",18),l()()}if(2&t){const e=w();m(),f("formGroup",e.directConnectForm),m(31),f("disabled",!e.directConnectForm.valid),m(2),f("ngIf",""!=e.errorMsg)}}let Vde=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.dataService=i,this.snack=o,this.dialogRef=r,this.data=a,this.inputOptions=[{value:Yn.DumpFile,display:"Connect via dump file"},{value:Yn.DirectConnect,display:"Connect via direct connection"}],this.selectedOption=Yn.DirectConnect,this.sourceDatabaseEngine="",this.errorMsg="",this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.dumpFileForm=new ei({filePath:new Z("",[ce.required])}),this.directConnectForm=new ei({hostName:new Z("",[ce.required]),port:new Z("",[ce.required]),userName:new Z("",[ce.required]),dbName:new Z("",[ce.required]),password:new Z("")}),this.sourceDatabaseEngine=a}ngOnInit(){}setSourceDBDetailsForDump(){const{filePath:e}=this.dumpFileForm.value;this.fetch.setSourceDBDetailsForDump({Driver:this.sourceDatabaseEngine,Path:e}).subscribe({next:()=>{localStorage.setItem(me.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:o=>{this.errorMsg=o.error}})}setSourceDBDetailsForDirectConnect(){const{hostName:e,port:i,userName:o,password:r,dbName:a}=this.directConnectForm.value;this.fetch.setSourceDBDetailsForDirectConnect({dbEngine:this.sourceDatabaseEngine,isSharded:!1,hostName:e,port:i,userName:o,password:r,dbName:a}).subscribe({next:()=>{localStorage.setItem(me.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:c=>{this.errorMsg=c.error}})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.dumpFileForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.dataService.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}onItemChange(e){this.selectedOption=e,this.errorMsg=""}static#e=this.\u0275fac=function(i){return new(i||t)(_(Qn),_($i),_(ir),_(On),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-source-details-form"]],decls:7,vars:4,consts:[[1,"radio-button-container"],[1,"radio-button-group",3,"ngModel","ngModelChange"],[3,"value","change",4,"ngFor","ngForOf"],[1,"connect-load-database-container"],[1,"form-container"],[4,"ngIf"],[3,"value","change"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["hidden","","type","file",3,"change"],["file",""],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["class","failure",4,"ngIf"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"],[1,"failure"],[1,"left-text"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],["appearance","outline",1,"full-width"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName"],["matInput","","name","password","type","password","formControlName","password"],["matInput","","name","dbname","type","text","formControlName","dbName"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-radio-group",1),kn("ngModelChange",function(a){return Ln(o.selectedOption,a)||(o.selectedOption=a),a}),y(2,Ode,2,2,"mat-radio-button",2),l()(),d(3,"div",3)(4,"div",4),y(5,Fde,20,6,"div",5)(6,Bde,35,3,"div",5),l()()),2&i&&(m(),Sn("ngModel",o.selectedOption),m(),f("ngForOf",o.inputOptions),m(3),f("ngIf","dumpFile"===o.selectedOption),m(),f("ngIf","directConnect"===o.selectedOption))},dependencies:[dn,Tt,Yt,Ii,Ri,Pi,tw,iw,on,En,Oi,xi,Ui,Ai,Yi,mo,xn,Pl,ng,og,ad]})}return t})();function jde(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",7),D(3,"mat-spinner",8),l(),d(4,"span",9),h(5,"Cleaning up resources"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}let zde=(()=>{class t{constructor(e,i,o,r){this.data=e,this.fetch=i,this.snack=o,this.dialogRef=r,this.sourceAndTargetDetails={SpannerDatabaseName:"",SpannerDatabaseUrl:"",SourceDatabaseName:"",SourceDatabaseType:""},this.cleaningUp=!1,this.sourceAndTargetDetails={SourceDatabaseName:e.SourceDatabaseName,SourceDatabaseType:e.SourceDatabaseType,SpannerDatabaseName:e.SpannerDatabaseName,SpannerDatabaseUrl:e.SpannerDatabaseUrl}}ngOnInit(){}cleanUpJobs(){this.cleaningUp=!0,this.fetch.cleanUpStreamingJobs().subscribe({next:()=>{this.cleaningUp=!1,this.snack.openSnackBar("Dataflow and datastream jobs will be cleaned up","Close"),this.dialogRef.close()},error:e=>{this.cleaningUp=!1,this.snack.openSnackBar(e.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(Qn),_(ir),_(On))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-end-migration"]],decls:46,vars:7,consts:[[1,"end-migration-dialog"],["target","_blank",3,"href"],["href","https://github.com/GoogleCloudPlatform/professional-services-data-validator","target","_blank"],[4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close","",3,"disabled"],["mat-raised-button","","color","primary",3,"disabled","click"],[1,"spinner"],[3,"diameter"],[1,"spinner-small-text"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),h(2,"End Migration"),l(),d(3,"div")(4,"b"),h(5,"Source database:"),l(),h(6),D(7,"br"),d(8,"b"),h(9,"Spanner database:"),l(),d(10,"a",1),h(11),l()(),D(12,"br"),d(13,"div")(14,"b"),h(15,"Please follow these steps to complete the migration:"),l(),d(16,"ol")(17,"li"),h(18,"Validate that the schema has been created on Spanner as per the configuration"),l(),d(19,"li"),h(20,"Validate the data has been copied from the Source to Spanner. You can use the "),d(21,"a",2),h(22,"Data Validation Tool"),l(),h(23," to help with this process."),l(),d(24,"li"),h(25,"Stop the writes to the source database. "),d(26,"b"),h(27,"This will initiate a period of downtime."),l()(),d(28,"li"),h(29,"Wait for any incremental writes on source since the validation started on Spanner to catch up with the source. This can be done by periodically checking the Spanner Database for the most recent updates on source."),l(),d(30,"li"),h(31,"Once the Source and Spanner are in sync, start the application with Spanner as the Database."),l(),d(32,"li"),h(33,"Perform smoke tests on your application to ensure it is working properly on Spanner"),l(),d(34,"li"),h(35,"Cutover the traffic to the application with Spanner as the Database. "),d(36,"b"),h(37,"This marks the end of the period of downtime"),l()(),d(38,"li"),h(39,"Cleanup the migration jobs by clicking the button below."),l()()(),y(40,jde,7,1,"div",3),d(41,"div",4)(42,"button",5),h(43,"Cancel"),l(),d(44,"button",6),N("click",function(){return o.cleanUpJobs()}),h(45,"Clean Up"),l()()()),2&i&&(m(6),fl(" ",o.sourceAndTargetDetails.SourceDatabaseName,"(",o.sourceAndTargetDetails.SourceDatabaseType,") "),m(4),f("href",o.sourceAndTargetDetails.SpannerDatabaseUrl,Uo),m(),Fe(o.sourceAndTargetDetails.SpannerDatabaseName),m(29),f("ngIf",o.cleaningUp),m(2),f("disabled",o.cleaningUp),m(2),f("disabled",o.cleaningUp))},dependencies:[Tt,Yt,mo,er,ad]})}return t})(),Hde=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.disablePresetFlags=!0,this.tunableFlagsForm=new ei({vpcHostProjectId:new Z(e.GCPProjectID,ce.required),network:new Z(""),subnetwork:new Z(""),maxWorkers:new Z("50",[ce.required,ce.pattern("^[1-9][0-9]*$")]),numWorkers:new Z("1",[ce.required,ce.pattern("^[1-9][0-9]*$")]),machineType:new Z("n1-standard-2",[ce.required]),serviceAccountEmail:new Z(""),additionalUserLabels:new Z("",[ce.pattern('^{("([0-9a-zA-Z_-]+)":"([0-9a-zA-Z_-]+)",?)+}$')]),kmsKeyName:new Z("",[ce.pattern("^projects\\/[^\\n\\r]+\\/locations\\/[^\\n\\r]+\\/keyRings\\/[^\\n\\r]+\\/cryptoKeys\\/[^\\n\\r]+$")])}),this.presetFlagsForm=new ei({dataflowProjectId:new Z(e.GCPProjectID),dataflowLocation:new Z(""),gcsTemplatePath:new Z("",[ce.pattern("^gs:\\/\\/[^\\n\\r]+$")])}),this.presetFlagsForm.disable()}ngOnInit(){}updateDataflowDetails(){let e=this.tunableFlagsForm.value;localStorage.setItem("network",e.network),localStorage.setItem("subnetwork",e.subnetwork),localStorage.setItem("vpcHostProjectId",e.vpcHostProjectId),localStorage.setItem("maxWorkers",e.maxWorkers),localStorage.setItem("numWorkers",e.numWorkers),localStorage.setItem("serviceAccountEmail",e.serviceAccountEmail),localStorage.setItem("machineType",e.machineType),localStorage.setItem("additionalUserLabels",e.additionalUserLabels),localStorage.setItem("kmsKeyName",e.kmsKeyName),localStorage.setItem("dataflowProjectId",this.presetFlagsForm.value.dataflowProjectId),localStorage.setItem("dataflowLocation",this.presetFlagsForm.value.dataflowLocation),localStorage.setItem("gcsTemplatePath",this.presetFlagsForm.value.gcsTemplatePath),localStorage.setItem("isDataflowConfigSet","true"),this.dialofRef.close()}enablePresetFlags(){this.disablePresetFlags=!1,this.presetFlagsForm.enable()}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(On))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-dataflow-form"]],decls:109,vars:16,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["matTooltip","Edit to run Dataflow in a VPC",1,"mat-row"],["appearance","outline","matTooltip","Specify the host project Id of the VPC network. For shared VPC, this needs to be edited to the correct host project id.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Host ProjectID","type","text","formControlName","vpcHostProjectId"],["href","https://cloud.google.com/vpc/docs/create-modify-vpc-networks#create-auto-network","target","_blank"],["appearance","outline","matTooltip","Specify the network name for the VPC",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Network Name","type","text","formControlName","network"],["appearance","outline","matTooltip","Specify the subnetwork name for the VPC. Provide only the subnetwork name and NOT the full URL for subnetwork.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Subnetwork Name","type","text","formControlName","subnetwork"],["matTooltip","Set performance parameters of the Dataflow job(s)",1,"mat-row"],["appearance","outline","matTooltip","Set maximum workers for the dataflow job(s). Default value: 50",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","50","type","text","formControlName","maxWorkers"],["appearance","outline","matTooltip","Set initial number of workers for the dataflow job(s). Default value: 1",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","1","type","text","formControlName","numWorkers"],["appearance","outline","matTooltip","The machine type to use for the job. Default machine type: n1-standard-2.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Machine Type","type","text","formControlName","machineType"],["href","https://cloud.google.com/compute/docs/machine-resource","target","_blank"],["appearance","outline","matTooltip","Set the service account to run the dataflow job(s) as",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Service Account Email","type","text","formControlName","serviceAccountEmail"],["appearance","outline","matTooltip",'Additional user labels to be specified for the job. Enter a json of "key": "value" pairs. Example: {"name": "wrench", "mass": "1kg", "count": "3" }.',1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Additional User Labels","type","text","formControlName","additionalUserLabels"],["appearance","outline","matTooltip","Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings //cryptoKeys/. Omit this field to use Google Managed Encryption Keys.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","KMS Key Name","type","text","formControlName","kmsKeyName"],["mat-button","",1,"edit-button",3,"disabled","click"],["appearance","outline","matTooltip","Specify the project to run the dataflow job in.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Dataflow Project Id","type","text","formControlName","dataflowProjectId"],["appearance","outline","matTooltip","Specify the region to run the dataflow job in. It is recommended to keep the region same as Spanner region for performance. Example: us-central1",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Dataflow Location","type","text","formControlName","dataflowLocation"],["appearance","outline","matTooltip","Cloud Storage path to the template spec. Use this to run launch dataflow with custom templates. Example: gs://my-bucket/path/to/template",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","GCS Template Path","type","text","formControlName","gcsTemplatePath"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Tune Dataflow (Optional)"),l(),d(4,"h5"),h(5,"This form is optional and should only be edited to tune runtime environment for Dataflow."),l(),d(6,"mat-expansion-panel")(7,"mat-expansion-panel-header",2)(8,"span"),h(9,"Networking"),l()(),d(10,"div")(11,"mat-form-field",3)(12,"mat-label"),h(13,"VPC Host ProjectID"),l(),D(14,"input",4),l(),D(15,"br"),d(16,"h5"),h(17," - Provide "),d(18,"b"),h(19,"ONLY"),l(),h(20," the VPC subnetwork if unsure about what VPC network to use. Dataflow chooses the network for you. "),D(21,"br"),h(22," - If you are using an "),d(23,"a",5),h(24,"auto mode network"),l(),h(25,", provide ONLY the network name and skip the VPC subnetwork. "),l(),d(26,"mat-form-field",6)(27,"mat-label"),h(28,"VPC Network"),l(),D(29,"input",7),l(),D(30,"br"),d(31,"mat-form-field",8)(32,"mat-label"),h(33,"VPC Subnetwork"),l(),D(34,"input",9),l()()(),D(35,"br"),d(36,"mat-expansion-panel")(37,"mat-expansion-panel-header",10)(38,"span"),h(39,"Performance"),l()(),d(40,"div")(41,"mat-form-field",11)(42,"mat-label"),h(43,"Max Workers"),l(),D(44,"input",12),l(),D(45,"br"),d(46,"mat-form-field",13)(47,"mat-label"),h(48,"Initial Number of Workers"),l(),D(49,"input",14),l(),D(50,"br"),d(51,"mat-form-field",15)(52,"mat-label"),h(53,"Machine Type"),l(),D(54,"input",16),l(),d(55,"h5"),h(56,"Find the list of all machine types "),d(57,"a",17),h(58,"here"),l(),h(59,"."),l()()(),D(60,"br"),d(61,"mat-form-field",18)(62,"mat-label"),h(63,"Service Account Email"),l(),D(64,"input",19),l(),D(65,"br"),d(66,"mat-form-field",20)(67,"mat-label"),h(68,"Additional User Labels"),l(),D(69,"input",21),l(),D(70,"br"),d(71,"mat-form-field",22)(72,"mat-label"),h(73,"KMS Key Name"),l(),D(74,"input",23),l()(),D(75,"hr"),d(76,"form",1)(77,"h2"),h(78," Preset Flags "),d(79,"span")(80,"button",24),N("click",function(){return o.enablePresetFlags()}),d(81,"mat-icon"),h(82,"edit"),l(),h(83," EDIT "),l()()(),d(84,"h5"),h(85,"These flags are set by SMT by default and "),d(86,"b"),h(87,"SHOULD NOT BE"),l(),h(88," modified unless running Dataflow in a non-standard configuration. To edit these parameters, click the edit button above."),l(),D(89,"br"),d(90,"mat-form-field",25)(91,"mat-label"),h(92,"Dataflow Project Id"),l(),D(93,"input",26),l(),D(94,"br"),d(95,"mat-form-field",27)(96,"mat-label"),h(97,"Dataflow Location"),l(),D(98,"input",28),l(),D(99,"br"),d(100,"mat-form-field",29)(101,"mat-label"),h(102,"GCS Template Path"),l(),D(103,"input",30),l()(),d(104,"div",31)(105,"button",32),h(106,"Cancel"),l(),d(107,"button",33),N("click",function(){return o.updateDataflowDetails()}),h(108," Save "),l()()()),2&i&&(m(),f("formGroup",o.tunableFlagsForm),m(10),f("matTooltipPosition","right"),m(15),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(10),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(10),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("formGroup",o.presetFlagsForm),m(4),f("disabled",!o.disablePresetFlags),m(10),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(7),f("disabled",o.tunableFlagsForm.invalid||o.presetFlagsForm.invalid))},dependencies:[Yt,Ii,Ri,Pi,on,En,Oi,xi,Ui,Ai,Yi,Cw,fP,mo,Jo,er,xn],styles:[".edit-button[_ngcontent-%COMP%]{color:#3367d6}"]})}return t})();function Ude(t,n){1&t&&(d(0,"mat-form-field",8)(1,"mat-label"),h(2,"Max Concurrent CDC Tasks"),l(),D(3,"input",9),l()),2&t&&f("matTooltipPosition","right")}let $de=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.isCdcTuningSupported=!0,this.datastreamForm=new ei({maxConcurrentBackfillTasks:new Z("50",[ce.required,ce.pattern("^[1-9][0-9]*$"),ce.min(1),ce.max(50)]),maxConcurrentCdcTasks:new Z("5",[ce.required,ce.pattern("^[1-9][0-9]*$"),ce.min(1),ce.max(50)])}),this.isCdcTuningSupported=e.sourceType!=Oa.Postgres.toLowerCase()}ngOnInit(){}updateDatastreamDetails(){let e=this.datastreamForm.value;localStorage.setItem("maxConcurrentBackfillTasks",e.maxConcurrentBackfillTasks),localStorage.setItem("maxConcurrentCdcTasks",e.maxConcurrentCdcTasks),localStorage.setItem("isDatastreamConfigSet","true"),this.dialofRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(On))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-tune-datastream-form"]],decls:17,vars:4,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream backfill. Default: 50",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Max Concurrent Backfill Tasks","type","text","formControlName","maxConcurrentBackfillTasks"],["class","full-width","appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream CDC. Default: 5",3,"matTooltipPosition",4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],["appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream CDC. Default: 5",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Max Concurrent CDC Tasks","type","text","formControlName","maxConcurrentCdcTasks"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Tune Datastream (Optional)"),l(),d(4,"h5"),h(5,"This form is optional and should only be edited to tune runtime environment for Datastream."),l(),d(6,"mat-form-field",2)(7,"mat-label"),h(8,"Max Concurrent Backfill Tasks"),l(),D(9,"input",3),l(),D(10,"br"),y(11,Ude,4,1,"mat-form-field",4),l(),d(12,"div",5)(13,"button",6),h(14,"Cancel"),l(),d(15,"button",7),N("click",function(){return o.updateDatastreamDetails()}),h(16," Save "),l()()()),2&i&&(m(),f("formGroup",o.datastreamForm),m(5),f("matTooltipPosition","right"),m(5),f("ngIf",o.isCdcTuningSupported),m(4),f("disabled",!o.datastreamForm.valid))},dependencies:[Tt,Yt,Ri,Pi,on,En,Oi,xi,Ui,Ai,Yi,mo,Jo,er,xn]})}return t})();function Gde(t,n){1&t&&(d(0,"mat-form-field",7)(1,"mat-label"),h(2,"TTL in days"),l(),D(3,"input",8),l()),2&t&&f("matTooltipPosition","right")}let Wde=(()=>{class t{constructor(e){this.dialofRef=e,this.ttlInDaysSet=!1,this.gcsForm=new ei({ttlInDays:new Z("",[ce.required,ce.pattern("^([1-9][0-9]*$)"),ce.min(1),ce.max(1e8)])})}ngOnInit(){}updateGcsDetails(){this.ttlInDaysSet?(localStorage.setItem("ttlInDays",this.gcsForm.value.ttlInDays),localStorage.setItem("ttlInDaysSet","true")):(localStorage.setItem("ttlInDays","0"),localStorage.setItem("ttlInDaysSet","false")),localStorage.setItem("isGcsConfigSet","true"),this.dialofRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(On))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-tune-gcs-form"]],decls:15,vars:5,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["color","primary","matTooltip","Set the TTL (in days) for GCS data written by Datastream. This sets the GCS lifecycle to delete the objects after specified number of days.",3,"matTooltipPosition","checked","change"],["class","ttl-input","appearance","outline","matTooltip","Set the TTL in days",3,"matTooltipPosition",4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],["appearance","outline","matTooltip","Set the TTL in days",1,"ttl-input",3,"matTooltipPosition"],["matInput","","type","text","formControlName","ttlInDays"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Tune Google Cloud Storage (Optional)"),l(),d(4,"h5"),h(5,"This form is optional and should only be edited to tune the Cloud Storage bucket used by Datastream to store Change Records, specified by the destination connection profile"),l(),d(6,"mat-checkbox",2),N("change",function(){return o.ttlInDaysSet=!o.ttlInDaysSet}),h(7," Set TTL for data "),l(),D(8,"br"),y(9,Gde,4,1,"mat-form-field",3),l(),d(10,"div",4)(11,"button",5),h(12,"Cancel"),l(),d(13,"button",6),N("click",function(){return o.updateGcsDetails()}),h(14," Save "),l()()()),2&i&&(m(),f("formGroup",o.gcsForm),m(5),f("matTooltipPosition","right")("checked",o.ttlInDaysSet),m(3),f("ngIf",o.ttlInDaysSet),m(4),f("disabled",o.ttlInDaysSet&&o.gcsForm.invalid))},dependencies:[Tt,Yt,Ri,Pi,on,En,Oi,xi,Ui,Ai,Yi,mo,Jo,er,xn,Jf],styles:[".ttl-input[_ngcontent-%COMP%]{padding-left:10%}"]})}return t})(),qde=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.gcloudCmd=e}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(On))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-equivalent-gcloud-command"]],decls:12,vars:2,consts:[["mat-dialog-content",""],["matTooltip","This is the gcloud command to launch the dataflow job with the same parameters. Can be used to re-run a dataflow job manually in case of failure.",1,"configure"],[1,"left-text"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","color","primary",3,"cdkCopyToClipboard"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),h(2,"Equivalent gcloud command line"),d(3,"mat-icon",1),h(4," info"),l()(),d(5,"span",2),h(6),l(),d(7,"div",3)(8,"button",4),h(9,"Close"),l(),d(10,"button",5),h(11,"Copy"),l()()()),2&i&&(m(6),Fe(o.gcloudCmd),m(4),f("cdkCopyToClipboard",o.gcloudCmd))},dependencies:[Yt,Ii,mo,Jo,er,xn,qw]})}return t})();function Kde(t,n){if(1&t&&(d(0,"mat-option",14),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.displayName," ")}}function Zde(t,n){1&t&&(d(0,"div",15)(1,"mat-form-field",4)(2,"mat-label"),h(3,"Paste JSON Configuration"),l(),D(4,"textarea",16,17),l()())}function Yde(t,n){1&t&&(d(0,"div",18)(1,"mat-form-field",19)(2,"mat-label"),h(3,"Hostname"),l(),D(4,"input",20),l(),d(5,"mat-form-field",19)(6,"mat-label"),h(7,"Port"),l(),D(8,"input",21),d(9,"mat-error"),h(10," Only numbers are allowed. "),l()(),D(11,"br"),d(12,"mat-form-field",19)(13,"mat-label"),h(14,"User name"),l(),D(15,"input",22),l(),d(16,"mat-form-field",19)(17,"mat-label"),h(18,"Password"),l(),D(19,"input",23),l(),D(20,"br"),d(21,"mat-form-field",19)(22,"mat-label"),h(23,"Database Name"),l(),D(24,"input",24),l(),D(25,"br"),d(26,"mat-form-field",19)(27,"mat-label"),h(28,"Shard ID"),l(),D(29,"input",25),l(),D(30,"br"),l())}function Qde(t,n){if(1&t){const e=ge();d(0,"button",26),N("click",function(){return ae(e),se(w().saveDetailsAndReset())}),h(1," ADD MORE SHARDS "),l()}2&t&&f("disabled",w().directConnectForm.invalid)}function Xde(t,n){if(1&t&&(d(0,"div",27)(1,"span",28),h(2),l(),d(3,"mat-icon",29),h(4," error "),l()()),2&t){const e=w();m(2),Fe(e.errorMsg),m(),f("matTooltip",e.errorMsg)}}let Jde=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.dataService=o,this.dialogRef=r,this.data=a,this.errorMsg="",this.shardConnDetailsList=[],this.sourceConnDetails={dbConfigs:[],isRestoredSession:""},this.shardSessionDetails={sourceDatabaseEngine:"",isRestoredSession:""},this.inputOptionsList=[{value:"text",displayName:"Text"},{value:"form",displayName:"Form"}],this.shardSessionDetails={sourceDatabaseEngine:a.sourceDatabaseEngine,isRestoredSession:a.isRestoredSession};let s={dbEngine:"",isSharded:!1,hostName:"",port:"",userName:"",password:"",dbName:""};localStorage.getItem(rn.Type)==Yn.DirectConnect&&null!=localStorage.getItem(rn.Config)&&(s=JSON.parse(localStorage.getItem(rn.Config))),this.directConnectForm=new ei({inputType:new Z("form",[ce.required]),textInput:new Z(""),hostName:new Z(s.hostName,[ce.required]),port:new Z(s.port,[ce.required]),userName:new Z(s.userName,[ce.required]),dbName:new Z(s.dbName,[ce.required]),password:new Z(s.password),shardId:new Z("",[ce.required])})}ngOnInit(){this.initFromLocalStorage()}initFromLocalStorage(){}setValidators(e){if("text"==e){for(const i in this.directConnectForm.controls)this.directConnectForm.get(i)?.clearValidators(),this.directConnectForm.get(i)?.updateValueAndValidity();this.directConnectForm.get("textInput")?.setValidators([ce.required]),this.directConnectForm.controls.textInput.updateValueAndValidity()}else this.directConnectForm.get("hostName")?.setValidators([ce.required]),this.directConnectForm.controls.hostName.updateValueAndValidity(),this.directConnectForm.get("port")?.setValidators([ce.required]),this.directConnectForm.controls.port.updateValueAndValidity(),this.directConnectForm.get("userName")?.setValidators([ce.required]),this.directConnectForm.controls.userName.updateValueAndValidity(),this.directConnectForm.get("dbName")?.setValidators([ce.required]),this.directConnectForm.controls.dbName.updateValueAndValidity(),this.directConnectForm.get("password")?.setValidators([ce.required]),this.directConnectForm.controls.password.updateValueAndValidity(),this.directConnectForm.get("shardId")?.setValidators([ce.required]),this.directConnectForm.controls.shardId.updateValueAndValidity(),this.directConnectForm.controls.textInput.clearValidators(),this.directConnectForm.controls.textInput.updateValueAndValidity()}determineFormValidity(){return this.shardConnDetailsList.length>0||!!this.directConnectForm.valid}saveDetailsAndReset(){const{hostName:e,port:i,userName:o,password:r,dbName:a,shardId:s}=this.directConnectForm.value;this.shardConnDetailsList.push({dbEngine:this.shardSessionDetails.sourceDatabaseEngine,isSharded:!1,hostName:e,port:i,userName:o,password:r,dbName:a,shardId:s}),this.directConnectForm=new ei({inputType:new Z("form",ce.required),textInput:new Z(""),hostName:new Z(""),port:new Z(""),userName:new Z(""),dbName:new Z(""),password:new Z(""),shardId:new Z("")}),this.setValidators("form"),this.snack.openSnackBar("Shard configured successfully, please configure the next","Close",5)}finalizeConnDetails(){if("form"===this.directConnectForm.value.inputType){const{hostName:i,port:o,userName:r,password:a,dbName:s,shardId:c}=this.directConnectForm.value;this.shardConnDetailsList.push({dbEngine:this.shardSessionDetails.sourceDatabaseEngine,isSharded:!1,hostName:i,port:o,userName:r,password:a,dbName:s,shardId:c}),this.sourceConnDetails.dbConfigs=this.shardConnDetailsList}else{try{this.sourceConnDetails.dbConfigs=JSON.parse(this.directConnectForm.value.textInput)}catch{throw this.errorMsg="Unable to parse JSON",new Error(this.errorMsg)}this.sourceConnDetails.dbConfigs.forEach(i=>{i.dbEngine=this.shardSessionDetails.sourceDatabaseEngine})}this.sourceConnDetails.isRestoredSession=this.shardSessionDetails.isRestoredSession,this.fetch.setShardsSourceDBDetailsForBulk(this.sourceConnDetails).subscribe({next:()=>{localStorage.setItem(me.NumberOfShards,this.sourceConnDetails.dbConfigs.length.toString()),localStorage.setItem(me.NumberOfInstances,this.sourceConnDetails.dbConfigs.length.toString()),localStorage.setItem(me.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:i=>{this.errorMsg=i.error}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Qn),_(ir),_($i),_(On),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sharded-bulk-source-details-form"]],decls:23,vars:7,consts:[[1,"connect-load-database-container"],[1,"form-container"],[1,"shard-bulk-form",3,"formGroup"],[1,"primary-header"],["appearance","outline"],["formControlName","inputType",3,"selectionChange"],["inputType",""],[3,"value",4,"ngFor","ngForOf"],["class","textInput",4,"ngIf"],["class","formInput",4,"ngIf"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","accent",3,"disabled","click",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["class","failure",4,"ngIf"],[3,"value"],[1,"textInput"],["name","textInput","formControlName","textInput","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","20"],["autosize","cdkTextareaAutosize"],[1,"formInput"],["appearance","outline",1,"full-width"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName"],["matInput","","name","password","type","password","formControlName","password"],["matInput","","name","dbname","type","text","formControlName","dbName"],["matInput","","name","shardId","type","text","formControlName","shardId"],["mat-raised-button","","type","submit","color","accent",3,"disabled","click"],[1,"failure"],[1,"left-text"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"]],template:function(i,o){if(1&i){const r=ge();d(0,"div",0)(1,"div",1)(2,"form",2)(3,"h4",3),h(4,"Add Data Shard Connection Details"),l(),d(5,"b"),h(6,"Note: Please configure the schema source used for schema conversion if you want Spanner migration tool to migrate data from it as well."),l(),D(7,"br")(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),h(11,"Input Type"),l(),d(12,"mat-select",5,6),N("selectionChange",function(){ae(r);const s=Rt(13);return se(o.setValidators(s.value))}),y(14,Kde,2,2,"mat-option",7),l()(),y(15,Zde,6,0,"div",8)(16,Yde,31,0,"div",9),d(17,"button",10),h(18,"CANCEL"),l(),y(19,Qde,2,1,"button",11),d(20,"button",12),N("click",function(){return o.finalizeConnDetails()}),h(21," FINISH "),l(),y(22,Xde,5,2,"div",13),l()()()}2&i&&(m(2),f("formGroup",o.directConnectForm),m(12),f("ngForOf",o.inputOptionsList),m(),f("ngIf","text"===o.directConnectForm.value.inputType),m(),f("ngIf","form"===o.directConnectForm.value.inputType),m(3),f("ngIf","form"===o.directConnectForm.value.inputType),m(),f("disabled",!o.determineFormValidity()),m(2),f("ngIf",""!=o.errorMsg))},dependencies:[dn,Tt,Yt,Ii,Ri,Pi,tw,on,FA,uo,In,En,Oi,xi,Ui,Ai,Yi,mo,xn]})}return t})();function eue(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.displayName," ")}}function tue(t,n){if(1&t&&(d(0,"div",19)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),h(4,"Total Configured Shards"),l(),d(5,"mat-card-subtitle"),h(6),l(),d(7,"mat-card-subtitle"),h(8),l()()()()),2&t){const e=w();m(6),Me("",e.physicalShards," physical instances configured."),m(2),Me("",e.logicalShards," logical shards configured.")}}function iue(t,n){1&t&&(d(0,"div",20)(1,"mat-form-field",21)(2,"mat-label"),h(3,"Paste JSON Configuration"),l(),D(4,"textarea",22,23),l()())}function nue(t,n){if(1&t&&(d(0,"li",26)(1,"span",27),h(2),l(),d(3,"span")(4,"mat-icon",28),h(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Fe(e),m(2),f("cdkCopyToClipboard",e)}}function oue(t,n){if(1&t&&(d(0,"div",20)(1,"div")(2,"b"),h(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",24),h(5,"Learn More"),l()(),D(6,"br"),y(7,nue,6,2,"li",25),l()),2&t){const e=w();m(7),f("ngForOf",e.ipList)}}function rue(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2,"JSON Verification failed"),l(),d(3,"mat-icon",30),h(4," error "),l()()),2&t){const e=w();m(3),f("matTooltip",e.errorVerMsg)}}function aue(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Validating Resources"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function sue(t,n){1&t&&(d(0,"mat-icon",34),h(1," check_circle "),l())}function cue(t,n){if(1&t){const e=ge();d(0,"div",20)(1,"button",35),N("click",function(){return ae(e),se(w().verifyTextJson())}),h(2,"VERIFY JSON"),l()()}if(2&t){const e=w();m(),f("disabled",!e.migrationProfileForm.valid||e.verifyingJson)}}function lue(t,n){if(1&t){const e=ge();d(0,"mat-radio-button",48),N("change",function(){const r=ae(e).$implicit;return se(w(2).onItemChange(r.value,"source"))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.display,"")}}function due(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayName),m(),Me(" ",e.DisplayName," ")}}function uue(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),h(3,"Select source connection profile"),l(),d(4,"mat-select",49),y(5,due,2,2,"mat-option",8),l()(),d(6,"mat-form-field",5)(7,"mat-label"),h(8,"Data Shard Id"),l(),D(9,"input",50),l()()),2&t){const e=w(2);m(5),f("ngForOf",e.sourceProfileList),m(4),f("value",e.inputValue)}}function hue(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),h(3,"Host"),l(),D(4,"input",51),l(),d(5,"mat-form-field",5)(6,"mat-label"),h(7,"User"),l(),D(8,"input",52),l(),d(9,"mat-form-field",5)(10,"mat-label"),h(11,"Port"),l(),D(12,"input",53),l(),d(13,"mat-form-field",5)(14,"mat-label"),h(15,"Password"),l(),D(16,"input",54),l(),d(17,"mat-form-field",55)(18,"mat-label"),h(19,"Connection profile name"),l(),D(20,"input",56),l(),d(21,"mat-form-field",5)(22,"mat-label"),h(23,"Data Shard Id"),l(),D(24,"input",50),l()()),2&t){const e=w(2);m(24),f("value",e.inputValue)}}function mue(t,n){if(1&t&&(d(0,"li",26)(1,"span",27),h(2),l(),d(3,"span")(4,"mat-icon",28),h(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Fe(e),m(2),f("cdkCopyToClipboard",e)}}function pue(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2,"Test connection failed"),l(),d(3,"mat-icon",30),h(4," error "),l()()),2&t){const e=w(3);m(3),f("matTooltip",e.errorSrcMsg)}}function fue(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Testing Connection"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function gue(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Creating source connection profile"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function _ue(t,n){1&t&&(d(0,"mat-icon",60),h(1," check_circle "),l())}function bue(t,n){1&t&&(d(0,"mat-icon",61),h(1," check_circle "),l())}function vue(t,n){if(1&t){const e=ge();d(0,"div")(1,"div")(2,"b"),h(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",24),h(5,"Learn More"),l()(),D(6,"br"),y(7,mue,6,2,"li",25)(8,pue,5,1,"div",11),D(9,"br"),y(10,fue,7,1,"div",12)(11,gue,7,1,"div",12)(12,_ue,2,0,"mat-icon",57),d(13,"button",35),N("click",function(){return ae(e),se(w(2).createOrTestConnection(!0,!0))}),h(14,"TEST CONNECTION"),l(),y(15,bue,2,0,"mat-icon",58),d(16,"button",59),N("click",function(){return ae(e),se(w(2).createOrTestConnection(!0,!1))}),h(17,"CREATE PROFILE"),l()()}if(2&t){const e=w(2);m(7),f("ngForOf",e.ipList),m(),f("ngIf",!e.testSuccess&&""!=e.errorSrcMsg),m(2),f("ngIf",e.testingSourceConnection),m(),f("ngIf",e.creatingSourceConnection),m(),f("ngIf",e.testSuccess),m(),f("disabled",!e.determineConnectionProfileInfoValidity()||e.testingSourceConnection),m(2),f("ngIf",e.createSrcConnSuccess),m(),f("disabled",!e.testSuccess||e.creatingSourceConnection)}}function yue(t,n){if(1&t){const e=ge();Ce(0),d(1,"div",62)(2,"mat-form-field",5)(3,"mat-label"),h(4,"Logical Shard ID"),l(),D(5,"input",63),l(),d(6,"mat-form-field",5)(7,"mat-label"),h(8,"Source Database Name"),l(),D(9,"input",64),l(),d(10,"mat-icon",65),N("click",function(){const r=ae(e).index;return se(w(2).deleteRow(r))}),h(11," delete_forever"),l()(),De()}if(2&t){const e=n.index;m(),f("formGroupName",e)}}function wue(t,n){if(1&t){const e=ge();d(0,"mat-radio-button",48),N("change",function(){const r=ae(e).$implicit;return se(w(2).onItemChange(r.value,"target"))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.display,"")}}function xue(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayName),m(),Me(" ",e.DisplayName," ")}}function Cue(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),h(3,"Select target connection profile"),l(),d(4,"mat-select",66),y(5,xue,2,2,"mat-option",8),l()()()),2&t){const e=w(2);m(5),f("ngForOf",e.targetProfileList)}}function Due(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Creating target connection profile"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function Sue(t,n){1&t&&(d(0,"mat-icon",61),h(1," check_circle "),l())}function kue(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2),l()()),2&t){const e=w(3);m(2),Fe(e.errorTgtMsg)}}function Tue(t,n){if(1&t){const e=ge();d(0,"div")(1,"mat-form-field",55)(2,"mat-label"),h(3,"Connection profile name"),l(),D(4,"input",67),l(),y(5,Due,7,1,"div",12)(6,Sue,2,0,"mat-icon",58),d(7,"button",59),N("click",function(){return ae(e),se(w(2).createOrTestConnection(!1,!1))}),h(8,"CREATE PROFILE"),l(),y(9,kue,3,1,"div",11),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.creatingTargetConnection),m(),f("ngIf",e.createTgtConnSuccess),m(),f("disabled",e.creatingTargetConnection),m(2),f("ngIf",""!=e.errorTgtMsg)}}function Mue(t,n){if(1&t){const e=ge();d(0,"div",20)(1,"span",36),h(2,"Configure Source Profile"),l(),d(3,"div",37)(4,"mat-radio-group",38),kn("ngModelChange",function(o){ae(e);const r=w();return Ln(r.selectedSourceProfileOption,o)||(r.selectedSourceProfileOption=o),se(o)}),y(5,lue,2,2,"mat-radio-button",39),l()(),D(6,"br"),y(7,uue,10,2,"div",12)(8,hue,25,1,"div",12),D(9,"br"),y(10,vue,18,8,"div",12),D(11,"hr"),d(12,"span",36),h(13,"Configure ShardId and Database Names"),l(),d(14,"mat-icon",40),h(15,"info"),l(),D(16,"br")(17,"br"),d(18,"span",41),Ce(19,42),y(20,yue,12,1,"ng-container",43),De(),l(),d(21,"div",44)(22,"button",45),N("click",function(){return ae(e),se(w().addRow())}),h(23,"ADD ROW"),l()(),D(24,"br")(25,"hr"),d(26,"span",36),h(27,"Configure Target Profile"),l(),d(28,"div",46)(29,"mat-radio-group",47),kn("ngModelChange",function(o){ae(e);const r=w();return Ln(r.selectedTargetProfileOption,o)||(r.selectedTargetProfileOption=o),se(o)}),y(30,wue,2,2,"mat-radio-button",39),l()(),D(31,"br"),y(32,Cue,6,1,"div",12)(33,Tue,10,4,"div",12),D(34,"hr"),l()}if(2&t){const e=w();m(4),Sn("ngModel",e.selectedSourceProfileOption),m(),f("ngForOf",e.profileOptions),m(2),f("ngIf","existing"===e.selectedSourceProfileOption),m(),f("ngIf","new"===e.selectedSourceProfileOption),m(2),f("ngIf","new"===e.selectedSourceProfileOption),m(10),f("ngForOf",e.shardMappingTable.controls),m(9),Sn("ngModel",e.selectedTargetProfileOption),m(),f("ngForOf",e.profileOptions),m(2),f("ngIf","existing"===e.selectedTargetProfileOption),m(),f("ngIf","new"===e.selectedTargetProfileOption)}}function Iue(t,n){if(1&t){const e=ge();d(0,"button",68),N("click",function(){return ae(e),se(w().saveDetailsAndReset())}),h(1," ADD MORE SHARDS "),l()}2&t&&f("disabled",!w().determineFormValidity())}function Eue(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2),l(),d(3,"mat-icon",30),h(4," error "),l()()),2&t){const e=w();m(2),Fe(e.errorMsg),m(),f("matTooltip",e.errorMsg)}}let Oue=(()=>{class t{constructor(e,i,o,r,a,s){this.fetch=e,this.snack=i,this.dataService=o,this.formBuilder=r,this.dialogRef=a,this.data=s,this.selectedProfile="",this.profileType="",this.sourceProfileList=[],this.targetProfileList=[],this.definedSrcConnProfileList=[],this.definedTgtConnProfileList=[],this.shardIdToDBMappingTable=[],this.dataShardIdList=[],this.ipList=[],this.selectedSourceProfileOption="existing",this.selectedTargetProfileOption="existing",this.profileOptions=[{value:"existing",display:"Choose an existing connection profile"},{value:"new",display:"Create a new connection profile"}],this.profileName="",this.errorMsg="",this.errorSrcMsg="",this.errorTgtMsg="",this.errorVerMsg="",this.sourceDatabaseType="",this.inputValue="",this.testSuccess=!1,this.verifyJson=!1,this.createSrcConnSuccess=!1,this.createTgtConnSuccess=!1,this.physicalShards=0,this.logicalShards=0,this.testingSourceConnection=!1,this.creatingSourceConnection=!1,this.creatingTargetConnection=!1,this.verifyingJson=!1,this.prefix="smt-datashard",this.inputOptionsList=[{value:"text",displayName:"Text"},{value:"form",displayName:"Form"}],this.region=s.Region,this.sourceDatabaseType=s.SourceDatabaseType,localStorage.getItem(rn.Type)==Yn.DirectConnect&&(this.schemaSourceConfig=JSON.parse(localStorage.getItem(rn.Config)));let u=this.formBuilder.group({logicalShardId:["",ce.required],dbName:["",ce.required]});this.inputValue=this.prefix+"-"+this.randomString(4)+"-"+this.randomString(4),this.migrationProfileForm=this.formBuilder.group({inputType:["form",ce.required],textInput:[""],sourceProfileOption:["new",ce.required],targetProfileOption:["new",ce.required],newSourceProfile:["",[ce.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingSourceProfile:[],newTargetProfile:["",ce.pattern("^[a-z][a-z0-9-]{0,59}$")],existingTargetProfile:[],host:[this.schemaSourceConfig?.hostName],user:[this.schemaSourceConfig?.userName],port:[this.schemaSourceConfig?.port],password:[this.schemaSourceConfig?.password],dataShardId:[this.inputValue,ce.required],shardMappingTable:this.formBuilder.array([u])}),this.migrationProfile={configType:"dataflow",shardConfigurationDataflow:{schemaSource:{host:this.schemaSourceConfig?.hostName,user:this.schemaSourceConfig?.userName,password:this.schemaSourceConfig?.password,port:this.schemaSourceConfig?.port,dbName:this.schemaSourceConfig?.dbName},dataShards:[]}}}ngOnInit(){this.getConnectionProfiles(!0),this.getConnectionProfiles(!1),this.getDatastreamIPs(),this.initFromLocalStorage()}initFromLocalStorage(){}get shardMappingTable(){return this.migrationProfileForm.controls.shardMappingTable}addRow(){let e=this.formBuilder.group({logicalShardId:["",ce.required],dbName:["",ce.required]});this.shardMappingTable.push(e)}deleteRow(e){this.shardMappingTable.removeAt(e)}getDatastreamIPs(){this.fetch.getStaticIps().subscribe({next:e=>{this.ipList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}getConnectionProfiles(e){this.fetch.getConnectionProfiles(e).subscribe({next:i=>{e?this.sourceProfileList=i.sort((o,r)=>o.DisplayName.localeCompare(r.DisplayName)):this.targetProfileList=i.sort((o,r)=>o.DisplayName.localeCompare(r.DisplayName))},error:i=>{this.snack.openSnackBar(i.error,"Close")}})}onItemChange(e,i){this.profileType=i,"source"===this.profileType?(this.selectedSourceProfileOption=e,"new"==this.selectedSourceProfileOption?(this.migrationProfileForm.get("newSourceProfile")?.setValidators([ce.required]),this.migrationProfileForm.controls.existingSourceProfile.clearValidators(),this.migrationProfileForm.controls.newSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingSourceProfile.updateValueAndValidity(),this.migrationProfileForm.get("host")?.setValidators([ce.required]),this.migrationProfileForm.controls.host.updateValueAndValidity(),this.migrationProfileForm.get("user")?.setValidators([ce.required]),this.migrationProfileForm.controls.user.updateValueAndValidity(),this.migrationProfileForm.get("port")?.setValidators([ce.required]),this.migrationProfileForm.controls.port.updateValueAndValidity(),this.migrationProfileForm.get("password")?.setValidators([ce.required]),this.migrationProfileForm.controls.password.updateValueAndValidity()):(this.migrationProfileForm.controls.newSourceProfile.clearValidators(),this.migrationProfileForm.get("existingSourceProfile")?.addValidators([ce.required]),this.migrationProfileForm.controls.newSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.host.clearValidators(),this.migrationProfileForm.controls.host.updateValueAndValidity(),this.migrationProfileForm.controls.user.clearValidators(),this.migrationProfileForm.controls.user.updateValueAndValidity(),this.migrationProfileForm.controls.port.clearValidators(),this.migrationProfileForm.controls.port.updateValueAndValidity(),this.migrationProfileForm.controls.password.clearValidators(),this.migrationProfileForm.controls.password.updateValueAndValidity())):(this.selectedTargetProfileOption=e,"new"==this.selectedTargetProfileOption?(this.migrationProfileForm.get("newTargetProfile")?.setValidators([ce.required]),this.migrationProfileForm.controls.existingTargetProfile.clearValidators(),this.migrationProfileForm.controls.newTargetProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingTargetProfile.updateValueAndValidity()):(this.migrationProfileForm.controls.newTargetProfile.clearValidators(),this.migrationProfileForm.get("existingTargetProfile")?.addValidators([ce.required]),this.migrationProfileForm.controls.newTargetProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingTargetProfile.updateValueAndValidity()))}setValidators(e){if("text"===e){for(const o in this.migrationProfileForm.controls)this.migrationProfileForm.controls[o].clearValidators(),this.migrationProfileForm.controls[o].updateValueAndValidity();this.migrationProfileForm.get("shardMappingTable").controls.forEach(o=>{const r=o,a=r.get("logicalShardId"),s=r.get("dbName");a?.clearValidators(),a?.updateValueAndValidity(),s?.clearValidators(),s?.updateValueAndValidity()}),this.migrationProfileForm.controls.textInput.setValidators([ce.required]),this.migrationProfileForm.controls.textInput.updateValueAndValidity()}else this.onItemChange("new","source"),this.onItemChange("new","target"),this.migrationProfileForm.controls.textInput.clearValidators(),this.migrationProfileForm.controls.textInput.updateValueAndValidity()}saveDetailsAndReset(){this.handleConnConfigsFromForm();let e=this.formBuilder.group({logicalShardId:["",ce.required],dbName:["",ce.required]});this.inputValue=this.prefix+"-"+this.randomString(4)+"-"+this.randomString(4),this.migrationProfileForm=this.formBuilder.group({inputType:["form",ce.required],textInput:[],sourceProfileOption:[this.selectedSourceProfileOption],targetProfileOption:[this.selectedTargetProfileOption],newSourceProfile:["",[ce.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingSourceProfile:[],newTargetProfile:["",ce.pattern("^[a-z][a-z0-9-]{0,59}$")],existingTargetProfile:[],host:[],user:[],port:[],password:[],dataShardId:[this.inputValue],shardMappingTable:this.formBuilder.array([e])}),this.testSuccess=!1,this.verifyJson=!1,this.createSrcConnSuccess=!1,this.createTgtConnSuccess=!1,this.snack.openSnackBar("Shard configured successfully, please configure the next","Close",5)}randomString(e){for(var o="",r=0;r{localStorage.setItem(me.IsSourceConnectionProfileSet,"true"),localStorage.setItem(me.IsTargetConnectionProfileSet,"true"),localStorage.setItem(me.NumberOfShards,this.determineTotalLogicalShardsConfigured().toString()),localStorage.setItem(me.NumberOfInstances,this.migrationProfile.shardConfigurationDataflow.dataShards.length.toString()),this.dialogRef.close()},error:o=>{this.errorMsg=o.error}})}determineTotalLogicalShardsConfigured(){let e=0;return this.migrationProfile.shardConfigurationDataflow.dataShards.forEach(i=>{e+=i.databases.length}),e}handleConnConfigsFromForm(){let e=this.migrationProfileForm.value;this.dataShardIdList.push(e.dataShardId),this.definedSrcConnProfileList.push("new"===this.selectedSourceProfileOption?{name:e.newSourceProfile,location:this.region}:{name:e.existingSourceProfile,location:this.region}),this.definedTgtConnProfileList.push("new"===this.selectedTargetProfileOption?{name:e.newTargetProfile,location:this.region}:{name:e.existingTargetProfile,location:this.region});let i=[];for(let o of this.shardMappingTable.controls)if(o instanceof ei){const r=o.value;i.push({dbName:r.dbName,databaseId:r.logicalShardId,refDataShardId:e.dataShardId})}this.shardIdToDBMappingTable.push(i),this.physicalShards++,this.logicalShards=this.logicalShards+i.length}determineFormValidity(){return!(!this.migrationProfileForm.valid||"new"===this.selectedSourceProfileOption&&!this.createSrcConnSuccess||"new"===this.selectedTargetProfileOption&&!this.createTgtConnSuccess||"text"===this.migrationProfileForm.value.inputType!==this.verifyJson)}determineFinishValidity(){return this.definedSrcConnProfileList.length>0||this.determineFormValidity()}determineConnectionProfileInfoValidity(){let e=this.migrationProfileForm.value;return null!=e.host&&null!=e.port&&null!=e.user&&null!=e.password&&null!=e.newSourceProfile}verifyTextJson(){this.verifyingJson=!0;let i,e=this.migrationProfileForm.value;try{i=JSON.parse(e.textInput)}catch(o){return o instanceof SyntaxError?(this.errorVerMsg=o.message,this.verifyJson=!1,void(this.verifyingJson=!1)):(this.errorVerMsg=`Unexpected error parsing json ${o}`,this.verifyJson=!1,void(this.verifyingJson=!1))}this.fetch.verifyJsonConfiguration(i).subscribe({next:()=>{this.verifyJson=!0,this.verifyingJson=!1},error:o=>{this.verifyJson=!1,this.verifyingJson=!1,this.errorVerMsg=o.message}})}createOrTestConnection(e,i){i?this.testingSourceConnection=!0:e?this.creatingSourceConnection=!0:this.creatingTargetConnection=!0;let r,o=this.migrationProfileForm.value;r=e?{Id:o.newSourceProfile,IsSource:!0,ValidateOnly:i,Host:o.host,Port:o.port,User:o.user,Password:o.password}:{Id:o.newTargetProfile,IsSource:!1,ValidateOnly:i},this.fetch.createConnectionProfile(r).subscribe({next:()=>{i?(this.testingSourceConnection=!1,this.testSuccess=!0):e?(this.createSrcConnSuccess=!0,this.errorSrcMsg="",this.creatingSourceConnection=!1):(this.createTgtConnSuccess=!0,this.errorTgtMsg="",this.creatingTargetConnection=!1)},error:a=>{i?(this.testingSourceConnection=!1,this.testSuccess=!1,this.errorSrcMsg=a.error):e?(this.createSrcConnSuccess=!1,this.errorSrcMsg=a.error,this.creatingSourceConnection=!1):(this.createTgtConnSuccess=!1,this.errorTgtMsg=a.error,this.creatingTargetConnection=!1)}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Qn),_(ir),_($i),_(_a),_(On),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sharded-dataflow-migration-details-form"]],viewQuery:function(i,o){if(1&i&&vt(Ww,5),2&i){let r;Oe(r=Ae())&&(o.paginator=r.first)}},decls:31,vars:13,consts:[["mat-dialog-content","",1,"connect-load-database-container"],[1,"conn-profile-form",3,"formGroup"],[1,"mat-h2","header-title"],[1,"top"],[1,"top-1"],["appearance","outline"],["formControlName","inputType",3,"selectionChange"],["inputType",""],[3,"value",4,"ngFor","ngForOf"],["class","top-2",4,"ngIf"],["class","textInput",4,"ngIf"],["class","failure",4,"ngIf"],[4,"ngIf"],["class","success","matTooltip","JSON Verification successful","matTooltipPosition","above",4,"ngIf"],[1,"last-btns"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","accent",3,"disabled","click",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],[3,"value"],[1,"top-2"],[1,"textInput"],["appearance","outline",1,"json-input"],["name","textInput","formControlName","textInput","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","20"],["autosize","cdkTextareaAutosize"],["href","https://cloud.google.com/datastream/docs/network-connectivity-options#ipallowlists","target","_blank"],["class","connection-form-container",4,"ngFor","ngForOf"],[1,"connection-form-container"],[1,"left-text"],["matTooltip","Copy",1,"icon","copy",3,"cdkCopyToClipboard"],[1,"failure"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],[1,"spinner"],[3,"diameter"],[1,"spinner-small-text"],["matTooltip","JSON Verification successful","matTooltipPosition","above",1,"success"],["mat-raised-button","","type","button","color","primary",3,"disabled","click"],[1,"mat-h4","header-title"],[1,"source-radio-button-container"],["formControlName","sourceProfileOption",1,"radio-button-container",3,"ngModel","ngModelChange"],["class","radio-button",3,"value","change",4,"ngFor","ngForOf"],["matTooltip","Logical Shard ID value will be used to populate the migration_shard_id column added as part of sharded database migration",1,"configure"],[1,"border"],["formArrayName","shardMappingTable"],[4,"ngFor","ngForOf"],[1,"table-buttons"],["mat-raised-button","","color","primary","type","button",3,"click"],[1,"target-radio-button-container"],["formControlName","targetProfileOption",1,"radio-button-container",3,"ngModel","ngModelChange"],[1,"radio-button",3,"value","change"],["formControlName","existingSourceProfile","required","true","ng-value","selectedProfile",1,"input-field"],["matInput","","type","text","formControlName","dataShardId","required","true","readonly","",3,"value"],["matInput","","placeholder","Host","type","text","formControlName","host","required","true"],["matInput","","placeholder","User","type","text","formControlName","user","required","true"],["matInput","","placeholder","Port","type","text","formControlName","port","required","true"],["matInput","","placeholder","Password","type","password","formControlName","password","required","true"],["appearance","outline","hintLabel","Name can include lower case letters, numbers and hyphens. Must start with a letter."],["matInput","","placeholder","Connection profile name","type","text","formControlName","newSourceProfile","required","true"],["class","success","matTooltip","Test connection successful","matTooltipPosition","above",4,"ngIf"],["class","success","matTooltip","Profile creation successful","matTooltipPosition","above",4,"ngIf"],["mat-raised-button","","type","button","color","warn",3,"disabled","click"],["matTooltip","Test connection successful","matTooltipPosition","above",1,"success"],["matTooltip","Profile creation successful","matTooltipPosition","above",1,"success"],[1,"shard-mapping-form-row",3,"formGroupName"],["matInput","","formControlName","logicalShardId","placeholder","Enter Logical ShardID"],["matInput","","formControlName","dbName","placeholder","Enter Database Name"],[1,"delete-btn",3,"click"],["formControlName","existingTargetProfile","required","true","ng-value","selectedProfile",1,"input-field"],["matInput","","placeholder","Connection profile name","type","text","formControlName","newTargetProfile","required","true"],["mat-raised-button","","type","submit","color","accent",3,"disabled","click"]],template:function(i,o){if(1&i){const r=ge();d(0,"div",0)(1,"form",1)(2,"span",2),h(3,"Datastream Details"),l(),D(4,"br"),d(5,"b"),h(6,"Note: Please configure the database used for schema conversion, if you want Spanner migration tool to migrate data from it as well."),l(),d(7,"div",3),h(8,"` "),d(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),h(12,"Input Type"),l(),d(13,"mat-select",6,7),N("selectionChange",function(){ae(r);const s=Rt(14);return se(o.setValidators(s.value))}),y(15,eue,2,2,"mat-option",8),l()()(),y(16,tue,9,2,"div",9),l(),y(17,iue,6,0,"div",10)(18,oue,8,1,"div",10)(19,rue,5,1,"div",11)(20,aue,7,1,"div",12)(21,sue,2,0,"mat-icon",13)(22,cue,3,1,"div",10)(23,Mue,35,10,"div",10),d(24,"div",14)(25,"button",15),h(26,"CANCEL"),l(),y(27,Iue,2,1,"button",16),d(28,"button",17),N("click",function(){return o.finalizeConnDetails()}),h(29," FINISH "),l(),y(30,Eue,5,2,"div",11),l()()()}2&i&&(m(),f("formGroup",o.migrationProfileForm),m(14),f("ngForOf",o.inputOptionsList),m(),f("ngIf","form"===o.migrationProfileForm.value.inputType),m(),f("ngIf","text"===o.migrationProfileForm.value.inputType),m(),f("ngIf","text"===o.migrationProfileForm.value.inputType),m(),f("ngIf",!o.verifyJson&&""!=o.errorVerMsg),m(),f("ngIf",o.verifyingJson),m(),f("ngIf",o.verifyJson),m(),f("ngIf","text"===o.migrationProfileForm.value.inputType),m(),f("ngIf","form"===o.migrationProfileForm.value.inputType),m(4),f("ngIf","form"===o.migrationProfileForm.value.inputType),m(),f("disabled",!o.determineFinishValidity()),m(2),f("ngIf",""!=o.errorMsg))},dependencies:[dn,Tt,Yt,Ii,Hu,pO,E0,I0,Ri,Pi,on,FA,uo,In,En,Oi,xi,Ui,Bo,Ai,Yi,Yu,Qu,mo,Jo,xn,ng,og,qw,ad],styles:[".icon[_ngcontent-%COMP%]{font-size:15px}.connection-form-container[_ngcontent-%COMP%]{display:block}.left-text[_ngcontent-%COMP%]{width:40%;display:inline-block}.shard-mapping-form-row[_ngcontent-%COMP%]{width:80%;margin-left:auto;margin-right:auto}.table-header[_ngcontent-%COMP%]{width:80%;margin:auto auto 10px;text-align:right;display:flex;align-items:center;justify-content:space-between}form[_ngcontent-%COMP%], .table-body[_ngcontent-%COMP%]{flex:auto;overflow-y:auto}.table-buttons[_ngcontent-%COMP%]{margin-left:70%}.radio-button-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:15px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:5px}.json-input[_ngcontent-%COMP%]{width:100%}.top[_ngcontent-%COMP%]{border:3px solid #fff;padding:20px}.top-1[_ngcontent-%COMP%]{width:60%;float:left}.top-2[_ngcontent-%COMP%]{width:40%;float:right;flex:auto}.last-btns[_ngcontent-%COMP%]{padding:20px;width:100%;float:left}"]})}return t})();function Aue(t,n){1&t&&(d(0,"h2"),h(1,"Source and Target Database definitions"),l())}function Pue(t,n){1&t&&(d(0,"h2"),h(1,"Source and Target Database definitions (per shard)"),l())}function Rue(t,n){1&t&&(d(0,"th",38),h(1,"Title"),l())}function Nue(t,n){if(1&t&&(d(0,"td",39)(1,"b"),h(2),l()()),2&t){const e=n.$implicit;m(2),Fe(e.title)}}function Fue(t,n){1&t&&(d(0,"th",38),h(1,"Source"),l())}function Lue(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.source)}}function Bue(t,n){1&t&&(d(0,"th",38),h(1,"Destination"),l())}function Vue(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.target)}}function jue(t,n){1&t&&D(0,"tr",40)}function zue(t,n){1&t&&D(0,"tr",41)}function Hue(t,n){if(1&t&&(d(0,"mat-option",42),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Me(" ",e," ")}}function Uue(t,n){if(1&t&&(d(0,"mat-option",42),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.name," ")}}function $ue(t,n){if(1&t){const e=ge();d(0,"div")(1,"mat-form-field",20)(2,"mat-label"),h(3,"Migration Type:"),l(),d(4,"mat-select",21),kn("ngModelChange",function(o){ae(e);const r=w();return Ln(r.selectedMigrationType,o)||(r.selectedMigrationType=o),se(o)}),N("selectionChange",function(){return ae(e),se(w().refreshPrerequisites())}),y(5,Uue,2,2,"mat-option",22),l()(),d(6,"mat-icon",23),h(7,"info"),l(),D(8,"br"),l()}if(2&t){const e=w();m(4),Sn("ngModel",e.selectedMigrationType),m(),f("ngForOf",e.migrationTypes),m(),f("matTooltip",e.migrationTypesHelpText.get(e.selectedMigrationType))}}function Gue(t,n){if(1&t&&(d(0,"mat-option",42),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Me(" ",e.displayName," ")}}function Wue(t,n){if(1&t){const e=ge();d(0,"div")(1,"mat-form-field",20)(2,"mat-label"),h(3,"Skip Foreign Key Creation:"),l(),d(4,"mat-select",43),kn("ngModelChange",function(o){ae(e);const r=w();return Ln(r.isForeignKeySkipped,o)||(r.isForeignKeySkipped=o),se(o)}),y(5,Gue,2,2,"mat-option",22),l()()()}if(2&t){const e=w();m(4),Sn("ngModel",e.isForeignKeySkipped),m(),f("ngForOf",e.skipForeignKeyResponseList)}}function que(t,n){1&t&&(d(0,"div",44)(1,"p",26)(2,"span",27),h(3,"1"),l(),d(4,"span"),h(5,"Please ensure that the application default credentials deployed on this machine have permissions to write to Spanner."),l()()())}function Kue(t,n){1&t&&(d(0,"div",44)(1,"p",26)(2,"span",27),h(3,"1"),l(),d(4,"span"),h(5,"Please ensure that the source is "),d(6,"a",45),h(7,"configured"),l(),h(8," for Datastream change data capture."),l()(),d(9,"p",26)(10,"span",27),h(11,"2"),l(),d(12,"span"),h(13,"Please ensure that Dataflow "),d(14,"a",46),h(15,"permissions"),l(),h(16," and "),d(17,"a",47),h(18,"networking"),l(),h(19," are correctly setup."),l()()())}function Zue(t,n){1&t&&(d(0,"mat-icon",49),h(1," check_circle "),l())}function Yue(t,n){if(1&t){const e=ge();d(0,"div")(1,"h3"),h(2,"Source database details:"),l(),d(3,"p",26)(4,"span",27),h(5,"1"),l(),d(6,"span"),h(7,"Setup Source database details"),l(),d(8,"span")(9,"button",29),N("click",function(){return ae(e),se(w().openSourceDetailsForm())}),h(10," Configure "),d(11,"mat-icon",30),h(12,"edit"),l(),y(13,Zue,2,0,"mat-icon",48),l()()()()}if(2&t){const e=w();m(9),f("disabled",e.isMigrationInProgress),m(4),f("ngIf",e.isSourceDetailsSet)}}function Que(t,n){1&t&&(d(0,"mat-icon",49),h(1," check_circle "),l())}function Xue(t,n){if(1&t){const e=ge();d(0,"div")(1,"mat-card-title"),h(2,"Source databases details:"),l(),d(3,"p",26)(4,"span",27),h(5,"1"),l(),d(6,"span"),h(7,"Setup Source Connection details "),d(8,"mat-icon",50),h(9," info"),l()(),d(10,"span")(11,"button",29),N("click",function(){return ae(e),se(w().openShardedBulkSourceDetailsForm())}),h(12," Configure "),d(13,"mat-icon",30),h(14,"edit"),l(),y(15,Que,2,0,"mat-icon",48),l()()()()}if(2&t){const e=w();m(11),f("disabled",e.isMigrationInProgress),m(4),f("ngIf",e.isSourceDetailsSet)}}function Jue(t,n){1&t&&(d(0,"mat-icon",51),h(1," check_circle "),l())}function ehe(t,n){1&t&&(d(0,"mat-icon",54),h(1," check_circle "),l())}function the(t,n){if(1&t){const e=ge();d(0,"p",26)(1,"span",27),h(2,"2"),l(),d(3,"span"),h(4,"Configure Datastream "),d(5,"mat-icon",52),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openMigrationProfileForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,ehe,2,0,"mat-icon",53),l()()()}if(2&t){const e=w();m(8),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isSourceConnectionProfileSet)}}function ihe(t,n){1&t&&(d(0,"mat-icon",54),h(1," check_circle "),l())}function nhe(t,n){if(1&t){const e=ge();d(0,"p",26)(1,"span",27),h(2,"2"),l(),d(3,"span"),h(4,"Setup source connection profile "),d(5,"mat-icon",55),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openConnectionProfileForm(!0))}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,ihe,2,0,"mat-icon",53),l()()()}if(2&t){const e=w();m(8),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isSourceConnectionProfileSet)}}function ohe(t,n){1&t&&(d(0,"mat-icon",58),h(1," check_circle "),l())}function rhe(t,n){if(1&t){const e=ge();d(0,"p",26)(1,"span",27),h(2,"3"),l(),d(3,"span"),h(4,"Setup target connection profile "),d(5,"mat-icon",56),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openConnectionProfileForm(!1))}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,ohe,2,0,"mat-icon",57),l()()()}if(2&t){const e=w();m(8),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isTargetConnectionProfileSet)}}function ahe(t,n){1&t&&(d(0,"span",27),h(1,"3"),l())}function she(t,n){1&t&&(d(0,"span",27),h(1,"4"),l())}function che(t,n){1&t&&(d(0,"mat-icon",62),h(1," check_circle "),l())}function lhe(t,n){if(1&t){const e=ge();d(0,"p",26),y(1,ahe,2,0,"span",59)(2,she,2,0,"span",59),d(3,"span"),h(4,"Tune Datastream (Optional) "),d(5,"mat-icon",60),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openTuneDatastreamForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,che,2,0,"mat-icon",61),l()()()}if(2&t){const e=w();m(),f("ngIf",e.isSharded),m(),f("ngIf",!e.isSharded),m(6),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isDatastreamConfigurationSet)}}function dhe(t,n){1&t&&(d(0,"span",27),h(1,"4"),l())}function uhe(t,n){1&t&&(d(0,"span",27),h(1,"5"),l())}function hhe(t,n){1&t&&(d(0,"mat-icon",65),h(1," check_circle "),l())}function mhe(t,n){if(1&t){const e=ge();d(0,"p",26),y(1,dhe,2,0,"span",59)(2,uhe,2,0,"span",59),d(3,"span"),h(4,"Tune Cloud Storage (Optional) "),d(5,"mat-icon",63),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openTuneGcsForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,hhe,2,0,"mat-icon",64),l()()()}if(2&t){const e=w();m(),f("ngIf",e.isSharded),m(),f("ngIf",!e.isSharded),m(6),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isGcsConfigurationSet)}}function phe(t,n){1&t&&(d(0,"span",27),h(1,"5"),l())}function fhe(t,n){1&t&&(d(0,"span",27),h(1,"6"),l())}function ghe(t,n){1&t&&(d(0,"mat-icon",68),h(1," check_circle "),l())}function _he(t,n){if(1&t){const e=ge();d(0,"p",26),y(1,phe,2,0,"span",59)(2,fhe,2,0,"span",59),d(3,"span"),h(4,"Tune Dataflow (Optional) "),d(5,"mat-icon",66),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openDataflowForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,ghe,2,0,"mat-icon",67),l()()()}if(2&t){const e=w();m(),f("ngIf",e.isSharded),m(),f("ngIf",!e.isSharded),m(6),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isDataflowConfigurationSet)}}function bhe(t,n){1&t&&(d(0,"span",27),h(1,"5"),l())}function vhe(t,n){if(1&t){const e=ge();d(0,"p",26),y(1,bhe,2,0,"span",59),d(2,"span"),h(3,"Download configuration as JSON "),d(4,"mat-icon",69),h(5,"info "),l()(),d(6,"span")(7,"button",29),N("click",function(){return ae(e),se(w().downloadConfiguration())}),h(8," Download "),d(9,"mat-icon",70),h(10," download"),l()()()()}if(2&t){const e=w();m(),f("ngIf",e.isSharded),m(6),f("disabled",!e.isTargetDetailSet||!e.isTargetConnectionProfileSet)}}function yhe(t,n){if(1&t&&(d(0,"div",24)(1,"mat-card")(2,"mat-card-title"),h(3,"Configured Source Details"),l(),d(4,"p",26)(5,"span",27),h(6,"1"),l(),d(7,"span")(8,"b"),h(9,"Source Database: "),l(),h(10),l()(),d(11,"p",26)(12,"span",27),h(13,"2"),l(),d(14,"span")(15,"b"),h(16,"Number of physical instances configured: "),l(),h(17),l()(),d(18,"p",26)(19,"span",27),h(20,"3"),l(),d(21,"span")(22,"b"),h(23,"Number of logical shards configured: "),l(),h(24),l()()()()),2&t){const e=w();m(10),Fe(e.sourceDatabaseType),m(7),Me(" ",e.numberOfInstances,""),m(7),Me(" ",e.numberOfShards,"")}}function whe(t,n){if(1&t&&(d(0,"div",24)(1,"mat-card")(2,"mat-card-title"),h(3,"Configured Target Details"),l(),d(4,"p",26)(5,"span",27),h(6,"1"),l(),d(7,"span")(8,"b"),h(9,"Spanner Database: "),l(),h(10),l()(),d(11,"p",26)(12,"span",27),h(13,"2"),l(),d(14,"span")(15,"b"),h(16,"Spanner Dialect: "),l(),h(17),l()(),d(18,"p",26)(19,"span",27),h(20,"3"),l(),d(21,"span")(22,"b"),h(23,"Region: "),l(),h(24),l()(),d(25,"p",26)(26,"span",27),h(27,"4"),l(),d(28,"span")(29,"b"),h(30,"Spanner Instance: "),l(),h(31),l()()()()),2&t){const e=w();m(10),Fe(e.targetDetails.TargetDB),m(7),Fe(e.dialect),m(7),Fe(e.region),m(7),_v("",e.instance," (Nodes: ",e.nodeCount,", Processing Units: ",e.processingUnits,")")}}function xhe(t,n){if(1&t&&(d(0,"div",71),D(1,"br")(2,"mat-progress-bar",72),d(3,"span"),h(4),l()()),2&t){const e=w();m(2),f("value",e.schemaMigrationProgress),m(2),Me(" ",e.schemaProgressMessage,"")}}function Che(t,n){if(1&t&&(d(0,"div",71),D(1,"br")(2,"mat-progress-bar",72),d(3,"span"),h(4),l()()),2&t){const e=w();m(2),f("value",e.dataMigrationProgress),m(2),Me(" ",e.dataProgressMessage,"")}}function Dhe(t,n){if(1&t&&(d(0,"div",71),D(1,"br")(2,"mat-progress-bar",72),d(3,"span"),h(4),l()()),2&t){const e=w();m(2),f("value",e.foreignKeyUpdateProgress),m(2),Me(" ",e.foreignKeyProgressMessage,"")}}function She(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",73),D(3,"mat-spinner",74),l(),d(4,"span",75),h(5,"Generating Resources"),l(),D(6,"br"),h(7," Note: Spanner migration tool is creating datastream and dataflow resources. Please look at the terminal logs to check the progress of resource creation. All created resources will be displayed here once they are generated. "),l()),2&t&&(m(3),f("diameter",20))}function khe(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"3"),l(),d(4,"span")(5,"b"),h(6,"Aggregated Monitoring Dashboard: "),l(),d(7,"a",76),h(8),l()()()()),2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.AggMonitoringDashboardUrl,Uo),m(),Fe(e.resourcesGenerated.AggMonitoringDashboardName)}}function The(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"3"),l(),d(4,"span")(5,"b"),h(6,"Monitoring Dashboard: "),l(),d(7,"a",76),h(8),l()()()()),2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.MonitoringDashboardUrl,Uo),m(),Fe(e.resourcesGenerated.MonitoringDashboardName)}}function Mhe(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"4"),l(),d(4,"span")(5,"b"),h(6,"Datastream job: "),l(),d(7,"a",76),h(8),l()()()()),2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.DataStreamJobUrl,Uo),m(),Fe(e.resourcesGenerated.DataStreamJobName)}}function Ihe(t,n){if(1&t){const e=ge();d(0,"span")(1,"p",26)(2,"span",27),h(3,"5"),l(),d(4,"span")(5,"b"),h(6,"Dataflow job: "),l(),d(7,"a",76),h(8),l()(),d(9,"span")(10,"button",77),N("click",function(){ae(e);const o=w(2);return se(o.openGcloudPopup(o.resourcesGenerated.DataflowGcloudCmd))}),d(11,"mat-icon",78),h(12," code"),l()()()()()}if(2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.DataflowJobUrl,Uo),m(),Fe(e.resourcesGenerated.DataflowJobName)}}function Ehe(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"6"),l(),d(4,"span")(5,"b"),h(6,"Pubsub topic: "),l(),d(7,"a",76),h(8),l()()()()),2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.PubsubTopicUrl,Uo),m(),Fe(e.resourcesGenerated.PubsubTopicName)}}function Ohe(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"7"),l(),d(4,"span")(5,"b"),h(6,"Pubsub subscription: "),l(),d(7,"a",76),h(8),l()()()()),2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.PubsubSubscriptionUrl,Uo),m(),Fe(e.resourcesGenerated.PubsubSubscriptionName)}}function Ahe(t,n){1&t&&(d(0,"th",38),h(1," Shard ID "),l())}function Phe(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.DataShardId," ")}}function Rhe(t,n){1&t&&(d(0,"th",38),h(1," Resource Type "),l())}function Nhe(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit,i=w(3);m(),Me(" ",i.resourceTypeToDisplayTest.get(e.ResourceType)," ")}}function Fhe(t,n){1&t&&(d(0,"th",38),h(1," Resource Name "),l())}function Lhe(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.ResourceName," ")}}function Bhe(t,n){1&t&&(d(0,"th",38),h(1," Resource Link "),l())}function Vhe(t,n){if(1&t){const e=ge();d(0,"span")(1,"button",77),N("click",function(){ae(e);const o=w().$implicit;return se(w(3).openGcloudPopup(o.GcloudCmd))}),d(2,"mat-icon",78),h(3," code"),l()()()}}function jhe(t,n){if(1&t&&(d(0,"td",39)(1,"a",76),h(2),l(),y(3,Vhe,4,0,"span",10),l()),2&t){const e=n.$implicit;m(),f("href",e.ResourceUrl,Uo),m(),Fe(e.ResourceName),m(),f("ngIf","dataflow"==e.ResourceType)}}function zhe(t,n){1&t&&D(0,"tr",40)}function Hhe(t,n){1&t&&D(0,"tr",41)}function Uhe(t,n){if(1&t&&(d(0,"span")(1,"h2"),h(2,"Shard Level Resources: "),l(),d(3,"div",79)(4,"table",80),Ce(5,81),y(6,Ahe,2,0,"th",14)(7,Phe,2,1,"td",15),De(),Ce(8,82),y(9,Rhe,2,0,"th",14)(10,Nhe,2,1,"td",15),De(),Ce(11,83),y(12,Fhe,2,0,"th",14)(13,Lhe,2,1,"td",15),De(),Ce(14,84),y(15,Bhe,2,0,"th",14)(16,jhe,4,3,"td",15),De(),y(17,zhe,1,0,"tr",18)(18,Hhe,1,0,"tr",19),l()()()),2&t){const e=w(2);m(4),f("dataSource",e.displayedResourcesDataSource),m(13),f("matHeaderRowDef",e.generatedResourcesColumns),m(),f("matRowDefColumns",e.generatedResourcesColumns)}}function $he(t,n){if(1&t&&(d(0,"div")(1,"h2"),h(2),l(),h(3,' Note: This resources displayed below can be looked upto at a later point in time in the "spannermigrationtool_metadata" database in your spanner instance using the migration jobId listed above. '),d(4,"div",24)(5,"mat-card")(6,"mat-card-title"),h(7,"Job Level Resources:"),l(),d(8,"p",26)(9,"span",27),h(10,"1"),l(),d(11,"span")(12,"b"),h(13,"Spanner Database: "),l(),d(14,"a",76),h(15),l()()(),d(16,"p",26)(17,"span",27),h(18,"2"),l(),d(19,"span")(20,"b"),h(21,"GCS bucket: "),l(),d(22,"a",76),h(23),l()()(),y(24,khe,9,2,"span",10)(25,The,9,2,"span",10)(26,Mhe,9,2,"span",10)(27,Ihe,13,2,"span",10)(28,Ehe,9,2,"span",10)(29,Ohe,9,2,"span",10),l()(),y(30,Uhe,19,3,"span",10),l()),2&t){const e=w();m(2),Me("Migration resources generated for migration jobId: ",e.resourcesGenerated.MigrationJobId,""),m(12),f("href",e.resourcesGenerated.DatabaseUrl,Uo),m(),Fe(e.resourcesGenerated.DatabaseName),m(7),f("href",e.resourcesGenerated.BucketUrl,Uo),m(),Fe(e.resourcesGenerated.BucketName),m(),f("ngIf",""!==e.resourcesGenerated.AggMonitoringDashboardName&&"lowdt"===e.selectedMigrationType&&e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.MonitoringDashboardName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.DataStreamJobName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.DataflowJobName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.PubsubTopicName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.PubsubSubscriptionName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf","lowdt"===e.selectedMigrationType&&e.isSharded)}}function Ghe(t,n){1&t&&(d(0,"div")(1,"b"),h(2,"Note: "),l(),h(3,"Spanner migration tool has orchestrated the migration successfully. For minimal downtime migrations, it is safe to close Spanner migration tool now without affecting the progress of the migration. The resources listed on this page can be viewed in the \"SMT_JOB\" table in the 'spannermigrationtool_metadata' database created in your Spanner instance after you close the Spanner migration tool. "),l())}function Whe(t,n){if(1&t){const e=ge();d(0,"span")(1,"button",85),N("click",function(){return ae(e),se(w().migrate())}),h(2,"Migrate"),l()()}if(2&t){const e=w();m(),f("disabled",!(e.isTargetDetailSet&&"lowdt"===e.selectedMigrationType&&e.isSourceConnectionProfileSet&&e.isTargetConnectionProfileSet||e.isTargetDetailSet&&"bulk"===e.selectedMigrationType)||e.isMigrationInProgress)}}function qhe(t,n){if(1&t){const e=ge();d(0,"span")(1,"button",86),N("click",function(){return ae(e),se(w().endMigration())}),h(2,"End Migration"),l()()}}const Khe=()=>[5,10,20],Zhe=[{path:"",component:Loe},{path:"source",component:ure,children:[{path:"",redirectTo:"/direct-connection",pathMatch:"full"},{path:"direct-connection",component:qne},{path:"load-dump",component:Yoe},{path:"load-session",component:tre}]},{path:"workspace",component:bde},{path:"instruction",component:SN},{path:"prepare-migration",component:(()=>{class t{constructor(e,i,o,r,a){this.dialog=e,this.fetch=i,this.snack=o,this.data=r,this.sidenav=a,this.displayedColumns=["Title","Source","Destination"],this.dataSource=[],this.migrationModes=[],this.migrationTypes=[],this.isSourceConnectionProfileSet=!1,this.isTargetConnectionProfileSet=!1,this.isDatastreamConfigurationSet=!1,this.isGcsConfigurationSet=!1,this.isDataflowConfigurationSet=!1,this.isSourceDetailsSet=!1,this.isTargetDetailSet=!1,this.isForeignKeySkipped=!1,this.isMigrationDetailSet=!1,this.isStreamingSupported=!1,this.hasDataMigrationStarted=!1,this.hasSchemaMigrationStarted=!1,this.hasForeignKeyUpdateStarted=!1,this.selectedMigrationMode=Gr.schemaAndData,this.connectionType=Yn.DirectConnect,this.selectedMigrationType=jn.lowDowntimeMigration,this.isMigrationInProgress=!1,this.isLowDtMigrationRunning=!1,this.isResourceGenerated=!1,this.generatingResources=!1,this.errorMessage="",this.schemaProgressMessage="Schema migration in progress...",this.dataProgressMessage="Data migration in progress...",this.foreignKeyProgressMessage="Foreign key update in progress...",this.dataMigrationProgress=0,this.schemaMigrationProgress=0,this.foreignKeyUpdateProgress=0,this.sourceDatabaseName="",this.sourceDatabaseType="",this.resourcesGenerated={MigrationJobId:"",DatabaseName:"",DatabaseUrl:"",BucketName:"",BucketUrl:"",DataStreamJobName:"",DataStreamJobUrl:"",DataflowJobName:"",DataflowJobUrl:"",PubsubTopicName:"",PubsubTopicUrl:"",PubsubSubscriptionName:"",PubsubSubscriptionUrl:"",MonitoringDashboardName:"",MonitoringDashboardUrl:"",AggMonitoringDashboardName:"",AggMonitoringDashboardUrl:"",DataflowGcloudCmd:"",ShardToShardResourcesMap:new Map},this.generatedResourcesColumns=["shardId","resourceType","resourceName","resourceUrl"],this.displayedResources=[],this.displayedResourcesDataSource=new cP(this.displayedResources),this.region="",this.instance="",this.dialect="",this.isSharded=!1,this.numberOfShards="0",this.numberOfInstances="0",this.nodeCount=0,this.processingUnits=0,this.targetDetails={TargetDB:localStorage.getItem(si.TargetDB),SourceConnProfile:localStorage.getItem(si.SourceConnProfile),TargetConnProfile:localStorage.getItem(si.TargetConnProfile),ReplicationSlot:localStorage.getItem(si.ReplicationSlot),Publication:localStorage.getItem(si.Publication)},this.datastreamConfig={maxConcurrentBackfillTasks:localStorage.getItem("maxConcurrentBackfillTasks"),maxConcurrentCdcTasks:localStorage.getItem("maxConcurrentCdcTasks")},this.gcsConfig={ttlInDays:localStorage.getItem("ttlInDays"),ttlInDaysSet:"true"===localStorage.getItem("ttlInDaysSet")},this.dataflowConfig={network:localStorage.getItem("network"),subnetwork:localStorage.getItem("subnetwork"),hostProjectId:localStorage.getItem("vpcHostProjectId"),maxWorkers:localStorage.getItem("maxWorkers"),numWorkers:localStorage.getItem("numWorkers"),serviceAccountEmail:localStorage.getItem("serviceAccountEmail"),machineType:localStorage.getItem("machineType"),additionalUserLabels:localStorage.getItem("additionalUserLabels"),kmsKeyName:localStorage.getItem("kmsKeyName"),projectId:localStorage.getItem("dataflowProjectId"),location:localStorage.getItem("dataflowLocation"),gcsTemplatePath:localStorage.getItem("gcsTemplatePath")},this.spannerConfig={GCPProjectID:"",SpannerInstanceID:"",IsMetadataDbCreated:!1,IsConfigValid:!1},this.skipForeignKeyResponseList=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.migrationModesHelpText=new Map([["Schema","Migrates only the schema of the source database to the configured Spanner instance."],["Data","Migrates the data from the source database to the configured Spanner database. The configured database should already contain the schema."],["Schema And Data","Migrates both the schema and the data from the source database to Spanner."]]),this.migrationTypesHelpText=new Map([["bulk","Use the POC migration option when you want to migrate a sample of your data (<100GB) to do a Proof of Concept. It uses this machine's resources to copy data from the source database to Spanner"],["lowdt","Uses change data capture via Datastream to setup a continuous data replication pipeline from source to Spanner, using Dataflow jobs to perform the actual data migration."]]),this.resourceTypeToDisplayTest=new Map([["gcs","Cloud Storage Bucket"],["pubsub_sub","Pub/Sub subscription"],["pubsub_topic","Pub/Sub topic"],["datastream","Datastream Stream"],["dataflow","Dataflow Job"],["monitoring","Monitoring Dashboard"]])}refreshMigrationMode(){this.selectedMigrationMode!==Gr.schemaOnly&&this.isStreamingSupported&&this.connectionType!==Yn.DumpFile?this.migrationTypes=[{name:"POC Migration",value:jn.bulkMigration},{name:"Minimal downtime Migration",value:jn.lowDowntimeMigration}]:(this.selectedMigrationType=jn.bulkMigration,this.migrationTypes=[{name:"POC Migration",value:jn.bulkMigration}])}refreshPrerequisites(){this.isSourceConnectionProfileSet=!1,this.isTargetConnectionProfileSet=!1,this.isTargetDetailSet=!1,this.isDatastreamConfigurationSet=!1,this.isGcsConfigurationSet=!1,this.isDataflowConfigurationSet=!1,this.refreshMigrationMode()}ngOnInit(){this.initializeFromLocalStorage(),this.data.config.subscribe(e=>{this.spannerConfig=e}),this.convObj=this.data.conv.subscribe(e=>{this.conv=e}),localStorage.setItem("vpcHostProjectId",this.spannerConfig.GCPProjectID),this.fetch.getSourceDestinationSummary().subscribe({next:e=>{this.connectionType=e.ConnectionType,this.dataSource=[{title:"Database Type",source:e.DatabaseType,target:"Spanner"},{title:"Number of tables",source:e.SourceTableCount,target:e.SpannerTableCount},{title:"Number of indexes",source:e.SourceIndexCount,target:e.SpannerIndexCount}],this.sourceDatabaseType=e.DatabaseType,this.region=e.Region,this.instance=e.Instance,this.dialect=e.Dialect,this.isSharded=e.IsSharded,this.processingUnits=e.ProcessingUnits,this.nodeCount=e.NodeCount,(e.DatabaseType==Oa.MySQL.toLowerCase()||e.DatabaseType==Oa.Oracle.toLowerCase()||e.DatabaseType==Oa.Postgres.toLowerCase())&&(this.isStreamingSupported=!0),this.isStreamingSupported?this.migrationTypes=[{name:"POC Migration",value:jn.bulkMigration},{name:"Minimal downtime Migration",value:jn.lowDowntimeMigration}]:(this.selectedMigrationType=jn.bulkMigration,this.migrationTypes=[{name:"POC Migration",value:jn.bulkMigration}]),this.sourceDatabaseName=e.SourceDatabaseName,this.migrationModes=[Gr.schemaOnly,Gr.dataOnly,Gr.schemaAndData]},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}initializeFromLocalStorage(){null!=localStorage.getItem(me.MigrationMode)&&(this.selectedMigrationMode=localStorage.getItem(me.MigrationMode)),null!=localStorage.getItem(me.MigrationType)&&(this.selectedMigrationType=localStorage.getItem(me.MigrationType)),null!=localStorage.getItem(me.isForeignKeySkipped)&&(this.isForeignKeySkipped="true"===localStorage.getItem(me.isForeignKeySkipped)),null!=localStorage.getItem(me.IsMigrationInProgress)&&(this.isMigrationInProgress="true"===localStorage.getItem(me.IsMigrationInProgress),this.subscribeMigrationProgress()),null!=localStorage.getItem(me.IsTargetDetailSet)&&(this.isTargetDetailSet="true"===localStorage.getItem(me.IsTargetDetailSet)),null!=localStorage.getItem(me.IsSourceConnectionProfileSet)&&(this.isSourceConnectionProfileSet="true"===localStorage.getItem(me.IsSourceConnectionProfileSet)),null!=localStorage.getItem("isDatastreamConfigSet")&&(this.isDatastreamConfigurationSet="true"===localStorage.getItem("isDatastreamConfigSet")),null!=localStorage.getItem("isGcsConfigSet")&&(this.isGcsConfigurationSet="true"===localStorage.getItem("isGcsConfigSet")),null!=localStorage.getItem("isDataflowConfigSet")&&(this.isDataflowConfigurationSet="true"===localStorage.getItem("isDataflowConfigSet")),null!=localStorage.getItem(me.IsTargetConnectionProfileSet)&&(this.isTargetConnectionProfileSet="true"===localStorage.getItem(me.IsTargetConnectionProfileSet)),null!=localStorage.getItem(me.IsSourceDetailsSet)&&(this.isSourceDetailsSet="true"===localStorage.getItem(me.IsSourceDetailsSet)),null!=localStorage.getItem(me.IsMigrationDetailSet)&&(this.isMigrationDetailSet="true"===localStorage.getItem(me.IsMigrationDetailSet)),null!=localStorage.getItem(me.HasSchemaMigrationStarted)&&(this.hasSchemaMigrationStarted="true"===localStorage.getItem(me.HasSchemaMigrationStarted)),null!=localStorage.getItem(me.HasDataMigrationStarted)&&(this.hasDataMigrationStarted="true"===localStorage.getItem(me.HasDataMigrationStarted)),null!=localStorage.getItem(me.DataMigrationProgress)&&(this.dataMigrationProgress=parseInt(localStorage.getItem(me.DataMigrationProgress))),null!=localStorage.getItem(me.SchemaMigrationProgress)&&(this.schemaMigrationProgress=parseInt(localStorage.getItem(me.SchemaMigrationProgress))),null!=localStorage.getItem(me.DataProgressMessage)&&(this.dataProgressMessage=localStorage.getItem(me.DataProgressMessage)),null!=localStorage.getItem(me.SchemaProgressMessage)&&(this.schemaProgressMessage=localStorage.getItem(me.SchemaProgressMessage)),null!=localStorage.getItem(me.ForeignKeyProgressMessage)&&(this.foreignKeyProgressMessage=localStorage.getItem(me.ForeignKeyProgressMessage)),null!=localStorage.getItem(me.ForeignKeyUpdateProgress)&&(this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(me.ForeignKeyUpdateProgress))),null!=localStorage.getItem(me.HasForeignKeyUpdateStarted)&&(this.hasForeignKeyUpdateStarted="true"===localStorage.getItem(me.HasForeignKeyUpdateStarted)),null!=localStorage.getItem(me.GeneratingResources)&&(this.generatingResources="true"===localStorage.getItem(me.GeneratingResources)),null!=localStorage.getItem(me.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(me.NumberOfShards)),null!=localStorage.getItem(me.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(me.NumberOfInstances))}clearLocalStorage(){localStorage.removeItem(me.MigrationMode),localStorage.removeItem(me.MigrationType),localStorage.removeItem(me.IsTargetDetailSet),localStorage.removeItem(me.isForeignKeySkipped),localStorage.removeItem(me.IsSourceConnectionProfileSet),localStorage.removeItem(me.IsTargetConnectionProfileSet),localStorage.removeItem(me.IsSourceDetailsSet),localStorage.removeItem("isDatastreamConfigSet"),localStorage.removeItem("maxConcurrentBackfillTasks"),localStorage.removeItem("maxConcurrentCdcTasks"),localStorage.removeItem("isGcsConfigSet"),localStorage.removeItem("ttlInDays"),localStorage.removeItem("ttlInDaysSet"),localStorage.removeItem("isDataflowConfigSet"),localStorage.removeItem("network"),localStorage.removeItem("subnetwork"),localStorage.removeItem("maxWorkers"),localStorage.removeItem("numWorkers"),localStorage.removeItem("serviceAccountEmail"),localStorage.removeItem("vpcHostProjectId"),localStorage.removeItem("machineType"),localStorage.removeItem("additionalUserLabels"),localStorage.removeItem("kmsKeyName"),localStorage.removeItem("dataflowProjectId"),localStorage.removeItem("dataflowLocation"),localStorage.removeItem("gcsTemplatePath"),localStorage.removeItem(me.IsMigrationInProgress),localStorage.removeItem(me.HasSchemaMigrationStarted),localStorage.removeItem(me.HasDataMigrationStarted),localStorage.removeItem(me.DataMigrationProgress),localStorage.removeItem(me.SchemaMigrationProgress),localStorage.removeItem(me.DataProgressMessage),localStorage.removeItem(me.SchemaProgressMessage),localStorage.removeItem(me.ForeignKeyProgressMessage),localStorage.removeItem(me.ForeignKeyUpdateProgress),localStorage.removeItem(me.HasForeignKeyUpdateStarted),localStorage.removeItem(me.GeneratingResources),localStorage.removeItem(me.NumberOfShards),localStorage.removeItem(me.NumberOfInstances)}openConnectionProfileForm(e){this.dialog.open(Ede,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{IsSource:e,SourceDatabaseType:this.sourceDatabaseType}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(si.TargetDB),SourceConnProfile:localStorage.getItem(si.SourceConnProfile),TargetConnProfile:localStorage.getItem(si.TargetConnProfile),ReplicationSlot:localStorage.getItem(si.ReplicationSlot),Publication:localStorage.getItem(si.Publication)},this.isSourceConnectionProfileSet="true"===localStorage.getItem(me.IsSourceConnectionProfileSet),this.isTargetConnectionProfileSet="true"===localStorage.getItem(me.IsTargetConnectionProfileSet),this.isTargetDetailSet&&this.isSourceConnectionProfileSet&&this.isTargetConnectionProfileSet&&(localStorage.setItem(me.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}openMigrationProfileForm(){this.dialog.open(Oue,{width:"30vw",minWidth:"1200px",maxWidth:"1600px",data:{IsSource:!1,SourceDatabaseType:this.sourceDatabaseType,Region:this.region}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(si.TargetDB),SourceConnProfile:localStorage.getItem(si.SourceConnProfile),TargetConnProfile:localStorage.getItem(si.TargetConnProfile),ReplicationSlot:localStorage.getItem(si.ReplicationSlot),Publication:localStorage.getItem(si.Publication)},null!=localStorage.getItem(me.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(me.NumberOfShards)),null!=localStorage.getItem(me.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(me.NumberOfInstances)),this.isSourceConnectionProfileSet="true"===localStorage.getItem(me.IsSourceConnectionProfileSet),this.isTargetConnectionProfileSet="true"===localStorage.getItem(me.IsTargetConnectionProfileSet),this.isTargetDetailSet&&this.isSourceConnectionProfileSet&&this.isTargetConnectionProfileSet&&(localStorage.setItem(me.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}openGcloudPopup(e){this.dialog.open(qde,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:e})}openTuneDatastreamForm(){this.dialog.open($de,{width:"4000px",minWidth:"400px",maxWidth:"500px",data:{sourceType:this.sourceDatabaseType}}).afterClosed().subscribe(()=>{this.datastreamConfig={maxConcurrentBackfillTasks:localStorage.getItem("maxConcurrentBackfillTasks"),maxConcurrentCdcTasks:localStorage.getItem("maxConcurrentCdcTasks")},this.isDatastreamConfigurationSet="true"===localStorage.getItem("isDatastreamConfigSet"),this.isSharded&&this.fetch.setDatastreamDetailsForShardedMigrations(this.datastreamConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}openTuneGcsForm(){this.dialog.open(Wde,{width:"4000px",minWidth:"400px",maxWidth:"500px"}).afterClosed().subscribe(()=>{this.gcsConfig={ttlInDays:localStorage.getItem("ttlInDays"),ttlInDaysSet:"true"===localStorage.getItem("ttlInDaysSet")},this.isGcsConfigurationSet="true"===localStorage.getItem("isGcsConfigSet"),this.isSharded&&this.fetch.setGcsDetailsForShardedMigrations(this.gcsConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}openDataflowForm(){this.dialog.open(Hde,{width:"4000px",minWidth:"400px",maxWidth:"500px",data:this.spannerConfig}).afterClosed().subscribe(()=>{this.dataflowConfig={network:localStorage.getItem("network"),subnetwork:localStorage.getItem("subnetwork"),hostProjectId:localStorage.getItem("vpcHostProjectId"),maxWorkers:localStorage.getItem("maxWorkers"),numWorkers:localStorage.getItem("numWorkers"),serviceAccountEmail:localStorage.getItem("serviceAccountEmail"),machineType:localStorage.getItem("machineType"),additionalUserLabels:localStorage.getItem("additionalUserLabels"),kmsKeyName:localStorage.getItem("kmsKeyName"),projectId:localStorage.getItem("dataflowProjectId"),location:localStorage.getItem("dataflowLocation"),gcsTemplatePath:localStorage.getItem("gcsTemplatePath")},this.isDataflowConfigurationSet="true"===localStorage.getItem("isDataflowConfigSet"),this.isSharded&&this.fetch.setDataflowDetailsForShardedMigrations(this.dataflowConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}endMigration(){this.dialog.open(zde,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{SpannerDatabaseName:this.resourcesGenerated.DatabaseName,SpannerDatabaseUrl:this.resourcesGenerated.DatabaseUrl,SourceDatabaseType:this.sourceDatabaseType,SourceDatabaseName:this.sourceDatabaseName}}).afterClosed().subscribe()}openSourceDetailsForm(){this.dialog.open(Vde,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:this.sourceDatabaseType}).afterClosed().subscribe(()=>{this.isSourceDetailsSet="true"===localStorage.getItem(me.IsSourceDetailsSet)})}openShardedBulkSourceDetailsForm(){this.dialog.open(Jde,{width:"30vw",minWidth:"400px",maxWidth:"550px",data:{sourceDatabaseEngine:this.sourceDatabaseType,isRestoredSession:this.connectionType}}).afterClosed().subscribe(()=>{this.isSourceDetailsSet="true"===localStorage.getItem(me.IsSourceDetailsSet),null!=localStorage.getItem(me.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(me.NumberOfShards)),null!=localStorage.getItem(me.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(me.NumberOfInstances))})}openTargetDetailsForm(){this.dialog.open(vde,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{Region:this.region,Instance:this.instance,Dialect:this.dialect}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(si.TargetDB),SourceConnProfile:localStorage.getItem(si.SourceConnProfile),TargetConnProfile:localStorage.getItem(si.TargetConnProfile),ReplicationSlot:localStorage.getItem(si.ReplicationSlot),Publication:localStorage.getItem(si.Publication)},this.isTargetDetailSet="true"===localStorage.getItem(me.IsTargetDetailSet),(this.isSourceDetailsSet&&this.isTargetDetailSet&&this.connectionType===Yn.SessionFile&&this.selectedMigrationMode!==Gr.schemaOnly||this.isTargetDetailSet&&this.selectedMigrationType==jn.bulkMigration&&this.connectionType!==Yn.SessionFile||this.isTargetDetailSet&&this.selectedMigrationType==jn.bulkMigration&&this.connectionType===Yn.SessionFile&&this.selectedMigrationMode===Gr.schemaOnly)&&(localStorage.setItem(me.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}migrate(){this.resetValues(),this.fetch.migrate({TargetDetails:this.targetDetails,DatastreamConfig:this.datastreamConfig,GcsConfig:this.gcsConfig,DataflowConfig:this.dataflowConfig,IsSharded:this.isSharded,MigrationType:this.selectedMigrationType,MigrationMode:this.selectedMigrationMode,skipForeignKeys:this.isForeignKeySkipped}).subscribe({next:()=>{this.selectedMigrationMode==Gr.dataOnly?this.selectedMigrationType==jn.bulkMigration?(this.hasDataMigrationStarted=!0,localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())):(this.generatingResources=!0,localStorage.setItem(me.GeneratingResources,this.generatingResources.toString()),this.snack.openSnackBar("Setting up dataflow and datastream jobs","Close")):(this.hasSchemaMigrationStarted=!0,localStorage.setItem(me.HasSchemaMigrationStarted,this.hasSchemaMigrationStarted.toString())),this.snack.openSnackBar("Migration started successfully","Close",5),this.subscribeMigrationProgress()},error:i=>{this.snack.openSnackBar(i.error,"Close"),this.isMigrationInProgress=!this.isMigrationInProgress,this.hasDataMigrationStarted=!1,this.hasSchemaMigrationStarted=!1,this.clearLocalStorage()}})}subscribeMigrationProgress(){var e=!1;this.subscription=DN(5e3).subscribe(i=>{this.fetch.getProgress().subscribe({next:o=>{""==o.ErrorMessage?o.ProgressStatus==rd.SchemaMigrationComplete?(localStorage.setItem(me.SchemaMigrationProgress,"100"),this.schemaMigrationProgress=parseInt(localStorage.getItem(me.SchemaMigrationProgress)),this.selectedMigrationMode==Gr.schemaOnly?this.markMigrationComplete():this.selectedMigrationType==jn.lowDowntimeMigration?(this.markSchemaMigrationComplete(),this.generatingResources=!0,localStorage.setItem(me.GeneratingResources,this.generatingResources.toString()),e||(this.snack.openSnackBar("Setting up dataflow and datastream jobs","Close"),e=!0)):(this.markSchemaMigrationComplete(),this.hasDataMigrationStarted=!0,localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()))):o.ProgressStatus==rd.DataMigrationComplete?(this.selectedMigrationType!=jn.lowDowntimeMigration&&(this.hasDataMigrationStarted=!0,localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())),this.generatingResources=!1,localStorage.setItem(me.GeneratingResources,this.generatingResources.toString()),this.markMigrationComplete()):o.ProgressStatus==rd.DataWriteInProgress?(this.markSchemaMigrationComplete(),this.hasDataMigrationStarted=!0,localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()),localStorage.setItem(me.DataMigrationProgress,o.Progress.toString()),this.dataMigrationProgress=parseInt(localStorage.getItem(me.DataMigrationProgress))):o.ProgressStatus==rd.ForeignKeyUpdateComplete?this.markMigrationComplete():o.ProgressStatus==rd.ForeignKeyUpdateInProgress&&(this.markSchemaMigrationComplete(),this.selectedMigrationType==jn.bulkMigration&&(this.hasDataMigrationStarted=!0,localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())),this.markForeignKeyUpdateInitiation(),this.dataMigrationProgress=100,localStorage.setItem(me.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(me.ForeignKeyUpdateProgress,o.Progress.toString()),this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(me.ForeignKeyUpdateProgress)),this.generatingResources=!1,localStorage.setItem(me.GeneratingResources,this.generatingResources.toString()),this.fetchGeneratedResources()):(this.errorMessage=o.ErrorMessage,this.subscription.unsubscribe(),this.isMigrationInProgress=!this.isMigrationInProgress,this.snack.openSnackBarWithoutTimeout(this.errorMessage,"Close"),this.schemaProgressMessage="Schema migration cancelled!",this.dataProgressMessage="Data migration cancelled!",this.foreignKeyProgressMessage="Foreign key update cancelled!",this.generatingResources=!1,this.isLowDtMigrationRunning=!1,this.clearLocalStorage())},error:o=>{this.snack.openSnackBar(o.error,"Close"),this.isMigrationInProgress=!this.isMigrationInProgress,this.clearLocalStorage()}})})}markForeignKeyUpdateInitiation(){this.dataMigrationProgress=100,this.dataProgressMessage="Data migration completed successfully!",localStorage.setItem(me.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(me.DataMigrationProgress,this.dataMigrationProgress.toString()),this.hasForeignKeyUpdateStarted=!0,this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(me.ForeignKeyUpdateProgress))}markSchemaMigrationComplete(){this.schemaMigrationProgress=100,this.schemaProgressMessage="Schema migration completed successfully!",localStorage.setItem(me.SchemaMigrationProgress,this.schemaMigrationProgress.toString()),localStorage.setItem(me.SchemaProgressMessage,this.schemaProgressMessage)}downloadConfiguration(){this.fetch.getSourceProfile().subscribe({next:e=>{this.configuredMigrationProfile=e;var i=document.createElement("a");let o=JSON.stringify(this.configuredMigrationProfile,null,"\t").replace(/9223372036854776000/g,"9223372036854775807");i.href="data:text/json;charset=utf-8,"+encodeURIComponent(o),i.download=localStorage.getItem(si.TargetDB)+"-"+this.configuredMigrationProfile.configType+"-shardConfig.cfg",i.click()},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}fetchGeneratedResources(){this.fetch.getGeneratedResources().subscribe({next:e=>{this.isResourceGenerated=!0,this.resourcesGenerated=e,this.resourcesGenerated.ShardToShardResourcesMap=new Map(Object.entries(this.resourcesGenerated.ShardToShardResourcesMap)),this.prepareGeneratedResourcesTableData(this.resourcesGenerated)},error:e=>{this.snack.openSnackBar(e.error,"Close")}}),this.selectedMigrationType===jn.lowDowntimeMigration&&(this.isLowDtMigrationRunning=!0)}markMigrationComplete(){this.subscription.unsubscribe(),this.isMigrationInProgress=!this.isMigrationInProgress,this.dataProgressMessage="Data migration completed successfully!",this.schemaProgressMessage="Schema migration completed successfully!",this.schemaMigrationProgress=100,this.dataMigrationProgress=100,this.foreignKeyUpdateProgress=100,this.foreignKeyProgressMessage="Foreign key updated successfully!",this.fetchGeneratedResources(),this.clearLocalStorage(),this.refreshPrerequisites()}resetValues(){this.isMigrationInProgress=!this.isMigrationInProgress,this.hasSchemaMigrationStarted=!1,this.hasDataMigrationStarted=!1,this.generatingResources=!1,this.dataMigrationProgress=0,this.schemaMigrationProgress=0,this.schemaProgressMessage="Schema migration in progress...",this.dataProgressMessage="Data migration in progress...",this.isResourceGenerated=!1,this.hasForeignKeyUpdateStarted=!1,this.foreignKeyUpdateProgress=100,this.foreignKeyProgressMessage="Foreign key update in progress...",this.resourcesGenerated={MigrationJobId:"",DatabaseName:"",DatabaseUrl:"",BucketName:"",BucketUrl:"",DataStreamJobName:"",DataStreamJobUrl:"",DataflowJobName:"",DataflowJobUrl:"",PubsubTopicName:"",PubsubTopicUrl:"",PubsubSubscriptionName:"",PubsubSubscriptionUrl:"",MonitoringDashboardName:"",MonitoringDashboardUrl:"",AggMonitoringDashboardName:"",AggMonitoringDashboardUrl:"",DataflowGcloudCmd:"",ShardToShardResourcesMap:new Map},this.initializeLocalStorage()}initializeLocalStorage(){localStorage.setItem(me.MigrationMode,this.selectedMigrationMode),localStorage.setItem(me.MigrationType,this.selectedMigrationType),localStorage.setItem(me.isForeignKeySkipped,this.isForeignKeySkipped.toString()),localStorage.setItem(me.IsMigrationInProgress,this.isMigrationInProgress.toString()),localStorage.setItem(me.HasSchemaMigrationStarted,this.hasSchemaMigrationStarted.toString()),localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()),localStorage.setItem(me.HasForeignKeyUpdateStarted,this.hasForeignKeyUpdateStarted.toString()),localStorage.setItem(me.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(me.SchemaMigrationProgress,this.schemaMigrationProgress.toString()),localStorage.setItem(me.ForeignKeyUpdateProgress,this.foreignKeyUpdateProgress.toString()),localStorage.setItem(me.SchemaProgressMessage,this.schemaProgressMessage),localStorage.setItem(me.DataProgressMessage,this.dataProgressMessage),localStorage.setItem(me.ForeignKeyProgressMessage,this.foreignKeyProgressMessage),localStorage.setItem(me.IsTargetDetailSet,this.isTargetDetailSet.toString()),localStorage.setItem(me.GeneratingResources,this.generatingResources.toString())}openSaveSessionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("saveSession"),this.sidenav.setSidenavDatabaseName(this.conv.DatabaseName)}downloadSession(){CN(this.conv)}prepareGeneratedResourcesTableData(e){for(let[i,o]of e.ShardToShardResourcesMap){for(let r of o)r.DataShardId=i;this.displayedResources.push(...o)}this.displayedResourcesDataSource=new cP(this.displayedResources),this.displayedResourcesDataSource.paginator=this.paginator}ngOnDestroy(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Vr),_(Qn),_(ir),_($i),_(Xn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-prepare-migration"]],viewQuery:function(i,o){if(1&i&&vt(Ww,5),2&i){let r;Oe(r=Ae())&&(o.paginator=r.first)}},decls:99,vars:40,consts:[[1,"header"],[1,"breadcrumb"],["mat-button","",1,"breadcrumb_source",3,"routerLink"],["mat-button","",1,"breadcrumb_workspace",3,"routerLink"],["mat-button","",1,"breadcrumb_prepare_migration",3,"routerLink"],[1,"header_action"],["mat-button","",3,"click"],["mat-button","","color","primary",3,"click"],[1,"body"],[1,"definition-container"],[4,"ngIf"],[1,"summary"],["id","summary-table","mat-table","",3,"dataSource"],["matColumnDef","Title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Source"],["matColumnDef","Destination"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["appearance","outline"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"configure",3,"matTooltip"],[1,"mat-card-class"],["class","static-prereqs",4,"ngIf"],[1,"point"],[1,"bullet"],["matTooltip","Configure the database in Spanner you want this migration to write to (up till now only GCP Project ID and Spanner Instance name have been configured.)",1,"configure"],["mat-button","","color","primary",3,"disabled","click"],["iconPositionEnd",""],["iconPositionEnd","","class","success","matTooltip","Target details configured","matTooltipPosition","above",4,"ngIf"],["class","point",4,"ngIf"],["class","mat-card-class",4,"ngIf"],["class","progress_bar",4,"ngIf"],[1,"mat-elevation-z8",3,"hidden"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],[1,"migrate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"value"],[3,"ngModel","ngModelChange"],[1,"static-prereqs"],["href","https://cloud.google.com/datastream/docs/sources","target","_blank"],["href","https://cloud.google.com/dataflow/docs/concepts/security-and-permissions","target","_blank"],["href","https://cloud.google.com/dataflow/docs/guides/routes-firewall","target","_blank"],["iconPositionEnd","","class","success","matTooltip","Source details configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Source details configured","matTooltipPosition","above",1,"success"],["matTooltip","Configure the connection info of all source shards to connect to and migrate data from.",1,"configure"],["iconPositionEnd","","matTooltip","Target details configured","matTooltipPosition","above",1,"success"],["matTooltip","Datastream will be used to capture change events from the source database. Please ensure you have met the pre-requistes required for setting up Datastream in your GCP environment. ",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Source connection profile configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Source connection profile configured","matTooltipPosition","above",1,"success"],["matTooltip","Configure the source connection profile to allow Datastream to read from your source database",1,"configure"],["matTooltip","Create a connection profile for datastream to write to a GCS bucket. Spanner migration tool will automatically create the bucket for you.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Target connection profile configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Target connection profile configured","matTooltipPosition","above",1,"success"],["class","bullet",4,"ngIf"],["matTooltip","Datastream will be used to stream CDC from source to GCS. This helps you configure the runtime environment for the Datastream job(s) e.g Parallel Backfill workers.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Datastream Tuned","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Datastream Tuned","matTooltipPosition","above",1,"success"],["matTooltip","Use this to tune the GCS bucket options where Datastream outputs to and Dataflow reads from.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Cloud Storage bucket Configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Cloud Storage bucket Configured","matTooltipPosition","above",1,"success"],["matTooltip","Dataflow will be used to perform the actual migration of data from source to Spanner. This helps you configure the execution environment for Dataflow jobs e.g VPC.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Dataflow Configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Dataflow Configured","matTooltipPosition","above",1,"success"],["matTooltip","Download the configuration done above as JSON.",1,"configure"],["iconPositionEnd","","matTooltip","Download configured shards as JSON","matTooltipPosition","above"],[1,"progress_bar"],["mode","determinate",3,"value"],[1,"spinner"],[3,"diameter"],[1,"spinner-text"],["target","_blank",3,"href"],["mat-button","",1,"configure",3,"click"],["matTooltip","Equivalent gCloud command","matTooltipPosition","above"],[1,"mat-elevation-z8"],["id","resources-table","mat-table","",3,"dataSource"],["matColumnDef","shardId"],["matColumnDef","resourceType"],["matColumnDef","resourceName"],["matColumnDef","resourceUrl"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"a",2),h(3,"Select Source"),l(),d(4,"span"),h(5,">"),l(),d(6,"a",3),h(7),l(),d(8,"span"),h(9,">"),l(),d(10,"a",4)(11,"b"),h(12,"Prepare Migration"),l()()(),d(13,"div",5)(14,"button",6),N("click",function(){return o.openSaveSessionSidenav()}),h(15," SAVE SESSION "),l(),d(16,"button",7),N("click",function(){return o.downloadSession()}),h(17,"DOWNLOAD SESSION FILE"),l()()(),D(18,"br"),d(19,"div",8)(20,"div",9),y(21,Aue,2,0,"h2",10)(22,Pue,2,0,"h2",10),d(23,"div",11)(24,"table",12),Ce(25,13),y(26,Rue,2,0,"th",14)(27,Nue,3,1,"td",15),De(),Ce(28,16),y(29,Fue,2,0,"th",14)(30,Lue,2,1,"td",15),De(),Ce(31,17),y(32,Bue,2,0,"th",14)(33,Vue,2,1,"td",15),De(),y(34,jue,1,0,"tr",18)(35,zue,1,0,"tr",19),l()()(),D(36,"br"),d(37,"mat-form-field",20)(38,"mat-label"),h(39,"Migration Mode:"),l(),d(40,"mat-select",21),kn("ngModelChange",function(a){return Ln(o.selectedMigrationMode,a)||(o.selectedMigrationMode=a),a}),N("selectionChange",function(){return o.refreshPrerequisites()}),y(41,Hue,2,2,"mat-option",22),l()(),d(42,"mat-icon",23),h(43,"info"),l(),D(44,"br"),y(45,$ue,9,3,"div",10)(46,Wue,6,2,"div",10),d(47,"div",24)(48,"mat-card")(49,"mat-card-title"),h(50,"Prerequisites"),l(),d(51,"mat-card-subtitle"),h(52,"Before we begin, please ensure you have done the following:"),l(),y(53,que,6,0,"div",25)(54,Kue,20,0,"div",25),l()(),d(55,"div",24)(56,"mat-card"),y(57,Yue,14,2,"div",10)(58,Xue,16,2,"div",10),d(59,"div")(60,"mat-card-title"),h(61,"Target details:"),l(),d(62,"p",26)(63,"span",27),h(64,"1"),l(),d(65,"span"),h(66,"Configure Spanner Database "),d(67,"mat-icon",28),h(68," info"),l()(),d(69,"span")(70,"button",29),N("click",function(){return o.openTargetDetailsForm()}),h(71," Configure "),d(72,"mat-icon",30),h(73,"edit"),l(),y(74,Jue,2,0,"mat-icon",31),l()()(),y(75,the,13,2,"p",32)(76,nhe,13,2,"p",32)(77,rhe,13,2,"p",32)(78,lhe,13,4,"p",32)(79,mhe,13,4,"p",32)(80,_he,13,4,"p",32)(81,vhe,11,2,"p",32),l()()(),y(82,yhe,25,3,"div",33)(83,whe,32,6,"div",33)(84,xhe,5,2,"div",34)(85,Che,5,2,"div",34)(86,Dhe,5,2,"div",34)(87,She,8,1,"div",10),D(88,"br")(89,"br"),y(90,$he,31,12,"div",10),d(91,"div",35),D(92,"mat-paginator",36),l(),D(93,"br")(94,"br"),y(95,Ghe,4,0,"div",10),d(96,"div",37),y(97,Whe,3,1,"span",10)(98,qhe,3,0,"span",10),l()()),2&i&&(m(2),f("routerLink","/"),m(4),f("routerLink","/workspace"),m(),Me("Configure Schema (",o.dialect," Dialect)"),m(3),f("routerLink","/prepare-migration"),m(11),f("ngIf",!o.isSharded),m(),f("ngIf",o.isSharded),m(2),f("dataSource",o.dataSource),m(10),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns),m(5),Sn("ngModel",o.selectedMigrationMode),m(),f("ngForOf",o.migrationModes),m(),f("matTooltip",o.migrationModesHelpText.get(o.selectedMigrationMode)),m(3),f("ngIf","Schema"!=o.selectedMigrationMode),m(),f("ngIf",!("Schema"===o.selectedMigrationMode||"lowdt"===o.selectedMigrationType)),m(7),f("ngIf","bulk"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(3),f("ngIf","sessionFile"===o.connectionType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(),f("ngIf",o.isSharded&&"bulk"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(12),f("disabled",o.isMigrationInProgress||o.isLowDtMigrationRunning),m(4),f("ngIf",o.isTargetDetailSet),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&o.isSharded),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&o.isSharded),m(),f("ngIf","Schema"!==o.selectedMigrationMode&&o.isSharded),m(),f("ngIf",o.isTargetDetailSet),m(),f("ngIf",o.hasSchemaMigrationStarted),m(),f("ngIf",o.hasDataMigrationStarted),m(),f("ngIf",o.hasForeignKeyUpdateStarted),m(),f("ngIf",o.generatingResources),m(3),f("ngIf",o.isResourceGenerated),m(),f("hidden",!(o.isResourceGenerated&&"lowdt"===o.selectedMigrationType&&o.isSharded)),m(),f("pageSizeOptions",Wo(39,Khe)),m(3),f("ngIf",o.isResourceGenerated&&"lowdt"===o.selectedMigrationType),m(2),f("ngIf",!o.isLowDtMigrationRunning),m(),f("ngIf",o.isLowDtMigrationRunning))},dependencies:[dn,Tt,Ur,BE,Yt,Ii,Hu,E0,I0,gO,Ri,Pi,uo,In,xi,ps,Sa,fs,ka,Da,gs,Ta,Ma,_s,bs,Ww,xn,Pl,ad],styles:[".header[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb_workspace[_ngcontent-%COMP%]{color:#0000008f}.header[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb_prepare_migration[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.definition-container[_ngcontent-%COMP%]{max-height:500px;overflow:auto}.definition-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:13px}.body[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}#summary-table[_ngcontent-%COMP%]{min-width:30%;max-width:50%}#summary-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:10%}.configure[_ngcontent-%COMP%]{color:#1967d2}.migrate[_ngcontent-%COMP%]{margin-top:10px}#resources-table[_ngcontent-%COMP%]{width:100%}"]})}return t})()},{path:"**",redirectTo:"/",pathMatch:"full"}];let Yhe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[vN.forRoot(Zhe),vN]})}return t})(),Qhe=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.dataService=o,this.data=r,this.dialogRef=a,this.errMessage="",this.updateConfigForm=new ei({GCPProjectID:new Z(r.GCPProjectID,[ce.required]),SpannerInstanceID:new Z(r.SpannerInstanceID,[ce.required])}),a.disableClose=!0}updateSpannerConfig(){let e=this.updateConfigForm.value;this.fetch.setSpannerConfig({GCPProjectID:e.GCPProjectID,SpannerInstanceID:e.SpannerInstanceID}).subscribe({next:o=>{o.IsMetadataDbCreated&&this.snack.openSnackBar("Metadata database not found. A new database has been created to store session metadata.","Close",5),this.snack.openSnackBar(o.IsConfigValid?"Spanner Config updated successfully":"Invalid Spanner Configuration","Close",5),this.dialogRef.close({...o}),this.dataService.updateIsOffline(),this.dataService.updateConfig(o),this.dataService.getAllSessions()},error:o=>{this.snack.openSnackBar(o.message,"Close")}})}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Qn),_(ir),_($i),_(ho),_(On))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-update-spanner-config-form"]],decls:20,vars:3,consts:[["mat-dialog-content",""],[1,"save-session-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","placeholder","project id","type","text","formControlName","GCPProjectID","id","project-id"],["hintLabel","Min. 2 characters and Max. 64 characters","appearance","outline",1,"full-width"],["matInput","","placeholder","instance id","type","text","required","","minlength","2","maxlength","64","pattern","^[a-z]([-a-z0-9]*[a-z0-9])?","formControlName","SpannerInstanceID","id","instance-id"],["align","end"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["id","save-button","mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Connect to Spanner"),l(),d(4,"mat-form-field",2)(5,"mat-label"),h(6,"Project ID"),l(),D(7,"input",3),l(),D(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),h(11,"Instance ID"),l(),D(12,"input",5),d(13,"mat-hint",6),h(14),l()()()(),d(15,"div",7)(16,"button",8),h(17,"CANCEL"),l(),d(18,"button",9),N("click",function(){return o.updateSpannerConfig()}),h(19," SAVE "),l()()),2&i&&(m(),f("formGroup",o.updateConfigForm),m(13),Me("",(null==o.updateConfigForm.value.SpannerInstanceID?null:o.updateConfigForm.value.SpannerInstanceID.length)||0,"/64"),m(4),f("disabled",!o.updateConfigForm.valid))},dependencies:[Yt,Ri,Pi,Nl,on,En,Oi,xi,Ui,Bo,Q0,X0,J0,Ai,Yi,mo,Jo,er],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]})}return t})();function Xhe(t,n){1&t&&(d(0,"mat-icon",11),h(1," warning "),l())}function Jhe(t,n){1&t&&(d(0,"mat-icon",12),h(1," check_circle "),l())}function eme(t,n){1&t&&(d(0,"mat-icon",13),h(1," warning "),l())}function tme(t,n){1&t&&(d(0,"div")(1,"span",null,14),h(3,"Spanner database is not configured, click on edit button to configure "),l()())}function ime(t,n){if(1&t&&(d(0,"div")(1,"span",15)(2,"b"),h(3,"Project Id: "),l(),h(4),l(),d(5,"span",16)(6,"b"),h(7,"Spanner Instance Id: "),l(),h(8),l()()),2&t){const e=w();m(4),Fe(e.spannerConfig.GCPProjectID),m(4),Fe(e.spannerConfig.SpannerInstanceID)}}let nme=(()=>{class t{constructor(e,i,o,r,a){this.data=e,this.dialog=i,this.sidenav=o,this.clickEvent=r,this.loaderService=a,this.isOfflineStatus=!1,this.spannerConfig={GCPProjectID:"",SpannerInstanceID:""}}ngOnInit(){this.data.config.subscribe(e=>{this.spannerConfig=e}),this.data.isOffline.subscribe({next:e=>{this.isOfflineStatus=e}}),this.clickEvent.spannerConfig.subscribe(e=>{e&&this.openEditForm()})}openEditForm(){this.dialog.open(Qhe,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:this.spannerConfig}).afterClosed().subscribe(i=>{i&&(this.spannerConfig=i)})}showWarning(){return!this.spannerConfig.GCPProjectID&&!this.spannerConfig.SpannerInstanceID}openInstructionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("instruction")}openUserGuide(){window.open("https://github.com/GoogleCloudPlatform/spanner-migration-tool/blob/master/SpannerMigrationToolUIUserGuide.pdf","_blank")}stopLoading(){this.loaderService.stopLoader(),this.clickEvent.cancelDbLoading(),this.clickEvent.closeDatabaseLoader()}static#e=this.\u0275fac=function(i){return new(i||t)(_($i),_(Vr),_(Xn),_(nr),_(Cg))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-header"]],decls:16,vars:6,consts:[["color","secondry",1,"header-container"],[1,"pointer",3,"routerLink","click"],[1,"menu-spacer"],[1,"right_container"],[1,"spanner_config"],["class","icon warning","matTooltip","Invalid spanner configuration. Working in offline mode",4,"ngIf"],["id","check-icon","class","icon success","matTooltip","Valid spanner configuration.",4,"ngIf"],["class","icon warning","matTooltip","Spanner configuration has not been set.",4,"ngIf"],[4,"ngIf"],["id","edit-icon","matTooltip","Edit Settings",1,"cursor-pointer",3,"click"],["mat-icon-button","","matTooltip","Instruction",1,"example-icon","favorite-icon",3,"click"],["matTooltip","Invalid spanner configuration. Working in offline mode",1,"icon","warning"],["id","check-icon","matTooltip","Valid spanner configuration.",1,"icon","success"],["matTooltip","Spanner configuration has not been set.",1,"icon","warning"],["name",""],[1,"pid"],[1,"iid"]],template:function(i,o){1&i&&(d(0,"mat-toolbar",0)(1,"span",1),N("click",function(){return o.stopLoading()}),h(2," Spanner migration tool"),l(),D(3,"span",2),d(4,"div",3)(5,"div",4),y(6,Xhe,2,0,"mat-icon",5)(7,Jhe,2,0,"mat-icon",6)(8,eme,2,0,"mat-icon",7)(9,tme,4,0,"div",8)(10,ime,9,2,"div",8),d(11,"mat-icon",9),N("click",function(){return o.openEditForm()}),h(12,"edit"),l()(),d(13,"button",10),N("click",function(){return o.openUserGuide()}),d(14,"mat-icon"),h(15,"help"),l()()()()),2&i&&(m(),f("routerLink","/"),m(5),f("ngIf",o.isOfflineStatus&&!o.showWarning()),m(),f("ngIf",!o.isOfflineStatus&&!o.showWarning()),m(),f("ngIf",o.showWarning()),m(),f("ngIf",o.showWarning()),m(),f("ngIf",!o.showWarning()))},dependencies:[Tt,Ur,yW,ga,Ii,xn],styles:[".header-container[_ngcontent-%COMP%]{padding:0 20px}.menu-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.right_container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%]{margin:0 15px 0 0;display:flex;align-items:center;border-radius:5px;padding:0 10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:2px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:300;padding:0 10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] .pid[_ngcontent-%COMP%]{margin-right:10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.cursor-pointer[_ngcontent-%COMP%]{color:#3367d6}"]})}return t})();function ome(t,n){1&t&&(d(0,"div",1),D(1,"mat-progress-bar",2),l())}let rme=(()=>{class t{constructor(e){this.loaderService=e,this.showProgress=!0}ngOnInit(){this.loaderService.isLoading.subscribe(e=>{this.showProgress=e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Cg))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-loader"]],decls:1,vars:1,consts:[["class","progress-bar-wrapper",4,"ngIf"],[1,"progress-bar-wrapper"],["mode","indeterminate","value","40"]],template:function(i,o){1&i&&y(0,ome,2,0,"div",0),2&i&&f("ngIf",o.showProgress)},dependencies:[Tt,gO],styles:[".progress-bar-wrapper[_ngcontent-%COMP%]{background-color:#cbd0e9;height:2px}.progress-bar-wrapper[_ngcontent-%COMP%] .mat-mdc-progress-bar[_ngcontent-%COMP%]{height:2px}"]})}return t})();function ame(t,n){if(1&t&&(d(0,"mat-option",11),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Fe(e)}}function sme(t,n){if(1&t&&(d(0,"mat-option",11),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Fe(e)}}function cme(t,n){if(1&t){const e=ge();d(0,"button",19),N("click",function(){ae(e);const o=w().index;return se(w().removeColumnForm(o))}),d(1,"mat-icon"),h(2,"remove"),l(),d(3,"span"),h(4,"REMOVE COLUMN"),l()()}}function lme(t,n){if(1&t){const e=ge();Ce(0),d(1,"mat-card",12)(2,"div",13)(3,"mat-form-field",1)(4,"mat-label"),h(5,"Column Name"),l(),d(6,"mat-select",14),N("selectionChange",function(){return ae(e),se(w().selectedColumnChange())}),y(7,sme,2,2,"mat-option",3),l()(),d(8,"mat-form-field",1)(9,"mat-label"),h(10,"Sort"),l(),d(11,"mat-select",15)(12,"mat-option",16),h(13,"Ascending"),l(),d(14,"mat-option",17),h(15,"Descending"),l()()()(),y(16,cme,5,0,"button",18),l(),De()}if(2&t){const e=n.index,i=w();m(2),f("formGroupName",e),m(5),f("ngForOf",i.addColumnsList[e]),m(9),f("ngIf",!i.viewRuleFlag)}}function dme(t,n){if(1&t){const e=ge();d(0,"button",20),N("click",function(){return ae(e),se(w().addNewColumnForm())}),d(1,"mat-icon"),h(2,"add"),l(),d(3,"span"),h(4,"ADD COLUMN"),l()()}}function ume(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",21),N("click",function(){return ae(e),se(w().addIndex())}),h(2," ADD RULE "),l()()}if(2&t){const e=w();m(),f("disabled",!(e.addIndexForm.valid&&e.ruleNameValid&&e.ColsArray.controls.length>0))}}function hme(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",22),N("click",function(){return ae(e),se(w().deleteRule())}),h(2," DELETE RULE "),l()()}}let mme=(()=>{class t{constructor(e,i,o,r){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Re,this.tableNames=[],this.totalColumns=[],this.addColumnsList=[],this.commonColumns=[],this.viewRuleData={},this.viewRuleFlag=!1,this.conv={},this.ruleId="",this.addIndexForm=this.fb.group({tableName:["",ce.required],indexName:["",[ce.required,ce.pattern("^[a-zA-Z].{0,59}$")]],ColsArray:this.fb.array([])})}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.tableNames=Object.keys(e.SpSchema).map(i=>e.SpSchema[i].Name)}}),this.sidenav.sidenavAddIndexTable.subscribe({next:e=>{this.addIndexForm.controls.tableName.setValue(e),""!==e&&this.selectedTableChange(e)}}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.viewRuleFlag&&this.getRuleData(this.viewRuleData)})})}getRuleData(e){this.ruleId=e?.Id;let i=this.conv.SpSchema[e?.Data?.TableId]?.Name;this.addIndexForm.controls.tableName.setValue(i),this.addIndexForm.controls.indexName.setValue(e?.Data?.Name),this.selectedTableChange(i),this.setColArraysForViewRules(e?.Data?.TableId,e?.Data?.Keys),this.addIndexForm.disable()}setColArraysForViewRules(e,i){if(this.ColsArray.clear(),i)for(let o=0;oo.ColDefs[r].Name)}this.ColsArray.clear(),this.commonColumns=[],this.addColumnsList=[],this.updateCommonColumns()}addNewColumnForm(){let e=this.fb.group({columnName:["",ce.required],sort:["",ce.required]});this.ColsArray.push(e),this.updateCommonColumns(),this.addColumnsList.push([...this.commonColumns])}selectedColumnChange(){this.updateCommonColumns(),this.addColumnsList=this.addColumnsList.map((e,i)=>{const o=[...this.commonColumns];return""!==this.ColsArray.value[i].columnName&&o.push(this.ColsArray.value[i].columnName),o})}updateCommonColumns(){this.commonColumns=this.totalColumns.filter(e=>{let i=!0;return this.ColsArray.value.forEach(o=>{o.columnName===e&&(i=!1)}),i})}removeColumnForm(e){this.ColsArray.removeAt(e),this.addColumnsList=this.addColumnsList.filter((i,o)=>o!==e),this.selectedColumnChange()}addIndex(){let e=this.addIndexForm.value,i=[],o=this.conversion.getTableIdFromSpName(e.tableName,this.conv);i.push({Name:e.indexName,TableId:o,Unique:!1,Keys:e.ColsArray.map((r,a)=>({ColId:this.conversion.getColIdFromSpannerColName(r.columnName,o,this.conv),Desc:"true"===r.sort,Order:a+1})),Id:""}),this.applyRule(i[0]),this.resetRuleType.emit(""),this.sidenav.setSidenavAddIndexTable(""),this.sidenav.closeSidenav()}applyRule(e){let o=this.conversion.getTableIdFromSpName(this.addIndexForm.value.tableName,this.conv);this.data.applyRule({Name:this.ruleName,Type:"add_index",ObjectType:"Table",AssociatedObjects:o,Enabled:!0,Data:e,Id:""})}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.setSidenavAddIndexTable(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(_a),_($i),_(Xn),_(hc))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-add-index-form"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:18,vars:7,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","tableName","required","true",1,"input-field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["hintLabel","Max. 60 characters, and starts with a letter.","appearance","outline"],["matInput","","formControlName","indexName",1,"input-field"],["align","end"],["formArrayName","ColsArray",1,"addcol-form"],[4,"ngFor","ngForOf"],["mat-button","","color","primary","class","add-column-btn","type","button",3,"click",4,"ngIf"],[4,"ngIf"],[3,"value"],[1,"column-form-card"],[3,"formGroupName"],["matSelect","","formControlName","columnName","required","true",1,"input-field",3,"selectionChange"],["formControlName","sort","required","true",1,"input-field"],["value","false"],["value","true"],["mat-button","","color","primary",3,"click",4,"ngIf"],["mat-button","","color","primary",3,"click"],["mat-button","","color","primary","type","button",1,"add-column-btn",3,"click"],["mat-raised-button","","type","submit","color","primary",1,"add-column-btn",3,"disabled","click"],["mat-raised-button","","type","submit","color","primary",1,"add-column-btn",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"For Table"),l(),d(4,"mat-select",2),N("selectionChange",function(a){return o.selectedTableChange(a.value)}),y(5,ame,2,2,"mat-option",3),l()(),d(6,"mat-form-field",4)(7,"mat-label"),h(8,"Index Name"),l(),D(9,"input",5),d(10,"mat-hint",6),h(11),l()(),Ce(12,7),y(13,lme,17,3,"ng-container",8)(14,dme,5,0,"button",9),D(15,"br"),y(16,ume,3,1,"div",10)(17,hme,3,0,"div",10),De(),l()),2&i&&(f("formGroup",o.addIndexForm),m(5),f("ngForOf",o.tableNames),m(6),Me("",(null==o.addIndexForm.value.indexName?null:o.addIndexForm.value.indexName.length)||0,"/60"),m(2),f("ngForOf",o.ColsArray.controls),m(),f("ngIf",o.addColumnsList.length{class t{constructor(e,i,o,r,a){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.fetch=a,this.ruleNameValid=!1,this.ruleType="",this.ruleName="",this.resetRuleType=new Re,this.conversionType={},this.sourceType=[],this.destinationType=[],this.viewRuleData=[],this.viewRuleFlag=!1,this.pgSQLToStandardTypeTypemap=new Map,this.standardTypeToPGSQLTypemap=new Map,this.conv={},this.isPostgreSQLDialect=!1,this.addGlobalDataTypeForm=this.fb.group({objectType:["column",ce.required],table:["allTable",ce.required],column:["allColumn",ce.required],sourceType:["",ce.required],destinationType:["",ce.required]})}ngOnInit(){this.data.typeMap.subscribe({next:e=>{this.conversionType=e,this.sourceType=Object.keys(this.conversionType)}}),this.data.conv.subscribe({next:e=>{this.conv=e,this.isPostgreSQLDialect="postgresql"===this.conv.SpDialect}}),this.conversion.pgSQLToStandardTypeTypeMap.subscribe(e=>{this.pgSQLToStandardTypeTypemap=e}),this.conversion.standardTypeToPGSQLTypeMap.subscribe(e=>{this.standardTypeToPGSQLTypemap=e}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.setViewRuleData(this.viewRuleData)})})}setViewRuleData(e){if(this.ruleId=e?.Id,this.addGlobalDataTypeForm.controls.sourceType.setValue(Object.keys(e?.Data)[0]),this.updateDestinationType(Object.keys(e?.Data)[0]),this.isPostgreSQLDialect){let i=this.standardTypeToPGSQLTypemap.get(Object.values(this.viewRuleData?.Data)[0]);this.addGlobalDataTypeForm.controls.destinationType.setValue(void 0===i?Object.values(this.viewRuleData?.Data)[0]:i)}else this.addGlobalDataTypeForm.controls.destinationType.setValue(Object.values(this.viewRuleData?.Data)[0]);this.addGlobalDataTypeForm.disable()}formSubmit(){const e=this.addGlobalDataTypeForm.value,i=e.sourceType,o={};if(this.isPostgreSQLDialect){let r=this.pgSQLToStandardTypeTypemap.get(e.destinationType);o[i]=void 0===r?e.destinationType:r}else o[i]=e.destinationType;this.applyRule(o),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}updateDestinationType(e){const i=this.conversionType[e],o=[];i?.forEach(r=>{o.push(r.DisplayT)}),this.destinationType=o}applyRule(e){this.data.applyRule({Name:this.ruleName,Type:"global_datatype_change",ObjectType:"Column",AssociatedObjects:"All Columns",Enabled:!0,Data:e,Id:""})}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(_a),_($i),_(Xn),_(hc),_(Qn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-edit-global-datatype-form"]],inputs:{ruleNameValid:"ruleNameValid",ruleType:"ruleType",ruleName:"ruleName"},outputs:{resetRuleType:"resetRuleType"},decls:34,vars:5,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","objectType","required","true",1,"input-field"],["value","column"],["matSelect","","formControlName","table","required","true",1,"input-field"],["value","allTable"],["matSelect","","formControlName","column","required","true",1,"input-field"],["value","allColumn"],["matSelect","","formControlName","sourceType","required","true",1,"input-field",3,"selectionChange"],["sourceField",""],[3,"value",4,"ngFor","ngForOf"],["appearance","outline",4,"ngIf"],[4,"ngIf"],[3,"value"],["matSelect","","formControlName","destinationType","required","true",1,"input-field"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){if(1&i){const r=ge();d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"For object type"),l(),d(4,"mat-select",2)(5,"mat-option",3),h(6,"Column"),l()()(),d(7,"h3"),h(8,"When"),l(),d(9,"mat-form-field",1)(10,"mat-label"),h(11,"Table is"),l(),d(12,"mat-select",4)(13,"mat-option",5),h(14,"All tables"),l()()(),d(15,"mat-form-field",1)(16,"mat-label"),h(17,"and column is"),l(),d(18,"mat-select",6)(19,"mat-option",7),h(20,"All column"),l()()(),d(21,"h3"),h(22,"Convert from"),l(),d(23,"mat-form-field",1)(24,"mat-label"),h(25,"Source data type"),l(),d(26,"mat-select",8,9),N("selectionChange",function(){ae(r);const s=Rt(27);return se(o.updateDestinationType(s.value))}),y(28,pme,2,2,"mat-option",10),l()(),d(29,"h3"),h(30,"Convert to"),l(),y(31,gme,5,1,"mat-form-field",11)(32,_me,3,1,"div",12)(33,bme,3,0,"div",12),l()}if(2&i){const r=Rt(27);f("formGroup",o.addGlobalDataTypeForm),m(28),f("ngForOf",o.sourceType),m(3),f("ngIf",r.selected),m(),f("ngIf",!o.viewRuleFlag),m(),f("ngIf",o.viewRuleFlag)}},dependencies:[dn,Tt,Yt,Ri,Pi,uo,In,xi,Ui,Bo,Ai,Yi],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;padding:0}"]})}return t})();function yme(t,n){if(1&t&&(d(0,"mat-option",10),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Fe(e)}}function wme(t,n){if(1&t&&(d(0,"mat-option",10),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Fe(e.name)}}function xme(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",11),N("click",function(){return ae(e),se(w().formSubmit())}),h(2," ADD RULE "),l()()}if(2&t){const e=w();m(),f("disabled",!(e.editColMaxLengthForm.valid&&e.ruleNameValid))}}function Cme(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",12),N("click",function(){return ae(e),se(w().deleteRule())}),h(2,"DELETE RULE"),l()()}}let Dme=(()=>{class t{constructor(e,i,o,r){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Re,this.ruleId="",this.tableNames=[],this.viewRuleData=[],this.viewRuleFlag=!1,this.conv={},this.spTypes=[],this.hintlabel="",this.editColMaxLengthForm=this.fb.group({tableName:["",ce.required],column:["allColumn",ce.required],spDataType:["",ce.required],maxColLength:["",[ce.required,ce.pattern("([1-9][0-9]*|MAX)")]]})}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.tableNames=Object.keys(e.SpSchema).map(i=>e.SpSchema[i].Name),this.tableNames.push("All tables"),"postgresql"===this.conv.SpDialect?(this.spTypes=[{name:"VARCHAR",value:"STRING"}],this.hintlabel="Max "+Cn.StringMaxLength+" for VARCHAR"):(this.spTypes=[{name:"STRING",value:"STRING"},{name:"BYTES",value:"BYTES"}],this.hintlabel="Max "+Cn.StringMaxLength+" for STRING and "+Cn.ByteMaxLength+" for BYTES")}}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{if(this.viewRuleData=i,this.viewRuleData){this.ruleId=this.viewRuleData?.Id;let o=this.viewRuleData?.AssociatedObjects;this.editColMaxLengthForm.controls.tableName.setValue(o),this.editColMaxLengthForm.controls.spDataType.setValue(this.viewRuleData?.Data?.spDataType),this.editColMaxLengthForm.controls.maxColLength.setValue(this.viewRuleData?.Data?.spColMaxLength),this.editColMaxLengthForm.disable()}})})}formSubmit(){const e=this.editColMaxLengthForm.value;(("STRING"===e.spDataType||"VARCHAR"===e.spDataType)&&e.spColMaxLength>Cn.StringMaxLength||"BYTES"===e.spDataType&&e.spColMaxLength>Cn.ByteMaxLength)&&(e.spColMaxLength=Cn.StorageMaxLength);const i={spDataType:e.spDataType,spColMaxLength:e.maxColLength};let r=this.conversion.getTableIdFromSpName(e.tableName,this.conv);""===r&&(r="All tables"),this.data.applyRule({Name:this.ruleName,Type:"edit_column_max_length",ObjectType:"Table",AssociatedObjects:r,Enabled:!0,Data:i,Id:""}),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(_a),_($i),_(Xn),_(hc))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-edit-column-max-length"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:23,vars:6,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","tableName","required","true",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],["matSelect","","formControlName","column","required","true",1,"input-field"],["value","allColumn"],["matSelect","","formControlName","spDataType","required","true",1,"input-field"],["appearance","outline",3,"hintLabel"],["matInput","","formControlName","maxColLength",1,"input-field"],[4,"ngIf"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"Table is"),l(),d(4,"mat-select",2),y(5,yme,2,2,"mat-option",3),l()(),d(6,"mat-form-field",1)(7,"mat-label"),h(8,"and column is"),l(),d(9,"mat-select",4)(10,"mat-option",5),h(11,"All column"),l()()(),d(12,"mat-form-field",1)(13,"mat-label"),h(14,"and Spanner Type is"),l(),d(15,"mat-select",6),y(16,wme,2,2,"mat-option",3),l()(),d(17,"mat-form-field",7)(18,"mat-label"),h(19,"Max column length"),l(),D(20,"input",8),l(),y(21,xme,3,1,"div",9)(22,Cme,3,0,"div",9),l()),2&i&&(f("formGroup",o.editColMaxLengthForm),m(5),f("ngForOf",o.tableNames),m(11),f("ngForOf",o.spTypes),m(),f("hintLabel",o.hintlabel),m(4),f("ngIf",!o.viewRuleFlag),m(),f("ngIf",o.viewRuleFlag))},dependencies:[dn,Tt,Yt,Ri,Pi,on,uo,In,Oi,xi,Ui,Bo,Ai,Yi]})}return t})();function Sme(t,n){if(1&t&&(d(0,"mat-option",7),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Fe(e.display)}}function kme(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",8),N("click",function(){return ae(e),se(w().formSubmit())}),h(2," ADD RULE "),l()()}if(2&t){const e=w();m(),f("disabled",!(e.addShardIdPrimaryKeyForm.valid&&e.ruleNameValid))}}function Tme(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",9),N("click",function(){return ae(e),se(w().deleteRule())}),h(2,"DELETE RULE"),l()()}}let Mme=(()=>{class t{constructor(e,i,o){this.fb=e,this.data=i,this.sidenav=o,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Re,this.viewRuleFlag=!1,this.viewRuleData={},this.primaryKeyOrder=[{value:!0,display:"At the beginning"},{value:!1,display:"At the end"}],this.addShardIdPrimaryKeyForm=this.fb.group({table:["allTable",ce.required],primaryKeyOrder:["",ce.required]})}ngOnInit(){this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&(this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.setViewRuleData(this.viewRuleData)}),this.addShardIdPrimaryKeyForm.disable())})}formSubmit(){this.data.applyRule({Name:this.ruleName,Type:"add_shard_id_primary_key",AssociatedObjects:"All Tables",Enabled:!0,Data:{AddedAtTheStart:this.addShardIdPrimaryKeyForm.value.primaryKeyOrder},Id:""}),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}setViewRuleData(e){this.ruleId=e?.Id,this.addShardIdPrimaryKeyForm.controls.primaryKeyOrder.setValue(e?.Data?.AddedAtTheStart)}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(_a),_($i),_(Xn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-add-shard-id-primary-key"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:14,vars:4,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","table","required","true",1,"input-field"],["value","allTable"],["matSelect","","formControlName","primaryKeyOrder","required","true",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"Table is"),l(),d(4,"mat-select",2)(5,"mat-option",3),h(6,"All tables"),l()()(),d(7,"mat-form-field",1)(8,"mat-label"),h(9,"Order in Primary Key"),l(),d(10,"mat-select",4),y(11,Sme,2,2,"mat-option",5),l()(),y(12,kme,3,1,"div",6)(13,Tme,3,0,"div",6),l()),2&i&&(f("formGroup",o.addShardIdPrimaryKeyForm),m(11),f("ngForOf",o.primaryKeyOrder),m(),f("ngIf",!o.viewRuleFlag),m(),f("ngIf",o.viewRuleFlag))},dependencies:[dn,Tt,Yt,Ri,Pi,uo,In,xi,Ui,Bo,Ai,Yi]})}return t})();function Ime(t,n){1&t&&(d(0,"mat-option",18),h(1,"Add shard id column as primary key"),l())}function Eme(t,n){if(1&t){const e=ge();d(0,"div")(1,"app-edit-global-datatype-form",19),N("resetRuleType",function(){return ae(e),se(w().resetRuleType())}),l()()}if(2&t){const e=w();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function Ome(t,n){if(1&t){const e=ge();d(0,"div")(1,"app-add-index-form",19),N("resetRuleType",function(){return ae(e),se(w().resetRuleType())}),l()()}if(2&t){const e=w();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function Ame(t,n){if(1&t){const e=ge();d(0,"div")(1,"app-edit-column-max-length",19),N("resetRuleType",function(){return ae(e),se(w().resetRuleType())}),l()()}if(2&t){const e=w();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function Pme(t,n){if(1&t){const e=ge();d(0,"div")(1,"app-add-shard-id-primary-key",19),N("resetRuleType",function(){return ae(e),se(w().resetRuleType())}),l()()}if(2&t){const e=w();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}let Rme=(()=>{class t{constructor(e,i){this.sidenav=e,this.data=i,this.currentRules=[],this.ruleForm=new ei({ruleName:new Z("",[ce.required,ce.pattern("^[a-zA-Z].{0,59}$")]),ruleType:new Z("",[ce.required])}),this.rulename="",this.ruletype="",this.viewRuleData=[],this.viewRuleFlag=!1,this.shardedMigration=!1}ngOnInit(){this.data.conv.subscribe({next:e=>{Object.keys(e.SpSchema),this.shardedMigration=!!e.IsSharded}}),this.ruleForm.valueChanges.subscribe(()=>{this.rulename=this.ruleForm.controls.ruleName?.value,this.ruletype=this.ruleForm.controls.ruleType?.value}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag?this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.setViewRuleData(this.viewRuleData)}):(this.ruleForm.enable(),this.ruleForm.controls.ruleType.setValue(""),this.sidenav.sidenavRuleType.subscribe(i=>{"addIndex"===i&&this.ruleForm.controls.ruleType.setValue("addIndex")}))})}setViewRuleData(e){this.ruleForm.disable(),this.ruleForm.controls.ruleName.setValue(e?.Name),this.ruleForm.controls.ruleType.setValue(this.getViewRuleType(this.viewRuleData?.Type))}closeSidenav(){this.sidenav.closeSidenav()}get ruleType(){return this.ruleForm.get("ruleType")?.value}resetRuleType(){this.ruleForm.controls.ruleType.setValue(""),this.ruleForm.controls.ruleName.setValue(""),this.ruleForm.markAsUntouched()}getViewRuleType(e){switch(e){case"add_index":return"addIndex";case"global_datatype_change":return"globalDataType";case"edit_column_max_length":return"changeMaxLength";case"add_shard_id_primary_key":return"addShardIdPrimaryKey"}return""}static#e=this.\u0275fac=function(i){return new(i||t)(_(Xn),_($i))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-rule"]],inputs:{currentRules:"currentRules"},decls:36,vars:8,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[3,"formGroup"],["hintLabel","Max. 60 characters, and starts with a letter.","appearance","outline"],["matInput","","formControlName","ruleName",1,"input-field"],["align","end"],["appearance","outline"],["matSelect","","formControlName","ruleType","required","true",1,"input-field"],["ruleType",""],["value","globalDataType"],["value","addIndex"],["value","changeMaxLength"],["value","addShardIdPrimaryKey",4,"ngIf"],[4,"ngIf"],["value","addShardIdPrimaryKey"],[3,"ruleNameValid","ruleName","ruleType","resetRuleType"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3),l(),d(4,"button",3),N("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),h(6,"close"),l()()(),d(7,"div",5)(8,"form",6)(9,"h3"),h(10,"Rule info"),l(),d(11,"mat-form-field",7)(12,"mat-label"),h(13,"Rule name"),l(),D(14,"input",8),d(15,"mat-hint",9),h(16),l()(),d(17,"h3"),h(18,"Rule definition"),l(),d(19,"mat-form-field",10)(20,"mat-label"),h(21,"Rule type"),l(),d(22,"mat-select",11,12)(24,"mat-option",13),h(25,"Change global data type"),l(),d(26,"mat-option",14),h(27,"Add Index"),l(),d(28,"mat-option",15),h(29,"Change default max column length"),l(),y(30,Ime,2,0,"mat-option",16),l()(),D(31,"br"),l(),y(32,Eme,2,3,"div",17)(33,Ome,2,3,"div",17)(34,Ame,2,3,"div",17)(35,Pme,2,3,"div",17),l()()),2&i){const r=Rt(23);m(3),Fe(o.viewRuleFlag?"View Rule":"Add Rule"),m(5),f("formGroup",o.ruleForm),m(8),Me("",(null==o.ruleForm.value.ruleName?null:o.ruleForm.value.ruleName.length)||0,"/60"),m(14),f("ngIf",o.shardedMigration),m(2),f("ngIf","globalDataType"===r.value),m(),f("ngIf","addIndex"===r.value),m(),f("ngIf","changeMaxLength"===r.value),m(),f("ngIf","addShardIdPrimaryKey"===r.value)}},dependencies:[Tt,ga,Ii,Ri,Pi,Nl,on,uo,In,En,Oi,xi,Ui,Bo,Ai,Yi,mme,vme,Dme,Mme],styles:["mat-mdc-form-field[_ngcontent-%COMP%]{padding-bottom:0} .mat-mdc-form-field-wrapper{padding-bottom:14px}"]})}return t})();function Nme(t,n){1&t&&(d(0,"th",39),h(1,"Total tables"),l())}function Fme(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.total)}}function Lme(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",41),h(2," error "),l(),h(3,"Converted with many issues "),l())}function Bme(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.bad)}}function Vme(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",42),h(2," warning"),l(),h(3,"Conversion some warnings & suggestions "),l())}function jme(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.ok)}}function zme(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",43),h(2," check_circle "),l(),h(3,"100% conversion "),l())}function Hme(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.good)}}function Ume(t,n){1&t&&D(0,"tr",44)}function $me(t,n){1&t&&D(0,"tr",45)}function Gme(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function Wme(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.position," ")}}function qme(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function Kme(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.description," ")}}function Zme(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function Yme(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.tableCount," ")}}function Qme(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function Xme(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function Jme(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function epe(t,n){if(1&t){const e=ge();d(0,"td",70)(1,"button",71),N("click",function(o){const a=ae(e).$implicit;return w(2).toggleRow(a),se(o.stopPropagation())}),y(2,Xme,2,0,"mat-icon",37)(3,Jme,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=w(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function tpe(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=w(2);Je("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),Me(" TABLES: ",e.tableNamesJoinedByComma,"")}}function ipe(t,n){1&t&&D(0,"tr",44)}function npe(t,n){if(1&t){const e=ge();d(0,"tr",74),N("click",function(){const r=ae(e).$implicit;return se(w(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",w(2).isRowExpanded(e))}}function ope(t,n){1&t&&D(0,"tr",75)}const kg=()=>["expandedDetail"];function rpe(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",46),h(4," error "),l(),h(5," ERRORS "),l()(),d(6,"table",47),Ce(7,48),y(8,Gme,2,0,"th",49)(9,Wme,2,1,"td",50),De(),Ce(10,51),y(11,qme,2,0,"th",52)(12,Kme,2,1,"td",53),De(),Ce(13,54),y(14,Zme,2,0,"th",55)(15,Yme,2,1,"td",56),De(),Ce(16,57),y(17,Qme,2,0,"th",58)(18,epe,4,2,"td",59),De(),Ce(19,60),y(20,tpe,4,3,"td",59),De(),y(21,ipe,1,0,"tr",34)(22,npe,1,2,"tr",61)(23,ope,1,0,"tr",62),l()()),2&t){const e=w();m(6),f("dataSource",e.issueTableData_Errors),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",Wo(4,kg))}}function ape(t,n){1&t&&D(0,"br")}function spe(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function cpe(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.position," ")}}function lpe(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function dpe(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.description," ")}}function upe(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function hpe(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.tableCount," ")}}function mpe(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function ppe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function fpe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function gpe(t,n){if(1&t){const e=ge();d(0,"td",70)(1,"button",71),N("click",function(o){const a=ae(e).$implicit;return w(2).toggleRow(a),se(o.stopPropagation())}),y(2,ppe,2,0,"mat-icon",37)(3,fpe,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=w(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function _pe(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=w(2);Je("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),Me(" TABLES: ",e.tableNamesJoinedByComma,"")}}function bpe(t,n){1&t&&D(0,"tr",44)}function vpe(t,n){if(1&t){const e=ge();d(0,"tr",74),N("click",function(){const r=ae(e).$implicit;return se(w(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",w(2).isRowExpanded(e))}}function ype(t,n){1&t&&D(0,"tr",75)}function wpe(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",76),h(4," warning "),l(),h(5," WARNINGS "),l()(),d(6,"table",47),Ce(7,48),y(8,spe,2,0,"th",49)(9,cpe,2,1,"td",50),De(),Ce(10,51),y(11,lpe,2,0,"th",52)(12,dpe,2,1,"td",53),De(),Ce(13,54),y(14,upe,2,0,"th",55)(15,hpe,2,1,"td",56),De(),Ce(16,57),y(17,mpe,2,0,"th",58)(18,gpe,4,2,"td",59),De(),Ce(19,60),y(20,_pe,4,3,"td",59),De(),y(21,bpe,1,0,"tr",34)(22,vpe,1,2,"tr",61)(23,ype,1,0,"tr",62),l()()),2&t){const e=w();m(6),f("dataSource",e.issueTableData_Warnings),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",Wo(4,kg))}}function xpe(t,n){1&t&&D(0,"br")}function Cpe(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function Dpe(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.position," ")}}function Spe(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function kpe(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.description," ")}}function Tpe(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function Mpe(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.tableCount," ")}}function Ipe(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function Epe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function Ope(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function Ape(t,n){if(1&t){const e=ge();d(0,"td",70)(1,"button",71),N("click",function(o){const a=ae(e).$implicit;return w(2).toggleRow(a),se(o.stopPropagation())}),y(2,Epe,2,0,"mat-icon",37)(3,Ope,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=w(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function Ppe(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=w(2);Je("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),Me(" TABLES: ",e.tableNamesJoinedByComma,"")}}function Rpe(t,n){1&t&&D(0,"tr",44)}function Npe(t,n){if(1&t){const e=ge();d(0,"tr",74),N("click",function(){const r=ae(e).$implicit;return se(w(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",w(2).isRowExpanded(e))}}function Fpe(t,n){1&t&&D(0,"tr",75)}function Lpe(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",77),h(4," wb_incandescent "),l(),h(5," SUGGESTIONS "),l()(),d(6,"table",47),Ce(7,48),y(8,Cpe,2,0,"th",49)(9,Dpe,2,1,"td",50),De(),Ce(10,51),y(11,Spe,2,0,"th",52)(12,kpe,2,1,"td",53),De(),Ce(13,54),y(14,Tpe,2,0,"th",55)(15,Mpe,2,1,"td",56),De(),Ce(16,57),y(17,Ipe,2,0,"th",58)(18,Ape,4,2,"td",59),De(),Ce(19,60),y(20,Ppe,4,3,"td",59),De(),y(21,Rpe,1,0,"tr",34)(22,Npe,1,2,"tr",61)(23,Fpe,1,0,"tr",62),l()()),2&t){const e=w();m(6),f("dataSource",e.issueTableData_Suggestions),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",Wo(4,kg))}}function Bpe(t,n){1&t&&D(0,"br")}function Vpe(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function jpe(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.position," ")}}function zpe(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function Hpe(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.description," ")}}function Upe(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function $pe(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),Me(" ",e.tableCount," ")}}function Gpe(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function Wpe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function qpe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function Kpe(t,n){if(1&t){const e=ge();d(0,"td",70)(1,"button",71),N("click",function(o){const a=ae(e).$implicit;return w(2).toggleRow(a),se(o.stopPropagation())}),y(2,Wpe,2,0,"mat-icon",37)(3,qpe,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=w(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function Zpe(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=w(2);Je("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),Me(" TABLES: ",e.tableNamesJoinedByComma,"")}}function Ype(t,n){1&t&&D(0,"tr",44)}function Qpe(t,n){if(1&t){const e=ge();d(0,"tr",74),N("click",function(){const r=ae(e).$implicit;return se(w(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",w(2).isRowExpanded(e))}}function Xpe(t,n){1&t&&D(0,"tr",75)}function Jpe(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",78),h(4," check_circle "),l(),h(5," NOTES "),l()(),d(6,"table",47),Ce(7,48),y(8,Vpe,2,0,"th",49)(9,jpe,2,1,"td",50),De(),Ce(10,51),y(11,zpe,2,0,"th",52)(12,Hpe,2,1,"td",53),De(),Ce(13,54),y(14,Upe,2,0,"th",55)(15,$pe,2,1,"td",56),De(),Ce(16,57),y(17,Gpe,2,0,"th",58)(18,Kpe,4,2,"td",59),De(),Ce(19,60),y(20,Zpe,4,3,"td",59),De(),y(21,Ype,1,0,"tr",34)(22,Qpe,1,2,"tr",61)(23,Xpe,1,0,"tr",62),l()()),2&t){const e=w();m(6),f("dataSource",e.issueTableData_Notes),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",Wo(4,kg))}}function efe(t,n){1&t&&D(0,"br")}function tfe(t,n){1&t&&(d(0,"div",79)(1,"div",80),Xt(),d(2,"svg",81),D(3,"path",82),l()(),mr(),d(4,"div",83),h(5," Woohoo! No issues or suggestions"),D(6,"br"),h(7,"found. "),l(),D(8,"br"),l())}const Cx=t=>({"width.%":t});let ife=(()=>{class t{toggleRow(e){this.isRowExpanded(e)?this.expandedElements.delete(e):this.expandedElements.add(e)}isRowExpanded(e){return this.expandedElements.has(e)}constructor(e,i,o){this.sidenav=e,this.clickEvent=i,this.fetch=o,this.issueTableData_Errors=[],this.issueTableData_Warnings=[],this.issueTableData_Suggestions=[],this.issueTableData_Notes=[],this.columnsToDisplay=["position","description","tableCount"],this.columnsToDisplayWithExpand=[...this.columnsToDisplay,"expand"],this.expandedElements=new Set,this.srcDbType="",this.connectionDetail="",this.summaryText="",this.issueDescription={},this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentage={good:0,ok:0,bad:0},this.rateCountDataSource=[],this.rateCountDisplayedColumns=["total","bad","ok","good"],this.ratePcDataSource=[],this.ratePcDisplayedColumns=["bad","ok","good"]}ngOnInit(){this.clickEvent.viewAssesment.subscribe(e=>{this.srcDbType=e.srcDbType,this.connectionDetail=e.connectionDetail,this.conversionRateCount=e.conversionRates;let i=this.conversionRateCount.good+this.conversionRateCount.ok+this.conversionRateCount.bad;if(i>0)for(let o in this.conversionRatePercentage)this.conversionRatePercentage[o]=Number((this.conversionRateCount[o]/i*100).toFixed(2));i>0&&this.setRateCountDataSource(i),this.fetch.getDStructuredReport().subscribe({next:o=>{this.summaryText=o.summary.text}}),this.issueTableData={position:0,description:"",tableCount:0,tableNamesJoinedByComma:""},this.fetch.getIssueDescription().subscribe({next:o=>{this.issueDescription=o,this.generateIssueReport()}})})}closeSidenav(){this.sidenav.closeSidenav()}setRateCountDataSource(e){this.rateCountDataSource=[],this.rateCountDataSource.push({total:e,bad:this.conversionRateCount.bad,ok:this.conversionRateCount.ok,good:this.conversionRateCount.good})}downloadStructuredReport(){var e=document.createElement("a");this.fetch.getDStructuredReport().subscribe({next:i=>{let o=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.href="data:text;charset=utf-8,"+encodeURIComponent(o),e.download=`${i.summary.dbName}_migration_structuredReport.json`,e.click()}})}downloadTextReport(){var e=document.createElement("a");this.fetch.getDTextReport().subscribe({next:i=>{let o=this.connectionDetail;e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${o}_migration_textReport.txt`,e.click()}})}downloadReports(){let e=new TN;this.fetch.getDStructuredReport().subscribe({next:i=>{let o=i.summary.dbName,r=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.file(o+"_migration_structuredReport.json",r),this.fetch.getDTextReport().subscribe({next:s=>{e.file(o+"_migration_textReport.txt",s),e.generateAsync({type:"blob"}).then(c=>{var u=document.createElement("a");u.href=URL.createObjectURL(c),u.download=`${o}_reports`,u.click()})}})}})}generateIssueReport(){this.fetch.getDStructuredReport().subscribe({next:e=>{let i=e.tableReports;var o={errors:new Map,warnings:new Map,suggestions:new Map,notes:new Map};for(var r of i){let c=r.issues;if(null==c)return this.issueTableData_Errors=[],this.issueTableData_Warnings=[],this.issueTableData_Suggestions=[],void(this.issueTableData_Notes=[]);for(var a of c){let u={tableCount:0,tableNames:new Set};switch(a.issueType){case"Error":case"Errors":this.appendIssueWithTableInformation(a.issueList,o.errors,u,r);break;case"Warnings":case"Warning":this.appendIssueWithTableInformation(a.issueList,o.warnings,u,r);break;case"Suggestion":case"Suggestions":this.appendIssueWithTableInformation(a.issueList,o.suggestions,u,r);break;case"Note":case"Notes":this.appendIssueWithTableInformation(a.issueList,o.notes,u,r)}}}let s=o.warnings;this.issueTableData_Warnings=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Warnings),s=o.errors,this.issueTableData_Errors=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Errors),s=o.suggestions,this.issueTableData_Suggestions=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Suggestions),s=o.notes,this.issueTableData_Notes=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Notes)}})}populateTableData(e,i){let o=1;for(let[r,a]of e.entries()){let s=[...a.tableNames.keys()];i.push({position:o,description:this.issueDescription[r],tableCount:a.tableCount,tableNamesJoinedByComma:s.join(", ")}),o+=1}}appendIssueWithTableInformation(e,i,o,r){for(var a of e)if(i.has(a.category)){let c=i.get(a.category),u={tableNames:new Set(c.tableNames),tableCount:c.tableNames.size};u.tableNames.add(r.srcTableName),u.tableCount=u.tableNames.size,i.set(a.category,u)}else{let c=o;c.tableNames.add(r.srcTableName),c.tableCount=c.tableNames.size,i.set(a.category,c)}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Xn),_(nr),_(Qn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-view-assessment"]],decls:87,vars:25,consts:[[1,"sidenav-view-assessment-container"],[1,"sidenav-view-assessment-header"],[1,"mat-h2","header-title"],[1,"btn-source-select"],[1,"reportsButtons"],["mat-raised-button","","color","primary",1,"split-button-left",3,"click"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"content"],[1,"summaryHeader"],[1,"databaseName"],[1,"migrationDetails"],[1,"summaryText"],[1,"sidenav-percentage-bar"],[1,"danger-background",3,"ngStyle"],[1,"warning-background",3,"ngStyle"],[1,"success-background",3,"ngStyle"],[1,"sidenav-percentage-indent"],[1,"icon","danger"],[1,"icon","warning"],[1,"icon","success"],[1,"sidenav-title"],["mat-table","",1,"sidenav-conversionByTable",3,"dataSource"],["matColumnDef","total"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","cells",4,"matCellDef"],["matColumnDef","bad",1,"bad"],["matColumnDef","ok"],["matColumnDef","good"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"issue-report"],[4,"ngIf"],["class","no-issue-container",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"cells"],[1,"icon","danger","icon-size","icons"],[1,"icon","warning","icon-size","icons"],[1,"icon","success","icon-size","icons"],["mat-header-row",""],["mat-row",""],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above",1,"danger"],["mat-table","","multiTemplateDataRows","",1,"sidenav-databaseDefinitions",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","","class","mat-position",4,"matHeaderCellDef"],["mat-cell","","class","mat-position",4,"matCellDef"],["matColumnDef","description"],["mat-header-cell","","class","mat-description",4,"matHeaderCellDef"],["mat-cell","","class","mat-description",4,"matCellDef"],["matColumnDef","tableCount"],["mat-header-cell","","class","mat-tableCount",4,"matHeaderCellDef"],["mat-cell","","class","mat-tableCount",4,"matCellDef"],["matColumnDef","expand"],["mat-header-cell","","aria-label","row actions",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-row","","class","example-element-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"mat-position"],["mat-cell","",1,"mat-position"],["mat-header-cell","",1,"mat-description"],["mat-cell","",1,"mat-description"],["mat-header-cell","",1,"mat-tableCount"],["mat-cell","",1,"mat-tableCount"],["mat-header-cell","","aria-label","row actions"],["mat-cell",""],["mat-icon-button","","aria-label","expand row",3,"click"],[1,"example-element-detail",3,"ngClass"],[1,"example-element-description"],["mat-row","",1,"example-element-row",3,"click"],["mat-row","",1,"example-detail-row"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above",1,"warning"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above",1,"suggestion"],["matTooltip","Note : This is informational and you don't need to do anything.","matTooltipPosition","above",1,"success"],[1,"no-issue-container"],[1,"no-issue-icon-container"],["width","36","height","36","viewBox","0 0 24 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.8332 0.69873C16.0051 7.45842 16.2492 9.44782 10.4672 10.2012C16.1511 11.1242 16.2329 13.2059 16.8332 19.7037C17.6237 13.1681 17.4697 11.2106 23.1986 10.2012C17.4247 9.45963 17.6194 7.4505 16.8332 0.69873ZM4.23739 0.872955C3.79064 4.52078 3.92238 5.59467 0.802246 6.00069C3.86944 6.49885 3.91349 7.62218 4.23739 11.1284C4.66397 7.60153 4.581 6.54497 7.67271 6.00069C4.55696 5.60052 4.66178 4.51623 4.23739 0.872955ZM7.36426 11.1105C7.05096 13.6683 7.14331 14.4212 4.95554 14.7061C7.10612 15.0553 7.13705 15.8431 7.36426 18.3017C7.66333 15.8288 7.60521 15.088 9.77298 14.7061C7.58818 14.4255 7.66177 13.6653 7.36426 11.1105Z","fill","#3367D6"],[1,"no-issue-message"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3,"Assessment report"),l(),d(4,"div",3)(5,"span",4)(6,"button",5),N("click",function(){return o.downloadReports()}),h(7," DOWNLOAD REPORTS "),l(),d(8,"button",6)(9,"mat-icon",7),h(10,"expand_more"),l()(),d(11,"mat-menu",8,9)(13,"button",10),N("click",function(){return o.downloadTextReport()}),h(14," Download Text Report "),l(),d(15,"button",10),N("click",function(){return o.downloadStructuredReport()}),h(16," Download Structured Report "),l()()(),d(17,"button",11),N("click",function(){return o.closeSidenav()}),d(18,"mat-icon",12),h(19,"close"),l()()()(),d(20,"div",13)(21,"div",14)(22,"p",15),h(23),l(),d(24,"p",16),h(25),d(26,"mat-icon"),h(27,"arrow_right_alt"),l(),h(28," Spanner)"),l()(),d(29,"p",17),h(30),l(),d(31,"mat-card")(32,"div",18),D(33,"div",19)(34,"div",20)(35,"div",21),l(),D(36,"hr")(37,"br"),d(38,"div",22)(39,"span")(40,"mat-icon",23),h(41," circle "),l(),d(42,"span"),h(43," Not a great conversion"),l()(),d(44,"span")(45,"mat-icon",24),h(46," circle "),l(),d(47,"span"),h(48," Converted with warnings"),l()(),d(49,"span")(50,"mat-icon",25),h(51," circle "),l(),d(52,"span"),h(53," Converted automatically"),l()()()(),D(54,"br"),d(55,"h3",26),h(56,"Conversion status by table"),l(),d(57,"table",27),Ce(58,28),y(59,Nme,2,0,"th",29)(60,Fme,2,1,"td",30),De(),Ce(61,31),y(62,Lme,4,0,"th",29)(63,Bme,2,1,"td",30),De(),Ce(64,32),y(65,Vme,4,0,"th",29)(66,jme,2,1,"td",30),De(),Ce(67,33),y(68,zme,4,0,"th",29)(69,Hme,2,1,"td",30),De(),y(70,Ume,1,0,"tr",34)(71,$me,1,0,"tr",35),l(),D(72,"br"),d(73,"h3"),h(74,"Summarized Table Report"),l(),d(75,"div",36),y(76,rpe,24,5,"mat-expansion-panel",37)(77,ape,1,0,"br",37)(78,wpe,24,5,"mat-expansion-panel",37)(79,xpe,1,0,"br",37)(80,Lpe,24,5,"mat-expansion-panel",37)(81,Bpe,1,0,"br",37)(82,Jpe,24,5,"mat-expansion-panel",37)(83,efe,1,0,"br",37)(84,tfe,9,0,"div",38),D(85,"br"),l(),D(86,"br"),l()()),2&i){const r=Rt(12);m(8),f("matMenuTriggerFor",r),m(15),Fe(o.connectionDetail),m(2),Me(" \xa0 (",o.srcDbType," "),m(5),Fe(o.summaryText),m(3),f("ngStyle",ui(19,Cx,o.conversionRatePercentage.bad)),m(),f("ngStyle",ui(21,Cx,o.conversionRatePercentage.ok)),m(),f("ngStyle",ui(23,Cx,o.conversionRatePercentage.good)),m(22),f("dataSource",o.rateCountDataSource),m(13),f("matHeaderRowDef",o.rateCountDisplayedColumns),m(),f("matRowDefColumns",o.rateCountDisplayedColumns),m(5),f("ngIf",o.issueTableData_Errors.length),m(),f("ngIf",o.issueTableData_Errors.length),m(),f("ngIf",o.issueTableData_Warnings.length),m(),f("ngIf",o.issueTableData_Warnings.length),m(),f("ngIf",o.issueTableData_Suggestions.length),m(),f("ngIf",o.issueTableData_Suggestions.length),m(),f("ngIf",o.issueTableData_Notes.length),m(),f("ngIf",o.issueTableData_Notes.length),m(),f("ngIf",!(o.issueTableData_Notes.length||o.issueTableData_Suggestions.length||o.issueTableData_Warnings.length||o.issueTableData_Errors.length))}},dependencies:[vr,Tt,vI,Yt,ga,Ii,Hu,Vl,wa,jl,ps,Sa,fs,ka,Da,gs,Ta,Ma,_s,bs,Cw,fP,zQ,xn],styles:["table.mat-mdc-table[_ngcontent-%COMP%]{width:100%}.icon-size[_ngcontent-%COMP%]{font-size:1.2em;text-align:center;margin-top:8px;margin-left:10px;vertical-align:inherit}.mat-mdc-header-cell[_ngcontent-%COMP%]{border-style:none}.icons[_ngcontent-%COMP%]{border-left:1px solid rgb(208,204,204);padding-left:10px}.cells[_ngcontent-%COMP%]{text-align:center}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%]{padding:7px 16px;display:flex;flex-direction:row;align-items:center;border-bottom:1px solid #d0cccc;justify-content:space-between}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{margin:0}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%]{vertical-align:middle}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .reportsButtons[_ngcontent-%COMP%]{white-space:nowrap;vertical-align:middle}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-left[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-right[_ngcontent-%COMP%]{width:30px!important;min-width:unset!important;padding:0 8px 0 2px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid #fafafa}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{margin-left:1.25px;padding:0;height:10px;vertical-align:text-top}"]})}return t})(),nfe=(()=>{class t{constructor(e,i,o,r){this.fetch=e,this.data=i,this.snack=o,this.sidenav=r,this.errMessage="",this.saveSessionForm=new ei({SessionName:new Z("",[ce.required,ce.pattern("^[a-zA-Z][a-zA-Z0-9_ -]{0,59}$")]),EditorName:new Z("",[ce.required,ce.pattern("^[a-zA-Z][a-zA-Z0-9_ -]{0,59}$")]),DatabaseName:new Z("",[ce.required,ce.pattern("^[a-zA-Z][a-zA-Z0-9_-]{0,59}$")]),Notes:new Z("")})}saveSession(){let e=this.saveSessionForm.value,i={SessionName:e.SessionName.trim(),EditorName:e.EditorName.trim(),DatabaseName:e.DatabaseName.trim(),Notes:""===e.Notes?.trim()||null===e.Notes?[""]:e.Notes?.split("\n")};this.fetch.saveSession(i).subscribe({next:o=>{this.data.getAllSessions(),this.snack.openSnackBar("Session saved successfully","Close",5)},error:o=>{this.snack.openSnackBar(o.error,"Close")}}),this.saveSessionForm.reset(),this.saveSessionForm.markAsUntouched(),this.closeSidenav()}ngOnInit(){this.sidenav.sidenavDatabaseName.subscribe({next:e=>{this.saveSessionForm.controls.DatabaseName.setValue(e)}})}closeSidenav(){this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Qn),_($i),_(ir),_(Xn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-save-session"]],decls:40,vars:5,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[1,"save-session-form",3,"formGroup"],["hintLabel","Letters, numbers, hyphen, space and underscore allowed. Max. 60 characters, and starts with a letter.","appearance","outline"],["matInput","","placeholder","mysession","type","text","formControlName","SessionName","matTooltip","User can view saved sessions under session history section","matTooltipPosition","above"],["align","end"],["hintLabel","Letters, numbers, hyphen, space and underscore allowed. Max. 60 characters, and starts with a letter.","appearance","outline",1,"full-width"],["matInput","","placeholder","editor name","type","text","formControlName","EditorName"],["hintLabel","Letters, numbers, hyphen and underscores allowed. Max. 60 characters, and starts with a letter.","appearance","outline",1,"full-width"],["matInput","","type","text","formControlName","DatabaseName"],["appearance","outline",1,"full-width"],["rows","7","matInput","","placeholder","added new index","type","text","formControlName","Notes"],[1,"sidenav-footer"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3,"Save Session"),l(),d(4,"button",3),N("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),h(6,"close"),l()()(),d(7,"div",5)(8,"h3"),h(9,"Session Details"),l(),d(10,"form",6)(11,"mat-form-field",7)(12,"mat-label"),h(13,"Session Name"),l(),D(14,"input",8),d(15,"mat-hint",9),h(16),l()(),D(17,"br"),d(18,"mat-form-field",10)(19,"mat-label"),h(20,"Editor Name"),l(),D(21,"input",11),d(22,"mat-hint",9),h(23),l()(),D(24,"br"),d(25,"mat-form-field",12)(26,"mat-label"),h(27,"Database Name"),l(),D(28,"input",13),d(29,"mat-hint",9),h(30),l()(),D(31,"br"),d(32,"mat-form-field",14)(33,"mat-label"),h(34,"Notes"),l(),D(35,"textarea",15),l(),D(36,"br"),l()(),d(37,"div",16)(38,"button",17),N("click",function(){return o.saveSession()}),h(39," Save Session "),l()()()),2&i&&(m(10),f("formGroup",o.saveSessionForm),m(6),Me("",(null==o.saveSessionForm.value.SessionName?null:o.saveSessionForm.value.SessionName.length)||0,"/60"),m(7),Me("",(null==o.saveSessionForm.value.EditorName?null:o.saveSessionForm.value.EditorName.length)||0,"/60"),m(7),Me("",(null==o.saveSessionForm.value.DatabaseName?null:o.saveSessionForm.value.DatabaseName.length)||0,"/60"),m(8),f("disabled",!o.saveSessionForm.valid))},dependencies:[Yt,ga,Ii,Ri,Pi,Nl,on,En,Oi,xi,Ui,Ai,Yi,xn],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{padding-bottom:10px}"]})}return t})();function ofe(t,n){1&t&&(d(0,"th",9),h(1,"Column"),l())}function rfe(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.ColumnName)}}function afe(t,n){1&t&&(d(0,"th",9),h(1,"Type"),l())}function sfe(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.Type)}}function cfe(t,n){1&t&&(d(0,"th",9),h(1,"Updated Column"),l())}function lfe(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.UpdateColumnName)}}function dfe(t,n){1&t&&(d(0,"th",9),h(1,"Updated Type"),l())}function ufe(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Fe(e.UpdateType)}}function hfe(t,n){1&t&&D(0,"tr",11)}function mfe(t,n){1&t&&D(0,"tr",12)}let pfe=(()=>{class t{constructor(){this.tableChange={InterleaveColumnChanges:[],Table:""},this.dataSource=[],this.displayedColumns=["ColumnName","Type","UpdateColumnName","UpdateType"]}ngOnInit(){}ngOnChanges(e){this.tableChange=e.tableChange?.currentValue||this.tableChange,this.dataSource=this.tableChange.InterleaveColumnChanges}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-table-column-changes-preview"]],inputs:{tableChange:"tableChange"},features:[fi],decls:15,vars:3,consts:[["mat-table","",1,"object-full-width","margin-bot-1",3,"dataSource"],["matColumnDef","ColumnName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Type"],["matColumnDef","UpdateColumnName"],["matColumnDef","UpdateType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(i,o){1&i&&(d(0,"table",0),Ce(1,1),y(2,ofe,2,0,"th",2)(3,rfe,2,1,"td",3),De(),Ce(4,4),y(5,afe,2,0,"th",2)(6,sfe,2,1,"td",3),De(),Ce(7,5),y(8,cfe,2,0,"th",2)(9,lfe,2,1,"td",3),De(),Ce(10,6),y(11,dfe,2,0,"th",2)(12,ufe,2,1,"td",3),De(),y(13,hfe,1,0,"tr",7)(14,mfe,1,0,"tr",8),l()),2&i&&(f("dataSource",o.dataSource),m(13),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns))},dependencies:[ps,Sa,fs,ka,Da,gs,Ta,Ma,_s,bs],styles:[".margin-bot-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mat-mdc-header-row[_ngcontent-%COMP%]{background-color:#f5f5f5}.mat-mdc-column-ColumnName[_ngcontent-%COMP%], .mat-mdc-column-UpdateColumnName[_ngcontent-%COMP%]{width:30%;max-width:30%}.mat-mdc-column-Type[_ngcontent-%COMP%], .mat-mdc-column-UpdateType[_ngcontent-%COMP%]{width:20%;max-width:20%}.mat-mdc-cell[_ngcontent-%COMP%]{padding-right:1rem;word-break:break-all}"]})}return t})();function ffe(t,n){1&t&&(d(0,"p"),h(1,"Review the DDL changes below."),l())}function gfe(t,n){if(1&t&&(d(0,"p"),h(1," Changing an interleaved table will have an impact on the following tables : "),d(2,"b"),h(3),l()()),2&t){const e=w();m(3),Fe(e.tableList)}}function _fe(t,n){if(1&t&&(d(0,"div",11)(1,"pre")(2,"code"),h(3),l()()()),2&t){const e=w();m(3),Fe(e.ddl)}}function bfe(t,n){if(1&t&&(Ce(0),d(1,"h4"),h(2),l(),D(3,"app-table-column-changes-preview",14),De()),2&t){const e=n.$implicit,i=n.index,o=w(2);m(2),Fe(o.tableNames[i]),m(),f("tableChange",e)}}function vfe(t,n){if(1&t&&(d(0,"div",12),y(1,bfe,4,2,"ng-container",13),l()),2&t){const e=w();m(),f("ngForOf",e.tableChanges)}}let yfe=(()=>{class t{constructor(e,i,o,r){this.sidenav=e,this.tableUpdatePubSub=i,this.data=o,this.snackbar=r,this.ddl="",this.showDdl=!0,this.tableUpdateData={tableName:"",tableId:"",updateDetail:{UpdateCols:{}}},this.tableChanges=[],this.tableNames=[],this.tableList=""}ngOnInit(){this.tableUpdatePubSub.reviewTableChanges.subscribe(e=>{if(e.Changes&&e.Changes.length>0){this.showDdl=!1,this.tableChanges=e.Changes;const i=[];this.tableList="",this.tableChanges.forEach((o,r)=>{i.push(o.Table),this.tableList+=0==r?o.Table:", "+o.Table}),this.tableList+=".",this.tableNames=i}else this.showDdl=!0,this.ddl=e.DDL}),this.tableUpdatePubSub.tableUpdateDetail.subscribe(e=>{this.tableUpdateData=e})}updateTable(){this.data.updateTable(this.tableUpdateData.tableId,this.tableUpdateData.updateDetail).subscribe({next:e=>{""==e?(this.snackbar.openSnackBar(`Schema changes to table ${this.tableUpdateData.tableName} saved successfully`,"Close",5),0==this.showDdl&&1!=this.tableNames.length&&this.snackbar.openSnackBar(`Schema changes to tables ${this.tableNames[0]} and ${this.tableNames[1]} saved successfully`,"Close",5),this.closeSidenav()):this.snackbar.openSnackBar(e,"Close",5)}})}closeSidenav(){this.ddl="",this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Xn),_(yx),_($i),_(ir))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-review-changes"]],decls:17,vars:4,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[4,"ngIf"],["class","ddl-display",4,"ngIf"],["class","table-changes-display",4,"ngIf"],[1,"sidenav-footer"],["mat-raised-button","","color","primary",3,"click"],[1,"ddl-display"],[1,"table-changes-display"],[4,"ngFor","ngForOf"],[3,"tableChange"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3,"Review changes to your schema"),l(),d(4,"button",3),N("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),h(6,"close"),l()()(),D(7,"mat-divider"),d(8,"div",5),y(9,ffe,2,0,"p",6)(10,gfe,4,1,"p",6)(11,_fe,4,1,"div",7)(12,vfe,2,1,"div",8),l(),D(13,"mat-divider"),d(14,"div",9)(15,"button",10),N("click",function(){return o.updateTable()}),h(16,"Confirm Conversion"),l()()()),2&i&&(m(9),f("ngIf",o.showDdl),m(),f("ngIf",!o.showDdl),m(),f("ngIf",o.showDdl),m(),f("ngIf",!o.showDdl))},dependencies:[dn,Tt,Yt,ga,Ii,vO,pfe],styles:[".sidenav-content[_ngcontent-%COMP%]{height:82%}.sidenav-content[_ngcontent-%COMP%] .ddl-display[_ngcontent-%COMP%]{height:90%;background-color:#dadada;padding:10px;overflow:auto}.sidenav-content[_ngcontent-%COMP%] .table-changes-display[_ngcontent-%COMP%]{height:90%;overflow:auto}"]})}return t})();function wfe(t,n){1&t&&D(0,"app-sidenav-rule")}function xfe(t,n){1&t&&D(0,"app-sidenav-save-session")}function Cfe(t,n){1&t&&D(0,"app-sidenav-review-changes")}function Dfe(t,n){1&t&&D(0,"app-sidenav-view-assessment")}function Sfe(t,n){1&t&&D(0,"app-instruction")}const kfe=(t,n,e)=>({"width-40pc":t,"width-50pc":n,"width-60pc":e});let Tfe=(()=>{class t{constructor(e){this.sidenavService=e,this.title="ui",this.showSidenav=!1,this.sidenavComponent=""}ngOnInit(){this.sidenavService.isSidenav.subscribe(e=>{this.showSidenav=e}),this.sidenavService.sidenavComponent.subscribe(e=>{this.sidenavComponent=e})}closeSidenav(){this.showSidenav=!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(Xn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-root"]],decls:14,vars:11,consts:[[1,"sidenav-container",3,"backdropClick"],["position","end","mode","over",3,"opened","ngClass"],["sidenav",""],[4,"ngIf"],[1,"sidenav-content"],[1,"appLoader"],[1,"padding-20"]],template:function(i,o){1&i&&(d(0,"mat-sidenav-container",0),N("backdropClick",function(){return o.closeSidenav()}),d(1,"mat-sidenav",1,2),y(3,wfe,1,0,"app-sidenav-rule",3)(4,xfe,1,0,"app-sidenav-save-session",3)(5,Cfe,1,0,"app-sidenav-review-changes",3)(6,Dfe,1,0,"app-sidenav-view-assessment",3)(7,Sfe,1,0,"app-instruction",3),l(),d(8,"mat-sidenav-content",4),D(9,"app-header"),d(10,"div",5),D(11,"app-loader"),l(),d(12,"div",6),D(13,"router-outlet"),l()()()),2&i&&(m(),f("opened",o.showSidenav)("ngClass",jT(7,kfe,"rule"===o.sidenavComponent||"saveSession"===o.sidenavComponent,"reviewChanges"===o.sidenavComponent,"assessment"===o.sidenavComponent||"instruction"===o.sidenavComponent)),m(2),f("ngIf","rule"===o.sidenavComponent),m(),f("ngIf","saveSession"==o.sidenavComponent),m(),f("ngIf","reviewChanges"==o.sidenavComponent),m(),f("ngIf","assessment"===o.sidenavComponent),m(),f("ngIf","instruction"===o.sidenavComponent))},dependencies:[vr,Tt,gg,lR,dR,Gw,SN,nme,rme,Rme,ife,nfe,yfe],styles:[".padding-20[_ngcontent-%COMP%]{padding:5px 0}.progress-bar-wrapper[_ngcontent-%COMP%]{background-color:#cbd0e9;height:2px}.progress-bar-wrapper[_ngcontent-%COMP%] .mat-mdc-progress-bar[_ngcontent-%COMP%], .appLoader[_ngcontent-%COMP%]{height:2px}mat-mdc-sidenav[_ngcontent-%COMP%]{width:30%;min-width:350px}.sidenav-container[_ngcontent-%COMP%]{height:100vh}.sidenav-container[_ngcontent-%COMP%] mat-mdc-sidenav[_ngcontent-%COMP%]{min-width:350px;border-radius:3px}.width-40pc[_ngcontent-%COMP%]{width:40%}.width-50pc[_ngcontent-%COMP%]{width:50%}.width-60pc[_ngcontent-%COMP%]{width:60%}"]})}return t})(),Mfe=(()=>{class t{constructor(e){this.loader=e,this.count=0}intercept(e,i){let o=!e.url.includes("/connect");return o&&(this.loader.startLoader(),this.count++),i.handle(e).pipe(Js(()=>{o&&this.count--,0==this.count&&this.loader.stopLoader()}))}static#e=this.\u0275fac=function(i){return new(i||t)(X(Cg))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ife=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t,bootstrap:[Tfe]});static#i=this.\u0275inj=at({providers:[{provide:WE,useClass:Mfe,multi:!0}],imports:[qI,Yhe,u$,tte,tq,xK,ute,fte,$oe,Ew]})}return t})();uH().bootstrapModule(Ife).catch(t=>console.error(t))},304:cd=>{cd.exports=function G(Pe,Y,F){function P(U,W){if(!Y[U]){if(!Pe[U]){if(S)return S(U,!0);var $=new Error("Cannot find module '"+U+"'");throw $.code="MODULE_NOT_FOUND",$}var M=Y[U]={exports:{}};Pe[U][0].call(M.exports,function(B){return P(Pe[U][1][B]||B)},M,M.exports,G,Pe,Y,F)}return Y[U].exports}for(var S=void 0,A=0;A>4,B=1>6:64,k=2>2)+S.charAt(M)+S.charAt(B)+S.charAt(k));return R.join("")},Y.decode=function(A){var U,W,V,$,M,B,k=0,R=0,E="data:";if(A.substr(0,5)===E)throw new Error("Invalid base64 input, it looks like a data url.");var j,q=3*(A=A.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(A.charAt(A.length-1)===S.charAt(64)&&q--,A.charAt(A.length-2)===S.charAt(64)&&q--,q%1!=0)throw new Error("Invalid base64 input, bad content length.");for(j=P.uint8array?new Uint8Array(0|q):new Array(0|q);k>4,W=(15&$)<<4|(M=S.indexOf(A.charAt(k++)))>>2,V=(3&M)<<6|(B=S.indexOf(A.charAt(k++))),j[R++]=U,64!==M&&(j[R++]=W),64!==B&&(j[R++]=V);return j}},{"./support":30,"./utils":32}],2:[function(G,Pe,Y){"use strict";var F=G("./external"),P=G("./stream/DataWorker"),S=G("./stream/Crc32Probe"),A=G("./stream/DataLengthProbe");function U(W,V,$,M,B){this.compressedSize=W,this.uncompressedSize=V,this.crc32=$,this.compression=M,this.compressedContent=B}U.prototype={getContentWorker:function(){var W=new P(F.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new A("data_length")),V=this;return W.on("end",function(){if(this.streamInfo.data_length!==V.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),W},getCompressedWorker:function(){return new P(F.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},U.createWorkerFrom=function(W,V,$){return W.pipe(new S).pipe(new A("uncompressedSize")).pipe(V.compressWorker($)).pipe(new A("compressedSize")).withStreamInfo("compression",V)},Pe.exports=U},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(G,Pe,Y){"use strict";var F=G("./stream/GenericWorker");Y.STORE={magic:"\0\0",compressWorker:function(){return new F("STORE compression")},uncompressWorker:function(){return new F("STORE decompression")}},Y.DEFLATE=G("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(G,Pe,Y){"use strict";var F=G("./utils"),P=function(){for(var S,A=[],U=0;U<256;U++){S=U;for(var W=0;W<8;W++)S=1&S?3988292384^S>>>1:S>>>1;A[U]=S}return A}();Pe.exports=function(S,A){return void 0!==S&&S.length?"string"!==F.getTypeOf(S)?function(U,W,V,$){var M=P,B=0+V;U^=-1;for(var k=0;k>>8^M[255&(U^W[k])];return-1^U}(0|A,S,S.length):function(U,W,V,$){var M=P,B=0+V;U^=-1;for(var k=0;k>>8^M[255&(U^W.charCodeAt(k))];return-1^U}(0|A,S,S.length):0}},{"./utils":32}],5:[function(G,Pe,Y){"use strict";Y.base64=!1,Y.binary=!1,Y.dir=!1,Y.createFolders=!0,Y.date=null,Y.compression=null,Y.compressionOptions=null,Y.comment=null,Y.unixPermissions=null,Y.dosPermissions=null},{}],6:[function(G,Pe,Y){"use strict";var F;F=typeof Promise<"u"?Promise:G("lie"),Pe.exports={Promise:F}},{lie:37}],7:[function(G,Pe,Y){"use strict";var F=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",P=G("pako"),S=G("./utils"),A=G("./stream/GenericWorker"),U=F?"uint8array":"array";function W(V,$){A.call(this,"FlateWorker/"+V),this._pako=null,this._pakoAction=V,this._pakoOptions=$,this.meta={}}Y.magic="\b\0",S.inherits(W,A),W.prototype.processChunk=function(V){this.meta=V.meta,null===this._pako&&this._createPako(),this._pako.push(S.transformTo(U,V.data),!1)},W.prototype.flush=function(){A.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},W.prototype.cleanUp=function(){A.prototype.cleanUp.call(this),this._pako=null},W.prototype._createPako=function(){this._pako=new P[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var V=this;this._pako.onData=function($){V.push({data:$,meta:V.meta})}},Y.compressWorker=function(V){return new W("Deflate",V)},Y.uncompressWorker=function(){return new W("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(G,Pe,Y){"use strict";function F(M,B){var k,R="";for(k=0;k>>=8;return R}function P(M,B,k,R,E,j){var q,te,ee=M.file,Te=M.compression,ye=j!==U.utf8encode,Ne=S.transformTo("string",j(ee.name)),_e=S.transformTo("string",U.utf8encode(ee.name)),Ge=ee.comment,ht=S.transformTo("string",j(Ge)),H=S.transformTo("string",U.utf8encode(Ge)),ve=_e.length!==ee.name.length,C=H.length!==Ge.length,ke="",At="",Le="",Bt=ee.dir,Ve=ee.date,kt={crc32:0,compressedSize:0,uncompressedSize:0};B&&!k||(kt.crc32=M.crc32,kt.compressedSize=M.compressedSize,kt.uncompressedSize=M.uncompressedSize);var he=0;B&&(he|=8),ye||!ve&&!C||(he|=2048);var Qe,Rn,le=0,_t=0;Bt&&(le|=16),"UNIX"===E?(_t=798,le|=(Rn=Qe=ee.unixPermissions,Qe||(Rn=Bt?16893:33204),(65535&Rn)<<16)):(_t=20,le|=function(Qe){return 63&(Qe||0)}(ee.dosPermissions)),q=Ve.getUTCHours(),q<<=6,q|=Ve.getUTCMinutes(),q<<=5,q|=Ve.getUTCSeconds()/2,te=Ve.getUTCFullYear()-1980,te<<=4,te|=Ve.getUTCMonth()+1,te<<=5,te|=Ve.getUTCDate(),ve&&(At=F(1,1)+F(W(Ne),4)+_e,ke+="up"+F(At.length,2)+At),C&&(Le=F(1,1)+F(W(ht),4)+H,ke+="uc"+F(Le.length,2)+Le);var it="";return it+="\n\0",it+=F(he,2),it+=Te.magic,it+=F(q,2),it+=F(te,2),it+=F(kt.crc32,4),it+=F(kt.compressedSize,4),it+=F(kt.uncompressedSize,4),it+=F(Ne.length,2),it+=F(ke.length,2),{fileRecord:V.LOCAL_FILE_HEADER+it+Ne+ke,dirRecord:V.CENTRAL_FILE_HEADER+F(_t,2)+it+F(ht.length,2)+"\0\0\0\0"+F(le,4)+F(R,4)+Ne+ke+ht}}var S=G("../utils"),A=G("../stream/GenericWorker"),U=G("../utf8"),W=G("../crc32"),V=G("../signature");function $(M,B,k,R){A.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=B,this.zipPlatform=k,this.encodeFileName=R,this.streamFiles=M,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}S.inherits($,A),$.prototype.push=function(M){var B=M.meta.percent||0,k=this.entriesCount,R=this._sources.length;this.accumulate?this.contentBuffer.push(M):(this.bytesWritten+=M.data.length,A.prototype.push.call(this,{data:M.data,meta:{currentFile:this.currentFile,percent:k?(B+100*(k-R-1))/k:100}}))},$.prototype.openedSource=function(M){this.currentSourceOffset=this.bytesWritten,this.currentFile=M.file.name;var B=this.streamFiles&&!M.file.dir;if(B){var k=P(M,B,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:k.fileRecord,meta:{percent:0}})}else this.accumulate=!0},$.prototype.closedSource=function(M){this.accumulate=!1;var R,B=this.streamFiles&&!M.file.dir,k=P(M,B,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(k.dirRecord),B)this.push({data:(R=M,V.DATA_DESCRIPTOR+F(R.crc32,4)+F(R.compressedSize,4)+F(R.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:k.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},$.prototype.flush=function(){for(var M=this.bytesWritten,B=0;B=this.index;A--)U=(U<<8)+this.byteAt(A);return this.index+=S,U},readString:function(S){return F.transformTo("string",this.readData(S))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var S=this.readInt(4);return new Date(Date.UTC(1980+(S>>25&127),(S>>21&15)-1,S>>16&31,S>>11&31,S>>5&63,(31&S)<<1))}},Pe.exports=P},{"../utils":32}],19:[function(G,Pe,Y){"use strict";var F=G("./Uint8ArrayReader");function P(S){F.call(this,S)}G("../utils").inherits(P,F),P.prototype.readData=function(S){this.checkOffset(S);var A=this.data.slice(this.zero+this.index,this.zero+this.index+S);return this.index+=S,A},Pe.exports=P},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(G,Pe,Y){"use strict";var F=G("./DataReader");function P(S){F.call(this,S)}G("../utils").inherits(P,F),P.prototype.byteAt=function(S){return this.data.charCodeAt(this.zero+S)},P.prototype.lastIndexOfSignature=function(S){return this.data.lastIndexOf(S)-this.zero},P.prototype.readAndCheckSignature=function(S){return S===this.readData(4)},P.prototype.readData=function(S){this.checkOffset(S);var A=this.data.slice(this.zero+this.index,this.zero+this.index+S);return this.index+=S,A},Pe.exports=P},{"../utils":32,"./DataReader":18}],21:[function(G,Pe,Y){"use strict";var F=G("./ArrayReader");function P(S){F.call(this,S)}G("../utils").inherits(P,F),P.prototype.readData=function(S){if(this.checkOffset(S),0===S)return new Uint8Array(0);var A=this.data.subarray(this.zero+this.index,this.zero+this.index+S);return this.index+=S,A},Pe.exports=P},{"../utils":32,"./ArrayReader":17}],22:[function(G,Pe,Y){"use strict";var F=G("../utils"),P=G("../support"),S=G("./ArrayReader"),A=G("./StringReader"),U=G("./NodeBufferReader"),W=G("./Uint8ArrayReader");Pe.exports=function(V){var $=F.getTypeOf(V);return F.checkSupport($),"string"!==$||P.uint8array?"nodebuffer"===$?new U(V):P.uint8array?new W(F.transformTo("uint8array",V)):new S(F.transformTo("array",V)):new A(V)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(G,Pe,Y){"use strict";Y.LOCAL_FILE_HEADER="PK\x03\x04",Y.CENTRAL_FILE_HEADER="PK\x01\x02",Y.CENTRAL_DIRECTORY_END="PK\x05\x06",Y.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",Y.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",Y.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(G,Pe,Y){"use strict";var F=G("./GenericWorker"),P=G("../utils");function S(A){F.call(this,"ConvertWorker to "+A),this.destType=A}P.inherits(S,F),S.prototype.processChunk=function(A){this.push({data:P.transformTo(this.destType,A.data),meta:A.meta})},Pe.exports=S},{"../utils":32,"./GenericWorker":28}],25:[function(G,Pe,Y){"use strict";var F=G("./GenericWorker"),P=G("../crc32");function S(){F.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}G("../utils").inherits(S,F),S.prototype.processChunk=function(A){this.streamInfo.crc32=P(A.data,this.streamInfo.crc32||0),this.push(A)},Pe.exports=S},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(G,Pe,Y){"use strict";var F=G("../utils"),P=G("./GenericWorker");function S(A){P.call(this,"DataLengthProbe for "+A),this.propName=A,this.withStreamInfo(A,0)}F.inherits(S,P),S.prototype.processChunk=function(A){A&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+A.data.length),P.prototype.processChunk.call(this,A)},Pe.exports=S},{"../utils":32,"./GenericWorker":28}],27:[function(G,Pe,Y){"use strict";var F=G("../utils"),P=G("./GenericWorker");function S(A){P.call(this,"DataWorker");var U=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,A.then(function(W){U.dataIsReady=!0,U.data=W,U.max=W&&W.length||0,U.type=F.getTypeOf(W),U.isPaused||U._tickAndRepeat()},function(W){U.error(W)})}F.inherits(S,P),S.prototype.cleanUp=function(){P.prototype.cleanUp.call(this),this.data=null},S.prototype.resume=function(){return!!P.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,F.delay(this._tickAndRepeat,[],this)),!0)},S.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(F.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},S.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var A=null,U=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":A=this.data.substring(this.index,U);break;case"uint8array":A=this.data.subarray(this.index,U);break;case"array":case"nodebuffer":A=this.data.slice(this.index,U)}return this.index=U,this.push({data:A,meta:{percent:this.max?this.index/this.max*100:0}})},Pe.exports=S},{"../utils":32,"./GenericWorker":28}],28:[function(G,Pe,Y){"use strict";function F(P){this.name=P||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}F.prototype={push:function(P){this.emit("data",P)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(P){this.emit("error",P)}return!0},error:function(P){return!this.isFinished&&(this.isPaused?this.generatedError=P:(this.isFinished=!0,this.emit("error",P),this.previous&&this.previous.error(P),this.cleanUp()),!0)},on:function(P,S){return this._listeners[P].push(S),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(P,S){if(this._listeners[P])for(var A=0;A "+P:P}},Pe.exports=F},{}],29:[function(G,Pe,Y){"use strict";var F=G("../utils"),P=G("./ConvertWorker"),S=G("./GenericWorker"),A=G("../base64"),U=G("../support"),W=G("../external"),V=null;if(U.nodestream)try{V=G("../nodejs/NodejsStreamOutputAdapter")}catch{}function M(B,k,R){var E=k;switch(k){case"blob":case"arraybuffer":E="uint8array";break;case"base64":E="string"}try{this._internalType=E,this._outputType=k,this._mimeType=R,F.checkSupport(E),this._worker=B.pipe(new P(E)),B.lock()}catch(j){this._worker=new S("error"),this._worker.error(j)}}M.prototype={accumulate:function(B){return function $(B,k){return new W.Promise(function(R,E){var j=[],q=B._internalType,te=B._outputType,ee=B._mimeType;B.on("data",function(Te,ye){j.push(Te),k&&k(ye)}).on("error",function(Te){j=[],E(Te)}).on("end",function(){try{var Te=function(ye,Ne,_e){switch(ye){case"blob":return F.newBlob(F.transformTo("arraybuffer",Ne),_e);case"base64":return A.encode(Ne);default:return F.transformTo(ye,Ne)}}(te,function(ye,Ne){var _e,Ge=0,ht=null,H=0;for(_e=0;_e"u")Y.blob=!1;else{var F=new ArrayBuffer(0);try{Y.blob=0===new Blob([F],{type:"application/zip"}).size}catch{try{var P=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);P.append(F),Y.blob=0===P.getBlob("application/zip").size}catch{Y.blob=!1}}}try{Y.nodestream=!!G("readable-stream").Readable}catch{Y.nodestream=!1}},{"readable-stream":16}],31:[function(G,Pe,Y){"use strict";for(var F=G("./utils"),P=G("./support"),S=G("./nodejsUtils"),A=G("./stream/GenericWorker"),U=new Array(256),W=0;W<256;W++)U[W]=252<=W?6:248<=W?5:240<=W?4:224<=W?3:192<=W?2:1;function V(){A.call(this,"utf-8 decode"),this.leftOver=null}function $(){A.call(this,"utf-8 encode")}U[254]=U[254]=1,Y.utf8encode=function(M){return P.nodebuffer?S.newBufferFrom(M,"utf-8"):function(B){var k,R,E,j,q,te=B.length,ee=0;for(j=0;j>>6:(R<65536?k[q++]=224|R>>>12:(k[q++]=240|R>>>18,k[q++]=128|R>>>12&63),k[q++]=128|R>>>6&63),k[q++]=128|63&R);return k}(M)},Y.utf8decode=function(M){return P.nodebuffer?F.transformTo("nodebuffer",M).toString("utf-8"):function(B){var k,R,E,j,q=B.length,te=new Array(2*q);for(k=R=0;k>10&1023,te[R++]=56320|1023&E)}return te.length!==R&&(te.subarray?te=te.subarray(0,R):te.length=R),F.applyFromCharCode(te)}(M=F.transformTo(P.uint8array?"uint8array":"array",M))},F.inherits(V,A),V.prototype.processChunk=function(M){var B=F.transformTo(P.uint8array?"uint8array":"array",M.data);if(this.leftOver&&this.leftOver.length){if(P.uint8array){var k=B;(B=new Uint8Array(k.length+this.leftOver.length)).set(this.leftOver,0),B.set(k,this.leftOver.length)}else B=this.leftOver.concat(B);this.leftOver=null}var R=function(j,q){var te;for((q=q||j.length)>j.length&&(q=j.length),te=q-1;0<=te&&128==(192&j[te]);)te--;return te<0||0===te?q:te+U[j[te]]>q?te:q}(B),E=B;R!==B.length&&(P.uint8array?(E=B.subarray(0,R),this.leftOver=B.subarray(R,B.length)):(E=B.slice(0,R),this.leftOver=B.slice(R,B.length))),this.push({data:Y.utf8decode(E),meta:M.meta})},V.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Y.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},Y.Utf8DecodeWorker=V,F.inherits($,A),$.prototype.processChunk=function(M){this.push({data:Y.utf8encode(M.data),meta:M.meta})},Y.Utf8EncodeWorker=$},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(G,Pe,Y){"use strict";var F=G("./support"),P=G("./base64"),S=G("./nodejsUtils"),A=G("./external");function U(k){return k}function W(k,R){for(var E=0;E>8;this.dir=!!(16&this.externalFileAttributes),0==M&&(this.dosPermissions=63&this.externalFileAttributes),3==M&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var M=F(this.extraFields[1].value);this.uncompressedSize===P.MAX_VALUE_32BITS&&(this.uncompressedSize=M.readInt(8)),this.compressedSize===P.MAX_VALUE_32BITS&&(this.compressedSize=M.readInt(8)),this.localHeaderOffset===P.MAX_VALUE_32BITS&&(this.localHeaderOffset=M.readInt(8)),this.diskNumberStart===P.MAX_VALUE_32BITS&&(this.diskNumberStart=M.readInt(4))}},readExtraFields:function(M){var B,k,R,E=M.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});M.index+4>>6:(M<65536?$[R++]=224|M>>>12:($[R++]=240|M>>>18,$[R++]=128|M>>>12&63),$[R++]=128|M>>>6&63),$[R++]=128|63&M);return $},Y.buf2binstring=function(V){return W(V,V.length)},Y.binstring2buf=function(V){for(var $=new F.Buf8(V.length),M=0,B=$.length;M>10&1023,j[B++]=56320|1023&k)}return W(j,B)},Y.utf8border=function(V,$){var M;for(($=$||V.length)>V.length&&($=V.length),M=$-1;0<=M&&128==(192&V[M]);)M--;return M<0||0===M?$:M+A[V[M]]>$?M:$}},{"./common":41}],43:[function(G,Pe,Y){"use strict";Pe.exports=function(F,P,S,A){for(var U=65535&F|0,W=F>>>16&65535|0,V=0;0!==S;){for(S-=V=2e3>>1:P>>>1;S[A]=P}return S}();Pe.exports=function(P,S,A,U){var W=F,V=U+A;P^=-1;for(var $=U;$>>8^W[255&(P^S[$])];return-1^P}},{}],46:[function(G,Pe,Y){"use strict";var F,P=G("../utils/common"),S=G("./trees"),A=G("./adler32"),U=G("./crc32"),W=G("./messages"),V=0,M=0,B=-2,E=2,j=8,te=286,ee=30,Te=19,ye=2*te+1,Ne=15,_e=3,Ge=258,ht=Ge+_e+1,H=42,ve=113;function Bt(v,xe){return v.msg=W[xe],xe}function Ve(v){return(v<<1)-(4v.avail_out&&(J=v.avail_out),0!==J&&(P.arraySet(v.output,xe.pending_buf,xe.pending_out,J,v.next_out),v.next_out+=J,xe.pending_out+=J,v.total_out+=J,v.avail_out-=J,xe.pending-=J,0===xe.pending&&(xe.pending_out=0))}function le(v,xe){S._tr_flush_block(v,0<=v.block_start?v.block_start:-1,v.strstart-v.block_start,xe),v.block_start=v.strstart,he(v.strm)}function _t(v,xe){v.pending_buf[v.pending++]=xe}function it(v,xe){v.pending_buf[v.pending++]=xe>>>8&255,v.pending_buf[v.pending++]=255&xe}function Qe(v,xe){var J,L,O=v.max_chain_length,K=v.strstart,de=v.prev_length,Ee=v.nice_match,re=v.strstart>v.w_size-ht?v.strstart-(v.w_size-ht):0,je=v.window,Xe=v.w_mask,ze=v.prev,dt=v.strstart+Ge,ii=je[K+de-1],Gt=je[K+de];v.prev_length>=v.good_match&&(O>>=2),Ee>v.lookahead&&(Ee=v.lookahead);do{if(je[(J=xe)+de]===Gt&&je[J+de-1]===ii&&je[J]===je[K]&&je[++J]===je[K+1]){K+=2,J++;do{}while(je[++K]===je[++J]&&je[++K]===je[++J]&&je[++K]===je[++J]&&je[++K]===je[++J]&&je[++K]===je[++J]&&je[++K]===je[++J]&&je[++K]===je[++J]&&je[++K]===je[++J]&&Kre&&0!=--O);return de<=v.lookahead?de:v.lookahead}function Wi(v){var xe,J,L,O,K,de,Ee,re,je,Xe,ze=v.w_size;do{if(O=v.window_size-v.lookahead-v.strstart,v.strstart>=ze+(ze-ht)){for(P.arraySet(v.window,v.window,ze,ze,0),v.match_start-=ze,v.strstart-=ze,v.block_start-=ze,xe=J=v.hash_size;L=v.head[--xe],v.head[xe]=ze<=L?L-ze:0,--J;);for(xe=J=ze;L=v.prev[--xe],v.prev[xe]=ze<=L?L-ze:0,--J;);O+=ze}if(0===v.strm.avail_in)break;if(Ee=v.window,re=v.strstart+v.lookahead,Xe=void 0,(je=O)<(Xe=(de=v.strm).avail_in)&&(Xe=je),J=0===Xe?0:(de.avail_in-=Xe,P.arraySet(Ee,de.input,de.next_in,Xe,re),1===de.state.wrap?de.adler=A(de.adler,Ee,Xe,re):2===de.state.wrap&&(de.adler=U(de.adler,Ee,Xe,re)),de.next_in+=Xe,de.total_in+=Xe,Xe),v.lookahead+=J,v.lookahead+v.insert>=_e)for(v.ins_h=v.window[K=v.strstart-v.insert],v.ins_h=(v.ins_h<=_e&&(v.ins_h=(v.ins_h<=_e)if(L=S._tr_tally(v,v.strstart-v.match_start,v.match_length-_e),v.lookahead-=v.match_length,v.match_length<=v.max_lazy_match&&v.lookahead>=_e){for(v.match_length--;v.strstart++,v.ins_h=(v.ins_h<=_e&&(v.ins_h=(v.ins_h<=_e&&v.match_length<=v.prev_length){for(O=v.strstart+v.lookahead-_e,L=S._tr_tally(v,v.strstart-1-v.prev_match,v.prev_length-_e),v.lookahead-=v.prev_length-1,v.prev_length-=2;++v.strstart<=O&&(v.ins_h=(v.ins_h<v.pending_buf_size-5&&(J=v.pending_buf_size-5);;){if(v.lookahead<=1){if(Wi(v),0===v.lookahead&&xe===V)return 1;if(0===v.lookahead)break}v.strstart+=v.lookahead,v.lookahead=0;var L=v.block_start+J;if((0===v.strstart||v.strstart>=L)&&(v.lookahead=v.strstart-L,v.strstart=L,le(v,!1),0===v.strm.avail_out)||v.strstart-v.block_start>=v.w_size-ht&&(le(v,!1),0===v.strm.avail_out))return 1}return v.insert=0,4===xe?(le(v,!0),0===v.strm.avail_out?3:4):(v.strstart>v.block_start&&le(v,!1),1)}),new ti(4,4,8,4,Rn),new ti(4,5,16,8,Rn),new ti(4,6,32,32,Rn),new ti(4,4,16,16,$t),new ti(8,16,32,32,$t),new ti(8,16,128,128,$t),new ti(8,32,128,256,$t),new ti(32,128,258,1024,$t),new ti(32,258,258,4096,$t)],Y.deflateInit=function(v,xe){return fo(v,xe,j,15,8,0)},Y.deflateInit2=fo,Y.deflateReset=rr,Y.deflateResetKeep=Vi,Y.deflateSetHeader=function(v,xe){return v&&v.state?2!==v.state.wrap?B:(v.state.gzhead=xe,M):B},Y.deflate=function(v,xe){var J,L,O,K;if(!v||!v.state||5>8&255),_t(L,L.gzhead.time>>16&255),_t(L,L.gzhead.time>>24&255),_t(L,9===L.level?2:2<=L.strategy||L.level<2?4:0),_t(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(_t(L,255&L.gzhead.extra.length),_t(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(v.adler=U(v.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(_t(L,0),_t(L,0),_t(L,0),_t(L,0),_t(L,0),_t(L,9===L.level?2:2<=L.strategy||L.level<2?4:0),_t(L,3),L.status=ve);else{var de=j+(L.w_bits-8<<4)<<8;de|=(2<=L.strategy||L.level<2?0:L.level<6?1:6===L.level?2:3)<<6,0!==L.strstart&&(de|=32),de+=31-de%31,L.status=ve,it(L,de),0!==L.strstart&&(it(L,v.adler>>>16),it(L,65535&v.adler)),v.adler=1}if(69===L.status)if(L.gzhead.extra){for(O=L.pending;L.gzindex<(65535&L.gzhead.extra.length)&&(L.pending!==L.pending_buf_size||(L.gzhead.hcrc&&L.pending>O&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),he(v),O=L.pending,L.pending!==L.pending_buf_size));)_t(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>O&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=73)}else L.status=73;if(73===L.status)if(L.gzhead.name){O=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>O&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),he(v),O=L.pending,L.pending===L.pending_buf_size)){K=1;break}K=L.gzindexO&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),0===K&&(L.gzindex=0,L.status=91)}else L.status=91;if(91===L.status)if(L.gzhead.comment){O=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>O&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),he(v),O=L.pending,L.pending===L.pending_buf_size)){K=1;break}K=L.gzindexO&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),0===K&&(L.status=103)}else L.status=103;if(103===L.status&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&he(v),L.pending+2<=L.pending_buf_size&&(_t(L,255&v.adler),_t(L,v.adler>>8&255),v.adler=0,L.status=ve)):L.status=ve),0!==L.pending){if(he(v),0===v.avail_out)return L.last_flush=-1,M}else if(0===v.avail_in&&Ve(xe)<=Ve(J)&&4!==xe)return Bt(v,-5);if(666===L.status&&0!==v.avail_in)return Bt(v,-5);if(0!==v.avail_in||0!==L.lookahead||xe!==V&&666!==L.status){var Ee=2===L.strategy?function(re,je){for(var Xe;;){if(0===re.lookahead&&(Wi(re),0===re.lookahead)){if(je===V)return 1;break}if(re.match_length=0,Xe=S._tr_tally(re,0,re.window[re.strstart]),re.lookahead--,re.strstart++,Xe&&(le(re,!1),0===re.strm.avail_out))return 1}return re.insert=0,4===je?(le(re,!0),0===re.strm.avail_out?3:4):re.last_lit&&(le(re,!1),0===re.strm.avail_out)?1:2}(L,xe):3===L.strategy?function(re,je){for(var Xe,ze,dt,ii,Gt=re.window;;){if(re.lookahead<=Ge){if(Wi(re),re.lookahead<=Ge&&je===V)return 1;if(0===re.lookahead)break}if(re.match_length=0,re.lookahead>=_e&&0re.lookahead&&(re.match_length=re.lookahead)}if(re.match_length>=_e?(Xe=S._tr_tally(re,1,re.match_length-_e),re.lookahead-=re.match_length,re.strstart+=re.match_length,re.match_length=0):(Xe=S._tr_tally(re,0,re.window[re.strstart]),re.lookahead--,re.strstart++),Xe&&(le(re,!1),0===re.strm.avail_out))return 1}return re.insert=0,4===je?(le(re,!0),0===re.strm.avail_out?3:4):re.last_lit&&(le(re,!1),0===re.strm.avail_out)?1:2}(L,xe):F[L.level].func(L,xe);if(3!==Ee&&4!==Ee||(L.status=666),1===Ee||3===Ee)return 0===v.avail_out&&(L.last_flush=-1),M;if(2===Ee&&(1===xe?S._tr_align(L):5!==xe&&(S._tr_stored_block(L,0,0,!1),3===xe&&(kt(L.head),0===L.lookahead&&(L.strstart=0,L.block_start=0,L.insert=0))),he(v),0===v.avail_out))return L.last_flush=-1,M}return 4!==xe?M:L.wrap<=0?1:(2===L.wrap?(_t(L,255&v.adler),_t(L,v.adler>>8&255),_t(L,v.adler>>16&255),_t(L,v.adler>>24&255),_t(L,255&v.total_in),_t(L,v.total_in>>8&255),_t(L,v.total_in>>16&255),_t(L,v.total_in>>24&255)):(it(L,v.adler>>>16),it(L,65535&v.adler)),he(v),0=J.w_size&&(0===K&&(kt(J.head),J.strstart=0,J.block_start=0,J.insert=0),je=new P.Buf8(J.w_size),P.arraySet(je,xe,Xe-J.w_size,J.w_size,0),xe=je,Xe=J.w_size),de=v.avail_in,Ee=v.next_in,re=v.input,v.avail_in=Xe,v.next_in=0,v.input=xe,Wi(J);J.lookahead>=_e;){for(L=J.strstart,O=J.lookahead-(_e-1);J.ins_h=(J.ins_h<>>=_e=Ne>>>24,q-=_e,0==(_e=Ne>>>16&255))ke[W++]=65535&Ne;else{if(!(16&_e)){if(!(64&_e)){Ne=te[(65535&Ne)+(j&(1<<_e)-1)];continue t}if(32&_e){S.mode=12;break e}F.msg="invalid literal/length code",S.mode=30;break e}Ge=65535&Ne,(_e&=15)&&(q<_e&&(j+=C[A++]<>>=_e,q-=_e),q<15&&(j+=C[A++]<>>=_e=Ne>>>24,q-=_e,!(16&(_e=Ne>>>16&255))){if(!(64&_e)){Ne=ee[(65535&Ne)+(j&(1<<_e)-1)];continue i}F.msg="invalid distance code",S.mode=30;break e}if(ht=65535&Ne,q<(_e&=15)&&(j+=C[A++]<>>=_e,q-=_e,(_e=W-V)>3,j&=(1<<(q-=Ge<<3))-1,F.next_in=A,F.next_out=W,F.avail_in=A>>24&255)+(H>>>8&65280)+((65280&H)<<8)+((255&H)<<24)}function j(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new F.Buf16(320),this.work=new F.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function q(H){var ve;return H&&H.state?(H.total_in=H.total_out=(ve=H.state).total=0,H.msg="",ve.wrap&&(H.adler=1&ve.wrap),ve.mode=B,ve.last=0,ve.havedict=0,ve.dmax=32768,ve.head=null,ve.hold=0,ve.bits=0,ve.lencode=ve.lendyn=new F.Buf32(k),ve.distcode=ve.distdyn=new F.Buf32(R),ve.sane=1,ve.back=-1,$):M}function te(H){var ve;return H&&H.state?((ve=H.state).wsize=0,ve.whave=0,ve.wnext=0,q(H)):M}function ee(H,ve){var C,ke;return H&&H.state?(ke=H.state,ve<0?(C=0,ve=-ve):(C=1+(ve>>4),ve<48&&(ve&=15)),ve&&(ve<8||15=Le.wsize?(F.arraySet(Le.window,ve,C-Le.wsize,Le.wsize,0),Le.wnext=0,Le.whave=Le.wsize):(ke<(At=Le.wsize-Le.wnext)&&(At=ke),F.arraySet(Le.window,ve,C-ke,At,Le.wnext),(ke-=At)?(F.arraySet(Le.window,ve,C-ke,ke,0),Le.wnext=ke,Le.whave=Le.wsize):(Le.wnext+=At,Le.wnext===Le.wsize&&(Le.wnext=0),Le.whave>>8&255,C.check=S(C.check,K,2,0),le=he=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&he)<<8)+(he>>8))%31){H.msg="incorrect header check",C.mode=30;break}if(8!=(15&he)){H.msg="unknown compression method",C.mode=30;break}if(le-=4,v=8+(15&(he>>>=4)),0===C.wbits)C.wbits=v;else if(v>C.wbits){H.msg="invalid window size",C.mode=30;break}C.dmax=1<>8&1),512&C.flags&&(K[0]=255&he,K[1]=he>>>8&255,C.check=S(C.check,K,2,0)),le=he=0,C.mode=3;case 3:for(;le<32;){if(0===Ve)break e;Ve--,he+=ke[Le++]<>>8&255,K[2]=he>>>16&255,K[3]=he>>>24&255,C.check=S(C.check,K,4,0)),le=he=0,C.mode=4;case 4:for(;le<16;){if(0===Ve)break e;Ve--,he+=ke[Le++]<>8),512&C.flags&&(K[0]=255&he,K[1]=he>>>8&255,C.check=S(C.check,K,2,0)),le=he=0,C.mode=5;case 5:if(1024&C.flags){for(;le<16;){if(0===Ve)break e;Ve--,he+=ke[Le++]<>>8&255,C.check=S(C.check,K,2,0)),le=he=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&(Ve<(Qe=C.length)&&(Qe=Ve),Qe&&(C.head&&(v=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),F.arraySet(C.head.extra,ke,Le,Qe,v)),512&C.flags&&(C.check=S(C.check,ke,Qe,Le)),Ve-=Qe,Le+=Qe,C.length-=Qe),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if(0===Ve)break e;for(Qe=0;v=ke[Le+Qe++],C.head&&v&&C.length<65536&&(C.head.name+=String.fromCharCode(v)),v&&Qe>9&1,C.head.done=!0),H.adler=C.check=0,C.mode=12;break;case 10:for(;le<32;){if(0===Ve)break e;Ve--,he+=ke[Le++]<>>=7&le,le-=7&le,C.mode=27;break}for(;le<3;){if(0===Ve)break e;Ve--,he+=ke[Le++]<>>=1)){case 0:C.mode=14;break;case 1:if(Ge(C),C.mode=20,6!==ve)break;he>>>=2,le-=2;break e;case 2:C.mode=17;break;case 3:H.msg="invalid block type",C.mode=30}he>>>=2,le-=2;break;case 14:for(he>>>=7&le,le-=7≤le<32;){if(0===Ve)break e;Ve--,he+=ke[Le++]<>>16^65535)){H.msg="invalid stored block lengths",C.mode=30;break}if(C.length=65535&he,le=he=0,C.mode=15,6===ve)break e;case 15:C.mode=16;case 16:if(Qe=C.length){if(Ve>>=5)),le-=5,C.ncode=4+(15&(he>>>=5)),he>>>=4,le-=4,286>>=3,le-=3}for(;C.have<19;)C.lens[de[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,xe=U(0,C.lens,0,19,C.lencode,0,C.work,J={bits:C.lenbits}),C.lenbits=J.bits,xe){H.msg="invalid code lengths set",C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have>>16&255,sn=65535&O,!(($t=O>>>24)<=le);){if(0===Ve)break e;Ve--,he+=ke[Le++]<>>=$t,le-=$t,C.lens[C.have++]=sn;else{if(16===sn){for(L=$t+2;le>>=$t,le-=$t,0===C.have){H.msg="invalid bit length repeat",C.mode=30;break}v=C.lens[C.have-1],Qe=3+(3&he),he>>>=2,le-=2}else if(17===sn){for(L=$t+3;le>>=$t)),he>>>=3,le-=3}else{for(L=$t+7;le>>=$t)),he>>>=7,le-=7}if(C.have+Qe>C.nlen+C.ndist){H.msg="invalid bit length repeat",C.mode=30;break}for(;Qe--;)C.lens[C.have++]=v}}if(30===C.mode)break;if(0===C.lens[256]){H.msg="invalid code -- missing end-of-block",C.mode=30;break}if(C.lenbits=9,xe=U(1,C.lens,0,C.nlen,C.lencode,0,C.work,J={bits:C.lenbits}),C.lenbits=J.bits,xe){H.msg="invalid literal/lengths set",C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,xe=U(2,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,J={bits:C.distbits}),C.distbits=J.bits,xe){H.msg="invalid distances set",C.mode=30;break}if(C.mode=20,6===ve)break e;case 20:C.mode=21;case 21:if(6<=Ve&&258<=kt){H.next_out=Bt,H.avail_out=kt,H.next_in=Le,H.avail_in=Ve,C.hold=he,C.bits=le,A(H,it),Bt=H.next_out,At=H.output,kt=H.avail_out,Le=H.next_in,ke=H.input,Ve=H.avail_in,he=C.hold,le=C.bits,12===C.mode&&(C.back=-1);break}for(C.back=0;ti=(O=C.lencode[he&(1<>>16&255,sn=65535&O,!(($t=O>>>24)<=le);){if(0===Ve)break e;Ve--,he+=ke[Le++]<>Vi)])>>>16&255,sn=65535&O,!(Vi+($t=O>>>24)<=le);){if(0===Ve)break e;Ve--,he+=ke[Le++]<>>=Vi,le-=Vi,C.back+=Vi}if(he>>>=$t,le-=$t,C.back+=$t,C.length=sn,0===ti){C.mode=26;break}if(32&ti){C.back=-1,C.mode=12;break}if(64&ti){H.msg="invalid literal/length code",C.mode=30;break}C.extra=15&ti,C.mode=22;case 22:if(C.extra){for(L=C.extra;le>>=C.extra,le-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;ti=(O=C.distcode[he&(1<>>16&255,sn=65535&O,!(($t=O>>>24)<=le);){if(0===Ve)break e;Ve--,he+=ke[Le++]<>Vi)])>>>16&255,sn=65535&O,!(Vi+($t=O>>>24)<=le);){if(0===Ve)break e;Ve--,he+=ke[Le++]<>>=Vi,le-=Vi,C.back+=Vi}if(he>>>=$t,le-=$t,C.back+=$t,64&ti){H.msg="invalid distance code",C.mode=30;break}C.offset=sn,C.extra=15&ti,C.mode=24;case 24:if(C.extra){for(L=C.extra;le>>=C.extra,le-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){H.msg="invalid distance too far back",C.mode=30;break}C.mode=25;case 25:if(0===kt)break e;if(C.offset>(Qe=it-kt)){if((Qe=C.offset-Qe)>C.whave&&C.sane){H.msg="invalid distance too far back",C.mode=30;break}Wi=Qe>C.wnext?C.wsize-(Qe-=C.wnext):C.wnext-Qe,Qe>C.length&&(Qe=C.length),Rn=C.window}else Rn=At,Wi=Bt-C.offset,Qe=C.length;for(ktye?(_e=Wi[Rn+R[ve]],le[_t+R[ve]]):(_e=96,0),j=1<>Bt)+(q-=j)]=Ne<<24|_e<<16|Ge|0,0!==q;);for(j=1<>=1;if(0!==j?(he&=j-1,he+=j):he=0,ve++,0==--it[H]){if(H===ke)break;H=V[$+R[ve]]}if(At>>7)]}function _t(O,K){O.pending_buf[O.pending++]=255&K,O.pending_buf[O.pending++]=K>>>8&255}function it(O,K,de){O.bi_valid>E-de?(O.bi_buf|=K<>E-O.bi_valid,O.bi_valid+=de-E):(O.bi_buf|=K<>>=1,de<<=1,0<--K;);return de>>>1}function Rn(O,K,de){var Ee,re,je=new Array(R+1),Xe=0;for(Ee=1;Ee<=R;Ee++)je[Ee]=Xe=Xe+de[Ee-1]<<1;for(re=0;re<=K;re++){var ze=O[2*re+1];0!==ze&&(O[2*re]=Wi(je[ze]++,ze))}}function $t(O){var K;for(K=0;K<$;K++)O.dyn_ltree[2*K]=0;for(K=0;K>1;1<=de;de--)Vi(O,je,de);for(re=dt;de=O.heap[1],O.heap[1]=O.heap[O.heap_len--],Vi(O,je,1),Ee=O.heap[1],O.heap[--O.heap_max]=de,O.heap[--O.heap_max]=Ee,je[2*re]=je[2*de]+je[2*Ee],O.depth[re]=(O.depth[de]>=O.depth[Ee]?O.depth[de]:O.depth[Ee])+1,je[2*de+1]=je[2*Ee+1]=re,O.heap[1]=re++,Vi(O,je,1),2<=O.heap_len;);O.heap[--O.heap_max]=O.heap[1],function(Gt,go){var ws,_o,Do,Ci,fc,xs,ar=go.dyn_tree,gc=go.max_code,Mg=go.stat_desc.static_tree,Cs=go.stat_desc.has_stree,_c=go.stat_desc.extra_bits,xh=go.stat_desc.extra_base,Kr=go.stat_desc.max_length,bc=0;for(Ci=0;Ci<=R;Ci++)Gt.bl_count[Ci]=0;for(ar[2*Gt.heap[Gt.heap_max]+1]=0,ws=Gt.heap_max+1;ws<573;ws++)Kr<(Ci=ar[2*ar[2*(_o=Gt.heap[ws])+1]+1]+1)&&(Ci=Kr,bc++),ar[2*_o+1]=Ci,gc<_o||(Gt.bl_count[Ci]++,fc=0,xh<=_o&&(fc=_c[_o-xh]),Gt.opt_len+=(xs=ar[2*_o])*(Ci+fc),Cs&&(Gt.static_len+=xs*(Mg[2*_o+1]+fc)));if(0!==bc){do{for(Ci=Kr-1;0===Gt.bl_count[Ci];)Ci--;Gt.bl_count[Ci]--,Gt.bl_count[Ci+1]+=2,Gt.bl_count[Kr]--,bc-=2}while(0>=7;re>>=1)if(1&ii&&0!==ze.dyn_ltree[2*dt])return 0;if(0!==ze.dyn_ltree[18]||0!==ze.dyn_ltree[20]||0!==ze.dyn_ltree[26])return 1;for(dt=32;dt>>3)<=(re=O.opt_len+3+7>>>3)&&(re=je)):re=je=de+5,de+4<=re&&-1!==K?L(O,K,de,Ee):4===O.strategy||je===re?(it(O,2+(Ee?1:0),3),rr(O,ht,H)):(it(O,4+(Ee?1:0),3),function(ze,dt,ii,Gt){var go;for(it(ze,dt-257,5),it(ze,ii-1,5),it(ze,Gt-4,4),go=0;go>>8&255,O.pending_buf[O.d_buf+2*O.last_lit+1]=255&K,O.pending_buf[O.l_buf+O.last_lit]=255&de,O.last_lit++,0===K?O.dyn_ltree[2*de]++:(O.matches++,K--,O.dyn_ltree[2*(C[de]+V+1)]++,O.dyn_dtree[2*le(K)]++),O.last_lit===O.lit_bufsize-1},Y._tr_align=function(O){var K;it(O,2,3),Qe(O,256,ht),16===(K=O).bi_valid?(_t(K,K.bi_buf),K.bi_buf=0,K.bi_valid=0):8<=K.bi_valid&&(K.pending_buf[K.pending++]=255&K.bi_buf,K.bi_buf>>=8,K.bi_valid-=8)}},{"../utils/common":41}],53:[function(G,Pe,Y){"use strict";Pe.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(G,Pe,Y){(function(F){!function(P,S){"use strict";if(!P.setImmediate){var A,U,W,V,$=1,M={},B=!1,k=P.document,R=Object.getPrototypeOf&&Object.getPrototypeOf(P);R=R&&R.setTimeout?R:P,A="[object process]"==={}.toString.call(P.process)?function(te){process.nextTick(function(){j(te)})}:function(){if(P.postMessage&&!P.importScripts){var te=!0,ee=P.onmessage;return P.onmessage=function(){te=!1},P.postMessage("","*"),P.onmessage=ee,te}}()?(V="setImmediate$"+Math.random()+"$",P.addEventListener?P.addEventListener("message",q,!1):P.attachEvent("onmessage",q),function(te){P.postMessage(V+te,"*")}):P.MessageChannel?((W=new MessageChannel).port1.onmessage=function(te){j(te.data)},function(te){W.port2.postMessage(te)}):k&&"onreadystatechange"in k.createElement("script")?(U=k.documentElement,function(te){var ee=k.createElement("script");ee.onreadystatechange=function(){j(te),ee.onreadystatechange=null,U.removeChild(ee),ee=null},U.appendChild(ee)}):function(te){setTimeout(j,0,te)},R.setImmediate=function(te){"function"!=typeof te&&(te=new Function(""+te));for(var ee=new Array(arguments.length-1),Te=0;Te"u"?void 0===F?this:F:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)}},cd=>{cd(cd.s=652)}]); \ No newline at end of file diff --git a/ui/dist/ui/main.e121cee446134240.js b/ui/dist/ui/main.e121cee446134240.js new file mode 100644 index 000000000..997473406 --- /dev/null +++ b/ui/dist/ui/main.e121cee446134240.js @@ -0,0 +1 @@ +(self.webpackChunkui=self.webpackChunkui||[]).push([[590],{652:(cd,G,Pe)=>{"use strict";let S=null,U=1;const W=Symbol("SIGNAL");function V(t){const n=S;return S=t,n}function j(t){if((!H(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==U)){if(!t.producerMustRecompute(t)&&!Fe(t))return t.dirty=!1,void(t.lastCleanEpoch=U);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=U}}function Fe(t){ve(t);for(let n=0;n0}function ve(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let he=null;function J(t){return"function"==typeof t}function L(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const O=L(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Z(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class de{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(J(i))try{i()}catch(r){n=r instanceof O?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{je(r)}catch(a){n=n??[],a instanceof O?n=[...n,...a.errors]:n.push(a)}}if(n)throw new O(n)}}add(n){var e;if(n&&n!==this)if(this.closed)je(n);else{if(n instanceof de){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Z(e,n)}remove(n){const{_finalizers:e}=this;e&&Z(e,n),n instanceof de&&n._removeParent(this)}}de.EMPTY=(()=>{const t=new de;return t.closed=!0,t})();const Ee=de.EMPTY;function re(t){return t instanceof de||t&&"closed"in t&&J(t.remove)&&J(t.add)&&J(t.unsubscribe)}function je(t){J(t)?t():t.unsubscribe()}const Xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ze={setTimeout(t,n,...e){const{delegate:i}=ze;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=ze;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ut(t){ze.setTimeout(()=>{const{onUnhandledError:n}=Xe;if(!n)throw t;n(t)})}function ii(){}const Gt=_o("C",void 0,void 0);function _o(t,n,e){return{kind:t,value:n,error:e}}let Do=null;function Ci(t){if(Xe.useDeprecatedSynchronousErrorHandling){const n=!Do;if(n&&(Do={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Do;if(Do=null,e)throw i}}else t()}class xs extends de{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,re(n)&&n.add(this)):this.destination=bc}static create(n,e,i){return new Cs(n,e,i)}next(n){this.isStopped?Yr(function ws(t){return _o("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Yr(function go(t){return _o("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Yr(Gt,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ar=Function.prototype.bind;function gc(t,n){return ar.call(t,n)}class Ag{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){_c(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){_c(i)}else _c(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){_c(e)}}}class Cs extends xs{constructor(n,e,i){let o;if(super(),J(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Xe.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&gc(n.next,r),error:n.error&&gc(n.error,r),complete:n.complete&&gc(n.complete,r)}):o=n}this.destination=new Ag(o)}}function _c(t){Xe.useDeprecatedSynchronousErrorHandling?function fc(t){Xe.useDeprecatedSynchronousErrorHandling&&Do&&(Do.errorThrown=!0,Do.error=t)}(t):ut(t)}function Yr(t,n){const{onStoppedNotification:e}=Xe;e&&ze.setTimeout(()=>e(t,n))}const bc={closed:!0,next:ii,error:function Dh(t){throw t},complete:ii},Pg="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ra(t){return t}function Tx(t){return 0===t.length?Ra:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let ci=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function $N(t){return t&&t instanceof xs||function UN(t){return t&&J(t.next)&&J(t.error)&&J(t.complete)}(t)&&re(t)}(e)?e:new Cs(e,i,o);return Ci(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Mx(i))((o,r)=>{const a=new Cs({next:s=>{try{e(s)}catch(c){r(c),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Pg](){return this}pipe(...e){return Tx(e)(this)}toPromise(e){return new(e=Mx(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function Mx(t){var n;return null!==(n=t??Xe.Promise)&&void 0!==n?n:Promise}const GN=L(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let qe=(()=>{class t extends ci{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Ix(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new GN}next(e){Ci(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Ci(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Ci(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?Ee:(this.currentObservers=null,r.push(e),new de(()=>{this.currentObservers=null,Z(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new ci;return e.source=this,e}}return t.create=(n,e)=>new Ix(n,e),t})();class Ix extends qe{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:Ee}}class ft extends qe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Ex(t){return J(t?.lift)}function ji(t){return n=>{if(Ex(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Fi(t,n,e,i,o){return new WN(t,n,e,i,o)}class WN extends xs{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){n.error(c)}}:super._next,this._error=o?function(s){try{o(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function nt(t,n){return ji((e,i)=>{let o=0;e.subscribe(Fi(i,r=>{i.next(t.call(n,r,o++))}))})}const Ox="https://g.co/ng/security#xss";class ue extends Error{constructor(n,e){super(function vc(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function Rg(t){return n=>{setTimeout(t,void 0,n)}}const Re=class qN extends qe{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const c=n;o=c.next?.bind(c),r=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(r=Rg(r),o&&(o=Rg(o)),a&&(a=Rg(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof de&&n.add(s),s}};var Ht=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}(Ht||{});function fn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(fn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Ng(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}var kh=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(kh||{}),sr=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(sr||{});function Qr(t){return{toString:t}.toString()}const li=globalThis,Dr={},Qt=[];function mi(t){for(let n in t)if(t[n]===mi)return n;throw Error("Could not find renamed property on target object.")}function QN(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}const ld=mi({\u0275cmp:mi}),Fg=mi({\u0275dir:mi}),Lg=mi({\u0275pipe:mi}),Rx=mi({\u0275mod:mi}),Xr=mi({\u0275fac:mi}),dd=mi({__NG_ELEMENT_ID__:mi}),Nx=mi({__NG_ENV_ID__:mi});var pe=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(pe||{});function Fx(t,n,e){let i=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const r=n.length;if(o+r===i||t.charCodeAt(o+r)<=32)return o}e=o+1}}function Bg(t,n,e){let i=0;for(;in){a=r-1;break}}}for(;rr?"":o[g+1].toLowerCase();const x=8&i?b:null;if(x&&-1!==Fx(x,u,0)||2&i&&u!==b){if(cr(i))return!1;a=!0}}}}else{if(!a&&!cr(i)&&!cr(c))return!1;if(a&&cr(c))continue;a=!1,i=c|1&i}}return cr(i)||a}function cr(t){return 0==(1&t)}function tF(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!cr(a)&&(n+=Ux(r,o),o=""),i=a,r=r||!cr(i);e++}return""!==o&&(n+=Ux(r,o)),n}function Ie(t){return Qr(()=>{const n=Gx(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===kh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||sr.Emulated,styles:t.styles||Qt,_:null,schemas:t.schemas||null,tView:null,id:""};Wx(e);const i=t.dependencies;return e.directiveDefs=Th(i,!1),e.pipeDefs=Th(i,!0),e.id=function hF(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function lF(t){return jt(t)||gn(t)}function dF(t){return null!==t}function st(t){return Qr(()=>({type:t.type,bootstrap:t.bootstrap||Qt,declarations:t.declarations||Qt,imports:t.imports||Qt,exports:t.exports||Qt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function $x(t,n){if(null==t)return Dr;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,a,s=pe.None;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r):(r=o,a=o),n?(e[r]=s!==pe.None?[i,s]:i,n[r]=a):e[r]=i}return e}function Q(t){return Qr(()=>{const n=Gx(t);return Wx(n),n})}function bo(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 jt(t){return t[ld]||null}function gn(t){return t[Fg]||null}function Fn(t){return t[Lg]||null}function Hn(t,n){const e=t[Rx]||null;if(!e&&!0===n)throw new Error(`Type ${fn(t)} does not have '\u0275mod' property.`);return e}function Gx(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||Dr,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Qt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:$x(t.inputs,n),outputs:$x(t.outputs),debugInfo:null}}function Wx(t){t.features?.forEach(n=>n(t))}function Th(t,n){if(!t)return null;const e=n?Fn:lF;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(dF)}const Li=0,He=1,ct=2,Xi=3,lr=4,Un=5,dr=6,yc=7,Di=8,$n=9,Jr=10,It=11,hd=12,qx=13,wc=14,zi=15,md=16,xc=17,ea=18,pd=19,Kx=20,La=21,Mh=22,Ds=23,Et=25,Vg=1,Sr=7,Cc=9,Ji=10;var jg=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(jg||{});function Gn(t){return Array.isArray(t)&&"object"==typeof t[Vg]}function Wn(t){return Array.isArray(t)&&!0===t[Vg]}function zg(t){return 0!=(4&t.flags)}function Ss(t){return t.componentOffset>-1}function Eh(t){return 1==(1&t.flags)}function ur(t){return!!t.template}function Hg(t){return 0!=(512&t[ct])}const Xx="svg";let eC=!1;function _i(t){for(;Array.isArray(t);)t=t[Li];return t}function gd(t,n){return _i(n[t])}function eo(t,n){return _i(n[t.index])}function _d(t,n){return t.data[n]}function Dc(t,n){return t[n]}function To(t,n){const e=n[t];return Gn(e)?e:e[Li]}function Wg(t){return 128==(128&t[ct])}function kr(t,n){return null==n?null:t[n]}function tC(t){t[xc]=0}function yF(t){1024&t[ct]||(t[ct]|=1024,Wg(t)&&bd(t))}function qg(t){return!!(9216&t[ct]||t[Ds]?.dirty)}function Kg(t){qg(t)?bd(t):64&t[ct]&&(function gF(){return eC}()?(t[ct]|=1024,bd(t)):t[Jr].changeDetectionScheduler?.notify())}function bd(t){t[Jr].changeDetectionScheduler?.notify();let n=ks(t);for(;null!==n&&!(8192&n[ct])&&(n[ct]|=8192,Wg(n));)n=ks(n)}function Oh(t,n){if(256==(256&t[ct]))throw new ue(911,!1);null===t[La]&&(t[La]=[]),t[La].push(n)}function ks(t){const n=t[Xi];return Wn(n)?n[Xi]:n}const Ct={lFrame:uC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function oC(){return Ct.bindingsEnabled}function Sc(){return null!==Ct.skipHydrationRootTNode}function fe(){return Ct.lFrame.lView}function Ut(){return Ct.lFrame.tView}function ae(t){return Ct.lFrame.contextLView=t,t[Di]}function se(t){return Ct.lFrame.contextLView=null,t}function pi(){let t=rC();for(;null!==t&&64===t.type;)t=t.parent;return t}function rC(){return Ct.lFrame.currentTNode}function Tr(t,n){const e=Ct.lFrame;e.currentTNode=t,e.isParent=n}function Yg(){return Ct.lFrame.isParent}function Qg(){Ct.lFrame.isParent=!1}function to(){const t=Ct.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function ta(){return Ct.lFrame.bindingIndex}function hr(){return Ct.lFrame.bindingIndex++}function ia(t){const n=Ct.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function OF(t,n){const e=Ct.lFrame;e.bindingIndex=e.bindingRootIndex=t,Xg(n)}function Xg(t){Ct.lFrame.currentDirectiveIndex=t}function Jg(t){const n=Ct.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function e_(){return Ct.lFrame.currentQueryIndex}function Ah(t){Ct.lFrame.currentQueryIndex=t}function PF(t){const n=t[He];return 2===n.type?n.declTNode:1===n.type?t[Un]:null}function lC(t,n,e){if(e&Ht.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&Ht.Host||(o=PF(r),null===o||(r=r[wc],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Ct.lFrame=dC();return i.currentTNode=n,i.lView=t,!0}function t_(t){const n=dC(),e=t[He];Ct.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function dC(){const t=Ct.lFrame,n=null===t?null:t.child;return null===n?uC(t):n}function uC(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function hC(){const t=Ct.lFrame;return Ct.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const mC=hC;function i_(){const t=hC();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 qn(){return Ct.lFrame.selectedIndex}function Ts(t){Ct.lFrame.selectedIndex=t}function Si(){const t=Ct.lFrame;return _d(t.tView,t.selectedIndex)}function Xt(){Ct.lFrame.currentNamespace=Xx}function mr(){!function FF(){Ct.lFrame.currentNamespace=null}()}let fC=!0;function Ph(){return fC}function Ba(t){fC=t}function LF(){return kc(pi(),fe())}function kc(t,n){return new Be(eo(t,n))}let r_,Be=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=LF}return t})();function gC(t){return t instanceof Be?t.nativeElement:t}function Tc(t,n){t.forEach(e=>Array.isArray(e)?Tc(e,n):n(e))}function _C(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Rh(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Mo(t,n,e){let i=Mc(t,n);return i>=0?t[1|i]=e:(i=~i,function bC(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function o_(t,n){const e=Mc(t,n);if(e>=0)return t[1|e]}function Mc(t,n){return function vC(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<GF}),GF="ng",DC=new oe(""),oa=new oe("",{providedIn:"platform",factory:()=>"unknown"}),di=new oe(""),s_=new oe("",{providedIn:"root",factory:()=>Va().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),KF=mi({__forward_ref__:mi});function qt(t){return t.__forward_ref__=qt,t.toString=function(){return fn(this())},t}function wt(t){return zh(t)?t():t}function zh(t){return"function"==typeof t&&t.hasOwnProperty(KF)&&t.__forward_ref__===qt}function h_(t){return t&&!!t.\u0275providers}function Ot(t){return"string"==typeof t?t:null==t?"":String(t)}function m_(t,n){throw new ue(-201,!1)}let p_;function kC(){return p_}function yo(t){const n=p_;return p_=t,n}function TC(t,n,e){const i=Bh(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Ht.Optional?null:void 0!==n?n:void m_()}const xd={},f_="__NG_DI_FLAG__",Hh="ngTempTokenPath",e3=/\n/gm,MC="__source";let Ic;function ja(t){const n=Ic;return Ic=t,n}function o3(t,n=Ht.Default){if(void 0===Ic)throw new ue(-203,!1);return null===Ic?TC(t,void 0,n):Ic.get(t,n&Ht.Optional?null:void 0,n)}function X(t,n=Ht.Default){return(kC()||o3)(wt(t),n)}function Ce(t,n=Ht.Default){return X(t,Uh(n))}function Uh(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function g_(t){const n=[];for(let e=0;enull;function D_(t,n,e=!1){return EC(t,n,e)}const Rc="__parameters__";function Fc(t,n,e){return Qr(()=>{const i=function M_(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(c,u,p){const g=c.hasOwnProperty(Rc)?c[Rc]:Object.defineProperty(c,Rc,{value:[]})[Rc];for(;g.length<=p;)g.push(null);return(g[p]=g[p]||[]).push(a),c}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const za=Cd(Fc("Optional"),8),Lc=Cd(Fc("SkipSelf"),4);function Ms(t,n){return t.hasOwnProperty(Xr)?t[Xr]:null}const Is=new oe(""),FC=new oe("",-1),I_=new oe("");class Zh{get(n,e=xd){if(e===xd){const i=new Error(`NullInjectorError: No provider for ${fn(n)}!`);throw i.name="NullInjectorError",i}return e}}function v3(...t){return{\u0275providers:LC(0,t),\u0275fromNgModule:!0}}function LC(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return Tc(n,a=>{const s=a;Qh(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&BC(o,r),e}function BC(t,n){for(let e=0;e{n(r,i)})}}function Qh(t,n,e,i){if(!(t=wt(t)))return!1;let o=null,r=Vh(t);const a=!r&&jt(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const c=t.ngModule;if(r=Vh(c),!r)return!1;o=c}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const u of c)Qh(u,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let u;i.add(o);try{Tc(r.imports,p=>{Qh(p,n,e,i)&&(u||=[],u.push(p))})}finally{}void 0!==u&&BC(u,n)}if(!s){const u=Ms(o)||(()=>new o);n({provide:o,useFactory:u,deps:Qt},o),n({provide:I_,useValue:o,multi:!0},o),n({provide:Is,useValue:()=>X(o),multi:!0},o)}const c=r.providers;if(null!=c&&!s){const u=t;E_(c,p=>{n(p,u)})}}}return o!==t&&void 0!==t.providers}function E_(t,n){for(let e of t)h_(e)&&(e=e.\u0275providers),Array.isArray(e)?E_(e,n):n(e)}const y3=mi({provide:String,useValue:mi});function O_(t){return null!==t&&"object"==typeof t&&y3 in t}function Es(t){return"function"==typeof t}const A_=new oe(""),Xh={},x3={};let P_;function Jh(){return void 0===P_&&(P_=new Zh),P_}class Io{}class Bc extends Io{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,N_(n,a=>this.processProvider(a)),this.records.set(FC,Vc(void 0,this)),o.has("environment")&&this.records.set(Io,Vc(void 0,this));const r=this.records.get(A_);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(I_,Qt,Ht.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of n)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=ja(this),i=yo(void 0);try{return n()}finally{ja(e),yo(i)}}get(n,e=xd,i=Ht.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Nx))return n[Nx](this);i=Uh(i);const r=ja(this),a=yo(void 0);try{if(!(i&Ht.SkipSelf)){let c=this.records.get(n);if(void 0===c){const u=function T3(t){return"function"==typeof t||"object"==typeof t&&t instanceof oe}(n)&&Bh(n);c=u&&this.injectableDefInScope(u)?Vc(R_(n),Xh):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&Ht.Self?Jh():this.parent).get(n,e=i&Ht.Optional&&e===xd?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Hh]=s[Hh]||[]).unshift(fn(n)),r)throw s;return function a3(t,n,e,i){const o=t[Hh];throw n[MC]&&o.unshift(n[MC]),t.message=function s3(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=fn(n);if(Array.isArray(n))o=n.map(fn).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):fn(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(e3,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Hh]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{yo(a),ja(r)}}resolveInjectorInitializers(){const n=ja(this),e=yo(void 0);try{const o=this.get(Is,Qt,Ht.Self);for(const r of o)r()}finally{ja(n),yo(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(fn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ue(205,!1)}processProvider(n){let e=Es(n=wt(n))?n:wt(n&&n.provide);const i=function D3(t){return O_(t)?Vc(void 0,t.useValue):Vc(zC(t),Xh)}(n);if(!Es(n)&&!0===n.multi){let o=this.records.get(e);o||(o=Vc(void 0,Xh,!0),o.factory=()=>g_(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Xh&&(e.value=x3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function k3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=wt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function R_(t){const n=Bh(t),e=null!==n?n.factory:Ms(t);if(null!==e)return e;if(t instanceof oe)throw new ue(204,!1);if(t instanceof Function)return function C3(t){if(t.length>0)throw new ue(204,!1);const e=function UF(t){return t&&(t[jh]||t[CC])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ue(204,!1)}function zC(t,n,e){let i;if(Es(t)){const o=wt(t);return Ms(o)||R_(o)}if(O_(t))i=()=>wt(t.useValue);else if(function jC(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...g_(t.deps||[]));else if(function VC(t){return!(!t||!t.useExisting)}(t))i=()=>X(wt(t.useExisting));else{const o=wt(t&&(t.useClass||t.provide));if(!function S3(t){return!!t.deps}(t))return Ms(o)||R_(o);i=()=>new o(...g_(t.deps))}return i}function Vc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function N_(t,n){for(const e of t)Array.isArray(e)?N_(e,n):e&&h_(e)?N_(e.\u0275providers,n):n(e)}function Ha(t,n){t instanceof Bc&&t.assertNotDestroyed();const i=ja(t),o=yo(void 0);try{return n()}finally{ja(i),yo(o)}}class L3{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function UC(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function fi(){return $C}function $C(t){return t.type.prototype.ngOnChanges&&(t.setInput=V3),B3}function B3(){const t=WC(this),n=t?.current;if(n){const e=t.previous;if(e===Dr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function V3(t,n,e,i,o){const r=this.declaredInputs[i],a=WC(t)||function j3(t,n){return t[GC]=n}(t,{previous:Dr,current:null}),s=a.current||(a.current={}),c=a.previous,u=c[r];s[r]=new L3(u&&u.currentValue,e,c===Dr),UC(t,n,o,e)}fi.ngInherit=!0;const GC="__ngSimpleChanges__";function WC(t){return t[GC]||null}const Mr=function(t,n,e){};function tm(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[c]<0&&(t[xc]+=65536),(s>14>16&&(3&t[ct])===n&&(t[ct]+=16384,KC(s,r)):KC(s,r)}const zc=-1;class Md{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function z_(t){return t!==zc}function Id(t){return 32767&t}function Ed(t,n){let e=function K3(t){return t>>16}(t),i=n;for(;e>0;)i=i[wc],e--;return i}let H_=!0;function om(t){const n=H_;return H_=t,n}const ZC=255,YC=5;let Z3=0;const Ir={};function rm(t,n){const e=QC(t,n);if(-1!==e)return e;const i=n[He];i.firstCreatePass&&(t.injectorIndex=n.length,U_(i.data,t),U_(n,null),U_(i.blueprint,null));const o=am(t,n),r=t.injectorIndex;if(z_(o)){const a=Id(o),s=Ed(o,n),c=s[He].data;for(let u=0;u<8;u++)n[r+u]=s[a+u]|c[a+u]}return n[r+8]=o,r}function U_(t,n){t.push(0,0,0,0,0,0,0,0,n)}function QC(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function am(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=r1(o),null===i)return zc;if(e++,o=o[wc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return zc}function $_(t,n,e){!function Y3(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(dd)&&(i=e[dd]),null==i&&(i=e[dd]=Z3++);const o=i&ZC;n.data[t+(o>>YC)]|=1<=0?n&ZC:eL:n}(e);if("function"==typeof r){if(!lC(n,t,i))return i&Ht.Host?XC(o,0,i):JC(n,e,i,o);try{let a;if(a=r(i),null!=a||i&Ht.Optional)return a;m_()}finally{mC()}}else if("number"==typeof r){let a=null,s=QC(t,n),c=zc,u=i&Ht.Host?n[zi][Un]:null;for((-1===s||i&Ht.SkipSelf)&&(c=-1===s?am(t,n):n[s+8],c!==zc&&o1(i,!1)?(a=n[He],s=Id(c),n=Ed(c,n)):s=-1);-1!==s;){const p=n[He];if(n1(r,s,p.data)){const g=X3(s,n,e,a,i,u);if(g!==Ir)return g}c=n[s+8],c!==zc&&o1(i,n[He].data[s+8]===u)&&n1(r,s,n)?(a=p,s=Id(c),n=Ed(c,n)):s=-1}}return o}function X3(t,n,e,i,o,r){const a=n[He],s=a.data[t+8],p=sm(s,a,e,null==i?Ss(s)&&H_:i!=a&&0!=(3&s.type),o&Ht.Host&&r===s);return null!==p?Os(n,a,p,s):Ir}function sm(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,c=t.directiveStart,p=r>>20,b=o?s+p:t.directiveEnd;for(let x=i?s:s+p;x=c&&T.type===e)return x}if(o){const x=a[c];if(x&&ur(x)&&x.type===e)return c}return null}function Os(t,n,e,i){let o=t[e];const r=n.data;if(function $3(t){return t instanceof Md}(o)){const a=o;a.resolving&&function QF(t,n){throw n&&n.join(" > "),new ue(-200,t)}(function ni(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ot(t)}(r[e]));const s=om(a.canSeeViewProviders);a.resolving=!0;const u=a.injectImpl?yo(a.injectImpl):null;lC(t,i,Ht.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function H3(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=$C(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==u&&yo(u),om(s),a.resolving=!1,mC()}}return o}function n1(t,n,e){return!!(e[n+(t>>YC)]&1<{const n=t.prototype.constructor,e=n[Xr]||G_(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[Xr]||G_(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function G_(t){return zh(t)?()=>{const n=G_(wt(t));return n&&n()}:Ms(t)}function r1(t){const n=t[He],e=n.type;return 2===e?n.declTNode:1===e?t[Un]:null}function io(t){return function Q3(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{class t{static#e=this.THROW_IF_NOT_FOUND=xd;static#t=this.NULL=new Zh;static create(e,i){if(Array.isArray(e))return d1({name:""},i,e,"");{const o=e.name??"";return d1({name:o},e.parent,e.providers,o)}}static#i=this.\u0275prov=Se({token:t,providedIn:"any",factory:()=>X(FC)});static#n=this.__NG_ELEMENT_ID__=-1}return t})();function q_(t){return t.ngOriginalError}class Ho{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&q_(n);for(;e&&q_(e);)e=q_(e);return e||null}}const m1=new oe("",{providedIn:"root",factory:()=>Ce(Ho).handleError.bind(void 0)}),f1=new oe("",{providedIn:"root",factory:()=>!1});let dm,um;function $c(t){return function K_(){if(void 0===dm&&(dm=null,li.trustedTypes))try{dm=li.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return dm}()?.createHTML(t)||t}function Z_(){if(void 0===um&&(um=null,li.trustedTypes))try{um=li.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return um}function g1(t){return Z_()?.createHTML(t)||t}function b1(t){return Z_()?.createScriptURL(t)||t}class As{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ox})`}}class uL extends As{getTypeName(){return"HTML"}}class hL extends As{getTypeName(){return"Style"}}class mL extends As{getTypeName(){return"Script"}}class pL extends As{getTypeName(){return"URL"}}class fL extends As{getTypeName(){return"ResourceURL"}}function Eo(t){return t instanceof As?t.changingThisBreaksApplicationSecurity:t}function Er(t,n){const e=function gL(t){return t instanceof As&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Ox})`)}return e===n}class xL{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString($c(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class CL{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=$c(n),e}}const SL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function hm(t){return(t=String(t)).match(SL)?t:"unsafe:"+t}function ra(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Od(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const y1=ra("area,br,col,hr,img,wbr"),w1=ra("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),x1=ra("rp,rt"),Y_=Od(y1,Od(w1,ra("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")),Od(x1,ra("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")),Od(x1,w1)),Q_=ra("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),C1=Od(Q_,ra("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"),ra("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")),kL=ra("script,style,template");class TL{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)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(n){const e=n.nodeName.toLowerCase();if(!Y_.hasOwnProperty(e))return this.sanitizedSomething=!0,!kL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=n.nodeName.toLowerCase();Y_.hasOwnProperty(e)&&!y1.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(D1(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const ML=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IL=/([^\#-~ |!])/g;function D1(t){return t.replace(/&/g,"&").replace(ML,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(IL,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let mm;function S1(t,n){let e=null;try{mm=mm||function v1(t){const n=new CL(t);return function DL(){try{return!!(new window.DOMParser).parseFromString($c(""),"text/html")}catch{return!1}}()?new xL(n):n}(t);let i=n?String(n):"";e=mm.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=mm.getInertBodyElement(i)}while(i!==r);return $c((new TL).sanitizeChildren(X_(e)||e))}finally{if(e){const i=X_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function X_(t){return"content"in t&&function EL(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ln=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}(Ln||{});function k1(t){const n=Ad();return n?g1(n.sanitize(Ln.HTML,t)||""):Er(t,"HTML")?g1(Eo(t)):S1(Va(),Ot(t))}function Uo(t){const n=Ad();return n?n.sanitize(Ln.URL,t)||"":Er(t,"URL")?Eo(t):hm(Ot(t))}function T1(t){const n=Ad();if(n)return b1(n.sanitize(Ln.RESOURCE_URL,t)||"");if(Er(t,"ResourceURL"))return b1(Eo(t));throw new ue(904,!1)}function Ad(){const t=fe();return t&&t[Jr].sanitizer}const FL=/^>|^->||--!>|)/g,BL="\u200b$1\u200b";const J_=new Map;let UL=0;const tb="__ngContext__";function Kn(t,n){Gn(n)?(t[tb]=n[pd],function GL(t){J_.set(t[pd],t)}(n)):t[tb]=n}function Oo(t){return t instanceof Function?t():t}var $a=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}($a||{});let rb;function ab(t,n){return rb(t,n)}function Wc(t,n,e,i,o){if(null!=i){let r,a=!1;Wn(i)?r=i:Gn(i)&&(a=!0,i=i[Li]);const s=_i(i);0===t&&null!==e?null==o?q1(n,e,s):Ps(n,e,s,o||null,!0):1===t&&null!==e?Ps(n,e,s,o||null,!0):2===t?function wm(t,n,e){const i=vm(t,n);i&&function p4(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function _4(t,n,e,i,o){const r=e[Sr];r!==_i(e)&&Wc(n,t,i,r,o);for(let s=Ji;sn.replace(LL,BL))}(n))}function _m(t,n,e){return t.createElement(n,e)}function $1(t,n){xm(t,n,n[It],2,null,null)}function G1(t,n){const e=t[Cc],i=e.indexOf(n);e.splice(i,1)}function Rd(t,n){if(t.length<=Ji)return;const e=Ji+n,i=t[e];if(i){const o=i[md];null!==o&&o!==t&&G1(o,i),n>0&&(t[e-1][lr]=i[lr]);const r=Rh(t,Ji+n);!function s4(t,n){$1(t,n),n[Li]=null,n[Un]=null}(i[He],i);const a=r[ea];null!==a&&a.detachView(r[He]),i[Xi]=null,i[lr]=null,i[ct]&=-129}return i}function bm(t,n){if(!(256&n[ct])){const e=n[It];e.destroyNode&&xm(t,n,e,3,null,null),function l4(t){let n=t[hd];if(!n)return cb(t[He],t);for(;n;){let e=null;if(Gn(n))e=n[hd];else{const i=n[Ji];i&&(e=i)}if(!e){for(;n&&!n[lr]&&n!==t;)Gn(n)&&cb(n[He],n),n=n[Xi];null===n&&(n=t),Gn(n)&&cb(n[He],n),e=n&&n[lr]}n=e}}(n)}}function cb(t,n){if(!(256&n[ct])){n[ct]&=-129,n[ct]|=256,n[Ds]&&function be(t){if(ve(t),H(t))for(let n=0;n=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[yc]=null);const o=n[La];if(null!==o){n[La]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===sr.None||r===sr.Emulated)return null}return eo(i,e)}}(t,n.parent,e)}function Ps(t,n,e,i,o){t.insertBefore(n,e,i,o)}function q1(t,n,e){t.appendChild(n,e)}function K1(t,n,e,i,o){null!==i?Ps(t,n,e,i,o):q1(t,n,e)}function vm(t,n){return t.parentNode(n)}function Z1(t,n,e){return Q1(t,n,e)}let db,Q1=function Y1(t,n,e){return 40&t.type?eo(t,e):null};function ym(t,n,e,i){const o=lb(t,i,n),r=n[It],s=Z1(i.parent||n[Un],i,n);if(null!=o)if(Array.isArray(e))for(let c=0;cEt&&oD(t,n,Et,!1),Mr(a?2:0,o),e(i,o)}finally{Ts(r),Mr(a?3:1,o)}}function pb(t,n,e){if(zg(n)){const i=V(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function lD(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];if(void 0===a)continue;i??={};let s,c=pe.None;Array.isArray(a)?(s=a[0],c=a[1]):s=a;let u=r;if(null!==o){if(!o.hasOwnProperty(r))continue;u=o[r]}0===t?dD(i,e,u,s,c):dD(i,e,u,s)}return i}function dD(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function xo(t,n,e,i,o,r,a,s){const c=eo(n,e);let p,u=n.inputs;!s&&null!=u&&(p=u[i])?(xb(t,e,p,i,o),Ss(n)&&function E4(t,n){const e=To(n,t);16&e[ct]||(e[ct]|=64)}(e,n.index)):3&n.type&&(i=function I4(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(c,i,o))}function bb(t,n,e,i){if(oC()){const o=null===i?null:{"":-1},r=function F4(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,Fd(t,e,o.hostVars,Pt),o)}function Ar(t,n,e,i,o,r){const a=eo(t,n);!function yb(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?Ot(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[It],a,r,t.value,e,i,o)}function H4(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s0&&(e[o-1][lr]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{bd(t.lView)},consumerOnSignalRead(){this.lView[Ds]=this}};function wD(t){return CD(t[hd])}function xD(t){return CD(t[lr])}function CD(t){for(;null!==t&&!Wn(t);)t=t[lr];return t}function km(t,n=!0,e=0){const i=t[Jr],o=i.rendererFactory;o.begin?.();try{!function J4(t,n){Sb(t,n);let e=0;for(;qg(t);){if(100===e)throw new ue(103,!1);e++,Sb(t,1)}}(t,e)}catch(a){throw n&&Sm(t,a),a}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function e5(t,n,e,i){const o=n[ct];if(256==(256&o))return;n[Jr].inlineEffectRunner?.flush(),t_(n);let a=null,s=null;(function t5(t){return 2!==t.type})(t)&&(s=function q4(t){return t[Ds]??function K4(t){const n=yD.pop()??Object.create(Y4);return n.lView=t,n}(t)}(n),a=function Me(t){return t&&(t.nextProducerIndex=0),V(t)}(s));try{tC(n),function sC(t){return Ct.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&aD(t,n,e,2,i);const c=3==(3&o);if(c){const g=t.preOrderCheckHooks;null!==g&&im(n,g,null)}else{const g=t.preOrderHooks;null!==g&&nm(n,g,0,null),V_(n,0)}if(function n5(t){for(let n=wD(t);null!==n;n=xD(n)){if(!(n[ct]&jg.HasTransplantedViews))continue;const e=n[Cc];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(s,a),function Z4(t){t.lView[Ds]!==t&&(t.lView=null,yD.push(t))}(s)),i_()}}function SD(t,n){for(let e=wD(t);null!==e;e=xD(e))for(let i=Ji;i-1&&(Rd(n,i),Rh(e,i))}this._attachedToViewContainer=!1}bm(this._lView[He],this._lView)}onDestroy(n){Oh(this._lView,n)}markForCheck(){jd(this._cdRefInjectingView||this._lView)}detach(){this._lView[ct]&=-129}reattach(){Kg(this._lView),this._lView[ct]|=128}detectChanges(){this._lView[ct]|=1024,km(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,$1(this._lView[He],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=n,Kg(this._lView)}}let gi=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=s5}return t})();const r5=gi,a5=class extends r5{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=function Ld(t,n,e,i){const o=n.tView,s=Cm(t,o,e,4096&t[ct]?4096:16,null,n,null,null,null,i?.injector??null,i?.dehydratedView??null);s[md]=t[n.index];const u=t[ea];return null!==u&&(s[ea]=u.createEmbeddedView(o)),Cb(o,s,e),s}(this._declarationLView,this._declarationTContainer,n,{injector:e,dehydratedView:i});return new zd(o)}};function s5(){return Tm(pi(),fe())}function Tm(t,n){return 4&t.type?new a5(n,t,kc(t,n)):null}class Ob{}class I5{}class RD{}class O5{resolveComponentFactory(n){throw function E5(t){const n=Error(`No component factory found for ${fn(t)}.`);return n.ngComponent=t,n}(n)}}let Rs=(()=>{class t{static#e=this.NULL=new O5}return t})();class Ab{}let sa=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function A5(){const t=fe(),e=To(pi().index,t);return(Gn(e)?e:t)[It]}()}return t})(),P5=(()=>{class t{static#e=this.\u0275prov=Se({token:t,providedIn:"root",factory:()=>null})}return t})();const Pb={};function LD(t){return function FD(t){return"function"==typeof t&&void 0!==t[W]}(t)&&"function"==typeof t.set}function BD(t){const n=V(null);try{return t()}finally{V(n)}}function Am(t){return!!Rb(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Rb(t){return null!==t&&("function"==typeof t||"object"==typeof t)}class VD{constructor(){}supports(n){return Am(n)}create(n){return new V5(n)}}const B5=(t,n)=>n;class V5{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||B5}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new j5(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new jD),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new jD),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class j5{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class z5{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class jD{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new z5,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function zD(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new U5(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class U5{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function UD(){return new pr([new VD])}let pr=(()=>{class t{static#e=this.\u0275prov=Se({token:t,providedIn:"root",factory:UD});constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||UD()),deps:[[t,new Lc,new za]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new ue(901,!1)}}return t})();function $D(){return new Pm([new HD])}let Pm=(()=>{class t{static#e=this.\u0275prov=Se({token:t,providedIn:"root",factory:$D});constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||$D()),deps:[[t,new Lc,new za]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new ue(901,!1)}}return t})(),Ft=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=G5}return t})();function G5(t){return function W5(t,n,e){if(Ss(t)&&!e){const i=To(t.index,n);return new zd(i,i)}return 47&t.type?new zd(n[zi],n):null}(pi(),fe(),16==(16&t))}let Rm=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=Y5;static#t=this.__NG_ENV_ID__=e=>e}return t})();class Z5 extends Rm{constructor(n){super(),this._lView=n}onDestroy(n){return Oh(this._lView,n),()=>function Zg(t,n){if(null===t[La])return;const e=t[La].indexOf(n);-1!==e&&t[La].splice(e,1)}(this._lView,n)}}function Y5(){return new Z5(fe())}const GD=new Set;function Ns(t){GD.has(t)||(GD.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function WD(...t){}class We{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Re(!1),this.onMicrotaskEmpty=new Re(!1),this.onStable=new Re(!1),this.onError=new Re(!1),typeof Zone>"u")throw new ue(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)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function i8(){const t="function"==typeof li.requestAnimationFrame;let n=li[t?"requestAnimationFrame":"setTimeout"],e=li[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function r8(t){const n=()=>{!function o8(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(li,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Fb(t),t.isCheckStableRunning=!0,Nb(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Fb(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function a8(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return qD(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),KD(t)}},onInvoke:(e,i,o,r,a,s,c)=>{try{return qD(t),e.invoke(o,r,a,s,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),KD(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Fb(t),Nb(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!We.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(We.isInAngularZone())throw new ue(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,n8,WD,WD);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const n8={};function Nb(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 Fb(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function qD(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function KD(t){t._nesting--,Nb(t)}class ZD{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Re,this.onMicrotaskEmpty=new Re,this.onStable=new Re,this.onError=new Re}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}var Fs=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Fs||{});const YD={destroy(){}};function XD(t,n){!n&&function F_(t){if(!kC()&&!function n3(){return Ic}())throw new ue(-203,!1)}();const e=n?.injector??Ce(Bi);if(!function Ua(t){return"browser"===(t??Ce(Bi)).get(oa)}(e))return YD;Ns("NgAfterNextRender");const i=e.get(Wd),o=i.handler??=new eS,r=n?.phase??Fs.MixedReadWrite,a=()=>{o.unregister(c),s()},s=e.get(Rm).onDestroy(a),c=new JD(e,r,()=>{a(),t()});return o.register(c),{destroy:a}}class JD{constructor(n,e,i){this.phase=e,this.callbackFn=i,this.zone=n.get(We),this.errorHandler=n.get(Ho,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class eS{constructor(){this.executingCallbacks=!1,this.buckets={[Fs.EarlyRead]:new Set,[Fs.Write]:new Set,[Fs.MixedReadWrite]:new Set,[Fs.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Wd=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i();this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Se({token:t,providedIn:"root",factory:()=>new t})}return t})();function Fm(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0&&iD(t,e,r.join(" "))}}(b,pt,T,i),void 0!==e&&function v8(t,n,e){const i=t.projection=[];for(let o=0;o{class t{static#e=this.__NG_ELEMENT_ID__=w8}return t})();function w8(){return sS(pi(),fe())}const x8=bi,rS=class extends x8{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return kc(this._hostTNode,this._hostLView)}get injector(){return new bn(this._hostTNode,this._hostLView)}get parentInjector(){const n=am(this._hostTNode,this._hostLView);if(z_(n)){const e=Ed(n,this._hostLView),i=Id(n);return new bn(e[He].data[i+8],e)}return new bn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=aS(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Ji}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const s=n.createEmbeddedViewImpl(e||{},r,null);return this.insertImpl(s,o,Kc(this._hostTNode,null)),s}createComponent(n,e,i,o,r){const a=n&&!function Td(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const T=e||{};s=T.index,i=T.injector,o=T.projectableNodes,r=T.environmentInjector||T.ngModuleRef}const c=a?n:new Zd(jt(n)),u=i||this.parentInjector;if(!r&&null==c.ngModule){const I=(a?u:this.parentInjector).get(Io,null);I&&(r=I)}jt(c.componentType??{});const x=c.create(u,o,null,r);return this.insertImpl(x.hostView,s,Kc(this._hostTNode,null)),x}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function vF(t){return Wn(t[Xi])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const c=o[Xi],u=new rS(c,c[Un],c[Xi]);u.detach(u.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;return Bd(a,o,r,i),n.attachToViewContainerRef(),_C(Vb(a),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=aS(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Rd(this._lContainer,e);i&&(Rh(Vb(this._lContainer),e),bm(i[He],i))}detach(n){const e=this._adjustIndex(n,-1),i=Rd(this._lContainer,e);return i&&null!=Rh(Vb(this._lContainer),e)?new zd(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function aS(t){return t[8]}function Vb(t){return t[8]||(t[8]=[])}function sS(t,n){let e;const i=n[t.index];return Wn(i)?e=i:(e=mD(i,n,null,t),n[t.index]=e,Dm(n,e)),cS(e,n,t,i),new rS(e,t,n)}let cS=function dS(t,n,e,i){if(t[Sr])return;let o;o=8&e.type?_i(i):function C8(t,n){const e=t[It],i=e.createComment(""),o=eo(n,t);return Ps(e,vm(e,o),i,function f4(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[Sr]=o},jb=()=>!1;class zb{constructor(n){this.queryList=n,this.matches=null}clone(){return new zb(this.queryList)}setDirty(){this.queryList.setDirty()}}class Hb{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;rn.trim())}(n):n}}class Ub{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(a[s/2]);else{const u=r[s+1],p=n[-c];for(let g=Ji;g=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=ud(o.hostAttrs,e=ud(e,o.hostAttrs))}}(i)}function H8(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function Bm(t){return t===Dr?{}:t===Qt?[]:t}function $8(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function G8(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function W8(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function AS(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[3]&&(e[i]=o[3])}t.inputTransforms=e}class Ls{}class PS{}class Zb extends Ls{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new nS(this);const o=Hn(n);this._bootstrapComponents=Oo(o.bootstrap),this._r3Injector=u1(n,e,[{provide:Ls,useValue:this},{provide:Rs,useValue:this.componentFactoryResolver},...i],fn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Yb extends PS{constructor(n){super(),this.moduleType=n}create(n){return new Zb(this.moduleType,n,[])}}class RS extends Ls{constructor(n){super(),this.componentFactoryResolver=new nS(this),this.instance=null;const e=new Bc([...n.providers,{provide:Ls,useValue:this},{provide:Rs,useValue:this.componentFactoryResolver}],n.parent||Jh(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Qb(t,n,e=null){return new RS({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let Bs=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ft(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pr(t,n,e){return t[n]=e}function Qd(t,n){return t[n]}function en(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Vs(t,n,e,i){const o=en(t,n,e);return en(t,n+1,i)||o}function jm(t,n,e,i,o){const r=Vs(t,n,e,i);return en(t,n+2,o)||r}function $o(t,n,e,i,o,r){const a=Vs(t,n,e,i);return Vs(t,n+2,o,r)||a}function y(t,n,e,i,o,r,a,s){const c=fe(),u=Ut(),p=t+Et,g=u.firstCreatePass?function tB(t,n,e,i,o,r,a,s,c){const u=n.consts,p=qc(n,t,4,a||null,kr(u,s));bb(n,e,p,kr(u,c)),tm(n,p);const g=p.tView=_b(2,p,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u,null);return null!==n.queries&&(n.queries.template(n,p),g.queries=n.queries.embeddedTView(p)),p}(p,u,c,n,e,i,o,r,a):u.data[p];Tr(g,!1);const b=NS(u,c,g,t);Ph()&&ym(u,c,b,g),Kn(b,c);const x=mD(b,c,b,g);return c[p]=x,Dm(c,x),function lS(t,n,e){return jb(t,n,e)}(x,g,c),Eh(g)&&fb(u,c,g),null!=a&&gb(c,g,s),y}let NS=function FS(t,n,e,i){return Ba(!0),n[It].createComment("")};function Je(t,n,e,i){const o=fe();return en(o,hr(),n)&&(Ut(),Ar(Si(),o,t,n,e,i)),Je}function ol(t,n,e,i){return en(t,hr(),e)?n+Ot(e)+i:Pt}function Wm(t,n){return t<<17|n<<2}function Ka(t){return t>>17&32767}function sv(t){return 2|t}function zs(t){return(131068&t)>>2}function cv(t,n){return-131069&t|n<<2}function lv(t){return 1|t}function mk(t,n,e,i){const o=t[e+1],r=null===n;let a=i?Ka(o):zs(o),s=!1;for(;0!==a&&(!1===s||r);){const u=t[a+1];VB(t[a],n)&&(s=!0,t[a+1]=i?lv(u):sv(u)),a=i?Ka(u):zs(u)}s&&(t[e+1]=i?sv(o):lv(o))}function VB(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Mc(t,n)>=0}const vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pk(t){return t.substring(vn.key,vn.keyEnd)}function fk(t,n){const e=vn.textEnd;return e===n?-1:(n=vn.keyEnd=function UB(t,n,e){for(;n32;)n++;return n}(t,vn.key=n,e),hl(t,n,e))}function hl(t,n,e){for(;n=0;e=fk(n,e))Mo(t,pk(n),!0)}function fr(t,n,e,i){const o=fe(),r=Ut(),a=ia(2);r.firstUpdatePass&&wk(r,t,a,i),n!==Pt&&en(o,a,n)&&Ck(r,r.data[qn()],o,o[It],t,o[a+1]=function t6(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=fn(Eo(t)))),t}(n,e),i,a)}function yk(t,n){return n>=t.expandoStartIndex}function wk(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[qn()],a=yk(t,e);Sk(r,i)&&null===n&&!a&&(n=!1),n=function KB(t,n,e,i){const o=Jg(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=tu(e=uv(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=uv(o,t,n,e,i),null===r){let c=function ZB(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==zs(i))return t[Ka(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=uv(null,t,n,c[1],i),c=tu(c,n.attrs,i),function YB(t,n,e,i){t[Ka(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else r=function QB(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(u=!0)):p=e,o)if(0!==c){const b=Ka(t[s+1]);t[i+1]=Wm(b,s),0!==b&&(t[b+1]=cv(t[b+1],i)),t[s+1]=function NB(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=Wm(s,0),0!==s&&(t[s+1]=cv(t[s+1],i)),s=i;else t[i+1]=Wm(c,0),0===s?s=i:t[c+1]=cv(t[c+1],i),c=i;u&&(t[i+1]=sv(t[i+1])),mk(t,p,i,!0),mk(t,p,i,!1),function BB(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Mc(r,n)>=0&&(e[i+1]=lv(e[i+1]))}(n,p,t,i,r),a=Wm(s,c),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function uv(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const c=t[o],u=Array.isArray(c),p=u?c[1]:c,g=null===p;let b=e[o+1];b===Pt&&(b=g?Qt:void 0);let x=g?o_(b,i):p===i?b:void 0;if(u&&!qm(x)&&(x=o_(c,i)),qm(x)&&(s=x,a))return s;const T=t[o+1];o=a?Ka(T):zs(T)}if(null!==n){let c=r?n.residualClasses:n.residualStyles;null!=c&&(s=o_(c,i))}return s}function qm(t){return void 0!==t}function Sk(t,n){return 0!=(t.flags&(n?8:16))}function kk(t,n,e){!function gr(t,n,e,i){const o=Ut(),r=ia(2);o.firstUpdatePass&&wk(o,null,r,i);const a=fe();if(e!==Pt&&en(a,r,e)){const s=o.data[qn()];if(Sk(s,i)&&!yk(o,r)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=Ng(c,e||"")),dv(o,s,a,e,i)}else!function e6(t,n,e,i,o,r,a,s){o===Pt&&(o=Qt);let c=0,u=0,p=0(Ba(!0),_m(i,o,function pC(){return Ct.lFrame.currentNamespace}()));function ye(t,n,e){const i=fe(),o=Ut(),r=t+Et,a=o.firstCreatePass?function k6(t,n,e,i,o){const r=n.consts,a=kr(r,i),s=qc(n,t,8,"ng-container",a);return null!==a&&Fm(s,a,!0),bb(n,e,s,kr(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];Tr(a,!0);const s=Ok(o,i,a,t);return i[r]=s,Ph()&&ym(o,i,s,a),Kn(s,i),Eh(a)&&(fb(o,i,a),pb(o,a,i)),null!=e&&gb(i,a),ye}function we(){let t=pi();const n=Ut();return Yg()?Qg():(t=t.parent,Tr(t,!1)),n.firstCreatePass&&(tm(n,t),zg(t)&&n.queries.elementEnd(t)),we}function no(t,n,e){return ye(t,n,e),we(),no}let Ok=(t,n,e,i)=>(Ba(!0),sb(n[It],""));function _e(){return fe()}function oo(t,n,e){const i=fe();return en(i,hr(),n)&&xo(Ut(),Si(),i,t,n,i[It],e,!0),oo}function Km(t,n,e){const i=fe();if(en(i,hr(),n)){const r=Ut(),a=Si();xo(r,a,i,t,n,_D(Jg(r.data),a,i),e,!0)}return Km}const pl="en-US";let Rk=pl;function N(t,n,e,i){const o=fe(),r=Ut(),a=pi();return bv(r,o,o[It],a,t,n,i),N}function Jm(t,n){const e=pi(),i=fe(),o=Ut();return bv(o,i,_D(Jg(o.data),e,i),e,t,n),Jm}function bv(t,n,e,i,o,r,a){const s=Eh(i),u=t.firstCreatePass&&gD(t),p=n[Di],g=fD(n);let b=!0;if(3&i.type||a){const I=eo(i,n),z=a?a(I):I,ie=g.length,ne=a?tt=>a(_i(tt[i.index])):i.index;let Ue=null;if(!a&&s&&(Ue=function SV(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rc?s[c]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==Ue)(Ue.__ngLastListenerFn__||Ue).__ngNextListenerFn__=r,Ue.__ngLastListenerFn__=r,b=!1;else{r=aT(i,n,p,r,!1);const tt=e.listen(z,o,r);g.push(r,tt),u&&u.push(o,ne,ie,ie+1)}}else r=aT(i,n,p,r,!1);const x=i.outputs;let T;if(b&&null!==x&&(T=x[o])){const I=T.length;if(I)for(let z=0;z-1?To(t.index,n):n);let c=rT(n,e,i,a),u=r.__ngNextListenerFn__;for(;u;)c=rT(n,e,u,a)&&c,u=u.__ngNextListenerFn__;return o&&!1===c&&a.preventDefault(),c}}function w(t=1){return function RF(t){return(Ct.lFrame.contextLView=function iC(t,n){for(;t>0;)n=n[wc],t--;return n}(t,Ct.lFrame.contextLView))[Di]}(t)}function kV(t,n){let e=null;const i=function iF(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o(Ba(!0),function gm(t,n){return t.createText(n)}(n[It],i));function Ne(t){return ke("",t,""),Ne}function ke(t,n,e){const i=fe(),o=ol(i,t,n,e);return o!==Pt&&aa(i,qn(),o),ke}function fl(t,n,e,i,o){const r=fe(),a=function rl(t,n,e,i,o,r){const s=Vs(t,ta(),e,o);return ia(2),s?n+Ot(e)+i+Ot(o)+r:Pt}(r,t,n,e,i,o);return a!==Pt&&aa(r,qn(),a),fl}function wv(t,n,e,i,o,r,a){const s=fe(),c=function al(t,n,e,i,o,r,a,s){const u=jm(t,ta(),e,o,a);return ia(3),u?n+Ot(e)+i+Ot(o)+r+Ot(a)+s:Pt}(s,t,n,e,i,o,r,a);return c!==Pt&&aa(s,qn(),c),wv}function xv(t,n,e,i,o,r,a,s,c){const u=fe(),p=function sl(t,n,e,i,o,r,a,s,c,u){const g=$o(t,ta(),e,o,a,c);return ia(4),g?n+Ot(e)+i+Ot(o)+r+Ot(a)+s+Ot(c)+u:Pt}(u,t,n,e,i,o,r,a,s,c);return p!==Pt&&aa(u,qn(),p),xv}function wn(t,n,e){LD(n)&&(n=n());const i=fe();return en(i,hr(),n)&&xo(Ut(),Si(),i,t,n,i[It],e,!1),wn}function Tn(t,n){const e=LD(t);return e&&t.set(n),e}function xn(t,n){const e=fe(),i=Ut(),o=pi();return bv(i,e,e[It],o,t,n),xn}function Cv(t,n,e,i,o){if(t=wt(t),Array.isArray(t))for(let r=0;r>20;if(Es(t)||!t.multi){const x=new Md(u,o,_),T=Sv(c,n,o?p:p+b,g);-1===T?($_(rm(s,a),r,c),Dv(r,t,n.length),n.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(x),a.push(x)):(e[T]=x,a[T]=x)}else{const x=Sv(c,n,p+b,g),T=Sv(c,n,p,p+b),z=T>=0&&e[T];if(o&&!z||!o&&!(x>=0&&e[x])){$_(rm(s,a),r,c);const ie=function GV(t,n,e,i,o){const r=new Md(t,e,_);return r.multi=[],r.index=n,r.componentProviders=0,ET(r,o,i&&!e),r}(o?$V:UV,e.length,o,i,u);!o&&z&&(e[T].providerFactory=ie),Dv(r,t,n.length,0),n.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(ie),a.push(ie)}else Dv(r,t,x>-1?x:T,ET(e[o?T:x],u,!o&&i));!o&&i&&z&&e[T].componentProviders++}}}function Dv(t,n,e,i){const o=Es(n),r=function w3(t){return!!t.useClass}(n);if(o||r){const c=(r?wt(n.useClass):n).prototype.ngOnDestroy;if(c){const u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const p=u.indexOf(e);-1===p?u.push(e,[i,c]):u[p+1].push(i,c)}else u.push(e,c)}}}function ET(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Sv(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function HV(t,n,e){const i=Ut();if(i.firstCreatePass){const o=ur(t);Cv(e,i.data,i.blueprint,o,!0),Cv(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let WV=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=LC(0,e.type),o=i.length>0?Qb([i],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=Se({token:t,providedIn:"environment",factory:()=>new t(X(Io))})}return t})();function OT(t){Ns("NgStandalone"),t.getStandaloneInjector=n=>n.get(WV).getOrCreateStandaloneInjector(t)}function Wo(t,n,e){const i=to()+t,o=fe();return o[i]===Pt?Pr(o,i,e?n.call(e):n()):Qd(o,i)}function ui(t,n,e,i){return $T(fe(),to(),t,n,e,i)}function jT(t,n,e,i,o){return function GT(t,n,e,i,o,r,a){const s=n+e;return Vs(t,s,o,r)?Pr(t,s+2,a?i.call(a,o,r):i(o,r)):su(t,s+2)}(fe(),to(),t,n,e,i,o)}function zT(t,n,e,i,o,r){return function WT(t,n,e,i,o,r,a,s){const c=n+e;return jm(t,c,o,r,a)?Pr(t,c+3,s?i.call(s,o,r,a):i(o,r,a)):su(t,c+3)}(fe(),to(),t,n,e,i,o,r)}function su(t,n){const e=t[n];return e===Pt?void 0:e}function $T(t,n,e,i,o,r){const a=n+e;return en(t,a,o)?Pr(t,a+1,r?i.call(r,o):i(o)):su(t,a+1)}function cu(t,n){const e=Ut();let i;const o=t+Et;e.firstCreatePass?(i=function aj(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=Ms(i.type)),s=yo(_);try{const c=om(!1),u=r();return om(c),function EV(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,fe(),o,u),u}finally{yo(s)}}function lu(t,n,e){const i=t+Et,o=fe(),r=Dc(o,i);return function du(t,n){return t[He].data[n].pure}(o,i)?$T(o,to(),n,r.transform,e,r):r.transform(e)}function _r(t,n){return Tm(t,n)}let dM=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const fM=new oe(""),np=new oe("");let Nv,Pv=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Nv||(function nz(t){Nv=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,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,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static#e=this.\u0275fac=function(i){return new(i||t)(X(We),X(Rv),X(np))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),Rv=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Nv?.findTestabilityInTree(this,e,i)??null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function mu(t){return!!t&&"function"==typeof t.then}function gM(t){return!!t&&"function"==typeof t.subscribe}const Fv=new oe("");let Lv=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Ce(Fv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(mu(r))e.push(r);else if(gM(r)){const a=new Promise((s,c)=>{r.subscribe({complete:s,error:c})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Bv=new oe("");function vM(t,n){return Array.isArray(n)?n.reduce(vM,t):{...t,...n}}let Za=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ce(m1),this.afterRenderEffectManager=Ce(Wd),this.componentTypes=[],this.components=[],this.isStable=Ce(Bs).hasPendingTasks.pipe(nt(e=>!e)),this._injector=Ce(Io)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof RD;if(!this._injector.get(Lv).done)throw!o&&function Fa(t){const n=jt(t)||gn(t)||Fn(t);return null!==n&&n.standalone}(e),new ue(405,!1);let a;a=o?e:this._injector.get(Rs).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function oz(t){return t.isBoundToModule}(a)?void 0:this._injector.get(Ls),u=a.create(Bi.NULL,[],i||a.selector,s),p=u.location.nativeElement,g=u.injector.get(fM,null);return g?.registerApplication(p),u.onDestroy(()=>{this.detachView(u.hostView),op(this.components,u),g?.unregisterApplication(p)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new ue(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let e=0;do{if(100===e)throw new ue(103,!1);const i=0===e;for(let{_lView:o,notifyErrorHandler:r}of this._views)!i&&!yM(o)||this.detectChangesInView(o,r,i);this.afterRenderEffectManager.execute(),e++}while(this._views.some(({_lView:i})=>yM(i)))}detectChangesInView(e,i,o){let r;o?(r=0,e[ct]|=1024):r=64&e[ct]?0:1,km(e,i,r)}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;op(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(Bv,[]);[...this._bootstrapListeners,...i].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),()=>op(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function op(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function yM(t){return qg(t)}class az{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let wM=(()=>{class t{compileModuleSync(e){return new Yb(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=Oo(Hn(e).declarations).reduce((a,s)=>{const c=jt(s);return c&&a.push(new Zd(c)),a},[]);return new az(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),lz=(()=>{class t{constructor(){this.zone=Ce(We),this.applicationRef=Ce(Za)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dz(){const t=Ce(We),n=Ce(Ho);return e=>t.runOutsideAngular(()=>n.handleError(e))}let hz=(()=>{class t{constructor(){this.subscription=new de,this.initialized=!1,this.zone=Ce(We),this.pendingTasks=Ce(Bs)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{We.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Fr=new oe("",{providedIn:"root",factory:()=>Ce(Fr,Ht.Optional|Ht.SkipSelf)||function mz(){return typeof $localize<"u"&&$localize.locale||pl}()}),Vv=new oe("");let SM=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function s8(t="zone.js",n){return"noop"===t?new ZD:"zone.js"===t?new We(n):t}(i?.ngZone,function DM(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function eB(t,n,e){return new Zb(t,n,e)}(e.moduleType,this.injector,function CM(t){return[{provide:We,useFactory:t},{provide:Is,multi:!0,useFactory:()=>{const n=Ce(lz,{optional:!0});return()=>n.initialize()}},{provide:Is,multi:!0,useFactory:()=>{const n=Ce(hz);return()=>{n.initialize()}}},{provide:m1,useFactory:dz}]}(()=>o)),a=r.injector.get(Ho,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:c=>{a.handleError(c)}});r.onDestroy(()=>{op(this._modules,r),s.unsubscribe()})}),function bM(t,n,e){try{const i=e();return mu(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(Lv);return s.runInitializers(),s.donePromise.then(()=>(function Nk(t){"string"==typeof t&&(Rk=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(Fr,pl)||pl),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=vM({},i);return function cz(t,n,e){const i=new Yb(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Za);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new ue(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ue(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Vv,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||t)(X(Bi))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Ya=null;const kM=new oe("");function TM(t,n,e=[]){const i=`Platform: ${n}`,o=new oe(i);return(r=[])=>{let a=jv();if(!a||a.injector.get(kM,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function gz(t){if(Ya&&!Ya.get(kM,!1))throw new ue(400,!1);(function _M(){!function bt(t){he=t}(()=>{throw new ue(600,!1)})})(),Ya=t;const n=t.get(SM);(function IM(t){t.get(DC,null)?.forEach(e=>e())})(t)}(function MM(t=[],n){return Bi.create({name:n,providers:[{provide:A_,useValue:"platform"},{provide:Vv,useValue:new Set([()=>Ya=null])},...t]})}(s,i))}return function _z(t){const n=jv();if(!n)throw new ue(401,!1);return n}()}}function jv(){return Ya?.get(SM)??null}const xz=TM(null,"core",[]);let Cz=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(i){return new(i||t)(X(Za))};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();function vl(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let eI=null;function Qa(){return eI}class Jz{}const dt=new oe("");let qv=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>Ce(t7),providedIn:"platform"})}return t})();const e7=new oe("");let t7=(()=>{class t extends qv{constructor(){super(),this._doc=Ce(dt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qa().getBaseHref(this._doc)}onPopState(e){const i=Qa().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Qa().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,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(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Kv(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function tI(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function ca(t){return t&&"?"!==t[0]?"?"+t:t}let Gs=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>Ce(nI),providedIn:"root"})}return t})();const iI=new oe("");let nI=(()=>{class t extends Gs{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ce(dt).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 Kv(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+ca(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+ca(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+ca(r));this._platformLocation.replaceState(e,i,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(i){return new(i||t)(X(qv),X(iI,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),i7=(()=>{class t extends Gs{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Kv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+ca(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+ca(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,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(i){return new(i||t)(X(qv),X(iI,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),Ws=(()=>{class t{constructor(e){this._subject=new Re,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function r7(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(tI(oI(i))),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,i=""){return this.path()==this.normalize(e+ca(i))}normalize(e){return t.stripTrailingSlash(function o7(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,oI(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ca(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ca(i)),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.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static#e=this.normalizeQueryParams=ca;static#t=this.joinWithSlash=Kv;static#i=this.stripTrailingSlash=tI;static#n=this.\u0275fac=function(i){return new(i||t)(X(Gs))};static#o=this.\u0275prov=Se({token:t,factory:()=>function n7(){return new Ws(X(Gs))}(),providedIn:"root"})}return t})();function oI(t){return t.replace(/\/index.html$/,"")}function mI(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const oy=/\s+/,pI=[];let vr=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=pI,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(oy):pI}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(oy):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(oy).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(sa))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[pe.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class $7{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,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 dn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,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 i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new $7(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),gI(s,o)}});for(let o=0,r=i.length;o{gI(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(gi),_(pr))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function gI(t,n){t.context.$implicit=n.item}let Tt=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new G7,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){_I("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){_I("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class G7{constructor(){this.$implicit=null,this.ngIf=null}}function _I(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${fn(n)}'.`)}class ry{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let wl=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e===this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),Dp=(()=>{class t{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new ry(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(gi),_(wl,9))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),bI=(()=>{class t{constructor(e,i,o){o._addDefault(new ry(e,i))}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(gi),_(wl,9))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),yI=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,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,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:$a.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Pm),_(sa))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),Sp=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[fi]})}return t})();function yr(t,n){return new ue(2100,!1)}class K7{createSubscription(n,e){return BD(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){BD(()=>n.unsubscribe())}}class Z7{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const Y7=new Z7,Q7=new K7;let wI=(()=>{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,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(mu(e))return Y7;if(gM(e))return Q7;throw yr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft,16))};static#t=this.\u0275pipe=bo({name:"async",type:t,pure:!1,standalone:!0})}return t})(),xI=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw yr();return e.toUpperCase()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=bo({name:"uppercase",type:t,pure:!0,standalone:!0})}return t})(),ay=(()=>{class t{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=CI}transform(e,i=CI){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ??=this.differs.find(e).create();const o=this.differ.diff(e),r=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(function l9(t,n){return{key:t,value:n}}(a.key,a.currentValue))})),(o||r)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}static#e=this.\u0275fac=function(i){return new(i||t)(_(Pm,16))};static#t=this.\u0275pipe=bo({name:"keyvalue",type:t,pure:!1,standalone:!0})}return t})();function CI(t,n){const e=t.key,i=n.key;if(e===i)return 0;if(void 0===e)return 1;if(void 0===i)return-1;if(null===e)return 1;if(null===i)return-1;if("string"==typeof e&&"string"==typeof i)return e{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const DI="browser";function SI(t){return t===DI}function kI(t){return"server"===t}let g9=(()=>{class t{static#e=this.\u0275prov=Se({token:t,providedIn:"root",factory:()=>SI(Ce(oa))?new _9(Ce(dt),window):new v9})}return t})();class _9{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function b9(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}}class v9{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class TI{}class q9 extends Jz{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class dy extends q9{static makeCurrent(){!function Xz(t){eI??=t}(new dy)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function K9(){return vu=vu||document.querySelector("base"),vu?vu.getAttribute("href"):null}();return null==e?null:function Z9(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){vu=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return mI(document.cookie,n)}}let vu=null,Q9=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const uy=new oe("");let FI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new ue(5101,!1);return this._eventNameToPlugin.set(e,i),i}static#e=this.\u0275fac=function(i){return new(i||t)(X(uy),X(We))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();class LI{constructor(n){this._doc=n}}const hy="ng-app-id";let BI=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=kI(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${hy}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(hy),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(hy,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||t)(X(dt),X(wd),X(s_,8),X(oa))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const my={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/"},py=/%COMP%/g,tH=new oe("",{providedIn:"root",factory:()=>!0});function jI(t,n){return n.map(e=>e.replace(py,t))}let fy=(()=>{class t{constructor(e,i,o,r,a,s,c,u=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=kI(s),this.defaultRenderer=new gy(e,a,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===sr.ShadowDom&&(i={...i,encapsulation:sr.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof HI?o.applyToHost(e):o instanceof _y&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(i.encapsulation){case sr.Emulated:r=new HI(c,u,i,this.appId,p,a,s,g);break;case sr.ShadowDom:return new rH(c,u,e,i,a,s,this.nonce,g);default:r=new _y(c,u,i,p,a,s,g)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(X(FI),X(BI),X(wd),X(tH),X(dt),X(oa),X(We),X(s_))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();class gy{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(my[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(zI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(zI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new ue(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=my[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=my[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&($a.DashCase|$a.Important)?n.style.setProperty(e,i,o&$a.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&$a.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=Qa().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function zI(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class rH extends gy{constructor(n,e,i,o,r,a,s,c){super(n,r,a,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=jI(o.id,o.styles);for(const p of u){const g=document.createElement("style");s&&g.setAttribute("nonce",s),g.textContent=p,this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class _y extends gy{constructor(n,e,i,o,r,a,s,c){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=c?jI(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class HI extends _y{constructor(n,e,i,o,r,a,s,c){const u=o+"-"+i.id;super(n,e,i,r,a,s,c,u),this.contentAttr=function iH(t){return"_ngcontent-%COMP%".replace(py,t)}(u),this.hostAttr=function nH(t){return"_nghost-%COMP%".replace(py,t)}(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let aH=(()=>{class t extends LI{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(X(dt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const UI=["alt","control","meta","shift"],sH={"\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"},cH={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let lH=(()=>{class t extends LI{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qa().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),UI.forEach(u=>{const p=i.indexOf(u);p>-1&&(i.splice(p,1),a+=u+".")}),a+=r,0!=i.length||0===r.length)return null;const c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(e,i){let o=sH[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),UI.forEach(a=>{a!==o&&(0,cH[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(i){return new(i||t)(X(dt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const mH=TM(xz,"browser",[{provide:oa,useValue:DI},{provide:DC,useValue:function dH(){dy.makeCurrent()},multi:!0},{provide:dt,useFactory:function hH(){return function zF(t){r_=t}(document),document},deps:[]}]),pH=new oe(""),WI=[{provide:np,useClass:class Y9{addToWindow(n){li.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new ue(5103,!1);return r},li.getAllAngularTestabilities=()=>n.getAllTestabilities(),li.getAllAngularRootElements=()=>n.getAllRootElements(),li.frameworkStabilizers||(li.frameworkStabilizers=[]),li.frameworkStabilizers.push(i=>{const o=li.getAllAngularTestabilities();let r=o.length;const a=function(){r--,0==r&&i()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Qa().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:fM,useClass:Pv,deps:[We,Rv,np]},{provide:Pv,useClass:Pv,deps:[We,Rv,np]}],qI=[{provide:A_,useValue:"root"},{provide:Ho,useFactory:function uH(){return new Ho},deps:[]},{provide:uy,useClass:aH,multi:!0,deps:[dt,We,oa]},{provide:uy,useClass:lH,multi:!0,deps:[dt]},fy,BI,FI,{provide:Ab,useExisting:fy},{provide:TI,useClass:Q9,deps:[]},[]];let KI=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:wd,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(X(pH,12))};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[...qI,...WI],imports:[Bn,Cz]})}return t})(),fH=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(i){return new(i||t)(X(dt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),by=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:function(i){let o=null;return o=i?new(i||t):X(vH),o},providedIn:"root"})}return t})(),vH=(()=>{class t extends by{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Ln.NONE:return i;case Ln.HTML:return Er(i,"HTML")?Eo(i):S1(this._doc,String(i)).toString();case Ln.STYLE:return Er(i,"Style")?Eo(i):i;case Ln.SCRIPT:if(Er(i,"Script"))return Eo(i);throw new ue(5200,!1);case Ln.URL:return Er(i,"URL")?Eo(i):hm(String(i));case Ln.RESOURCE_URL:if(Er(i,"ResourceURL"))return Eo(i);throw new ue(5201,!1);default:throw new ue(5202,!1)}}bypassSecurityTrustHtml(e){return function _L(t){return new uL(t)}(e)}bypassSecurityTrustStyle(e){return function bL(t){return new hL(t)}(e)}bypassSecurityTrustScript(e){return function vL(t){return new mL(t)}(e)}bypassSecurityTrustUrl(e){return function yL(t){return new pL(t)}(e)}bypassSecurityTrustResourceUrl(e){return function wL(t){return new fL(t)}(e)}static#e=this.\u0275fac=function(i){return new(i||t)(X(dt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Dt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Dt||{});const ua="*";function Po(t,n){return{type:Dt.Trigger,name:t,definitions:n,options:{}}}function qi(t,n=null){return{type:Dt.Animate,styles:n,timings:t}}function vy(t,n=null){return{type:Dt.Group,steps:t,options:n}}function Wt(t){return{type:Dt.Style,styles:t,offset:null}}function un(t,n,e){return{type:Dt.State,name:t,styles:n,options:e}}function Ki(t,n,e=null){return{type:Dt.Transition,expr:t,animation:n,options:e}}function yy(t=null){return{type:Dt.AnimateChild,options:t}}function wy(t,n,e=null){return{type:Dt.Query,selector:t,animation:n,options:e}}class wu{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class XI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function JI(t){return new ue(3e3,!1)}function Xa(t){switch(t.length){case 0:return new wu;case 1:return t[0];default:return new XI(t)}}function e2(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(c=>{const u=c.get("offset"),p=u==a,g=p&&s||new Map;c.forEach((b,x)=>{let T=x,I=b;if("offset"!==x)switch(T=t.normalizePropertyName(T,o),I){case"!":I=e.get(x);break;case ua:I=i.get(x);break;default:I=t.normalizeStyleValue(x,T,I,o)}g.set(T,I)}),p||r.push(g),s=g,a=u}),o.length)throw function qH(t){return new ue(3502,!1)}();return r}function Cy(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Dy(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Dy(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Dy(e,"destroy",t)))}}function Dy(t,n,e){const r=Sy(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function Sy(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function Ro(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function t2(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const rU=typeof document>"u"?null:document.documentElement;function ky(t){const n=t.parentNode||t.host||null;return n===rU?null:n}let qs=null,n2=!1;function o2(t,n){for(;n;){if(n===t)return!0;n=ky(n)}return!1}function r2(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let Ty=(()=>{class t{validateStyleProperty(e){return function sU(t){qs||(qs=function cU(){return typeof document<"u"?document.body:null}()||{},n2=!!qs.style&&"WebkitAppearance"in qs.style);let n=!0;return qs.style&&!function aU(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in qs.style,!n&&n2&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in qs.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return o2(e,i)}getParentElement(e){return ky(e)}query(e,i,o){return r2(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],c){return new wu(o,r)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();class My{static#e=this.NOOP=new Ty}class Iy{}const dU=1e3,Ey="ng-enter",Mp="ng-leave",Ip="ng-trigger",Ep=".ng-trigger",s2="ng-animating",Oy=".ng-animating";function ha(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Ay(parseFloat(n[1]),n[2])}function Ay(t,n){return"s"===n?t*dU:t}function Op(t,n,e){return t.hasOwnProperty("duration")?t:function hU(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(JI()),{duration:0,delay:0,easing:""};o=Ay(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(r=Ay(parseFloat(c),s[4]));const u=s[5];u&&(a=u)}else o=t;if(!e){let s=!1,c=n.length;o<0&&(n.push(function SH(){return new ue(3100,!1)}()),s=!0),r<0&&(n.push(function kH(){return new ue(3101,!1)}()),s=!0),s&&n.splice(c,0,JI())}return{duration:o,delay:r,easing:a}}(t,n,e)}function Lr(t,n,e){n.forEach((i,o)=>{const r=Ry(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Ks(t,n){n.forEach((e,i)=>{const o=Ry(i);t.style[o]=""})}function xu(t){return Array.isArray(t)?1==t.length?t[0]:function yH(t,n=null){return{type:Dt.Sequence,steps:t,options:n}}(t):t}const Py=new RegExp("{{\\s*(.+?)\\s*}}","g");function l2(t){let n=[];if("string"==typeof t){let e;for(;e=Py.exec(t);)n.push(e[1]);Py.lastIndex=0}return n}function Cu(t,n,e){const i=`${t}`,o=i.replace(Py,(r,a)=>{let s=n[a];return null==s&&(e.push(function MH(t){return new ue(3003,!1)}()),s=""),s.toString()});return o==i?t:o}const fU=/-+([a-z0-9])/g;function Ry(t){return t.replace(fU,(...n)=>n[1].toUpperCase())}function No(t,n,e){switch(n.type){case Dt.Trigger:return t.visitTrigger(n,e);case Dt.State:return t.visitState(n,e);case Dt.Transition:return t.visitTransition(n,e);case Dt.Sequence:return t.visitSequence(n,e);case Dt.Group:return t.visitGroup(n,e);case Dt.Animate:return t.visitAnimate(n,e);case Dt.Keyframes:return t.visitKeyframes(n,e);case Dt.Style:return t.visitStyle(n,e);case Dt.Reference:return t.visitReference(n,e);case Dt.AnimateChild:return t.visitAnimateChild(n,e);case Dt.AnimateRef:return t.visitAnimateRef(n,e);case Dt.Query:return t.visitQuery(n,e);case Dt.Stagger:return t.visitStagger(n,e);default:throw function IH(t){return new ue(3004,!1)}()}}function Ny(t,n){return window.getComputedStyle(t)[n]}const bU=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 d2 extends Iy{normalizePropertyName(n,e){return Ry(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(bU.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function EH(t,n){return new ue(3005,!1)}())}return a+r}}const Ap="*";const Pp=new Set(["true","1"]),Rp=new Set(["false","0"]);function u2(t,n){const e=Pp.has(t)||Rp.has(t),i=Pp.has(n)||Rp.has(n);return(o,r)=>{let a=t==Ap||t==o,s=n==Ap||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?Pp.has(t):Rp.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?Pp.has(n):Rp.has(n)),a&&s}}const xU=new RegExp("s*:selfs*,?","g");function Fy(t,n,e,i){return new CU(t).build(n,e,i)}class CU{constructor(n){this._driver=n}build(n,e,i){const o=new kU(e);return this._resetContextStyleTimingState(o),No(this,xu(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function OH(){return new ue(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Dt.State){const c=s,u=c.name;u.toString().split(/\s*,\s*/).forEach(p=>{c.name=p,r.push(this.visitState(c,e))}),c.name=u}else if(s.type==Dt.Transition){const c=this.visitTransition(s,e);i+=c.queryCount,o+=c.depCount,a.push(c)}else e.errors.push(function AH(){return new ue(3007,!1)}())}),{type:Dt.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{l2(c).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(function PH(t,n){return new ue(3008,!1)}(0,r.values()))}return{type:Dt.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=No(this,xu(n.animation),e),o=function vU(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function yU(t,n,e){if(":"==t[0]){const c=function wU(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof c)return void n.push(c);t=c}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function HH(t){return new ue(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(u2(o,a)),"<"==r[0]&&(o!=Ap||a!=Ap)&&n.push(u2(a,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:Dt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Zs(n.options)}}visitSequence(n,e){return{type:Dt.Sequence,steps:n.steps.map(i=>No(this,i,e)),options:Zs(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=No(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Dt.Group,steps:r,options:Zs(n.options)}}visitAnimate(n,e){const i=function MU(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Ly(Op(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Ly(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=Op(e,n);return Ly(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:Wt({});if(r.type==Dt.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const u={};i.easing&&(u.easing=i.easing),a=Wt(u)}e.currentTime+=i.duration+i.delay;const c=this.visitStyle(a,e);c.isEmptyStep=s,o=c}return e.currentAnimateTimings=null,{type:Dt.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===ua?i.push(s):e.errors.push(new ue(3002,!1)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let c of s.values())if(c.toString().indexOf("{{")>=0){r=!0;break}}),{type:Dt.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,c)=>{const u=e.collectedStyles.get(e.currentQuerySelector),p=u.get(c);let g=!0;p&&(r!=o&&r>=p.startTime&&o<=p.endTime&&(e.errors.push(function NH(t,n,e,i,o){return new ue(3010,!1)}()),g=!1),r=p.startTime),g&&u.set(c,{startTime:r,endTime:o}),e.options&&function pU(t,n,e){const i=n.params||{},o=l2(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function TH(t){return new ue(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:Dt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function FH(){return new ue(3011,!1)}()),i;let r=0;const a=[];let s=!1,c=!1,u=0;const p=n.steps.map(ie=>{const ne=this._makeStyleAst(ie,e);let Ue=null!=ne.offset?ne.offset:function TU(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(ne.styles),tt=0;return null!=Ue&&(r++,tt=ne.offset=Ue),c=c||tt<0||tt>1,s=s||tt0&&r{const Ue=b>0?ne==x?1:b*ne:a[ne],tt=Ue*z;e.currentTime=T+I.delay+tt,I.duration=tt,this._validateStyleAst(ie,e),ie.offset=Ue,i.styles.push(ie)}),i}visitReference(n,e){return{type:Dt.Reference,animation:No(this,xu(n.animation),e),options:Zs(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Dt.AnimateChild,options:Zs(n.options)}}visitAnimateRef(n,e){return{type:Dt.AnimateRef,animation:this.visitReference(n.animation,e),options:Zs(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function DU(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(xU,"")),t=t.replace(/@\*/g,Ep).replace(/@\w+/g,e=>Ep+"-"+e.slice(1)).replace(/:animating/g,Oy),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,Ro(e.collectedStyles,e.currentQuerySelector,new Map);const s=No(this,xu(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Dt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Zs(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function jH(){return new ue(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Op(n.timings,e.errors,!0);return{type:Dt.Stagger,animation:No(this,xu(n.animation),e),timings:i,options:null}}}class kU{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Zs(t){return t?(t={...t}).params&&(t.params=function SU(t){return t?{...t}:null}(t.params)):t={},t}function Ly(t,n,e){return{duration:t,delay:n,easing:e}}function By(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class Np{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const OU=new RegExp(":enter","g"),PU=new RegExp(":leave","g");function Vy(t,n,e,i,o,r=new Map,a=new Map,s,c,u=[]){return(new RU).buildKeyframes(t,n,e,i,o,r,a,s,c,u)}class RU{buildKeyframes(n,e,i,o,r,a,s,c,u,p=[]){u=u||new Np;const g=new jy(n,e,u,o,r,p,[]);g.options=c;const b=c.delay?ha(c.delay):0;g.currentTimeline.delayNextStep(b),g.currentTimeline.setStyles([a],null,g.errors,c),No(this,i,g);const x=g.timelines.filter(T=>T.containsAnimation());if(x.length&&s.size){let T;for(let I=x.length-1;I>=0;I--){const z=x[I];if(z.element===e){T=z;break}}T&&!T.allowOnlyTimelineStyles()&&T.setStyles([s],null,g.errors,c)}return x.length?x.map(T=>T.buildKeyframes()):[By(e,[],[],[],0,b,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:ha(Cu(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?ha(i.duration):null,s=null!=i.delay?ha(i.delay):null;return 0!==a&&n.forEach(c=>{const u=e.appendInstructionToTimeline(c,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),No(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==Dt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Fp);const a=ha(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>No(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?ha(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),No(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Op(e.params?Cu(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==Dt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(c=>{s.forwardTime((c.offset||0)*r),s.setStyles(c.styles,c.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?ha(o.delay):0;r&&(e.previousNode.type===Dt.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Fp);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let c=null;s.forEach((u,p)=>{e.currentQueryIndex=p;const g=e.createSubContext(n.options,u);r&&g.delayNextStep(r),u===e.element&&(c=g.currentTimeline),No(this,n.animation,g),g.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,g.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let c=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":c=s-c;break;case"full":c=i.currentStaggerTime}const p=e.currentTimeline;c&&p.delayNextStep(c);const g=p.currentTime;No(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-g+(o.startTime-i.currentTimeline.startTime)}}const Fp={};class jy{constructor(n,e,i,o,r,a,s,c){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Lp(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=ha(i.duration)),null!=i.delay&&(o.delay=ha(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Cu(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new jy(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Fp,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new NU(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(OU,"."+this._enterClassName)).replace(PU,"."+this._leaveClassName);let u=this._driver.query(this.element,n,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push(...u)}return!r&&0==s.length&&a.push(function zH(t){return new ue(3014,!1)}()),s}}class Lp{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,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(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Lp(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||ua),this._currentKeyframe.set(e,ua);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function FU(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,ua)}else for(let[r,a]of o)e.set(r,a)}),e}(n,this._globalTimelineStyles);for(let[s,c]of a){const u=Cu(c,r,i);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??ua),this._updateStyle(s,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,c)=>{const u=new Map([...this._backFill,...s]);u.forEach((p,g)=>{"!"===p?n.add(g):p===ua&&e.add(g)}),i||u.set("offset",c/this.duration),o.push(u)});const r=[...n.values()],a=[...e.values()];if(i){const s=o[0],c=new Map(s);s.set("offset",0),c.set("offset",1),o=[s,c]}return By(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class NU extends Lp{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,c=new Map(n[0]);c.set("offset",0),r.push(c);const u=new Map(n[0]);u.set("offset",p2(s)),r.push(u);const p=n.length-1;for(let g=1;g<=p;g++){let b=new Map(n[g]);const x=b.get("offset");b.set("offset",p2((e+x*i)/a)),r.push(b)}i=a,e=0,o="",n=r}return By(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function p2(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function f2(t,n,e,i,o,r,a,s,c,u,p,g,b){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:p,totalTime:g,errors:b}}const zy={};class g2{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function LU(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,c,u,p){const g=[],b=this.ast.options&&this.ast.options.params||zy,T=this.buildStyles(i,s&&s.params||zy,g),I=c&&c.params||zy,z=this.buildStyles(o,I,g),ie=new Set,ne=new Map,Ue=new Map,tt="void"===o,pt={params:_2(I,b),delay:this.ast.options?.delay},Vt=p?[]:Vy(n,e,this.ast.animation,r,a,T,z,pt,u,g);let Ni=0;return Vt.forEach(kn=>{Ni=Math.max(kn.duration+kn.delay,Ni)}),g.length?f2(e,this._triggerName,i,o,tt,T,z,[],[],ne,Ue,Ni,g):(Vt.forEach(kn=>{const Pa=kn.element,sd=Ro(ne,Pa,new Set);kn.preStyleProps.forEach(mc=>sd.add(mc));const BN=Ro(Ue,Pa,new Set);kn.postStyleProps.forEach(mc=>BN.add(mc)),Pa!==e&&ie.add(Pa)}),f2(e,this._triggerName,i,o,tt,T,z,Vt,[...ie.values()],ne,Ue,Ni))}}function _2(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class BU{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=_2(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=Cu(a,o,e));const c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),i.set(s,a)})}),i}}class jU{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new BU(o.style,o.options&&o.options.params||{},i))}),b2(this.states,"true","1"),b2(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new g2(n,o,this.states))}),this.fallbackTransition=function zU(t,n,e){return new g2(t,{type:Dt.Transition,animation:{type:Dt.Sequence,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function b2(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const HU=new Np;class UU{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=Fy(this._driver,e,i,[]);if(i.length)throw function KH(t){return new ue(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=e2(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=Vy(this._driver,e,r,Ey,Mp,new Map,new Map,i,HU,o),a.forEach(p=>{const g=Ro(s,p.element,new Map);p.postStyleProps.forEach(b=>g.set(b,null))})):(o.push(function ZH(){return new ue(3300,!1)}()),a=[]),o.length)throw function YH(t){return new ue(3504,!1)}();s.forEach((p,g)=>{p.forEach((b,x)=>{p.set(x,this._driver.computeStyle(g,x,ua))})});const u=Xa(a.map(p=>{const g=s.get(p.element);return this._buildPlayer(p,new Map,g)}));return this._playersById.set(n,u),u.onDestroy(()=>this.destroy(n)),this.players.push(u),u}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function QH(t){return new ue(3301,!1)}();return e}listen(n,e,i,o){const r=Sy(e,"","","");return Cy(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const v2="ng-animate-queued",Hy="ng-animate-disabled",KU=[],y2={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ZU={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},wr="__ng_removed";class Uy{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function JU(t){return t??null}(i?n.value:n),i){const{value:r,...a}=n;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const Du="void",$y=new Uy(Du);class YU{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Zo(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function XH(t,n){return new ue(3302,!1)}();if(null==i||0==i.length)throw function JH(t){return new ue(3303,!1)}();if(!function e$(t){return"start"==t||"done"==t}(i))throw function eU(t,n){return new ue(3400,!1)}();const r=Ro(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=Ro(this._engine.statesByElement,n,new Map);return s.has(e)||(Zo(n,Ip),Zo(n,Ip+"-"+e),s.set(e,$y)),()=>{this._engine.afterFlush(()=>{const c=r.indexOf(a);c>=0&&r.splice(c,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function tU(t){return new ue(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new Gy(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(Zo(n,Ip),Zo(n,Ip+"-"+e),this._engine.statesByElement.set(n,s=new Map));let c=s.get(e);const u=new Uy(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s.set(e,u),c||(c=$y),u.value!==Du&&c.value===u.value){if(!function n$(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Ks(n,z),Lr(n,ie)})}return}const b=Ro(this._engine.playersByElement,n,[]);b.forEach(I=>{I.namespaceId==this.id&&I.triggerName==e&&I.queued&&I.destroy()});let x=r.matchTransition(c.value,u.value,n,u.params),T=!1;if(!x){if(!o)return;x=r.fallbackTransition,T=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:x,fromState:c,toState:u,player:a,isFallbackTransition:T}),T||(Zo(n,v2),a.onStart(()=>{xl(n,v2)})),a.onDone(()=>{let I=this.players.indexOf(a);I>=0&&this.players.splice(I,1);const z=this._engine.playersByElement.get(n);if(z){let ie=z.indexOf(a);ie>=0&&z.splice(ie,1)}}),this.players.push(a),b.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Ep,!0);i.forEach(o=>{if(o[wr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((c,u)=>{if(a.set(u,c.value),this._triggers.has(u)){const p=this.trigger(n,u,Du,o);p&&s.push(p)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Xa(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const c=this._triggers.get(a).fallbackTransition,u=i.get(a)||$y,p=new Uy(Du),g=new Gy(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:c,fromState:u,toState:p,player:g,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[wr];(!r||r===y2)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Zo(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const c=Sy(r,i.triggerName,i.fromState.value,i.toState.value);c._data=n,Cy(i.player,s.phase,c,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class QU{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,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=(r,a)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new YU(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const c=o.get(s);if(c){const u=i.indexOf(c);i.splice(u+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(Bp(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!Bp(e))return;const r=e[wr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Zo(n,Hy)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),xl(n,Hy))}removeNode(n,e,i){if(Bp(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[wr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Bp(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Ep,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Oy,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Xa(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[wr];if(e&&e.setForRemoval){if(n[wr]=y2,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Hy)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Xa(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function iU(t){return new ue(3402,!1)}()}_flushAnimations(n,e){const i=new Np,o=[],r=new Map,a=[],s=new Map,c=new Map,u=new Map,p=new Set;this.disabledNodes.forEach(rt=>{p.add(rt);const _t=this.driver.query(rt,".ng-animate-queued",!0);for(let xt=0;xt<_t.length;xt++)p.add(_t[xt])});const g=this.bodyNode,b=Array.from(this.statesByElement.keys()),x=C2(b,this.collectedEnterElements),T=new Map;let I=0;x.forEach((rt,_t)=>{const xt=Ey+I++;T.set(_t,xt),rt.forEach(Jt=>Zo(Jt,xt))});const z=[],ie=new Set,ne=new Set;for(let rt=0;rtie.add(Jt)):ne.add(_t))}const Ue=new Map,tt=C2(b,Array.from(ie));tt.forEach((rt,_t)=>{const xt=Mp+I++;Ue.set(_t,xt),rt.forEach(Jt=>Zo(Jt,xt))}),n.push(()=>{x.forEach((rt,_t)=>{const xt=T.get(_t);rt.forEach(Jt=>xl(Jt,xt))}),tt.forEach((rt,_t)=>{const xt=Ue.get(_t);rt.forEach(Jt=>xl(Jt,xt))}),z.forEach(rt=>{this.processLeaveNode(rt)})});const pt=[],Vt=[];for(let rt=this._namespaceList.length-1;rt>=0;rt--)this._namespaceList[rt].drainQueuedTransitions(e).forEach(xt=>{const Jt=xt.player,Rn=xt.element;if(pt.push(Jt),this.collectedEnterElements.length){const Jn=Rn[wr];if(Jn&&Jn.setForMove){if(Jn.previousTriggersValues&&Jn.previousTriggersValues.has(xt.triggerName)){const pc=Jn.previousTriggersValues.get(xt.triggerName),or=this.statesByElement.get(xt.element);if(or&&or.has(xt.triggerName)){const Og=or.get(xt.triggerName);Og.value=pc,or.set(xt.triggerName,Og)}}return void Jt.destroy()}}const Zr=!g||!this.driver.containsElement(g,Rn),zo=Ue.get(Rn),ys=T.get(Rn),Gi=this._buildInstruction(xt,i,ys,zo,Zr);if(Gi.errors&&Gi.errors.length)return void Vt.push(Gi);if(Zr)return Jt.onStart(()=>Ks(Rn,Gi.fromStyles)),Jt.onDestroy(()=>Lr(Rn,Gi.toStyles)),void o.push(Jt);if(xt.isFallbackTransition)return Jt.onStart(()=>Ks(Rn,Gi.fromStyles)),Jt.onDestroy(()=>Lr(Rn,Gi.toStyles)),void o.push(Jt);const zN=[];Gi.timelines.forEach(Jn=>{Jn.stretchStartingKeyframe=!0,this.disabledNodes.has(Jn.element)||zN.push(Jn)}),Gi.timelines=zN,i.append(Rn,Gi.timelines),a.push({instruction:Gi,player:Jt,element:Rn}),Gi.queriedElements.forEach(Jn=>Ro(s,Jn,[]).push(Jt)),Gi.preStyleProps.forEach((Jn,pc)=>{if(Jn.size){let or=c.get(pc);or||c.set(pc,or=new Set),Jn.forEach((Og,kx)=>or.add(kx))}}),Gi.postStyleProps.forEach((Jn,pc)=>{let or=u.get(pc);or||u.set(pc,or=new Set),Jn.forEach((Og,kx)=>or.add(kx))})});if(Vt.length){const rt=[];Vt.forEach(_t=>{rt.push(function nU(t,n){return new ue(3505,!1)}())}),pt.forEach(_t=>_t.destroy()),this.reportError(rt)}const Ni=new Map,kn=new Map;a.forEach(rt=>{const _t=rt.element;i.has(_t)&&(kn.set(_t,_t),this._beforeAnimationBuild(rt.player.namespaceId,rt.instruction,Ni))}),o.forEach(rt=>{const _t=rt.element;this._getPreviousPlayers(_t,!1,rt.namespaceId,rt.triggerName,null).forEach(Jt=>{Ro(Ni,_t,[]).push(Jt),Jt.destroy()})});const Pa=z.filter(rt=>S2(rt,c,u)),sd=new Map;x2(sd,this.driver,ne,u,ua).forEach(rt=>{S2(rt,c,u)&&Pa.push(rt)});const mc=new Map;x.forEach((rt,_t)=>{x2(mc,this.driver,new Set(rt),c,"!")}),Pa.forEach(rt=>{const _t=sd.get(rt),xt=mc.get(rt);sd.set(rt,new Map([..._t?.entries()??[],...xt?.entries()??[]]))});const Sx=[],VN=[],jN={};a.forEach(rt=>{const{element:_t,player:xt,instruction:Jt}=rt;if(i.has(_t)){if(p.has(_t))return xt.onDestroy(()=>Lr(_t,Jt.toStyles)),xt.disabled=!0,xt.overrideTotalTime(Jt.totalTime),void o.push(xt);let Rn=jN;if(kn.size>1){let zo=_t;const ys=[];for(;zo=zo.parentNode;){const Gi=kn.get(zo);if(Gi){Rn=Gi;break}ys.push(zo)}ys.forEach(Gi=>kn.set(Gi,Rn))}const Zr=this._buildAnimation(xt.namespaceId,Jt,Ni,r,mc,sd);if(xt.setRealPlayer(Zr),Rn===jN)Sx.push(xt);else{const zo=this.playersByElement.get(Rn);zo&&zo.length&&(xt.parentPlayer=Xa(zo)),o.push(xt)}}else Ks(_t,Jt.fromStyles),xt.onDestroy(()=>Lr(_t,Jt.toStyles)),VN.push(xt),p.has(_t)&&o.push(xt)}),VN.forEach(rt=>{const _t=r.get(rt.element);if(_t&&_t.length){const xt=Xa(_t);rt.setRealPlayer(xt)}}),o.forEach(rt=>{rt.parentPlayer?rt.syncPlayerEvents(rt.parentPlayer):rt.destroy()});for(let rt=0;rt!Zr.destroyed);Rn.length?t$(this,_t,Rn):this.processLeaveNode(_t)}return z.length=0,Sx.forEach(rt=>{this.players.push(rt),rt.onDone(()=>{rt.destroy();const _t=this.players.indexOf(rt);this.players.splice(_t,1)}),rt.play()}),Sx}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const c=!r||r==Du;s.forEach(u=>{u.queued||!c&&u.triggerName!=o||a.push(u)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const u=c.element,p=u!==r,g=Ro(i,u,[]);this._getPreviousPlayers(u,p,a,s,e.toState).forEach(x=>{const T=x.getRealPlayer();T.beforeDestroy&&T.beforeDestroy(),x.destroy(),g.push(x)})}Ks(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,c=e.element,u=[],p=new Set,g=new Set,b=e.timelines.map(T=>{const I=T.element;p.add(I);const z=I[wr];if(z&&z.removedBeforeQueried)return new wu(T.duration,T.delay);const ie=I!==c,ne=function i$(t){const n=[];return D2(t,n),n}((i.get(I)||KU).map(Ni=>Ni.getRealPlayer())).filter(Ni=>!!Ni.element&&Ni.element===I),Ue=r.get(I),tt=a.get(I),pt=e2(this._normalizer,T.keyframes,Ue,tt),Vt=this._buildPlayer(T,pt,ne);if(T.subTimeline&&o&&g.add(I),ie){const Ni=new Gy(n,s,I);Ni.setRealPlayer(Vt),u.push(Ni)}return Vt});u.forEach(T=>{Ro(this.playersByQueriedElement,T.element,[]).push(T),T.onDone(()=>function XU(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,T.element,T))}),p.forEach(T=>Zo(T,s2));const x=Xa(b);return x.onDestroy(()=>{p.forEach(T=>xl(T,s2)),Lr(c,e.toStyles)}),g.forEach(T=>{Ro(o,T,[]).push(x)}),x}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new wu(n.duration,n.delay)}}class Gy{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new wu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>Cy(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Ro(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Bp(t){return t&&1===t.nodeType}function w2(t,n){const e=t.style.display;return t.style.display=n??"none",e}function x2(t,n,e,i,o){const r=[];e.forEach(c=>r.push(w2(c)));const a=[];i.forEach((c,u)=>{const p=new Map;c.forEach(g=>{const b=n.computeStyle(u,g,o);p.set(g,b),(!b||0==b.length)&&(u[wr]=ZU,a.push(u))}),t.set(u,p)});let s=0;return e.forEach(c=>w2(c,r[s++])),a}function C2(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let c=r.get(s);if(c)return c;const u=s.parentNode;return c=e.has(u)?u:o.has(u)?1:a(u),r.set(s,c),c}return n.forEach(s=>{const c=a(s);1!==c&&e.get(c).push(s)}),e}function Zo(t,n){t.classList?.add(n)}function xl(t,n){t.classList?.remove(n)}function t$(t,n,e){Xa(e).onDone(()=>t.processLeaveNode(n))}function D2(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class Su{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new QU(n.body,e,i,o),this._timelineEngine=new UU(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const c=[],p=Fy(this._driver,r,c,[]);if(c.length)throw function WH(t,n){return new ue(3404,!1)}();s=function VU(t,n,e){return new jU(t,n,e)}(o,p,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=t2(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=t2(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class ku{static#e=this.initialStylesByElement=new WeakMap;constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=ku.initialStylesByElement.get(n);o||ku.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Lr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Lr(this._element,this._initialStyles),this._endStyles&&(Lr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ku.initialStylesByElement.delete(this._element),this._startStyles&&(Ks(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ks(this._element,this._endStyles),this._endStyles=null),Lr(this._element,this._initialStyles),this._state=3)}}function Wy(t){let n=null;return t.forEach((e,i)=>{(function r$(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class k2{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:Ny(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class T2{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return o2(n,e)}getParentElement(n){return ky(n)}query(n,e,i){return r2(n,e,i)}computeStyle(n,e,i){return Ny(n,e)}animate(n,e,i,o,r,a=[]){const c={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(c.easing=r);const u=new Map,p=a.filter(x=>x instanceof k2);(function gU(t,n){return 0===t||0===n})(i,o)&&p.forEach(x=>{x.currentSnapshot.forEach((T,I)=>u.set(I,T))});let g=function mU(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(x=>new Map(x));g=function _U(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,Ny(t,s)))}}return n}(n,g,u);const b=function o$(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Wy(n[0]),n.length>1&&(i=Wy(n[n.length-1]))):n instanceof Map&&(e=Wy(n)),e||i?new ku(t,e,i):null}(n,g);return new k2(n,g,c,b)}}const M2="@.disabled";class I2{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==M2?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class a$ extends I2{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==M2?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function s$(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function c$(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}class l${constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const a=r?.parentNode(o);a&&r.removeChild(a,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const u=this._rendererCache;let p=u.get(o);return p||(p=new I2("",o,this.engine,()=>u.delete(o)),u.set(o,p)),p}const r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,n,u.name,u)};return e.data.animation.forEach(s),new a$(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const E2=[{provide:Iy,useFactory:function u$(){return new d2}},{provide:Su,useClass:(()=>{class t extends Su{constructor(e,i,o){super(e,i,o,Ce(Ob,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(X(dt),X(My),X(Iy))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})()},{provide:Ab,useFactory:function h$(t,n,e){return new l$(t,n,e)},deps:[fy,Su,We]}],qy=[{provide:My,useFactory:()=>new T2},{provide:di,useValue:"BrowserAnimations"},...E2],O2=[{provide:My,useClass:Ty},{provide:di,useValue:"NoopAnimations"},...E2];let Ky,m$=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?O2:qy}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:qy,imports:[KI]})}return t})();try{Ky=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ky=!1}let Cl,ai=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?SI(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&&!Ky)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(i){return new(i||t)(X(oa))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const A2=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function P2(){if(Cl)return Cl;if("object"!=typeof document||!document)return Cl=new Set(A2),Cl;let t=document.createElement("input");return Cl=new Set(A2.filter(n=>(t.setAttribute("type",n),t.type===n))),Cl}let Tu,jp,Ys,Zy;function Ja(t){return function p$(){if(null==Tu&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Tu=!0}))}finally{Tu=Tu||!1}return Tu}()?t:!!t.capture}function R2(){if(null==Ys){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ys=!1,Ys;if("scrollBehavior"in document.documentElement.style)Ys=!0;else{const t=Element.prototype.scrollTo;Ys=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Ys}function Mu(){if("object"!=typeof document||!document)return 0;if(null==jp){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),jp=0,0===t.scrollLeft&&(t.scrollLeft=1,jp=0===t.scrollLeft?1:2),t.remove()}return jp}function zp(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function ma(t){return t.composedPath?t.composedPath()[0]:t.target}function Yy(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function N2(t){return t&&J(t.schedule)}function Qy(t){return t[t.length-1]}function F2(t){return J(Qy(t))?t.pop():void 0}function Iu(t){return N2(Qy(t))?t.pop():void 0}function es(t){return this instanceof es?(this.v=t,this):new es(t)}function j2(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function t0(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,c){!function o(r,a,s,c){Promise.resolve(c).then(function(u){r({value:u,done:s})},a)}(s,c,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const n0=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function z2(t){return J(t?.then)}function H2(t){return J(t[Pg])}function U2(t){return Symbol.asyncIterator&&J(t?.[Symbol.asyncIterator])}function $2(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 G2=function V$(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function W2(t){return J(t?.[G2])}function q2(t){return function V2(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(b){i[b]&&(o[b]=function(x){return new Promise(function(T,I){r.push([b,x,T,I])>1||s(b,x)})})}function s(b,x){try{!function c(b){b.value instanceof es?Promise.resolve(b.value.v).then(u,p):g(r[0][2],b)}(i[b](x))}catch(T){g(r[0][3],T)}}function u(b){s("next",b)}function p(b){s("throw",b)}function g(b,x){b(x),r.shift(),r.length&&s(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield es(e.read());if(o)return yield es(void 0);yield yield es(i)}}finally{e.releaseLock()}})}function K2(t){return J(t?.getReader)}function Zn(t){if(t instanceof ci)return t;if(null!=t){if(H2(t))return function j$(t){return new ci(n=>{const e=t[Pg]();if(J(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(n0(t))return function z$(t){return new ci(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,ut)})}(t);if(U2(t))return Z2(t);if(W2(t))return function U$(t){return new ci(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(K2(t))return function $$(t){return Z2(q2(t))}(t)}throw $2(t)}function Z2(t){return new ci(n=>{(function G$(t,n){var e,i,o,r;return function L2(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(p){try{u(i.next(p))}catch(g){a(g)}}function c(p){try{u(i.throw(p))}catch(g){a(g)}}function u(p){p.done?r(p.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(p.value).then(s,c)}u((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=j2(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function pa(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function Y2(t,n=0){return ji((e,i)=>{e.subscribe(Fi(i,o=>pa(i,t,()=>i.next(o),n),()=>pa(i,t,()=>i.complete(),n),o=>pa(i,t,()=>i.error(o),n)))})}function Q2(t,n=0){return ji((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function X2(t,n){if(!t)throw new Error("Iterable cannot be null");return new ci(e=>{pa(e,n,()=>{const i=t[Symbol.asyncIterator]();pa(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function Zi(t,n){return n?function Q$(t,n){if(null!=t){if(H2(t))return function W$(t,n){return Zn(t).pipe(Q2(n),Y2(n))}(t,n);if(n0(t))return function K$(t,n){return new ci(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(z2(t))return function q$(t,n){return Zn(t).pipe(Q2(n),Y2(n))}(t,n);if(U2(t))return X2(t,n);if(W2(t))return function Z$(t,n){return new ci(e=>{let i;return pa(e,n,()=>{i=t[G2](),pa(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>J(i?.return)&&i.return()})}(t,n);if(K2(t))return function Y$(t,n){return X2(q2(t),n)}(t,n)}throw $2(t)}(t,n):Zn(t)}function Ke(...t){return Zi(t,Iu(t))}function Mn(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Kt(t,n,e){const i=J(t)||n||e?{next:t,error:n,complete:e}:t;return i?ji((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Fi(r,c=>{var u;null===(u=i.next)||void 0===u||u.call(i,c),r.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),r.complete()},c=>{var u;s=!1,null===(u=i.error)||void 0===u||u.call(i,c),r.error(c)},()=>{var c,u;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(u=i.finalize)||void 0===u||u.call(i)}))}):Ra}class uG extends de{constructor(n,e){super()}schedule(n,e=0){return this}}const Gp={setInterval(t,n,...e){const{delegate:i}=Gp;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Gp;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class a0 extends uG{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Gp.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Gp.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Z(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const s0={now:()=>(s0.delegate||Date).now(),delegate:void 0};class Ou{constructor(n,e=Ou.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Ou.now=s0.now;class c0 extends Ou{constructor(n,e=Ou.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Au=new c0(a0),hG=Au;function Wp(t,n=Au){return ji((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const u=r;r=null,i.next(u)}};function c(){const u=a+t,p=n.now();if(p{r=u,a=n.now(),o||(o=n.schedule(c,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}function Mt(t,n){return ji((e,i)=>{let o=0;e.subscribe(Fi(i,r=>t.call(n,r,o++)&&i.next(r)))})}const Fo=new ci(t=>t.complete());function Nt(t){return t<=0?()=>Fo:ji((n,e)=>{let i=0;n.subscribe(Fi(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function l0(t){return Mt((n,e)=>t<=e)}function Pu(t,n=Ra){return t=t??pG,ji((e,i)=>{let o,r=!0;e.subscribe(Fi(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function pG(t,n){return t===n}function ot(t){return ji((n,e)=>{Zn(t).subscribe(Fi(e,()=>e.complete(),ii)),!e.closed&&n.subscribe(e)})}function $e(t){return null!=t&&"false"!=`${t}`}function vi(t,n=0){return J2(t)?Number(t):n}function J2(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function qp(t){return Array.isArray(t)?t:[t]}function hn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function ga(t){return t instanceof Be?t.nativeElement:t}let eE=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),gG=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=ga(e);return new ci(o=>{const a=this._observeElement(i).subscribe(o);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new qe,o=this._mutationObserverFactory.create(r=>i.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(i){return new(i||t)(X(eE))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),tE=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=vi(e),this._subscribe()}constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new Re,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(Wp(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(gG),_(Be),_(We))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[pe.None,"cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Kp=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[eE]})}return t})();const{isArray:_G}=Array,{getPrototypeOf:bG,prototype:vG,keys:yG}=Object;function iE(t){if(1===t.length){const n=t[0];if(_G(n))return{args:n,keys:null};if(function wG(t){return t&&"object"==typeof t&&bG(t)===vG}(n)){const e=yG(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:xG}=Array;function d0(t){return nt(n=>function CG(t,n){return xG(n)?t(...n):t(n)}(t,n))}function nE(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Qs(...t){const n=Iu(t),e=F2(t),{args:i,keys:o}=iE(t);if(0===i.length)return Zi([],n);const r=new ci(function DG(t,n,e=Ra){return i=>{oE(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let c=0;c{const u=Zi(t[c],n);let p=!1;u.subscribe(Fi(i,g=>{r[c]=g,p||(p=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>nE(o,a):Ra));return e?r.pipe(d0(e)):r}function oE(t,n,e){t?pa(e,t,n):n()}function In(t,n,e=1/0){return J(n)?In((i,o)=>nt((r,a)=>n(i,r,o,a))(Zn(t(i,o))),e):("number"==typeof n&&(e=n),ji((i,o)=>function SG(t,n,e,i,o,r,a,s){const c=[];let u=0,p=0,g=!1;const b=()=>{g&&!c.length&&!u&&n.complete()},x=I=>u{r&&n.next(I),u++;let z=!1;Zn(e(I,p++)).subscribe(Fi(n,ie=>{o?.(ie),r?x(ie):n.next(ie)},()=>{z=!0},void 0,()=>{if(z)try{for(u--;c.length&&uT(ie)):T(ie)}b()}catch(ie){n.error(ie)}}))};return t.subscribe(Fi(n,x,()=>{g=!0,b()})),()=>{s?.()}}(i,o,t,e)))}function Sl(t=1/0){return In(Ra,t)}function Ru(...t){return function kG(){return Sl(1)}()(Zi(t,Iu(t)))}function on(...t){const n=Iu(t);return ji((e,i)=>{(n?Ru(t,e,n):Ru(t,e)).subscribe(i)})}const rE=new Set;let Xs,TG=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):IG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function MG(t,n){if(!rE.has(t))try{Xs||(Xs=document.createElement("style"),n&&(Xs.nonce=n),Xs.setAttribute("type","text/css"),document.head.appendChild(Xs)),Xs.sheet&&(Xs.sheet.insertRule(`@media ${t} {body{ }}`,0),rE.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai),X(s_,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function IG(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let u0=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new qe}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return aE(qp(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=Qs(aE(qp(e)).map(a=>this._registerQuery(a).observable));return r=Ru(r.pipe(Nt(1)),r.pipe(l0(1),Wp(0))),r.pipe(nt(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:u})=>{s.matches=s.matches||c,s.breakpoints[u]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new ci(a=>{const s=c=>this._zone.run(()=>a.next(c));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(on(i),nt(({matches:a})=>({query:e,matches:a})),ot(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static#e=this.\u0275fac=function(i){return new(i||t)(X(TG),X(We))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aE(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function Zp(t,n,e){const i=Yp(t,n);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))}function kl(t,n,e){const o=Yp(t,n).filter(r=>r!=e.trim());o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function Yp(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const cE="cdk-describedby-message",Qp="cdk-describedby-host";let h0=0,OG=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+h0++,this._document=e,this._id=Ce(wd)+"-"+h0++}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const r=m0(i,o);"string"!=typeof i?(lE(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,o){if(!i||!this._isElementNode(e))return;const r=m0(i,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof i){const a=this._messageRegistry.get(r);a&&0===a.referenceCount&&this._deleteMessageElement(r)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Qp}="${this._id}"]`);for(let i=0;i0!=o.indexOf(cE));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=this._messageRegistry.get(i);Zp(e,"aria-describedby",o.messageElement.id),e.setAttribute(Qp,this._id),o.referenceCount++}_removeMessageReference(e,i){const o=this._messageRegistry.get(i);o.referenceCount--,kl(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Qp)}_isElementDescribedByMessage(e,i){const o=Yp(e,"aria-describedby"),r=this._messageRegistry.get(i),a=r&&r.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const o=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!o||r&&r.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(i){return new(i||t)(X(dt),X(ai))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function m0(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function lE(t,n){t.id||(t.id=`${cE}-${n}-${h0++}`)}class dE{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new qe,this._typeaheadSubscription=de.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 qe,this.change=new qe,n instanceof na&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Kt(e=>this._pressedLetters.push(e)),Wp(n),Mt(()=>this._pressedLetters.length>0),nt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-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 r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof na?this._items.toArray():this._items}}class uE extends dE{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class Xp extends dE{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let Nu=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function PG(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function AG(t){try{return t.frameElement}catch{return null}}(function zG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===mE(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=mE(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function VG(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function jG(t){return!function NG(t){return function LG(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function RG(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function FG(t){return function BG(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||hE(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hE(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function mE(t){if(!hE(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class pE{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Nt(1)).subscribe(n)}}let Jp=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new pE(e,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||t)(X(Nu),X(We),X(dt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function p0(t){return 0===t.buttons||0===t.detail}function f0(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const HG=new oe("cdk-input-modality-detector-options"),UG={ignoreKeys:[18,17,224,91,16]},Tl=Ja({passive:!0,capture:!0});let $G=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new ft(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ma(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(p0(a)?"keyboard":"mouse"),this._mostRecentTarget=ma(a))},this._onTouchstart=a=>{f0(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ma(a))},this._options={...UG,...r},this.modalityDetected=this._modality.pipe(l0(1)),this.modalityChanged=this.modalityDetected.pipe(Pu()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Tl),o.addEventListener("mousedown",this._onMousedown,Tl),o.addEventListener("touchstart",this._onTouchstart,Tl)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Tl),document.removeEventListener("mousedown",this._onMousedown,Tl),document.removeEventListener("touchstart",this._onTouchstart,Tl))}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai),X(We),X(dt),X(HG,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const GG=new oe("liveAnnouncerElement",{providedIn:"root",factory:function WG(){return null}}),qG=new oe("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let KG=0,g0=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),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",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,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 qe,this._rootNodeFocusAndBlurListener=s=>{for(let u=ma(s);u;u=u.parentElement)"focus"===s.type?this._onFocus(s,u):this._onBlur(s,u)},this._document=r,this._detectionMode=a?.detectionMode||0}monitor(e,i=!1){const o=ga(e);if(!this._platform.isBrowser||1!==o.nodeType)return Ke();const r=function g$(t){if(function f$(){if(null==Zy){const t=typeof document<"u"?document.head:null;Zy=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Zy}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new qe,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=ga(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=ga(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,c])=>this._originChanged(s,i,c)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=ma(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,ef),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,ef)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ot(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ef),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ef),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Re}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lo))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();const gE="cdk-high-contrast-black-on-white",_E="cdk-high-contrast-white-on-black",_0="cdk-high-contrast-active";let bE=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ce(u0).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 i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){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(_0,gE,_E),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(_0,gE):2===i&&e.add(_0,_E)}}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai),X(dt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),b0=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||t)(X(bE))};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Kp]})}return t})();const QG=new oe("cdk-dir-doc",{providedIn:"root",factory:function XG(){return Ce(dt)}}),JG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let mn=(()=>{class t{constructor(e){this.value="ltr",this.change=new Re,e&&(this.value=function eW(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?JG.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(X(QG,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fu=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const tW=["*",[["mat-option"],["ng-container"]]],iW=["*","mat-option, ng-container"],nW=["text"];function oW(t,n){if(1&t&&D(0,"mat-pseudo-checkbox",6),2&t){const e=w();f("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function rW(t,n){1&t&&D(0,"mat-pseudo-checkbox",7),2&t&&f("disabled",w().disabled)}function aW(t,n){if(1&t&&(d(0,"span",8),h(1),l()),2&t){const e=w();m(),ke("(",e.group.label,")")}}const sW=[[["mat-icon"]],"*"],cW=["mat-icon","*"],dW=new oe("mat-sanity-checks",{providedIn:"root",factory:function lW(){return!0}});let St=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Yy()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(i){return new(i||t)(X(bE),X(dW,8),X(dt))};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Fu,Fu]})}return t})();function Br(t){return class extends t{get disabled(){return this._disabled}set disabled(n){this._disabled=$e(n)}constructor(...n){super(...n),this._disabled=!1}}}function is(t,n){return class extends t{get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...e){super(...e),this.defaultColor=n,this.color=n}}}function ns(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=$e(n)}constructor(...n){super(...n),this._disableRipple=!1}}}function os(t,n=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?vi(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}}}function v0(t){return class extends t{updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}constructor(...n){super(...n),this.errorState=!1}}}function uW(t){return class extends t{constructor(...n){super(...n),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ci(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(n){n.next(),n.complete()}}}let tf=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class mW{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const wE=Ja({passive:!0,capture:!0});class pW{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=ma(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,wE)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,wE)))}}const xE={enterDuration:225,exitDuration:150},CE=Ja({passive:!0,capture:!0}),DE=["mousedown","touchstart"],SE=["mouseup","mouseleave","touchend","touchcancel"];class Bu{static#e=this._eventManager=new pW;constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=ga(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...xE,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function gW(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,c=e-o.top,u=r.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=s-a+"px",p.style.top=c-a+"px",p.style.height=2*a+"px",p.style.width=2*a+"px",null!=i.color&&(p.style.backgroundColor=i.color),p.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(p);const g=window.getComputedStyle(p),x=g.transitionDuration,T="none"===g.transitionProperty||"0s"===x||"0s, 0s"===x||0===o.width&&0===o.height,I=new mW(this,p,i,T);p.style.transform="scale3d(1, 1, 1)",I.state=0,i.persistent||(this._mostRecentTransientRipple=I);let z=null;return!T&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ie=()=>this._finishRippleTransition(I),ne=()=>this._destroyRipple(I);p.addEventListener("transitionend",ie),p.addEventListener("transitioncancel",ne),z={onTransitionEnd:ie,onTransitionCancel:ne}}),this._activeRipples.set(I,z),(T||!u)&&this._finishRippleTransition(I),I}fadeOutRipple(n){if(2===n.state||3===n.state)return;const e=n.element,i={...xE,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=ga(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,DE.forEach(i=>{Bu._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{SE.forEach(e=>{this._triggerElement.addEventListener(e,this,CE)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=p0(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(DE.forEach(e=>Bu._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&SE.forEach(e=>n.removeEventListener(e,this,CE)))}}const Ml=new oe("mat-ripple-global-options");let rs=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Bu(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(ai),_(Ml,8),_(di,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-ripple-unbounded",o.unbounded)},inputs:{color:[pe.None,"matRippleColor","color"],unbounded:[pe.None,"matRippleUnbounded","unbounded"],centered:[pe.None,"matRippleCentered","centered"],radius:[pe.None,"matRippleRadius","radius"],animation:[pe.None,"matRippleAnimation","animation"],disabled:[pe.None,"matRippleDisabled","disabled"],trigger:[pe.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})(),as=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,St]})}return t})(),_W=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(i){return new(i||t)(_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&et("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{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-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{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return t})(),kE=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St]})}return t})();const nf=new oe("MAT_OPTION_PARENT_COMPONENT"),bW=Br(class{});let vW=0,yW=(()=>{class t extends bW{constructor(e){super(),this._labelId="mat-optgroup-label-"+vW++,this._inert=e?.inertGroups??!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(nf,8))};static#t=this.\u0275dir=Q({type:t,inputs:{label:"label"},features:[ge]})}return t})();const rf=new oe("MatOptgroup");let TE=(()=>{class t extends yW{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,o){2&i&&Je("role",o._inert?null:"group")("aria-disabled",o._inert?null:o.disabled.toString())("aria-labelledby",o._inert?null:o._labelId)},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[Ye([{provide:rf,useExisting:t}]),ge],ngContentSelectors:iW,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,o){1&i&&(zt(tW),d(0,"span",0)(1,"span",1),h(2),Ze(3),l()(),Ze(4,1)),2&i&&(et("mdc-list-item--disabled",o.disabled),f("id",o._labelId),m(2),ke("",o.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0})}return t})(),wW=0;class ME{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let xW=(()=>{class t{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=$e(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+wW++,this.onSelectionChange=new Re,this._stateChanges=new qe}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}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)&&!Mn(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new ME(this,e))}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(nW,7),2&i){let r;Oe(r=Ae())&&(o._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return t})(),En=(()=>{class t extends xW{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(nf,8),_(rf,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&N("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(oo("id",o.id),Je("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),et("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},exportAs:["matOption"],features:[ge],ngContentSelectors:cW,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(i,o){1&i&&(zt(sW),y(0,oW,1,2,"mat-pseudo-checkbox",0),Ze(1),d(2,"span",1,2),Ze(4,1),l(),y(5,rW,1,1,"mat-pseudo-checkbox",3)(6,aW,2,1,"span",4),D(7,"div",5)),2&i&&(f("ngIf",o.multiple),m(5),f("ngIf",!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator),m(),f("ngIf",o.group&&o.group._inert),m(),f("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[rs,Tt,_W],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-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-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();function IE(t,n,e){if(e.length){let i=n.toArray(),o=e.toArray(),r=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}let af=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[as,Bn,St,kE]})}return t})();const OE={capture:!0},AE=["focus","click","mouseenter","touchstart"],y0="mat-ripple-loader-uninitialized",w0="mat-ripple-loader-class-name",PE="mat-ripple-loader-centered",sf="mat-ripple-loader-disabled";let RE=(()=>{class t{constructor(){this._document=Ce(dt,{optional:!0}),this._animationMode=Ce(di,{optional:!0}),this._globalRippleOptions=Ce(Ml,{optional:!0}),this._platform=Ce(ai),this._ngZone=Ce(We),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${y0}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of AE)this._document?.addEventListener(e,this._onInteraction,OE)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of AE)this._document?.removeEventListener(i,this._onInteraction,OE)}configureRipple(e,i){e.setAttribute(y0,""),(i.className||!e.hasAttribute(w0))&&e.setAttribute(w0,i.className||""),i.centered&&e.setAttribute(PE,""),i.disabled&&e.setAttribute(sf,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const o=this._hosts.get(e);o?o.disabled=i:i?e.setAttribute(sf,""):e.removeAttribute(sf)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(w0)),e.append(o);const r=new rs(new Be(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(PE),r.disabled=e.hasAttribute(sf),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(y0),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const CW=["*",[["mat-toolbar-row"]]],DW=["*","mat-toolbar-row"],SW=is(class{constructor(t){this._elementRef=t}});let kW=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),TW=(()=>{class t extends SW{constructor(e,i,o){super(e),this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(dt))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&>(r,kW,5),2&i){let a;Oe(a=Ae())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ge],ngContentSelectors:DW,decls:2,vars:0,template:function(i,o){1&i&&(zt(CW),Ze(0),Ze(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.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;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return t})(),NE=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,St]})}return t})();const FE=["mat-button",""],LE=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],BE=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],VE=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",IW=["mat-icon-button",""],EW=["*"],OW=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],AW=is(Br(ns(class{constructor(t){this._elementRef=t}})));let x0=(()=>{class t extends AW{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$e(e),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._updateRippleDisabled()}constructor(e,i,o,r){super(e),this._platform=i,this._ngZone=o,this._animationMode=r,this._focusMonitor=Ce(Lo),this._rippleLoader=Ce(RE),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const a=e.nativeElement.classList;for(const s of OW)this._hasHostAttributes(s.selector)&&s.mdcClasses.forEach(c=>{a.add(c)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,features:[ge]})}return t})(),RW=(()=>{class t extends x0{constructor(e,i,o,r){super(e,i,o,r),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,features:[ge]})}return t})(),Yt=(()=>{class t extends x0{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(We),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(i,o){2&i&&(Je("disabled",o.disabled||null),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ge],attrs:FE,ngContentSelectors:BE,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(zt(LE),D(0,"span",0),Ze(1),d(2,"span",1),Ze(3,1),l(),Ze(4,2),D(5,"span",2)(6,"span",3)),2&i&&et("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return t})(),jE=(()=>{class t extends RW{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(We),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:9,hostBindings:function(i,o){2&i&&(Je("disabled",o.disabled||null)("tabindex",o.disabled?-1:o.tabIndex)("aria-disabled",o.disabled.toString()),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[ge],attrs:FE,ngContentSelectors:BE,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(zt(LE),D(0,"span",0),Ze(1),d(2,"span",1),Ze(3,1),l(),Ze(4,2),D(5,"span",2)(6,"span",3)),2&i&&et("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',VE],encapsulation:2,changeDetection:0})}return t})(),_a=(()=>{class t extends x0{constructor(e,i,o,r){super(e,i,o,r),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(We),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(i,o){2&i&&(Je("disabled",o.disabled||null),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ge],attrs:IW,ngContentSelectors:EW,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(zt(),D(0,"span",0),Ze(1),D(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',VE],encapsulation:2,changeDetection:0})}return t})(),cf=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,as,St]})}return t})();function Vu(t,n){const e=J(t)?t:()=>t,i=o=>o.error(e());return new ci(n?o=>n.schedule(i,0,o):i)}function C0(...t){const n=F2(t),{args:e,keys:i}=iE(t),o=new ci(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let c=a,u=a;for(let p=0;p{g||(g=!0,u--),s[p]=b},()=>c--,void 0,()=>{(!c||!g)&&(u||r.next(i?nE(i,s):s),r.complete())}))}});return n?o.pipe(d0(n)):o}function Hi(t){return ji((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Fi(e,void 0,void 0,a=>{r=Zn(t(a,Hi(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function Js(t){return ji((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function zE(t={}){const{connector:n=(()=>new qe),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,c,u=0,p=!1,g=!1;const b=()=>{s?.unsubscribe(),s=void 0},x=()=>{b(),a=c=void 0,p=g=!1},T=()=>{const I=a;x(),I?.unsubscribe()};return ji((I,z)=>{u++,!g&&!p&&b();const ie=c=c??n();z.add(()=>{u--,0===u&&!g&&!p&&(s=D0(T,o))}),ie.subscribe(z),!a&&u>0&&(a=new Cs({next:ne=>ie.next(ne),error:ne=>{g=!0,b(),s=D0(x,e,ne),ie.error(ne)},complete:()=>{p=!0,b(),s=D0(x,i),ie.complete()}}),Zn(I).subscribe(a))})(r)}}function D0(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new Cs({next:()=>{i.unsubscribe(),t()}});return Zn(n(...e)).subscribe(i)}function Il(t,n){return J(n)?In(t,n,1):In(t,1)}function pn(t,n){return ji((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Fi(i,c=>{o?.unsubscribe();let u=0;const p=r++;Zn(t(c,p)).subscribe(o=Fi(i,g=>i.next(n?n(c,g,p,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}class lf{}class df{}class Qo{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Qo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Qo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Qo?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),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(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class FW{encodeKey(n){return HE(n)}encodeValue(n){return HE(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const BW=/%(\d[a-f0-9])/gi,VW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function HE(t){return encodeURIComponent(t).replace(BW,(n,e)=>VW[e]??n)}function uf(t){return`${t}`}class ss{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new FW,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function LW(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(uf):[uf(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new ss({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(uf(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(uf(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class jW{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function UE(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function $E(t){return typeof Blob<"u"&&t instanceof Blob}function GE(t){return typeof FormData<"u"&&t instanceof FormData}class ju{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function zW(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!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Qo,this.context??=new jW,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sg.set(b,n.setHeaders[b]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((g,b)=>g.set(b,n.setParams[b]),u)),new ju(e,i,r,{params:u,headers:c,context:p,reportProgress:s,responseType:o,withCredentials:a})}}var cs=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}(cs||{});class S0{constructor(n,e=zu.Ok,i="OK"){this.headers=n.headers||new Qo,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class hf extends S0{constructor(n={}){super(n),this.type=cs.ResponseHeader}clone(n={}){return new hf({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ec extends S0{constructor(n={}){super(n),this.type=cs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ec({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class El extends S0{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var zu=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(zu||{});function k0(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let mf=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof ju)r=e;else{let c,u;c=o.headers instanceof Qo?o.headers:new Qo(o.headers),o.params&&(u=o.params instanceof ss?o.params:new ss({fromObject:o.params})),r=new ju(e,i,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Ke(r).pipe(Il(c=>this.handler.handle(c)));if(e instanceof ju||"events"===o.observe)return a;const s=a.pipe(Mt(c=>c instanceof ec));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return s.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return s.pipe(nt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe(nt(c=>c.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ss).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,k0(o,i))}post(e,i,o={}){return this.request("POST",e,k0(o,i))}put(e,i,o={}){return this.request("PUT",e,k0(o,i))}static#e=this.\u0275fac=function(i){return new(i||t)(X(lf))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();function qE(t,n){return n(t)}function qW(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const KE=new oe(""),Hu=new oe(""),ZE=new oe(""),YE=new oe("");function ZW(){let t=null;return(n,e)=>{null===t&&(t=(Ce(KE,{optional:!0})??[]).reduceRight(qW,qE));const i=Ce(Bs),o=i.add();return t(n,e).pipe(Js(()=>i.remove(o)))}}let QE=(()=>{class t extends lf{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=Ce(Bs);const o=Ce(YE,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Hu),...this.injector.get(ZE,[])]));this.chain=o.reduceRight((r,a)=>function KW(t,n,e){return(i,o)=>Ha(e,()=>n(i,r=>t(r,o)))}(r,a,this.injector),qE)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Js(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||t)(X(df),X(Io))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const eq=/^\)\]\}',?\n/;let JE=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new ue(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?Zi(i.\u0275loadImpl()):Ke(null)).pipe(pn(()=>new ci(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((I,z)=>a.setRequestHeader(I,z.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const I=e.detectContentTypeHeader();null!==I&&a.setRequestHeader("Content-Type",I)}if(e.responseType){const I=e.responseType.toLowerCase();a.responseType="json"!==I?I:"text"}const s=e.serializeBody();let c=null;const u=()=>{if(null!==c)return c;const I=a.statusText||"OK",z=new Qo(a.getAllResponseHeaders()),ie=function tq(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 c=new hf({headers:z,status:a.status,statusText:I,url:ie}),c},p=()=>{let{headers:I,status:z,statusText:ie,url:ne}=u(),Ue=null;z!==zu.NoContent&&(Ue=typeof a.response>"u"?a.responseText:a.response),0===z&&(z=Ue?zu.Ok:0);let tt=z>=200&&z<300;if("json"===e.responseType&&"string"==typeof Ue){const pt=Ue;Ue=Ue.replace(eq,"");try{Ue=""!==Ue?JSON.parse(Ue):null}catch(Vt){Ue=pt,tt&&(tt=!1,Ue={error:Vt,text:Ue})}}tt?(r.next(new ec({body:Ue,headers:I,status:z,statusText:ie,url:ne||void 0})),r.complete()):r.error(new El({error:Ue,headers:I,status:z,statusText:ie,url:ne||void 0}))},g=I=>{const{url:z}=u(),ie=new El({error:I,status:a.status||0,statusText:a.statusText||"Unknown Error",url:z||void 0});r.error(ie)};let b=!1;const x=I=>{b||(r.next(u()),b=!0);let z={type:cs.DownloadProgress,loaded:I.loaded};I.lengthComputable&&(z.total=I.total),"text"===e.responseType&&a.responseText&&(z.partialText=a.responseText),r.next(z)},T=I=>{let z={type:cs.UploadProgress,loaded:I.loaded};I.lengthComputable&&(z.total=I.total),r.next(z)};return a.addEventListener("load",p),a.addEventListener("error",g),a.addEventListener("timeout",g),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",x),null!==s&&a.upload&&a.upload.addEventListener("progress",T)),a.send(s),r.next({type:cs.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",p),a.removeEventListener("timeout",g),e.reportProgress&&(a.removeEventListener("progress",x),null!==s&&a.upload&&a.upload.removeEventListener("progress",T)),a.readyState!==a.DONE&&a.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||t)(X(TI))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();const I0=new oe(""),eO=new oe("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),tO=new oe("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class iO{}let oq=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,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=mI(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(X(dt),X(oa),X(eO))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();function rq(t,n){const e=t.url.toLowerCase();if(!Ce(I0)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Ce(iO).getToken(),o=Ce(tO);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var ls=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}(ls||{});function aq(...t){const n=[mf,JE,QE,{provide:lf,useExisting:QE},{provide:df,useExisting:JE},{provide:Hu,useValue:rq,multi:!0},{provide:I0,useValue:!0},{provide:iO,useClass:oq}];for(const e of t)n.push(...e.\u0275providers);return function Yh(t){return{\u0275providers:t}}(n)}const nO=new oe("");function sq(){return function tc(t,n){return{\u0275kind:t,\u0275providers:n}}(ls.LegacyInterceptors,[{provide:nO,useFactory:ZW},{provide:Hu,useExisting:nO,multi:!0}])}let cq=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[aq(sq())]})}return t})();const pq=["*"];let ff;function Uu(t){return function fq(){if(void 0===ff&&(ff=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(ff=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return ff}()?.createHTML(t)||t}function dO(t){return Error(`Unable to find icon with the name "${t}"`)}function uO(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function hO(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class ic{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let gf=(()=>{class t{constructor(e,i,o,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,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,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,r){return this._addSvgIconConfig(e,i,new ic(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,r){const a=this._sanitizer.sanitize(Ln.HTML,o);if(!a)throw hO(o);const s=Uu(a);return this._addSvgIconConfig(e,i,new ic("",s,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new ic(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const r=this._sanitizer.sanitize(Ln.HTML,i);if(!r)throw hO(i);const a=Uu(r);return this._addSvgIconSetConfig(e,new ic("",a,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Ln.RESOURCE_URL,e);if(!i)throw uO(e);const o=this._cachedIconsByUrl.get(i);return o?Ke(_f(o)):this._loadSvgIconFromConfig(new ic(e,null)).pipe(Kt(r=>this._cachedIconsByUrl.set(i,r)),nt(r=>_f(r)))}getNamedSvgIcon(e,i=""){const o=mO(i,e);let r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);const a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Vu(dO(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Ke(_f(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(nt(i=>_f(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?Ke(o):C0(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Hi(s=>{const u=`Loading icon set URL: ${this._sanitizer.sanitize(Ln.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Ke(null)})))).pipe(nt(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw dO(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Kt(i=>e.svgText=i),nt(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Ke(null):this._fetchIcon(e).pipe(Kt(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const a=r.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 s=this._svgElementFromString(Uu(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const i=this._svgElementFromString(Uu("")),o=e.attributes;for(let r=0;rUu(u)),Js(()=>this._inProgressUrlFetches.delete(a)),zE());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(mO(e,i),o),this}_addSvgIconSetConfig(e,i){const o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;on?n.pathname+n.search:""}}}),pO=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Cq=pO.map(t=>`[${t}]`).join(", "),Dq=/^url\(['"]?#(.*?)['"]?\)$/;let Ii=(()=>{class t extends vq{get inline(){return this._inline}set inline(e){this._inline=$e(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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,o,r,a,s){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=de.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const o=e.childNodes[i];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),i.forEach(o=>e.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(Cq),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{const s=i[r],c=s.getAttribute(a),u=c?c.match(Dq):null;if(u){let p=o.get(s);p||(p=[],o.set(s,p)),p.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(Nt(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${r.message}`))})}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(gf),io("aria-hidden"),_(wq),_(Ho),_(yq,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(i,o){2&i&&(Je("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),et("mat-icon-inline",o.inline)("mat-icon-no-color","primary"!==o.color&&"accent"!==o.color&&"warn"!==o.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ge],ngContentSelectors:pq,decls:1,vars:0,template:function(i,o){1&i&&(zt(),Ze(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.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})}return t})(),fO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,St]})}return t})();const Sq=["*"],Mq=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Iq=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],Eq=new oe("MAT_CARD_CONFIG");let $u=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}static#e=this.\u0275fac=function(i){return new(i||t)(_(Eq,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-mdc-card-outlined","outlined"===o.appearance)("mdc-card--outlined","outlined"===o.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:Sq,decls:1,vars:0,template:function(i,o){1&i&&(zt(),Ze(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return t})(),E0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})(),O0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})(),gO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:Iq,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,o){1&i&&(zt(Mq),Ze(0),d(1,"div",0),Ze(2,1),l(),Ze(3,2))},encapsulation:2,changeDetection:0})}return t})(),_O=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,Bn,St]})}return t})();const Rq=new oe("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Fq=is(class{constructor(t){this._elementRef=t}},"primary");let bO=(()=>{class t extends Fq{constructor(e,i,o,r,a){super(e),this._ngZone=i,this._changeDetectorRef=o,this._animationMode=r,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new Re,this._mode="determinate",this._transitionendHandler=s=>{0===this.animationEnd.observers.length||!s.target||!s.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===r,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=vO(vi(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=vO(vi(e)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(Ft),_(di,8),_(Rq,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(i,o){2&i&&(Je("aria-valuenow",o._isIndeterminate()?null:o.value)("mode",o.mode),et("_mat-animation-noopable",o._isNoopAnimation)("mdc-linear-progress--animation-ready",!o._isNoopAnimation)("mdc-linear-progress--indeterminate",o._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[ge],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(i,o){1&i&&(d(0,"div",0),D(1,"div",1)(2,"div",2),l(),d(3,"div",3),D(4,"span",4),l(),d(5,"div",5),D(6,"span",4),l()),2&i&&(m(),yn("flex-basis",o._getBufferBarFlexBasis()),m(2),yn("transform",o._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-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(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-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 mdc-linear-progress-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(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{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(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{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(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return t})();function vO(t,n=0,e=100){return Math.max(n,Math.min(e,t))}let yO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St]})}return t})();function Ei(...t){const n=Iu(t),e=function _$(t,n){return"number"==typeof Qy(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Zn(i[0]):Sl(e)(Zi(i,n)):Fo}let wO=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=$e(e)}get inset(){return this._inset}set inset(e){this._inset=$e(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,o){2&i&&(Je("aria-orientation",o.vertical?"vertical":"horizontal"),et("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,o){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.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})}return t})(),A0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,St]})}return t})();function P0(){return ji((t,n)=>{let e=null;t._refCount++;const i=Fi(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class R0 extends ci{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Ex(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new de;const e=this.getSubject();n.add(this.source.subscribe(Fi(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=de.EMPTY)}return n}refCount(){return P0()(this)}}function Ol(t){return!!t&&(t instanceof ci||J(t.lift)&&J(t.subscribe))}class bf{}function vf(t){return t&&"function"==typeof t.connect&&!(t instanceof R0)}class xO{applyChanges(n,e,i,o,r){n.forEachOperation((a,s,c)=>{let u,p;if(null==a.previousIndex){const g=i(a,s,c);u=e.createEmbeddedView(g.templateRef,g.context,g.index),p=1}else null==c?(e.remove(s),p=3):(u=e.get(s),e.move(u,c),p=2);r&&r({context:u?.context,operation:p,record:a})})}detach(){}}class Gu{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,o){this._multiple=n,this._emitChanges=i,this.compareWith=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new qe,e&&e.length&&(n?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);const e=this.selected,i=new Set(n);n.forEach(r=>this._markSelected(r)),e.filter(r=>!i.has(r)).forEach(r=>this._unmarkSelected(r));const o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(n){if(this.compareWith){for(let e of this._selection)if(this.compareWith(n,e))return e;return n}return n}}let N0=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Wu=new oe("_ViewRepeater");let DO=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(sa),_(Be))};static#t=this.\u0275dir=Q({type:t})}return t})(),nc=(()=>{class t extends DO{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,features:[ge]})}return t})();const co=new oe(""),Bq={provide:co,useExisting:qt(()=>Oi),multi:!0},jq=new oe("");let Oi=(()=>{class t extends DO{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Vq(){const t=Qa()?Qa().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(sa),_(Be),_(jq,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&N("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:[Ye([Bq]),ge]})}return t})();function ds(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function kO(t){return null!=t&&"number"==typeof t.length}const Vn=new oe(""),us=new oe(""),zq=/^(?=.{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 ce{static min(n){return function TO(t){return n=>{if(ds(n.value)||ds(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(ds(n.value)||ds(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return IO(n)}static requiredTrue(n){return function EO(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function OO(t){return ds(t.value)||zq.test(t.value)?null:{email:!0}}(n)}static minLength(n){return AO(n)}static maxLength(n){return PO(n)}static pattern(n){return RO(n)}static nullValidator(n){return null}static compose(n){return jO(n)}static composeAsync(n){return zO(n)}}function IO(t){return ds(t.value)?{required:!0}:null}function AO(t){return n=>ds(n.value)||!kO(n.value)?null:n.value.lengthkO(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function RO(t){if(!t)return yf;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(ds(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function yf(t){return null}function NO(t){return null!=t}function FO(t){return mu(t)?Zi(t):t}function LO(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function BO(t,n){return n.map(e=>e(t))}function VO(t){return t.map(n=>function Hq(t){return!t.validate}(n)?n:e=>n.validate(e))}function jO(t){if(!t)return null;const n=t.filter(NO);return 0==n.length?null:function(e){return LO(BO(e,n))}}function F0(t){return null!=t?jO(VO(t)):null}function zO(t){if(!t)return null;const n=t.filter(NO);return 0==n.length?null:function(e){return C0(BO(e,n).map(FO)).pipe(nt(LO))}}function L0(t){return null!=t?zO(VO(t)):null}function HO(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function UO(t){return t._rawValidators}function $O(t){return t._rawAsyncValidators}function B0(t){return t?Array.isArray(t)?t:[t]:[]}function wf(t,n){return Array.isArray(t)?t.includes(n):t===n}function GO(t,n){const e=B0(n);return B0(t).forEach(o=>{wf(e,o)||e.push(o)}),e}function WO(t,n){return B0(n).filter(e=>!wf(t,e))}class qO{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=F0(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=L0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class lo extends qO{get formDirective(){return null}get path(){return null}}class xr extends qO{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class KO{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let xi=(()=>{class t extends KO{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(xr,2))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&et("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:[ge]})}return t})(),Ui=(()=>{class t extends KO{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(lo,10))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){2&i&&et("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:[ge]})}return t})();const qu="VALID",Cf="INVALID",Al="PENDING",Ku="DISABLED";function z0(t){return(Df(t)?t.validators:t)||null}function H0(t,n){return(Df(n)?n.asyncValidators:t)||null}function Df(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function YO(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new ue(1e3,"");if(!i[e])throw new ue(1001,"")}function QO(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new ue(1002,"")})}class Sf{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===qu}get invalid(){return this.status===Cf}get pending(){return this.status==Al}get disabled(){return this.status===Ku}get enabled(){return this.status!==Ku}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(GO(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(GO(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(WO(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(WO(n,this._rawAsyncValidators))}hasValidator(n){return wf(this._rawValidators,n)}hasAsyncValidator(n){return wf(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Al,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ku,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=qu,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===qu||this.status===Al)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ku:qu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Al,this._hasOwnPendingAsyncValidator=!0;const e=FO(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Re,this.statusChanges=new Re}_calculateStatus(){return this._allControlsDisabled()?Ku:this.errors?Cf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Al)?Al:this._anyControlsHaveStatus(Cf)?Cf:qu}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Df(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function Wq(t){return Array.isArray(t)?F0(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function qq(t){return Array.isArray(t)?L0(t):t||null}(this._rawAsyncValidators)}}class ei extends Sf{constructor(n,e,i){super(z0(e),H0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){QO(this,0,n),Object.keys(n).forEach(i=>{YO(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class XO extends ei{}const oc=new oe("CallSetDisabledState",{providedIn:"root",factory:()=>Zu}),Zu="always";function kf(t,n){return[...n.path,t]}function Yu(t,n,e=Zu){U0(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function Zq(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&JO(t,n)})}(t,n),function Qq(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function Yq(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&JO(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function Kq(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Tf(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),If(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Mf(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function U0(t,n){const e=UO(t);null!==n.validator?t.setValidators(HO(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=$O(t);null!==n.asyncValidator?t.setAsyncValidators(HO(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();Mf(n._rawValidators,o),Mf(n._rawAsyncValidators,o)}function If(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=UO(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=$O(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return Mf(n._rawValidators,i),Mf(n._rawAsyncValidators,i),e}function JO(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function eA(t,n){U0(t,n)}function G0(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function tA(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function W0(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===Oi?e=r:function eK(t){return Object.getPrototypeOf(t.constructor)===nc}(r)?i=r:o=r}),o||i||e||null}const iK={provide:lo,useExisting:qt(()=>hs)},Qu=Promise.resolve();let hs=(()=>{class t extends lo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Re,this.form=new ei({},F0(e),L0(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Qu.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Yu(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Qu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Qu.then(()=>{const i=this._findContainer(e.path),o=new ei({});eA(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Qu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Qu.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,tA(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static#e=this.\u0275fac=function(i){return new(i||t)(_(Vn,10),_(us,10),_(oc,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&N("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[pe.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([iK]),ge]})}return t})();function iA(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function nA(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const K=class extends Sf{constructor(n=null,e,i){super(z0(e),H0(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Df(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=nA(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){iA(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){iA(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){nA(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let oA=(()=>{class t extends lo{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return kf(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,features:[ge]})}return t})();const rK={provide:xr,useExisting:qt(()=>Pl)},aA=Promise.resolve();let Pl=(()=>{class t extends xr{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new K,this._registered=!1,this.name="",this.update=new Re,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=W0(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),G0(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(){Yu(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){aA.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&vl(i);aA.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?kf(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(_(lo,9),_(Vn,10),_(us,10),_(co,10),_(Ft,8),_(oc,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[pe.None,"disabled","isDisabled"],model:[pe.None,"ngModel","model"],options:[pe.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ye([rK]),ge,fi]})}return t})(),On=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})();const aK={provide:co,useExisting:qt(()=>q0),multi:!0};let q0=(()=>{class t extends nc{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){1&i&&N("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Ye([aK]),ge]})}return t})();const K0=new oe(""),dK={provide:xr,useExisting:qt(()=>Rl)};let Rl=(()=>{class t extends xr{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Re,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=W0(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Tf(i,this,!1),Yu(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}G0(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Tf(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(i){return new(i||t)(_(Vn,10),_(us,10),_(co,10),_(K0,8),_(oc,8))};static#i=this.\u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[pe.None,"formControl","form"],isDisabled:[pe.None,"disabled","isDisabled"],model:[pe.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ye([dK]),ge,fi]})}return t})();const uK={provide:lo,useExisting:qt(()=>Ai)};let Ai=(()=>{class t extends lo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Re,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(If(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Yu(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Tf(e.control||null,e,!1),function tK(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,tA(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(Tf(i||null,e),(t=>t instanceof K)(o)&&(Yu(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);eA(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function Xq(t,n){return If(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){U0(this.form,this),this._oldForm&&If(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Vn,10),_(us,10),_(oc,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&N("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[pe.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([uK]),ge,fi]})}return t})();const hK={provide:lo,useExisting:qt(()=>Xu)};let Xu=(()=>{class t extends oA{constructor(e,i,o){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){lA(this._parent)}static#e=this.\u0275fac=function(i){return new(i||t)(_(lo,13),_(Vn,10),_(us,10))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formGroupName",""]],inputs:{name:[pe.None,"formGroupName","name"]},features:[Ye([hK]),ge]})}return t})();const mK={provide:lo,useExisting:qt(()=>Ju)};let Ju=(()=>{class t extends lo{constructor(e,i,o){super(),this.name=null,this._parent=e,this._setValidators(i),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 kf(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){lA(this._parent)}static#e=this.\u0275fac=function(i){return new(i||t)(_(lo,13),_(Vn,10),_(us,10))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formArrayName",""]],inputs:{name:[pe.None,"formArrayName","name"]},features:[Ye([mK]),ge]})}return t})();function lA(t){return!(t instanceof Xu||t instanceof Ai||t instanceof Ju)}const pK={provide:xr,useExisting:qt(()=>Yi)};let Yi=(()=>{class t extends xr{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Re,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=W0(0,r)}ngOnChanges(e){this._added||this._setUpControl(),G0(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 kf(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(i){return new(i||t)(_(lo,13),_(Vn,10),_(us,10),_(co,10),_(K0,8))};static#i=this.\u0275dir=Q({type:t,selectors:[["","formControlName",""]],inputs:{name:[pe.None,"formControlName","name"],isDisabled:[pe.None,"disabled","isDisabled"],model:[pe.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ye([pK]),ge,fi]})}return t})();function hA(t){return"number"==typeof t?t:parseInt(t,10)}let rc=(()=>{class t{constructor(){this._validator=yf}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):yf,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,features:[fi]})}return t})();const CK={provide:Vn,useExisting:qt(()=>Bo),multi:!0};let Bo=(()=>{class t extends rc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=vl,this.createValidator=e=>IO}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&Je("required",o._enabled?"":null)},inputs:{required:"required"},features:[Ye([CK]),ge]})}return t})();const kK={provide:Vn,useExisting:qt(()=>X0),multi:!0};let X0=(()=>{class t extends rc{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>hA(e),this.createValidator=e=>AO(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Je("minlength",o._enabled?o.minlength:null)},inputs:{minlength:"minlength"},features:[Ye([kK]),ge]})}return t})();const TK={provide:Vn,useExisting:qt(()=>J0),multi:!0};let J0=(()=>{class t extends rc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>hA(e),this.createValidator=e=>PO(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Je("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ye([TK]),ge]})}return t})();const MK={provide:Vn,useExisting:qt(()=>ew),multi:!0};let ew=(()=>{class t extends rc{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>RO(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Je("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[Ye([MK]),ge]})}return t})(),_A=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();class bA extends Sf{constructor(n,e,i){super(z0(e),H0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);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:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){QO(this,0,n),n.forEach((i,o)=>{YO(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function vA(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let ba=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return vA(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new ei(o,r)}record(e,i=null){const o=this._reduceControls(e);return new XO(o,i)}control(e,i,o){let r={};return this.useNonNullable?(vA(i)?r=i:(r.validators=i,r.asyncValidators=o),new K(e,{...r,nonNullable:!0})):new K(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new bA(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof K||e instanceof Sf?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),IK=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:oc,useValue:e.callSetDisabledState??Zu}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[_A]})}return t})(),yA=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:K0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:oc,useValue:e.callSetDisabledState??Zu}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[_A]})}return t})(),SA=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Kp,Bn,St,as,kE,A0]})}return t})();class rZ extends qe{constructor(n=1/0,e=1/0,i=s0){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(i.push(n),!o&&i.push(r.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let a=0;athis._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new ci(e=>{const i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(Mt(e=>e.some(i=>i.target===n)),function aZ(t,n,e){let i,o=!1;return t&&"object"==typeof t?({bufferSize:i=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:e}=t):i=t??1/0,zE({connector:()=>new rZ(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}({bufferSize:1,refCount:!0}),ot(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let cZ=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=Ce(We)}ngOnDestroy(){for(const[,e]of this._observers)e.destroy();this._observers.clear()}observe(e,i){const o=i?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new sZ(o)),this._observers.get(o).observe(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lZ=["notch"],dZ=["matFormFieldNotchedOutline",""],uZ=["*"],hZ=["textField"],mZ=["iconPrefixContainer"],pZ=["textPrefixContainer"];function fZ(t,n){1&t&&D(0,"span",19)}function gZ(t,n){if(1&t&&(d(0,"label",17),Ze(1,1),y(2,fZ,1,0,"span",18),l()),2&t){const e=w(2);f("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),Je("for",e._control.id),m(2),f("ngIf",!e.hideRequiredMarker&&e._control.required)}}function _Z(t,n){1&t&&y(0,gZ,3,5,"label",16),2&t&&f("ngIf",w()._hasFloatingLabel())}function bZ(t,n){1&t&&D(0,"div",20)}function vZ(t,n){}function yZ(t,n){1&t&&y(0,vZ,0,0,"ng-template",22),2&t&&(w(2),f("ngTemplateOutlet",Rt(1)))}function wZ(t,n){if(1&t&&(d(0,"div",21),y(1,yZ,1,1,"ng-template",9),l()),2&t){const e=w();f("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),f("ngIf",!e._forceDisplayInfixLabel())}}function xZ(t,n){1&t&&(d(0,"div",23,24),Ze(2,2),l())}function CZ(t,n){1&t&&(d(0,"div",25,26),Ze(2,3),l())}function DZ(t,n){}function SZ(t,n){1&t&&y(0,DZ,0,0,"ng-template",22),2&t&&(w(),f("ngTemplateOutlet",Rt(1)))}function kZ(t,n){1&t&&(d(0,"div",27),Ze(1,4),l())}function TZ(t,n){1&t&&(d(0,"div",28),Ze(1,5),l())}function MZ(t,n){1&t&&D(0,"div",29)}function IZ(t,n){1&t&&(d(0,"div",30),Ze(1,6),l()),2&t&&f("@transitionMessages",w()._subscriptAnimationState)}function EZ(t,n){if(1&t&&(d(0,"mat-hint",34),h(1),l()),2&t){const e=w(2);f("id",e._hintLabelId),m(),Ne(e.hintLabel)}}function OZ(t,n){if(1&t&&(d(0,"div",31),y(1,EZ,2,2,"mat-hint",32),Ze(2,7),D(3,"div",33),Ze(4,8),l()),2&t){const e=w();f("@transitionMessages",e._subscriptAnimationState),m(),f("ngIf",e.hintLabel)}}const AZ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],PZ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Pi=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),RZ=0;const kA=new oe("MatError");let iw=(()=>{class t{constructor(e,i){this.id="mat-mdc-error-"+RZ++,e||i.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(i){return new(i||t)(io("aria-live"),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,o){2&i&&oo("id",o.id)},inputs:{id:"id"},features:[Ye([{provide:kA,useExisting:t}])]})}return t})(),NZ=0,Nl=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+NZ++}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,o){2&i&&(oo("id",o.id),Je("align",null),et("mat-mdc-form-field-hint-end","end"===o.align))},inputs:{align:"align",id:"id"}})}return t})();const FZ=new oe("MatPrefix"),TA=new oe("MatSuffix");let nw=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[pe.None,"matTextSuffix","_isTextSelector"]},features:[Ye([{provide:TA,useExisting:t}])]})}return t})();const MA=new oe("FloatingLabelParent");let IA=(()=>{class t{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=Ce(cZ),this._ngZone=Ce(We),this._parent=Ce(MA),this._resizeSubscription=new de}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function LZ(t){if(null!==t.offsetParent)return t.scrollWidth;const e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,o){2&i&&et("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();const EA="mdc-line-ripple--active",Ef="mdc-line-ripple--deactivating";let OA=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=o=>{const r=this._elementRef.nativeElement.classList,a=r.contains(Ef);"opacity"===o.propertyName&&a&&r.remove(EA,Ef)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(Ef),e.add(EA)}deactivate(){this._elementRef.nativeElement.classList.add(Ef)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We))};static#t=this.\u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),AA=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){this._notch.nativeElement.style.width=this.open&&e?`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,o){if(1&i&&vt(lZ,5),2&i){let r;Oe(r=Ae())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,o){2&i&&et("mdc-notched-outline--notched",o.open)},inputs:{open:[pe.None,"matFormFieldNotchedOutlineOpen","open"]},attrs:dZ,ngContentSelectors:uZ,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(i,o){1&i&&(zt(),D(0,"div",0),d(1,"div",1,2),Ze(3),l(),D(4,"div",3))},encapsulation:2,changeDetection:0})}return t})();const BZ={transitionMessages:Po("transitionMessages",[un("enter",Wt({opacity:1,transform:"translateY(0%)"})),Ki("void => enter",[Wt({opacity:0,transform:"translateY(-5px)"}),qi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Of=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t})}return t})();const eh=new oe("MatFormField"),VZ=new oe("MAT_FORM_FIELD_DEFAULT_OPTIONS");let PA=0,Ri=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=$e(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,o,r,a,s,c,u){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=r,this._platform=a,this._defaults=s,this._animationMode=c,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+PA++,this._hintLabelId="mat-mdc-hint-"+PA++,this._subscriptAnimationState="",this._destroyed=new qe,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=!!s?.hideRequiredMarker,s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ot(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Ei(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ot(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(ot(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_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 i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,o=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,r=i?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${r+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(We),_(mn),_(ai),_(VZ,8),_(di,8),_(dt))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,Pi,5),gt(r,Pi,7),gt(r,Of,5),gt(r,FZ,5),gt(r,TA,5),gt(r,kA,5),gt(r,Nl,5)),2&i){let a;Oe(a=Ae())&&(o._labelChildNonStatic=a.first),Oe(a=Ae())&&(o._labelChildStatic=a.first),Oe(a=Ae())&&(o._formFieldControl=a.first),Oe(a=Ae())&&(o._prefixChildren=a),Oe(a=Ae())&&(o._suffixChildren=a),Oe(a=Ae())&&(o._errorChildren=a),Oe(a=Ae())&&(o._hintChildren=a)}},viewQuery:function(i,o){if(1&i&&(vt(hZ,5),vt(mZ,5),vt(pZ,5),vt(IA,5),vt(AA,5),vt(OA,5)),2&i){let r;Oe(r=Ae())&&(o._textField=r.first),Oe(r=Ae())&&(o._iconPrefixContainer=r.first),Oe(r=Ae())&&(o._textPrefixContainer=r.first),Oe(r=Ae())&&(o._floatingLabel=r.first),Oe(r=Ae())&&(o._notchedOutline=r.first),Oe(r=Ae())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,o){2&i&&et("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===o._animationMode)("mat-form-field-appearance-fill","fill"==o.appearance)("mat-form-field-appearance-outline","outline"==o.appearance)("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary","accent"!==o.color&&"warn"!==o.color)("mat-accent","accent"===o.color)("mat-warn","warn"===o.color)("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ye([{provide:eh,useExisting:t},{provide:MA,useExisting:t}])],ngContentSelectors:PZ,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(i,o){1&i&&(zt(AZ),y(0,_Z,1,1,"ng-template",null,0,_r),d(2,"div",1,2),N("click",function(a){return o._control.onContainerClick(a)}),y(4,bZ,1,0,"div",3),d(5,"div",4),y(6,wZ,2,2,"div",5)(7,xZ,3,0,"div",6)(8,CZ,3,0,"div",7),d(9,"div",8),y(10,SZ,1,1,"ng-template",9),Ze(11),l(),y(12,kZ,2,0,"div",10)(13,TZ,2,0,"div",11),l(),y(14,MZ,1,0,"div",12),l(),d(15,"div",13),y(16,IZ,2,1,"div",14)(17,OZ,5,2,"div",15),l()),2&i&&(m(2),et("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),m(2),f("ngIf",!o._hasOutline()&&!o._control.disabled),m(2),f("ngIf",o._hasOutline()),m(),f("ngIf",o._hasIconPrefix),m(),f("ngIf",o._hasTextPrefix),m(2),f("ngIf",!o._hasOutline()||o._forceDisplayInfixLabel()),m(2),f("ngIf",o._hasTextSuffix),m(),f("ngIf",o._hasIconSuffix),m(),f("ngIf",!o._hasOutline()),m(),et("mat-mdc-form-field-subscript-dynamic-size","dynamic"===o.subscriptSizing),f("ngSwitch",o._getDisplayedMessages()),m(),f("ngSwitchCase","error"),m(),f("ngSwitchCase","hint"))},dependencies:[Tt,Sp,wl,Dp,Nl,IA,AA,OA],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-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;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[BZ.transitionMessages]},changeDetection:0})}return t})(),th=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,Bn,Kp,St]})}return t})();const HZ=["addListener","removeListener"],UZ=["addEventListener","removeEventListener"],$Z=["on","off"];function Xo(t,n,e,i){if(J(e)&&(i=e,e=void 0),i)return Xo(t,n,e).pipe(d0(i));const[o,r]=function qZ(t){return J(t.addEventListener)&&J(t.removeEventListener)}(t)?UZ.map(a=>s=>t[a](n,s,e)):function GZ(t){return J(t.addListener)&&J(t.removeListener)}(t)?HZ.map(FA(t,n)):function WZ(t){return J(t.on)&&J(t.off)}(t)?$Z.map(FA(t,n)):[];if(!o&&n0(t))return In(a=>Xo(a,n,e))(Zn(t));if(!o)throw new TypeError("Invalid event target");return new ci(a=>{const s=(...c)=>a.next(1r(s)})}function FA(t,n){return e=>i=>t[e](n,i)}function Af(t=0,n,e=hG){let i=-1;return null!=n&&(N2(n)?e=n:i=n),new ci(o=>{let r=function ZZ(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function ow(t,n=Au){return function KZ(t){return ji((n,e)=>{let i=!1,o=null,r=null,a=!1;const s=()=>{if(r?.unsubscribe(),r=null,i){i=!1;const u=o;o=null,e.next(u)}a&&e.complete()},c=()=>{r=null,a&&e.complete()};n.subscribe(Fi(e,u=>{i=!0,o=u,r||Zn(t(u)).subscribe(r=Fi(e,s,c))},()=>{a=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>Af(t,n))}const LA=Ja({passive:!0});let YZ=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Fo;const i=ga(e),o=this._monitoredElements.get(i);if(o)return o.subject;const r=new qe,a="cdk-text-field-autofilled",s=c=>{"cdk-text-field-autofill-start"!==c.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",s,LA),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",s,LA)}}),r}stopMonitoring(e){const i=ga(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai),X(We))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),BA=(()=>{class t{get minRows(){return this._minRows}set minRows(e){this._minRows=vi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=vi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=$e(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(e,i,o,r){this._elementRef=e,this._platform=i,this._ngZone=o,this._destroyed=new qe,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=a=>{this._hasFocus="focus"===a.type},this._document=r,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Xo(this._getWindow(),"resize").pipe(ow(16),ot(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,i=e.style.marginBottom||"",o=this._platform.FIREFOX,r=o&&this._hasFocus,a=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";r&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);const s=e.scrollHeight-4;return e.classList.remove(a),r&&(e.style.marginBottom=i),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const i=this._elementRef.nativeElement,o=i.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const r=this._measureScrollHeight(),a=Math.max(r,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:i,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(We),_(dt,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,o){1&i&&N("input",function(){return o._noopInputHandler()})},inputs:{minRows:[pe.None,"cdkAutosizeMinRows","minRows"],maxRows:[pe.None,"cdkAutosizeMaxRows","maxRows"],enabled:[pe.None,"cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),QZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const XZ=new oe("MAT_INPUT_VALUE_ACCESSOR"),JZ=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let eY=0;const tY=v0(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new qe}});let rn=(()=>{class t extends tY{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(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(ce.required)??!1}set required(e){this._required=$e(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&P2().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=$e(e)}constructor(e,i,o,r,a,s,c,u,p,g){super(s,r,a,o),this._elementRef=e,this._platform=i,this._autofillMonitor=u,this._formField=g,this._uid="mat-input-"+eY++,this.focused=!1,this.stateChanges=new qe,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(T=>P2().has(T)),this._iOSKeyupListener=T=>{const I=T.target;!I.value&&0===I.selectionStart&&0===I.selectionEnd&&(I.setSelectionRange(1,1),I.setSelectionRange(0,0))};const b=this._elementRef.nativeElement,x=b.nodeName.toLowerCase();this._inputValueAccessor=c||b,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&p.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===x,this._isTextarea="textarea"===x,this._isInFormField=!!g,this._isNativeSelect&&(this.controlType=b.multiple?"mat-native-select-multiple":"mat-native-select")}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(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){JZ.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.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)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ai),_(xr,10),_(hs,8),_(Ai,8),_(tf),_(XZ,10),_(YZ),_(We),_(eh,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(i,o){1&i&&N("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),2&i&&(oo("id",o.id)("disabled",o.disabled)("required",o.required),Je("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),et("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[pe.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Ye([{provide:Of,useExisting:t}]),ge,fi]})}return t})(),VA=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,th,th,QZ,St]})}return t})();const ih={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=ih;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=n(r=>{e=void 0,t(r)});return new de(()=>e?.(o))},requestAnimationFrame(...t){const{delegate:n}=ih;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=ih;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};new class nY extends c0{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class iY extends a0{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=ih.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(ih.cancelAnimationFrame(e),n._scheduled=void 0)}});let rw,rY=1;const Pf={};function jA(t){return t in Pf&&(delete Pf[t],!0)}const aY={setImmediate(t){const n=rY++;return Pf[n]=!0,rw||(rw=Promise.resolve()),rw.then(()=>jA(n)&&t()),n},clearImmediate(t){jA(t)}},{setImmediate:sY,clearImmediate:cY}=aY,Rf={setImmediate(...t){const{delegate:n}=Rf;return(n?.setImmediate||sY)(...t)},clearImmediate(t){const{delegate:n}=Rf;return(n?.clearImmediate||cY)(t)},delegate:void 0},aw=new class dY extends c0{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class lY extends a0{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Rf.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(Rf.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});let nh=(()=>{class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new qe,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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ci(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(ow(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ke()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Mt(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=ga(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Xo(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(i){return new(i||t)(X(We),X(ai),X(dt,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oh=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new qe,this._elementScrolled=new ci(a=>this.ngZone.runOutsideAngular(()=>Xo(this.elementRef.nativeElement,"scroll").pipe(ot(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 i=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=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=Mu()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Mu()?e.left=e.right:1==Mu()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;R2()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",r=this.elementRef.nativeElement;if("top"==e)return r.scrollTop;if("bottom"==e)return r.scrollHeight-r.clientHeight-r.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?o:i:"end"==e&&(e=a?i:o),a&&2==Mu()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&1==Mu()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(nh),_(We),_(mn,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return t})(),va=(()=>{class t{constructor(e,i,o){this._platform=e,this._change=new qe,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(ow(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(i){return new(i||t)(X(ai),X(We),X(dt,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ms=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})(),sw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Fu,ms,Fu,ms]})}return t})();class cw{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Fl extends cw{constructor(n,e,i,o,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o,this.projectableNodes=r}}class ya extends cw{constructor(n,e,i,o){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class pY extends cw{constructor(n){super(),this.element=n instanceof Be?n.nativeElement:n}}class Nf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Fl?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof ya?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof pY?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class fY extends Nf{constructor(n,e,i,o,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=a=>{const s=a.element,c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>o.destroy())):(o=i.create(n.injector||this._defaultInjector||Bi.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=n,o}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let gY=(()=>{class t extends ya{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(bi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ge]})}return t})(),wa=(()=>{class t extends Nf{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Re,this.attachDomPortal=r=>{const a=r.element,s=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},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 i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==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 i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rs),_(bi),_(dt))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[pe.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ge]})}return t})(),ac=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const zA=R2();class _Y{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=hn(-this._previousScrollPosition.left),n.style.top=hn(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),zA&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),zA&&(i.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class bY{constructor(n,e,i,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(Mt(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class HA{enable(){}disable(){}attach(){}}function lw(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function UA(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class vY{constructor(n,e,i,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();lw(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let yY=(()=>{class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new HA,this.close=a=>new bY(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new _Y(this._viewportRuler,this._document),this.reposition=a=>new vY(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}static#e=this.\u0275fac=function(i){return new(i||t)(X(nh),X(va),X(We),X(dt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class Ll{constructor(n){if(this.scrollStrategy=new HA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class wY{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let $A=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(i){return new(i||t)(X(dt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xY=(()=>{class t extends $A{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){const s=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(o)):s.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(i){return new(i||t)(X(dt),X(We,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),CY=(()=>{class t extends $A{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=ma(r)},this._clickListener=r=>{const a=ma(r),s="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let u=c.length-1;u>-1;u--){const p=c[u];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(p.overlayElement.contains(a)||p.overlayElement.contains(s))break;const g=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>g.next(r)):g.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(i){return new(i||t)(X(dt),X(ai),X(We,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ff=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Yy()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(g),this._backdropTransitionendHandler=g=>{this._disposeBackdrop(g.target)},this._keydownEvents=new qe,this._outsidePointerEvents=new qe,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(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Nt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=hn(this._config.width),n.height=hn(this._config.height),n.minWidth=hn(this._config.minWidth),n.minHeight=hn(this._config.minHeight),n.maxWidth=hn(this._config.maxWidth),n.maxHeight=hn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const o=qp(e||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(ot(Ei(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const GA="cdk-overlay-connected-position-bounding-box",DY=/([A-Za-z%]+)$/;class SY{get positions(){return this._preferredPositions}constructor(n,e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r,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 qe,this._resizeSubscription=de.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(GA),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let a;for(let s of this._preferredPositions){let c=this._getOriginPoint(n,o,s),u=this._getOverlayPoint(c,e,s),p=this._getOverlayFit(u,e,i,s);if(p.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(p,u,i)?r.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!a||a.overlayFit.visibleAreac&&(c=p,s=u)}return this._isPushed=!1,void this._applyPosition(s.position,s.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&&sc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(GA),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let o,r;if("center"==i.originX)o=n.left+n.width/2;else{const a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;o="start"==i.originX?a:s}return e.left<0&&(o-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,i,o){const r=qA(e);let{x:a,y:s}=n,c=this._getOffset(o,"x"),u=this._getOffset(o,"y");c&&(a+=c),u&&(s+=u);let b=0-s,x=s+r.height-i.height,T=this._subtractOverflows(r.width,0-a,a+r.width-i.width),I=this._subtractOverflows(r.height,b,x),z=T*I;return{visibleArea:z,isCompletelyWithinViewport:r.width*r.height===z,fitsInViewportVertically:I===r.height,fitsInViewportHorizontally:T==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,a=WA(this._overlayRef.getConfig().minHeight),s=WA(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=a&&a<=o)&&(n.fitsInViewportHorizontally||null!=s&&s<=r)}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=qA(e),r=this._viewportRect,a=Math.max(n.x+o.width-r.width,0),s=Math.max(n.y+o.height-r.height,0),c=Math.max(r.top-i.top-n.y,0),u=Math.max(r.left-i.left-n.x,0);let p=0,g=0;return p=o.width<=r.width?u||-a:n.xT&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-T/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)b=i.width-n.x+this._viewportMargin,p=n.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)g=n.x,p=i.right-n.x;else{const x=Math.min(i.right-n.x+i.left,n.x),T=this._lastBoundingBoxSize.width;p=2*x,g=n.x-x,p>T&&!this._isInitialRender&&!this._growAfterOpen&&(g=n.x-T/2)}return{top:a,left:g,bottom:s,right:b,width:p,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=hn(i.height),o.top=hn(i.top),o.bottom=hn(i.bottom),o.width=hn(i.width),o.left=hn(i.left),o.right=hn(i.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",r&&(o.maxHeight=hn(r)),a&&(o.maxWidth=hn(a))}this._lastBoundingBoxSize=i,sc(this._boundingBox.style,o)}_resetBoundingBoxStyles(){sc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){sc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){const p=this._viewportRuler.getViewportScrollPosition();sc(i,this._getExactOverlayY(e,n,p)),sc(i,this._getExactOverlayX(e,n,p))}else i.position="static";let s="",c=this._getOffset(e,"x"),u=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),u&&(s+=`translateY(${u}px)`),i.transform=s.trim(),a.maxHeight&&(o?i.maxHeight=hn(a.maxHeight):r&&(i.maxHeight="")),a.maxWidth&&(o?i.maxWidth=hn(a.maxWidth):r&&(i.maxWidth="")),sc(this._pane.style,i)}_getExactOverlayY(n,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=hn(r.y),o}_getExactOverlayX(n,e,i){let a,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),a=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===a?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=hn(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:UA(n,i),isOriginOutsideView:lw(n,i),isOverlayClipped:UA(e,i),isOverlayOutsideView:lw(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&qp(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Be)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function sc(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function WA(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(DY);return e&&"px"!==e?null:parseFloat(n)}return t||null}function qA(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 KA="cdk-global-overlay-wrapper";class kY{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(KA),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=i,c=!("100%"!==o&&"100vw"!==o||a&&"100%"!==a&&"100vw"!==a),u=!("100%"!==r&&"100vh"!==r||s&&"100%"!==s&&"100vh"!==s),p=this._xPosition,g=this._xOffset,b="rtl"===this._overlayRef.getConfig().direction;let x="",T="",I="";c?I="flex-start":"center"===p?(I="center",b?T=g:x=g):b?"left"===p||"end"===p?(I="flex-end",x=g):("right"===p||"start"===p)&&(I="flex-start",T=g):"left"===p||"start"===p?(I="flex-start",x=g):("right"===p||"end"===p)&&(I="flex-end",T=g),n.position=this._cssPosition,n.marginLeft=c?"0":x,n.marginTop=u?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":T,e.justifyContent=I,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(KA),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let TY=(()=>{class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new kY}flexibleConnectedTo(e){return new SY(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||t)(X(va),X(dt),X(ai),X(Ff))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),MY=0,Yn=(()=>{class t{constructor(e,i,o,r,a,s,c,u,p,g,b,x){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=s,this._ngZone=c,this._document=u,this._directionality=p,this._location=g,this._outsideClickDispatcher=b,this._animationsModuleType=x}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),a=new Ll(e);return a.direction=a.direction||this._directionality.value,new rh(r,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+MY++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Za)),new fY(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(X(yY),X(Ff),X(Rs),X(TY),X(xY),X(Bi),X(We),X(dt),X(mn),X(Ws),X(CY),X(di,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const IY=[{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"}],ZA=new oe("cdk-connected-overlay-scroll-strategy");let dw=(()=>{class t{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return t})(),YA=(()=>{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=$e(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=$e(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=$e(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=$e(e)}get push(){return this._push}set push(e){this._push=$e(e)}constructor(e,i,o,r,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=de.EMPTY,this._attachSubscription=de.EMPTY,this._detachSubscription=de.EMPTY,this._positionSubscription=de.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Re,this.positionChange=new Re,this.attach=new Re,this.detach=new Re,this.overlayKeydown=new Re,this.overlayOutsideClick=new Re,this._templatePortal=new ya(i,o),this._scrollStrategyFactory=r,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=IY);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(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Mn(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Ll({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=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(i).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 dw?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 mY(t,n=!1){return ji((e,i)=>{let o=0;e.subscribe(Fi(i,r=>{const a=t(r,o++);(a||n)&&i.next(r),!a&&i.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(i){return new(i||t)(_(Yn),_(gi),_(bi),_(ZA),_(mn,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[pe.None,"cdkConnectedOverlayOrigin","origin"],positions:[pe.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[pe.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[pe.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[pe.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[pe.None,"cdkConnectedOverlayWidth","width"],height:[pe.None,"cdkConnectedOverlayHeight","height"],minWidth:[pe.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[pe.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[pe.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[pe.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[pe.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[pe.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[pe.None,"cdkConnectedOverlayOpen","open"],disableClose:[pe.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[pe.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[pe.None,"cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:[pe.None,"cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:[pe.None,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:[pe.None,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:[pe.None,"cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[fi]})}return t})();const OY={provide:ZA,deps:[Yn],useFactory:function EY(t){return()=>t.scrollStrategies.reposition()}};let cc=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[Yn,OY],imports:[Fu,ac,sw,sw]})}return t})();function Bl(t){return new ci(n=>{Zn(t()).subscribe(n)})}const AY=["trigger"],PY=["panel"];function RY(t,n){if(1&t&&(d(0,"span",10),h(1),l()),2&t){const e=w();m(),Ne(e.placeholder)}}function NY(t,n){if(1&t&&(d(0,"span",14),h(1),l()),2&t){const e=w(2);m(),Ne(e.triggerValue)}}function FY(t,n){1&t&&Ze(0,0,["*ngSwitchCase","true"])}function LY(t,n){1&t&&(d(0,"span",11),y(1,NY,2,1,"span",12)(2,FY,1,0,"ng-content",13),l()),2&t&&(f("ngSwitch",!!w().customTrigger),m(2),f("ngSwitchCase",!0))}function BY(t,n){if(1&t){const e=_e();Xt(),mr(),d(0,"div",15,16),N("@transformPanel.done",function(o){return ae(e),se(w()._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){return ae(e),se(w()._handleKeydown(o))}),Ze(2,1),l()}if(2&t){const e=w();kk("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),f("ngClass",e.panelClass)("@transformPanel","showing"),Je("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const VY=[[["mat-select-trigger"]],"*"],jY=["mat-select-trigger","*"],zY={transformPanelWrap:Po("transformPanelWrap",[Ki("* => void",wy("@transformPanel",[yy()],{optional:!0}))]),transformPanel:Po("transformPanel",[un("void",Wt({opacity:0,transform:"scale(1, 0.8)"})),Ki("void => showing",qi("120ms cubic-bezier(0, 0, 0.2, 1)",Wt({opacity:1,transform:"scale(1, 1)"}))),Ki("* => void",qi("100ms linear",Wt({opacity:0})))])};let QA=0;const XA=new oe("mat-select-scroll-strategy"),UY=new oe("MAT_SELECT_CONFIG"),$Y={provide:XA,deps:[Yn],useFactory:function HY(t){return()=>t.scrollStrategies.reposition()}},GY=new oe("MatSelectTrigger");class WY{constructor(n,e){this.source=n,this.value=e}}const qY=ns(os(Br(v0(class{constructor(t,n,e,i,o){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new qe}}))));let KY=(()=>{class t extends qY{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(ce.required)??!1}set required(e){this._required=$e(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=$e(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=$e(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=vi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,o,r,a,s,c,u,p,g,b,x,T,I){super(a,r,c,u,g),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=s,this._parentFormField=p,this._liveAnnouncer=T,this._defaultOptions=I,this._panelOpen=!1,this._compareWith=(z,ie)=>z===ie,this._uid="mat-select-"+QA++,this._triggerAriaLabelledBy=null,this._destroy=new qe,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+QA++,this._panelDoneAnimatingStream=new qe,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=Bl(()=>{const z=this.options;return z?z.changes.pipe(on(z),pn(()=>Ei(...z.map(ie=>ie.onSelectionChange)))):this._ngZone.onStable.pipe(Nt(1),pn(()=>this.optionSelectionChanges))}),this.openedChange=new Re,this._openedStream=this.openedChange.pipe(Mt(z=>z),nt(()=>{})),this._closedStream=this.openedChange.pipe(Mt(z=>!z),nt(()=>{})),this.selectionChange=new Re,this.valueChange=new Re,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=I?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=I.typeaheadDebounceInterval),this._scrollStrategyFactory=x,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(b)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Gu(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Pu(),ot(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(ot(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(on(null),ot(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;const i=`${this.id}-panel`;this._trackedModal&&kl(this._trackedModal,"aria-owns",i),Zp(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(kl(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}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(i=>i.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 i=e.keyCode,o=40===i||38===i||37===i||39===i,r=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&r&&!Mn(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;a.onKeydown(e);const c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,o=e.keyCode,r=40===o||38===o,a=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(a||13!==o&&32!==o||!i.activeItem||Mn(e))if(!a&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.deselect())})}else{const s=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Nt(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.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=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 i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_skipPredicate(e){return e.disabled}_initKeyManager(){this._keyManager=new uE(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.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=Ei(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ot(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ei(...this.options.map(i=>i._stateChanges)).pipe(ot(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&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((i,o)=>this.sortComparator?this.sortComparator(i,o,e):e.indexOf(i)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0}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 i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_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}static#e=this.\u0275fac=function(i){return new(i||t)(_(va),_(Ft),_(We),_(tf),_(Be),_(mn,8),_(hs,8),_(Ai,8),_(eh,8),_(xr,10),io("tabindex"),_(XA),_(g0),_(UY,8))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&(vt(AY,5),vt(PY,5),vt(YA,5)),2&i){let r;Oe(r=Ae())&&(o.trigger=r.first),Oe(r=Ae())&&(o.panel=r.first),Oe(r=Ae())&&(o._overlayDir=r.first)}},inputs:{userAriaDescribedBy:[pe.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ge,fi]})}return t})(),uo=(()=>{class t extends KY{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=e=>!this.panelOpen&&e.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(ot(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const o=this.panel.nativeElement,r=IE(e,this.options,this.optionGroups),a=i._getHostElement();o.scrollTop=0===e&&1===r?0:EE(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new WY(this,e)}_getOverlayWidth(e){return"auto"===this.panelWidth?(e instanceof dw?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=$e(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-select"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,GY,5),gt(r,En,5),gt(r,rf,5)),2&i){let a;Oe(a=Ae())&&(o.customTrigger=a.first),Oe(a=Ae())&&(o.options=a),Oe(a=Ae())&&(o.optionGroups=a)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,o){1&i&&N("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&i&&(Je("id",o.id)("tabindex",o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),et("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[Ye([{provide:Of,useExisting:t},{provide:nf,useExisting:t}]),ge],ngContentSelectors:jY,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(i,o){if(1&i&&(zt(VY),d(0,"div",0,1),N("click",function(){return o.toggle()}),d(3,"div",2),y(4,RY,2,1,"span",3)(5,LY,3,2,"span",4),l(),d(6,"div",5)(7,"div",6),Xt(),d(8,"svg",7),D(9,"path",8),l()()()(),y(10,BY,3,9,"ng-template",9),N("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&i){const r=Rt(1);m(3),f("ngSwitch",o.empty),Je("id",o._valueId),m(),f("ngSwitchCase",!0),m(),f("ngSwitchCase",!1),m(5),f("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[vr,wl,Dp,bI,YA,dw],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[zY.transformPanel]},changeDetection:0})}return t})(),uw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[$Y],imports:[Bn,cc,af,St,ms,th,af,St]})}return t})();function Lf(t){return nt(()=>t)}function JA(t,n){return n?e=>Ru(n.pipe(Nt(1),function ZY(){return ji((t,n)=>{t.subscribe(Fi(n,ii))})}()),e.pipe(JA(t))):In((e,i)=>Zn(t(e,i)).pipe(Nt(1),Lf(e)))}function hw(t,n=Au){const e=Af(t,n);return JA(()=>e)}const YY=["mat-menu-item",""];function QY(t,n){1&t&&(Xt(),d(0,"svg",3),D(1,"polygon",4),l())}const XY=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],JY=["mat-icon, [matMenuItemIcon]","*"];function eQ(t,n){if(1&t){const e=_e();d(0,"div",0),N("keydown",function(o){return ae(e),se(w()._handleKeydown(o))})("click",function(){return ae(e),se(w().closed.emit("click"))})("@transformMenu.start",function(o){return ae(e),se(w()._onAnimationStart(o))})("@transformMenu.done",function(o){return ae(e),se(w()._onAnimationDone(o))}),d(1,"div",1),Ze(2),l()()}if(2&t){const e=w();f("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Je("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const tQ=["*"],mw=new oe("MAT_MENU_PANEL"),iQ=ns(Br(class{}));let xa=(()=>{class t extends iQ{constructor(e,i,o,r,a){super(),this._elementRef=e,this._document=i,this._focusMonitor=o,this._parentMenu=r,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new qe,this._focused=new qe,this._highlighted=!1,this._triggersSubmenu=!1,r?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",qi("120ms cubic-bezier(0, 0, 0.2, 1)",Wt({opacity:1,transform:"scale(1)"}))),Ki("* => void",qi("100ms 25ms linear",Wt({opacity:0})))]),fadeInItems:Po("fadeInItems",[un("showing",Wt({opacity:1})),Ki("void => *",[Wt({opacity:0}),qi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let oQ=0;const eP=new oe("mat-menu-default-options",{providedIn:"root",factory:function rQ(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let ah=(()=>{class t{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=$e(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=$e(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.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}constructor(e,i,o,r){this._elementRef=e,this._ngZone=i,this._changeDetectorRef=r,this._directDescendantItems=new na,this._classList={},this._panelAnimationState="void",this._animationDone=new qe,this.closed=new Re,this.close=this.closed,this.panelId="mat-menu-panel-"+oQ++,this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this._overlapTrigger=o.overlapTrigger,this._hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Xp(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(on(this._directDescendantItems),pn(e=>Ei(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const o=e.toArray(),r=Math.max(0,Math.min(o.length-1,i.activeItemIndex||0));o[r]&&!o[r].disabled?i.setActiveItem(r):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(on(this._directDescendantItems),pn(i=>Ei(...i.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,o=this._keyManager;switch(i){case 27:Mn(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===i||40===i)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(Nt(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,i=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===e,o["mat-menu-after"]="after"===e,o["mat-menu-above"]="above"===i,o["mat-menu-below"]="below"===i,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(on(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(eP),_(Ft))};static#t=this.\u0275dir=Q({type:t,contentQueries:function(i,o,r){if(1&i&&(gt(r,nQ,5),gt(r,xa,5),gt(r,xa,4)),2&i){let a;Oe(a=Ae())&&(o.lazyContent=a.first),Oe(a=Ae())&&(o._allItems=a),Oe(a=Ae())&&(o.items=a)}},viewQuery:function(i,o){if(1&i&&vt(gi,5),2&i){let r;Oe(r=Ae())&&(o.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[pe.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:[pe.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}})}return t})(),Vl=(()=>{class t extends ah{constructor(e,i,o,r){super(e,i,o,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(eP),_(Ft))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(i,o){2&i&&Je("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ye([{provide:mw,useExisting:t}]),ge],ngContentSelectors:tQ,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(i,o){1&i&&(zt(),y(0,eQ,3,6,"ng-template"))},dependencies:[vr],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{--mat-menu-container-shape:4px;min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Bf.transformMenu,Bf.fadeInItems]},changeDetection:0})}return t})();const tP=new oe("mat-menu-scroll-strategy"),sQ={provide:tP,deps:[Yn],useFactory:function aQ(t){return()=>t.scrollStrategies.reposition()}},iP=Ja({passive:!0});let cQ=(()=>{class t{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(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,o,r,a,s,c,u,p){this._overlay=e,this._element=i,this._viewContainerRef=o,this._menuItemInstance=s,this._dir=c,this._focusMonitor=u,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=de.EMPTY,this._hoverSubscription=de.EMPTY,this._menuCloseSubscription=de.EMPTY,this._changeDetectorRef=Ce(Ft),this._handleTouchStart=g=>{f0(g)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Re,this.onMenuOpen=this.menuOpened,this.menuClosed=new Re,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=a instanceof ah?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,iP)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,iP),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&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),o=i.getConfig(),r=o.positionStrategy;this._setPosition(e,r),o.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof ah&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ot(e.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof ah?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Mt(o=>"void"===o.toState),Nt(1),ot(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.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 i=0,o=e.parentMenu;for(;o;)i++,o=o.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Ll({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,i){e.setPositionClasses&&i.positionChanges.subscribe(o=>{const r="start"===o.connectionPair.overlayX?"after":"before",a="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(r,a)):e.setPositionClasses(r,a)})}_setPosition(e,i){let[o,r]="before"===e.xPosition?["end","start"]:["start","end"],[a,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,u]=[a,s],[p,g]=[o,r],b=0;if(this.triggersSubmenu()){if(g=o="before"===e.xPosition?"start":"end",r=p="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const x=this._parentMaterialMenu.items.first;this._parentInnerPadding=x?x._getHostElement().offsetTop:0}b="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===a?"bottom":"top",u="top"===s?"bottom":"top");i.withPositions([{originX:o,originY:c,overlayX:p,overlayY:a,offsetY:b},{originX:r,originY:c,overlayX:g,overlayY:a,offsetY:b},{originX:o,originY:u,overlayX:p,overlayY:s,offsetY:-b},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-b}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Ei(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ke(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Mt(a=>a!==this._menuItemInstance),Mt(()=>this._menuOpen)):Ke(),i)}_handleMousedown(e){p0(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"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(Mt(e=>e===this._menuItemInstance&&!e.disabled),hw(0,aw)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ah&&this.menu._isAnimating?this.menu._animationDone.pipe(Nt(1),hw(0,aw),ot(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ya(e.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(i){return new(i||t)(_(Yn),_(Be),_(bi),_(tP),_(mw,8),_(xa,10),_(mn,8),_(Lo),_(We))};static#t=this.\u0275dir=Q({type:t,hostVars:3,hostBindings:function(i,o){1&i&&N("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),2&i&&Je("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[pe.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[pe.None,"matMenuTriggerFor","menu"],menuData:[pe.None,"matMenuTriggerData","menuData"],restoreFocus:[pe.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}})}return t})(),jl=(()=>{class t extends cQ{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[ge]})}return t})(),nP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[sQ],imports:[Bn,as,St,cc,ms,St]})}return t})();const lQ=[[["caption"]],[["colgroup"],["col"]]],dQ=["caption","colgroup, col"];function pw(t){return class extends t{get sticky(){return this._sticky}set sticky(n){const e=this._sticky;this._sticky=$e(n),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const n=this._hasStickyChanged;return this._hasStickyChanged=!1,n}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...n){super(...n),this._sticky=!1,this._hasStickyChanged=!1}}}const zl=new oe("CDK_TABLE");let Hl=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),Ul=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),Vf=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})();class pQ{}const fQ=pw(pQ);let Ca=(()=>{class t extends fQ{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=$e(e),this._hasStickyChanged=i!==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(i){return new(i||t)(_(zl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,o,r){if(1&i&&(gt(r,Hl,5),gt(r,Ul,5),gt(r,Vf,5)),2&i){let a;Oe(a=Ae())&&(o.cell=a.first),Oe(a=Ae())&&(o.headerCell=a.first),Oe(a=Ae())&&(o.footerCell=a.first)}},inputs:{sticky:"sticky",name:[pe.None,"cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Ye([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ge]})}return t})();class fw{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let gw=(()=>{class t extends fw{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ca),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ge]})}return t})(),_w=(()=>{class t extends fw{constructor(e,i){if(super(e,i),1===e._table?._elementRef.nativeElement.nodeType){const o=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ca),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ge]})}return t})();class rP{constructor(){this.tasks=[],this.endTasks=[]}}const bw=new oe("_COALESCED_STYLE_SCHEDULER");let aP=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new qe}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 rP,this._getScheduleObservable().pipe(ot(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new rP;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Zi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Nt(1))}static#e=this.\u0275fac=function(i){return new(i||t)(X(We))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),vw=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof sh?e.headerCell.template:this instanceof ch?e.footerCell.template:e.cell.template}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(pr))};static#t=this.\u0275dir=Q({type:t,features:[fi]})}return t})();class gQ extends vw{}const _Q=pw(gQ);let sh=(()=>{class t extends _Q{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(pr),_(zl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[pe.None,"cdkHeaderRowDef","columns"],sticky:[pe.None,"cdkHeaderRowDefSticky","sticky"]},features:[ge,fi]})}return t})();class bQ extends vw{}const vQ=pw(bQ);let ch=(()=>{class t extends vQ{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(pr),_(zl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[pe.None,"cdkFooterRowDef","columns"],sticky:[pe.None,"cdkFooterRowDefSticky","sticky"]},features:[ge,fi]})}return t})(),jf=(()=>{class t extends vw{constructor(e,i,o){super(e,i),this._table=o}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(pr),_(zl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[pe.None,"cdkRowDefColumns","columns"],when:[pe.None,"cdkRowDefWhen","when"]},features:[ge]})}return t})(),Da=(()=>{class t{static#e=this.mostRecentCellOutlet=null;constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(i){return new(i||t)(_(bi))};static#i=this.\u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),yw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({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(i,o){1&i&&no(0,0)},dependencies:[Da],encapsulation:2})}return t})(),xw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&no(0,0)},dependencies:[Da],encapsulation:2})}return t})(),zf=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})();const sP=["top","bottom","left","right"];class yQ{constructor(n,e,i,o,r=!0,a=!0,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=r,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const o of n)if(o.nodeType===o.ELEMENT_NODE){i.push(o);for(let r=0;r{for(const o of i)this._removeStickyStyle(o,e)})}updateStickyColumns(n,e,i,o=!0){if(!n.length||!this._isBrowser||!e.some(b=>b)&&!i.some(b=>b))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=n[0],a=r.children.length,s=this._getCellWidths(r,o),c=this._getStickyStartColumnPositions(s,e),u=this._getStickyEndColumnPositions(s,i),p=e.lastIndexOf(!0),g=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const b="rtl"===this.direction,x=b?"right":"left",T=b?"left":"right";for(const I of n)for(let z=0;ze[z]?I:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===g?[]:s.slice(g).map((I,z)=>i[z+g]?I:null).reverse()}))})}stickRows(n,e,i){if(!this._isBrowser)return;const o="bottom"===i?n.slice().reverse():n,r="bottom"===i?e.slice().reverse():e,a=[],s=[],c=[];for(let p=0,g=0;p{for(let p=0;p{e.some(o=>!o)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(n,e){for(const o of e)n.style[o]="",n.classList.remove(this._borderCellCss[o]);sP.some(o=>-1===e.indexOf(o)&&n.style[o])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,o){n.classList.add(this._stickCellCss),o&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const o of sP)n.style[o]&&(i+=e[o]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],o=n.children;for(let r=0;r0;r--)e[r]&&(i[r]=o,o+=n[r]);return i}}const Cw=new oe("CDK_SPL");let Hf=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),Uf=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),$f=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),Gf=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),Wf=(()=>{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=$e(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=$e(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,i,o,r,a,s,c,u,p,g,b,x){this._differs=e,this._changeDetectorRef=i,this._elementRef=o,this._dir=a,this._platform=c,this._viewRepeater=u,this._coalescedStyleScheduler=p,this._viewportRuler=g,this._stickyPositioningListener=b,this._ngZone=x,this._onDestroy=new qe,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 Re,this.viewChange=new ft({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(ot(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}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(),vf(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(o,r,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=>{i.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&We.isInAngularZone()?this._ngZone.onStable.pipe(Nt(1),ot(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 r=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,r,"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 r=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{const a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{const s=o&&o.has(a)?o.get(a):[];if(s.length){const c=s.shift();return c.dataIndex=i,c}return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),qf(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=qf(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=qf(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=qf(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,s)=>a||!!s.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();const r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),i||o||r}_switchDataSource(e){this._data=[],vf(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;vf(this.dataSource)?e=this.dataSource.connect(this):Ol(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ke(this.dataSource)),this._renderChangeSubscription=e.pipe(ot(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const o=Array.from(i.columns||[]).map(s=>this._columnDefsByName.get(s)),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let o=0;o!r.when||r.when(i,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;r&&o.push(r)}return o}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,o,r={}){const a=e.viewContainer.createEmbeddedView(i.template,r,o);return this._renderCellTemplateForItem(i,r),a}_renderCellTemplateForItem(e,i){for(let o of this._getCellTemplates(e))Da.mostRecentCellOutlet&&Da.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,o=e.length;i{const o=this._columnDefsByName.get(i);return e.extractCellTemplate(o)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const o of i){const r=this._document.createElement(o.tag);r.setAttribute("role","rowgroup");for(const a of o.outlets)r.appendChild(a.elementRef.nativeElement);e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,o)=>i||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 yQ(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Ke()).pipe(ot(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const o=this._noDataRowOutlet.viewContainer;if(i){const r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];1===r.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(_(pr),_(Ft),_(Be),io("role"),_(mn,8),_(dt),_(ai),_(Wu),_(bw),_(va),_(Cw,12),_(We,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,o,r){if(1&i&&(gt(r,zf,5),gt(r,Ca,5),gt(r,jf,5),gt(r,sh,5),gt(r,ch,5)),2&i){let a;Oe(a=Ae())&&(o._noDataRow=a.first),Oe(a=Ae())&&(o._contentColumnDefs=a),Oe(a=Ae())&&(o._contentRowDefs=a),Oe(a=Ae())&&(o._contentHeaderRowDefs=a),Oe(a=Ae())&&(o._contentFooterRowDefs=a)}},viewQuery:function(i,o){if(1&i&&(vt(Hf,7),vt(Uf,7),vt($f,7),vt(Gf,7)),2&i){let r;Oe(r=Ae())&&(o._rowOutlet=r.first),Oe(r=Ae())&&(o._headerRowOutlet=r.first),Oe(r=Ae())&&(o._footerRowOutlet=r.first),Oe(r=Ae())&&(o._noDataRowOutlet=r.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(i,o){2&i&&et("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ye([{provide:zl,useExisting:t},{provide:Wu,useClass:xO},{provide:bw,useClass:aP},{provide:Cw,useValue:null}])],ngContentSelectors:dQ,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){1&i&&(zt(lQ),Ze(0),Ze(1,1),no(2,0)(3,1)(4,2)(5,3))},dependencies:[Hf,Uf,$f,Gf],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function qf(t,n){return t.concat(Array.from(n))}let xQ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[sw]})}return t})();const CQ=[[["caption"]],[["colgroup"],["col"]]],DQ=["caption","colgroup, col"];let ps=(()=>{class t extends Wf{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,o){2&i&&et("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Ye([{provide:Wf,useExisting:t},{provide:zl,useExisting:t},{provide:bw,useClass:aP},{provide:Wu,useClass:xO},{provide:Cw,useValue:null}]),ge],ngContentSelectors:DQ,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){1&i&&(zt(CQ),Ze(0),Ze(1,1),no(2,0)(3,1)(4,2)(5,3))},dependencies:[Hf,Uf,$f,Gf],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{--mat-table-row-item-outline-width:1px;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return t})(),Sa=(()=>{class t extends Hl{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Ye([{provide:Hl,useExisting:t}]),ge]})}return t})(),ka=(()=>{class t extends Ul{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ye([{provide:Ul,useExisting:t}]),ge]})}return t})(),Ta=(()=>{class t extends Ca{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:[pe.None,"matColumnDef","name"]},features:[Ye([{provide:Ca,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ge]})}return t})(),Ma=(()=>{class t extends gw{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[ge]})}return t})(),Ia=(()=>{class t extends _w{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[ge]})}return t})(),fs=(()=>{class t extends sh{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[pe.None,"matHeaderRowDef","columns"],sticky:[pe.None,"matHeaderRowDefSticky","sticky"]},features:[Ye([{provide:sh,useExisting:t}]),ge]})}return t})(),gs=(()=>{class t extends jf{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[pe.None,"matRowDefColumns","columns"],when:[pe.None,"matRowDefWhen","when"]},features:[Ye([{provide:jf,useExisting:t}]),ge]})}return t})(),_s=(()=>{class t extends yw{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ye([{provide:yw,useExisting:t}]),ge],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&no(0,0)},dependencies:[Da],encapsulation:2})}return t})(),bs=(()=>{class t extends xw{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ye([{provide:xw,useExisting:t}]),ge],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&no(0,0)},dependencies:[Da],encapsulation:2})}return t})(),lP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,xQ,St]})}return t})();class PQ extends bf{get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}constructor(n=[]){super(),this._renderData=new ft([]),this._filter=new ft(""),this._internalPageChanges=new qe,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const o=e[i];if(J2(o)){const r=Number(o);return r<9007199254740991?r:o}return o},this.sortData=(e,i)=>{const o=i.active,r=i.direction;return o&&""!=r?e.sort((a,s)=>{let c=this.sortingDataAccessor(a,o),u=this.sortingDataAccessor(s,o);const p=typeof c,g=typeof u;p!==g&&("number"===p&&(c+=""),"number"===g&&(u+=""));let b=0;return null!=c&&null!=u?c>u?b=1:c{const o=Object.keys(e).reduce((a,s)=>a+e[s]+"\u25ec","").toLowerCase(),r=i.trim().toLowerCase();return-1!=o.indexOf(r)},this._data=new ft(n),this._updateChangeSubscription()}_updateChangeSubscription(){const n=this._sort?Ei(this._sort.sortChange,this._sort.initialized):Ke(null),e=this._paginator?Ei(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Ke(null),o=Qs([this._data,this._filter]).pipe(nt(([s])=>this._filterData(s))),r=Qs([o,n]).pipe(nt(([s])=>this._orderData(s))),a=Qs([r,e]).pipe(nt(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,i);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 dP extends PQ{}const uP=new oe("CdkAccordion");let RQ=0,NQ=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=$e(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=$e(e)}constructor(e,i,o){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=de.EMPTY,this.closed=new Re,this.opened=new Re,this.destroyed=new Re,this.expandedChange=new Re,this.id="cdk-accordion-child-"+RQ++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((r,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==r&&(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(i){return new(i||t)(_(uP,12),_(Ft),_(N0))};static#t=this.\u0275dir=Q({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ye([{provide:uP,useValue:void 0}])]})}return t})(),FQ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const LQ=["body"];function BQ(t,n){}const VQ=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],jQ=["mat-expansion-panel-header","*","mat-action-row"];function zQ(t,n){1&t&&D(0,"span",2),2&t&&f("@indicatorRotate",w()._getExpandedState())}const HQ=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],UQ=["mat-panel-title","mat-panel-description","*"],hP=new oe("MAT_ACCORDION"),mP="225ms cubic-bezier(0.4,0.0,0.2,1)",pP={indicatorRotate:Po("indicatorRotate",[un("collapsed, void",Wt({transform:"rotate(0deg)"})),un("expanded",Wt({transform:"rotate(180deg)"})),Ki("expanded <=> collapsed, void => collapsed",qi(mP))]),bodyExpansion:Po("bodyExpansion",[un("collapsed, void",Wt({height:"0px",visibility:"hidden"})),un("expanded",Wt({height:"*",visibility:""})),Ki("expanded <=> collapsed, void => collapsed",qi(mP))])},fP=new oe("MAT_EXPANSION_PANEL");let $Q=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(fP,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),GQ=0;const gP=new oe("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Dw=(()=>{class t extends NQ{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=$e(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,i,o,r,a,s,c){super(e,i,o),this._viewContainerRef=r,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new Re,this.afterCollapse=new Re,this._inputChanges=new qe,this._headerId="mat-expansion-panel-header-"+GQ++,this._bodyAnimationDone=new qe,this.accordion=e,this._document=a,this._bodyAnimationDone.pipe(Pu((u,p)=>u.fromState===p.fromState&&u.toState===p.toState)).subscribe(u=>{"void"!==u.fromState&&("expanded"===u.toState?this.afterExpand.emit():"collapsed"===u.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}_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(on(null),Mt(()=>this.expanded&&!this._portal),Nt(1)).subscribe(()=>{this._portal=new ya(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(hP,12),_(Ft),_(N0),_(bi),_(dt),_(di,8),_(gP,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,o,r){if(1&i&>(r,$Q,5),2&i){let a;Oe(a=Ae())&&(o._lazyContent=a.first)}},viewQuery:function(i,o){if(1&i&&vt(LQ,5),2&i){let r;Oe(r=Ae())&&(o._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(i,o){2&i&&et("mat-expanded",o.expanded)("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ye([{provide:hP,useValue:void 0},{provide:fP,useExisting:t}]),ge,fi],ngContentSelectors:jQ,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(i,o){1&i&&(zt(VQ),Ze(0),d(1,"div",0,1),N("@bodyExpansion.done",function(a){return o._bodyAnimationDone.next(a)}),d(3,"div",2),Ze(4,1),y(5,BQ,0,0,"ng-template",3),l(),Ze(6,2),l()),2&i&&(m(),f("@bodyExpansion",o._getExpandedState())("id",o.id),Je("aria-labelledby",o._headerId),m(4),f("cdkPortalOutlet",o._portal))},dependencies:[wa],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;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;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.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:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.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;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.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;border-top-color:var(--mat-expansion-actions-divider-color)}.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:[pP.bodyExpansion]},changeDetection:0})}return t})();class WQ{}const qQ=os(WQ);let _P=(()=>{class t extends qQ{constructor(e,i,o,r,a,s,c){super(),this.panel=e,this._element=i,this._focusMonitor=o,this._changeDetectorRef=r,this._animationMode=s,this._parentChangeSubscription=de.EMPTY;const u=e.accordion?e.accordion._stateChanges.pipe(Mt(p=>!(!p.hideToggle&&!p.togglePosition))):Fo;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Ei(e.opened,e.closed,u,e._inputChanges.pipe(Mt(p=>!!(p.hideToggle||p.disabled||p.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Mt(()=>e._containsFocus())).subscribe(()=>o.focusVia(i,"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:Mn(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Dw,1),_(Be),_(Lo),_(Ft),_(gP,8),_(di,8),io("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(i,o){1&i&&N("click",function(){return o._toggle()})("keydown",function(a){return o._keydown(a)}),2&i&&(Je("id",o.panel._headerId)("tabindex",o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),yn("height",o._getHeaderHeight()),et("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after","after"===o._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===o._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===o._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[ge],ngContentSelectors:UQ,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(i,o){1&i&&(zt(HQ),d(0,"span",0),Ze(1),Ze(2,1),Ze(3,2),l(),y(4,zQ,1,1,"span",1)),2&i&&(et("mat-content-hide-toggle",!o._showToggle()),m(4),f("ngIf",o._showToggle()))},dependencies:[Tt],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);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.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.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{color:var(--mat-expansion-header-text-color)}.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[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.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;color:var(--mat-expansion-header-indicator-color)}.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:[pP.indicatorRotate]},changeDetection:0})}return t})(),KQ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})(),bP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Bn,St,FQ,ac]})}return t})();function ZQ(t,n){1&t&&(d(0,"span",7),Ze(1,1),l())}function YQ(t,n){1&t&&(d(0,"span",8),Ze(1,2),l())}const vP=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],yP=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function JQ(t,n){1&t&&(ye(0),D(1,"span",8),we())}function eX(t,n){1&t&&(d(0,"span",9),Ze(1),l())}function tX(t,n){1&t&&(ye(0),Ze(1,1),we())}function iX(t,n){1&t&&Ze(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function nX(t,n){1&t&&D(0,"span",12)}function oX(t,n){if(1&t&&(ye(0),y(1,iX,1,0,"ng-content",10)(2,nX,1,0,"ng-template",null,11,_r),we()),2&t){const e=Rt(3),i=w();m(),f("ngIf",i.contentEditInput)("ngIfElse",e)}}function rX(t,n){1&t&&(d(0,"span",13),Ze(1,3),l())}const aX=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],sX=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],Sw=["*"],Kf=new oe("mat-chips-default-options"),kw=new oe("MatChipAvatar"),Tw=new oe("MatChipTrailingIcon"),Mw=new oe("MatChipRemove"),Zf=new oe("MatChip");class cX{}const lX=os(cX,-1);let $l=(()=>{class t extends lX{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=$e(e)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,i){super(),this._elementRef=e,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Zf))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(i,o){1&i&&N("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Je("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),et("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[ge]})}return t})(),CP=(()=>{class t extends $l{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(i,o){2&i&&Je("aria-hidden",null)},features:[Ye([{provide:Mw,useExisting:t}]),ge]})}return t})(),hX=0;const mX=os(is(ns(Br(class{constructor(t){this._elementRef=t}})),"primary"),-1);let lc=(()=>{class t extends mX{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get removable(){return this._removable}set removable(e){this._removable=$e(e)}get highlighted(){return this._highlighted}set highlighted(e){this._highlighted=$e(e)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}constructor(e,i,o,r,a,s,c,u){super(i),this._changeDetectorRef=e,this._ngZone=o,this._focusMonitor=r,this._globalRippleOptions=c,this._onFocus=new qe,this._onBlur=new qe,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+hX++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new Re,this.destroyed=new Re,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=Ce(RE),this._document=a,this._animationsDisabled="NoopAnimations"===s,null!=u&&(this.tabIndex=parseInt(u)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const e=this._elementRef.nativeElement;this._isBasicChip=e.hasAttribute(this.basicChipAttrName)||e.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Ei(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(e){(8===e.keyCode||46===e.keyCode)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{const o=i._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){const e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=null!==e;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(Nt(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(Be),_(We),_(Lo),_(dt),_(di,8),_(Ml,8),io("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,o,r){if(1&i&&(gt(r,kw,5),gt(r,Tw,5),gt(r,Mw,5),gt(r,kw,5),gt(r,Tw,5),gt(r,Mw,5)),2&i){let a;Oe(a=Ae())&&(o.leadingIcon=a.first),Oe(a=Ae())&&(o.trailingIcon=a.first),Oe(a=Ae())&&(o.removeIcon=a.first),Oe(a=Ae())&&(o._allLeadingIcons=a),Oe(a=Ae())&&(o._allTrailingIcons=a),Oe(a=Ae())&&(o._allRemoveIcons=a)}},viewQuery:function(i,o){if(1&i&&vt($l,5),2&i){let r;Oe(r=Ae())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(i,o){1&i&&N("keydown",function(a){return o._handleKeydown(a)}),2&i&&(oo("id",o.id),Je("role",o.role)("tabindex",o.role?o.tabIndex:null)("aria-label",o.ariaLabel),et("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaDescription:[pe.None,"aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ye([{provide:Zf,useExisting:t}]),ge],ngContentSelectors:yP,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,o){1&i&&(zt(vP),D(0,"span",0),d(1,"span",1)(2,"span",2),y(3,ZQ,2,0,"span",3),d(4,"span",4),Ze(5),D(6,"span",5),l()()(),y(7,YQ,2,0,"span",6)),2&i&&(m(2),f("isInteractive",!1),m(),f("ngIf",o.leadingIcon),m(4),f("ngIf",o._hasTrailingIcon()))},dependencies:[Tt,$l],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})(),Yf=(()=>{class t{constructor(e,i){this._elementRef=e,this._document=i}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);const i=window.getSelection();i.removeAllRanges(),i.addRange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(dt))};static#t=this.\u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),Iw=(()=>{class t extends lc{constructor(e,i,o,r,a,s,c,u){super(e,i,o,r,a,s,c,u),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Re,this._isEditing=!1,this.role="row",this._onBlur.pipe(ot(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){13!==e.keyCode||this.disabled?this._isEditing?e.stopPropagation():super._handleKeydown(e):this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e)}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;const i=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(i),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(Be),_(We),_(Lo),_(dt),_(di,8),_(Ml,8),io("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(i,o,r){if(1&i&>(r,Yf,5),2&i){let a;Oe(a=Ae())&&(o.contentEditInput=a.first)}},viewQuery:function(i,o){if(1&i&&vt(Yf,5),2&i){let r;Oe(r=Ae())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(i,o){1&i&&N("focus",function(a){return o._handleFocus(a)})("dblclick",function(a){return o._handleDoubleclick(a)}),2&i&&(oo("id",o.id),Je("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),et("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[Ye([{provide:lc,useExisting:t},{provide:Zf,useExisting:t}]),ge],ngContentSelectors:sX,decls:10,vars:12,consts:[[4,"ngIf"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,o){1&i&&(zt(aX),y(0,JQ,2,0,"ng-container",0),d(1,"span",1),y(2,eX,2,0,"span",2),d(3,"span",3),y(4,tX,2,0,"ng-container",4)(5,oX,4,2,"ng-container",4),D(6,"span",5),l()(),y(7,rX,2,0,"span",6),d(8,"span",7),h(9),l()),2&i&&(f("ngIf",!o._isEditing),m(),f("tabIndex",o.tabIndex)("disabled",o.disabled),Je("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),m(),f("ngIf",o.leadingIcon),m(),f("ngSwitch",o._isEditing),m(),f("ngSwitchCase",!1),m(),f("ngSwitchCase",!0),m(2),f("ngIf",o._hasTrailingIcon()),m(),f("id",o._ariaDescriptionId),m(),Ne(o.ariaDescription))},dependencies:[Tt,wl,Dp,$l,Yf],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();class pX{constructor(n){}}const fX=os(pX);let Ew=(()=>{class t extends fX{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,i,o){super(e),this._elementRef=e,this._changeDetectorRef=i,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new qe,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new na}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(on(null),pn(()=>Ei(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(on(this._chips)).subscribe(e=>{const i=[];e.forEach(o=>o._getActions().forEach(r=>i.push(r))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new Xp(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(ot(this._destroyed)).subscribe(({chip:e})=>{const i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(ot(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(on(null),ot(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(ot(this._destroyed)).subscribe(e=>{const o=this._chips.toArray().indexOf(e.chip);this._isValidIndex(o)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(mn,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,o,r){if(1&i&>(r,lc,5),2&i){let a;Oe(a=Ae())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,o){1&i&&N("keydown",function(a){return o._handleKeydown(a)}),2&i&&Je("role",o.role)},inputs:{disabled:"disabled",role:"role"},features:[ge],ngContentSelectors:Sw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,o){1&i&&(zt(),d(0,"div",0),Ze(1),l())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return t})();class bX{constructor(n,e){this.source=n,this.value=e}}class vX extends Ew{constructor(n,e,i,o,r,a,s){super(n,e,i),this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=a,this.ngControl=s,this.stateChanges=new qe}}const yX=v0(vX);let kP=(()=>{class t extends yX{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=$e(e),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(ce.required)??!1}set required(e){this._required=$e(e),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}constructor(e,i,o,r,a,s,c){super(e,i,o,s,r,a,c),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Re,this.valueChange=new Re,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(ot(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),Ei(this.chipFocusChanges,this._chips.changes).pipe(ot(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?.setDescribedByIds(e)}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(e){9===e.keyCode?this._chipInput.focused&&Mn(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(e),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const e=this._chips.length?this._chips.toArray().map(i=>i.value):[];this._value=e,this.change.emit(new bX(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(mn,8),_(hs,8),_(Ai,8),_(tf),_(xr,10))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(i,o,r){if(1&i&>(r,Iw,5),2&i){let a;Oe(a=Ae())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(i,o){1&i&&N("focus",function(){return o.focus()})("blur",function(){return o._blur()}),2&i&&(oo("tabIndex",o._chips&&0===o._chips.length?-1:o.tabIndex),Je("role",o.role)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),et("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-invalid",o.errorState)("mat-mdc-chip-list-required",o.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Ye([{provide:Of,useExisting:t}]),ge],ngContentSelectors:Sw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,o){1&i&&(zt(),d(0,"div",0),Ze(1),l())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return t})(),wX=0,TP=(()=>{class t{set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=$e(e)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=$e(e)}get empty(){return!this.inputElement.value}constructor(e,i,o){this._elementRef=e,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new Re,this.placeholder="",this.id="mat-mdc-chip-list-input-"+wX++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=i.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(e){(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(e){const i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!Mn(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Kf),_(eh,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(i,o){1&i&&N("keydown",function(a){return o._keydown(a)})("keyup",function(a){return o._keyup(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),2&i&&(oo("id",o.id),Je("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[pe.None,"matChipInputFor","chipGrid"],addOnBlur:[pe.None,"matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:[pe.None,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[fi]})}return t})(),Ow=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[tf,{provide:Kf,useValue:{separatorKeyCodes:[13]}}],imports:[St,Bn,as,St]})}return t})();class MP{constructor(){this.expansionModel=new Gu(!0)}toggle(n){this.expansionModel.toggle(this._trackByValue(n))}expand(n){this.expansionModel.select(this._trackByValue(n))}collapse(n){this.expansionModel.deselect(this._trackByValue(n))}isExpanded(n){return this.expansionModel.isSelected(this._trackByValue(n))}toggleDescendants(n){this.expansionModel.isSelected(this._trackByValue(n))?this.collapseDescendants(n):this.expandDescendants(n)}collapseAll(){this.expansionModel.clear()}expandDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}collapseDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.deselect(...e.map(i=>this._trackByValue(i)))}_trackByValue(n){return this.trackBy?this.trackBy(n):n}}class IP extends MP{constructor(n,e,i){super(),this.getLevel=n,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(n){const i=[];for(let o=this.dataNodes.indexOf(n)+1;othis._trackByValue(n)))}}let kX=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})(),EP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[kX,St,St]})}return t})();class AX{constructor(n,e,i,o){this.transformFunction=n,this.getLevel=e,this.isExpandable=i,this.getChildren=o}_flattenNode(n,e,i,o){const r=this.transformFunction(n,e);if(i.push(r),this.isExpandable(r)){const a=this.getChildren(n);a&&(Array.isArray(a)?this._flattenChildren(a,e,i,o):a.pipe(Nt(1)).subscribe(s=>{this._flattenChildren(s,e,i,o)}))}return i}_flattenChildren(n,e,i,o){n.forEach((r,a)=>{let s=o.slice();s.push(a!=n.length-1),this._flattenNode(r,e+1,i,s)})}flattenNodes(n){let e=[];return n.forEach(i=>this._flattenNode(i,0,e,[])),e}expandFlattenedNodes(n,e){let i=[],o=[];return o[0]=!0,n.forEach(r=>{let a=!0;for(let s=0;s<=this.getLevel(r);s++)a=a&&o[s];a&&i.push(r),this.isExpandable(r)&&(o[this.getLevel(r)+1]=e.isExpanded(r))}),i}}class OP extends bf{get data(){return this._data.value}set data(n){this._data.next(n),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}constructor(n,e,i){super(),this._treeControl=n,this._treeFlattener=e,this._flattenedData=new ft([]),this._expandedData=new ft([]),this._data=new ft([]),i&&(this.data=i)}connect(n){return Ei(n.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(nt(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}function PX(t,n){}const RX=t=>({animationDuration:t}),NX=(t,n)=>({value:t,params:n});function FX(t,n){1&t&&Ze(0)}const AP=["*"],LX=["tabListContainer"],BX=["tabList"],VX=["tabListInner"],jX=["nextPaginator"],zX=["previousPaginator"],HX=["tabBodyWrapper"],UX=["tabHeader"];function $X(t,n){}function GX(t,n){1&t&&y(0,$X,0,0,"ng-template",14),2&t&&f("cdkPortalOutlet",w().$implicit.templateLabel)}function WX(t,n){1&t&&h(0),2&t&&Ne(w().$implicit.textLabel)}function qX(t,n){if(1&t){const e=_e();d(0,"div",6,7),N("click",function(){const o=ae(e),r=o.$implicit,a=o.index,s=w(),c=Rt(1);return se(s._handleClick(r,c,a))})("cdkFocusChange",function(o){const a=ae(e).index;return se(w()._tabFocusChanged(o,a))}),D(2,"span",8)(3,"div",9),d(4,"span",10)(5,"span",11),y(6,GX,1,1,"ng-template",12)(7,WX,1,1,"ng-template",null,13,_r),l()()()}if(2&t){const e=n.$implicit,i=n.index,o=Rt(1),r=Rt(8),a=w();et("mdc-tab--active",a.selectedIndex===i),f("id",a._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),Je("tabIndex",a._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(i))("aria-selected",a.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),f("matRippleTrigger",o)("matRippleDisabled",e.disabled||a.disableRipple),m(3),f("ngIf",e.templateLabel)("ngIfElse",r)}}function KX(t,n){if(1&t){const e=_e();d(0,"mat-tab-body",15),N("_onCentered",function(){return ae(e),se(w()._removeTabBodyWrapperHeight())})("_onCentering",function(o){return ae(e),se(w()._setTabBodyWrapperHeight(o))}),l()}if(2&t){const e=n.$implicit,i=n.index,o=w();et("mat-mdc-tab-body-active",o.selectedIndex===i),f("id",o._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),Je("tabindex",null!=o.contentTabIndex&&o.selectedIndex===i?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(i))("aria-hidden",o.selectedIndex!==i)}}const ZX={translateTab:Po("translateTab",[un("center, void, left-origin-center, right-origin-center",Wt({transform:"none"})),un("left",Wt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),un("right",Wt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Ki("* => left, * => right, left => center, right => center",qi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ki("void => left-origin-center",[Wt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),qi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ki("void => right-origin-center",[Wt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),qi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let YX=(()=>{class t extends wa{constructor(e,i,o,r){super(e,i,r),this._host=o,this._centeringSub=de.EMPTY,this._leavingSub=de.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(on(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rs),_(bi),_(qt(()=>PP)),_(dt))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[ge]})}return t})(),QX=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,o){this._elementRef=e,this._dir=i,this._dirChangeSubscription=de.EMPTY,this._translateTabComplete=new qe,this._onCentering=new Re,this._beforeCentering=new Re,this._afterLeavingCenter=new Re,this._onCentered=new Re(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(r=>{this._computePositionAnimationState(r),o.markForCheck()})),this._translateTabComplete.pipe(Pu((r,a)=>r.fromState===a.fromState&&r.toState===a.toState)).subscribe(r=>{this._isCenterPosition(r.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(r.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(mn,8),_(Ft))};static#t=this.\u0275dir=Q({type:t,inputs:{_content:[pe.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}return t})(),PP=(()=>{class t extends QX{constructor(e,i,o){super(e,i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(mn,8),_(Ft))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,o){if(1&i&&vt(wa,5),2&i){let r;Oe(r=Ae())&&(o._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[ge],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(i,o){1&i&&(d(0,"div",0,1),N("@translateTab.start",function(a){return o._onTranslateTabStarted(a)})("@translateTab.done",function(a){return o._translateTabComplete.next(a)}),y(2,PX,0,0,"ng-template",2),l()),2&i&&f("@translateTab",jT(3,NX,o._position,ui(1,RX,o.animationDuration)))},dependencies:[YX],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[ZX.translateTab]}})}return t})();const XX=new oe("MatTabContent");let JX=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Ye([{provide:XX,useExisting:t}])]})}return t})();const eJ=new oe("MatTabLabel"),RP=new oe("MAT_TAB");let Fw=(()=>{class t extends gY{constructor(e,i,o){super(e,i),this._closestTab=o}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(bi),_(RP,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ye([{provide:eJ,useExisting:t}]),ge]})}return t})();const Lw="mdc-tab-indicator--active",NP="mdc-tab-indicator--no-transition";class tJ{constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar())}alignToElement(n){const e=this._items.find(o=>o.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){const o=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}}function iJ(t){return class extends t{constructor(...n){super(...n),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(n){const e=$e(n);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(n){const e=this.elementRef.nativeElement;if(!n||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(Lw);const i=e.getBoundingClientRect(),o=n.width/i.width,r=n.left-i.left;e.classList.add(NP),this._inkBarContentElement.style.setProperty("transform",`translateX(${r}px) scaleX(${o})`),e.getBoundingClientRect(),e.classList.remove(NP),e.classList.add(Lw),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Lw)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const n=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=n.createElement("span"),this._inkBarContentElement=n.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const oJ=Br(class{}),rJ=iJ((()=>{class t extends oJ{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be))};static#t=this.\u0275dir=Q({type:t,features:[ge]})}return t})());let FP=(()=>{class t extends rJ{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,o){2&i&&(Je("aria-disabled",!!o.disabled),et("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[ge]})}return t})();const aJ=Br(class{}),LP=new oe("MAT_TAB_GROUP");let sJ=(()=>{class t extends aJ{get content(){return this._contentPortal}constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new qe,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ya(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(bi),_(LP,8))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(gi,7),2&i){let r;Oe(r=Ae())&&(o._implicitContent=r.first)}},inputs:{textLabel:[pe.None,"label","textLabel"],ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[ge,fi]})}return t})(),Jf=(()=>{class t extends sJ{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,JX,7,gi),gt(r,Fw,5)),2&i){let a;Oe(a=Ae())&&(o._explicitContent=a.first),Oe(a=Ae())&&(o.templateLabel=a.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[Ye([{provide:RP,useExisting:t}]),ge],ngContentSelectors:AP,decls:1,vars:0,template:function(i,o){1&i&&(zt(),y(0,FX,1,0,"ng-template"))},encapsulation:2})}return t})();const BP=Ja({passive:!0});let dJ=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=$e(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=vi(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,i,o,r,a,s,c){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=o,this._dir=r,this._ngZone=a,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new qe,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new qe,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Re,this.indexFocused=new Re,a.runOutsideAngular(()=>{Xo(e.nativeElement,"mouseleave").pipe(ot(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Xo(this._previousPaginator.nativeElement,"touchstart",BP).pipe(ot(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Xo(this._nextPaginator.nativeElement,"touchstart",BP).pipe(ot(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Ke("ltr"),i=this._viewportRuler.change(150),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Xp(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Nt(1)).subscribe(o),Ei(e,i,this._items.changes,this._itemsResized()).pipe(ot(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.subscribe(r=>{this.indexFocused.emit(r),this._setTabFocus(r)})}_itemsResized(){return"function"!=typeof ResizeObserver?Fo:this._items.changes.pipe(on(this._items),pn(e=>new ci(i=>this._ngZone.runOutsideAngular(()=>{const o=new ResizeObserver(r=>i.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),l0(1),Mt(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Mn(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=i.elementRef.nativeElement;let s,c;"ltr"==this._getLayoutDirection()?(s=r,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-r,s=c-a);const u=this.scrollDistance,p=this.scrollDistance+o;sp&&(this.scrollDistance+=Math.min(c-p,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),Af(650,100).pipe(ot(Ei(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(0===r||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(va),_(mn,8),_(We),_(ai),_(di,8))};static#t=this.\u0275dir=Q({type:t,inputs:{disablePagination:"disablePagination"}})}return t})(),uJ=(()=>{class t extends dJ{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$e(e)}constructor(e,i,o,r,a,s,c){super(e,i,o,r,a,s,c),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(va),_(mn,8),_(We),_(ai),_(di,8))};static#t=this.\u0275dir=Q({type:t,inputs:{disableRipple:"disableRipple"},features:[ge]})}return t})(),hJ=(()=>{class t extends uJ{constructor(e,i,o,r,a,s,c){super(e,i,o,r,a,s,c)}ngAfterContentInit(){this._inkBar=new tJ(this._items),super.ngAfterContentInit()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(va),_(mn,8),_(We),_(ai),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,o,r){if(1&i&>(r,FP,4),2&i){let a;Oe(a=Ae())&&(o._items=a)}},viewQuery:function(i,o){if(1&i&&(vt(LX,7),vt(BX,7),vt(VX,7),vt(jX,5),vt(zX,5)),2&i){let r;Oe(r=Ae())&&(o._tabListContainer=r.first),Oe(r=Ae())&&(o._tabList=r.first),Oe(r=Ae())&&(o._tabListInner=r.first),Oe(r=Ae())&&(o._nextPaginator=r.first),Oe(r=Ae())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==o._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ge],ngContentSelectors:AP,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(i,o){1&i&&(zt(),d(0,"button",0,1),N("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),D(2,"div",2),l(),d(3,"div",3,4),N("keydown",function(a){return o._handleKeydown(a)}),d(5,"div",5,6),N("cdkObserveContent",function(){return o._onContentChanges()}),d(7,"div",7,8),Ze(9),l()()(),d(10,"button",9,10),N("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),D(12,"div",2),l()),2&i&&(et("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),f("matRippleDisabled",o._disableScrollBefore||o.disableRipple)("disabled",o._disableScrollBefore||null),m(3),et("_mat-animation-noopable","NoopAnimations"===o._animationMode),m(7),et("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),f("matRippleDisabled",o._disableScrollAfter||o.disableRipple)("disabled",o._disableScrollAfter||null))},dependencies:[rs,tE],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return t})();const VP=new oe("MAT_TABS_CONFIG");let mJ=0;const pJ=is(ns(class{constructor(t){this._elementRef=t}}),"primary");let fJ=(()=>{class t extends pJ{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=$e(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=vi(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=vi(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=$e(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=$e(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,o,r){super(e),this._changeDetectorRef=i,this._animationMode=r,this._tabs=new na,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=de.EMPTY,this._tabLabelSubscription=de.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Re,this.focusChange=new Re,this.animationDone=new Re,this.selectedTabChange=new Re(!0),this._groupId=mJ++,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}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,o)=>{i.position=o-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let o;for(let r=0;r{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(on(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new gJ;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Ei(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,o){i.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(VP,8),_(di,8))};static#t=this.\u0275dir=Q({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:[ge]})}return t})(),Bw=(()=>{class t extends fJ{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=$e(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=$e(e)}constructor(e,i,o,r){super(e,i,o,r),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!o||null==o.fitInkBarToContent)&&o.fitInkBarToContent,this.stretchTabs=!o||null==o.stretchTabs||o.stretchTabs}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(VP,8),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,o,r){if(1&i&>(r,Jf,5),2&i){let a;Oe(a=Ae())&&(o._allTabs=a)}},viewQuery:function(i,o){if(1&i&&(vt(HX,5),vt(UX,5)),2&i){let r;Oe(r=Ae())&&(o._tabBodyWrapper=r.first),Oe(r=Ae())&&(o._tabHeader=r.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(i,o){2&i&&(yn("--mat-tab-animation-duration",o.animationDuration),et("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===o.headerPosition)("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:[pe.None,"mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[Ye([{provide:LP,useExisting:t}]),ge],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(i,o){1&i&&(d(0,"mat-tab-header",0,1),N("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),y(2,qX,9,17,"div",2),l(),d(3,"div",3,4),y(5,KX,1,12,"mat-tab-body",5),l()),2&i&&(f("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),m(2),f("ngForOf",o._tabs),m(),et("_mat-animation-noopable","NoopAnimations"===o._animationMode),m(2),f("ngForOf",o._tabs))},dependencies:[vr,dn,Tt,wa,rs,YG,PP,FP,hJ],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return t})();class gJ{}let jP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Bn,St,ac,as,Kp,b0,St]})}return t})();function _J(t,n){if(1&t){const e=_e();d(0,"div",2)(1,"button",3),N("click",function(){return ae(e),se(w().action())}),h(2),l()()}if(2&t){const e=w();m(2),ke(" ",e.data.action," ")}}const bJ=["label"];function vJ(t,n){}const yJ=Math.pow(2,31)-1;class Vw{constructor(n,e){this._overlayRef=e,this._afterDismissed=new qe,this._afterOpened=new qe,this._onAction=new qe,this._dismissedByAction=!1,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,yJ))}_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}}const zP=new oe("MatSnackBarData");class eg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let wJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),xJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),CJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),DJ=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(i){return new(i||t)(_(Vw),_(zP))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0),h(1),l(),y(2,_J,3,1,"div",1)),2&i&&(m(),ke(" ",o.data.message,"\n"),m(),f("ngIf",o.hasAction))},dependencies:[Tt,Yt,wJ,xJ,CJ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return t})();const SJ={snackBarState:Po("state",[un("void, hidden",Wt({transform:"scale(0.8)",opacity:0})),un("visible",Wt({transform:"scale(1)",opacity:1})),Ki("* => visible",qi("150ms cubic-bezier(0, 0, 0.2, 1)")),Ki("* => void, * => hidden",qi("75ms cubic-bezier(0.4, 0.0, 1, 1)",Wt({opacity:0})))])};let kJ=0,TJ=(()=>{class t extends Nf{constructor(e,i,o,r,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=o,this._platform=r,this.snackBarConfig=a,this._document=Ce(dt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new qe,this._onExit=new qe,this._onEnter=new qe,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+kJ++,this.attachDomPortal=s=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(s);return this._afterPortalAttached(),c},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 i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:o}=e;if(("void"===o&&"void"!==i||"hidden"===o)&&this._completeExit(),"visible"===o){const r=this._onEnter;this._ngZone.run(()=>{r.next(),r.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._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Nt(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(o=>e.classList.add(o)):e.classList.add(i)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{const i=e.getAttribute("aria-owns");if(i){const o=i.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(o=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(We),_(Be),_(Ft),_(ai),_(eg))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(wa,7),2&i){let r;Oe(r=Ae())&&(o._portalOutlet=r.first)}},features:[ge]})}return t})(),MJ=(()=>{class t extends TJ{_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,i="mdc-snackbar__label";e.classList.toggle(i,!e.querySelector(`.${i}`))}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,o){if(1&i&&vt(bJ,7),2&i){let r;Oe(r=Ae())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(i,o){1&i&&Jm("@state.done",function(a){return o.onAnimationEnd(a)}),2&i&&Km("@state",o._animationState)},features:[ge],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1,2)(3,"div",3),y(4,vJ,0,0,"ng-template",4),l(),D(5,"div"),l()()),2&i&&(m(5),Je("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[wa],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[SJ.snackBarState]}})}return t})(),jw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[cc,ac,Bn,cf,St,St]})}return t})();const HP=new oe("mat-snack-bar-default-options",{providedIn:"root",factory:function IJ(){return new eg}});let EJ=(()=>{class t{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,o,r,a,s){this._overlay=e,this._live=i,this._injector=o,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",o){const r={...this._defaultConfig,...o};return r.data={message:e,action:i},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const r=Bi.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:eg,useValue:i}]}),a=new Fl(this.snackBarContainerComponent,i.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){const o={...new eg,...this._defaultConfig,...i},r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Vw(a,r);if(e instanceof gi){const c=new ya(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(o,s),u=new Fl(e,void 0,c),p=a.attachComponentPortal(u);s.instance=p.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(ot(r.detachments())).subscribe(c=>{r.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Ll;i.direction=e.direction;let o=this._overlay.position().global();const r="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,s=!a&&"center"!==e.horizontalPosition;return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(e,i){return Bi.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Vw,useValue:i},{provide:zP,useValue:e.data}]})}static#e=this.\u0275fac=function(i){return new(i||t)(X(Yn),X(g0),X(Bi),X(u0),X(t,12),X(HP))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),OJ=(()=>{class t extends EJ{constructor(e,i,o,r,a,s){super(e,i,o,r,a,s),this.simpleSnackBarComponent=DJ,this.snackBarContainerComponent=MJ,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#e=this.\u0275fac=function(i){return new(i||t)(X(Yn),X(g0),X(Bi),X(u0),X(t,12),X(HP))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:jw})}return t})();function AJ(t,n){}class tg{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 UP=(()=>{class t extends Nf{constructor(e,i,o,r,a,s,c,u){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=r,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=c,this._focusMonitor=u,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=p=>{this._portalOutlet.hasAttached();const g=this._portalOutlet.attachDomPortal(p);return this._contentAttached(),g},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 i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const o=zp(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=zp();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=zp())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Jp),_(dt,8),_(tg),_(Nu),_(We),_(rh),_(Lo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,o){if(1&i&&vt(wa,7),2&i){let r;Oe(r=Ae())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,o){2&i&&Je("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:[ge],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,o){1&i&&y(0,AJ,0,0,"ng-template",0)},dependencies:[wa],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})();class zw{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new qe,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!Mn(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const $P=new oe("DialogScrollStrategy"),PJ=new oe("DialogData"),RJ=new oe("DefaultDialogConfig"),FJ={provide:$P,deps:[Yn],useFactory:function NJ(t){return()=>t.scrollStrategies.block()}};let LJ=0,GP=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,o,r,a,s){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this._ariaHiddenElements=new Map,this.afterAllClosed=Bl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(on(void 0))),this._scrollStrategy=s}open(e,i){(i={...this._defaultOptions||new tg,...i}).id=i.id||"cdk-dialog-"+LJ++,i.id&&this.getDialogById(i.id);const r=this._getOverlayConfig(i),a=this._overlay.create(r),s=new zw(a,i),c=this._attachContainer(a,s,i);return s.containerInstance=c,this._attachDialogContent(e,s,c,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){Hw(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){Hw(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Hw(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Ll({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,o){const r=o.injector||o.viewContainerRef?.injector,a=[{provide:tg,useValue:o},{provide:zw,useValue:i},{provide:rh,useValue:e}];let s;o.container?"function"==typeof o.container?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=UP;const c=new Fl(s,o.viewContainerRef,Bi.create({parent:r||this._injector,providers:a}),o.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,o,r){if(e instanceof gi){const a=this._createInjector(r,i,o,void 0);let s={$implicit:r.data,dialogRef:i};r.templateContext&&(s={...s,..."function"==typeof r.templateContext?r.templateContext():r.templateContext}),o.attachTemplatePortal(new ya(e,null,s,a))}else{const a=this._createInjector(r,i,o,this._injector),s=o.attachComponentPortal(new Fl(e,r.viewContainerRef,a,r.componentFactoryResolver));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,o,r){const a=e.injector||e.viewContainerRef?.injector,s=[{provide:PJ,useValue:e.data},{provide:zw,useValue:i}];return e.providers&&("function"==typeof e.providers?s.push(...e.providers(i,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(mn,null,{optional:!0}))&&s.push({provide:mn,useValue:{value:e.direction,change:Ke()}}),Bi.create({parent:a||r,providers:s})}_removeOpenDialog(e,i){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){const r=i[o];r!==e&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(i){return new(i||t)(X(Yn),X(Bi),X(RJ,8),X(t,12),X(Ff),X($P))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();function Hw(t,n){let e=t.length;for(;e--;)n(t[e])}let BJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[GP,FJ],imports:[cc,ac,b0,ac]})}return t})();function VJ(t,n){}class ig{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}}const Uw="mdc-dialog--open",WP="mdc-dialog--opening",qP="mdc-dialog--closing";let HJ=(()=>{class t extends UP{constructor(e,i,o,r,a,s,c,u){super(e,i,o,r,a,s,c,u),this._animationStateChanged=new Re}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Jp),_(dt,8),_(ig),_(Nu),_(We),_(rh),_(Lo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["ng-component"]],features:[ge],decls:0,vars:0,template:function(i,o){},encapsulation:2})}return t})();const KP="--mat-dialog-transition-duration";function ZP(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?vi(t.substring(0,t.length-2)):t.endsWith("s")?1e3*vi(t.substring(0,t.length-1)):"0"===t?0:null}let UJ=(()=>{class t extends HJ{constructor(e,i,o,r,a,s,c,u,p){super(e,i,o,r,a,s,c,p),this._animationMode=u,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?ZP(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?ZP(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(KP,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(WP,Uw)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Uw),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Uw),this._animationsEnabled?(this._hostElement.style.setProperty(KP,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(qP)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(WP,qP)}_waitForAnimationToComplete(e,i){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Jp),_(dt,8),_(ig),_(Nu),_(We),_(rh),_(di,8),_(Lo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(i,o){2&i&&(oo("id",o._config.id),Je("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),et("_mat-animation-noopable",!o._animationsEnabled))},features:[ge],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1),y(2,VJ,0,0,"ng-template",2),l()())},dependencies:[wa],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return t})();class An{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new qe,this._beforeClosed=new qe,this._state=0,this.disableClose=e.disableClose,this.id=n.id,i._animationStateChanged.pipe(Mt(o=>"opened"===o.state),Nt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Mt(o=>"closed"===o.state),Nt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ei(this.backdropClick(),this.keydownEvents().pipe(Mt(o=>27===o.keyCode&&!this.disableClose&&!Mn(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),YP(this,"keydown"===o.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(Mt(e=>"closing"===e.state),Nt(1)).subscribe(e=>{this._beforeClosed.next(n),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(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function YP(t,n,e){return t._closeInteractionType=n,t.close(e)}const ho=new oe("MatMdcDialogData"),$J=new oe("mat-mdc-dialog-default-options"),QP=new oe("mat-mdc-dialog-scroll-strategy"),WJ={provide:QP,deps:[Yn],useFactory:function GJ(t){return()=>t.scrollStrategies.block()}};let qJ=0,KJ=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,o,r,a,s,c,u,p,g){this._overlay=e,this._defaultOptions=o,this._parentDialog=r,this._dialogRefConstructor=c,this._dialogContainerType=u,this._dialogDataToken=p,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this._idPrefix="mat-dialog-",this.dialogConfigClass=ig,this.afterAllClosed=Bl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(on(void 0))),this._scrollStrategy=s,this._dialog=i.get(GP)}open(e,i){let o;(i={...this._defaultOptions||new ig,...i}).id=i.id||`${this._idPrefix}${qJ++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const r=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:tg,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(a,s,c)=>(o=new this._dialogRefConstructor(a,i,c),o.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentRef=r.componentRef,o.componentInstance=r.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(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),jr=(()=>{class t extends KJ{constructor(e,i,o,r,a,s,c,u){super(e,i,r,s,c,a,An,UJ,ho,u),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(i){return new(i||t)(X(Yn),X(Bi),X(Ws,8),X($J,8),X(QP),X(t,12),X(Ff),X(di,8))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})(),ZJ=0,mo=(()=>{class t{constructor(e,i,o){this.dialogRef=e,this._elementRef=i,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=XP(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){YP(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(i){return new(i||t)(_(An,8),_(Be),_(jr))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,o){1&i&&N("click",function(a){return o._onButtonClick(a)}),2&i&&Je("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[pe.None,"aria-label","ariaLabel"],type:"type",dialogResult:[pe.None,"mat-dialog-close","dialogResult"],_matDialogClose:[pe.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[fi]})}return t})(),YJ=(()=>{class t{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o,this.id="mat-mdc-dialog-title-"+ZJ++}ngOnInit(){this._dialogRef||(this._dialogRef=XP(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const e=this._dialogRef?._containerInstance?._ariaLabelledByQueue;e&&Promise.resolve().then(()=>{const i=e.indexOf(this.id);i>-1&&e.splice(i,1)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(An,8),_(Be),_(jr))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,o){2&i&&oo("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return t})(),Jo=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return t})(),er=(()=>{class t{constructor(){this.align="start"}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-mdc-dialog-actions-align-center","center"===o.align)("mat-mdc-dialog-actions-align-end","end"===o.align)},inputs:{align:"align"}})}return t})();function XP(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}let JP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[jr,WJ],imports:[BJ,cc,ac,St,St]})}return t})();const QJ=["tooltip"],tR=new oe("mat-tooltip-scroll-strategy"),eee={provide:tR,deps:[Yn],useFactory:function JJ(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},iee=new oe("mat-tooltip-default-options",{providedIn:"root",factory:function tee(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),iR="tooltip-panel",nR=Ja({passive:!0});let cee=(()=>{class t{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 positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=$e(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=vi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=vi(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)}constructor(e,i,o,r,a,s,c,u,p,g,b,x){this._overlay=e,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=r,this._ngZone=a,this._platform=s,this._ariaDescriber=c,this._focusMonitor=u,this._dir=g,this._defaultOptions=b,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new qe,this._scrollStrategy=p,this._document=x,b&&(this._showDelay=b.showDelay,this._hideDelay=b.hideDelay,b.position&&(this.position=b.position),b.positionAtOrigin&&(this.positionAtOrigin=b.positionAtOrigin),b.touchGestures&&(this.touchGestures=b.touchGestures)),g.change.pipe(ot(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ot(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(([i,o])=>{e.removeEventListener(i,o,nR)}),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,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const o=this._createOverlay(i);this._detach(),this._portal=this._portal||new Fl(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(ot(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&r._origin instanceof Be)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(ot(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${iR}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ot(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ot(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ot(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!Mn(r)&&(r.preventDefault(),r.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 i=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset({...o.main,...r.main}),this._addOffset({...o.fallback,...r.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});const{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Nt(1),ot(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:o,originY:r}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===r?"above":"below",a!==this._currentPosition){const s=this._overlayRef;if(s){const c=`${this._cssClassPrefix}-${iR}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],o=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const o=i.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,nR)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,inputs:{position:[pe.None,"matTooltipPosition","position"],positionAtOrigin:[pe.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[pe.None,"matTooltipDisabled","disabled"],showDelay:[pe.None,"matTooltipShowDelay","showDelay"],hideDelay:[pe.None,"matTooltipHideDelay","hideDelay"],touchGestures:[pe.None,"matTooltipTouchGestures","touchGestures"],message:[pe.None,"matTooltip","message"],tooltipClass:[pe.None,"matTooltipClass","tooltipClass"]}})}return t})(),Dn=(()=>{class t extends cee{constructor(e,i,o,r,a,s,c,u,p,g,b,x){super(e,i,o,r,a,s,c,u,p,g,b,x),this._tooltipComponent=dee,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const o=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=o?-8:8:"end"===e.originX&&(e.offsetX=o?8:-8),e}static#e=this.\u0275fac=function(i){return new(i||t)(_(Yn),_(Be),_(nh),_(bi),_(We),_(ai),_(OG),_(Lo),_(tR),_(mn,8),_(iee,8),_(dt))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-mdc-tooltip-disabled",o.disabled)},exportAs:["matTooltip"],features:[ge]})}return t})(),lee=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new qe,this._animationsDisabled="NoopAnimations"===i}show(e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){null!=this._showTimeoutId&&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(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:o),i.classList.add(e?o:r),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(di,8))};static#t=this.\u0275dir=Q({type:t})}return t})(),dee=(()=>{class t extends lee{constructor(e,i,o){super(e,o),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(Be),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,o){if(1&i&&vt(QJ,7),2&i){let r;Oe(r=Ae())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,o){1&i&&N("mouseleave",function(a){return o._handleMouseLeave(a)}),2&i&&yn("zoom",o.isVisible()?1:null)},features:[ge],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(i,o){1&i&&(d(0,"div",0,1),N("animationend",function(a){return o._handleAnimationEnd(a)}),d(2,"div",2),h(3),l()()),2&i&&(et("mdc-tooltip--multiline",o._isMultiline),f("ngClass",o.tooltipClass),m(3),Ne(o.message))},dependencies:[vr],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return t})(),$w=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[eee],imports:[b0,Bn,cc,St,St,ms]})}return t})();const uee=["input"],hee=["label"],mee=["*"],pee=new oe("mat-checkbox-default-options",{providedIn:"root",factory:oR});function oR(){return{color:"accent",clickAction:"check-indeterminate"}}const fee={provide:co,useExisting:qt(()=>ng),multi:!0};class gee{}let _ee=0;const rR=oR(),bee=os(is(ns(Br(class{constructor(t){this._elementRef=t}}))));let vee=(()=>{class t extends bee{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=$e(e)}constructor(e,i,o,r,a,s,c){super(i),this._changeDetectorRef=o,this._ngZone=r,this._animationMode=s,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Re,this.indeterminateChange=new Re,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||rR,this.color=this.defaultColor=this._options.color||rR.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++_ee}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=$e(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=$e(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=$e(e),i&&(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}_transitionCheckState(e){let i=this._currentCheckState,o=this._getAnimationTargetElement();if(i!==e&&o&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&(vt(uee,5),vt(hee,5),vt(rs,5)),2&i){let r;Oe(r=Ae())&&(o._inputElement=r.first),Oe(r=Ae())&&(o._labelElement=r.first),Oe(r=Ae())&&(o.ripple=r.first)}},inputs:{ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[pe.None,"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:[ge]})}return t})(),ng=(()=>{class t extends vee{constructor(e,i,o,r,a,s){super("mat-mdc-checkbox-",e,i,o,r,a,s),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new gee;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Ft),_(We),io("tabindex"),_(di,8),_(pee,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&(oo("id",o.id),Je("tabindex",null)("aria-label",null)("aria-labelledby",null),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[Ye([fee]),ge],ngContentSelectors:mee,decls:15,vars:20,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(i,o){if(1&i&&(zt(),d(0,"div",0),N("click",function(a){return o._preventBubblingFromLabel(a)}),d(1,"div",1,2)(3,"div",3),N("click",function(){return o._onTouchTargetClick()}),l(),d(4,"input",4,5),N("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),l(),D(6,"div",6),d(7,"div",7),Xt(),d(8,"svg",8),D(9,"path",9),l(),mr(),D(10,"div",10),l(),D(11,"div",11),l(),d(12,"label",12,13),Ze(14),l()()),2&i){const r=Rt(2);et("mdc-form-field--align-end","before"==o.labelPosition),m(4),et("mdc-checkbox--selected",o.checked),f("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.tabIndex),Je("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),m(7),f("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),f("for",o.inputId)}},dependencies:[rs],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})(),aR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})(),sR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,as,aR,St,aR]})}return t})();const og=["*"],xee=["content"];function Cee(t,n){if(1&t){const e=_e();d(0,"div",2),N("click",function(){return ae(e),se(w()._onBackdropClicked())}),l()}2&t&&et("mat-drawer-shown",w()._isShowingBackdrop())}function Dee(t,n){1&t&&(d(0,"mat-drawer-content"),Ze(1,2),l())}const See=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],kee=["mat-drawer","mat-drawer-content","*"];function Tee(t,n){if(1&t){const e=_e();d(0,"div",2),N("click",function(){return ae(e),se(w()._onBackdropClicked())}),l()}2&t&&et("mat-drawer-shown",w()._isShowingBackdrop())}function Mee(t,n){1&t&&(d(0,"mat-sidenav-content"),Ze(1,2),l())}const Iee=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Eee=["mat-sidenav","mat-sidenav-content","*"],cR={transformDrawer:Po("transform",[un("open, open-instant",Wt({transform:"none",visibility:"visible"})),un("void",Wt({"box-shadow":"none",visibility:"hidden"})),Ki("void => open-instant",qi("0ms")),Ki("void <=> open, open-instant => void",qi("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Aee=new oe("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Pee(){return!1}}),Gw=new oe("MAT_DRAWER_CONTAINER");let rg=(()=>{class t extends oh{constructor(e,i,o,r,a){super(o,r,a),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(qt(()=>dR)),_(Be),_(nh),_(We))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(i,o){2&i&&yn("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},features:[Ye([{provide:oh,useExisting:t}]),ge],ngContentSelectors:og,decls:1,vars:0,template:function(i,o){1&i&&(zt(),Ze(0))},encapsulation:2,changeDetection:0})}return t})(),lR=(()=>{class t{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=$e(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=$e(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle($e(e))}constructor(e,i,o,r,a,s,c,u){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=r,this._ngZone=a,this._interactivityChecker=s,this._doc=c,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new qe,this._animationEnd=new qe,this._animationState="void",this.openedChange=new Re(!0),this._openedStream=this.openedChange.pipe(Mt(p=>p),nt(()=>{})),this.openedStart=this._animationStarted.pipe(Mt(p=>p.fromState!==p.toState&&0===p.toState.indexOf("open")),Lf(void 0)),this._closedStream=this.openedChange.pipe(Mt(p=>!p),nt(()=>{})),this.closedStart=this._animationStarted.pipe(Mt(p=>p.fromState!==p.toState&&"void"===p.toState),Lf(void 0)),this._destroyed=new qe,this.onPositionChanged=new Re,this._modeChanged=new qe,this.openedChange.subscribe(p=>{p?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Xo(this._elementRef.nativeElement,"keydown").pipe(Mt(p=>27===p.keyCode&&!this.disableClose&&!Mn(p)),ot(this._destroyed)).subscribe(p=>this._ngZone.run(()=>{this.close(),p.stopPropagation(),p.preventDefault()}))}),this._animationEnd.pipe(Pu((p,g)=>p.fromState===g.fromState&&p.toState===g.toState)).subscribe(p=>{const{fromState:g,toState:b}=p;(0===b.indexOf("open")&&"void"===g||"void"===b&&0===g.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,i){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(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_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(i=>{!i&&"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,i){e&&i&&(this._openedVia=i);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,i,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(Nt(1)).subscribe(a=>r(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Jp),_(Lo),_(ai),_(We),_(Nu),_(dt,8),_(Gw,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,o){if(1&i&&vt(xee,5),2&i){let r;Oe(r=Ae())&&(o._content=r.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(i,o){1&i&&Jm("@transform.start",function(a){return o._animationStarted.next(a)})("@transform.done",function(a){return o._animationEnd.next(a)}),2&i&&(Je("align",null),Km("@transform",o._animationState),et("mat-drawer-end","end"===o.position)("mat-drawer-over","over"===o.mode)("mat-drawer-push","push"===o.mode)("mat-drawer-side","side"===o.mode)("mat-drawer-opened",o.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:og,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(i,o){1&i&&(zt(),d(0,"div",0,1),Ze(2),l())},dependencies:[oh],encapsulation:2,data:{animation:[cR.transformDrawer]},changeDetection:0})}return t})(),dR=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=$e(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=null==e?null:$e(e)}get scrollable(){return this._userContent||this._content}constructor(e,i,o,r,a,s=!1,c){this._dir=e,this._element=i,this._ngZone=o,this._changeDetectorRef=r,this._animationMode=c,this._drawers=new na,this.backdropClick=new Re,this._destroyed=new qe,this._doCheckSubject=new qe,this._contentMargins={left:null,right:null},this._contentMarginChanges=new qe,e&&e.change.pipe(ot(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(ot(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}ngAfterContentInit(){this._allDrawers.changes.pipe(on(this._allDrawers),ot(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(on(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(Wp(10),ot(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,i=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,i-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();i+=o,e-=o}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Mt(i=>i.fromState!==i.toState),ot(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(ot(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(ot(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Nt(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(ot(Ei(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.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._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return null!=e&&e.opened}_drawerHasBackdrop(e){return null==this._backdropOverride?!!e&&"side"!==e.mode:this._backdropOverride}static#e=this.\u0275fac=function(i){return new(i||t)(_(mn,8),_(Be),_(We),_(Ft),_(va),_(Aee),_(di,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,rg,5),gt(r,lR,5)),2&i){let a;Oe(a=Ae())&&(o._content=a.first),Oe(a=Ae())&&(o._allDrawers=a)}},viewQuery:function(i,o){if(1&i&&vt(rg,5),2&i){let r;Oe(r=Ae())&&(o._userContent=r.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ye([{provide:Gw,useExisting:t}])],ngContentSelectors:kee,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(i,o){1&i&&(zt(See),y(0,Cee,1,2,"div",0),Ze(1),Ze(2,1),y(3,Dee,2,0,"mat-drawer-content",1)),2&i&&(f("ngIf",o.hasBackdrop),m(3),f("ngIf",!o._content))},dependencies:[Tt,rg],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);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;background-color:var(--mat-sidenav-scrim-color)}.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{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);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);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return t})(),Ww=(()=>{class t extends rg{constructor(e,i,o,r,a){super(e,i,o,r,a)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(qt(()=>hR)),_(Be),_(nh),_(We))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(i,o){2&i&&yn("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},features:[Ye([{provide:oh,useExisting:t}]),ge],ngContentSelectors:og,decls:1,vars:0,template:function(i,o){1&i&&(zt(),Ze(0))},encapsulation:2,changeDetection:0})}return t})(),uR=(()=>{class t extends lR{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=$e(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=vi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=vi(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(i,o){2&i&&(Je("align",null),yn("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),et("mat-drawer-end","end"===o.position)("mat-drawer-over","over"===o.mode)("mat-drawer-push","push"===o.mode)("mat-drawer-side","side"===o.mode)("mat-drawer-opened",o.opened)("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[ge],ngContentSelectors:og,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(i,o){1&i&&(zt(),d(0,"div",0,1),Ze(2),l())},dependencies:[oh],encapsulation:2,data:{animation:[cR.transformDrawer]},changeDetection:0})}return t})(),hR=(()=>{class t extends dR{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,Ww,5),gt(r,uR,5)),2&i){let a;Oe(a=Ae())&&(o._content=a.first),Oe(a=Ae())&&(o._allDrawers=a)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ye([{provide:Gw,useExisting:t}]),ge],ngContentSelectors:Eee,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(i,o){1&i&&(zt(Iee),y(0,Tee,1,2,"div",0),Ze(1),Ze(2,1),y(3,Mee,2,0,"mat-sidenav-content",1)),2&i&&(f("ngIf",o.hasBackdrop),m(3),f("ngIf",!o._content))},dependencies:[Tt,Ww],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);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;background-color:var(--mat-sidenav-scrim-color)}.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{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);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);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return t})(),mR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Bn,St,ms,ms,St]})}return t})();const Ree=["panel"];function Nee(t,n){if(1&t){const e=_e();d(0,"div",0,1),N("@panelAnimation.done",function(o){return ae(e),se(w()._animationDone.next(o))}),Ze(2),l()}if(2&t){const e=n.id,i=w();f("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),Je("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const Fee=["*"],Lee=Po("panelAnimation",[un("void, hidden",Wt({opacity:0,transform:"scaleY(0.8)"})),Ki(":enter, hidden => visible",[vy([qi("0.03s linear",Wt({opacity:1})),qi("0.12s cubic-bezier(0, 0, 0.2, 1)",Wt({transform:"scaleY(1)"}))])]),Ki(":leave, visible => hidden",[qi("0.075s linear",Wt({opacity:0}))])]);let Bee=0;class Vee{constructor(n,e){this.source=n,this.option=e}}const jee=ns(class{}),pR=new oe("mat-autocomplete-default-options",{providedIn:"root",factory:function zee(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let Hee=(()=>{class t extends jee{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=$e(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=$e(e)}get requireSelection(){return this._requireSelection}set requireSelection(e){this._requireSelection=$e(e)}set classList(e){this._classList=e&&e.length?function fG(t,n=/\s+/){const e=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(n);for(const o of i){const r=`${o}`.trim();r&&e.push(r)}}return e}(e).reduce((i,o)=>(i[o]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,i,o,r){super(),this._changeDetectorRef=e,this._elementRef=i,this._defaults=o,this._activeOptionChanges=de.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Re,this.opened=new Re,this.closed=new Re,this.optionActivated=new Re,this._classList={},this.id="mat-autocomplete-"+Bee++,this.inertGroups=r?.SAFARI||!1,this._autoActiveFirstOption=!!o.autoActiveFirstOption,this._autoSelectActiveOption=!!o.autoSelectActiveOption,this._requireSelection=!!o.requireSelection}ngAfterContentInit(){this._keyManager=new uE(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),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 i=new Vee(this,e);this.optionSelected.emit(i)}_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}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}_skipPredicate(e){return e.disabled}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft),_(Be),_(pR),_(ai))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&(vt(gi,7),vt(Ree,5)),2&i){let r;Oe(r=Ae())&&(o.template=r.first),Oe(r=Ae())&&(o.panel=r.first)}},inputs:{ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:[pe.None,"class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[ge]})}return t})(),Uee=(()=>{class t extends Hee{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new Re,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=$e(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(e){return!1}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,rf,5),gt(r,En,5)),2&i){let a;Oe(a=Ae())&&(o.optionGroups=a),Oe(a=Ae())&&(o.options=a)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[Ye([{provide:nf,useExisting:t}]),ge],ngContentSelectors:Fee,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(i,o){1&i&&(zt(),y(0,Nee,3,5,"ng-template"))},dependencies:[vr],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Lee]},changeDetection:0})}return t})();const $ee={provide:co,useExisting:qt(()=>gR),multi:!0},fR=new oe("mat-autocomplete-scroll-strategy"),Wee={provide:fR,deps:[Yn],useFactory:function Gee(t){return()=>t.scrollStrategies.reposition()}};let qee=(()=>{class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=$e(e)}constructor(e,i,o,r,a,s,c,u,p,g,b){this._element=e,this._overlay=i,this._viewContainerRef=o,this._zone=r,this._changeDetectorRef=a,this._dir=c,this._formField=u,this._document=p,this._viewportRuler=g,this._defaults=b,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=de.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new qe,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=Bl(()=>{const x=this.autocomplete?this.autocomplete.options:null;return x?x.changes.pipe(on(x),pn(()=>Ei(...x.map(T=>T.onSelectionChange)))):this._zone.onStable.pipe(Nt(1),pn(()=>this.optionSelections))}),this._handlePanelKeydown=x=>{(27===x.keyCode&&!Mn(x)||38===x.keyCode&&Mn(x,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),x.stopPropagation(),x.preventDefault())},this._trackedModal=null,this._scrollStrategy=s}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(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&Zp(this._trackedModal,"aria-owns",this.autocomplete.id)}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._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&kl(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Ei(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Mt(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Mt(()=>this._overlayAttached)):Ke()).pipe(nt(e=>e instanceof ME?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Ei(Xo(this._document,"click"),Xo(this._document,"auxclick"),Xo(this._document,"touchend")).pipe(Mt(e=>{const i=ma(e),o=this._formField?this._formField._elementRef.nativeElement:null,r=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(i))&&(!r||!r.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}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 i=e.keyCode,o=Mn(e);if(27===i&&!o&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==r)&&(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 i=e.target,o=i.value;"number"===i.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),o||this._clearPreviousSelectedOption(null,!1),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&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Ei(this._zone.onStable.pipe(Nt(1)),this.autocomplete.options.changes.pipe(Kt(()=>this._positionStrategy.reapplyLastPosition()),hw(0))).pipe(pn(()=>(this._zone.run(()=>{const o=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?(this._captureValueOnAttach(),this._emitOpened()):this.autocomplete.closed.emit())}),this.panelClosingActions)),Nt(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_captureValueOnAttach(){this._valueOnAttach=this._element.nativeElement.value}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=this.autocomplete,o=e?e.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),i._emitSelectEvent(o),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),i._animationDone?i._animationDone.pipe(Nt(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(i)})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new ya(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=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 i=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this._captureValueOnAttach(),this.panelOpen&&i!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Ll({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,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 i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{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?r:"below"===this.position?i:[...i,...r],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;if(e.autoActiveFirstOption){let i=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;const i=this.autocomplete.id;this._trackedModal&&kl(this._trackedModal,"aria-owns",i),Zp(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(kl(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Yn),_(bi),_(We),_(Ft),_(fR),_(mn,8),_(eh,9),_(dt,8),_(va),_(pR,8))};static#t=this.\u0275dir=Q({type:t,inputs:{autocomplete:[pe.None,"matAutocomplete","autocomplete"],position:[pe.None,"matAutocompletePosition","position"],connectedTo:[pe.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[pe.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[pe.None,"matAutocompleteDisabled","autocompleteDisabled"]},features:[fi]})}return t})(),gR=(()=>{class t extends qee{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,o){1&i&&N("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),2&i&&Je("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||null==o.autocomplete?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Ye([$ee]),ge]})}return t})(),_R=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[Wee],imports:[cc,af,St,Bn,ms,af,St]})}return t})();function Kee(t,n){if(1&t&&(d(0,"mat-option",19),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),ke(" ",e," ")}}function Zee(t,n){if(1&t){const e=_e();d(0,"mat-form-field",16)(1,"mat-select",17),N("selectionChange",function(o){return ae(e),se(w(2)._changePageSize(o.value))}),y(2,Kee,2,2,"mat-option",18),l()()}if(2&t){const e=w(2);f("appearance",e._formFieldAppearance)("color",e.color),m(),f("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(),f("ngForOf",e._displayedPageSizeOptions)}}function Yee(t,n){if(1&t&&(d(0,"div",20),h(1),l()),2&t){const e=w(2);m(),Ne(e.pageSize)}}function Qee(t,n){if(1&t&&(d(0,"div",12)(1,"div",13),h(2),l(),y(3,Zee,3,8,"mat-form-field",14)(4,Yee,2,1,"div",15),l()),2&t){const e=w();m(),vv("id",e._pageSizeLabelId),m(),ke(" ",e._intl.itemsPerPageLabel," "),m(),f("ngIf",e._displayedPageSizeOptions.length>1),m(),f("ngIf",e._displayedPageSizeOptions.length<=1)}}function Xee(t,n){if(1&t){const e=_e();d(0,"button",21),N("click",function(){return ae(e),se(w().firstPage())}),Xt(),d(1,"svg",7),D(2,"path",22),l()()}if(2&t){const e=w();f("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Je("aria-label",e._intl.firstPageLabel)}}function Jee(t,n){if(1&t){const e=_e();Xt(),mr(),d(0,"button",23),N("click",function(){return ae(e),se(w().lastPage())}),Xt(),d(1,"svg",7),D(2,"path",24),l()()}if(2&t){const e=w();f("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Je("aria-label",e._intl.lastPageLabel)}}let ag=(()=>{class t{constructor(){this.changes=new qe,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,o)=>{if(0==o||0==i)return`0 of ${o}`;const r=e*i;return`${r+1} \u2013 ${r<(o=Math.max(o,0))?Math.min(r+i,o):r+i} of ${o}`}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const tte={provide:ag,deps:[[new za,new Lc,ag]],useFactory:function ete(t){return t||new ag}},nte=new oe("MAT_PAGINATOR_DEFAULT_OPTIONS"),ote=Br(uW(class{}));let rte=(()=>{class t extends ote{get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(vi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=vi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(vi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>vi(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=$e(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=$e(e)}constructor(e,i,o){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new Re,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){const{pageSize:r,pageSizeOptions:a,hidePageSize:s,showFirstLastButtons:c}=o;null!=r&&(this._pageSize=r),null!=a&&(this._pageSizeOptions=a),null!=s&&(this._hidePageSize=s),null!=c&&(this._showFirstLastButtons=c)}}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.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[ge]})}return t})(),ate=0,qw=(()=>{class t extends rte{constructor(e,i,o){super(e,i,o),this._pageSizeLabelId="mat-paginator-page-size-label-"+ate++,this._formFieldAppearance=o?.formFieldAppearance||"outline"}static#e=this.\u0275fac=function(i){return new(i||t)(_(ag),_(Ft),_(nte,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ge],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-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-mdc-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-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-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-mdc-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(i,o){1&i&&(d(0,"div",0)(1,"div",1),y(2,Qee,5,4,"div",2),d(3,"div",3)(4,"div",4),h(5),l(),y(6,Xee,3,5,"button",5),d(7,"button",6),N("click",function(){return o.previousPage()}),Xt(),d(8,"svg",7),D(9,"path",8),l()(),mr(),d(10,"button",9),N("click",function(){return o.nextPage()}),Xt(),d(11,"svg",7),D(12,"path",10),l()(),y(13,Jee,3,5,"button",11),l()()()),2&i&&(m(2),f("ngIf",!o.hidePageSize),m(3),ke(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),f("ngIf",o.showFirstLastButtons),m(),f("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("matTooltipPosition","above")("disabled",o._previousButtonsDisabled()),Je("aria-label",o._intl.previousPageLabel),m(3),f("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("matTooltipPosition","above")("disabled",o._nextButtonsDisabled()),Je("aria-label",o._intl.nextPageLabel),m(3),f("ngIf",o.showFirstLastButtons))},dependencies:[dn,Tt,_a,Ri,uo,En,Dn],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return t})(),bR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({providers:[tte],imports:[Bn,cf,uw,$w]})}return t})();const ste=[NE,cf,fO,_O,yO,SA,th,VA,uw,yA,nP,lP,bP,Ow,bR,EP,jP,jw,JP,A0,$w,sR,mR,_R];let cte=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[ste,NE,cf,fO,_O,yO,SA,th,VA,uw,yA,nP,lP,bP,Ow,bR,EP,jP,jw,JP,A0,$w,sR,mR,_R]})}return t})();const lte=["input"],dte=["*"];let vR=0;class yR{constructor(n,e){this.source=n,this.value=e}}const ute={provide:co,useExisting:qt(()=>sg),multi:!0},wR=new oe("MatRadioGroup"),hte=new oe("mat-radio-default-options",{providedIn:"root",factory:function mte(){return{color:"accent"}}});let pte=(()=>{class t{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=$e(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+vR++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Re}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new yR(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ft))};static#t=this.\u0275dir=Q({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}})}return t})();class fte{constructor(n){this._elementRef=n}}const gte=ns(os(fte));let _te=(()=>{class t extends gte{get checked(){return this._checked}set checked(e){const i=$e(e);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled($e(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=$e(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,o,r,a,s,c,u){super(i),this._changeDetector=o,this._focusMonitor=r,this._radioDispatcher=a,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++vR,this.id=this._uniqueId,this.change=new Re,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,u&&(this.tabIndex=vi(u,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new yR(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let i;if(i=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const o=this._inputElement?.nativeElement;o&&(o.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(lte,5),2&i){let r;Oe(r=Ae())&&(o._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:[pe.None,"aria-label","ariaLabel"],ariaLabelledby:[pe.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[pe.None,"aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[ge]})}return t})(),sg=(()=>{class t extends pte{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,o,r){if(1&i&>(r,cg,5),2&i){let a;Oe(a=Ae())&&(o._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[Ye([ute,{provide:wR,useExisting:t}]),ge]})}return t})(),cg=(()=>{class t extends _te{constructor(e,i,o,r,a,s,c,u){super(e,i,o,r,a,s,c,u)}static#e=this.\u0275fac=function(i){return new(i||t)(_(wR,8),_(Be),_(Ft),_(Lo),_(N0),_(di,8),_(hte,8),io("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(i,o){1&i&&N("focus",function(){return o._inputElement.nativeElement.focus()}),2&i&&(Je("id",o.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),et("mat-primary","primary"===o.color)("mat-accent","accent"===o.color)("mat-warn","warn"===o.color)("mat-mdc-radio-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[ge],ngContentSelectors:dte,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,o){if(1&i&&(zt(),d(0,"div",0,1)(2,"div",2)(3,"div",3),N("click",function(a){return o._onTouchTargetClick(a)}),l(),d(4,"input",4,5),N("change",function(a){return o._onInputInteraction(a)}),l(),d(6,"div",6),D(7,"div",7)(8,"div",8),l(),d(9,"div",9),D(10,"div",10),l()(),d(11,"label",11),Ze(12),l()()),2&i){const r=Rt(1);et("mdc-form-field--align-end","before"==o.labelPosition),m(2),et("mdc-radio--disabled",o.disabled),m(2),f("id",o.inputId)("checked",o.checked)("disabled",o.disabled)("required",o.required),Je("name",o.name)("value",o.value)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby),m(5),f("matRippleTrigger",r)("matRippleDisabled",o._isRippleDisabled())("matRippleCentered",!0),m(2),f("for",o.inputId)}},dependencies:[rs],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return t})(),bte=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[St,Bn,as,St]})}return t})();class vte{constructor(n,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),o=i.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",i.setAttribute("aria-hidden","true"),i.value=n,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){const n=this._textarea;let e=!1;try{if(n){const i=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){const n=this._textarea;n&&(n.remove(),this._textarea=void 0)}}let yte=(()=>{class t{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),o=i.copy();return i.destroy(),o}beginCopy(e){return new vte(e,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(X(dt))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const wte=new oe("CDK_COPY_TO_CLIPBOARD_CONFIG");let Kw=(()=>{class t{constructor(e,i,o){this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new Re,this._pending=new Set,o&&null!=o.attempts&&(this.attempts=o.attempts)}copy(e=this.attempts){if(e>1){let i=e;const o=this._clipboard.beginCopy(this.text);this._pending.add(o);const r=()=>{const a=o.copy();a||! --i||this._destroyed?(this._currentTimeout=null,this._pending.delete(o),o.destroy(),this.copied.emit(a)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(r,1))};r()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}static#e=this.\u0275fac=function(i){return new(i||t)(_(yte),_(We),_(wte,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(i,o){1&i&&N("click",function(){return o.copy()})},inputs:{text:[pe.None,"cdkCopyToClipboard","text"],attempts:[pe.None,"cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}})}return t})(),xte=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();const lg=L(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function dg(t){return ji((n,e)=>{let i=!1;n.subscribe(Fi(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function xR(t=Cte){return ji((n,e)=>{let i=!1;n.subscribe(Fi(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function Cte(){return new lg}function dc(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Mt((o,r)=>t(o,r,i)):Ra,Nt(1),e?dg(n):xR(()=>new lg))}function Zw(t){return t<=0?()=>Fo:ji((n,e)=>{let i=[];n.subscribe(Fi(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}const Lt="primary",dh=Symbol("RouteTitle");class Tte{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Gl(t){return new Tte(t)}function Mte(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function DR(t){return t.length>0?t[t.length-1]:null}function vs(t){return Ol(t)?t:mu(t)?Zi(Promise.resolve(t)):Ke(t)}const Ete={exact:function TR(t,n,e){if(!uc(t.segments,n.segments)||!ug(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!TR(t.children[i],n.children[i],e))return!1;return!0},subset:MR},SR={exact:function Ote(t,n){return zr(t,n)},subset:function Ate(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>CR(t[e],n[e]))},ignored:()=>!0};function kR(t,n,e){return Ete[e.paths](t.root,n.root,e.matrixParams)&&SR[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function MR(t,n,e){return IR(t,n,n.segments,e)}function IR(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!uc(o,e)||n.hasChildren()||!ug(o,e,i))}if(t.segments.length===e.length){if(!uc(t.segments,e)||!ug(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!MR(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(uc(t.segments,o)&&ug(t.segments,o,i)&&t.children[Lt])&&IR(t.children[Lt],n,r,i)}}function ug(t,n,e){return n.every((i,o)=>SR[e](t[o].parameters,i.parameters))}class Wl{constructor(n=new yi([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Gl(this.queryParams),this._queryParamMap}toString(){return Nte.serialize(this)}}class yi{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return hg(this)}}class uh{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Gl(this.parameters),this._parameterMap}toString(){return AR(this)}}function uc(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let ql=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>new Qw,providedIn:"root"})}return t})();class Qw{parse(n){const e=new Wte(n);return new Wl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${hh(n.root,!0)}`,i=function Bte(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${mg(e)}=${mg(o)}`).join("&"):`${mg(e)}=${mg(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function Fte(t){return encodeURI(t)}(n.fragment)}`:""}`}}const Nte=new Qw;function hg(t){return t.segments.map(n=>AR(n)).join("/")}function hh(t,n){if(!t.hasChildren())return hg(t);if(n){const e=t.children[Lt]?hh(t.children[Lt],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Lt&&i.push(`${o}:${hh(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function Rte(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===Lt&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==Lt&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===Lt?[hh(t.children[Lt],!1)]:[`${o}:${hh(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Lt]?`${hg(t)}/${e[0]}`:`${hg(t)}/(${e.join("//")})`}}function ER(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mg(t){return ER(t).replace(/%3B/gi,";")}function Xw(t){return ER(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pg(t){return decodeURIComponent(t)}function OR(t){return pg(t.replace(/\+/g,"%20"))}function AR(t){return`${Xw(t.path)}${function Lte(t){return Object.entries(t).map(([n,e])=>`;${Xw(n)}=${Xw(e)}`).join("")}(t.parameters)}`}const Vte=/^[^\/()?;#]+/;function Jw(t){const n=t.match(Vte);return n?n[0]:""}const jte=/^[^\/()?;=#]+/,Hte=/^[^=?&#]+/,$te=/^[^&#]+/;class Wte{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yi([],{}):new yi([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Lt]=new yi(n,e)),i}parseSegment(){const n=Jw(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new ue(4009,!1);return this.capture(n),new uh(pg(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function zte(t){const n=t.match(jte);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=Jw(this.remaining);o&&(i=o,this.capture(i))}n[pg(e)]=pg(i)}parseQueryParam(n){const e=function Ute(t){const n=t.match(Hte);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function Gte(t){const n=t.match($te);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=OR(e),r=OR(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Jw(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new ue(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Lt);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[Lt]:new yi([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new ue(4011,!1)}}function PR(t){return t.segments.length>0?new yi([],{[Lt]:t}):t}function RR(t){const n={};for(const[i,o]of Object.entries(t.children)){const r=RR(o);if(i===Lt&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function qte(t){if(1===t.numberOfChildren&&t.children[Lt]){const n=t.children[Lt];return new yi(t.segments.concat(n.segments),n.children)}return t}(new yi(t.segments,n))}function Kl(t){return t instanceof Wl}function NR(t){let n;const o=PR(function e(r){const a={};for(const c of r.children){const u=e(c);a[c.outlet]=u}const s=new yi(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function FR(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return ex(o,o,o,e,i);const r=function Zte(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new BR(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([c,u])=>{s[c]="string"==typeof u?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new BR(e,n,i)}(n);if(r.toRoot())return ex(o,o,new yi([],{}),e,i);const a=function Yte(t,n,e){if(t.isAbsolute)return new gg(n,!0,0);if(!e)return new gg(n,!1,NaN);if(null===e.parent)return new gg(e,!0,0);const i=fg(t.commands[0])?0:1;return function Qte(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new ue(4005,!1);o=i.segments.length}return new gg(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?ph(a.segmentGroup,a.index,r.commands):VR(a.segmentGroup,a.index,r.commands);return ex(o,a.segmentGroup,s,e,i)}function fg(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function mh(t){return"object"==typeof t&&null!=t&&t.outlets}function ex(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([c,u])=>{r[c]=Array.isArray(u)?u.map(p=>`${p}`):`${u}`}),a=t===n?e:LR(t,n,e);const s=PR(RR(a));return new Wl(s,r,o)}function LR(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:LR(r,n,e)}),new yi(t.segments,i)}class BR{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&fg(i[0]))throw new ue(4003,!1);const o=i.find(mh);if(o&&o!==DR(i))throw new ue(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class gg{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function VR(t,n,e){if(t??=new yi([],{}),0===t.segments.length&&t.hasChildren())return ph(t,n,e);const i=function Jte(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(mh(s))break;const c=`${s}`,u=i0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!zR(c,u,a))return r;i+=2}else{if(!zR(c,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==Lt)&&t.children[Lt]&&1===t.numberOfChildren&&0===t.children[Lt].segments.length){const r=ph(t.children[Lt],n,e);return new yi(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=VR(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new yi(t.segments,o)}}function tx(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=tx(new yi([],{}),0,i))}),n}function jR(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function zR(t,n,e){return t==e.path&&zr(n,e.parameters)}const fh="imperative";var Zt=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Zt||{});class Hr{constructor(n,e){this.id=n,this.url=e}}class _g extends Hr{constructor(n,e,i="imperative",o=null){super(n,e),this.type=Zt.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Oa extends Hr{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=Zt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var tr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(tr||{}),bg=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(bg||{});class Zl extends Hr{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=Zt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Yl extends Hr{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=Zt.NavigationSkipped}}class vg extends Hr{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=Zt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class HR extends Hr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Zt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tie extends Hr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Zt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class iie extends Hr{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=Zt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class nie extends Hr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Zt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class oie extends Hr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Zt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rie{constructor(n){this.route=n,this.type=Zt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class aie{constructor(n){this.route=n,this.type=Zt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class sie{constructor(n){this.snapshot=n,this.type=Zt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cie{constructor(n){this.snapshot=n,this.type=Zt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lie{constructor(n){this.snapshot=n,this.type=Zt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class die{constructor(n){this.snapshot=n,this.type=Zt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class UR{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=Zt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ix{}class nx{constructor(n){this.url=n}}class uie{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new gh,this.attachRef=null}}let gh=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new uie,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class $R{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=ox(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=ox(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=rx(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return rx(n,this._root).map(e=>e.value)}}function ox(t,n){if(t===n.value)return n;for(const e of n.children){const i=ox(t,e);if(i)return i}return null}function rx(t,n){if(t===n.value)return[n];for(const e of n.children){const i=rx(t,e);if(i.length)return i.unshift(n),i}return[]}class Cr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ql(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class GR extends $R{constructor(n,e){super(n),this.snapshot=e,cx(this,n)}toString(){return this.snapshot.toString()}}function WR(t){const n=function hie(t){const r=new sx([],{},{},"",{},Lt,t,null,{});return new qR("",new Cr(r,[]))}(t),e=new ft([new uh("",{})]),i=new ft({}),o=new ft({}),r=new ft({}),a=new ft(""),s=new Xl(e,i,r,a,o,Lt,t,n.root);return s.snapshot=n.root,new GR(new Cr(s,[]),n)}class Xl{constructor(n,e,i,o,r,a,s,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(nt(u=>u[dh]))??Ke(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(nt(n=>Gl(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(nt(n=>Gl(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ax(t,n,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===n||"always"!==e&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...o?.data,...t._resolvedData}},o&&ZR(o)&&(i.resolve[dh]=o.title),i}class sx{get title(){return this.data?.[dh]}constructor(n,e,i,o,r,a,s,c,u){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=u}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??=Gl(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Gl(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class qR extends $R{constructor(n,e){super(e),this.url=n,cx(this,e)}toString(){return KR(this._root)}}function cx(t,n){n.value._routerState=t,n.children.forEach(e=>cx(t,e))}function KR(t){const n=t.children.length>0?` { ${t.children.map(KR).join(", ")} } `:"";return`${t.value}${n}`}function lx(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,zr(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),zr(n.params,e.params)||t.paramsSubject.next(e.params),function Ite(t,n){if(t.length!==n.length)return!1;for(let e=0;ezr(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||dx(t.parent,n.parent))}function ZR(t){return"string"==typeof t.title||null===t.title}let yg=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Lt,this.activateEvents=new Re,this.deactivateEvents=new Re,this.attachEvents=new Re,this.detachEvents=new Re,this.parentContexts=Ce(gh),this.location=Ce(bi),this.changeDetector=Ce(Ft),this.environmentInjector=Ce(Io),this.inputBinder=Ce(wg,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)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 ue(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new ue(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new mie(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[fi]})}return t})();class mie{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Xl?this.route:n===gh?this.childContexts:this.parent.get(n,e)}}const wg=new oe("");let YR=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=Qs([i.queryParams,i.params,i.data]).pipe(pn(([r,a,s],c)=>(s={...r,...a,...s},0===c?Ke(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function Qz(t){const n=jt(t);if(!n)return null;const e=new Zd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();function _h(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function fie(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return _h(t,i,o);return _h(t,i)})}(t,n,e);return new Cr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>_h(t,s)),a}}const i=function gie(t){return new Xl(new ft(t.url),new ft(t.params),new ft(t.queryParams),new ft(t.fragment),new ft(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>_h(t,r));return new Cr(i,o)}}const QR="ngNavigationCancelingError";function XR(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Kl(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=JR(!1,tr.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function JR(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[QR]=!0,e.cancellationCode=n,e}function eN(t){return!!t&&t[QR]}let tN=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["ng-component"]],standalone:!0,features:[OT],decls:1,vars:0,template:function(i,o){1&i&&D(0,"router-outlet")},dependencies:[yg],encapsulation:2})}return t})();function ux(t){const n=t.children&&t.children.map(ux),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Lt&&(e.component=tN),e}function Ur(t){return t.outlet||Lt}function bh(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Die{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),lx(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=Ql(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=Ql(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=Ql(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=Ql(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new die(r.value.snapshot))}),n.children.length&&this.forwardEvent(new cie(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(lx(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),lx(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=bh(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class iN{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class xg{constructor(n,e){this.component=n,this.route=e}}function Sie(t,n,e){const i=t._root;return vh(i,n?n._root:null,e,[i.value])}function Jl(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function HF(t){return null!==Bh(t)}(t)?n.get(t):t:i}function vh(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=Ql(n);return t.children.forEach(a=>{(function Tie(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const c=function Mie(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!uc(t.url,n.url);case"pathParamsOrQueryParamsChange":return!uc(t.url,n.url)||!zr(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!dx(t,n)||!zr(t.queryParams,n.queryParams);default:return!dx(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new iN(i)):(r.data=a.data,r._resolvedData=a._resolvedData),vh(t,n,r.component?s?s.children:null:e,i,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new xg(s.outlet.component,a))}else a&&yh(n,s,o),o.canActivateChecks.push(new iN(i)),vh(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>yh(s,e.getContext(a),o)),o}function yh(t,n,e){const i=Ql(t),o=t.value;Object.entries(i).forEach(([r,a])=>{yh(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new xg(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function wh(t){return"function"==typeof t}function nN(t){return t instanceof lg||"EmptyError"===t?.name}const Cg=Symbol("INITIAL_VALUE");function ed(){return pn(t=>Qs(t.map(n=>n.pipe(Nt(1),on(Cg)))).pipe(nt(n=>{for(const e of n)if(!0!==e){if(e===Cg)return Cg;if(!1===e||e instanceof Wl)return e}return!0}),Mt(n=>n!==Cg),Nt(1)))}function oN(t){return function HN(...t){return Tx(t)}(Kt(n=>{if(Kl(n))throw XR(0,n)}),nt(n=>!0===n))}class hx{constructor(n){this.segmentGroup=n||null}}class mx extends Error{constructor(n){super(),this.urlTree=n}}function td(t){return Vu(new hx(t))}class qie{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Ke(i);if(o.numberOfChildren>1||!o.children[Lt])return Vu(new ue(4e3,!1));o=o.children[Lt]}}applyRedirectCommands(n,e,i){const o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new mx(o);return o}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new Wl(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(n,c,i,o)}),new yi(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new ue(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const px={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Kie(t,n,e,i,o){const r=fx(t,n,e);return r.matched?(i=function bie(t,n){return t.providers&&!t._injector&&(t._injector=Qb(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function $ie(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?Ke(o.map(a=>{const s=Jl(a,t);return vs(function Rie(t){return t&&wh(t.canMatch)}(s)?s.canMatch(n,e):Ha(t,()=>s(n,e)))})).pipe(ed(),oN()):Ke(!0)}(i,n,e).pipe(nt(a=>!0===a?r:{...px}))):Ke(r)}function fx(t,n,e){if("**"===n.path)return function Zie(t){return{matched:!0,parameters:t.length>0?DR(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...px}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||Mte)(e,t,n);if(!o)return{...px};const r={};Object.entries(o.posParams??{}).forEach(([s,c])=>{r[s]=c.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function rN(t,n,e,i){return e.length>0&&function Xie(t,n,e){return e.some(i=>Dg(t,n,i)&&Ur(i)!==Lt)}(t,e,i)?{segmentGroup:new yi(n,Qie(i,new yi(e,t.children))),slicedSegments:[]}:0===e.length&&function Jie(t,n,e){return e.some(i=>Dg(t,n,i))}(t,e,i)?{segmentGroup:new yi(t.segments,Yie(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new yi(t.segments,t.children),slicedSegments:e}}function Yie(t,n,e,i){const o={};for(const r of e)if(Dg(t,n,r)&&!i[Ur(r)]){const a=new yi([],{});o[Ur(r)]=a}return{...i,...o}}function Qie(t,n){const e={};e[Lt]=n;for(const i of t)if(""===i.path&&Ur(i)!==Lt){const o=new yi([],{});e[Ur(i)]=o}return e}function Dg(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class ine{}class rne{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new qie(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new ue(4002,`'${n.segmentGroup}'`)}recognize(){const n=rN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(nt(e=>{const i=new sx([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Lt,this.rootComponentType,null,{}),o=new Cr(i,e),r=new qR("",o),a=function Kte(t,n,e=null,i=null){return FR(NR(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,Lt).pipe(Hi(i=>{if(i instanceof mx)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof hx?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,o=ax(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),n.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0).pipe(nt(r=>r instanceof Cr?[r]:[]))}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return Zi(o).pipe(Il(r=>{const a=i.children[r],s=function xie(t,n){const e=t.filter(i=>Ur(i)===n);return e.push(...t.filter(i=>Ur(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function Ste(t,n){return ji(function Dte(t,n,e,i,o){return(r,a)=>{let s=e,c=n,u=0;r.subscribe(Fi(a,p=>{const g=u++;c=s?t(c,p,g):(s=!0,p),i&&a.next(c)},o&&(()=>{s&&a.next(c),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),dg(null),function kte(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Mt((o,r)=>t(o,r,i)):Ra,Zw(1),e?dg(n):xR(()=>new lg))}(),In(r=>{if(null===r)return td(i);const a=aN(r);return function ane(t){t.sort((n,e)=>n.value.outlet===Lt?-1:e.value.outlet===Lt?1:n.value.outlet.localeCompare(e.value.outlet))}(a),Ke(a)}))}processSegment(n,e,i,o,r,a){return Zi(e).pipe(Il(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(Hi(c=>{if(c instanceof hx)return Ke(null);throw c}))),dc(s=>!!s),Hi(s=>{if(nN(s))return function tne(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?Ke(new ine):td(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function ene(t,n,e,i){return!!(Ur(t)===i||i!==Lt&&Dg(n,e,t))&&fx(n,t,e).matched}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):td(o):td(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:c,positionalParamSegments:u,remainingSegments:p}=fx(e,o,r);if(!s)return td(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const g=this.applyRedirects.applyRedirectCommands(c,o.redirectTo,u);return this.applyRedirects.lineralizeSegments(o,g).pipe(In(b=>this.processSegment(n,i,e,b.concat(p),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){const a=Kie(e,i,o,n);return"**"===i.path&&(e.children={}),a.pipe(pn(s=>s.matched?this.getChildConfig(n=i._injector??n,i,o).pipe(pn(({routes:c})=>{const u=i._loadedInjector??n,{consumedSegments:p,remainingSegments:g,parameters:b}=s,x=new sx(p,b,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function cne(t){return t.data||{}}(i),Ur(i),i.component??i._loadedComponent??null,i,function lne(t){return t.resolve||{}}(i)),{segmentGroup:T,slicedSegments:I}=rN(e,p,g,c);if(0===I.length&&T.hasChildren())return this.processChildren(u,c,T).pipe(nt(ie=>null===ie?null:new Cr(x,ie)));if(0===c.length&&0===I.length)return Ke(new Cr(x,[]));const z=Ur(i)===r;return this.processSegment(u,c,T,I,z?Lt:r,!0).pipe(nt(ie=>new Cr(x,ie instanceof Cr?[ie]:[])))})):td(e)))}getChildConfig(n,e,i){return e.children?Ke({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Ke({routes:e._loadedRoutes,injector:e._loadedInjector}):function Uie(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?Ke(!0):Ke(o.map(a=>{const s=Jl(a,t);return vs(function Eie(t){return t&&wh(t.canLoad)}(s)?s.canLoad(n,e):Ha(t,()=>s(n,e)))})).pipe(ed(),oN())}(n,e,i).pipe(In(o=>o?this.configLoader.loadChildren(n,e).pipe(Kt(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function Wie(t){return Vu(JR(!1,tr.GuardRejected))}())):Ke({routes:[],injector:n})}}function sne(t){const n=t.value.routeConfig;return n&&""===n.path}function aN(t){const n=[],e=new Set;for(const i of t){if(!sne(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=aN(i.children);n.push(new Cr(i.value,o))}return n.filter(i=>!e.has(i))}function sN(t){const n=t.children.map(e=>sN(e)).flat();return[t,...n]}function gx(t){return pn(n=>{const e=t(n);return e?Zi(e).pipe(nt(()=>n)):Ke(n)})}let cN=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===Lt);return i}getResolvedTitleForRoute(e){return e.data[dh]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>Ce(fne),providedIn:"root"})}return t})(),fne=(()=>{class t extends cN{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||t)(X(fH))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const id=new oe("",{providedIn:"root",factory:()=>({})}),nd=new oe("");let _x=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Ce(wM)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Ke(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=vs(e.loadComponent()).pipe(nt(lN),Kt(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Js(()=>{this.componentLoaders.delete(e)})),o=new R0(i,()=>new qe).pipe(P0());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Ke({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function gne(t,n,e,i){return vs(t.loadChildren()).pipe(nt(lN),In(o=>o instanceof PS||Array.isArray(o)?Ke(o):Zi(n.compileModuleAsync(o))),nt(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(nd,[],{optional:!0,self:!0}).flat()),{routes:a.map(ux),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(Js(()=>{this.childrenLoaders.delete(i)})),a=new R0(r,()=>new qe).pipe(P0());return this.childrenLoaders.set(i,a),a}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lN(t){return function _ne(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let bx=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>Ce(bne),providedIn:"root"})}return t})(),bne=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const dN=new oe(""),uN=new oe("");function vne(t,n,e){const i=t.get(uN),o=t.get(dt);return t.get(We).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r;const a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),function yne(t){return new Promise(n=>{XD(n,{injector:t})})}(t))),{onViewTransitionCreated:c}=i;return c&&Ha(t,()=>c({transition:s,from:n,to:e})),a})}let Sg=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new qe,this.transitionAbortSubject=new qe,this.configLoader=Ce(_x),this.environmentInjector=Ce(Io),this.urlSerializer=Ce(ql),this.rootContexts=Ce(gh),this.location=Ce(Ws),this.inputBindingEnabled=null!==Ce(wg,{optional:!0}),this.titleStrategy=Ce(cN),this.options=Ce(id,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Ce(bx),this.createViewTransition=Ce(dN,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Ke(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new aie(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new rie(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new ft({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:fh,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Mt(r=>0!==r.id),nt(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),pn(r=>{this.currentTransition=r;let a=!1,s=!1;return Ke(r).pipe(Kt(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),pn(c=>{const u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!u&&"reload"!==(c.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const g="";return this.events.next(new Yl(c.id,this.urlSerializer.serialize(c.rawUrl),g,bg.IgnoredSameUrlNavigation)),c.resolve(null),Fo}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Ke(c).pipe(pn(g=>{const b=this.transitions?.getValue();return this.events.next(new _g(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),b!==this.transitions?.getValue()?Fo:Promise.resolve(g)}),function dne(t,n,e,i,o,r){return In(a=>function nne(t,n,e,i,o,r,a="emptyOnly"){return new rne(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(nt(({state:s,tree:c})=>({...a,targetSnapshot:s,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Kt(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:g.urlAfterRedirects};const b=new HR(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(b)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:g,extractedUrl:b,source:x,restoredState:T,extras:I}=c,z=new _g(g,this.urlSerializer.serialize(b),x,T);this.events.next(z);const ie=WR(this.rootComponentType).snapshot;return this.currentTransition=r={...c,targetSnapshot:ie,urlAfterRedirects:b,extras:{...I,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=b,Ke(r)}{const g="";return this.events.next(new Yl(c.id,this.urlSerializer.serialize(c.extractedUrl),g,bg.IgnoredByUrlHandlingStrategy)),c.resolve(null),Fo}}),Kt(c=>{const u=new tie(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),nt(c=>(this.currentTransition=r={...c,guards:Sie(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},r)),function Nie(t,n){return In(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?Ke({...e,guardsResult:!0}):function Fie(t,n,e,i){return Zi(t).pipe(In(o=>function Hie(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Ke(r.map(s=>{const c=bh(n)??o,u=Jl(s,c);return vs(function Pie(t){return t&&wh(t.canDeactivate)}(u)?u.canDeactivate(t,n,e,i):Ha(c,()=>u(t,n,e,i))).pipe(dc())})).pipe(ed()):Ke(!0)}(o.component,o.route,e,n,i)),dc(o=>!0!==o,!0))}(a,i,o,t).pipe(In(s=>s&&function Iie(t){return"boolean"==typeof t}(s)?function Lie(t,n,e,i){return Zi(n).pipe(Il(o=>Ru(function Vie(t,n){return null!==t&&n&&n(new sie(t)),Ke(!0)}(o.route.parent,i),function Bie(t,n){return null!==t&&n&&n(new lie(t)),Ke(!0)}(o.route,i),function zie(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function kie(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Bl(()=>Ke(a.guards.map(c=>{const u=bh(a.node)??e,p=Jl(c,u);return vs(function Aie(t){return t&&wh(t.canActivateChild)}(p)?p.canActivateChild(i,t):Ha(u,()=>p(i,t))).pipe(dc())})).pipe(ed())));return Ke(r).pipe(ed())}(t,o.path,e),function jie(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Ke(!0);const o=i.map(r=>Bl(()=>{const a=bh(n)??e,s=Jl(r,a);return vs(function Oie(t){return t&&wh(t.canActivate)}(s)?s.canActivate(n,t):Ha(a,()=>s(n,t))).pipe(dc())}));return Ke(o).pipe(ed())}(t,o.route,e))),dc(o=>!0!==o,!0))}(i,r,t,n):Ke(s)),nt(s=>({...e,guardsResult:s})))})}(this.environmentInjector,c=>this.events.next(c)),Kt(c=>{if(r.guardsResult=c.guardsResult,Kl(c.guardsResult))throw XR(0,c.guardsResult);const u=new iie(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),Mt(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",tr.GuardRejected),!1)),gx(c=>{if(c.guards.canActivateChecks.length)return Ke(c).pipe(Kt(u=>{const p=new nie(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}),pn(u=>{let p=!1;return Ke(u).pipe(function une(t,n){return In(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Ke(e);const r=new Set(o.map(c=>c.route)),a=new Set;for(const c of r)if(!a.has(c))for(const u of sN(c))a.add(u);let s=0;return Zi(a).pipe(Il(c=>r.has(c)?function hne(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!ZR(o)&&(r[dh]=o.title),function mne(t,n,e,i){const o=Yw(t);if(0===o.length)return Ke({});const r={};return Zi(o).pipe(In(a=>function pne(t,n,e,i){const o=bh(n)??i,r=Jl(t,o);return vs(r.resolve?r.resolve(n,e):Ha(o,()=>r(n,e)))}(t[a],n,e,i).pipe(dc(),Kt(s=>{r[a]=s}))),Zw(1),Lf(r),Hi(a=>nN(a)?Fo:Vu(a)))}(r,t,n,i).pipe(nt(a=>(t._resolvedData=a,t.data=ax(t,t.parent,e).resolve,null)))}(c,i,t,n):(c.data=ax(c,c.parent,t).resolve,Ke(void 0))),Kt(()=>s++),Zw(1),In(c=>s===a.size?Ke(e):Fo))})}(this.paramsInheritanceStrategy,this.environmentInjector),Kt({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(u,"",tr.NoDataFromResolver)}}))}),Kt(u=>{const p=new oie(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}))}),gx(c=>{const u=p=>{const g=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(p.routeConfig).pipe(Kt(b=>{p.component=b}),nt(()=>{})));for(const b of p.children)g.push(...u(b));return g};return Qs(u(c.targetSnapshot.root)).pipe(dg(null),Nt(1))}),gx(()=>this.afterPreactivation()),pn(()=>{const{currentSnapshot:c,targetSnapshot:u}=r,p=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return p?Zi(p).pipe(nt(()=>r)):Ke(r)}),nt(c=>{const u=function pie(t,n,e){const i=_h(t,n._root,e?e._root:void 0);return new GR(i,n)}(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r={...c,targetRouterState:u},this.currentNavigation.targetRouterState=u,r}),Kt(()=>{this.events.next(new ix)}),((t,n,e,i)=>nt(o=>(new Die(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Nt(1),Kt({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Oa(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),ot(this.transitionAbortSubject.pipe(Kt(c=>{throw c}))),Js(()=>{!a&&!s&&this.cancelNavigationTransition(r,"",tr.SupersededByNewNavigation),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Hi(c=>{if(s=!0,eN(c))this.events.next(new Zl(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),function _ie(t){return eN(t)&&Kl(t.url)}(c)?this.events.next(new nx(c.url)):r.resolve(!1);else{this.events.next(new vg(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(c))}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return Fo}))}))}cancelNavigationTransition(e,i,o){const r=new Zl(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wne(t){return t!==fh}let xne=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>Ce(Dne),providedIn:"root"})}return t})();class Cne{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Dne=(()=>{class t extends Cne{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hN=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:()=>Ce(Sne),providedIn:"root"})}return t})(),Sne=(()=>{class t extends hN{constructor(){super(...arguments),this.location=Ce(Ws),this.urlSerializer=Ce(ql),this.options=Ce(id,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Ce(bx),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Wl,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=WR(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof _g)this.stateMemento=this.createStateMemento();else if(e instanceof Yl)this.rawUrlTree=i.initialUrl;else if(e instanceof HR){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else e instanceof ix?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof Zl&&(e.code===tr.GuardRejected||e.code===tr.NoDataFromResolver)?this.restoreHistory(i):e instanceof vg?this.restoreHistory(i,!0):e instanceof Oa&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&0===r&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=lt(t)))(o||t)}})();static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var xh=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(xh||{});function mN(t,n){t.events.pipe(Mt(e=>e instanceof Oa||e instanceof Zl||e instanceof vg||e instanceof Yl),nt(e=>e instanceof Oa||e instanceof Yl?xh.COMPLETE:e instanceof Zl&&(e.code===tr.Redirect||e.code===tr.SupersededByNewNavigation)?xh.REDIRECTING:xh.FAILED),Mt(e=>e!==xh.REDIRECTING),Nt(1)).subscribe(()=>{n()})}function kne(t){throw t}const Tne={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Mne={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pn=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Ce(dM),this.stateManager=Ce(hN),this.options=Ce(id,{optional:!0})||{},this.pendingTasks=Ce(Bs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Ce(Sg),this.urlSerializer=Ce(ql),this.location=Ce(Ws),this.urlHandlingStrategy=Ce(bx),this._events=new qe,this.errorHandler=this.options.errorHandler||kne,this.navigated=!1,this.routeReuseStrategy=Ce(xne),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Ce(nd,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Ce(wg,{optional:!0}),this.eventsSubscription=new de,this.isNgZoneEnabled=Ce(We)instanceof We&&We.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==o&&null!==r)if(this.stateManager.handleRouterEvent(i,r),i instanceof Zl&&i.code!==tr.Redirect&&i.code!==tr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Oa)this.navigated=!0;else if(i instanceof nx){const a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||wne(o.source)};this.scheduleNavigation(a,fh,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function Ene(t){return!(t instanceof ix||t instanceof nx)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),fh,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(r.state=c)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(ux),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:c}=i,u=c?this.currentUrlTree.fragment:a;let g,p=null;switch(s){case"merge":p={...this.currentUrlTree.queryParams,...r};break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}null!==p&&(p=this.removeEmptyProps(p));try{g=NR(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),g=this.currentUrlTree.root}return FR(g,e,p,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=Kl(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,fh,null,i)}navigate(e,i={skipLocationChange:!1}){return function Ine(t){for(let n=0;n(null!=r&&(i[o]=r),i),{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,c,u;a?(s=a.resolve,c=a.reject,u=a.promise):u=new Promise((g,b)=>{s=g,c=b});const p=this.pendingTasks.add();return mN(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(g=>Promise.reject(g))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$r=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new qe,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof Oa&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function M1(t,n,e){return function NL(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?T1:Uo}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Pn),_(Xl),io("tabindex"),_(sa),_(Be),_(Gs))};static#t=this.\u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&N("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&Je("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[pe.HasDecoratorInputTransform,"preserveFragment","preserveFragment",vl],skipLocationChange:[pe.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",vl],replaceUrl:[pe.HasDecoratorInputTransform,"replaceUrl","replaceUrl",vl],routerLink:"routerLink"},standalone:!0,features:[AS,fi]})}return t})();class pN{}let Pne=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Mt(e=>e instanceof Oa),Il(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=Qb(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Zi(o).pipe(Sl())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Ke(null);const r=o.pipe(In(a=>null===a?Ke(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?Zi([r,this.loader.loadComponent(i)]).pipe(Sl()):r})}static#e=this.\u0275fac=function(i){return new(i||t)(X(Pn),X(wM),X(Io),X(pN),X(_x))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const vx=new oe("");let fN=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",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 _g?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Oa?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Yl&&e.code===bg.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof UR&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new UR(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){Or()};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();function Gr(t,n){return{\u0275kind:t,\u0275providers:n}}function _N(){const t=Ce(Bi);return n=>{const e=t.get(Za);if(n!==e.components[0])return;const i=t.get(Pn),o=t.get(bN);1===t.get(yx)&&i.initialNavigation(),t.get(vN,null,Ht.Optional)?.setUpPreloading(),t.get(vx,null,Ht.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const bN=new oe("",{factory:()=>new qe}),yx=new oe("",{providedIn:"root",factory:()=>1}),vN=new oe("");function Lne(t){return Gr(0,[{provide:vN,useExisting:Pne},{provide:pN,useExisting:t}])}function Vne(t){return Gr(9,[{provide:dN,useValue:vne},{provide:uN,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const yN=new oe("ROUTER_FORROOT_GUARD"),jne=[Ws,{provide:ql,useClass:Qw},Pn,gh,{provide:Xl,useFactory:function gN(t){return t.routerState.root},deps:[Pn]},_x,[]];let wN=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[jne,[],{provide:nd,multi:!0,useValue:e},{provide:yN,useFactory:$ne,deps:[[Pn,new za,new Lc]]},{provide:id,useValue:i||{}},i?.useHash?{provide:Gs,useClass:i7}:{provide:Gs,useClass:nI},{provide:vx,useFactory:()=>{const t=Ce(g9),n=Ce(We),e=Ce(id),i=Ce(Sg),o=Ce(ql);return e.scrollOffset&&t.setOffset(e.scrollOffset),new fN(o,i,t,n,e)}},i?.preloadingStrategy?Lne(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?Gne(i):[],i?.bindToComponentInputs?Gr(8,[YR,{provide:wg,useExisting:YR}]).\u0275providers:[],i?.enableViewTransitions?Vne().\u0275providers:[],[{provide:xN,useFactory:_N},{provide:Bv,multi:!0,useExisting:xN}]]}}static forChild(e){return{ngModule:t,providers:[{provide:nd,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(i){return new(i||t)(X(yN,8))};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({})}return t})();function $ne(t){return"guarded"}function Gne(t){return["disabled"===t.initialNavigation?Gr(3,[{provide:Fv,multi:!0,useFactory:()=>{const n=Ce(Pn);return()=>{n.setUpLocationChangeListener()}}},{provide:yx,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Gr(2,[{provide:yx,useValue:0},{provide:Fv,multi:!0,deps:[Bi],useFactory:n=>{const e=n.get(e7,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(Pn),r=n.get(bN);mN(o,()=>{i(!0)}),n.get(Sg).afterPreactivation=()=>(i(!0),r.closed?Ke(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const xN=new oe("");var Qn=function(t){return t.DirectConnect="directConnect",t.DumpFile="dumpFile",t.SessionFile="sessionFile",t.ResumeSession="resumeSession",t}(Qn||{}),Qi=function(t){return t.Type="inputType",t.Config="config",t.SourceDbName="sourceDbName",t}(Qi||{}),Wr=function(t){return t.MySQL="MySQL",t.Postgres="Postgres",t.SQLServer="SQL Server",t.Oracle="Oracle",t}(Wr||{}),hi=function(t){return t.DbName="databaseName",t.Tables="tables",t.Table="tableName",t.Indexes="indexes",t.Index="indexName",t}(hi||{}),qr=function(t){return t.schemaOnly="Schema",t.dataOnly="Data",t.schemaAndData="Schema And Data",t}(qr||{}),od=function(t){return t.Table="table",t.Index="index",t}(od||{}),jn=function(t){return t.bulkMigration="bulk",t.lowDowntimeMigration="lowdt",t}(jn||{}),me=function(t){return t.MigrationMode="migrationMode",t.MigrationType="migrationType",t.IsTargetDetailSet="isTargetDetailSet",t.IsSourceConnectionProfileSet="isSourceConnectionProfileSet",t.IsSourceDetailsSet="isSourceDetailsSet",t.IsTargetConnectionProfileSet="isTargetConnectionProfileSet",t.IsMigrationDetailSet="isMigrationDetailSet",t.IsMigrationInProgress="isMigrationInProgress",t.HasDataMigrationStarted="hasDataMigrationStarted",t.HasSchemaMigrationStarted="hasSchemaMigrationStarted",t.SchemaProgressMessage="schemaProgressMessage",t.DataProgressMessage="dataProgressMessage",t.DataMigrationProgress="dataMigrationProgress",t.SchemaMigrationProgress="schemaMigrationProgress",t.HasForeignKeyUpdateStarted="hasForeignKeyUpdateStarted",t.ForeignKeyProgressMessage="foreignKeyProgressMessage",t.ForeignKeyUpdateProgress="foreignKeyUpdateProgress",t.GeneratingResources="generatingResources",t.NumberOfShards="numberOfShards",t.NumberOfInstances="numberOfInstances",t.isForeignKeySkipped="isForeignKeySkipped",t}(me||{}),si=function(t){return t.TargetDB="targetDb",t.Dialect="dialect",t.SourceConnProfile="sourceConnProfile",t.TargetConnProfile="targetConnProfile",t.ReplicationSlot="replicationSlot",t.Publication="publication",t}(si||{});var rd=function(t){return t[t.SchemaMigrationComplete=1]="SchemaMigrationComplete",t[t.SchemaCreationInProgress=2]="SchemaCreationInProgress",t[t.DataMigrationComplete=3]="DataMigrationComplete",t[t.DataWriteInProgress=4]="DataWriteInProgress",t[t.ForeignKeyUpdateInProgress=5]="ForeignKeyUpdateInProgress",t[t.ForeignKeyUpdateComplete=6]="ForeignKeyUpdateComplete",t}(rd||{});const CN=[{value:"google_standard_sql",displayName:"Google Standard SQL Dialect"},{value:"postgresql",displayName:"PostgreSQL Dialect"}],Sn={StorageMaxLength:0x8000000000000000,StringMaxLength:2621440,ByteMaxLength:10485760,DataTypes:["STRING","BYTES","VARCHAR"]},DN_GoogleStandardSQL=["BOOL","BYTES","DATE","FLOAT64","INT64","STRING","TIMESTAMP","NUMERIC","JSON"],DN_PostgreSQL=["BOOL","BYTEA","DATE","FLOAT8","INT8","VARCHAR","TIMESTAMPTZ","NUMERIC","JSONB"];var Kr=function(t){return t.DirectConnectForm="directConnectForm",t.IsConnectionSuccessful="isConnectionSuccessful",t}(Kr||{});function kg(t){return"mysql"==t||"mysqldump"==t?Wr.MySQL:"postgres"===t||"pgdump"===t||"pg_dump"===t?Wr.Postgres:"oracle"===t?Wr.Oracle:"sqlserver"===t?Wr.SQLServer:t}function SN(t){var n=document.createElement("a");let e=JSON.stringify(t).replace(/9223372036854776000/g,"9223372036854775807");n.href="data:text/json;charset=utf-8,"+encodeURIComponent(e),n.download=`${t.SessionName}_${t.DatabaseType}_${t.DatabaseName}.json`,n.click()}function kN(t){const n={};return Object.keys(t).forEach(e=>{n[e]=function Kne(t){return t.reduce((n,e)=>{const i=e.GenerationType;return n[i]||(n[i]=[]),n[i].push(e),n},{})}(t[e])}),n}let zn=(()=>{class t{constructor(e){this.http=e,this.url=window.location.origin}connectTodb(e,i){const{dbEngine:o,isSharded:r,hostName:a,port:s,dbName:c,userName:u,password:p}=e;return this.http.post(`${this.url}/connect`,{Driver:o,IsSharded:r,Host:a,Port:s,Database:c,User:u,Password:p,Dialect:i},{observe:"response"})}getLastSessionDetails(){return this.http.get(`${this.url}/GetLatestSessionDetails`)}getSchemaConversionFromDirectConnect(){return this.http.get(`${this.url}/convert/infoschema`)}getSchemaConversionFromDump(e){return this.http.post(`${this.url}/convert/dump`,e)}setSourceDBDetailsForDump(e){return this.http.post(`${this.url}/SetSourceDBDetailsForDump`,e)}setSourceDBDetailsForDirectConnect(e){const{dbEngine:i,hostName:o,port:r,dbName:a,userName:s,password:c}=e;return this.http.post(`${this.url}/SetSourceDBDetailsForDirectConnect`,{Driver:i,Host:o,Port:r,Database:a,User:s,Password:c})}setShardsSourceDBDetailsForBulk(e){const{dbConfigs:i,isRestoredSession:o}=e;let r=[];return i.forEach(a=>{r.push({Driver:a.dbEngine,Host:a.hostName,Port:a.port,Database:a.dbName,User:a.userName,Password:a.password,DataShardId:a.shardId})}),this.http.post(`${this.url}/SetShardsSourceDBDetailsForBulk`,{DbConfigs:r,IsRestoredSession:o})}setShardsSourceDBDetailsForDataflow(e){return this.http.post(`${this.url}/SetShardsSourceDBDetailsForDataflow`,{MigrationProfile:e})}setDatastreamDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetDatastreamDetailsForShardedMigrations`,e)}setGcsDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetGcsDetailsForShardedMigrations`,e)}setDataflowDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetDataflowDetailsForShardedMigrations`,e)}getSourceProfile(){return this.http.get(`${this.url}/GetSourceProfileConfig`)}getSchemaConversionFromSessionFile(e){return this.http.post(`${this.url}/convert/session`,e)}getDStructuredReport(){return this.http.get(`${this.url}/downloadStructuredReport`)}getDTextReport(){return this.http.get(`${this.url}/downloadTextReport`)}getDSpannerDDL(){return this.http.get(`${this.url}/downloadDDL`)}getIssueDescription(){return this.http.get(`${this.url}/issueDescription`)}getConversionRate(){return this.http.get(`${this.url}/conversion`)}getConnectionProfiles(e){return this.http.get(`${this.url}/GetConnectionProfiles?source=${e}`)}getGeneratedResources(){return this.http.get(`${this.url}/GetGeneratedResources`)}getStaticIps(){return this.http.get(`${this.url}/GetStaticIps`)}createConnectionProfile(e){return this.http.post(`${this.url}/CreateConnectionProfile`,e)}verifyJsonConfiguration(e){return this.http.post(`${this.url}/VerifyJsonConfiguration`,{MigrationProfile:e})}getSummary(){return this.http.get(`${this.url}/summary`)}getDdl(){return this.http.get(`${this.url}/ddl`)}getTypeMap(){return this.http.get(`${this.url}/typemap`)}getAutoGenMap(){return this.http.get(`${this.url}/autoGenMap`)}getSpannerDefaultTypeMap(){return this.http.get(`${this.url}/spannerDefaultTypeMap`)}reviewTableUpdate(e,i){return this.http.post(`${this.url}/typemap/reviewTableSchema?table=${e}`,i)}updateTable(e,i){return this.http.post(`${this.url}/typemap/table?table=${e}`,i)}removeInterleave(e){return this.http.post(`${this.url}/removeParent?tableId=${e}`,{})}restoreTables(e){return this.http.post(`${this.url}/restore/tables`,e)}restoreTable(e){return this.http.post(`${this.url}/restore/table?table=${e}`,{})}dropTable(e){return this.http.post(`${this.url}/drop/table?table=${e}`,{})}dropTables(e){return this.http.post(`${this.url}/drop/tables`,e)}updatePk(e){return this.http.post(`${this.url}/primaryKey`,e)}updateFk(e,i){return this.http.post(`${this.url}/update/fks?table=${e}`,i)}addColumn(e,i){return this.http.post(`${this.url}/AddColumn?table=${e}`,i)}removeFk(e,i){return this.http.post(`${this.url}/drop/fk?table=${e}`,{Id:i})}getTableWithErrors(){return this.http.get(`${this.url}/GetTableWithErrors`)}getSessions(){return this.http.get(`${this.url}/GetSessions`)}getConvForSession(e){return this.http.get(`${this.url}/GetSession/${e}`,{responseType:"blob"})}resumeSession(e){return this.http.post(`${this.url}/ResumeSession/${e}`,{})}saveSession(e){return this.http.post(`${this.url}/SaveRemoteSession`,e)}getSpannerConfig(){return this.http.get(`${this.url}/GetConfig`)}setSpannerConfig(e){return this.http.post(`${this.url}/SetSpannerConfig`,e)}getIsOffline(){return this.http.get(`${this.url}/IsOffline`)}updateIndex(e,i){return this.http.post(`${this.url}/update/indexes?table=${e}`,i)}dropIndex(e,i){return this.http.post(`${this.url}/drop/secondaryindex?table=${e}`,{Id:i})}restoreIndex(e,i){return this.http.post(`${this.url}/restore/secondaryIndex?tableId=${e}&indexId=${i}`,{})}getInterleaveStatus(e){return this.http.get(`${this.url}/setparent?table=${e}&update=false`)}setInterleave(e){return this.http.get(`${this.url}/setparent?table=${e}&update=true`)}getSourceDestinationSummary(){return this.http.get(`${this.url}/GetSourceDestinationSummary`)}migrate(e){return this.http.post(`${this.url}/Migrate`,e)}getProgress(){return this.http.get(`${this.url}/GetProgress`)}uploadFile(e){return this.http.post(`${this.url}/uploadFile`,e)}cleanUpStreamingJobs(){return this.http.post(`${this.url}/CleanUpStreamingJobs`,{})}applyRule(e){return this.http.post(`${this.url}/applyrule`,e)}dropRule(e){return this.http.post(`${this.url}/dropRule?id=${e}`,{})}getStandardTypeToPGSQLTypemap(){return this.http.get(`${this.url}/typemap/GetStandardTypeToPGSQLTypemap`)}getPGSQLToStandardTypeTypemap(){return this.http.get(`${this.url}/typemap/GetPGSQLToStandardTypeTypemap`)}checkBackendHealth(){return this.http.get(`${this.url}/ping`)}static#e=this.\u0275fac=function(i){return new(i||t)(X(mf))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ir=(()=>{class t{constructor(e){this.snackBar=e}openSnackBar(e,i,o){o||(o=10),this.snackBar.open(e,i,{duration:1e3*o})}openSnackBarWithoutTimeout(e,i){this.snackBar.open(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(X(OJ))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nr=(()=>{class t{constructor(){this.spannerConfigSub=new ft(!1),this.datebaseLoaderSub=new ft({type:"",databaseName:""}),this.viewAssesmentSub=new ft({srcDbType:"",connectionDetail:"",conversionRates:{good:0,ok:0,bad:0}}),this.tabToSpannerSub=new ft(!1),this.cancelDbLoadSub=new ft(!1),this.spannerConfig=this.spannerConfigSub.asObservable(),this.databaseLoader=this.datebaseLoaderSub.asObservable(),this.viewAssesment=this.viewAssesmentSub.asObservable(),this.tabToSpanner=this.tabToSpannerSub.asObservable(),this.cancelDbLoad=this.cancelDbLoadSub.asObservable()}openSpannerConfig(){this.spannerConfigSub.next(!0)}openDatabaseLoader(e,i){this.datebaseLoaderSub.next({type:e,databaseName:i})}closeDatabaseLoader(){this.datebaseLoaderSub.next({type:"",databaseName:""})}setViewAssesmentData(e){this.viewAssesmentSub.next(e)}setTabToSpanner(){this.tabToSpannerSub.next(!0)}cancelDbLoading(){this.cancelDbLoadSub.next(!0)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wx=(()=>{class t{constructor(){this.reviewTableChangesSub=new ft({Changes:[],DDL:""}),this.tableUpdateDetailSub=new ft({tableName:"",tableId:"",updateDetail:{UpdateCols:{}}}),this.reviewTableChanges=this.reviewTableChangesSub.asObservable(),this.tableUpdateDetail=this.tableUpdateDetailSub.asObservable()}setTableReviewChanges(e){this.reviewTableChangesSub.next(e)}setTableUpdateDetail(e){this.tableUpdateDetailSub.next(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hc=(()=>{class t{constructor(e){this.fetch=e,this.standardTypeToPGSQLTypeMapSub=new ft(new Map),this.pgSQLToStandardTypeTypeMapSub=new ft(new Map),this.standardTypeToPGSQLTypeMap=this.standardTypeToPGSQLTypeMapSub.asObservable(),this.pgSQLToStandardTypeTypeMap=this.pgSQLToStandardTypeTypeMapSub.asObservable()}getStandardTypeToPGSQLTypemap(){return this.fetch.getStandardTypeToPGSQLTypemap().subscribe({next:e=>{this.standardTypeToPGSQLTypeMapSub.next(new Map(Object.entries(e)))}})}getPGSQLToStandardTypeTypemap(){return this.fetch.getPGSQLToStandardTypeTypemap().subscribe({next:e=>{this.pgSQLToStandardTypeTypeMapSub.next(new Map(Object.entries(e)))}})}createTreeNode(e,i,o="",r=""){let a=Object.keys(e.SpSchema).filter(p=>e.SpSchema[p].Name.toLocaleLowerCase().includes(o.toLocaleLowerCase())),s=Object.keys(e.SrcSchema).filter(p=>-1==a.indexOf(p)&&e.SrcSchema[p].Name.replace(/[^A-Za-z0-9_]/g,"_").includes(o.toLocaleLowerCase())),c=this.getDeletedIndexes(e),u={name:`Tables (${a.length})`,type:hi.Tables,parent:"",pos:-1,isSpannerNode:!0,id:"",parentId:"",children:a.map(p=>{let g=e.SpSchema[p];return{name:g.Name,status:i[p],type:hi.Table,parent:""!=g.ParentId?e.SpSchema[g.ParentId]?.Name:"",pos:-1,isSpannerNode:!0,id:p,parentId:g.ParentId,children:[{name:`Indexes (${g.Indexes?g.Indexes.length:0})`,status:"",type:hi.Indexes,parent:e.SpSchema[p].Name,pos:-1,isSpannerNode:!0,id:"",parentId:p,children:g.Indexes?g.Indexes.map((b,x)=>({name:b.Name,type:hi.Index,parent:e.SpSchema[p].Name,pos:x,isSpannerNode:!0,id:b.Id,parentId:p})):[]}]}})};return"asc"===r||""===r?u.children?.sort((p,g)=>p.name>g.name?1:g.name>p.name?-1:0):"desc"===r&&u.children?.sort((p,g)=>g.name>p.name?1:p.name>g.name?-1:0),s.forEach(p=>{u.children?.push({name:e.SrcSchema[p].Name.replace(/[^A-Za-z0-9_]/g,"_"),status:"DARK",type:hi.Table,pos:-1,isSpannerNode:!0,children:[],isDeleted:!0,id:p,parent:"",parentId:""})}),u.children?.forEach((p,g)=>{c[p.id]&&c[p.id].forEach(b=>{u.children[g].children[0].children?.push({name:b.Name.replace(/[^A-Za-z0-9_]/g,"_"),type:hi.Index,parent:e.SpSchema[p.name]?.Name,pos:g,isSpannerNode:!0,isDeleted:!0,id:b.Id,parentId:p.id})})}),[{name:e.DatabaseName,children:[u],type:hi.DbName,parent:"",pos:-1,isSpannerNode:!0,id:"",parentId:""}]}createTreeNodeForSource(e,i,o="",r=""){let a=Object.keys(e.SrcSchema).filter(c=>e.SrcSchema[c].Name.toLocaleLowerCase().includes(o.toLocaleLowerCase())),s={name:`Tables (${a.length})`,type:hi.Tables,pos:-1,isSpannerNode:!1,id:"",parent:"",parentId:"",children:a.map(c=>{let u=e.SrcSchema[c];return{name:u.Name,status:i[c]?i[c]:"NONE",type:hi.Table,parent:"",pos:-1,isSpannerNode:!1,id:c,parentId:"",children:[{name:`Indexes (${u.Indexes?.length||"0"})`,status:"",type:hi.Indexes,parent:"",pos:-1,isSpannerNode:!1,id:"",parentId:"",children:u.Indexes?u.Indexes.map((p,g)=>({name:p.Name,type:hi.Index,parent:e.SrcSchema[c].Name,isSpannerNode:!1,pos:g,id:p.Id,parentId:c})):[]}]}})};return"asc"===r||""===r?s.children?.sort((c,u)=>c.name>u.name?1:u.name>c.name?-1:0):"desc"===r&&s.children?.sort((c,u)=>u.name>c.name?1:c.name>u.name?-1:0),[{name:e.DatabaseName,children:[s],type:hi.DbName,isSpannerNode:!1,parent:"",pos:-1,id:"",parentId:""}]}getColumnMapping(e,i){let u,o=this.getSpannerTableNameFromId(e,i),r=i.SrcSchema[e].ColIds,a=i.SpSchema[e]?i.SpSchema[e].ColIds:null,s=i.SrcSchema[e].PrimaryKeys,c=a?i.SpSchema[e].PrimaryKeys:null;this.standardTypeToPGSQLTypeMap.subscribe(b=>{u=b});const p=Sn.StorageMaxLength,g=i.SrcSchema[e].ColIds.map((b,x)=>{let T;o&&i.SpSchema[e].PrimaryKeys.forEach(ie=>{ie.ColId==b&&(T=ie.Order)});let I=o?i.SpSchema[e]?.ColDefs[b]:null,z=I?u.get(I.T.Name):"";return{spOrder:I?x+1:"",srcOrder:x+1,spColName:I?I.Name:"",spDataType:I?"postgresql"===i.SpDialect?void 0===z?I.T.Name:z:I.T.Name:"",srcColName:i.SrcSchema[e].ColDefs[b].Name,srcDataType:i.SrcSchema[e].ColDefs[b].Type.Name,spIsPk:!(!I||!o)&&-1!==i.SpSchema[e].PrimaryKeys?.map(ie=>ie.ColId).indexOf(b),srcIsPk:!!s&&-1!==s.map(ie=>ie.ColId).indexOf(b),spIsNotNull:!(!I||!o)&&I.NotNull,srcIsNotNull:i.SrcSchema[e].ColDefs[b].NotNull,srcId:b,spId:I?b:"",spColMaxLength:0!=I?.T.Len?I?.T.Len!=p?I?.T.Len:"MAX":"",srcColMaxLength:null!=i.SrcSchema[e].ColDefs[b].Type.Mods?i.SrcSchema[e].ColDefs[b].Type.Mods[0]:"",spAutoGen:null!=I?.AutoGen?I?.AutoGen:{Name:"",GenerationType:""}}});return a&&a.forEach((b,x)=>{if(r.indexOf(b)<0){let T=i.SpSchema[e].ColDefs[b],I=o?i.SpSchema[e]?.ColDefs[b]:null,z=I?u.get(I.T.Name):"";g.push({spOrder:x+1,srcOrder:"",spColName:T.Name,spDataType:I?"postgresql"===i.SpDialect?void 0===z?I.T.Name:z:I.T.Name:"",srcColName:"",srcDataType:"",spIsPk:!!c&&-1!==c.map(ie=>ie.ColId).indexOf(b),srcIsPk:!1,spIsNotNull:T.NotNull,srcIsNotNull:!1,srcId:"",spId:b,srcColMaxLength:"",spColMaxLength:I?.T.Len,spAutoGen:T.AutoGen})}}),g}getPkMapping(e){let i=e.filter(o=>o.spIsPk||o.srcIsPk);return JSON.parse(JSON.stringify(i))}getFkMapping(e,i){let o=i.SrcSchema[e]?.ForeignKeys;return o?o.map(r=>{let a=this.getSpannerFkFromId(i,e,r.Id),s=a?a.ColIds.map(x=>i.SpSchema[e].ColDefs[x].Name):[],c=a?a.ColIds:[],u=r.ColIds.map(x=>i.SrcSchema[e].ColDefs[x].Name),p=a?a.ReferColumnIds.map(x=>i.SpSchema[r.ReferTableId].ColDefs[x].Name):[],g=a?a.ReferColumnIds:[],b=r.ReferColumnIds.map(x=>i.SrcSchema[r.ReferTableId].ColDefs[x].Name);return{srcFkId:r.Id,spFkId:a?.Id,spName:a?a.Name:"",srcName:r.Name,spColumns:s,srcColumns:u,spReferTable:a?i.SpSchema[a.ReferTableId].Name:"",srcReferTable:i.SrcSchema[r.ReferTableId].Name,spReferColumns:p,srcReferColumns:b,spColIds:c,spReferColumnIds:g,spReferTableId:a?a.ReferTableId:""}}):[]}getIndexMapping(e,i,o){let r=this.getSourceIndexFromId(i,e,o),a=this.getSpannerIndexFromId(i,e,o),s=r?r.Keys.map(p=>p.ColId):[],c=a?a.Keys.map(p=>p.ColId):[],u=r?r.Keys.map(p=>{let g=this.getSpannerIndexKeyFromColId(i,e,o,p.ColId);return{srcColId:p.ColId,spColId:g?g.ColId:void 0,srcColName:i.SrcSchema[e].ColDefs[p.ColId].Name,srcOrder:p.Order,srcDesc:p.Desc,spColName:g?i.SpSchema[e].ColDefs[g.ColId].Name:"",spOrder:g?g.Order:void 0,spDesc:g?g.Desc:void 0}}):[];return c.forEach(p=>{if(-1==s.indexOf(p)){let g=this.getSpannerIndexKeyFromColId(i,e,o,p);u.push({srcColName:"",srcOrder:"",srcColId:void 0,srcDesc:void 0,spColName:i.SpSchema[e].ColDefs[p].Name,spOrder:g?g.Order:void 0,spDesc:g?g.Desc:void 0,spColId:g?g.ColId:void 0})}}),u}getSpannerFkFromId(e,i,o){let r=null;return e.SpSchema[i]?.ForeignKeys?.forEach(a=>{a.Id==o&&(r=a)}),r}getSourceIndexFromId(e,i,o){let r=null;return e.SrcSchema[i]?.Indexes?.forEach(a=>{a.Id==o&&(r=a)}),r}getSpannerIndexFromId(e,i,o){let r=null;return e.SpSchema[i]?.Indexes?.forEach(a=>{a.Id==o&&(r=a)}),r}getSpannerIndexKeyFromColId(e,i,o,r){let a=null,s=e.SpSchema[i]?.Indexes?e.SpSchema[i].Indexes.filter(c=>c.Id==o):null;if(s&&s.length>0){let c=s[0].Keys.filter(u=>u.ColId==r);a=c.length>0?c[0]:null}return a}getSourceIndexKeyFromColId(e,i,o,r){let a=null,s=e.SrcSchema[i]?.Indexes?e.SrcSchema[i].Indexes.filter(c=>c.Id==o):null;if(s&&s.length>0){let c=s[0].Keys.filter(u=>u.ColId==r);a=c.length>0?c[0]:null}return a}getSpannerColDefFromId(e,i,o){let r=null;return Object.keys(o.SpSchema[e].ColDefs).forEach(a=>{o.SpSchema[e].ColDefs[a].Id==i&&(r=o.SpSchema[e].ColDefs[a])}),r}getSourceTableNameFromId(e,i){let o="";return Object.keys(i.SrcSchema).forEach(r=>{i.SrcSchema[r].Id===e&&(o=i.SrcSchema[r].Name)}),o}getSpannerTableNameFromId(e,i){let o=null;return Object.keys(i.SpSchema).forEach(r=>{i.SpSchema[r].Id===e&&(o=i.SpSchema[r].Name)}),o}getTableIdFromSpName(e,i){let o="";return Object.keys(i.SpSchema).forEach(r=>{i.SpSchema[r].Name===e&&(o=i.SpSchema[r].Id)}),o}getColIdFromSpannerColName(e,i,o){let r="";return Object.keys(o.SpSchema[i].ColDefs).forEach(a=>{o.SpSchema[i].ColDefs[a].Name===e&&(r=o.SpSchema[i].ColDefs[a].Id)}),r}getDeletedIndexes(e){let i={};return Object.keys(e.SpSchema).forEach(o=>{let r=e.SpSchema[o],a=e.SrcSchema[o],s=r&&r.Indexes?r.Indexes.map(u=>u.Id):[],c=a&&a.Indexes?a.Indexes?.filter(u=>!s.includes(u.Id)):null;r&&a&&c&&c.length>0&&(i[o]=c)}),i}static#e=this.\u0275fac=function(i){return new(i||t)(X(zn))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$i=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snackbar=i,this.clickEvent=o,this.tableUpdatePubSub=r,this.conversion=a,this.convSubject=new ft({}),this.conversionRateSub=new ft({}),this.typeMapSub=new ft({}),this.defaultTypeMapSub=new ft({}),this.autoGenMapSub=new ft({}),this.summarySub=new ft(new Map),this.ddlSub=new ft({}),this.tableInterleaveStatusSub=new ft({}),this.sessionsSub=new ft({}),this.configSub=new ft({}),this.currentSessionSub=new ft({}),this.isOfflineSub=new ft(!1),this.ruleMapSub=new ft([]),this.rule=this.ruleMapSub.asObservable(),this.conv=this.convSubject.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.conversionRate=this.conversionRateSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.typeMap=this.typeMapSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.defaultTypeMap=this.defaultTypeMapSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.autoGenMap=this.autoGenMapSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.summary=this.summarySub.asObservable(),this.ddl=this.ddlSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.tableInterleaveStatus=this.tableInterleaveStatusSub.asObservable(),this.sessions=this.sessionsSub.asObservable(),this.config=this.configSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.isOffline=this.isOfflineSub.asObservable(),this.currentSession=this.currentSessionSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.getLastSessionDetails(),this.getConfig(),this.updateIsOffline()}resetStore(){this.convSubject.next({}),this.conversionRateSub.next({}),this.typeMapSub.next({}),this.defaultTypeMapSub.next({}),this.autoGenMapSub.next({}),this.summarySub.next(new Map),this.ddlSub.next({}),this.tableInterleaveStatusSub.next({})}getDdl(){this.fetch.getDdl().subscribe(e=>{this.ddlSub.next(e)})}getSchemaConversionFromDb(){this.fetch.getSchemaConversionFromDirectConnect().subscribe({next:e=>{this.convSubject.next(e),this.ruleMapSub.next(e?.Rules)},error:e=>{this.clickEvent.closeDatabaseLoader(),this.snackbar.openSnackBar(e.error,"Close")}})}getAllSessions(){this.fetch.getSessions().subscribe({next:e=>{this.sessionsSub.next(e)},error:e=>{this.snackbar.openSnackBar("Unable to fetch sessions.","Close")}})}getLastSessionDetails(){this.fetch.getLastSessionDetails().subscribe({next:e=>{this.convSubject.next(e),this.ruleMapSub.next(e?.Rules)},error:e=>{this.snackbar.openSnackBar(e.error,"Close")}})}getSchemaConversionFromDump(e){return this.fetch.getSchemaConversionFromDump(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.clickEvent.closeDatabaseLoader(),this.snackbar.openSnackBar(i.error,"Close")}})}getSchemaConversionFromSession(e){return this.fetch.getSchemaConversionFromSessionFile(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.snackbar.openSnackBar(i.error,"Close"),this.clickEvent.closeDatabaseLoader()}})}getSchemaConversionFromResumeSession(e){this.fetch.resumeSession(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}getConversionRate(){this.fetch.getConversionRate().subscribe(e=>{this.conversionRateSub.next(e)})}getRateTypemapAndSummary(){return C0({rates:this.fetch.getConversionRate(),typeMap:this.fetch.getTypeMap(),defaultTypeMap:this.fetch.getSpannerDefaultTypeMap(),summary:this.fetch.getSummary(),ddl:this.fetch.getDdl(),autoGenMap:this.fetch.getAutoGenMap()}).pipe(Hi(e=>Ke(e))).subscribe(({rates:e,typeMap:i,defaultTypeMap:o,summary:r,ddl:a,autoGenMap:s})=>{this.conversionRateSub.next(e),this.typeMapSub.next(i),this.defaultTypeMapSub.next(o),this.summarySub.next(new Map(Object.entries(r))),this.ddlSub.next(a),this.autoGenMapSub.next(s)})}getSummary(){return this.fetch.getSummary().subscribe({next:e=>{this.summarySub.next(new Map(Object.entries(e)))}})}reviewTableUpdate(e,i){return this.fetch.reviewTableUpdate(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>{if(o.error)return o.error;{let r;return this.conversion.standardTypeToPGSQLTypeMap.subscribe(a=>{r=a}),this.conv.subscribe(a=>{o.Changes.forEach(s=>{s.InterleaveColumnChanges.forEach(c=>{if("postgresql"===a.SpDialect){let u=r.get(c.Type),p=r.get(c.UpdateType);c.Type=void 0===u?c.Type:u,c.UpdateType=void 0===p?c.UpdateType:p}Sn.DataTypes.indexOf(c.Type.toString())>-1&&(c.Type+=this.updateColumnSize(c.Size)),Sn.DataTypes.indexOf(c.UpdateType.toString())>-1&&(c.UpdateType+=this.updateColumnSize(c.UpdateSize))})})}),this.tableUpdatePubSub.setTableReviewChanges(o),""}}))}updateColumnSize(e){return e===Sn.StorageMaxLength?"(MAX)":"("+e+")"}updateTable(e,i){return this.fetch.updateTable(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}removeInterleave(e){return this.fetch.removeInterleave(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>(this.getDdl(),i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),""))))}restoreTables(e){return this.fetch.restoreTables(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Selected tables restored successfully","Close",5),"")))}restoreTable(e){return this.fetch.restoreTable(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Table restored successfully","Close",5),"")))}dropTable(e){return this.fetch.dropTable(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Table skipped successfully","Close",5),"")))}dropTables(e){return this.fetch.dropTables(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Selected tables skipped successfully","Close",5),"")))}updatePk(e){return this.fetch.updatePk(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?i.error:(this.convSubject.next(i),this.getDdl(),"")))}updateFkNames(e,i){return this.fetch.updateFk(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}dropFk(e,i){return this.fetch.removeFk(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}getConfig(){this.fetch.getSpannerConfig().subscribe(e=>{this.configSub.next(e)})}updateConfig(e){this.configSub.next(e)}updateIsOffline(){this.fetch.getIsOffline().subscribe(e=>{this.isOfflineSub.next(e)})}addColumn(e,i){this.fetch.addColumn(e,i).subscribe({next:o=>{this.convSubject.next(o),this.getDdl(),this.snackbar.openSnackBar("Added new column.","Close",5)},error:o=>{this.snackbar.openSnackBar(o.error,"Close")}})}applyRule(e){this.fetch.applyRule(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules),this.getDdl(),this.snackbar.openSnackBar("Added new rule.","Close",5)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}updateIndex(e,i){return this.fetch.updateIndex(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}dropIndex(e,i){return this.fetch.dropIndex(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?(this.snackbar.openSnackBar(o.error,"Close"),o.error):(this.convSubject.next(o),this.getDdl(),this.ruleMapSub.next(o?.Rules),this.snackbar.openSnackBar("Index skipped successfully","Close",5),"")))}restoreIndex(e,i){return this.fetch.restoreIndex(e,i).pipe(Hi(o=>Ke({error:o.error})),Kt(console.log),nt(o=>o.error?(this.snackbar.openSnackBar(o.error,"Close"),o.error):(this.convSubject.next(o),this.snackbar.openSnackBar("Index restored successfully","Close",5),"")))}getInterleaveConversionForATable(e){this.fetch.getInterleaveStatus(e).subscribe(i=>{this.tableInterleaveStatusSub.next(i)})}setInterleave(e){this.fetch.setInterleave(e).subscribe(i=>{this.convSubject.next(i.sessionState),this.getDdl(),i.sessionState&&this.convSubject.next(i.sessionState)})}uploadFile(e){return this.fetch.uploadFile(e).pipe(Hi(i=>Ke({error:i.error})),Kt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar("File upload failed","Close"),i.error):(this.snackbar.openSnackBar("File uploaded successfully","Close",5),"")))}dropRule(e){return this.fetch.dropRule(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules),this.getDdl(),this.snackbar.openSnackBar("Rule deleted successfully","Close",5)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(X(zn),X(ir),X(nr),X(wx),X(hc))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Tg=(()=>{class t{constructor(){this.isLoadingSub=new ft(!1),this.isLoading=this.isLoadingSub.asObservable()}startLoader(){this.isLoadingSub.next(!0)}stopLoader(){this.isLoadingSub.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zne(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.displayName," ")}}function Yne(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.displayName," ")}}function Qne(t,n){1&t&&(d(0,"b"),h(1,"Note: For sharded migrations, please enter below the details of the shard you want Spanner migration tool to read the schema from. The complete connection configuration of all the shards will be taken in later, during data migration."),l())}function Xne(t,n){if(1&t&&(d(0,"div",19)(1,"div",20)(2,"mat-form-field",21)(3,"mat-label"),h(4,"Sharded Migration"),l(),d(5,"mat-select",22),y(6,Yne,2,2,"mat-option",6),l()(),d(7,"mat-icon",23),h(8,"info"),l(),d(9,"mat-chip",24),h(10," Preview "),l()(),D(11,"br"),y(12,Qne,2,0,"b",25),l()),2&t){const e=w();m(6),f("ngForOf",e.shardedResponseList),m(3),f("removable",!1),m(3),f("ngIf",e.connectForm.value.isSharded)}}function Jne(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.displayName," ")}}function eoe(t,n){1&t&&(d(0,"mat-icon",26),h(1," check_circle "),l())}let toe=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.fetch=i,this.data=o,this.loader=r,this.snackbarService=a,this.clickEvent=s,this.connectForm=new ei({dbEngine:new K("",[ce.required]),isSharded:new K(!1),hostName:new K("",[ce.required]),port:new K("",[ce.required,ce.pattern("^[0-9]+$")]),userName:new K("",[ce.required]),password:new K(""),dbName:new K("",[ce.required]),dialect:new K("",[ce.required])}),this.dbEngineList=[{value:"mysql",displayName:"MySQL"},{value:"sqlserver",displayName:"SQL Server"},{value:"oracle",displayName:"Oracle"},{value:"postgres",displayName:"PostgreSQL"}],this.isTestConnectionSuccessful=!1,this.connectRequest=null,this.getSchemaRequest=null,this.shardedResponseList=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.dialect=CN}ngOnInit(){null!=localStorage.getItem(Kr.DirectConnectForm)&&this.connectForm.setValue(JSON.parse(localStorage.getItem(Kr.DirectConnectForm))),null!=localStorage.getItem(Kr.IsConnectionSuccessful)&&(this.isTestConnectionSuccessful="true"===localStorage.getItem(Kr.IsConnectionSuccessful)),this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.connectRequest&&(this.connectRequest.unsubscribe(),this.getSchemaRequest&&this.getSchemaRequest.unsubscribe())}})}testConn(){this.clickEvent.openDatabaseLoader("test-connection",this.connectForm.value.dbName);const{dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c,dialect:u}=this.connectForm.value;localStorage.setItem(Kr.DirectConnectForm,JSON.stringify(this.connectForm.value)),this.connectRequest=this.fetch.connectTodb({dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c},u).subscribe({next:()=>{this.snackbarService.openSnackBar("SUCCESS! Spanner migration tool was able to successfully ping source database","Close",3),localStorage.setItem(Kr.IsConnectionSuccessful,"true"),this.clickEvent.closeDatabaseLoader()},error:g=>{this.isTestConnectionSuccessful=!1,this.snackbarService.openSnackBar(g.error,"Close"),localStorage.setItem(Kr.IsConnectionSuccessful,"false"),this.clickEvent.closeDatabaseLoader()}})}connectToDb(){this.clickEvent.openDatabaseLoader("direct",this.connectForm.value.dbName),window.scroll(0,0),this.data.resetStore(),localStorage.clear();const{dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c,dialect:u}=this.connectForm.value;localStorage.setItem(Kr.DirectConnectForm,JSON.stringify(this.connectForm.value)),this.connectRequest=this.fetch.connectTodb({dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c},u).subscribe({next:()=>{this.getSchemaRequest=this.data.getSchemaConversionFromDb(),this.data.conv.subscribe(g=>{localStorage.setItem(Qi.Config,JSON.stringify({dbEngine:e,hostName:o,port:r,userName:a,password:s,dbName:c})),localStorage.setItem(Qi.Type,Qn.DirectConnect),localStorage.setItem(Qi.SourceDbName,kg(e)),this.clickEvent.closeDatabaseLoader(),localStorage.removeItem(Kr.DirectConnectForm),this.router.navigate(["/workspace"])})},error:g=>{this.snackbarService.openSnackBar(g.error,"Close"),this.clickEvent.closeDatabaseLoader()}})}refreshDbSpecifcConnectionOptions(){this.connectForm.value.isSharded=!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(Pn),_(zn),_($i),_(Tg),_(ir),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-direct-connection"]],decls:54,vars:8,consts:[["id","direct-connection-component",1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup"],[1,"primary-header"],["appearance","outline",1,"full-width"],["formControlName","dbEngine","id","dbengine-input",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","shardingConfig",4,"ngIf"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName","id","hostname-input"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port","id","port-input"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName","id","username-input"],["matInput","","name","password","type","password","formControlName","password","id","password-input"],["matInput","","name","dbname","type","text","formControlName","dbName","id","dbname-input"],["matSelect","","name","dialect","formControlName","dialect","appearance","outline","id","spanner-dialect-input"],["class","success","matTooltip","Source Connection Successful","matTooltipPosition","above",4,"ngIf"],["mat-raised-button","","id","test-connect-btn","type","submit","color","accent",3,"disabled","click"],["mat-raised-button","","id","connect-btn","type","submit","color","primary",3,"disabled","click"],["mat-raised-button","",3,"routerLink"],[3,"value"],[1,"shardingConfig"],[1,"flex-container"],["appearance","outline",1,"flex-item"],["formControlName","isSharded"],["matTooltip","Configure multiple source database instances (shards) and consolidate them by migrating to a single Cloud Spanner instance to take advantage of Spanner's horizontal scalability and consistency semantics.",1,"flex-item","configure"],[1,"flex-item","rounded-chip",3,"removable"],[4,"ngIf"],["matTooltip","Source Connection Successful","matTooltipPosition","above",1,"success"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"form",2)(3,"h3",3),h(4,"Connect to Source Database"),l(),d(5,"mat-form-field",4)(6,"mat-label"),h(7,"Database Engine"),l(),d(8,"mat-select",5),N("selectionChange",function(){return o.refreshDbSpecifcConnectionOptions()}),y(9,Zne,2,2,"mat-option",6),l()(),y(10,Xne,13,3,"div",7),D(11,"br"),d(12,"h3",3),h(13,"Connection Detail"),l(),d(14,"mat-form-field",4)(15,"mat-label"),h(16,"Hostname"),l(),D(17,"input",8),l(),d(18,"mat-form-field",4)(19,"mat-label"),h(20,"Port"),l(),D(21,"input",9),d(22,"mat-error"),h(23," Only numbers are allowed. "),l()(),D(24,"br"),d(25,"mat-form-field",4)(26,"mat-label"),h(27,"User name"),l(),D(28,"input",10),l(),d(29,"mat-form-field",4)(30,"mat-label"),h(31,"Password"),l(),D(32,"input",11),l(),D(33,"br"),d(34,"mat-form-field",4)(35,"mat-label"),h(36,"Database Name"),l(),D(37,"input",12),l(),D(38,"br"),d(39,"h3",3),h(40,"Spanner Dialect"),l(),d(41,"mat-form-field",4)(42,"mat-label"),h(43,"Spanner dialect"),l(),d(44,"mat-select",13),y(45,Jne,2,2,"mat-option",6),l()(),D(46,"br"),y(47,eoe,2,0,"mat-icon",14),d(48,"button",15),N("click",function(){return o.testConn()}),h(49," Test Connection "),l(),d(50,"button",16),N("click",function(){return o.connectToDb()}),h(51," Connect "),l(),d(52,"button",17),h(53,"Cancel"),l()()()()),2&i&&(m(2),f("formGroup",o.connectForm),m(7),f("ngForOf",o.dbEngineList),m(),f("ngIf","mysql"===o.connectForm.value.dbEngine),m(35),f("ngForOf",o.dialect),m(2),f("ngIf",o.isTestConnectionSuccessful),m(),f("disabled",!o.connectForm.valid),m(2),f("disabled",!o.connectForm.valid||!o.isTestConnectionSuccessful),m(2),f("routerLink","/"))},dependencies:[dn,Tt,$r,Yt,Ii,Ri,Pi,iw,rn,uo,En,On,Oi,xi,Ui,Ai,Yi,lc,Dn],styles:[".connect-load-database-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:0}.configure[_ngcontent-%COMP%]{color:#1967d2}.flex-container[_ngcontent-%COMP%]{display:flex;align-items:center}.flex-item[_ngcontent-%COMP%]{margin-right:8px;align-self:baseline}.rounded-chip[_ngcontent-%COMP%]{background-color:#fff!important;color:#0f33ab!important;border-radius:16px;padding:6px 12px;border:1px solid black;cursor:not-allowed;pointer-events:none}"]})}return t})();function ioe(t,n){if(1&t){const e=_e();d(0,"button",7),N("click",function(){return ae(e),se(w().onConfirm())}),h(1," Continue "),l()}}let jo=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,void 0===i.title&&(i.title="Update can not be saved")}ngOnInit(){}onConfirm(){this.dialogRef.close(!0)}onDismiss(){this.dialogRef.close(!1)}getIconFromMessageType(){switch(this.data.type){case"warning":return"warning";case"error":return"error";case"success":return"check_circle";default:return"message"}}static#e=this.\u0275fac=function(i){return new(i||t)(_(An),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-infodialog"]],decls:9,vars:3,consts:[[1,"dialog-container"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"dialog-message",3,"innerHtml"],["mat-dialog-actions","",1,"dialog-action"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h1",1),h(2),l(),d(3,"div",2),D(4,"p",3),l(),d(5,"div",4)(6,"button",5),h(7,"CANCEL"),l(),y(8,ioe,2,0,"button",6),l()()),2&i&&(m(2),Ne(o.data.title),m(2),f("innerHtml",o.data.message,k1),m(4),f("ngIf","error"!=o.data.type))},dependencies:[Tt,Yt,mo,YJ,Jo,er]})}return t})();function TN(t=0,n=Au){return t<0&&(t=0),Af(t,t,n)}let noe=(()=>{class t{constructor(e,i){this.fetch=e,this.dialog=i,this.healthCheckSubscription=new de,this.unHealthyCheckCount=0,this.MAX_UNHEALTHY_CHECK_ATTEMPTS=5}startHealthCheck(){this.healthCheckSubscription=TN(5e3).subscribe(()=>{this.checkBackendHealth()})}stopHealthCheck(){this.healthCheckSubscription&&this.healthCheckSubscription.unsubscribe()}checkBackendHealth(){this.checkHealth().subscribe(e=>{e?this.unHealthyCheckCount=0:(this.unHealthyCheckCount==this.MAX_UNHEALTHY_CHECK_ATTEMPTS&&this.openHealthDialog(),this.unHealthyCheckCount++)})}openHealthDialog(){let e=this.dialog.open(jo,{width:"500px",data:{message:"Please check terminal logs for more details. In case of a crash please file a github issue with all the details.",type:"error",title:"Spanner migration tool unresponsive"}});this.stopHealthCheck(),e.afterClosed().subscribe(()=>{this.startHealthCheck()})}checkHealth(){return Zi(this.fetch.checkBackendHealth()).pipe(nt(()=>!0),Hi(()=>Ke(!1)))}ngOnDestroy(){this.stopHealthCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(X(zn),X(jr))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ooe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function roe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function aoe(t,n){if(1&t){const e=_e();d(0,"mat-form-field",24)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),xn("ngModelChange",function(o){ae(e);const r=w(3);return Tn(r.filterColumnsValue.sessionName,o)||(r.filterColumnsValue.sessionName=o),se(o)}),N("keyup",function(o){return ae(e),se(w(3).updateFilterValue(o,"sessionName"))}),l()()}if(2&t){const e=w(3);m(3),wn("ngModel",e.filterColumnsValue.sessionName)}}function soe(t,n){if(1&t){const e=_e();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Session Name"),l(),d(4,"button",21),N("click",function(){return ae(e),se(w(2).toggleFilterDisplay("sessionName"))}),y(5,ooe,2,0,"mat-icon",22)(6,roe,2,0,"mat-icon",22),l()(),y(7,aoe,4,1,"mat-form-field",23),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.displayFilter.sessionName),m(),f("ngIf",!e.displayFilter.sessionName),m(),f("ngIf",e.displayFilter.sessionName)}}function coe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.SessionName)}}function loe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function doe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function uoe(t,n){if(1&t){const e=_e();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),xn("ngModelChange",function(o){ae(e);const r=w(3);return Tn(r.filterColumnsValue.editorName,o)||(r.filterColumnsValue.editorName=o),se(o)}),N("keyup",function(o){return ae(e),se(w(3).updateFilterValue(o,"editorName"))}),l()()}if(2&t){const e=w(3);m(3),wn("ngModel",e.filterColumnsValue.editorName)}}function hoe(t,n){if(1&t){const e=_e();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Editor"),l(),d(4,"button",21),N("click",function(){return ae(e),se(w(2).toggleFilterDisplay("editorName"))}),y(5,loe,2,0,"mat-icon",22)(6,doe,2,0,"mat-icon",22),l()(),y(7,uoe,4,1,"mat-form-field",27),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.displayFilter.editorName),m(),f("ngIf",!e.displayFilter.editorName),m(),f("ngIf",e.displayFilter.editorName)}}function moe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.EditorName)}}function poe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function foe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function goe(t,n){if(1&t){const e=_e();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),xn("ngModelChange",function(o){ae(e);const r=w(3);return Tn(r.filterColumnsValue.databaseType,o)||(r.filterColumnsValue.databaseType=o),se(o)}),N("keyup",function(o){return ae(e),se(w(3).updateFilterValue(o,"databaseType"))}),l()()}if(2&t){const e=w(3);m(3),wn("ngModel",e.filterColumnsValue.databaseType)}}function _oe(t,n){if(1&t){const e=_e();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Database Type"),l(),d(4,"button",21),N("click",function(){return ae(e),se(w(2).toggleFilterDisplay("databaseType"))}),y(5,poe,2,0,"mat-icon",22)(6,foe,2,0,"mat-icon",22),l()(),y(7,goe,4,1,"mat-form-field",27),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.displayFilter.databaseType),m(),f("ngIf",!e.displayFilter.databaseType),m(),f("ngIf",e.displayFilter.databaseType)}}function boe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.DatabaseType)}}function voe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function yoe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function woe(t,n){if(1&t){const e=_e();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),xn("ngModelChange",function(o){ae(e);const r=w(3);return Tn(r.filterColumnsValue.databaseName,o)||(r.filterColumnsValue.databaseName=o),se(o)}),N("keyup",function(o){return ae(e),se(w(3).updateFilterValue(o,"databaseName"))}),l()()}if(2&t){const e=w(3);m(3),wn("ngModel",e.filterColumnsValue.databaseName)}}function xoe(t,n){if(1&t){const e=_e();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Database Name"),l(),d(4,"button",21),N("click",function(){return ae(e),se(w(2).toggleFilterDisplay("databaseName"))}),y(5,voe,2,0,"mat-icon",22)(6,yoe,2,0,"mat-icon",22),l()(),y(7,woe,4,1,"mat-form-field",27),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.displayFilter.databaseName),m(),f("ngIf",!e.displayFilter.databaseName),m(),f("ngIf",e.displayFilter.databaseName)}}function Coe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.DatabaseName)}}function Doe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function Soe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function koe(t,n){if(1&t){const e=_e();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),xn("ngModelChange",function(o){ae(e);const r=w(3);return Tn(r.filterColumnsValue.dialect,o)||(r.filterColumnsValue.dialect=o),se(o)}),N("keyup",function(o){return ae(e),se(w(3).updateFilterValue(o,"dialect"))}),l()()}if(2&t){const e=w(3);m(3),wn("ngModel",e.filterColumnsValue.dialect)}}function Toe(t,n){if(1&t){const e=_e();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Spanner Dialect"),l(),d(4,"button",21),N("click",function(){return ae(e),se(w(2).toggleFilterDisplay("dialect"))}),y(5,Doe,2,0,"mat-icon",22)(6,Soe,2,0,"mat-icon",22),l()(),y(7,koe,4,1,"mat-form-field",27),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.displayFilter.dialect),m(),f("ngIf",!e.displayFilter.dialect),m(),f("ngIf",e.displayFilter.dialect)}}function Moe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.Dialect)}}function Ioe(t,n){1&t&&(d(0,"th",19),h(1,"Notes"),l())}function Eoe(t,n){if(1&t){const e=_e();d(0,"button",34),N("click",function(){ae(e);const o=w(2).index,r=w(2);return se(r.notesToggle[o]=!r.notesToggle[o])}),h(1," ... "),l()}}function Ooe(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e)}}function Aoe(t,n){if(1&t&&(d(0,"div"),y(1,Ooe,2,1,"p",35),l()),2&t){const e=w(2).$implicit;m(),f("ngForOf",e.Notes)}}function Poe(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w(2).$implicit;m(),Ne(null==e.Notes||null==e.Notes[0]?null:e.Notes[0].substring(0,20))}}function Roe(t,n){if(1&t&&(d(0,"div",30),y(1,Eoe,2,0,"button",31)(2,Aoe,2,1,"div",32)(3,Poe,2,1,"ng-template",null,33,_r),l()),2&t){const e=Rt(4),i=w(),o=i.$implicit,r=i.index,a=w(2);m(),f("ngIf",(null==o.Notes?null:o.Notes.length)>1||(null==o.Notes[0]?null:o.Notes[0].length)>20),m(),f("ngIf",a.notesToggle[r])("ngIfElse",e)}}function Noe(t,n){if(1&t&&(d(0,"td",26),y(1,Roe,5,3,"div",29),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.Notes)}}function Foe(t,n){1&t&&(d(0,"th",19),h(1,"Created At"),l())}function Loe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit,i=w(2);m(),Ne(i.convertDateTime(e.CreateTimestamp))}}function Boe(t,n){1&t&&D(0,"th",19)}function Voe(t,n){if(1&t){const e=_e();d(0,"td",26)(1,"button",36),N("click",function(){const r=ae(e).$implicit;return se(w(2).resumeFromSessionFile(r.VersionId))}),h(2," Resume "),l(),d(3,"button",36),N("click",function(){const r=ae(e).$implicit;return se(w(2).downloadSessionFile(r.VersionId,r.SessionName,r.DatabaseType,r.DatabaseName))}),h(4," Download "),l()()}}function joe(t,n){1&t&&D(0,"tr",37)}function zoe(t,n){1&t&&D(0,"tr",38)}function Hoe(t,n){if(1&t&&(d(0,"div",5)(1,"table",6),ye(2,7),y(3,soe,8,3,"th",8)(4,coe,2,1,"td",9),we(),ye(5,10),y(6,hoe,8,3,"th",8)(7,moe,2,1,"td",9),we(),ye(8,11),y(9,_oe,8,3,"th",8)(10,boe,2,1,"td",9),we(),ye(11,12),y(12,xoe,8,3,"th",8)(13,Coe,2,1,"td",9),we(),ye(14,13),y(15,Toe,8,3,"th",8)(16,Moe,2,1,"td",9),we(),ye(17,14),y(18,Ioe,2,0,"th",8)(19,Noe,2,1,"td",9),we(),ye(20,15),y(21,Foe,2,0,"th",8)(22,Loe,2,1,"td",9),we(),ye(23,16),y(24,Boe,1,0,"th",8)(25,Voe,5,0,"td",9),we(),y(26,joe,1,0,"tr",17)(27,zoe,1,0,"tr",18),l()()),2&t){const e=w();m(),f("dataSource",e.filteredDataSource),m(25),f("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",!0),m(),f("matRowDefColumns",e.displayedColumns)}}function Uoe(t,n){if(1&t){const e=_e();d(0,"div",39),Xt(),d(1,"svg",40),D(2,"rect",41)(3,"path",42),l(),mr(),d(4,"button",43),N("click",function(){return ae(e),se(w().openSpannerConfigDialog())}),h(5," Configure Spanner Details "),l(),d(6,"span"),h(7,"Do not have any previous session to display. "),d(8,"u"),h(9," OR "),l(),D(10,"br"),h(11," Invalid Spanner configuration. "),l()()}}let $oe=(()=>{class t{constructor(e,i,o,r){this.fetch=e,this.data=i,this.router=o,this.clickEvent=r,this.displayedColumns=["SessionName","EditorName","DatabaseType","DatabaseName","Dialect","Notes","CreateTimestamp","Action"],this.notesToggle=[],this.dataSource=[],this.filteredDataSource=[],this.filterColumnsValue={sessionName:"",editorName:"",databaseType:"",databaseName:"",dialect:""},this.displayFilter={sessionName:!1,editorName:!1,databaseType:!1,databaseName:!1,dialect:!1}}ngOnInit(){this.data.getAllSessions(),this.data.sessions.subscribe({next:e=>{null!=e?(this.filteredDataSource=e,this.dataSource=e):(this.filteredDataSource=[],this.dataSource=[])}})}toggleFilterDisplay(e){this.displayFilter[e]=!this.displayFilter[e]}updateFilterValue(e,i){e.stopPropagation(),this.filterColumnsValue[i]=e.target.value,this.applyFilter()}applyFilter(){this.filteredDataSource=this.dataSource.filter(e=>!!e.SessionName.toLowerCase().includes(this.filterColumnsValue.sessionName.toLowerCase())).filter(e=>!!e.EditorName.toLowerCase().includes(this.filterColumnsValue.editorName.toLowerCase())).filter(e=>!!e.DatabaseType.toLowerCase().includes(this.filterColumnsValue.databaseType.toLowerCase())).filter(e=>!!e.DatabaseName.toLowerCase().includes(this.filterColumnsValue.databaseName.toLowerCase())).filter(e=>!!e.Dialect.toLowerCase().includes(this.filterColumnsValue.dialect.toLowerCase()))}downloadSessionFile(e,i,o,r){this.fetch.getConvForSession(e).subscribe(a=>{var s=document.createElement("a");s.href=URL.createObjectURL(a),s.download=`${i}_${o}_${r}.json`,s.click()})}resumeFromSessionFile(e){this.data.resetStore(),this.data.getSchemaConversionFromResumeSession(e),this.data.conv.subscribe(i=>{localStorage.setItem(Qi.Config,e),localStorage.setItem(Qi.Type,Qn.ResumeSession),this.router.navigate(["/workspace"])})}openSpannerConfigDialog(){this.clickEvent.openSpannerConfig()}convertDateTime(e){return(e=(e=new Date(e).toString()).substring(e.indexOf(" ")+1)).substring(0,e.indexOf("("))}static#e=this.\u0275fac=function(i){return new(i||t)(_(zn),_($i),_(Pn),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-session-listing"]],decls:8,vars:2,consts:[[1,"sessions-wrapper"],[1,"primary-header"],[1,"summary"],["class","session-container mat-elevation-z3",4,"ngIf"],["class","mat-elevation-z3 warning-container",4,"ngIf"],[1,"session-container","mat-elevation-z3"],["mat-table","",3,"dataSource"],["matColumnDef","SessionName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","EditorName"],["matColumnDef","DatabaseType"],["matColumnDef","DatabaseName"],["matColumnDef","Dialect"],["matColumnDef","Notes"],["matColumnDef","CreateTimestamp"],["matColumnDef","Action"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"table-header-container"],["mat-icon-button","",3,"click"],[4,"ngIf"],["appearance","outline","class","full-width",4,"ngIf"],["appearance","outline",1,"full-width"],["matInput","","autocomplete","off",3,"ngModel","ngModelChange","keyup"],["mat-cell",""],["appearance","outline",4,"ngIf"],["appearance","outline"],["class","notes-wrapper",4,"ngIf"],[1,"notes-wrapper"],["class","notes-toggle-button",3,"click",4,"ngIf"],[4,"ngIf","ngIfElse"],["short",""],[1,"notes-toggle-button",3,"click"],[4,"ngFor","ngForOf"],["mat-button","","color","primary",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-elevation-z3","warning-container"],["width","49","height","48","viewBox","0 0 49 48","fill","none","xmlns","http://www.w3.org/2000/svg"],["x","0.907227","width","48","height","48","rx","4","fill","#E6ECFA"],["fill-rule","evenodd","clip-rule","evenodd","d","M17.9072 15C16.8027 15 15.9072 15.8954 15.9072 17V31C15.9072 32.1046 16.8027 33 17.9072 33H31.9072C33.0118 33 33.9072 32.1046 33.9072 31V17C33.9072 15.8954 33.0118 15 31.9072 15H17.9072ZM20.9072 18H18.9072V20H20.9072V18ZM21.9072 18H23.9072V20H21.9072V18ZM20.9072 23H18.9072V25H20.9072V23ZM21.9072 23H23.9072V25H21.9072V23ZM20.9072 28H18.9072V30H20.9072V28ZM21.9072 28H23.9072V30H21.9072V28ZM30.9072 18H24.9072V20H30.9072V18ZM24.9072 23H30.9072V25H24.9072V23ZM30.9072 28H24.9072V30H30.9072V28Z","fill","#3367D6"],["mat-button","","color","primary",1,"spanner-config-button",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h3",1),h(2,"Session history"),l(),d(3,"div",2),h(4," Choose a session to resume an existing migration session, or download the session file. "),l(),D(5,"br"),y(6,Hoe,28,4,"div",3)(7,Uoe,12,0,"div",4),l()),2&i&&(m(6),f("ngIf",o.dataSource.length>0),m(),f("ngIf",0===o.dataSource.length))},dependencies:[dn,Tt,Yt,_a,Ii,Ri,Pi,rn,Oi,xi,ps,ka,fs,Ta,Sa,gs,Ma,Ia,_s,bs,Pl],styles:[".session-container[_ngcontent-%COMP%]{max-height:500px;overflow:auto}.session-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:13px}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .table-header-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.sessions-wrapper[_ngcontent-%COMP%]{margin-top:20px}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:57vh;text-align:center}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-bottom:10px}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%] .spanner-config-button[_ngcontent-%COMP%]{text-decoration:underline}.mat-mdc-column-Notes[_ngcontent-%COMP%]{max-width:200px;padding-right:10px}.notes-toggle-button[_ngcontent-%COMP%]{float:right;margin-right:32px;background-color:#f5f5f5;border:none;border-radius:2px;padding:0 5px 5px}.notes-toggle-button[_ngcontent-%COMP%]:hover{background-color:#ebe7e7;cursor:pointer}.notes-wrapper[_ngcontent-%COMP%]{margin-top:10px}.mat-mdc-column-SessionName[_ngcontent-%COMP%], .mat-mdc-column-EditorName[_ngcontent-%COMP%], .mat-mdc-column-DatabaseType[_ngcontent-%COMP%], .mat-mdc-column-DatabaseName[_ngcontent-%COMP%], .mat-mdc-column-Dialect[_ngcontent-%COMP%]{width:13vw;min-width:150px}.mat-mdc-column-Action[_ngcontent-%COMP%], .mat-mdc-column-Notes[_ngcontent-%COMP%], .mat-mdc-column-CreateTimestamp[_ngcontent-%COMP%]{width:15vw;min-width:150px}.mat-mdc-form-field[_ngcontent-%COMP%]{width:80%}"]})}return t})(),Goe=(()=>{class t{constructor(e,i,o){this.dialog=e,this.router=i,this.healthCheckService=o}ngOnInit(){this.healthCheckService.startHealthCheck(),null!=localStorage.getItem(me.IsMigrationInProgress)&&"true"===localStorage.getItem(me.IsMigrationInProgress)&&(this.dialog.open(jo,{data:{title:"Redirecting to prepare migration page",message:"Another migration already in progress",type:"error"},maxWidth:"500px"}),this.router.navigate(["/prepare-migration"]))}static#e=this.\u0275fac=function(i){return new(i||t)(_(jr),_(Pn),_(noe))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-home"]],decls:21,vars:4,consts:[[1,"container"],[1,"primary-header"],[1,"summary","global-font-color","body-font-size"],["href","https://github.com/GoogleCloudPlatform/spanner-migration-tool#readme","target","_blank"],[1,"btn-source-select"],["mat-raised-button","","color","primary","id","connect-to-database-btn",1,"split-button-left",3,"routerLink"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"h3",1),h(2,"Get started with Spanner migration tool"),l(),d(3,"div",2),h(4," Spanner migration tool (formerly known as HarbourBridge) is a stand-alone open source tool for Cloud Spanner evaluation and migration, using data from an existing PostgreSQL, MySQL, SQL Server, Oracle or DynamoDB database. "),d(5,"a",3),h(6,"Learn More"),l(),h(7,". "),l(),d(8,"div",4)(9,"button",5),h(10," Connect to database "),l(),d(11,"button",6)(12,"mat-icon",7),h(13,"expand_more"),l()(),d(14,"mat-menu",8,9)(16,"button",10),h(17,"Load database dump"),l(),d(18,"button",10),h(19,"Load session file"),l()()(),D(20,"app-session-listing"),l()),2&i){const r=Rt(15);m(9),f("routerLink","/source/direct-connection"),m(2),f("matMenuTriggerFor",r),m(5),f("routerLink","/source/load-dump"),m(2),f("routerLink","/source/load-session")}},dependencies:[$r,Yt,Ii,Vl,xa,jl,$oe],styles:[".container[_ngcontent-%COMP%]{padding:7px 27px}.container[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{width:500px;font-weight:lighter}.container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 5px}.container[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;margin-bottom:20px}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%]{margin:20px 0;padding-bottom:5px}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-left[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-right[_ngcontent-%COMP%]{width:30px!important;min-width:unset!important;padding:0 2px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid #fafafa}"]})}return t})(),Xn=(()=>{class t{constructor(){this.sidenavOpenSub=new ft(!1),this.sidenavComponentSub=new ft(""),this.sidenavRuleTypeSub=new ft(""),this.sidenavAddIndexTableSub=new ft(""),this.setSidenavDatabaseNameSub=new ft(""),this.ruleDataSub=new ft({}),this.displayRuleFlagSub=new ft(!1),this.setMiddleColumn=new ft(!1),this.isSidenav=this.sidenavOpenSub.asObservable(),this.sidenavComponent=this.sidenavComponentSub.asObservable(),this.sidenavRuleType=this.sidenavRuleTypeSub.asObservable(),this.sidenavAddIndexTable=this.sidenavAddIndexTableSub.asObservable(),this.sidenavDatabaseName=this.setSidenavDatabaseNameSub.asObservable(),this.ruleData=this.ruleDataSub.asObservable(),this.displayRuleFlag=this.displayRuleFlagSub.asObservable(),this.setMiddleColumnComponent=this.setMiddleColumn.asObservable()}openSidenav(){this.sidenavOpenSub.next(!0)}closeSidenav(){this.sidenavOpenSub.next(!1)}setSidenavComponent(e){this.sidenavComponentSub.next(e)}setSidenavRuleType(e){this.sidenavRuleTypeSub.next(e)}setSidenavAddIndexTable(e){this.sidenavAddIndexTableSub.next(e)}setSidenavDatabaseName(e){this.setSidenavDatabaseNameSub.next(e)}setRuleData(e){this.ruleDataSub.next(e)}setDisplayRuleFlag(e){this.displayRuleFlagSub.next(e)}setMiddleColComponent(e){this.setMiddleColumn.next(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),MN=(()=>{class t{constructor(e){this.sidenav=e}ngOnInit(){}closeInstructionSidenav(){this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Xn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-instruction"]],decls:150,vars:0,consts:[[1,"instructions-div"],[1,"instruction-header-div"],["mat-icon-button","",3,"click"],["src","../../../assets/icons/google-spanner-logo.png",1,"instructions-icon"],[1,"textCenter"],[1,"instructions-main-heading"],[1,"instructions-sub-heading"],[1,"instructions-command"],["href","https://github.com/GoogleCloudPlatform/spanner-migration-tool",1,"instructionsLink"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"button",2),N("click",function(){return o.closeInstructionSidenav()}),d(3,"mat-icon"),h(4,"close"),l()()(),D(5,"img",3),d(6,"h1",4),h(7,"Spanner migration tool User Manual"),l(),D(8,"br")(9,"br"),d(10,"h3",5),h(11,"1 \xa0 \xa0 \xa0Introduction"),l(),d(12,"p"),h(13," Spanner migration tool (formerly known as HarbourBridge) is a stand-alone open source tool for Cloud Spanner evaluation, using data from an existing PostgreSQL or MySQL database. The tool ingests schema and data from either a pg_dump/mysqldump file or directly from the source database, automatically builds a Spanner schema, and creates a new Spanner database populated with data from the source database. "),D(14,"br")(15,"br")(16,"br"),h(17," Spanner migration tool is designed to simplify Spanner evaluation, and in particular to bootstrap the process by getting moderate-size PostgreSQL/MySQL datasets into Spanner (up to a few tens of GB). Many features of PostgreSQL/MySQL, especially those that don't map directly to Spanner features, are ignored, e.g. (non-primary) indexes, functions, and sequences. Types such as integers, floats, char/text, bools, timestamps, and (some) array types, map fairly directly to Spanner, but many other types do not and instead are mapped to Spanner's STRING(MAX). "),l(),D(18,"br"),d(19,"h4",6),h(20,"1.1 \xa0 \xa0 \xa0Spanner migration tool UI"),l(),d(21,"p"),h(22," Spanner migration tool UI is designed to focus on generating spanner schema from either a pg_dump/mysqldump file or directly from the source database and providing edit functionality to the spanner schema and thereby creating a new spanner database populated with new data. UI gives the provision to edit column name, edit data type, edit constraints, drop foreign key and drop secondary index of spanner schema. "),l(),D(23,"br"),d(24,"h3",5),h(25,"2 \xa0 \xa0 \xa0Key Features of UI"),l(),d(26,"ul")(27,"li"),h(28,"Connecting to a new database"),l(),d(29,"li"),h(30,"Load dump file"),l(),d(31,"li"),h(32,"Load session file"),l(),d(33,"li"),h(34,"Storing session for each conversion"),l(),d(35,"li"),h(36,"Edit data type globally for each table in schema"),l(),d(37,"li"),h(38,"Edit data type, column name, constraint for a particular table"),l(),d(39,"li"),h(40,"Edit foreign key and secondary index name"),l(),d(41,"li"),h(42,"Drop a column from a table"),l(),d(43,"li"),h(44,"Drop foreign key from a table"),l(),d(45,"li"),h(46,"Drop secondary index from a table"),l(),d(47,"li"),h(48,"Convert foreign key into interleave table"),l(),d(49,"li"),h(50,"Search a table"),l(),d(51,"li"),h(52,"Download schema, report and session files"),l()(),D(53,"br"),d(54,"h3",5),h(55,"3 \xa0 \xa0 \xa0UI Setup"),l(),d(56,"ul")(57,"li"),h(58,"Install go in local"),l(),d(59,"li"),h(60," Clone Spanner migration tool project and run following command in the terminal: "),D(61,"br"),d(62,"span",7),h(63,"go run main.go --web"),l()(),d(64,"li"),h(65,"Open "),d(66,"span",7),h(67,"http://localhost:8080"),l(),h(68,"in browser"),l()(),D(69,"br"),d(70,"h3",5),h(71," 4 \xa0 \xa0 \xa0Different modes to select source database "),l(),d(72,"h4",6),h(73,"4.1 \xa0 \xa0 \xa0Connect to Database"),l(),d(74,"ul")(75,"li"),h(76,"Enter database details in connect to database dialog box"),l(),d(77,"li"),h(78," Input Fields: database type, database host, database port, database user, database name, database password "),l()(),d(79,"h4",6),h(80,"4.2 \xa0 \xa0 \xa0Load Database Dump"),l(),d(81,"ul")(82,"li"),h(83,"Enter dump file path in load database dialog box"),l(),d(84,"li"),h(85,"Input Fields: database type, file path"),l()(),d(86,"h4",6),h(87,"4.3 \xa0 \xa0 \xa0Import Schema File"),l(),d(88,"ul")(89,"li"),h(90,"Enter session file path in load session dialog box"),l(),d(91,"li"),h(92,"Input Fields: database type, session file path"),l()(),d(93,"h3",5),h(94,"5 \xa0 \xa0 \xa0Session Table"),l(),d(95,"ul")(96,"li"),h(97,"Session table is used to store the previous sessions of schema conversion"),l()(),d(98,"h3",5),h(99,"6 \xa0 \xa0 \xa0Edit Global Data Type"),l(),d(100,"ul")(101,"li"),h(102,"Click on edit global data type button on the screen"),l(),d(103,"li"),h(104,"Select required spanner data type from the dropdown available for each source data type"),l(),d(105,"li"),h(106,"Click on next button after making all the changes"),l()(),d(107,"h3",5),h(108," 7 \xa0 \xa0 \xa0Edit Spanner Schema for a particular table "),l(),d(109,"ul")(110,"li"),h(111,"Expand any table"),l(),d(112,"li"),h(113,"Click on edit spanner schema button"),l(),d(114,"li"),h(115,"Edit column name/ data type/ constraint of spanner schema"),l(),d(116,"li"),h(117,"Edit name of secondary index or foreign key"),l(),d(118,"li"),h(119,"Select to convert foreign key to interleave or use as is (if option is available)"),l(),d(120,"li"),h(121,"Drop a column by unselecting any checkbox"),l(),d(122,"li"),h(123," Drop a foreign key or secondary index by expanding foreign keys or secondary indexes tab inside table "),l(),d(124,"li"),h(125,"Click on save changes button to save the changes"),l(),d(126,"li"),h(127," If current table is involved in foreign key/secondary indexes relationship with other table then user will be prompt to delete foreign key or secondary indexes and then proceed with save changes "),l()(),d(128,"p"),h(129,"- Warning before deleting secondary index from a table"),l(),d(130,"p"),h(131,"- Error on saving changes"),l(),d(132,"p"),h(133,"- Changes saved successfully after resolving all errors"),l(),d(134,"h3",5),h(135,"8 \xa0 \xa0 \xa0Download Session File"),l(),d(136,"ul")(137,"li"),h(138,"Save all the changes done in spanner schema table wise or globally"),l(),d(139,"li"),h(140,"Click on download session file button on the top right corner"),l(),d(141,"li"),h(142,"Save the generated session file with all the changes in local machine"),l()(),d(143,"h3",5),h(144,"9 \xa0 \xa0 \xa0How to use Session File"),l(),d(145,"p"),h(146," Please refer below link to get more information on how to use session file with Spanner migration tool "),l(),d(147,"a",8),h(148,"Refer this to use Session File"),l(),D(149,"br"),l())},dependencies:[_a,Ii],styles:[".instructions-div[_ngcontent-%COMP%]{padding:5px 20px 20px}.instructions-div[_ngcontent-%COMP%] .instruction-header-div[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.instructions-icon[_ngcontent-%COMP%]{height:200px;display:block;margin-left:auto;margin-right:auto}.textCenter[_ngcontent-%COMP%]{text-align:center}.instructions-main-heading[_ngcontent-%COMP%]{font-size:1.25rem;color:#4285f4;font-weight:700}.instructions-sub-heading[_ngcontent-%COMP%]{font-size:1rem;color:#4285f4;font-weight:700}.instructions-command[_ngcontent-%COMP%]{background-color:#8080806b;border-radius:5px;padding:0 5px}.instructions-img-width[_ngcontent-%COMP%]{width:800px}.instructionsLink[_ngcontent-%COMP%]{color:#4285f4;text-decoration:underline}"]})}return t})();const Woe=["determinateSpinner"];function qoe(t,n){if(1&t&&(Xt(),d(0,"svg",11),D(1,"circle",12),l()),2&t){const e=w();Je("viewBox",e._viewBox()),m(),yn("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),Je("r",e._circleRadius())}}const Koe=is(class{constructor(t){this._elementRef=t}},"primary"),Zoe=new oe("mat-progress-spinner-default-options",{providedIn:"root",factory:function Yoe(){return{diameter:IN}}}),IN=100;let ad=(()=>{class t extends Koe{constructor(e,i,o){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=IN,this._noopAnimations="NoopAnimations"===i&&!!o&&!o._forceAnimations,o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,vi(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=vi(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=vi(e)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const e=2*this._circleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(di,8),_(Zoe))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,o){if(1&i&&vt(Woe,5),2&i){let r;Oe(r=Ae())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(i,o){2&i&&(Je("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===o.mode?o.value:null)("mode",o.mode),yn("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),et("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===o.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[ge],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(i,o){if(1&i&&(y(0,qoe,2,8,"ng-template",null,0,_r),d(2,"div",1,2),Xt(),d(4,"svg",3),D(5,"circle",4),l()(),mr(),d(6,"div",5)(7,"div",6)(8,"div",7),no(9,8),l(),d(10,"div",9),no(11,8),l(),d(12,"div",10),no(13,8),l()()()),2&i){const r=Rt(1);m(4),Je("viewBox",o._viewBox()),m(),yn("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),Je("r",o._circleRadius()),m(4),f("ngTemplateOutlet",r),m(2),f("ngTemplateOutlet",r),m(2),f("ngTemplateOutlet",r)}},dependencies:[Sp],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return t})(),Xoe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[Bn,St]})}return t})();function Joe(t,n){if(1&t&&(d(0,"mat-option",17),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.displayName," ")}}function ere(t,n){1&t&&D(0,"mat-spinner",18),2&t&&f("diameter",25)}function tre(t,n){1&t&&(d(0,"mat-icon",19),h(1,"check_circle"),l())}function ire(t,n){1&t&&(d(0,"mat-icon",20),h(1,"cancel"),l())}function nre(t,n){if(1&t&&(d(0,"mat-option",17),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.displayName," ")}}let ore=(()=>{class t{constructor(e,i,o){this.data=e,this.router=i,this.clickEvent=o,this.connectForm=new ei({dbEngine:new K("mysqldump",[ce.required]),filePath:new K("",[ce.required]),dialect:new K("",[ce.required])}),this.dbEngineList=[{value:"mysqldump",displayName:"MySQL"},{value:"pg_dump",displayName:"PostgreSQL"}],this.dialect=CN,this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.getSchemaRequest=null}ngOnInit(){this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.getSchemaRequest&&this.getSchemaRequest.unsubscribe()}})}convertFromDump(){this.clickEvent.openDatabaseLoader("dump",""),this.data.resetStore(),localStorage.clear();const{dbEngine:e,filePath:i,dialect:o}=this.connectForm.value,s={Config:{Driver:e,Path:i},SpannerDetails:{Dialect:o}};this.getSchemaRequest=this.data.getSchemaConversionFromDump(s),this.data.conv.subscribe(c=>{localStorage.setItem(Qi.Config,JSON.stringify(s)),localStorage.setItem(Qi.Type,Qn.DumpFile),localStorage.setItem(Qi.SourceDbName,kg(e)),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/workspace"])})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.connectForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.data.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}static#e=this.\u0275fac=function(i){return new(i||t)(_($i),_(Pn),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-load-dump"]],decls:36,vars:8,consts:[[1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline",1,"full-width"],["matSelect","","name","dbEngine","formControlName","dbEngine","appearance","outline"],[3,"value",4,"ngFor","ngForOf"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["mat-stroked-button","","type","button",3,"click"],["hidden","","type","file",3,"change"],["file",""],["matSelect","","name","dialect","formControlName","dialect","appearance","outline"],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["mat-raised-button","",3,"routerLink"],[3,"value"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"]],template:function(i,o){if(1&i){const r=_e();d(0,"div",0)(1,"div",1)(2,"form",2),N("ngSubmit",function(){return o.convertFromDump()}),d(3,"h3",3),h(4,"Load from database dump"),l(),d(5,"mat-form-field",4)(6,"mat-label"),h(7,"Database Engine"),l(),d(8,"mat-select",5),y(9,Joe,2,2,"mat-option",6),l()(),d(10,"h3",3),h(11,"Dump File"),l(),d(12,"mat-form-field",4)(13,"mat-label"),h(14,"File path"),l(),d(15,"input",7),N("click",function(){return ae(r),se(Rt(22).click())}),l(),y(16,ere,1,1,"mat-spinner",8)(17,tre,2,0,"mat-icon",9)(18,ire,2,0,"mat-icon",10),l(),d(19,"button",11),N("click",function(){return ae(r),se(Rt(22).click())}),h(20,"Upload File"),l(),d(21,"input",12,13),N("change",function(s){return o.handleFileInput(s)}),l(),D(23,"br"),d(24,"h3",3),h(25,"Spanner Dialect"),l(),d(26,"mat-form-field",4)(27,"mat-label"),h(28,"Select a spanner dialect"),l(),d(29,"mat-select",14),y(30,nre,2,2,"mat-option",6),l()(),D(31,"br"),d(32,"button",15),h(33," Convert "),l(),d(34,"button",16),h(35,"Cancel"),l()()()()}2&i&&(m(2),f("formGroup",o.connectForm),m(7),f("ngForOf",o.dbEngineList),m(7),f("ngIf",o.uploadStart&&!o.uploadSuccess&&!o.uploadFail),m(),f("ngIf",o.uploadStart&&o.uploadSuccess),m(),f("ngIf",o.uploadStart&&o.uploadFail),m(12),f("ngForOf",o.dialect),m(2),f("disabled",!o.connectForm.valid||!o.uploadSuccess),m(2),f("routerLink","/"))},dependencies:[dn,Tt,$r,Yt,Ii,Ri,Pi,nw,rn,uo,En,On,Oi,xi,Ui,Ai,Yi,ad]})}return t})();function rre(t,n){if(1&t&&(d(0,"mat-option",16),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.displayName," ")}}function are(t,n){1&t&&D(0,"mat-spinner",17),2&t&&f("diameter",25)}function sre(t,n){1&t&&(d(0,"mat-icon",18),h(1,"check_circle"),l())}function cre(t,n){1&t&&(d(0,"mat-icon",19),h(1,"cancel"),l())}let lre=(()=>{class t{constructor(e,i,o){this.data=e,this.router=i,this.clickEvent=o,this.connectForm=new ei({dbEngine:new K("mysql",[ce.required]),filePath:new K("",[ce.required])}),this.dbEngineList=[{value:"mysql",displayName:"MySQL"},{value:"sqlserver",displayName:"SQL Server"},{value:"oracle",displayName:"Oracle"},{value:"postgres",displayName:"PostgreSQL"}],this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.getSchemaRequest=null}ngOnInit(){this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.getSchemaRequest&&this.getSchemaRequest.unsubscribe()}})}convertFromSessionFile(){this.clickEvent.openDatabaseLoader("session",""),this.data.resetStore(),localStorage.clear();const{dbEngine:e,filePath:i}=this.connectForm.value,o={driver:e,filePath:i};this.getSchemaRequest=this.data.getSchemaConversionFromSession(o),this.data.conv.subscribe(r=>{localStorage.setItem(Qi.Config,JSON.stringify(o)),localStorage.setItem(Qi.Type,Qn.SessionFile),localStorage.setItem(Qi.SourceDbName,kg(e)),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/workspace"])})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.connectForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.data.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}static#e=this.\u0275fac=function(i){return new(i||t)(_($i),_(Pn),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-load-session"]],decls:28,vars:7,consts:[[1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline",1,"full-width"],["matSelect","","name","dbEngine","formControlName","dbEngine","appearance","outline"],[3,"value",4,"ngFor","ngForOf"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["mat-stroked-button","","type","button",3,"click"],["hidden","","type","file",3,"change"],["file",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["mat-raised-button","",3,"routerLink"],[3,"value"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"]],template:function(i,o){if(1&i){const r=_e();d(0,"div",0)(1,"div",1)(2,"form",2),N("ngSubmit",function(){return o.convertFromSessionFile()}),d(3,"h3",3),h(4,"Load from session"),l(),d(5,"mat-form-field",4)(6,"mat-label"),h(7,"Database Engine"),l(),d(8,"mat-select",5),y(9,rre,2,2,"mat-option",6),l()(),d(10,"h3",3),h(11,"Session File"),l(),d(12,"mat-form-field",4)(13,"mat-label"),h(14,"File path"),l(),d(15,"input",7),N("click",function(){return ae(r),se(Rt(22).click())}),l(),y(16,are,1,1,"mat-spinner",8)(17,sre,2,0,"mat-icon",9)(18,cre,2,0,"mat-icon",10),l(),d(19,"button",11),N("click",function(){return ae(r),se(Rt(22).click())}),h(20,"Upload File"),l(),d(21,"input",12,13),N("change",function(s){return o.handleFileInput(s)}),l(),D(23,"br"),d(24,"button",14),h(25," Convert "),l(),d(26,"button",15),h(27,"Cancel"),l()()()()}2&i&&(m(2),f("formGroup",o.connectForm),m(7),f("ngForOf",o.dbEngineList),m(7),f("ngIf",o.uploadStart&&!o.uploadSuccess&&!o.uploadFail),m(),f("ngIf",o.uploadStart&&o.uploadSuccess),m(),f("ngIf",o.uploadStart&&o.uploadFail),m(6),f("disabled",!o.connectForm.valid||!o.uploadSuccess),m(2),f("routerLink","/"))},dependencies:[dn,Tt,$r,Yt,Ii,Ri,Pi,nw,rn,uo,En,On,Oi,xi,Ui,Ai,Yi,ad]})}return t})();function dre(t,n){if(1&t&&(d(0,"h3"),h(1),l()),2&t){const e=w();m(),ke("Reading schema for ",e.databaseName," database. Please wait...")}}function ure(t,n){1&t&&(d(0,"h4"),h(1,"Tip: Spanner migration tool will read the information schema at source and automatically map it to Cloud Spanner"),l())}function hre(t,n){if(1&t&&(d(0,"h3"),h(1),l()),2&t){const e=w();m(),ke("Testing connection to ",e.databaseName," database...")}}function mre(t,n){1&t&&(d(0,"h4"),h(1,"Tip: Spanner migration tool is attempting to ping the source database, it will retry a couple of times before timing out."),l())}function pre(t,n){1&t&&(d(0,"h3"),h(1,"Loading the dump file..."),l())}function fre(t,n){1&t&&(d(0,"h3"),h(1,"Loading the session file..."),l())}let gre=(()=>{class t{constructor(e,i){this.router=e,this.clickEvent=i,this.loaderType="",this.databaseName="",this.timeElapsed=0,this.timeElapsedInterval=setInterval(()=>{this.timeElapsed+=1},1e3)}ngOnInit(){this.timeElapsed=0}ngOnDestroy(){clearInterval(this.timeElapsedInterval)}cancelDbLoad(){this.clickEvent.cancelDbLoading(),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/"])}static#e=this.\u0275fac=function(i){return new(i||t)(_(Pn),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-database-loader"]],inputs:{loaderType:"loaderType",databaseName:"databaseName"},decls:12,vars:7,consts:[[1,"container","content-height"],["src","../../../assets/gifs/database-loader.gif","alt","database-loader-gif",1,"loader-gif"],[4,"ngIf"],["mat-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0),D(1,"img",1),y(2,dre,2,1,"h3",2)(3,ure,2,0,"h4",2)(4,hre,2,1,"h3",2)(5,mre,2,0,"h4",2)(6,pre,2,0,"h3",2)(7,fre,2,0,"h3",2),d(8,"h5"),h(9),l(),d(10,"button",3),N("click",function(){return o.cancelDbLoad()}),h(11,"Cancel"),l()()),2&i&&(m(2),f("ngIf","direct"===o.loaderType),m(),f("ngIf","direct"===o.loaderType),m(),f("ngIf","test-connection"===o.loaderType),m(),f("ngIf","test-connection"===o.loaderType),m(),f("ngIf","dump"===o.loaderType),m(),f("ngIf","session"===o.loaderType),m(2),ke("",o.timeElapsed," seconds have elapsed"))},dependencies:[Tt,Yt],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .loader-gif[_ngcontent-%COMP%]{width:10rem;height:10rem}"]})}return t})();function _re(t,n){1&t&&(d(0,"div"),D(1,"router-outlet"),l())}function bre(t,n){if(1&t&&(d(0,"div"),D(1,"app-database-loader",1),l()),2&t){const e=w();m(),f("loaderType",e.loaderType)("databaseName",e.databaseName)}}let vre=(()=>{class t{constructor(e){this.clickevent=e,this.isDatabaseLoading=!1,this.loaderType="",this.databaseName=""}ngOnInit(){this.clickevent.databaseLoader.subscribe(e=>{this.loaderType=e.type,this.databaseName=e.databaseName,this.isDatabaseLoading=""!==this.loaderType})}static#e=this.\u0275fac=function(i){return new(i||t)(_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-source-selection"]],decls:2,vars:2,consts:[[4,"ngIf"],[3,"loaderType","databaseName"]],template:function(i,o){1&i&&y(0,_re,2,0,"div",0)(1,bre,2,2,"div",0),2&i&&(f("ngIf",!o.isDatabaseLoading),m(),f("ngIf",o.isDatabaseLoading))},dependencies:[Tt,yg,gre],styles:[".mat-card-class[_ngcontent-%COMP%]{padding:0 20px}"]})}return t})();var EN=Pe(304);function yre(t,n){if(1&t){const e=_e();d(0,"mat-chip-row",16),N("removed",function(){const r=ae(e).$implicit;return se(w().removeFilter(r))}),h(1),d(2,"button",17)(3,"mat-icon"),h(4,"cancel"),l()()()}if(2&t){const e=n.$implicit;m(),ke(" ",e," ")}}function wre(t,n){if(1&t){const e=_e();d(0,"mat-option",18),N("click",function(){const r=ae(e).$implicit;return se(w().addFilter(r))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e),m(),ke(" ",e," ")}}function xre(t,n){1&t&&(d(0,"mat-icon",31),h(1," error "),l())}function Cre(t,n){1&t&&(d(0,"mat-icon",32),h(1," warning "),l())}function Dre(t,n){1&t&&(d(0,"mat-icon",33),h(1," wb_incandescent "),l())}function Sre(t,n){1&t&&(d(0,"mat-icon",34),h(1," check_circle "),l())}function kre(t,n){if(1&t){const e=_e();d(0,"button",35),N("click",function(){ae(e);const o=w().$implicit;return se(w(2).toggleRead(o))}),d(1,"span"),h(2,"Mark as read"),l()()}}function Tre(t,n){if(1&t){const e=_e();d(0,"button",35),N("click",function(){ae(e);const o=w().$implicit;return se(w(2).toggleRead(o))}),d(1,"span"),h(2,"Mark as unread"),l()()}}function Mre(t,n){if(1&t&&(d(0,"section",21)(1,"div",2)(2,"div",3),y(3,xre,2,0,"mat-icon",22)(4,Cre,2,0,"mat-icon",23)(5,Dre,2,0,"mat-icon",24)(6,Sre,2,0,"mat-icon",25),l(),d(7,"div",26),h(8),l(),d(9,"div",6)(10,"mat-icon",27),h(11,"more_vert"),l(),d(12,"mat-menu",28,29),y(14,kre,3,0,"button",30)(15,Tre,3,0,"button",30),l()()()()),2&t){const e=n.$implicit,i=Rt(13);m(3),f("ngIf","error"==e.type),m(),f("ngIf","warning"==e.type),m(),f("ngIf","suggestion"==e.type),m(),f("ngIf","note"==e.type),m(2),Ne(e.content),m(2),f("matMenuTriggerFor",i),m(4),f("ngIf",!e.isRead),m(),f("ngIf",e.isRead)}}function Ire(t,n){if(1&t&&(d(0,"div",19),y(1,Mre,16,8,"section",20),l()),2&t){const e=w();m(),f("ngForOf",e.filteredSummaryRows)}}function Ere(t,n){1&t&&(d(0,"div",36)(1,"div",37),Xt(),d(2,"svg",38),D(3,"path",39),l()(),mr(),d(4,"div",40),h(5," Woohoo! No issues or suggestions"),D(6,"br"),h(7,"found. "),l()())}let Ore=(()=>{class t{constructor(e,i){this.data=e,this.clickEvent=i,this.changeIssuesLabel=new Re,this.summaryRows=[],this.summary=new Map,this.filteredSummaryRows=[],this.separatorKeysCodes=[],this.summaryCount=0,this.totalNoteCount=0,this.totalWarningCount=0,this.totalSuggestionCount=0,this.totalErrorCount=0,this.filterInput=new K,this.options=["read","unread","warning","suggestion","note","error"],this.obsFilteredOptions=new ci,this.searchFilters=["unread","warning","note","suggestion","error"],this.currentObject=null}ngOnInit(){this.data.summary.subscribe({next:e=>{if(this.summary=e,this.currentObject){let i=this.currentObject.id;"indexName"==this.currentObject.type&&(i=this.currentObject.parentId);let o=this.summary.get(i);o?(this.summaryRows=[],this.initiateSummaryCollection(o),this.applyFilters(),this.summaryCount=o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount,this.changeIssuesLabel.emit(o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount)):(this.summaryCount=0,this.changeIssuesLabel.emit(0))}else this.initialiseSummaryCollectionForAllTables(this.summary),this.summaryCount=this.totalNoteCount+this.totalErrorCount+this.totalSuggestionCount+this.totalWarningCount,this.changeIssuesLabel.emit(this.summaryCount)}}),this.registerAutoCompleteChange()}initialiseSummaryCollectionForAllTables(e){this.summaryRows=[],this.totalErrorCount=0,this.totalNoteCount=0,this.totalSuggestionCount=0,this.totalWarningCount=0;for(const i of e.values())this.initiateSummaryCollection(i);this.applyFilters()}ngOnChanges(e){if(this.currentObject=e?.currentObject?.currentValue||this.currentObject,this.summaryRows=[],this.currentObject){let i=this.currentObject.id;"indexName"==this.currentObject.type&&(i=this.currentObject.parentId);let o=this.summary.get(i);o?(this.summaryRows=[],this.initiateSummaryCollection(o),this.applyFilters(),this.summaryCount=o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount,this.changeIssuesLabel.emit(o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount)):(this.summaryCount=0,this.changeIssuesLabel.emit(0))}else this.summaryCount=0,this.changeIssuesLabel.emit(0)}initiateSummaryCollection(e){this.totalErrorCount+=e.ErrorsCount,this.totalNoteCount+=e.NotesCount,this.totalWarningCount+=e.WarningsCount,this.totalSuggestionCount+=e.SuggestionsCount,e.Errors.forEach(i=>{this.summaryRows.push({type:"error",content:i.description,isRead:!1})}),e.Warnings.forEach(i=>{this.summaryRows.push({type:"warning",content:i.description,isRead:!1})}),e.Suggestions.forEach(i=>{this.summaryRows.push({type:"suggestion",content:i.description,isRead:!1})}),e.Notes.forEach(i=>{this.summaryRows.push({type:"note",content:i.description,isRead:!1})})}applyFilters(){let e=[],i=[];this.searchFilters.includes("read")&&i.push(o=>o.isRead),this.searchFilters.includes("unread")&&i.push(o=>!o.isRead),this.searchFilters.includes("warning")&&e.push(o=>"warning"==o.type),this.searchFilters.includes("note")&&e.push(o=>"note"==o.type),this.searchFilters.includes("suggestion")&&e.push(o=>"suggestion"==o.type),this.searchFilters.includes("error")&&e.push(o=>"error"==o.type),this.filteredSummaryRows=this.summaryRows.filter(o=>(!i.length||i.some(r=>r(o)))&&(!e.length||e.some(r=>r(o))))}addFilter(e){e&&!this.searchFilters.includes(e)&&this.searchFilters.push(e),this.applyFilters(),this.registerAutoCompleteChange()}removeFilter(e){const i=this.searchFilters.indexOf(e);i>=0&&this.searchFilters.splice(i,1),this.applyFilters()}toggleRead(e){e.isRead=!e.isRead,this.applyFilters()}registerAutoCompleteChange(){this.obsFilteredOptions=this.filterInput.valueChanges.pipe(on(""),nt(e=>this.autoCompleteOnChangeFilter(e)))}autoCompleteOnChangeFilter(e){return this.options.filter(i=>i.toLowerCase().includes(e))}spannerTab(){this.clickEvent.setTabToSpanner()}static#e=this.\u0275fac=function(i){return new(i||t)(_($i),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-summary"]],inputs:{currentObject:"currentObject"},outputs:{changeIssuesLabel:"changeIssuesLabel"},features:[fi],decls:29,vars:11,consts:[[1,"container"],[1,"filter"],[1,"columns"],[1,"left"],[1,"material-icons","filter-icon"],[1,"filter-text"],[1,"right"],[1,"chip-list"],["chipGrid",""],["class","primary",3,"removed",4,"ngFor","ngForOf"],["placeholder","New Filter...",3,"formControl","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matAutocomplete"],["auto","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[1,"header"],["class","content",4,"ngIf"],["class","no-issue-container",4,"ngIf"],[1,"primary",3,"removed"],["matChipRemove",""],[3,"value","click"],[1,"content"],["class","summary-row",4,"ngFor","ngForOf"],[1,"summary-row"],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above","class","danger",4,"ngIf"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above","class","warning",4,"ngIf"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above","class","suggestion",4,"ngIf"],["matTooltip","Note : This is informational and you dont need to do anything.","matTooltipPosition","above","class","success",4,"ngIf"],[1,"middle"],[3,"matMenuTriggerFor"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above",1,"danger"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above",1,"warning"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above",1,"suggestion"],["matTooltip","Note : This is informational and you dont need to do anything.","matTooltipPosition","above",1,"success"],["mat-menu-item","",3,"click"],[1,"no-issue-container"],[1,"no-issue-icon-container"],["width","36","height","36","viewBox","0 0 24 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.8332 0.69873C16.0051 7.45842 16.2492 9.44782 10.4672 10.2012C16.1511 11.1242 16.2329 13.2059 16.8332 19.7037C17.6237 13.1681 17.4697 11.2106 23.1986 10.2012C17.4247 9.45963 17.6194 7.4505 16.8332 0.69873ZM4.23739 0.872955C3.79064 4.52078 3.92238 5.59467 0.802246 6.00069C3.86944 6.49885 3.91349 7.62218 4.23739 11.1284C4.66397 7.60153 4.581 6.54497 7.67271 6.00069C4.55696 5.60052 4.66178 4.51623 4.23739 0.872955ZM7.36426 11.1105C7.05096 13.6683 7.14331 14.4212 4.95554 14.7061C7.10612 15.0553 7.13705 15.8431 7.36426 18.3017C7.66333 15.8288 7.60521 15.088 9.77298 14.7061C7.58818 14.4255 7.66177 13.6653 7.36426 11.1105Z","fill","#3367D6"],[1,"no-issue-message"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"div",3)(5,"span",4),h(6,"filter_list"),l(),d(7,"span",5),h(8,"Filter"),l()(),d(9,"div",6)(10,"mat-form-field",7)(11,"mat-chip-grid",null,8),y(13,yre,5,1,"mat-chip-row",9),l(),D(14,"input",10),d(15,"mat-autocomplete",null,11),y(17,wre,2,2,"mat-option",12),cu(18,"async"),l()()()()(),d(19,"div",13)(20,"div",2)(21,"div",3)(22,"span"),h(23," Status "),l()(),d(24,"div",6)(25,"span"),h(26," Summary "),l()()()(),y(27,Ire,2,1,"div",14)(28,Ere,8,0,"div",15),l()()),2&i){const r=Rt(12),a=Rt(16);m(13),f("ngForOf",o.searchFilters),m(),f("formControl",o.filterInput)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!1)("matAutocomplete",a),m(3),f("ngForOf",lu(18,9,o.obsFilteredOptions)),m(10),f("ngIf",0!==o.summaryCount),m(),f("ngIf",0===o.summaryCount)}},dependencies:[dn,Tt,Ii,Ri,En,Oi,xi,Rl,Vl,xa,jl,kP,TP,CP,Iw,Dn,Uee,gR,wI],styles:[".container[_ngcontent-%COMP%]{height:calc(100vh - 271px);position:relative;overflow-y:auto;background-color:#fff}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%] .no-object-icon-container[_ngcontent-%COMP%]{padding:10px;background-color:#3367d61f;border-radius:3px;margin:20px}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%] .no-object-message[_ngcontent-%COMP%]{width:80%;max-width:500px;text-align:center}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%]{width:100%;position:absolute;top:50%;display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%] .no-issue-icon-container[_ngcontent-%COMP%]{padding:10px;background-color:#3367d61f;border-radius:3px;margin:20px}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%] .no-issue-message[_ngcontent-%COMP%]{width:80%;max-width:500px;text-align:center}h3[_ngcontent-%COMP%]{margin-bottom:0;padding-left:15px}.filter[_ngcontent-%COMP%]{display:flex;flex:1;min-height:65px;padding:0 15px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{order:1;position:relative;padding-top:20px;width:100px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .filter-icon[_ngcontent-%COMP%]{position:absolute;font-size:20px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .filter-text[_ngcontent-%COMP%]{position:absolute;margin-left:30px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{order:2;width:100%}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;min-height:22px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .mat-mdc-chip-input[_ngcontent-%COMP%]{height:24px;flex:0}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .primary[_ngcontent-%COMP%]{background-color:#3f51b5;color:#fff}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .primary[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#fff;opacity:.4}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-underline{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-chip[_ngcontent-%COMP%]{min-height:24px;font-weight:lighter}.header[_ngcontent-%COMP%]{display:flex;flex:1;padding:5px 0;background-color:#f5f5f5;text-align:center}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:60px;order:1}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1;order:2}.summary-row[_ngcontent-%COMP%]{display:flex;flex:1;padding:10px 0;border-bottom:1px solid #ccc}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:60px;order:1;text-align:center;padding-top:5px}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{flex:1;order:2}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:30px;order:3;cursor:pointer}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:18px}.chip-list[_ngcontent-%COMP%]{width:100%}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mdc-chip-label-text-color: #fff}"]})}return t})();function Are(t,n){if(1&t&&(d(0,"h2"),h(1),l()),2&t){const e=w();m(),ke("Skip ",e.eligibleTables.length," table(s)?")}}function Pre(t,n){if(1&t&&(d(0,"h2"),h(1),l()),2&t){const e=w();m(),ke("Restore ",e.eligibleTables.length," table(s) and all associated indexes?")}}function Rre(t,n){1&t&&(d(0,"span",9),h(1," Confirm skip by typing the following below: "),d(2,"b"),h(3,"SKIP"),l(),D(4,"br"),l())}function Nre(t,n){1&t&&(d(0,"span",9),h(1," Confirm restoration by typing the following below: "),d(2,"b"),h(3,"RESTORE"),l(),D(4,"br"),l())}function Fre(t,n){if(1&t&&(d(0,"div")(1,"b"),h(2,"Note:"),l(),h(3),D(4,"br"),d(5,"b"),h(6,"Already skipped tables:"),l(),h(7),l()),2&t){const e=w();m(3),fl(" You selected ",e.data.tables.length," tables. ",e.ineligibleTables.length," table(s) will not be skipped since they are already skipped."),m(4),ke(" ",e.ineligibleTables," ")}}function Lre(t,n){if(1&t&&(d(0,"div")(1,"b"),h(2,"Note:"),l(),h(3),D(4,"br"),d(5,"b"),h(6,"Already active tables:"),l(),h(7),l()),2&t){const e=w();m(3),fl(" You selected ",e.data.tables.length," tables. ",e.ineligibleTables.length," table(s) will not be restored since they are already active."),m(4),ke(" ",e.ineligibleTables," ")}}let ON=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i,this.eligibleTables=[],this.ineligibleTables=[];let o="";"SKIP"==this.data.operation?(o="SKIP",this.data.tables.forEach(r=>{r.isDeleted?this.ineligibleTables.push(r.TableName):this.eligibleTables.push(r.TableName)})):(o="RESTORE",this.data.tables.forEach(r=>{r.isDeleted?this.eligibleTables.push(r.TableName):this.ineligibleTables.push(r.TableName)})),this.confirmationInput=new K("",[ce.required,ce.pattern(o)]),i.disableClose=!0}confirm(){this.dialogRef.close(this.data.operation)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(An))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-bulk-drop-restore-table-dialog"]],decls:19,vars:8,consts:[["mat-dialog-content",""],[4,"ngIf"],[1,"form-container"],["class","form-custom-label",4,"ngIf"],["appearance","outline"],["matInput","","type","text",3,"formControl"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[1,"form-custom-label"]],template:function(i,o){1&i&&(d(0,"div",0),y(1,Are,2,1,"h2",1)(2,Pre,2,1,"h2",1),d(3,"mat-dialog-content")(4,"div",2)(5,"form"),y(6,Rre,5,0,"span",3)(7,Nre,5,0,"span",3),d(8,"mat-form-field",4)(9,"mat-label"),h(10,"Confirm"),l(),D(11,"input",5),l(),y(12,Fre,8,3,"div",1)(13,Lre,8,3,"div",1),l()()(),d(14,"div",6)(15,"button",7),h(16,"Cancel"),l(),d(17,"button",8),N("click",function(){return o.confirm()}),h(18," Confirm "),l()()()),2&i&&(m(),f("ngIf","SKIP"==o.data.operation),m(),f("ngIf","RESTORE"==o.data.operation),m(4),f("ngIf","SKIP"==o.data.operation),m(),f("ngIf","RESTORE"==o.data.operation),m(4),f("formControl",o.confirmationInput),m(),f("ngIf","SKIP"==o.data.operation&&0!=o.ineligibleTables.length),m(),f("ngIf","RESTORE"==o.data.operation&&0!=o.ineligibleTables.length),m(4),f("disabled",!o.confirmationInput.valid))},dependencies:[Tt,Yt,Ri,Pi,rn,On,Oi,xi,Ui,Rl,mo,Jo,er,hs],styles:[".alert-container[_ngcontent-%COMP%]{padding:.5rem;display:flex;align-items:center;margin-bottom:1rem;background-color:#f8f4f4}.alert-container[_ngcontent-%COMP%] mat-mdc-icon[_ngcontent-%COMP%]{color:#f3b300;margin-right:20px}.form-container[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}"]})}return t})();const AN=t=>({"blue-font-color":t});function Bre(t,n){if(1&t&&(d(0,"span",25),h(1),l()),2&t){const e=w();f("ngClass",ui(2,AN,"source"===e.selectedTab)),m(),ke(" ",e.srcDbName.toUpperCase()," ")}}function Vre(t,n){1&t&&(d(0,"th",26),h(1,"Status"),l())}function jre(t,n){1&t&&(Xt(),d(0,"svg",31),D(1,"path",32),l())}function zre(t,n){1&t&&(d(0,"mat-icon",33),h(1," work "),l())}function Hre(t,n){1&t&&(d(0,"mat-icon",34),h(1," work_history "),l())}function Ure(t,n){if(1&t&&(d(0,"td",27),y(1,jre,2,0,"svg",28)(2,zre,2,0,"mat-icon",29)(3,Hre,2,0,"mat-icon",30),l()),2&t){const e=n.$implicit;m(),f("ngIf","EXCELLENT"===e.status||"NONE"===e.status),m(),f("ngIf","OK"===e.status||"GOOD"===e.status),m(),f("ngIf","POOR"===e.status)}}function $re(t,n){1&t&&(d(0,"mat-icon",38),h(1,"arrow_upward"),l())}function Gre(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_upward"),l())}function Wre(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_downward"),l())}function qre(t,n){if(1&t){const e=_e();d(0,"th",35),N("click",function(){return ae(e),se(w().srcTableSort())}),d(1,"div")(2,"span"),h(3," Object Name "),l(),y(4,$re,2,0,"mat-icon",36)(5,Gre,2,0,"mat-icon",37)(6,Wre,2,0,"mat-icon",37),l()()}if(2&t){const e=w();m(4),f("ngIf",""===e.srcSortOrder),m(),f("ngIf","asc"===e.srcSortOrder),m(),f("ngIf","desc"===e.srcSortOrder)}}function Kre(t,n){1&t&&(Xt(),d(0,"svg",48),D(1,"path",49),l())}function Zre(t,n){1&t&&(Xt(),d(0,"svg",50),D(1,"path",51),l())}function Yre(t,n){1&t&&(Xt(),d(0,"svg",52),D(1,"path",53),l())}function Qre(t,n){1&t&&(Xt(),d(0,"svg",54),D(1,"path",55),l())}function Xre(t,n){if(1&t&&(d(0,"span",56)(1,"mat-icon",57),h(2,"more_vert"),l(),d(3,"mat-menu",null,58)(5,"button",59)(6,"span"),h(7,"Add Index"),l()()()()),2&t){const e=Rt(4);m(),f("matMenuTriggerFor",e)}}function Jre(t,n){if(1&t){const e=_e();d(0,"td",40)(1,"button",41),N("click",function(){const r=ae(e).$implicit;return se(w().srcTreeControl.toggle(r))}),y(2,Kre,2,0,"svg",42)(3,Zre,2,0,"ng-template",null,43,_r),l(),d(5,"span",44),N("click",function(){const r=ae(e).$implicit;return se(w().objectSelected(r))}),d(6,"span"),y(7,Yre,2,0,"svg",45)(8,Qre,2,0,"svg",46),d(9,"span"),h(10),l()(),y(11,Xre,8,1,"span",47),l()()}if(2&t){const e=n.$implicit,i=Rt(4),o=w();m(),yn("visibility",e.expandable?"":"hidden")("margin-left",10*e.level,"px"),m(),f("ngIf",o.srcTreeControl.isExpanded(e))("ngIfElse",i),m(5),f("ngIf",o.isTableNode(e.type)),m(),f("ngIf",o.isIndexNode(e.type)),m(2),Ne(e.name),m(),f("ngIf",o.isIndexNode(e.type)&&e.isSpannerNode)}}function eae(t,n){1&t&&D(0,"tr",60)}const PN=t=>({"selected-row":t});function tae(t,n){if(1&t&&D(0,"tr",61),2&t){const e=n.$implicit,i=w();f("ngClass",ui(1,PN,i.shouldHighlight(e)))}}function iae(t,n){if(1&t&&(d(0,"span",25),h(1," SPANNER DRAFT "),l()),2&t){const e=w();f("ngClass",ui(1,AN,"spanner"===e.selectedTab))}}function nae(t,n){1&t&&(d(0,"th",26),h(1,"Status"),l())}function oae(t,n){1&t&&(Xt(),d(0,"svg",31),D(1,"path",32),l())}function rae(t,n){1&t&&(d(0,"mat-icon",33),h(1," work "),l())}function aae(t,n){1&t&&(d(0,"mat-icon",34),h(1," work_history "),l())}function sae(t,n){1&t&&(d(0,"mat-icon",63),h(1," delete "),l())}function cae(t,n){if(1&t&&(d(0,"td",27),y(1,oae,2,0,"svg",28)(2,rae,2,0,"mat-icon",29)(3,aae,2,0,"mat-icon",30)(4,sae,2,0,"mat-icon",62),l()),2&t){const e=n.$implicit;m(),f("ngIf","EXCELLENT"===e.status||"NONE"===e.status),m(),f("ngIf","OK"===e.status||"GOOD"===e.status),m(),f("ngIf","POOR"===e.status),m(),f("ngIf","DARK"===e.status||1==e.isDeleted)}}function lae(t,n){1&t&&(d(0,"mat-icon",65),h(1,"arrow_upward"),l())}function dae(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_upward"),l())}function uae(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_downward"),l())}function hae(t,n){if(1&t){const e=_e();d(0,"th",35),N("click",function(){return ae(e),se(w().spannerTableSort())}),d(1,"div")(2,"span"),h(3," Object Name "),l(),y(4,lae,2,0,"mat-icon",64)(5,dae,2,0,"mat-icon",37)(6,uae,2,0,"mat-icon",37),l()()}if(2&t){const e=w();m(4),f("ngIf",""===e.spannerSortOrder),m(),f("ngIf","asc"===e.spannerSortOrder),m(),f("ngIf","desc"===e.spannerSortOrder)}}function mae(t,n){if(1&t){const e=_e();d(0,"mat-checkbox",70),N("change",function(){ae(e);const o=w().$implicit;return se(w().selectionToggle(o))}),l()}if(2&t){const e=w().$implicit;f("checked",w().checklistSelection.isSelected(e))}}function pae(t,n){1&t&&(Xt(),d(0,"svg",48),D(1,"path",49),l())}function fae(t,n){1&t&&(Xt(),d(0,"svg",50),D(1,"path",51),l())}function gae(t,n){1&t&&(Xt(),d(0,"svg",52),D(1,"path",53),l())}function _ae(t,n){1&t&&(Xt(),d(0,"svg",54),D(1,"path",55),l())}function bae(t,n){if(1&t){const e=_e();d(0,"span",56)(1,"mat-icon",71),h(2,"more_vert"),l(),d(3,"mat-menu",72,58)(5,"button",73),N("click",function(){ae(e);const o=w().$implicit;return se(w().openAddIndexForm(o.parent))}),d(6,"span"),h(7,"Add Index"),l()()()()}if(2&t){const e=Rt(4);m(),f("matMenuTriggerFor",e)}}const vae=()=>({sidebar_link:!0}),yae=t=>({"gray-out":t});function wae(t,n){if(1&t){const e=_e();d(0,"td",66),y(1,mae,1,1,"mat-checkbox",67),d(2,"button",41),N("click",function(){const r=ae(e).$implicit;return se(w().treeControl.toggle(r))}),y(3,pae,2,0,"svg",42)(4,fae,2,0,"ng-template",null,43,_r),l(),d(6,"span",68),N("click",function(){const r=ae(e).$implicit;return se(w().objectSelected(r))}),d(7,"span"),y(8,gae,2,0,"svg",45)(9,_ae,2,0,"svg",46),d(10,"span",69),h(11),l()(),y(12,bae,8,1,"span",47),l()()}if(2&t){const e=n.$implicit,i=Rt(5),o=w();f("ngClass",Wo(13,vae)),m(),f("ngIf",!o.isIndexLikeNode(e)),m(),yn("visibility",e.expandable?"":"hidden")("margin-left",10*e.level,"px"),m(),f("ngIf",o.treeControl.isExpanded(e))("ngIfElse",i),m(3),f("ngClass",ui(14,yae,e.isDeleted)),m(2),f("ngIf",o.isTableNode(e.type)),m(),f("ngIf",o.isIndexNode(e.type)),m(2),Ne(e.name),m(),f("ngIf",o.isIndexNode(e.type))}}function xae(t,n){1&t&&D(0,"tr",60)}function Cae(t,n){if(1&t&&D(0,"tr",61),2&t){const e=n.$implicit,i=w();f("ngClass",ui(1,PN,i.shouldHighlight(e)))}}const xx=t=>[t];let Dae=(()=>{class t{constructor(e,i,o,r,a){this.conversion=e,this.dialog=i,this.data=o,this.sidenav=r,this.clickEvent=a,this.isLeftColumnCollapse=!1,this.currentSelectedObject=null,this.srcSortOrder="",this.spannerSortOrder="",this.srcSearchText="",this.spannerSearchText="",this.selectedTab="spanner",this.selectedDatabase=new Re,this.selectObject=new Re,this.updateSpannerTable=new Re,this.updateSrcTable=new Re,this.leftCollaspe=new Re,this.updateSidebar=new Re,this.spannerTree=[],this.srcTree=[],this.srcDbName="",this.selectedIndex=1,this.transformer=(s,c)=>({expandable:!!s.children&&s.children.length>0,name:s.name,status:s.status,type:s.type,parent:s.parent,parentId:s.parentId,pos:s.pos,isSpannerNode:s.isSpannerNode,level:c,isDeleted:!!s.isDeleted,id:s.id}),this.treeControl=new IP(s=>s.level,s=>s.expandable),this.srcTreeControl=new IP(s=>s.level,s=>s.expandable),this.treeFlattener=new AX(this.transformer,s=>s.level,s=>s.expandable,s=>s.children),this.dataSource=new OP(this.treeControl,this.treeFlattener),this.srcDataSource=new OP(this.srcTreeControl,this.treeFlattener),this.checklistSelection=new Gu(!0,[]),this.displayedColumns=["status","name"]}ngOnInit(){this.clickEvent.tabToSpanner.subscribe({next:e=>{this.setSpannerTab()}})}ngOnChanges(e){let i=e?.spannerTree?.currentValue,o=e?.srcTree?.currentValue;o&&(this.srcDataSource.data=o,this.srcTreeControl.expand(this.srcTreeControl.dataNodes[0]),this.srcTreeControl.expand(this.srcTreeControl.dataNodes[1])),i&&(this.dataSource.data=i,this.treeControl.expand(this.treeControl.dataNodes[0]),this.treeControl.expand(this.treeControl.dataNodes[1]))}filterSpannerTable(){this.updateSpannerTable.emit({text:this.spannerSearchText,order:this.spannerSortOrder})}filterSrcTable(){this.updateSrcTable.emit({text:this.srcSearchText,order:this.srcSortOrder})}srcTableSort(){this.srcSortOrder=""===this.srcSortOrder?"asc":"asc"===this.srcSortOrder?"desc":"",this.updateSrcTable.emit({text:this.srcSearchText,order:this.srcSortOrder})}spannerTableSort(){this.spannerSortOrder=""===this.spannerSortOrder?"asc":"asc"===this.spannerSortOrder?"desc":"",this.updateSpannerTable.emit({text:this.spannerSearchText,order:this.spannerSortOrder})}objectSelected(e){this.currentSelectedObject=e,(e.type===hi.Index||e.type===hi.Table)&&this.selectObject.emit(e)}leftColumnToggle(){this.isLeftColumnCollapse=!this.isLeftColumnCollapse,this.leftCollaspe.emit()}isTableNode(e){return new RegExp("^tables").test(e)}isIndexNode(e){return new RegExp("^indexes").test(e)}isIndexLikeNode(e){return e.type==hi.Index||e.type==hi.Indexes}openAddIndexForm(e){this.sidenav.setSidenavAddIndexTable(e),this.sidenav.setSidenavRuleType("addIndex"),this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("rule"),this.sidenav.setRuleData([]),this.sidenav.setDisplayRuleFlag(!1)}shouldHighlight(e){return e.name===this.currentSelectedObject?.name&&(e.type===hi.Table||e.type===hi.Index)}onTabChanged(){"spanner"==this.selectedTab?(this.selectedTab="source",this.selectedIndex=0):(this.selectedTab="spanner",this.selectedIndex=1),this.selectedDatabase.emit(this.selectedTab),this.currentSelectedObject=null,this.selectObject.emit(void 0)}setSpannerTab(){this.selectedIndex=1}checkDropSelection(){return 0!=this.countSelectionByCategory().eligibleForDrop}checkRestoreSelection(){return 0!=this.countSelectionByCategory().eligibleForRestore}countSelectionByCategory(){let i=0,o=0;return this.checklistSelection.selected.forEach(r=>{r.isDeleted?o+=1:i+=1}),{eligibleForDrop:i,eligibleForRestore:o}}dropSelected(){var i=[];this.checklistSelection.selected.forEach(a=>{""!=a.id&&a.type==hi.Table&&i.push({TableId:a.id,TableName:a.name,isDeleted:a.isDeleted})});let o=this.dialog.open(ON,{width:"35vw",minWidth:"450px",maxWidth:"600px",maxHeight:"90vh",data:{tables:i,operation:"SKIP"}});var r={TableList:[]};i.forEach(a=>{r.TableList.push(a.TableId)}),o.afterClosed().subscribe(a=>{"SKIP"==a&&(this.data.dropTables(r).pipe(Nt(1)).subscribe(s=>{""===s&&(this.data.getConversionRate(),this.updateSidebar.emit(!0))}),this.checklistSelection.clear())})}restoreSelected(){var i=[];this.checklistSelection.selected.forEach(a=>{""!=a.id&&a.type==hi.Table&&i.push({TableId:a.id,TableName:a.name,isDeleted:a.isDeleted})});let o=this.dialog.open(ON,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{tables:i,operation:"RESTORE"}});var r={TableList:[]};i.forEach(a=>{r.TableList.push(a.TableId)}),o.afterClosed().subscribe(a=>{"RESTORE"==a&&(this.data.restoreTables(r).pipe(Nt(1)).subscribe(s=>{this.data.getConversionRate(),this.data.getDdl()}),this.checklistSelection.clear())})}selectionToggle(e){this.checklistSelection.toggle(e);const i=this.treeControl.getDescendants(e);this.checklistSelection.isSelected(e)?this.checklistSelection.select(...i):this.checklistSelection.deselect(...i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(hc),_(jr),_($i),_(Xn),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-object-explorer"]],inputs:{spannerTree:"spannerTree",srcTree:"srcTree",srcDbName:"srcDbName"},outputs:{selectedDatabase:"selectedDatabase",selectObject:"selectObject",updateSpannerTable:"updateSpannerTable",updateSrcTable:"updateSrcTable",leftCollaspe:"leftCollaspe",updateSidebar:"updateSidebar"},features:[fi],decls:59,vars:20,consts:[[1,"container"],[3,"ngClass","selectedIndex","selectedTabChange"],["mat-tab-label",""],[1,"filter-wrapper"],[1,"left"],[1,"material-icons","filter-icon"],[1,"filter-text"],[1,"right"],["placeholder","Filter by table name",3,"ngModel","ngModelChange"],[1,"explorer-table"],["mat-table","",3,"dataSource"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","class","mat-header-cell-name cursor-pointer",3,"click",4,"matHeaderCellDef"],["mat-cell","","class","sidebar_link",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["clas","delete-selected-btn"],["mat-button","","color","primary",1,"icon","drop",3,"disabled","click"],["clas","restore-selected-btn"],["mat-table","","id","table-and-index-list",3,"dataSource"],["mat-cell","",3,"ngClass",4,"matCellDef"],["id","left-column-toggle-button",3,"click"],[3,"ngClass"],["mat-header-cell",""],["mat-cell",""],["class","icon success","matTooltip","Can be converted automatically","matTooltipPosition","above","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","black",4,"ngIf"],["class","work","matTooltip","Requires minimal conversion changes","matTooltipPosition","above",4,"ngIf"],["class","work_history","matTooltip","Requires high complexity conversion changes","matTooltipPosition","above",4,"ngIf"],["matTooltip","Can be converted automatically","matTooltipPosition","above","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","black",1,"icon","success"],["d","m10.4 17.6-2-4.4-4.4-2 4.4-2 2-4.4 2 4.4 4.4 2-4.4 2Zm6.4 1.6-1-2.2-2.2-1 2.2-1 1-2.2 1 2.2 2.2 1-2.2 1Z"],["matTooltip","Requires minimal conversion changes","matTooltipPosition","above",1,"work"],["matTooltip","Requires high complexity conversion changes","matTooltipPosition","above",1,"work_history"],["mat-header-cell","",1,"mat-header-cell-name","cursor-pointer",3,"click"],["class","src-unsorted-icon sort-icon",4,"ngIf"],["class","sort-icon",4,"ngIf"],[1,"src-unsorted-icon","sort-icon"],[1,"sort-icon"],["mat-cell","",1,"sidebar_link"],["mat-icon-button","",3,"click"],["width","12","height","6","viewBox","0 0 12 6","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf","ngIfElse"],["collaps",""],[1,"sidebar_link",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["width","12","height","14","viewBox","0 0 12 14","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["class","actions",4,"ngIf"],["width","12","height","6","viewBox","0 0 12 6","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 0L0 0L6 6L12 0Z","fill","black","fill-opacity","0.54"],["width","6","height","12","viewBox","0 0 6 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M-5.24537e-07 2.62268e-07L0 12L6 6L-5.24537e-07 2.62268e-07Z","fill","black","fill-opacity","0.54"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M0 0V18H18V0H0ZM16 2V6H2V2H16ZM7.33 11V8H10.66V11H7.33ZM10.67 13V16H7.34V13H10.67ZM5.33 11H2V8H5.33V11ZM12.67 8H16V11H12.67V8ZM2 13H5.33V16H2V13ZM12.67 16V13H16V16H12.67Z","fill","black","fill-opacity","0.54"],["width","12","height","14","viewBox","0 0 12 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.005 14C11.555 14 12 13.554 12 13.002V5L10 3V12H2V14H11.005ZM0 0.996C0 0.446 0.438 0 1.003 0H7L9 2.004V10.004C9 10.554 8.554 11 8.002 11H0.998C0.867035 11.0003 0.737304 10.9747 0.616233 10.9248C0.495162 10.8748 0.385128 10.8015 0.292428 10.709C0.199729 10.6165 0.126186 10.5066 0.0760069 10.3856C0.0258282 10.2646 -2.64036e-07 10.135 0 10.004V0.996ZM6 1L5 5.5H2L6 1ZM3 10L4 5.5H7L3 10Z","fill","black","fill-opacity","0.54"],[1,"actions"],[3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item",""],["mat-header-row",""],["mat-row","",3,"ngClass"],["class","icon dark","matTooltip","Deleted","matTooltipPosition","above",4,"ngIf"],["matTooltip","Deleted","matTooltipPosition","above",1,"icon","dark"],["class","spanner-unsorted-icon sort-icon",4,"ngIf"],[1,"spanner-unsorted-icon","sort-icon"],["mat-cell","",3,"ngClass"],["class","checklist-node",3,"checked","change",4,"ngIf"],[1,"sidebar_link",3,"ngClass","click"],[1,"object-name"],[1,"checklist-node",3,"checked","change"],[1,"add-index-icon",3,"matMenuTriggerFor"],["xPosition","before"],["mat-menu-item","",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-tab-group",1),N("selectedTabChange",function(){return o.onTabChanged()}),d(2,"mat-tab"),y(3,Bre,2,4,"ng-template",2),d(4,"div",3)(5,"div",4)(6,"span",5),h(7,"filter_list"),l(),d(8,"span",6),h(9,"Filter"),l()(),d(10,"div",7)(11,"input",8),xn("ngModelChange",function(a){return Tn(o.srcSearchText,a)||(o.srcSearchText=a),a}),N("ngModelChange",function(){return o.filterSrcTable()}),l()()(),d(12,"div",9)(13,"table",10),ye(14,11),y(15,Vre,2,0,"th",12)(16,Ure,4,3,"td",13),we(),ye(17,14),y(18,qre,7,3,"th",15)(19,Jre,12,10,"td",16),we(),y(20,eae,1,0,"tr",17)(21,tae,1,3,"tr",18),l()()(),d(22,"mat-tab"),y(23,iae,2,3,"ng-template",2),d(24,"div",3)(25,"div",4)(26,"span",5),h(27,"filter_list"),l(),d(28,"span",6),h(29,"Filter"),l()(),d(30,"div",7)(31,"input",8),xn("ngModelChange",function(a){return Tn(o.spannerSearchText,a)||(o.spannerSearchText=a),a}),N("ngModelChange",function(){return o.filterSpannerTable()}),l()(),d(32,"div",19)(33,"button",20),N("click",function(){return o.dropSelected()}),d(34,"mat-icon"),h(35,"delete"),l(),d(36,"span"),h(37,"SKIP"),l()()(),d(38,"div",21)(39,"button",20),N("click",function(){return o.restoreSelected()}),d(40,"mat-icon"),h(41,"undo"),l(),d(42,"span"),h(43,"RESTORE"),l()()()(),d(44,"div",9)(45,"table",22),ye(46,11),y(47,nae,2,0,"th",12)(48,cae,5,4,"td",13),we(),ye(49,14),y(50,hae,7,3,"th",15)(51,wae,13,16,"td",23),we(),y(52,xae,1,0,"tr",17)(53,Cae,1,3,"tr",18),l()()()(),d(54,"button",24),N("click",function(){return o.leftColumnToggle()}),d(55,"mat-icon",25),h(56,"first_page"),l(),d(57,"mat-icon",25),h(58,"last_page"),l()()()),2&i&&(m(),f("ngClass",ui(14,xx,o.isLeftColumnCollapse?"hidden":"display"))("selectedIndex",o.selectedIndex),m(10),wn("ngModel",o.srcSearchText),m(2),f("dataSource",o.srcDataSource),m(7),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns),m(10),wn("ngModel",o.spannerSearchText),m(2),f("disabled",!o.checkDropSelection()),m(6),f("disabled",!o.checkRestoreSelection()),m(6),f("dataSource",o.dataSource),m(7),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns),m(2),f("ngClass",ui(16,xx,o.isLeftColumnCollapse?"hidden":"display")),m(2),f("ngClass",ui(18,xx,o.isLeftColumnCollapse?"display":"hidden")))},dependencies:[vr,Tt,Yt,_a,Ii,Oi,xi,Vl,xa,jl,ps,ka,fs,Ta,Sa,gs,Ma,Ia,_s,bs,Fw,Jf,Bw,Dn,ng,Pl],styles:[".container[_ngcontent-%COMP%]{position:relative;background-color:#fff}.container[_ngcontent-%COMP%] .filter-wrapper[_ngcontent-%COMP%]{padding:0 10px}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]{height:35px}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] .spanner-unsorted-icon[_ngcontent-%COMP%]{visibility:hidden}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]:hover .spanner-unsorted-icon[_ngcontent-%COMP%]{visibility:visible;opacity:.7}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] .src-unsorted-icon[_ngcontent-%COMP%]{visibility:hidden}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]:hover .src-unsorted-icon[_ngcontent-%COMP%]{visibility:visible;opacity:.7}.container[_ngcontent-%COMP%] .sort-icon[_ngcontent-%COMP%]{font-size:1.1rem;vertical-align:middle}.selected-row[_ngcontent-%COMP%]{background-color:#61b3ff4a}.explorer-table[_ngcontent-%COMP%]{height:calc(100vh - 320px);width:100%;overflow:auto}.mdc-data-table__cell[_ngcontent-%COMP%], .mdc-data-table__header-cell[_ngcontent-%COMP%]{padding:0 0 0 16px}.mat-mdc-table[_ngcontent-%COMP%]{width:100%;border:inset}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;height:40px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:10px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{height:40px;margin-left:14px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .add-index-icon[_ngcontent-%COMP%]{margin-top:7px}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%], .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%]{height:29px}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%]{font-family:Roboto;font-size:13px;font-style:normal;font-weight:500;line-height:18px;background:#f5f5f5}.mat-mdc-table[_ngcontent-%COMP%] .mat-column-status[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:medium}.mat-mdc-table[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:20px}.filter-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;height:48px}.filter-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:30%;display:flex;align-items:center}.filter-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:5px}.filter-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:70%}.filter-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:70%;border:none;outline:none;background-color:transparent}#left-column-toggle-button[_ngcontent-%COMP%]{z-index:100;position:absolute;right:4px;top:10px;border:none;background-color:inherit}#left-column-toggle-button[_ngcontent-%COMP%]:hover{cursor:pointer}.mat-mdc-column-status[_ngcontent-%COMP%]{width:80px} .column-left .mat-mdc-tab-label-container{margin-right:40px} .column-left .mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-label-container{margin-right:0} .column-left .mat-mdc-tab-header-pagination-after{margin-right:40px}"]})}return t})();function Sae(t,n){1&t&&(d(0,"div",9)(1,"mat-icon"),h(2,"warning"),l(),d(3,"span"),h(4,"This operation cannot be undone"),l()())}let RN=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i,this.ObjectDetailNodeType=od,this.confirmationInput=new K("",[ce.required,ce.pattern(`^${e.name}$`)]),i.disableClose=!0}delete(){this.dialogRef.close(this.data.type)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(An))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-drop-index-dialog"]],decls:19,vars:7,consts:[["mat-dialog-content",""],["class","alert-container",4,"ngIf"],[1,"form-container"],[1,"form-custom-label"],["appearance","outline"],["matInput","","type","text",3,"formControl"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[1,"alert-container"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),h(2),l(),y(3,Sae,5,0,"div",1),d(4,"div",2)(5,"form")(6,"span",3),h(7," Confirm deletion by typing the following below: "),d(8,"b"),h(9),l()(),d(10,"mat-form-field",4)(11,"mat-label"),h(12),l(),D(13,"input",5),l()()()(),d(14,"div",6)(15,"button",7),h(16,"Cancel"),l(),d(17,"button",8),N("click",function(){return o.delete()}),h(18," Confirm "),l()()),2&i&&(m(2),fl("Skip ",o.data.type," (",o.data.name,")?"),m(),f("ngIf","Index"===o.data.type),m(6),Ne(o.data.name),m(3),ke("",o.data.type==o.ObjectDetailNodeType.Table?"Table":"Index"," Name"),m(),f("formControl",o.confirmationInput),m(4),f("disabled",!o.confirmationInput.valid))},dependencies:[Tt,Yt,Ii,Ri,Pi,rn,On,Oi,xi,Ui,Rl,mo,Jo,er,hs],styles:[".alert-container[_ngcontent-%COMP%]{padding:.5rem;display:flex;align-items:center;margin-bottom:1rem;background-color:#f8f4f4}.alert-container[_ngcontent-%COMP%] mat-mdc-icon[_ngcontent-%COMP%]{color:#f3b300;margin-right:20px}.form-container[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}"]})}return t})();function kae(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Ne(e)}}function Tae(t,n){1&t&&(d(0,"div")(1,"mat-form-field",2)(2,"mat-label"),h(3,"Length"),l(),D(4,"input",13),l(),D(5,"br"),l())}function Mae(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=w().$implicit;f("value",e),m(),ke(" ",""!==e.Name?e.Name:"None"," ")}}function Iae(t,n){if(1&t&&(ye(0),y(1,Mae,2,2,"mat-option",16),we()),2&t){const e=n.$implicit;m(),f("ngIf",""===e.GenerationType)}}function Eae(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),ke(" ",e.Name," ")}}function Oae(t,n){if(1&t&&(d(0,"mat-optgroup",18),y(1,Eae,2,2,"mat-option",6),l()),2&t){const e=w().$implicit;f("label",e.key),m(),f("ngForOf",e.value)}}function Aae(t,n){if(1&t&&(ye(0),y(1,Oae,2,2,"mat-optgroup",17),we()),2&t){const e=n.$implicit;m(),f("ngIf",""!==e.key)}}function Pae(t,n){if(1&t&&(ye(0),y(1,Aae,2,1,"ng-container",15),cu(2,"keyvalue"),we()),2&t){const e=n.ngIf;m(),f("ngForOf",lu(2,1,e))}}function Rae(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-form-field",2)(2,"mat-label"),h(3,"Auto Generated"),l(),d(4,"mat-select",14),xn("ngModelChange",function(o){ae(e);const r=w();return Tn(r.selectedAutoGen,o)||(r.selectedAutoGen=o),se(o)}),y(5,Iae,2,1,"ng-container",15)(6,Pae,3,3,"ng-container",7),l()(),D(7,"br"),l()}if(2&t){const e=w();m(4),wn("ngModel",e.selectedAutoGen),m(),f("ngForOf",e.autoGenMap[e.selectedDatatype]),m(),f("ngIf",e.processedAutoGenMap[e.selectedDatatype])}}function Nae(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.displayName," ")}}let Fae=(()=>{class t{constructor(e,i,o,r,a){this.formBuilder=e,this.dataService=i,this.fetchSerice=o,this.dialogRef=r,this.data=a,this.dialect="",this.datatypes=[],this.selectedDatatype="",this.tableId="",this.selectedNull=!0,this.dataTypesWithColLen=Sn.DataTypes,this.autoGenMap={},this.selectedAutoGen={Name:"",GenerationType:""},this.processedAutoGenMap={},this.srcDbName=localStorage.getItem(Qi.SourceDbName),this.autoGenSupportedDbs=["MySQL"],this.autGenSupported=!1,this.isColumnNullable=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.dialect=a.dialect,this.tableId=a.tableId,this.addNewColumnForm=this.formBuilder.group({name:["",[ce.required,ce.minLength(1),ce.maxLength(128),ce.pattern("^[a-zA-Z][a-zA-Z0-9_]*$")]],datatype:["",ce.required],length:["",ce.pattern("^[0-9]+$")],isNullable:[],autoGen:[{Name:"",GenerationType:""}]}),this.fetchSerice.getAutoGenMap().subscribe(s=>{this.autoGenMap=s,this.processedAutoGenMap=kN(this.autoGenMap)}),this.autGenSupported=this.autoGenSupportedDbs.includes(this.srcDbName)}ngOnInit(){this.datatypes="google_standard_sql"==this.dialect?DN_GoogleStandardSQL:DN_PostgreSQL}changeValidator(){this.addNewColumnForm.controls.length.clearValidators(),"BYTES"===this.selectedDatatype?this.addNewColumnForm.get("length")?.addValidators([ce.required,ce.max(Sn.ByteMaxLength)]):("VARCHAR"===this.selectedDatatype||"STRING"===this.selectedDatatype)&&this.addNewColumnForm.get("length")?.addValidators([ce.required,ce.max(Sn.StringMaxLength)]),this.addNewColumnForm.controls.length.updateValueAndValidity()}addNewColumn(){let e=this.addNewColumnForm.value,i={Name:e.name,Datatype:this.selectedDatatype,Length:parseInt(e.length),IsNullable:this.selectedNull,AutoGen:this.selectedAutoGen};this.dataService.addColumn(this.tableId,i),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(ba),_($i),_(zn),_(An),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-add-new-column"]],decls:27,vars:8,consts:[["mat-dialog-content",""],[1,"add-new-column-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","placeholder","Column Name","type","text","formControlName","name"],["appearance","outline"],["formControlName","datatype","required","true",1,"input-field",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["formControlName","isNullable","required","true",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[3,"value"],["matInput","","placeholder","Length","type","text","formControlName","length"],["formControlName","autoGen",1,"input-field",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"],[3,"label",4,"ngIf"],[3,"label"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Column Details"),l(),d(4,"mat-form-field",2)(5,"mat-label"),h(6,"Name"),l(),D(7,"input",3),l(),D(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),h(11,"Datatype"),l(),d(12,"mat-select",5),xn("ngModelChange",function(a){return Tn(o.selectedDatatype,a)||(o.selectedDatatype=a),a}),N("selectionChange",function(){return o.changeValidator()}),y(13,kae,2,2,"mat-option",6),l()(),D(14,"br"),y(15,Tae,6,0,"div",7)(16,Rae,8,3,"div",7),d(17,"mat-form-field",4)(18,"mat-label"),h(19,"IsNullable"),l(),d(20,"mat-select",8),xn("ngModelChange",function(a){return Tn(o.selectedNull,a)||(o.selectedNull=a),a}),y(21,Nae,2,2,"mat-option",6),l()()(),d(22,"div",9)(23,"button",10),h(24,"CANCEL"),l(),d(25,"button",11),N("click",function(){return o.addNewColumn()}),h(26," ADD "),l()()()),2&i&&(m(),f("formGroup",o.addNewColumnForm),m(11),wn("ngModel",o.selectedDatatype),m(),f("ngForOf",o.datatypes),m(2),f("ngIf",o.dataTypesWithColLen.indexOf(o.selectedDatatype)>-1),m(),f("ngIf",""!=o.selectedDatatype&&o.autoGenMap[o.selectedDatatype].length>1&&o.autGenSupported),m(4),wn("ngModel",o.selectedNull),m(),f("ngForOf",o.isColumnNullable),m(4),f("disabled",!o.addNewColumnForm.valid))},dependencies:[dn,Tt,Yt,Ri,Pi,rn,uo,En,TE,On,Oi,xi,Ui,Bo,Ai,Yi,mo,Jo,er,ay]})}return t})();function Lae(t,n){1&t&&(d(0,"span"),h(1," To view and modify an object details, click on the object name on the Spanner draft panel. "),l())}function Bae(t,n){if(1&t&&(d(0,"span"),h(1),l()),2&t){const e=w(2);m(),ke(" To view an object details, click on the object name on the ",e.srcDbName," panel. ")}}const Mg=t=>[t];function Vae(t,n){if(1&t){const e=_e();d(0,"div",2)(1,"div",3)(2,"h3",4),h(3,"OBJECT VIEWER"),l(),d(4,"button",5),N("click",function(){return ae(e),se(w().middleColumnToggle())}),d(5,"mat-icon",6),h(6,"first_page"),l(),d(7,"mat-icon",6),h(8,"last_page"),l()()(),D(9,"mat-divider"),d(10,"div",7)(11,"div",8),Xt(),d(12,"svg",9),D(13,"path",10),l()(),mr(),d(14,"div",11),y(15,Lae,2,0,"span",12)(16,Bae,2,1,"span",12),l()()()}if(2&t){const e=w();m(5),f("ngClass",ui(4,Mg,e.isMiddleColumnCollapse?"display":"hidden")),m(2),f("ngClass",ui(6,Mg,e.isMiddleColumnCollapse?"hidden":"display")),m(8),f("ngIf","spanner"==e.currentDatabase),m(),f("ngIf","source"==e.currentDatabase)}}function jae(t,n){1&t&&(d(0,"mat-icon",23),h(1," table_chart"),l())}function zae(t,n){1&t&&(Xt(),d(0,"svg",24),D(1,"path",25),l())}function Hae(t,n){if(1&t&&(d(0,"span"),h(1),cu(2,"uppercase"),l()),2&t){const e=w(2);m(),ke("( TABLE: ",lu(2,1,e.currentObject.parent)," ) ")}}function Uae(t,n){if(1&t){const e=_e();d(0,"button",26),N("click",function(){return ae(e),se(w(2).dropIndex())}),d(1,"mat-icon"),h(2,"delete"),l(),d(3,"span"),h(4,"SKIP INDEX"),l()()}}function $ae(t,n){if(1&t){const e=_e();d(0,"button",26),N("click",function(){return ae(e),se(w(2).restoreIndex())}),d(1,"mat-icon"),h(2,"undo"),l(),d(3,"span"),h(4," RESTORE INDEX"),l()()}}function Gae(t,n){if(1&t){const e=_e();d(0,"button",26),N("click",function(){return ae(e),se(w(2).dropTable())}),d(1,"mat-icon"),h(2,"delete"),l(),d(3,"span"),h(4,"SKIP TABLE"),l()()}}function Wae(t,n){if(1&t){const e=_e();d(0,"button",26),N("click",function(){return ae(e),se(w(2).restoreSpannerTable())}),d(1,"mat-icon"),h(2,"undo"),l(),d(3,"span"),h(4," RESTORE TABLE"),l()()}}function qae(t,n){if(1&t&&(d(0,"div",27),h(1," Interleaved: "),d(2,"div",28),h(3),l()()),2&t){const e=w(2);m(3),ke(" ",e.interleaveParentName," ")}}function Kae(t,n){1&t&&(d(0,"span"),h(1,"COLUMNS "),l())}function Zae(t,n){if(1&t&&(d(0,"th",76),h(1),l()),2&t){const e=w(3);m(),Ne(e.srcDbName)}}function Yae(t,n){1&t&&(d(0,"th",77),h(1,"S No."),l())}function Qae(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcOrder").value," ")}}function Xae(t,n){1&t&&(d(0,"th",77),h(1,"Name"),l())}function Jae(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcColName").value," ")}}function ese(t,n){1&t&&(d(0,"th",77),h(1,"Type"),l())}function tse(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcDataType").value," ")}}function ise(t,n){1&t&&(d(0,"th",77),h(1,"Max Length"),l())}function nse(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcColMaxLength").value," ")}}function ose(t,n){1&t&&(d(0,"th",77),h(1,"Pk"),l())}function rse(t,n){1&t&&(d(0,"div"),Xt(),d(1,"svg",79),D(2,"path",80),l()())}function ase(t,n){if(1&t&&(d(0,"td",78),y(1,rse,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("srcIsPk").value)}}function sse(t,n){1&t&&(d(0,"th",77),h(1,"Nullable"),l())}function cse(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcIsNotNull").value?"Not Null":""," ")}}function lse(t,n){1&t&&D(0,"tr",81)}function dse(t,n){1&t&&D(0,"tr",81)}const use=t=>({"scr-column-data-edit-mode":t});function hse(t,n){if(1&t&&D(0,"tr",82),2&t){const e=w(3);f("ngClass",ui(1,use,e.isEditMode))}}function mse(t,n){if(1&t){const e=_e();d(0,"button",86),N("click",function(){return ae(e),se(w(5).toggleEdit())}),d(1,"mat-icon",87),h(2,"edit"),l(),h(3," EDIT "),l()}}function pse(t,n){if(1&t&&(d(0,"div"),y(1,mse,4,0,"button",85),l()),2&t){const e=w(4);m(),f("ngIf",e.currentObject.isSpannerNode)}}function fse(t,n){if(1&t){const e=_e();d(0,"button",86),N("click",function(){return ae(e),se(w(5).addNewColumn())}),d(1,"mat-icon",87),h(2,"edit"),l(),h(3," ADD COLUMN "),l()}}function gse(t,n){if(1&t&&(d(0,"div"),y(1,fse,4,0,"button",85),l()),2&t){const e=w(4);m(),f("ngIf",e.currentObject.isSpannerNode)}}function _se(t,n){if(1&t&&(d(0,"th",83)(1,"div",84)(2,"span"),h(3,"Spanner"),l(),y(4,pse,2,1,"div",12)(5,gse,2,1,"div",12),l()()),2&t){const e=w(3);m(4),f("ngIf",!e.isEditMode&&!e.currentObject.isDeleted),m(),f("ngIf",!e.isEditMode&&!e.currentObject.isDeleted)}}function bse(t,n){1&t&&(d(0,"th",77),h(1,"Name"),l())}function vse(t,n){if(1&t&&(d(0,"div"),D(1,"input",88),l()),2&t){const e=w().$implicit;let i;m(),f("formControl",e.get("spColName"))("matTooltipDisabled",!(null!=(i=e.get("spColName"))&&i.hasError("pattern")))}}function yse(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Ne(e.get("spColName").value)}}function wse(t,n){if(1&t&&(d(0,"td",78),y(1,vse,2,2,"div",12)(2,yse,2,1,"p",12),l()),2&t){const e=n.$implicit,i=w(3);m(),f("ngIf",i.isEditMode&&""!==e.get("spDataType").value&&""!==e.get("srcId").value),m(),f("ngIf",!i.isEditMode||""===e.get("srcId").value)}}function xse(t,n){1&t&&(d(0,"th",77),h(1,"Type"),l())}function Cse(t,n){if(1&t&&(d(0,"span",92),h(1,"warning"),l()),2&t){const e=w().index;f("matTooltip",w(3).spTableSuggestion[e])}}function Dse(t,n){if(1&t&&(d(0,"mat-option",99),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayT),m(),ke(" ",e.DisplayT," ")}}function Sse(t,n){1&t&&(d(0,"mat-option",100),h(1," STRING "),l())}function kse(t,n){1&t&&(d(0,"mat-option",101),h(1," VARCHAR "),l())}function Tse(t,n){if(1&t){const e=_e();d(0,"mat-form-field",93)(1,"mat-select",94,95),N("selectionChange",function(){ae(e);const o=Rt(2),r=w().index;return se(w(3).spTableEditSuggestionHandler(r,o.value))}),y(3,Dse,2,2,"mat-option",96)(4,Sse,2,0,"mat-option",97)(5,kse,2,0,"mat-option",98),l()()}if(2&t){const e=w().$implicit,i=w(3);m(),f("formControl",e.get("spDataType")),m(2),f("ngForOf",i.typeMap[e.get("srcDataType").value]),m(),f("ngIf",""==e.get("srcDataType").value&&!i.isPostgreSQLDialect),m(),f("ngIf",""==e.get("srcDataType").value&&i.isPostgreSQLDialect)}}function Mse(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Ne(e.get("spDataType").value)}}function Ise(t,n){if(1&t&&(d(0,"td",78)(1,"div",89),y(2,Cse,2,1,"span",90)(3,Tse,6,4,"mat-form-field",91)(4,Mse,2,1,"p",12),l()()),2&t){const e=n.$implicit,i=n.index,o=w(3);m(2),f("ngIf",o.isSpTableSuggesstionDisplay[i]&&""!==e.get("spDataType").value),m(),f("ngIf",o.isEditMode&&""!==e.get("spDataType").value&&""!==e.get("srcId").value),m(),f("ngIf",!o.isEditMode||""===e.get("srcId").value)}}function Ese(t,n){1&t&&(d(0,"th",77),h(1,"Auto-Generated"),l())}function Ose(t,n){if(1&t&&(d(0,"mat-option",99),h(1),l()),2&t){const e=w().$implicit;f("value",e),m(),ke(" ",""!==e.Name?e.Name:"None"," ")}}function Ase(t,n){if(1&t&&(ye(0),y(1,Ose,2,2,"mat-option",107),we()),2&t){const e=n.$implicit;m(),f("ngIf",""===e.GenerationType)}}function Pse(t,n){if(1&t&&(d(0,"mat-option",99),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),ke(" ",e.Name," ")}}function Rse(t,n){if(1&t&&(d(0,"mat-optgroup",109),y(1,Pse,2,2,"mat-option",96),l()),2&t){const e=w().$implicit;f("label",e.key),m(),f("ngForOf",e.value)}}function Nse(t,n){if(1&t&&(ye(0),y(1,Rse,2,2,"mat-optgroup",108),we()),2&t){const e=n.$implicit;m(),f("ngIf",""!==e.key)}}function Fse(t,n){if(1&t&&(ye(0),y(1,Nse,2,1,"ng-container",106),cu(2,"keyvalue"),we()),2&t){const e=n.ngIf,i=w(6);m(),f("ngForOf",lu(2,1,i.processedAutoGenMap[e]))}}function Lse(t,n){if(1&t&&(ye(0),d(1,"mat-form-field",93)(2,"mat-select",104,105),y(4,Ase,2,1,"ng-container",106)(5,Fse,3,3,"ng-container",12),l()(),we()),2&t){const e=w().$implicit,i=w(4);m(2),f("formControl",e.get("spAutoGen"))("compareWith",i.compareAutoGen),m(2),f("ngForOf",i.autoGenMap[e.get("spDataType").value]),m(),f("ngIf",e.get("spDataType").value)}}function Bse(t,n){if(1&t&&(ye(0),d(1,"p"),h(2),l(),we()),2&t){const e=w().$implicit;m(2),Ne(""!==e.get("spAutoGen").value.Name?e.get("spAutoGen").value.Name:"None")}}function Vse(t,n){if(1&t&&(d(0,"td",78)(1,"div",103),y(2,Lse,6,4,"ng-container",12)(3,Bse,3,1,"ng-container",12),l()()),2&t){const e=n.$implicit,i=w(4);m(2),f("ngIf",i.isEditMode&&""!==e.get("srcId").value),m(),f("ngIf",!i.isEditMode)}}function jse(t,n){1&t&&(ye(0,102),y(1,Ese,2,0,"th",41)(2,Vse,4,2,"td",38),we())}function zse(t,n){1&t&&(d(0,"th",77),h(1,"Max Length"),l())}function Hse(t,n){if(1&t&&(d(0,"div"),D(1,"input",110),l()),2&t){const e=w(2).$implicit;m(),f("formControl",e.get("spColMaxLength"))}}function Use(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w(2).$implicit;m(),ke(" ",e.get("spColMaxLength").value," ")}}function $se(t,n){if(1&t&&(d(0,"div"),y(1,Hse,2,1,"div",12)(2,Use,2,1,"p",12),l()),2&t){const e=w().$implicit,i=w(3);m(),f("ngIf",i.isEditMode&&""!=e.get("srcDataType").value&&e.get("spId").value!==i.shardIdCol),m(),f("ngIf",!i.isEditMode||e.get("spId").value===i.shardIdCol)}}function Gse(t,n){if(1&t&&(d(0,"td",78),y(1,$se,3,2,"div",12),l()),2&t){const e=n.$implicit,i=w(3);m(),f("ngIf",i.dataTypesWithColLen.indexOf(e.get("spDataType").value)>-1)}}function Wse(t,n){1&t&&(d(0,"th",77),h(1,"Pk"),l())}function qse(t,n){1&t&&(d(0,"div"),Xt(),d(1,"svg",79),D(2,"path",80),l()())}function Kse(t,n){if(1&t&&(d(0,"td",78),y(1,qse,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spIsPk").value)}}function Zse(t,n){1&t&&(d(0,"span"),h(1,"Not Null"),l())}function Yse(t,n){1&t&&(d(0,"span"),h(1,"Nullable"),l())}function Qse(t,n){if(1&t&&(d(0,"th",77),y(1,Zse,2,0,"span",12)(2,Yse,2,0,"span",12),l()),2&t){const e=w(3);m(),f("ngIf",e.isEditMode),m(),f("ngIf",!e.isEditMode)}}function Xse(t,n){if(1&t&&(d(0,"div"),D(1,"mat-checkbox",112),l()),2&t){const e=w().$implicit;m(),f("formControl",e.get("spIsNotNull"))}}function Jse(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),ke(" ",e.get("spIsNotNull").value?"Not Null":""," ")}}function ece(t,n){if(1&t&&(d(0,"td",78)(1,"div",111),y(2,Xse,2,1,"div",12)(3,Jse,2,1,"p",12),l()()),2&t){const e=n.$implicit,i=w(3);m(2),f("ngIf",i.isEditMode&&""!==e.get("spDataType").value&&e.get("spId").value!==i.shardIdCol),m(),f("ngIf",!i.isEditMode||e.get("spId").value===i.shardIdCol)}}function tce(t,n){1&t&&D(0,"th",77)}function ice(t,n){if(1&t){const e=_e();d(0,"div",115)(1,"mat-icon",116),h(2,"more_vert"),l(),d(3,"mat-menu",117,118)(5,"button",119),N("click",function(){ae(e);const o=w().$implicit;return se(w(3).dropColumn(o))}),d(6,"span"),h(7,"Drop Column"),l()()()()}if(2&t){const e=Rt(4);m(),f("matMenuTriggerFor",e)}}const Ig=t=>({"drop-button-left-border":t});function nce(t,n){if(1&t&&(d(0,"td",113),y(1,ice,8,1,"div",114),l()),2&t){const e=n.$implicit,i=w(3);f("ngClass",ui(2,Ig,i.isEditMode)),m(),f("ngIf",i.isEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spDataType").value&&e.get("spId").value!==i.shardIdCol)}}function oce(t,n){1&t&&D(0,"tr",81)}function rce(t,n){1&t&&D(0,"tr",81)}function ace(t,n){1&t&&D(0,"tr",120)}function sce(t,n){if(1&t&&(d(0,"mat-option",99),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Ne(e)}}function cce(t,n){if(1&t){const e=_e();d(0,"div",121)(1,"mat-form-field",122)(2,"mat-label"),h(3,"Column Name"),l(),d(4,"mat-select",123),N("selectionChange",function(o){return ae(e),se(w(3).setColumn(o.value))}),y(5,sce,2,2,"mat-option",96),l()(),d(6,"button",124),N("click",function(){return ae(e),se(w(3).restoreColumn())}),d(7,"mat-icon"),h(8,"add"),l(),h(9," RESTORE COLUMN "),l()()}if(2&t){const e=w(3);f("formGroup",e.addColumnForm),m(5),f("ngForOf",e.droppedSourceColumns)}}function lce(t,n){1&t&&(d(0,"span"),h(1,"PRIMARY KEY "),l())}function dce(t,n){if(1&t&&(d(0,"th",125),h(1),l()),2&t){const e=w(3);m(),Ne(e.srcDbName)}}function uce(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",86),N("click",function(){return ae(e),se(w(4).togglePkEdit())}),d(2,"mat-icon",87),h(3,"edit"),l(),h(4," EDIT "),l()()}}function hce(t,n){if(1&t&&(d(0,"th",126)(1,"div",84)(2,"span"),h(3,"Spanner"),l(),y(4,uce,5,0,"div",12),l()()),2&t){const e=w(3);m(4),f("ngIf",!e.isPkEditMode&&e.pkDataSource.length>0&&e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function mce(t,n){1&t&&(d(0,"th",77),h(1,"Order"),l())}function pce(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcOrder").value," ")}}function fce(t,n){1&t&&(d(0,"th",77),h(1,"Name"),l())}function gce(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcColName").value," ")}}function _ce(t,n){1&t&&(d(0,"th",77),h(1,"Type"),l())}function bce(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcDataType").value," ")}}function vce(t,n){1&t&&(d(0,"th",77),h(1,"PK"),l())}function yce(t,n){1&t&&(d(0,"div"),Xt(),d(1,"svg",79),D(2,"path",80),l()())}function wce(t,n){if(1&t&&(d(0,"td",78),y(1,yce,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("srcIsPk").value)}}function xce(t,n){1&t&&(d(0,"th",77),h(1,"Nullable"),l())}function Cce(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcIsNotNull").value?"Not Null":""," ")}}function Dce(t,n){1&t&&(d(0,"th",77),h(1,"Order"),l())}function Sce(t,n){if(1&t&&(d(0,"div"),D(1,"input",127),l()),2&t){const e=w().$implicit;let i;m(),f("formControl",e.get("spOrder"))("matTooltipDisabled",!(null!=(i=e.get("spOrder"))&&i.hasError("pattern")))}}function kce(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Ne(e.get("spOrder").value)}}function Tce(t,n){if(1&t&&(d(0,"td",78),y(1,Sce,2,2,"div",12)(2,kce,2,1,"p",12),l()),2&t){const e=n.$implicit,i=w(3);m(),f("ngIf",i.isPkEditMode&&""!==e.get("spColName").value),m(),f("ngIf",!i.isPkEditMode)}}function Mce(t,n){1&t&&(d(0,"th",77),h(1,"Name"),l())}function Ice(t,n){if(1&t&&(d(0,"td",78)(1,"p"),h(2),l()()),2&t){const e=n.$implicit;m(2),Ne(e.get("spColName").value)}}function Ece(t,n){1&t&&(d(0,"th",77),h(1,"Type"),l())}function Oce(t,n){if(1&t&&(d(0,"span",92),h(1,"warning"),l()),2&t){const e=w().index;f("matTooltip",w(3).spTableSuggestion[e])}}function Ace(t,n){if(1&t&&(d(0,"td",78)(1,"div",89),y(2,Oce,2,1,"span",90),d(3,"p"),h(4),l()()()),2&t){const e=n.$implicit,i=n.index,o=w(3);m(2),f("ngIf",o.isSpTableSuggesstionDisplay[i]&&""!==e.get("spColName").value),m(2),Ne(e.get("spDataType").value)}}function Pce(t,n){1&t&&(d(0,"th",77),h(1,"Pk"),l())}function Rce(t,n){1&t&&(d(0,"div"),Xt(),d(1,"svg",79),D(2,"path",80),l()())}function Nce(t,n){if(1&t&&(d(0,"td",78),y(1,Rce,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spIsPk").value)}}function Fce(t,n){1&t&&(d(0,"th",77),h(1,"Nullable"),l())}function Lce(t,n){if(1&t&&(d(0,"td",78)(1,"div",111)(2,"p"),h(3),l()()()),2&t){const e=n.$implicit;m(3),ke(" ",e.get("spIsNotNull").value?"Not Null":""," ")}}function Bce(t,n){1&t&&D(0,"th",77)}function Vce(t,n){if(1&t){const e=_e();d(0,"div",115)(1,"mat-icon",116),h(2,"more_vert"),l(),d(3,"mat-menu",117,118)(5,"button",128),N("click",function(){ae(e);const o=w().$implicit;return se(w(3).dropPk(o))}),d(6,"span"),h(7,"Remove primary key"),l()()()()}if(2&t){const e=Rt(4),i=w(4);m(),f("matMenuTriggerFor",e),m(4),f("disabled",!i.isPkEditMode)}}function jce(t,n){if(1&t&&(d(0,"td",113),y(1,Vce,8,2,"div",114),l()),2&t){const e=n.$implicit,i=w(3);f("ngClass",ui(2,Ig,i.isPkEditMode)),m(),f("ngIf",i.isPkEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spColName").value)}}function zce(t,n){1&t&&D(0,"tr",81)}function Hce(t,n){1&t&&D(0,"tr",81)}function Uce(t,n){1&t&&D(0,"tr",120)}function $ce(t,n){if(1&t&&(d(0,"mat-option",99),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Ne(e)}}function Gce(t,n){if(1&t){const e=_e();d(0,"div",129)(1,"mat-form-field",122)(2,"mat-label"),h(3,"Column Name"),l(),d(4,"mat-select",123),N("selectionChange",function(o){return ae(e),se(w(3).setPkColumn(o.value))}),y(5,$ce,2,2,"mat-option",96),l()(),d(6,"button",124),N("click",function(){return ae(e),se(w(3).addPkColumn())}),d(7,"mat-icon"),h(8,"add"),l(),h(9," ADD COLUMN "),l()()}if(2&t){const e=w(3);f("formGroup",e.addPkColumnForm),m(5),f("ngForOf",e.pkColumnNames)}}function Wce(t,n){1&t&&(d(0,"span"),h(1,"FOREIGN KEY"),l())}function qce(t,n){if(1&t&&(d(0,"th",130),h(1),l()),2&t){const e=w(3);m(),Ne(e.srcDbName)}}function Kce(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",86),N("click",function(){return ae(e),se(w(4).toggleFkEdit())}),d(2,"mat-icon",87),h(3,"edit"),l(),h(4," EDIT "),l()()}}function Zce(t,n){if(1&t&&(d(0,"th",125)(1,"div",84)(2,"span"),h(3,"Spanner"),l(),y(4,Kce,5,0,"div",12),l()()),2&t){const e=w(3);m(4),f("ngIf",!e.isFkEditMode&&e.fkDataSource.length>0&&e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function Yce(t,n){1&t&&(d(0,"th",77),h(1,"Name"),l())}function Qce(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcName").value," ")}}function Xce(t,n){1&t&&(d(0,"th",77),h(1,"Columns"),l())}function Jce(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcColumns").value," ")}}function ele(t,n){1&t&&(d(0,"th",77),h(1,"Refer Table"),l())}function tle(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcReferTable").value," ")}}function ile(t,n){1&t&&(d(0,"th",77),h(1,"Refer Columns"),l())}function nle(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcReferColumns").value," ")}}function ole(t,n){1&t&&(d(0,"th",77),h(1,"Name"),l())}function rle(t,n){if(1&t&&(d(0,"div"),D(1,"input",88),l()),2&t){const e=w().$implicit;let i;m(),f("formControl",e.get("spName"))("matTooltipDisabled",!(null!=(i=e.get("spName"))&&i.hasError("pattern")))}}function ale(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Ne(e.get("spName").value)}}function sle(t,n){if(1&t&&(d(0,"td",78),y(1,rle,2,2,"div",12)(2,ale,2,1,"p",12),l()),2&t){const e=n.$implicit,i=w(3);m(),f("ngIf",i.isFkEditMode&&""!==e.get("spReferTable").value),m(),f("ngIf",!i.isFkEditMode)}}function cle(t,n){1&t&&(d(0,"th",77),h(1,"Columns"),l())}function lle(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("spColumns").value," ")}}function dle(t,n){1&t&&(d(0,"th",77),h(1,"Refer Table"),l())}function ule(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("spReferTable").value," ")}}function hle(t,n){1&t&&(d(0,"th",77),h(1,"Refer Columns"),l())}function mle(t,n){if(1&t&&(d(0,"td",78)(1,"div",131),h(2),l()()),2&t){const e=n.$implicit;m(2),ke(" ",e.get("spReferColumns").value," ")}}function ple(t,n){1&t&&D(0,"th",77)}function fle(t,n){if(1&t){const e=_e();d(0,"button",128),N("click",function(){return ae(e),se(w(5).setInterleave())}),d(1,"span"),h(2,"Convert to interleave"),l()()}2&t&&f("disabled",""===w(2).$implicit.get("spName").value)}function gle(t,n){if(1&t){const e=_e();d(0,"div",115)(1,"mat-icon",116),h(2,"more_vert"),l(),d(3,"mat-menu",117,118)(5,"button",128),N("click",function(){ae(e);const o=w().$implicit;return se(w(3).dropFk(o))}),d(6,"span"),h(7,"Drop Foreign Key"),l()(),y(8,fle,3,1,"button",132),l()()}if(2&t){const e=Rt(4),i=w().$implicit,o=w(3);m(),f("matMenuTriggerFor",e),m(4),f("disabled",""===i.get("spName").value),m(3),f("ngIf",o.interleaveStatus.tableInterleaveStatus&&o.interleaveStatus.tableInterleaveStatus.Possible)}}function _le(t,n){if(1&t&&(d(0,"td",113),y(1,gle,9,3,"div",114),l()),2&t){const e=n.$implicit,i=w(3);f("ngClass",ui(2,Ig,i.isFkEditMode)),m(),f("ngIf",i.isFkEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spReferTable").value)}}function ble(t,n){1&t&&D(0,"tr",81)}function vle(t,n){1&t&&D(0,"tr",81)}function yle(t,n){1&t&&D(0,"tr",120)}function wle(t,n){if(1&t){const e=_e();d(0,"button",136),N("click",function(){return ae(e),se(w(4).setInterleave())}),h(1," Convert to Interleave "),l()}}function xle(t,n){if(1&t){const e=_e();d(0,"button",136),N("click",function(){return ae(e),se(w(4).removeInterleave())}),h(1," Convert Back to Foreign Key "),l()}}function Cle(t,n){if(1&t&&(d(0,"div"),h(1," This table is interleaved with "),d(2,"span",137),h(3),l(),h(4,". Click on the above button to convert back to foreign key. "),l()),2&t){const e=w(4);m(3),Ne(e.interleaveParentName)}}function Dle(t,n){if(1&t&&(d(0,"mat-tab",133)(1,"div",134),y(2,wle,2,0,"button",135)(3,xle,2,0,"button",135),D(4,"br"),y(5,Cle,5,1,"div",12),l()()),2&t){const e=w(3);m(2),f("ngIf",e.interleaveStatus.tableInterleaveStatus&&e.interleaveStatus.tableInterleaveStatus.Possible&&null===e.interleaveParentName),m(),f("ngIf",e.interleaveStatus.tableInterleaveStatus&&!e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName),m(2),f("ngIf",e.interleaveStatus.tableInterleaveStatus&&!e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName)}}function Sle(t,n){1&t&&(d(0,"span"),h(1,"SQL"),l())}function kle(t,n){if(1&t&&(d(0,"mat-tab"),y(1,Sle,2,0,"ng-template",30),d(2,"div",138)(3,"pre")(4,"code"),h(5),l()()()()),2&t){const e=w(3);m(5),Ne(e.ddlStmts[e.currentObject.id])}}const Tle=t=>({"height-on-edit":t}),Mle=()=>["srcDatabase"],Ile=()=>["spDatabase"],Cx=()=>["srcDatabase","spDatabase"];function Ele(t,n){if(1&t){const e=_e();d(0,"mat-tab-group",29),N("selectedTabChange",function(o){return ae(e),se(w(2).tabChanged(o))}),d(1,"mat-tab"),y(2,Kae,2,0,"ng-template",30),d(3,"div",31)(4,"div",32)(5,"table",33),ye(6,34),y(7,Zae,2,1,"th",35),we(),ye(8,36),y(9,Yae,2,0,"th",37)(10,Qae,2,1,"td",38),we(),ye(11,39),y(12,Xae,2,0,"th",37)(13,Jae,2,1,"td",38),we(),ye(14,40),y(15,ese,2,0,"th",41)(16,tse,2,1,"td",38),we(),ye(17,42),y(18,ise,2,0,"th",41)(19,nse,2,1,"td",38),we(),ye(20,43),y(21,ose,2,0,"th",37)(22,ase,2,1,"td",38),we(),ye(23,44),y(24,sse,2,0,"th",41)(25,cse,2,1,"td",38),we(),y(26,lse,1,0,"tr",45)(27,dse,1,0,"tr",45)(28,hse,1,3,"tr",46),l(),d(29,"table",33),ye(30,47),y(31,_se,6,2,"th",48),we(),ye(32,49),y(33,bse,2,0,"th",41)(34,wse,3,2,"td",38),we(),ye(35,50),y(36,xse,2,0,"th",41)(37,Ise,5,3,"td",38),we(),y(38,jse,3,0,"ng-container",51),ye(39,52),y(40,zse,2,0,"th",41)(41,Gse,2,1,"td",38),we(),ye(42,53),y(43,Wse,2,0,"th",37)(44,Kse,2,1,"td",38),we(),ye(45,54),y(46,Qse,3,2,"th",41)(47,ece,4,2,"td",38),we(),ye(48,55),y(49,tce,1,0,"th",41)(50,nce,2,4,"td",56),we(),y(51,oce,1,0,"tr",45)(52,rce,1,0,"tr",45)(53,ace,1,0,"tr",57),l()(),y(54,cce,10,2,"div",58),l()(),d(55,"mat-tab"),y(56,lce,2,0,"ng-template",30),d(57,"div",59)(58,"table",33),ye(59,34),y(60,dce,2,1,"th",60),we(),ye(61,47),y(62,hce,5,1,"th",61),we(),ye(63,36),y(64,mce,2,0,"th",37)(65,pce,2,1,"td",38),we(),ye(66,39),y(67,fce,2,0,"th",37)(68,gce,2,1,"td",38),we(),ye(69,40),y(70,_ce,2,0,"th",41)(71,bce,2,1,"td",38),we(),ye(72,43),y(73,vce,2,0,"th",37)(74,wce,2,1,"td",38),we(),ye(75,44),y(76,xce,2,0,"th",41)(77,Cce,2,1,"td",38),we(),ye(78,62),y(79,Dce,2,0,"th",37)(80,Tce,3,2,"td",38),we(),ye(81,49),y(82,Mce,2,0,"th",41)(83,Ice,3,1,"td",38),we(),ye(84,50),y(85,Ece,2,0,"th",41)(86,Ace,5,2,"td",38),we(),ye(87,53),y(88,Pce,2,0,"th",37)(89,Nce,2,1,"td",38),we(),ye(90,54),y(91,Fce,2,0,"th",41)(92,Lce,4,1,"td",38),we(),ye(93,55),y(94,Bce,1,0,"th",41)(95,jce,2,4,"td",56),we(),y(96,zce,1,0,"tr",45)(97,Hce,1,0,"tr",45)(98,Uce,1,0,"tr",57),l(),y(99,Gce,10,2,"div",63),l()(),d(100,"mat-tab"),y(101,Wce,2,0,"ng-template",30),d(102,"div",64)(103,"table",33),ye(104,34),y(105,qce,2,1,"th",65),we(),ye(106,47),y(107,Zce,5,1,"th",60),we(),ye(108,66),y(109,Yce,2,0,"th",37)(110,Qce,2,1,"td",38),we(),ye(111,67),y(112,Xce,2,0,"th",37)(113,Jce,2,1,"td",38),we(),ye(114,68),y(115,ele,2,0,"th",37)(116,tle,2,1,"td",38),we(),ye(117,69),y(118,ile,2,0,"th",37)(119,nle,2,1,"td",38),we(),ye(120,70),y(121,ole,2,0,"th",41)(122,sle,3,2,"td",38),we(),ye(123,71),y(124,cle,2,0,"th",37)(125,lle,2,1,"td",38),we(),ye(126,72),y(127,dle,2,0,"th",37)(128,ule,2,1,"td",38),we(),ye(129,73),y(130,hle,2,0,"th",37)(131,mle,3,1,"td",38),we(),ye(132,74),y(133,ple,1,0,"th",41)(134,_le,2,4,"td",56),we(),y(135,ble,1,0,"tr",45)(136,vle,1,0,"tr",45)(137,yle,1,0,"tr",57),l()()(),y(138,Dle,6,3,"mat-tab",75)(139,kle,6,1,"mat-tab",12),l()}if(2&t){const e=w(2);f("ngClass",ui(22,Tle,e.isEditMode||e.isPkEditMode||e.isFkEditMode)),m(5),f("dataSource",e.srcDataSource),m(21),f("matHeaderRowDef",Wo(24,Mle)),m(),f("matHeaderRowDef",e.srcDisplayedColumns),m(),f("matRowDefColumns",e.srcDisplayedColumns),m(),f("dataSource",e.spDataSource),m(9),f("ngIf",e.autGenSupported),m(13),f("matHeaderRowDef",Wo(25,Ile)),m(),f("matHeaderRowDef",e.spDisplayedColumns),m(),f("matRowDefColumns",e.spDisplayedColumns),m(),f("ngIf",e.isEditMode&&0!=e.droppedSourceColumns.length),m(4),f("dataSource",e.pkDataSource),m(38),f("matHeaderRowDef",Wo(26,Cx)),m(),f("matHeaderRowDef",e.displayedPkColumns),m(),f("matRowDefColumns",e.displayedPkColumns),m(),f("ngIf",e.isPkEditMode),m(4),f("dataSource",e.fkDataSource),m(32),f("matHeaderRowDef",Wo(27,Cx)),m(),f("matHeaderRowDef",e.displayedFkColumns),m(),f("matRowDefColumns",e.displayedFkColumns),m(),f("ngIf",(e.interleaveStatus.tableInterleaveStatus&&e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName)&&e.currentObject.isSpannerNode),m(),f("ngIf",e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function Ole(t,n){if(1&t&&(d(0,"th",149),h(1),l()),2&t){const e=w(3);m(),Ne(e.srcDbName)}}function Ale(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",86),N("click",function(){return ae(e),se(w(4).toggleIndexEdit())}),d(2,"mat-icon",87),h(3,"edit"),l(),h(4," EDIT "),l()()}}function Ple(t,n){if(1&t&&(d(0,"th",130)(1,"div",84)(2,"span"),h(3,"Spanner"),l(),y(4,Ale,5,0,"div",12),l()()),2&t){const e=w(3);m(4),f("ngIf",!e.isIndexEditMode&&!e.currentObject.isDeleted&&e.currentObject.isSpannerNode)}}function Rle(t,n){1&t&&(d(0,"th",77),h(1,"Column"),l())}function Nle(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcColName").value," ")}}function Fle(t,n){1&t&&(d(0,"th",77),h(1,"Sort By"),l())}function Lle(t,n){1&t&&(d(0,"p"),h(1,"Desc"),l())}function Ble(t,n){1&t&&(d(0,"p"),h(1,"Asc"),l())}function Vle(t,n){if(1&t&&(d(0,"td",78),y(1,Lle,2,0,"p",12)(2,Ble,2,0,"p",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("srcDesc").value),m(),f("ngIf",!1===e.get("srcDesc").value)}}function jle(t,n){1&t&&(d(0,"th",77),h(1,"Column Order"),l())}function zle(t,n){if(1&t&&(d(0,"td",78),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.get("srcOrder").value," ")}}function Hle(t,n){1&t&&(d(0,"th",77),h(1,"Column"),l())}function Ule(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Ne(e.get("spColName").value)}}function $le(t,n){if(1&t&&(d(0,"td",78),y(1,Ule,2,1,"p",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spColName").value)}}function Gle(t,n){1&t&&(d(0,"th",77),h(1,"Sort By"),l())}function Wle(t,n){1&t&&(d(0,"p"),h(1,"Desc"),l())}function qle(t,n){1&t&&(d(0,"p"),h(1,"Asc"),l())}function Kle(t,n){if(1&t&&(d(0,"td",78),y(1,Wle,2,0,"p",12)(2,qle,2,0,"p",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spDesc").value),m(),f("ngIf",!1===e.get("spDesc").value)}}function Zle(t,n){1&t&&(d(0,"th",77),h(1,"Column Order"),l())}function Yle(t,n){if(1&t&&(d(0,"div"),D(1,"input",150),l()),2&t){const e=w().$implicit;m(),f("formControl",e.get("spOrder"))}}function Qle(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=w().$implicit;m(),Ne(e.get("spOrder").value)}}function Xle(t,n){if(1&t&&(d(0,"td",78),y(1,Yle,2,1,"div",12)(2,Qle,2,1,"p",12),l()),2&t){const e=n.$implicit,i=w(3);m(),f("ngIf",i.isIndexEditMode&&e.get("spColName").value),m(),f("ngIf",!i.isIndexEditMode)}}function Jle(t,n){1&t&&D(0,"th",77)}function ede(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-icon",116),h(2,"more_vert"),l(),d(3,"mat-menu",117,118)(5,"button",119),N("click",function(){ae(e);const o=w().index;return se(w(3).dropIndexKey(o))}),d(6,"span"),h(7,"Drop Index Key"),l()()()()}if(2&t){const e=Rt(4);m(),f("matMenuTriggerFor",e)}}function tde(t,n){if(1&t&&(d(0,"td",113),y(1,ede,8,1,"div",12),l()),2&t){const e=n.$implicit,i=w(3);f("ngClass",ui(2,Ig,i.isIndexEditMode)),m(),f("ngIf",i.isIndexEditMode&&e.get("spColName").value)}}function ide(t,n){1&t&&D(0,"tr",81)}function nde(t,n){1&t&&D(0,"tr",81)}function ode(t,n){1&t&&D(0,"tr",151)}function rde(t,n){if(1&t&&(d(0,"mat-option",99),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Ne(e)}}function ade(t,n){if(1&t){const e=_e();d(0,"div",152)(1,"mat-form-field",153)(2,"mat-label"),h(3,"Column Name"),l(),d(4,"mat-select",154),y(5,rde,2,2,"mat-option",96),l()(),d(6,"mat-form-field",155)(7,"mat-label"),h(8,"Sort By"),l(),d(9,"mat-select",156)(10,"mat-option",157),h(11,"Ascending"),l(),d(12,"mat-option",158),h(13,"Descending"),l()()(),d(14,"button",159),N("click",function(){return ae(e),se(w(3).addIndexKey())}),d(15,"mat-icon"),h(16,"add"),l(),d(17,"span"),h(18," ADD COLUMN"),l()()()}if(2&t){const e=w(3);f("formGroup",e.addIndexKeyForm),m(5),f("ngForOf",e.indexColumnNames),m(9),f("disabled",!e.addIndexKeyForm.valid)}}function sde(t,n){if(1&t&&(d(0,"div",139)(1,"table",33),ye(2,34),y(3,Ole,2,1,"th",140),we(),ye(4,47),y(5,Ple,5,1,"th",65),we(),ye(6,141),y(7,Rle,2,0,"th",37)(8,Nle,2,1,"td",38),we(),ye(9,142),y(10,Fle,2,0,"th",41)(11,Vle,3,2,"td",38),we(),ye(12,143),y(13,jle,2,0,"th",37)(14,zle,2,1,"td",38),we(),ye(15,144),y(16,Hle,2,0,"th",41)(17,$le,2,1,"td",38),we(),ye(18,145),y(19,Gle,2,0,"th",41)(20,Kle,3,2,"td",38),we(),ye(21,146),y(22,Zle,2,0,"th",37)(23,Xle,3,2,"td",38),we(),ye(24,55),y(25,Jle,1,0,"th",41)(26,tde,2,4,"td",56),we(),y(27,ide,1,0,"tr",45)(28,nde,1,0,"tr",45)(29,ode,1,0,"tr",147),l(),y(30,ade,19,3,"div",148),l()),2&t){const e=w(2);m(),f("dataSource",e.spDataSource),m(26),f("matHeaderRowDef",Wo(5,Cx)),m(),f("matHeaderRowDef",e.indexDisplayedColumns),m(),f("matRowDefColumns",e.indexDisplayedColumns),m(),f("ngIf",e.isIndexEditMode&&e.indexColumnNames.length>0)}}function cde(t,n){1&t&&D(0,"mat-divider")}function lde(t,n){if(1&t){const e=_e();d(0,"button",163),N("click",function(){return ae(e),se(w(3).toggleEdit())}),h(1," CANCEL "),l()}}function dde(t,n){if(1&t){const e=_e();d(0,"div",160)(1,"button",161),N("click",function(){return ae(e),se(w(2).saveColumnTable())}),h(2," SAVE & CONVERT "),l(),y(3,lde,2,0,"button",162),l()}if(2&t){const e=w(2);m(),f("disabled",!e.spRowArray.valid),m(2),f("ngIf",e.currentObject.isSpannerNode)}}function ude(t,n){if(1&t){const e=_e();d(0,"button",163),N("click",function(){return ae(e),se(w(3).togglePkEdit())}),h(1," CANCEL "),l()}}function hde(t,n){if(1&t){const e=_e();d(0,"div",160)(1,"button",161),N("click",function(){return ae(e),se(w(2).savePk())}),h(2," SAVE & CONVERT "),l(),y(3,ude,2,0,"button",162),l()}if(2&t){const e=w(2);m(),f("disabled",!e.pkArray.valid),m(2),f("ngIf",e.currentObject.isSpannerNode)}}function mde(t,n){if(1&t){const e=_e();d(0,"button",163),N("click",function(){return ae(e),se(w(3).toggleFkEdit())}),h(1," CANCEL "),l()}}function pde(t,n){if(1&t){const e=_e();d(0,"div",160)(1,"button",136),N("click",function(){return ae(e),se(w(2).saveFk())}),h(2,"SAVE & CONVERT"),l(),y(3,mde,2,0,"button",162),l()}if(2&t){const e=w(2);m(3),f("ngIf",e.currentObject.isSpannerNode)}}function fde(t,n){if(1&t){const e=_e();d(0,"button",163),N("click",function(){return ae(e),se(w(3).toggleIndexEdit())}),h(1," CANCEL "),l()}}function gde(t,n){if(1&t){const e=_e();d(0,"div",160)(1,"button",136),N("click",function(){return ae(e),se(w(2).saveIndex())}),h(2,"SAVE & CONVERT"),l(),y(3,fde,2,0,"button",162),l()}if(2&t){const e=w(2);m(3),f("ngIf",e.currentObject.isSpannerNode)}}function _de(t,n){if(1&t){const e=_e();d(0,"div",13)(1,"div",3)(2,"span")(3,"h3",4),y(4,jae,2,0,"mat-icon",14)(5,zae,2,0,"svg",15),d(6,"span",16),h(7),l(),y(8,Hae,3,3,"span",12)(9,Uae,5,0,"button",17)(10,$ae,5,0,"button",17)(11,Gae,5,0,"button",17)(12,Wae,5,0,"button",17),l(),y(13,qae,4,1,"div",18),l(),d(14,"button",5),N("click",function(){return ae(e),se(w().middleColumnToggle())}),d(15,"mat-icon",6),h(16,"first_page"),l(),d(17,"mat-icon",6),h(18,"last_page"),l()()(),y(19,Ele,140,28,"mat-tab-group",19)(20,sde,31,6,"div",20),d(21,"div",21),y(22,cde,1,0,"mat-divider",12)(23,dde,4,2,"div",22)(24,hde,4,2,"div",22)(25,pde,4,1,"div",22)(26,gde,4,1,"div",22),l()()}if(2&t){const e=w();m(4),f("ngIf",e.currentObject.type===e.ObjectExplorerNodeType.Table),m(),f("ngIf",e.currentObject.type===e.ObjectExplorerNodeType.Index),m(2),Ne(" "+e.currentObject.name+" "),m(),f("ngIf",""!=e.currentObject.parent),m(),f("ngIf",e.currentObject.isSpannerNode&&!e.currentObject.isDeleted&&"indexName"===e.currentObject.type),m(),f("ngIf",e.currentObject.isSpannerNode&&e.currentObject.isDeleted&&e.currentObject.type==e.ObjectExplorerNodeType.Index),m(),f("ngIf",e.currentObject.isSpannerNode&&"indexName"!==e.currentObject.type&&!e.currentObject.isDeleted),m(),f("ngIf",e.currentObject.isSpannerNode&&e.currentObject.isDeleted&&e.currentObject.type==e.ObjectExplorerNodeType.Table),m(),f("ngIf",e.interleaveParentName&&e.currentObject.isSpannerNode),m(2),f("ngClass",ui(18,Mg,e.isMiddleColumnCollapse?"display":"hidden")),m(2),f("ngClass",ui(20,Mg,e.isMiddleColumnCollapse?"hidden":"display")),m(2),f("ngIf","tableName"===e.currentObject.type),m(),f("ngIf","indexName"===e.currentObject.type),m(2),f("ngIf",e.isEditMode||e.isPkEditMode||e.isFkEditMode),m(),f("ngIf",e.isEditMode&&0===e.currentTabIndex),m(),f("ngIf",e.isPkEditMode&&1===e.currentTabIndex),m(),f("ngIf",e.isFkEditMode&&2===e.currentTabIndex),m(),f("ngIf",e.isIndexEditMode&&-1===e.currentTabIndex)}}let bde=(()=>{class t{constructor(e,i,o,r,a,s,c){this.data=e,this.dialog=i,this.snackbar=o,this.conversion=r,this.sidenav=a,this.tableUpdatePubSub=s,this.fb=c,this.currentObject=null,this.typeMap={},this.defaultTypeMap={},this.autoGenMap={},this.ddlStmts={},this.fkData=[],this.tableData=[],this.currentDatabase="spanner",this.indexData=[],this.srcDbName=localStorage.getItem(Qi.SourceDbName),this.updateSidebar=new Re,this.ObjectExplorerNodeType=hi,this.conv={},this.interleaveParentName=null,this.localTableData=[],this.localIndexData=[],this.isMiddleColumnCollapse=!1,this.isPostgreSQLDialect=!1,this.processedAutoGenMap={},this.autoGenSupportedDbs=["MySQL"],this.autGenSupported=!1,this.srcDisplayedColumns=["srcOrder","srcColName","srcDataType","srcColMaxLength","srcIsPk","srcIsNotNull"],this.spDisplayedColumns=["spColName","spDataType","spColMaxLength","spIsPk","spIsNotNull","dropButton"],this.displayedFkColumns=["srcName","srcColumns","srcReferTable","srcReferColumns","spName","spColumns","spReferTable","spReferColumns","dropButton"],this.displayedPkColumns=["srcOrder","srcColName","srcDataType","srcIsPk","srcIsNotNull","spOrder","spColName","spDataType","spIsPk","spIsNotNull","dropButton"],this.indexDisplayedColumns=["srcIndexColName","srcSortBy","srcIndexOrder","spIndexColName","spSortBy","spIndexOrder","dropButton"],this.spDataSource=[],this.srcDataSource=[],this.fkDataSource=[],this.pkDataSource=[],this.pkData=[],this.isPkEditMode=!1,this.isEditMode=!1,this.isFkEditMode=!1,this.isIndexEditMode=!1,this.isObjectSelected=!1,this.srcRowArray=this.fb.array([]),this.spRowArray=this.fb.array([]),this.pkArray=this.fb.array([]),this.fkArray=this.fb.array([]),this.isSpTableSuggesstionDisplay=[],this.spTableSuggestion=[],this.currentTabIndex=0,this.addedColumnName="",this.droppedColumns=[],this.droppedSourceColumns=[],this.pkColumnNames=[],this.indexColumnNames=[],this.shardIdCol="",this.addColumnForm=new ei({columnName:new K("",[ce.required])}),this.addIndexKeyForm=new ei({columnName:new K("",[ce.required]),ascOrDesc:new K("",[ce.required])}),this.addedPkColumnName="",this.addPkColumnForm=new ei({columnName:new K("",[ce.required])}),this.pkObj={},this.dataTypesWithColLen=Sn.DataTypes,this.spColspan=6}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.isPostgreSQLDialect="postgresql"===this.conv.SpDialect}}),this.autGenSupported=this.autoGenSupportedDbs.includes(this.srcDbName)}ngOnChanges(e){this.fkData=e.fkData?.currentValue||this.fkData,this.currentObject=e.currentObject?.currentValue||this.currentObject,this.tableData=e.tableData?.currentValue||this.tableData,this.indexData=e.indexData?.currentValue||this.indexData,this.currentDatabase=e.currentDatabase?.currentValue||this.currentDatabase,this.currentTabIndex=this.currentObject?.type===hi.Table?0:-1,this.isObjectSelected=!!this.currentObject,this.pkData=this.conversion.getPkMapping(this.tableData),this.interleaveParentName=this.getInterleaveParentFromConv(),this.isEditMode=!1,this.isFkEditMode=!1,this.isIndexEditMode=!1,this.isPkEditMode=!1,this.srcRowArray=this.fb.array([]),this.spRowArray=this.fb.array([]),this.droppedColumns=[],this.droppedSourceColumns=[],this.pkColumnNames=[],this.interleaveParentName=this.getInterleaveParentFromConv(),this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.localIndexData=JSON.parse(JSON.stringify(this.indexData)),this.srcDbName==Wr.MySQL&&!this.spDisplayedColumns.includes("spAutoGen")&&(this.spDisplayedColumns.splice(2,0,"spAutoGen"),this.spColspan++),this.currentObject?.type===hi.Table?(this.checkIsInterleave(),this.interleaveObj=this.data.tableInterleaveStatus.subscribe(i=>{this.interleaveStatus=i}),this.setSrcTableRows(),this.setSpTableRows(),this.setColumnsToAdd(),this.setAddPkColumnList(),this.setPkOrder(),this.setPkRows(),this.setFkRows(),this.updateSpTableSuggestion(),this.setShardIdColumn(),this.processedAutoGenMap=kN(this.autoGenMap)):this.currentObject?.type===hi.Index&&(this.indexOrderValidation(),this.setIndexRows()),this.data.getSummary()}setSpTableRows(){this.spRowArray=this.fb.array([]),this.localTableData.forEach(e=>{if(e.spOrder){let i=new ei({srcOrder:new K(e.srcOrder),srcColName:new K(e.srcColName),srcDataType:new K(e.srcDataType),srcIsPk:new K(e.srcIsPk),srcIsNotNull:new K(e.srcIsNotNull),srcColMaxLength:new K(e.srcColMaxLength),spOrder:new K(e.srcOrder),spColName:new K(e.spColName,[ce.required,ce.pattern("^[a-zA-Z]([a-zA-Z0-9/_]*[a-zA-Z0-9])?")]),spDataType:new K(e.spDataType),spIsPk:new K(e.spIsPk),spIsNotNull:new K(e.spIsNotNull),spId:new K(e.spId),srcId:new K(e.srcId),spColMaxLength:new K(e.spColMaxLength,[ce.required]),spAutoGen:new K(e.spAutoGen)});this.dataTypesWithColLen.indexOf(e.spDataType.toString())>-1?(i.get("spColMaxLength")?.setValidators([ce.required,ce.pattern("([1-9][0-9]*|MAX)")]),(void 0===e.spColMaxLength||"MAX"!==e.spColMaxLength&&(("STRING"===e.spDataType||"VARCHAR"===e.spDataType)&&"number"==typeof e.spColMaxLength&&e.spColMaxLength>Sn.StringMaxLength||"BYTES"===e.spDataType&&"number"==typeof e.spColMaxLength&&e.spColMaxLength>Sn.ByteMaxLength))&&i.get("spColMaxLength")?.setValue("MAX")):i.controls.spColMaxLength.clearValidators(),i.controls.spColMaxLength.updateValueAndValidity(),this.spRowArray.push(i)}}),this.spDataSource=this.spRowArray.controls}setSrcTableRows(){this.srcRowArray=this.fb.array([]),this.localTableData.forEach(e=>{this.srcRowArray.push(new ei(""!=e.spColName?{srcOrder:new K(e.srcOrder),srcColName:new K(e.srcColName),srcDataType:new K(e.srcDataType),srcIsPk:new K(e.srcIsPk),srcIsNotNull:new K(e.srcIsNotNull),srcColMaxLength:new K(e.srcColMaxLength),spOrder:new K(e.spOrder),spColName:new K(e.spColName),spDataType:new K(e.spDataType),spIsPk:new K(e.spIsPk),spIsNotNull:new K(e.spIsNotNull),spId:new K(e.spId),srcId:new K(e.srcId),spColMaxLength:new K(e.spColMaxLength),spAutoGen:new K(e.spAutoGen)}:{srcOrder:new K(e.srcOrder),srcColName:new K(e.srcColName),srcDataType:new K(e.srcDataType),srcIsPk:new K(e.srcIsPk),srcIsNotNull:new K(e.srcIsNotNull),srcColMaxLength:new K(e.srcColMaxLength),spOrder:new K(e.srcOrder),spColName:new K(e.srcColName),spDataType:new K(this.defaultTypeMap[e.srcDataType].Name),spIsPk:new K(e.srcIsPk),spIsNotNull:new K(e.srcIsNotNull),spColMaxLength:new K(e.srcColMaxLength),spAutoGen:new K(e.spAutoGen)}))}),this.srcDataSource=this.srcRowArray.controls}setColumnsToAdd(){this.localTableData.forEach(e=>{e.spColName||this.srcRowArray.value.forEach(i=>{e.srcColName==i.srcColName&&""!=i.srcColName&&(this.droppedColumns.push(i),this.droppedSourceColumns.push(i.srcColName))})})}toggleEdit(){this.currentTabIndex=0,this.isEditMode?(this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.setSpTableRows(),this.isEditMode=!1):this.isEditMode=!0}saveColumnTable(){this.isEditMode=!1;let i,e={UpdateCols:{}};this.conversion.pgSQLToStandardTypeTypeMap.subscribe(o=>{i=o}),this.spRowArray.value.forEach((o,r)=>{for(let a=0;aSn.StringMaxLength||"BYTES"===o.spDataType&&"number"==typeof o.spColMaxLength&&o.spColMaxLength>Sn.ByteMaxLength)&&(o.spColMaxLength="MAX"),"number"==typeof o.spColMaxLength&&(o.spColMaxLength=o.spColMaxLength.toString()),"STRING"!=o.spDataType&&"BYTES"!=o.spDataType&&"VARCHAR"!=o.spDataType&&(o.spColMaxLength=""),o.srcId==this.tableData[a].srcId&&""!=this.tableData[a].srcId){e.UpdateCols[this.tableData[a].srcId]={Add:""==this.tableData[a].spId,Rename:s.spColName!==o.spColName?o.spColName:"",NotNull:o.spIsNotNull?"ADDED":"REMOVED",Removed:!1,ToType:"postgresql"===this.conv.SpDialect?void 0===c?o.spDataType:c:o.spDataType,MaxColLength:o.spColMaxLength,AutoGen:o.spAutoGen};break}o.spId==this.tableData[a].spId&&(e.UpdateCols[this.tableData[a].spId]={Add:""==this.tableData[a].spId,Rename:s.spColName!==o.spColName?o.spColName:"",NotNull:o.spIsNotNull?"ADDED":"REMOVED",Removed:!1,ToType:"postgresql"===this.conv.SpDialect?void 0===c?o.spDataType:c:o.spDataType,MaxColLength:o.spColMaxLength,AutoGen:o.spAutoGen})}}),this.droppedColumns.forEach(o=>{e.UpdateCols[o.spId]={Add:!1,Rename:"",NotNull:"",Removed:!0,ToType:"",MaxColLength:"",AutoGen:{Name:"",GenerationType:""}}}),this.data.reviewTableUpdate(this.currentObject.id,e).subscribe({next:o=>{""==o?(this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("reviewChanges"),this.tableUpdatePubSub.setTableUpdateDetail({tableName:this.currentObject.name,tableId:this.currentObject.id,updateDetail:e}),this.isEditMode=!0):(this.dialog.open(jo,{data:{message:o,type:"error"},maxWidth:"500px"}),this.isEditMode=!0)}})}addNewColumn(){this.dialog.open(Fae,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{dialect:this.conv.SpDialect,tableId:this.currentObject?.id}})}setColumn(e){this.addedColumnName=e}restoreColumn(){let e=this.tableData.map(r=>r.srcColName).indexOf(this.addedColumnName),i=this.droppedColumns.map(r=>r.srcColName).indexOf(this.addedColumnName);this.localTableData[e].spColName=this.droppedColumns[i].spColName,this.localTableData[e].spDataType=this.droppedColumns[i].spDataType,this.localTableData[e].spOrder=-1,this.localTableData[e].spIsPk=this.droppedColumns[i].spIsPk,this.localTableData[e].spIsNotNull=this.droppedColumns[i].spIsNotNull,this.localTableData[e].spColMaxLength=this.droppedColumns[i].spColMaxLength,this.localTableData[e].spAutoGen=this.droppedColumns[i].spAutoGen;let o=this.droppedColumns.map(r=>r.spColName).indexOf(this.addedColumnName);o>-1&&(this.droppedColumns.splice(o,1),this.droppedSourceColumns.indexOf(this.addedColumnName)>-1&&this.droppedSourceColumns.splice(this.droppedSourceColumns.indexOf(this.addedColumnName),1)),this.setSpTableRows()}dropColumn(e){let i=e.get("srcColName").value,o=e.get("srcId").value,r=e.get("spId").value,a=""!=o?o:r,s=e.get("spColName").value,c=this.getAssociatedIndexs(a);if(this.checkIfPkColumn(a)||0!=c.length){let u="",p="",g="";this.checkIfPkColumn(a)&&(u=" Primary key"),0!=c.length&&(p=` Index ${c}`),""!=u&&""!=p&&(g=" and"),this.dialog.open(jo,{data:{message:`Column ${s} is a part of${u}${g}${p}. Remove the dependencies from respective tabs before dropping the Column. `,type:"error"},maxWidth:"500px"})}else this.spRowArray.value.forEach((u,p)=>{u.spId===r&&this.droppedColumns.push(u)}),this.dropColumnFromUI(r),""!==i&&this.droppedSourceColumns.push(i)}checkIfPkColumn(e){let i=!1;return null!=this.conv.SpSchema[this.currentObject.id].PrimaryKeys&&this.conv.SpSchema[this.currentObject.id].PrimaryKeys.map(o=>o.ColId).includes(e)&&(i=!0),i}setShardIdColumn(){void 0!==this.conv.SpSchema[this.currentObject.id]&&(this.shardIdCol=this.conv.SpSchema[this.currentObject.id].ShardIdColumn)}getAssociatedIndexs(e){let i=[];return null!=this.conv.SpSchema[this.currentObject.id].Indexes&&this.conv.SpSchema[this.currentObject.id].Indexes.forEach(o=>{o.Keys.map(r=>r.ColId).includes(e)&&i.push(o.Name)}),i}dropColumnFromUI(e){this.localTableData.forEach((i,o)=>{i.spId==e&&(i.spColName="",i.spDataType="",i.spIsNotNull=!1,i.spIsPk=!1,i.spOrder="",i.spColMaxLength="",i.spAutoGen={Name:"",GenerationType:""})}),this.setSpTableRows()}updateSpTableSuggestion(){this.isSpTableSuggesstionDisplay=[],this.spTableSuggestion=[],this.localTableData.forEach(e=>{const i=e.srcDataType,o=e.spDataType;let r="";this.typeMap[i]?.forEach(a=>{o==a.DiplayT&&(r=a.Brief)}),this.isSpTableSuggesstionDisplay.push(""!==r),this.spTableSuggestion.push(r)})}spTableEditSuggestionHandler(e,i){let r="";this.typeMap[this.localTableData[e].srcDataType].forEach(a=>{i==a.T&&(r=a.Brief)}),this.isSpTableSuggesstionDisplay[e]=""!==r,this.spTableSuggestion[e]=r}compareAutoGen(e,i){return e&&i?e.Name===i.Name&&e.GenerationType===i.GenerationType:e===i}setPkRows(){this.pkArray=this.fb.array([]),this.pkOrderValidation();var e=new Array,i=new Array;this.pkData.forEach(o=>{o.srcIsPk&&e.push({srcColName:o.srcColName,srcDataType:o.srcDataType,srcIsNotNull:o.srcIsNotNull,srcIsPk:o.srcIsPk,srcOrder:o.srcOrder,srcId:o.srcId}),o.spIsPk&&i.push({spColName:o.spColName,spDataType:o.spDataType,spIsNotNull:o.spIsNotNull,spIsPk:o.spIsPk,spOrder:o.spOrder,spId:o.spId,spAutoGen:o.spAutoGen})}),i.sort((o,r)=>o.spOrder-r.spOrder);for(let o=0;oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);or.spColName).indexOf(this.addedPkColumnName),i=this.localTableData[e],o=1;this.localTableData[e].spIsPk=!0,this.pkData=[],this.pkData=this.conversion.getPkMapping(this.localTableData),e=this.pkData.findIndex(r=>r.srcId===i.srcId||r.spId==i.spId),this.pkArray.value.forEach(r=>{r.spIsPk&&(o+=1);for(let a=0;a{i.spIsPk&&e.push(i.spColName)});for(let i=0;i{if(this.pkData[i].spId===this.conv.SpSchema[this.currentObject.id].PrimaryKeys[i].ColId)this.pkData[i].spOrder=this.conv.SpSchema[this.currentObject.id].PrimaryKeys[i].Order;else{let o=this.conv.SpSchema[this.currentObject.id].PrimaryKeys.map(r=>r.ColId).indexOf(e.spId);e.spOrder=this.conv.SpSchema[this.currentObject.id].PrimaryKeys[o]?.Order}}:(e,i)=>{let o=this.conv.SpSchema[this.currentObject.id]?.PrimaryKeys.map(r=>r.ColId).indexOf(e.spId);-1!==o&&(e.spOrder=this.conv.SpSchema[this.currentObject.id]?.PrimaryKeys[o].Order)})}pkOrderValidation(){let e=this.pkData.filter(i=>i.spIsPk).map(i=>Number(i.spOrder));if(e.sort((i,o)=>i-o),e[e.length-1]>e.length&&e.forEach((i,o)=>{this.pkData.forEach(r=>{r.spOrder==i&&(r.spOrder=o+1)})}),0==e[0]&&e[e.length-1]<=e.length){let i;for(let o=0;o{"number"==typeof o.spOrder&&o.spOrder{o.spIsPk&&i.push({ColId:o.spId,Desc:typeof this.conv.SpSchema[this.currentObject.id].PrimaryKeys.find(({ColId:r})=>r===o.spId)<"u"&&this.conv.SpSchema[this.currentObject.id].PrimaryKeys.find(({ColId:r})=>r===o.spId).Desc,Order:parseInt(o.spOrder)})}),this.pkObj.TableId=e,this.pkObj.Columns=i}togglePkEdit(){this.currentTabIndex=1,this.isPkEditMode?(this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.pkData=this.conversion.getPkMapping(this.tableData),this.setAddPkColumnList(),this.setPkOrder(),this.setPkRows(),this.isPkEditMode=!1):this.isPkEditMode=!0}savePk(){if(this.pkArray.value.forEach(e=>{for(let i=0;i{o&&this.data.removeInterleave(""!=this.conv.SpSchema[this.currentObject.id].ParentId?this.currentObject.id:this.conv.SpSchema[e].Id).pipe(Nt(1)).subscribe(a=>{this.updatePk()})}):this.updatePk()}}updatePk(){this.isPkEditMode=!1,this.data.updatePk(this.pkObj).subscribe({next:e=>{""==e?this.isEditMode=!1:(this.dialog.open(jo,{data:{message:e,type:"error"},maxWidth:"500px"}),this.isPkEditMode=!0)}})}dropPk(e){let i=this.localTableData.map(a=>a.spColName).indexOf(e.value.spColName);this.localTableData[i].spId==(this.conv.SyntheticPKeys[this.currentObject.id]?this.conv.SyntheticPKeys[this.currentObject.id].ColId:"")?this.dialog.open(jo,{data:{message:"Removing this synthetic id column from primary key will drop the column from the table",title:"Confirm removal of synthetic id",type:"warning"},maxWidth:"500px"}).afterClosed().subscribe(s=>{s&&this.dropPkHelper(i,e.value.spOrder)}):this.dropPkHelper(i,e.value.spOrder)}dropPkHelper(e,i){this.localTableData[e].spIsPk=!1,this.pkData=[],this.pkData=this.conversion.getPkMapping(this.localTableData),this.pkArray.value.forEach(o=>{for(let r=0;r{"number"==typeof o.spOrder&&o.spOrder>i&&(o.spOrder=Number(o.spOrder)-1)}),this.setAddPkColumnList(),this.setPkRows()}setFkRows(){this.fkArray=this.fb.array([]);var e=new Array,i=new Array;this.fkData.forEach(o=>{e.push({srcName:o.srcName,srcColumns:o.srcColumns,srcRefTable:o.srcReferTable,srcRefColumns:o.srcReferColumns,Id:o.srcFkId}),""!=o.spName&&i.push({spName:o.spName,spColumns:o.spColumns,spRefTable:o.spReferTable,spRefColumns:o.spReferColumns,Id:o.spFkId,spColIds:o.spColIds,spReferColumnIds:o.spReferColumnIds,spReferTableId:o.spReferTableId})});for(let o=0;oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);o{e.push({Name:i.spName,ColIds:i.spColIds,ReferTableId:i.spReferTableId,ReferColumnIds:i.spReferColumnIds,Id:i.spFkId})}),this.data.updateFkNames(this.currentObject.id,e).subscribe({next:i=>{""==i?this.isFkEditMode=!1:this.dialog.open(jo,{data:{message:i,type:"error"},maxWidth:"500px"})}})}dropFk(e){this.fkData.forEach(i=>{i.spName==e.get("spName").value&&(i.spName="",i.spColumns=[],i.spReferTable="",i.spReferColumns=[],i.spColIds=[],i.spReferColumnIds=[],i.spReferTableId="")}),this.setFkRows()}getRemovedFkIndex(e){let i=-1;return this.fkArray.value.forEach((o,r)=>{o.spName===e.get("spName").value&&(i=r)}),i}removeInterleave(){this.data.removeInterleave(this.currentObject.id).pipe(Nt(1)).subscribe(i=>{""===i&&this.snackbar.openSnackBar("Interleave removed and foreign key restored successfully","Close",5)})}checkIsInterleave(){this.currentObject&&!this.currentObject?.isDeleted&&this.currentObject?.isSpannerNode&&this.data.getInterleaveConversionForATable(this.currentObject.id)}setInterleave(){this.data.setInterleave(this.currentObject.id)}getInterleaveParentFromConv(){return this.currentObject?.type===hi.Table&&this.currentObject.isSpannerNode&&!this.currentObject.isDeleted&&""!=this.conv.SpSchema[this.currentObject.id].ParentId?this.conv.SpSchema[this.conv.SpSchema[this.currentObject.id].ParentId]?.Name:null}setIndexRows(){this.spRowArray=this.fb.array([]);const e=this.localIndexData.map(i=>i.spColName?i.spColName:"").filter(i=>""!=i);this.indexColumnNames=this.conv.SpSchema[this.currentObject.parentId]?.ColIds?.filter(i=>!e.includes(this.conv.SpSchema[this.currentObject.parentId]?.ColDefs[i]?.Name)).map(i=>this.conv.SpSchema[this.currentObject.parentId]?.ColDefs[i]?.Name),this.localIndexData.forEach(i=>{this.spRowArray.push(new ei({srcOrder:new K(i.srcOrder),srcColName:new K(i.srcColName),srcDesc:new K(i.srcDesc),spOrder:new K(i.spOrder),spColName:new K(i.spColName,[ce.required,ce.pattern("^[a-zA-Z]([a-zA-Z0-9/_]*[a-zA-Z0-9])?")]),spDesc:new K(i.spDesc)}))}),this.spDataSource=this.spRowArray.controls}setIndexOrder(){this.spRowArray.value.forEach(e=>{for(let i=0;i""!=i.spColName).map(i=>Number(i.spOrder));if(e.sort((i,o)=>i-o),e[e.length-1]>e.length&&e.forEach((i,o)=>{this.localIndexData.forEach(r=>{""!=r.spColName&&r.spOrder==i&&(r.spOrder=o+1)})}),0==e[0]&&e[e.length-1]<=e.length){let i;for(let o=0;o{o.spOrder!!i.spColId).map(i=>({ColId:i.spColId,Desc:i.spDesc,Order:i.spOrder})),Id:this.currentObject.id}),0==e[0].Keys.length?this.dropIndex():(this.data.updateIndex(this.currentObject?.parentId,e).subscribe({next:i=>{""==i?this.isEditMode=!1:(this.dialog.open(jo,{data:{message:i,type:"error"},maxWidth:"500px"}),this.isIndexEditMode=!0)}}),this.addIndexKeyForm.controls.columnName.setValue(""),this.addIndexKeyForm.controls.ascOrDesc.setValue(""),this.addIndexKeyForm.markAsUntouched(),this.data.getSummary(),this.isIndexEditMode=!1)}dropIndex(){this.dialog.open(RN,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{name:this.currentObject?.name,type:od.Index}}).afterClosed().subscribe(i=>{i===od.Index&&(this.data.dropIndex(this.currentObject.parentId,this.currentObject.id).pipe(Nt(1)).subscribe(o=>{""===o&&(this.isObjectSelected=!1,this.updateSidebar.emit(!0))}),this.currentObject=null)})}restoreIndex(){this.data.restoreIndex(this.currentObject.parentId,this.currentObject.id).pipe(Nt(1)).subscribe(o=>{""===o&&(this.isObjectSelected=!1)}),this.currentObject=null}dropIndexKey(e){this.localIndexData[e].srcColName?(this.localIndexData[e].spColName="",this.localIndexData[e].spColId="",this.localIndexData[e].spDesc="",this.localIndexData[e].spOrder=""):this.localIndexData.splice(e,1),this.setIndexRows()}addIndexKey(){let e=0;this.localIndexData.forEach(i=>{i.spColName&&(e+=1)}),this.localIndexData.push({spColName:this.addIndexKeyForm.value.columnName,spDesc:"desc"===this.addIndexKeyForm.value.ascOrDesc,spOrder:e+1,srcColName:"",srcDesc:void 0,srcOrder:"",srcColId:void 0,spColId:this.currentObject?this.conversion.getColIdFromSpannerColName(this.addIndexKeyForm.value.columnName,this.currentObject.parentId,this.conv):""}),this.setIndexRows()}restoreSpannerTable(){this.data.restoreTable(this.currentObject.id).pipe(Nt(1)).subscribe(e=>{""===e&&(this.isObjectSelected=!1),this.data.getConversionRate(),this.data.getDdl()}),this.currentObject=null}dropTable(){this.dialog.open(RN,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{name:this.currentObject?.name,type:od.Table}}).afterClosed().subscribe(i=>{i===od.Table&&(this.data.dropTable(this.currentObject.id).pipe(Nt(1)).subscribe(r=>{""===r&&(this.isObjectSelected=!1,this.data.getConversionRate(),this.updateSidebar.emit(!0))}),this.currentObject=null)})}tabChanged(e){this.currentTabIndex=e.index}middleColumnToggle(){this.isMiddleColumnCollapse=!this.isMiddleColumnCollapse,this.sidenav.setMiddleColComponent(this.isMiddleColumnCollapse)}tableInterleaveWith(e){if(""!=this.conv.SpSchema[e].ParentId)return this.conv.SpSchema[e].ParentId;let i="";return Object.keys(this.conv.SpSchema).forEach(o=>{""!=this.conv.SpSchema[o].ParentId&&this.conv.SpSchema[o].ParentId==e&&(i=o)}),i}isPKPrefixModified(e,i){let o,r;this.conv.SpSchema[e].ParentId!=i?(o=this.pkObj.Columns,r=this.conv.SpSchema[i].PrimaryKeys):(r=this.pkObj.Columns,o=this.conv.SpSchema[i].PrimaryKeys);for(let a=0;a{class t{constructor(e,i){this.sidenavService=e,this.data=i,this.dataSource=[],this.currentDataSource=[],this.displayedColumns=["order","name","type","objectType","associatedObject","enabled","view"],this.currentObject=null,this.lengthOfRules=new Re}ngOnInit(){this.dataSource=[],this.data.rule.subscribe({next:e=>{this.currentDataSource=e,this.updateRules()}})}ngOnChanges(){this.updateRules()}updateRules(){if(this.currentDataSource){let e=[],i=[];e=this.currentDataSource.filter(o=>"global_datatype_change"===o?.Type||"add_shard_id_primary_key"===o?.Type||"edit_column_max_length"===o?.Type&&"All table"===o?.AssociatedObjects),this.currentObject&&("tableName"===this.currentObject?.type||"indexName"===this.currentObject?.type)&&(i=this.currentDataSource.filter(o=>o?.AssociatedObjects===this.currentObject?.id||o?.AssociatedObjects===this.currentObject?.parentId||o?.AssociatedObjects===this.currentObject?.name||o?.AssociatedObjects===this.currentObject?.parent).map(o=>{let r="";return"tableName"===this.currentObject?.type?r=this.currentObject.name:"indexName"===this.currentObject?.type&&(r=this.currentObject.parent),o.AssociatedObjects=r,o})),this.dataSource=[...e,...i],this.lengthOfRules.emit(this.dataSource.length)}else this.dataSource=[],this.lengthOfRules.emit(0)}openSidenav(){this.sidenavService.openSidenav(),this.sidenavService.setSidenavComponent("rule"),this.sidenavService.setSidenavRuleType(""),this.sidenavService.setRuleData({}),this.sidenavService.setDisplayRuleFlag(!1)}viewSidenavRule(e){let i=[];for(let o=0;o[t],Hde=(t,n,e,i,o)=>({"middle-column-expand":t,"middle-column-collapse":n,"middle-column-full":e,display:i,hidden:o}),Ude=(t,n,e,i,o,r)=>({"right-column-half-expand":t,"right-column-full-expand":n,"right-column-collapse":e,"middle-column-hide":i,display:o,hidden:r}),NN=t=>({"blue-font-color":t});let $de=(()=>{class t{constructor(e,i,o,r,a,s,c){this.data=e,this.conversion=i,this.dialog=o,this.sidenav=r,this.router=a,this.clickEvent=s,this.fetch=c,this.fkData=[],this.tableData=[],this.indexData=[],this.typeMap=!1,this.defaultTypeMap=!1,this.conversionRates={},this.autoGenMap=!1,this.isLeftColumnCollapse=!1,this.isRightColumnCollapse=!0,this.isMiddleColumnCollapse=!0,this.isOfflineStatus=!1,this.spannerTree=[],this.srcTree=[],this.issuesAndSuggestionsLabel="ISSUES AND SUGGESTIONS",this.rulesLabel="RULES (0)",this.objectExplorerInitiallyRender=!1,this.srcDbName=localStorage.getItem(Qi.SourceDbName),this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentages={good:0,ok:0,bad:0},this.currentDatabase="spanner",this.dialect="",this.currentObject=null}ngOnInit(){this.conversion.getStandardTypeToPGSQLTypemap(),this.conversion.getPGSQLToStandardTypeTypemap(),this.ddlsumconvObj=this.data.getRateTypemapAndSummary(),this.typemapObj=this.data.typeMap.subscribe(e=>{this.typeMap=e}),this.defaultTypemapObj=this.data.defaultTypeMap.subscribe(e=>{this.defaultTypeMap=e}),this.ddlObj=this.data.ddl.subscribe(e=>{this.ddlStmts=e}),this.sidenav.setMiddleColumnComponent.subscribe(e=>{this.isMiddleColumnCollapse=!e}),this.data.autoGenMap&&(this.autoGenMapObj=this.data.autoGenMap.subscribe(e=>{this.autoGenMap=e})),this.convObj=this.data.conv.subscribe(e=>{Object.keys(e.SrcSchema).length<=0&&this.router.navigate(["/"]);const i=this.isIndexAddedOrRemoved(e);e&&this.conv&&Object.keys(e?.SpSchema).length!=Object.keys(this.conv?.SpSchema).length&&(this.conv=e,this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc()),this.conv=e,this.conv.DatabaseType&&(this.srcDbName=kg(this.conv.DatabaseType)),i&&this.conversionRates&&this.reRenderObjectExplorerSpanner(),!this.objectExplorerInitiallyRender&&this.conversionRates&&(this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc(),this.objectExplorerInitiallyRender=!0),this.currentObject&&this.currentObject.type===hi.Table&&(this.fkData=this.currentObject?this.conversion.getFkMapping(this.currentObject.id,e):[],this.tableData=this.currentObject?this.conversion.getColumnMapping(this.currentObject.id,e):[]),this.currentObject&&this.currentObject?.type===hi.Index&&!i&&(this.indexData=this.conversion.getIndexMapping(this.currentObject.parentId,this.conv,this.currentObject.id)),this.dialect="postgresql"===this.conv.SpDialect?"PostgreSQL":"Google Standard SQL"}),this.converObj=this.data.conversionRate.subscribe(e=>{this.conversionRates=e,this.updateConversionRatePercentages(),this.conv?(this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc(),this.objectExplorerInitiallyRender=!0):this.objectExplorerInitiallyRender=!1}),this.data.isOffline.subscribe({next:e=>{this.isOfflineStatus=e}})}ngOnDestroy(){this.typemapObj.unsubscribe(),this.convObj.unsubscribe(),this.ddlObj.unsubscribe(),this.ddlsumconvObj.unsubscribe(),this.autoGenMapObj&&this.autoGenMapObj.unsubscribe()}updateConversionRatePercentages(){let e=Object.keys(this.conversionRates).length;this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentages={good:0,ok:0,bad:0};for(const i in this.conversionRates)"NONE"===this.conversionRates[i]||"EXCELLENT"===this.conversionRates[i]?this.conversionRateCount.good+=1:"GOOD"===this.conversionRates[i]||"OK"===this.conversionRates[i]?this.conversionRateCount.ok+=1:this.conversionRateCount.bad+=1;if(e>0)for(let i in this.conversionRatePercentages)this.conversionRatePercentages[i]=Number((this.conversionRateCount[i]/e*100).toFixed(2))}reRenderObjectExplorerSpanner(){this.spannerTree=this.conversion.createTreeNode(this.conv,this.conversionRates)}reRenderObjectExplorerSrc(){this.srcTree=this.conversion.createTreeNodeForSource(this.conv,this.conversionRates)}changeCurrentObject(e){e.type===hi.Table?(this.currentObject=e,this.tableData=this.conversion.getColumnMapping(this.currentObject.id,this.conv),this.fkData=[],this.fkData=this.conversion.getFkMapping(this.currentObject.id,this.conv)):e.type===hi.Index?(this.currentObject=e,this.indexData=this.conversion.getIndexMapping(e.parentId,this.conv,e.id)):this.currentObject=null}changeCurrentDatabase(e){this.currentDatabase=e}updateIssuesLabel(e){setTimeout(()=>{this.issuesAndSuggestionsLabel=`ISSUES AND SUGGESTIONS (${e})`})}updateRulesLabel(e){setTimeout(()=>{this.rulesLabel=`RULES (${e})`})}leftColumnToggle(){this.isLeftColumnCollapse=!this.isLeftColumnCollapse}middleColumnToggle(){this.isMiddleColumnCollapse=!this.isMiddleColumnCollapse}rightColumnToggle(){this.isRightColumnCollapse=!this.isRightColumnCollapse}openAssessment(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("assessment");let e="";if(localStorage.getItem(Qi.Type)==Qn.DirectConnect){let r=JSON.parse(localStorage.getItem(Qi.Config));e=r?.hostName+" : "+r?.port}else e=this.conv.DatabaseName;this.clickEvent.setViewAssesmentData({srcDbType:this.srcDbName,connectionDetail:e,conversionRates:this.conversionRateCount})}openSaveSessionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("saveSession"),this.sidenav.setSidenavDatabaseName(this.conv.DatabaseName)}downloadSession(){SN(this.conv)}downloadArtifacts(){let e=new EN,i=`${this.conv.DatabaseName}`;this.fetch.getDStructuredReport().subscribe({next:o=>{let r=JSON.stringify(o).replace(/9223372036854776000/g,"9223372036854775807");e.file(i+"_migration_structuredReport.json",r),this.fetch.getDTextReport().subscribe({next:s=>{e.file(i+"_migration_textReport.txt",s),this.fetch.getDSpannerDDL().subscribe({next:c=>{e.file(i+"_spannerDDL.txt",c);let u=JSON.stringify(this.conv).replace(/9223372036854776000/g,"9223372036854775807");e.file(`${this.conv.SessionName}_${this.conv.DatabaseType}_${i}.json`,u),e.generateAsync({type:"blob"}).then(g=>{var b=document.createElement("a");b.href=URL.createObjectURL(g),b.download=`${i}_artifacts`,b.click()})}})}})}})}downloadStructuredReport(){var e=document.createElement("a");this.fetch.getDStructuredReport().subscribe({next:i=>{let o=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.href="data:text/json;charset=utf-8,"+encodeURIComponent(o),e.download=`${this.conv.DatabaseName}_migration_structuredReport.json`,e.click()}})}downloadTextReport(){var e=document.createElement("a");this.fetch.getDTextReport().subscribe({next:i=>{e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${this.conv.DatabaseName}_migration_textReport.txt`,e.click()}})}downloadDDL(){var e=document.createElement("a");this.fetch.getDSpannerDDL().subscribe({next:i=>{e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${this.conv.DatabaseName}_spannerDDL.txt`,e.click()}})}updateSpannerTable(e){this.spannerTree=this.conversion.createTreeNode(this.conv,this.conversionRates,e.text,e.order)}updateSrcTable(e){this.srcTree=this.conversion.createTreeNodeForSource(this.conv,this.conversionRates,e.text,e.order)}isIndexAddedOrRemoved(e){if(this.conv){let i=0,o=0;return Object.entries(this.conv.SpSchema).forEach(r=>{i+=r[1].Indexes?r[1].Indexes.length:0}),Object.entries(e.SpSchema).forEach(r=>{o+=r[1].Indexes?r[1].Indexes.length:0}),i!==o}return!1}prepareMigration(){this.fetch.getTableWithErrors().subscribe({next:e=>{if(null!=e&&0!=e.length){let i="Please fix the errors for the following tables to move ahead: "+e.map(o=>o.Name).join(", ");this.dialog.open(jo,{data:{message:i,type:"error",title:"Error in Spanner Draft"},maxWidth:"500px"})}else this.isOfflineStatus?this.dialog.open(jo,{data:{message:"Please configure spanner project id and instance id to proceed",type:"error",title:"Configure Spanner"},maxWidth:"500px"}):0==Object.keys(this.conv.SpSchema).length?this.dialog.open(jo,{data:{message:"Please restore some table(s) to proceed with the migration",type:"error",title:"All tables skipped"},maxWidth:"500px"}):this.router.navigate(["/prepare-migration"])}})}spannerTab(){this.clickEvent.setTabToSpanner()}static#e=this.\u0275fac=function(i){return new(i||t)(_($i),_(hc),_(jr),_(Xn),_(Pn),_(nr),_(zn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-workspace"]],decls:57,vars:60,consts:[[1,"header"],[1,"breadcrumb","vertical-center"],["mat-button","",1,"breadcrumb_source",3,"routerLink"],["mat-button","",1,"breadcrumb_workspace",3,"routerLink"],[1,"header_action"],["matTooltip","Connect to a spanner instance to run migration",3,"matTooltipDisabled"],["mat-button","",3,"click"],["mat-button","",3,"click",4,"ngIf"],[1,"artifactsButtons"],["mat-raised-button","","color","primary",1,"split-button-left",3,"click"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click"],[1,"container"],[1,"summary"],[1,"spanner-tab-link",3,"click"],[1,"columns"],[1,"column-left",3,"ngClass"],[3,"spannerTree","srcTree","srcDbName","selectedDatabase","selectObject","updateSpannerTable","updateSrcTable","leftCollaspe","middleCollapse"],[1,"column-middle",3,"ngClass"],[3,"currentObject","tableData","indexData","typeMap","autoGenMap","ddlStmts","fkData","currentDatabase","defaultTypeMap","updateSidebar"],[1,"column-right",3,"ngClass"],[3,"ngClass","label"],[3,"currentObject","changeIssuesLabel"],[3,"currentObject","lengthOfRules"],["id","right-column-toggle-button",3,"click"],[3,"ngClass"]],template:function(i,o){if(1&i&&(d(0,"div")(1,"div",0)(2,"div",1)(3,"a",2),h(4,"Select Source"),l(),d(5,"span"),h(6,">"),l(),d(7,"a",3)(8,"b"),h(9),l()()(),d(10,"div",4)(11,"span",5)(12,"button",6),N("click",function(){return o.prepareMigration()}),h(13," PREPARE MIGRATION "),l()(),d(14,"button",6),N("click",function(){return o.openAssessment()}),h(15,"VIEW ASSESSMENT"),l(),y(16,zde,2,0,"button",7),d(17,"span",8)(18,"button",9),N("click",function(){return o.downloadArtifacts()}),h(19," DOWNLOAD ARTIFACTS "),l(),d(20,"button",10)(21,"mat-icon",11),h(22,"expand_more"),l()(),d(23,"mat-menu",12,13)(25,"button",14),N("click",function(){return o.downloadTextReport()}),h(26,"Download Text Report"),l(),d(27,"button",14),N("click",function(){return o.downloadStructuredReport()}),h(28,"Download Structured Report"),l(),d(29,"button",14),N("click",function(){return o.downloadSession()}),h(30,"Download Session File"),l(),d(31,"button",14),N("click",function(){return o.downloadDDL()}),h(32,"Download Spanner DDL"),l()()()()(),d(33,"div",15)(34,"div",16),h(35),D(36,"br"),h(37," To make schema changes go to "),d(38,"a",17),N("click",function(){return o.spannerTab()}),h(39,"Spanner Draft"),l(),h(40," pane. "),l()(),d(41,"div",18)(42,"div",19)(43,"app-object-explorer",20),N("selectedDatabase",function(a){return o.changeCurrentDatabase(a)})("selectObject",function(a){return o.changeCurrentObject(a)})("updateSpannerTable",function(a){return o.updateSpannerTable(a)})("updateSrcTable",function(a){return o.updateSrcTable(a)})("leftCollaspe",function(){return o.leftColumnToggle()})("middleCollapse",function(){return o.middleColumnToggle()}),l()(),d(44,"div",21)(45,"app-object-detail",22),N("updateSidebar",function(){return o.reRenderObjectExplorerSpanner()}),l()(),d(46,"div",23)(47,"mat-tab-group")(48,"mat-tab",24)(49,"app-summary",25),N("changeIssuesLabel",function(a){return o.updateIssuesLabel(a)}),l()(),d(50,"mat-tab",24)(51,"app-rule",26),N("lengthOfRules",function(a){return o.updateRulesLabel(a)}),l()()(),d(52,"button",27),N("click",function(){return o.rightColumnToggle()}),d(53,"mat-icon",28),h(54,"first_page"),l(),d(55,"mat-icon",28),h(56,"last_page"),l()()()()()),2&i){const r=Rt(24);m(3),f("routerLink","/"),m(4),f("routerLink","/workspace"),m(2),ke("Configure Schema (",o.dialect," Dialect)"),m(2),f("matTooltipDisabled",!o.isOfflineStatus),m(5),f("ngIf",!o.isOfflineStatus),m(4),f("matMenuTriggerFor",r),m(15),xv(" Estimation for ",o.srcDbName.toUpperCase()," to Spanner conversion: ",o.conversionRatePercentages.good,"% of tables can be converted automatically, ",o.conversionRatePercentages.ok,"% requires minimal conversion changes and ",o.conversionRatePercentages.bad,"% requires high complexity conversion changes. "),m(7),f("ngClass",ui(33,Ch,o.isLeftColumnCollapse?"left-column-collapse":"left-column-expand")),m(),f("spannerTree",o.spannerTree)("srcTree",o.srcTree)("srcDbName",o.srcDbName),m(),f("ngClass",function HT(t,n,e,i,o,r,a,s){const c=to()+t,u=fe(),p=$o(u,c,e,i,o,r);return en(u,c+4,a)||p?Pr(u,c+5,s?n.call(s,e,i,o,r,a):n(e,i,o,r,a)):Qd(u,c+5)}(35,Hde,o.isLeftColumnCollapse,!o.isLeftColumnCollapse,!o.isMiddleColumnCollapse,o.isRightColumnCollapse,!o.isRightColumnCollapse)),m(),f("currentObject",o.currentObject)("tableData",o.tableData)("indexData",o.indexData)("typeMap",o.typeMap)("autoGenMap",o.autoGenMap)("ddlStmts",o.ddlStmts)("fkData",o.fkData)("currentDatabase",o.currentDatabase)("defaultTypeMap",o.defaultTypeMap),m(),f("ngClass",function UT(t,n,e,i,o,r,a,s,c){const u=to()+t,p=fe(),g=$o(p,u,e,i,o,r);return Vs(p,u+4,a,s)||g?Pr(p,u+6,c?n.call(c,e,i,o,r,a,s):n(e,i,o,r,a,s)):Qd(p,u+6)}(41,Ude,!o.isRightColumnCollapse&&!o.isLeftColumnCollapse,!o.isRightColumnCollapse&&o.isLeftColumnCollapse,o.isRightColumnCollapse,!o.isMiddleColumnCollapse,o.isMiddleColumnCollapse,!o.isMiddleColumnCollapse)),m(2),f("ngClass",ui(50,NN,ui(48,Ch,o.updateIssuesLabel)))("label",o.issuesAndSuggestionsLabel),m(),f("currentObject",o.currentObject),m(),f("ngClass",ui(54,NN,ui(52,Ch,o.updateRulesLabel)))("label",o.rulesLabel),m(),f("currentObject",o.currentObject),m(2),f("ngClass",ui(56,Ch,o.isRightColumnCollapse?"display":"hidden")),m(2),f("ngClass",ui(58,Ch,o.isRightColumnCollapse?"hidden":"display"))}},dependencies:[vr,Tt,$r,jE,Yt,Ii,Vl,xa,jl,Jf,Bw,Dn,Ore,Dae,bde,jde],styles:["app-object-detail[_ngcontent-%COMP%]{height:100%}.vertical-center[_ngcontent-%COMP%]{display:flex;align-items:center}.columns[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;border-top:1px solid #d3d3d3;border-bottom:1px solid #d3d3d3;height:calc(100vh - 222px)}.artifactsButtons[_ngcontent-%COMP%]{white-space:nowrap}.container[_ngcontent-%COMP%]{padding:7px 20px;margin-bottom:20px}.container[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{font-weight:lighter}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 5px}.column-left[_ngcontent-%COMP%]{overflow:auto}.column-middle[_ngcontent-%COMP%]{width:48%;border-left:1px solid #d3d3d3;border-right:1px solid #d3d3d3;overflow:auto}.column-right[_ngcontent-%COMP%]{width:26%;position:relative;overflow:auto}.left-column-collapse[_ngcontent-%COMP%]{width:3%}.left-column-expand[_ngcontent-%COMP%]{width:26%}.middle-column-collapse[_ngcontent-%COMP%]{width:48%}.middle-column-expand[_ngcontent-%COMP%]{width:71%}.right-column-half-expand[_ngcontent-%COMP%]{width:80%}.right-column-collapse[_ngcontent-%COMP%]{width:26%}.right-column-full-expand[_ngcontent-%COMP%]{width:97%}.middle-column-hide[_ngcontent-%COMP%]{width:0%}.middle-column-full[_ngcontent-%COMP%]{width:100%}#right-column-toggle-button[_ngcontent-%COMP%]{border:none;background-color:inherit;position:absolute;top:10px;right:7px;z-index:100}#right-column-toggle-button[_ngcontent-%COMP%]:hover{cursor:pointer} .column-right .mat-mdc-tab-label .mat-mdc-tab-label-content{font-size:.8rem} .column-right .mat-mdc-tab-label{min-width:25px!important;padding:10px} .column-right .mat-mdc-tab-label.mat-mdc-tab-label-active{min-width:25px!important;padding:7px} .column-right .mat-mdc-tab-label-container{margin-right:40px} .column-right .mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-label-container{margin-right:0} .column-right .mat-mdc-tab-header-pagination-after{margin-right:40px}.split-button-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:none;padding-right:1px}.split-button-right[_ngcontent-%COMP%]{box-shadow:none;width:30px!important;min-width:unset!important;padding:0 2px;border-top-left-radius:0;border-bottom-left-radius:0;margin-right:7px}"]})}return t})(),Gde=(()=>{class t{constructor(e,i,o){this.formBuilder=e,this.dialogRef=i,this.data=o,this.region="",this.spannerInstance="",this.dialect="",this.region=o.Region,this.spannerInstance=o.Instance,this.dialect=o.Dialect,this.targetDetailsForm=this.formBuilder.group({targetDb:["",ce.required]}),this.targetDetailsForm.setValue({targetDb:localStorage.getItem(si.TargetDB)})}ngOnInit(){}updateTargetDetails(){let e=this.targetDetailsForm.value;localStorage.setItem(si.TargetDB,e.targetDb),localStorage.setItem(si.Dialect,e.dialect),localStorage.setItem(me.IsTargetDetailSet,"true"),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(ba),_(An),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-target-details-form"]],decls:30,vars:5,consts:[["mat-dialog-content",""],[1,"target-detail-form",3,"formGroup"],["matTooltip","Schema & Schema and data migration: Specify new database name or existing database with empty schema. Data migration: Specify existing database with tables already created",1,"configure"],["appearance","outline",1,"full-width"],["matInput","","placeholder","Target Database","type","text","formControlName","targetDb","ng-value","targetDetails.TargetDB"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Spanner Database Details"),d(4,"mat-icon",2),h(5," info"),l()(),d(6,"mat-form-field",3)(7,"mat-label"),h(8,"Spanner Database"),l(),D(9,"input",4),l(),D(10,"br")(11,"br"),d(12,"b"),h(13,"Region:"),l(),h(14),D(15,"br")(16,"br"),d(17,"b"),h(18,"Spanner Instance:"),l(),h(19),D(20,"br")(21,"br"),d(22,"b"),h(23,"Dialect:"),l(),h(24),l(),d(25,"div",5)(26,"button",6),h(27,"Cancel"),l(),d(28,"button",7),N("click",function(){return o.updateTargetDetails()}),h(29," Save "),l()()()),2&i&&(m(),f("formGroup",o.targetDetailsForm),m(13),ke(" ",o.region," "),m(5),ke(" ",o.spannerInstance," "),m(5),ke(" ",o.dialect," "),m(4),f("disabled",!o.targetDetailsForm.valid))},dependencies:[Yt,Ii,Ri,Pi,rn,On,Oi,xi,Ui,Ai,Yi,mo,Jo,er,Dn]})}return t})();function Wde(t,n){if(1&t){const e=_e();d(0,"mat-radio-button",10),N("change",function(){const r=ae(e).$implicit;return se(w().onItemChange(r.value))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.display,"")}}function qde(t,n){if(1&t&&(d(0,"mat-option",14),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayName),m(),ke(" ",e.DisplayName," ")}}function Kde(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",11)(2,"mat-label"),h(3,"Select connection profile"),l(),d(4,"mat-select",12),y(5,qde,2,2,"mat-option",13),l()()()),2&t){const e=w();m(5),f("ngForOf",e.profileList)}}function Zde(t,n){1&t&&(d(0,"div")(1,"mat-form-field",15)(2,"mat-label"),h(3,"Connection profile name"),l(),D(4,"input",16),l()())}function Yde(t,n){1&t&&(d(0,"div")(1,"mat-form-field",11)(2,"mat-label"),h(3,"Replication slot"),l(),D(4,"input",17),l(),D(5,"br"),d(6,"mat-form-field",11)(7,"mat-label"),h(8,"Publication name"),l(),D(9,"input",18),l()())}function Qde(t,n){if(1&t&&(d(0,"li",24)(1,"span",25),h(2),l(),d(3,"span")(4,"mat-icon",26),h(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Ne(e),m(2),f("cdkCopyToClipboard",e)}}function Xde(t,n){if(1&t&&(d(0,"div",27)(1,"span",25),h(2,"Test connection failed"),l(),d(3,"mat-icon",28),h(4," error "),l()()),2&t){const e=w(3);m(3),f("matTooltip",e.errorMsg)}}function Jde(t,n){1&t&&(d(0,"mat-icon",29),h(1," check_circle "),l())}function eue(t,n){if(1&t){const e=_e();d(0,"div")(1,"div")(2,"b"),h(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",19),h(5,"Learn More"),l()(),D(6,"br"),y(7,Qde,6,2,"li",20)(8,Xde,5,1,"div",21),D(9,"br"),d(10,"button",22),N("click",function(){return ae(e),se(w(2).testConnection())}),h(11,"Test Connection"),l(),y(12,Jde,2,0,"mat-icon",23),l()}if(2&t){const e=w(2);m(7),f("ngForOf",e.ipList),m(),f("ngIf",!e.testSuccess&&""!=e.errorMsg),m(2),f("disabled",!e.connectionProfileForm.valid),m(2),f("ngIf",e.testSuccess)}}function tue(t,n){if(1&t&&(d(0,"div"),y(1,eue,13,4,"div",6),l()),2&t){const e=w();m(),f("ngIf",e.isSource)}}let iue=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.formBuilder=o,this.dialogRef=r,this.data=a,this.selectedProfile="",this.profileType="Source",this.profileList=[],this.ipList=[],this.selectedOption="new",this.profileOptions=[{value:"new",display:"Create a new connection profile"},{value:"existing",display:"Choose an existing connection profile"}],this.profileName="",this.errorMsg="",this.isSource=!1,this.sourceDatabaseType="",this.testSuccess=!1,this.testingSourceConnection=!1,this.isSource=a.IsSource,this.sourceDatabaseType=a.SourceDatabaseType,this.isSource||(this.profileType="Target"),this.connectionProfileForm=this.formBuilder.group({profileOption:["",ce.required],newProfile:["",[ce.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingProfile:[],replicationSlot:[],publication:[]}),"postgres"==this.sourceDatabaseType&&this.isSource&&(this.connectionProfileForm.get("replicationSlot")?.addValidators([ce.required]),this.connectionProfileForm.controls.replicationSlot.updateValueAndValidity(),this.connectionProfileForm.get("publication")?.addValidators([ce.required]),this.connectionProfileForm.controls.publication.updateValueAndValidity()),this.getConnectionProfilesAndIps()}onItemChange(e){this.selectedOption=e,"new"==this.selectedOption?(this.connectionProfileForm.get("newProfile")?.setValidators([ce.required]),this.connectionProfileForm.controls.existingProfile.clearValidators(),this.connectionProfileForm.controls.newProfile.updateValueAndValidity(),this.connectionProfileForm.controls.existingProfile.updateValueAndValidity()):(this.connectionProfileForm.controls.newProfile.clearValidators(),this.connectionProfileForm.get("existingProfile")?.addValidators([ce.required]),this.connectionProfileForm.controls.newProfile.updateValueAndValidity(),this.connectionProfileForm.controls.existingProfile.updateValueAndValidity())}testConnection(){this.testingSourceConnection=!0,this.fetch.createConnectionProfile({Id:this.connectionProfileForm.value.newProfile,IsSource:this.isSource,ValidateOnly:!0}).subscribe({next:()=>{this.testingSourceConnection=!1,this.testSuccess=!0},error:o=>{this.testingSourceConnection=!1,this.testSuccess=!1,this.errorMsg=o.error}})}createConnectionProfile(){let e=this.connectionProfileForm.value;this.isSource&&(localStorage.setItem(si.ReplicationSlot,e.replicationSlot),localStorage.setItem(si.Publication,e.publication)),"new"===this.selectedOption?this.fetch.createConnectionProfile({Id:e.newProfile,IsSource:this.isSource,ValidateOnly:!1}).subscribe({next:()=>{this.isSource?(localStorage.setItem(me.IsSourceConnectionProfileSet,"true"),localStorage.setItem(si.SourceConnProfile,e.newProfile)):(localStorage.setItem(me.IsTargetConnectionProfileSet,"true"),localStorage.setItem(si.TargetConnProfile,e.newProfile)),this.dialogRef.close()},error:o=>{this.snack.openSnackBar(o.error,"Close"),this.dialogRef.close()}}):(this.isSource?(localStorage.setItem(me.IsSourceConnectionProfileSet,"true"),localStorage.setItem(si.SourceConnProfile,e.existingProfile)):(localStorage.setItem(me.IsTargetConnectionProfileSet,"true"),localStorage.setItem(si.TargetConnProfile,e.existingProfile)),this.dialogRef.close())}ngOnInit(){}getConnectionProfilesAndIps(){this.fetch.getConnectionProfiles(this.isSource).subscribe({next:e=>{this.profileList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}}),this.isSource&&this.fetch.getStaticIps().subscribe({next:e=>{this.ipList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(zn),_(ir),_(ba),_(An),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-connection-profile-form"]],decls:19,vars:9,consts:[["mat-dialog-content",""],[1,"conn-profile-form",3,"formGroup"],[1,"mat-h3","header-title"],[1,"radio-button-container"],["formControlName","profileOption",3,"ngModel","ngModelChange"],[3,"value","change",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[3,"value","change"],["appearance","outline"],["formControlName","existingProfile","required","true","ng-value","selectedProfile",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["appearance","outline","hintLabel","Name can include lower case letters, numbers and hyphens. Must start with a letter.",1,"new-connection-profile-input"],["matInput","","placeholder","Connection profile name","type","text","formControlName","newProfile","required","true"],["matInput","","placeholder","Replication slot","type","text","formControlName","replicationSlot","required","true"],["matInput","","placeholder","Publication name","type","text","formControlName","publication","required","true"],["href","https://cloud.google.com/datastream/docs/network-connectivity-options#ipallowlists"],["class","connection-form-container",4,"ngFor","ngForOf"],["class","failure",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["class","success","matTooltip","Test connection successful","matTooltipPosition","above",4,"ngIf"],[1,"connection-form-container"],[1,"left-text"],["matTooltip","Copy",1,"icon","copy",3,"cdkCopyToClipboard"],[1,"failure"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],["matTooltip","Test connection successful","matTooltipPosition","above",1,"success"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"span",2),h(3),l(),D(4,"br"),d(5,"div",3)(6,"mat-radio-group",4),xn("ngModelChange",function(a){return Tn(o.selectedOption,a)||(o.selectedOption=a),a}),y(7,Wde,2,2,"mat-radio-button",5),l()(),D(8,"br"),y(9,Kde,6,1,"div",6)(10,Zde,5,0,"div",6),D(11,"br"),y(12,Yde,10,0,"div",6)(13,tue,2,1,"div",6),d(14,"div",7)(15,"button",8),h(16,"Cancel"),l(),d(17,"button",9),N("click",function(){return o.createConnectionProfile()}),h(18," Save "),l()()()()),2&i&&(m(),f("formGroup",o.connectionProfileForm),m(2),ke("",o.profileType," Connection Profile"),m(3),wn("ngModel",o.selectedOption),m(),f("ngForOf",o.profileOptions),m(2),f("ngIf","existing"===o.selectedOption),m(),f("ngIf","new"===o.selectedOption),m(2),f("ngIf",o.isSource&&"postgres"==o.sourceDatabaseType),m(),f("ngIf","new"===o.selectedOption),m(4),f("disabled",!o.connectionProfileForm.valid||!o.testSuccess&&"new"===o.selectedOption&&o.isSource))},dependencies:[dn,Tt,Yt,Ii,Ri,Pi,rn,uo,En,On,Oi,xi,Ui,Bo,Ai,Yi,mo,Jo,er,Dn,sg,cg,Kw],styles:[".icon[_ngcontent-%COMP%]{font-size:15px}.connection-form-container[_ngcontent-%COMP%]{display:block}.left-text[_ngcontent-%COMP%]{width:40%;display:inline-block}"]})}return t})();function nue(t,n){if(1&t){const e=_e();d(0,"mat-radio-button",6),N("change",function(){const r=ae(e).$implicit;return se(w().onItemChange(r.value))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.display,"")}}function oue(t,n){1&t&&D(0,"mat-spinner",19),2&t&&f("diameter",25)}function rue(t,n){1&t&&(d(0,"mat-icon",20),h(1,"check_circle"),l())}function aue(t,n){1&t&&(d(0,"mat-icon",21),h(1,"cancel"),l())}function sue(t,n){if(1&t&&(d(0,"div",22)(1,"span",23),h(2,"Source database connection failed"),l(),d(3,"mat-icon",24),h(4," error "),l()()),2&t){const e=w(2);m(3),f("matTooltip",e.errorMsg)}}function cue(t,n){if(1&t){const e=_e();d(0,"div")(1,"form",7),N("ngSubmit",function(){return ae(e),se(w().setSourceDBDetailsForDump())}),d(2,"h4",8),h(3,"Load from database dump"),l(),h(4," Dump File "),d(5,"mat-form-field",9)(6,"mat-label"),h(7,"File path"),l(),d(8,"input",10),N("click",function(){return ae(e),se(Rt(13).click())}),l(),y(9,oue,1,1,"mat-spinner",11)(10,rue,2,0,"mat-icon",12)(11,aue,2,0,"mat-icon",13),l(),d(12,"input",14,15),N("change",function(o){return ae(e),se(w().handleFileInput(o))}),l(),D(14,"br"),d(15,"button",16),h(16,"CANCEL"),l(),d(17,"button",17),h(18," SAVE "),l(),y(19,sue,5,1,"div",18),l()()}if(2&t){const e=w();m(),f("formGroup",e.dumpFileForm),m(8),f("ngIf",e.uploadStart&&!e.uploadSuccess&&!e.uploadFail),m(),f("ngIf",e.uploadStart&&e.uploadSuccess),m(),f("ngIf",e.uploadStart&&e.uploadFail),m(6),f("disabled",!e.dumpFileForm.valid||!e.uploadSuccess),m(2),f("ngIf",""!=e.errorMsg)}}function lue(t,n){if(1&t&&(d(0,"div",22)(1,"span",23),h(2,"Source database connection failed"),l(),d(3,"mat-icon",24),h(4," error "),l()()),2&t){const e=w(2);m(3),f("matTooltip",e.errorMsg)}}function due(t,n){if(1&t){const e=_e();d(0,"div")(1,"form",7),N("ngSubmit",function(){return ae(e),se(w().setSourceDBDetailsForDirectConnect())}),d(2,"h4",8),h(3,"Connect to Source Database"),l(),h(4," Connection Detail "),d(5,"mat-form-field",25)(6,"mat-label"),h(7,"Hostname"),l(),D(8,"input",26),l(),d(9,"mat-form-field",25)(10,"mat-label"),h(11,"Port"),l(),D(12,"input",27),d(13,"mat-error"),h(14," Only numbers are allowed. "),l()(),D(15,"br"),d(16,"mat-form-field",25)(17,"mat-label"),h(18,"User name"),l(),D(19,"input",28),l(),d(20,"mat-form-field",25)(21,"mat-label"),h(22,"Password"),l(),D(23,"input",29),l(),D(24,"br"),d(25,"mat-form-field",25)(26,"mat-label"),h(27,"Database Name"),l(),D(28,"input",30),l(),D(29,"br"),d(30,"button",16),h(31,"CANCEL"),l(),d(32,"button",17),h(33," SAVE "),l(),y(34,lue,5,1,"div",18),l()()}if(2&t){const e=w();m(),f("formGroup",e.directConnectForm),m(31),f("disabled",!e.directConnectForm.valid),m(2),f("ngIf",""!=e.errorMsg)}}let uue=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.dataService=i,this.snack=o,this.dialogRef=r,this.data=a,this.inputOptions=[{value:Qn.DumpFile,display:"Connect via dump file"},{value:Qn.DirectConnect,display:"Connect via direct connection"}],this.selectedOption=Qn.DirectConnect,this.sourceDatabaseEngine="",this.errorMsg="",this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.dumpFileForm=new ei({filePath:new K("",[ce.required])}),this.directConnectForm=new ei({hostName:new K("",[ce.required]),port:new K("",[ce.required]),userName:new K("",[ce.required]),dbName:new K("",[ce.required]),password:new K("")}),this.sourceDatabaseEngine=a}ngOnInit(){}setSourceDBDetailsForDump(){const{filePath:e}=this.dumpFileForm.value;this.fetch.setSourceDBDetailsForDump({Driver:this.sourceDatabaseEngine,Path:e}).subscribe({next:()=>{localStorage.setItem(me.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:o=>{this.errorMsg=o.error}})}setSourceDBDetailsForDirectConnect(){const{hostName:e,port:i,userName:o,password:r,dbName:a}=this.directConnectForm.value;this.fetch.setSourceDBDetailsForDirectConnect({dbEngine:this.sourceDatabaseEngine,isSharded:!1,hostName:e,port:i,userName:o,password:r,dbName:a}).subscribe({next:()=>{localStorage.setItem(me.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:c=>{this.errorMsg=c.error}})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.dumpFileForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.dataService.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}onItemChange(e){this.selectedOption=e,this.errorMsg=""}static#e=this.\u0275fac=function(i){return new(i||t)(_(zn),_($i),_(ir),_(An),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-source-details-form"]],decls:7,vars:4,consts:[[1,"radio-button-container"],[1,"radio-button-group",3,"ngModel","ngModelChange"],[3,"value","change",4,"ngFor","ngForOf"],[1,"connect-load-database-container"],[1,"form-container"],[4,"ngIf"],[3,"value","change"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["hidden","","type","file",3,"change"],["file",""],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["class","failure",4,"ngIf"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"],[1,"failure"],[1,"left-text"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],["appearance","outline",1,"full-width"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName"],["matInput","","name","password","type","password","formControlName","password"],["matInput","","name","dbname","type","text","formControlName","dbName"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-radio-group",1),xn("ngModelChange",function(a){return Tn(o.selectedOption,a)||(o.selectedOption=a),a}),y(2,nue,2,2,"mat-radio-button",2),l()(),d(3,"div",3)(4,"div",4),y(5,cue,20,6,"div",5)(6,due,35,3,"div",5),l()()),2&i&&(m(),wn("ngModel",o.selectedOption),m(),f("ngForOf",o.inputOptions),m(3),f("ngIf","dumpFile"===o.selectedOption),m(),f("ngIf","directConnect"===o.selectedOption))},dependencies:[dn,Tt,Yt,Ii,Ri,Pi,iw,nw,rn,On,Oi,xi,Ui,Ai,Yi,mo,Dn,Pl,sg,cg,ad]})}return t})();function hue(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",7),D(3,"mat-spinner",8),l(),d(4,"span",9),h(5,"Cleaning up resources"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}let mue=(()=>{class t{constructor(e,i,o,r){this.data=e,this.fetch=i,this.snack=o,this.dialogRef=r,this.sourceAndTargetDetails={SpannerDatabaseName:"",SpannerDatabaseUrl:"",SourceDatabaseName:"",SourceDatabaseType:""},this.cleaningUp=!1,this.sourceAndTargetDetails={SourceDatabaseName:e.SourceDatabaseName,SourceDatabaseType:e.SourceDatabaseType,SpannerDatabaseName:e.SpannerDatabaseName,SpannerDatabaseUrl:e.SpannerDatabaseUrl}}ngOnInit(){}cleanUpJobs(){this.cleaningUp=!0,this.fetch.cleanUpStreamingJobs().subscribe({next:()=>{this.cleaningUp=!1,this.snack.openSnackBar("Dataflow and datastream jobs will be cleaned up","Close"),this.dialogRef.close()},error:e=>{this.cleaningUp=!1,this.snack.openSnackBar(e.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(zn),_(ir),_(An))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-end-migration"]],decls:46,vars:7,consts:[[1,"end-migration-dialog"],["target","_blank",3,"href"],["href","https://github.com/GoogleCloudPlatform/professional-services-data-validator","target","_blank"],[4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close","",3,"disabled"],["mat-raised-button","","color","primary",3,"disabled","click"],[1,"spinner"],[3,"diameter"],[1,"spinner-small-text"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),h(2,"End Migration"),l(),d(3,"div")(4,"b"),h(5,"Source database:"),l(),h(6),D(7,"br"),d(8,"b"),h(9,"Spanner database:"),l(),d(10,"a",1),h(11),l()(),D(12,"br"),d(13,"div")(14,"b"),h(15,"Please follow these steps to complete the migration:"),l(),d(16,"ol")(17,"li"),h(18,"Validate that the schema has been created on Spanner as per the configuration"),l(),d(19,"li"),h(20,"Validate the data has been copied from the Source to Spanner. You can use the "),d(21,"a",2),h(22,"Data Validation Tool"),l(),h(23," to help with this process."),l(),d(24,"li"),h(25,"Stop the writes to the source database. "),d(26,"b"),h(27,"This will initiate a period of downtime."),l()(),d(28,"li"),h(29,"Wait for any incremental writes on source since the validation started on Spanner to catch up with the source. This can be done by periodically checking the Spanner Database for the most recent updates on source."),l(),d(30,"li"),h(31,"Once the Source and Spanner are in sync, start the application with Spanner as the Database."),l(),d(32,"li"),h(33,"Perform smoke tests on your application to ensure it is working properly on Spanner"),l(),d(34,"li"),h(35,"Cutover the traffic to the application with Spanner as the Database. "),d(36,"b"),h(37,"This marks the end of the period of downtime"),l()(),d(38,"li"),h(39,"Cleanup the migration jobs by clicking the button below."),l()()(),y(40,hue,7,1,"div",3),d(41,"div",4)(42,"button",5),h(43,"Cancel"),l(),d(44,"button",6),N("click",function(){return o.cleanUpJobs()}),h(45,"Clean Up"),l()()()),2&i&&(m(6),fl(" ",o.sourceAndTargetDetails.SourceDatabaseName,"(",o.sourceAndTargetDetails.SourceDatabaseType,") "),m(4),f("href",o.sourceAndTargetDetails.SpannerDatabaseUrl,Uo),m(),Ne(o.sourceAndTargetDetails.SpannerDatabaseName),m(29),f("ngIf",o.cleaningUp),m(2),f("disabled",o.cleaningUp),m(2),f("disabled",o.cleaningUp))},dependencies:[Tt,Yt,mo,er,ad]})}return t})(),pue=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.disablePresetFlags=!0,this.tunableFlagsForm=new ei({vpcHostProjectId:new K(e.GCPProjectID,ce.required),network:new K(""),subnetwork:new K(""),maxWorkers:new K("50",[ce.required,ce.pattern("^[1-9][0-9]*$")]),numWorkers:new K("1",[ce.required,ce.pattern("^[1-9][0-9]*$")]),machineType:new K("n1-standard-2",[ce.required]),serviceAccountEmail:new K(""),additionalUserLabels:new K("",[ce.pattern('^{("([0-9a-zA-Z_-]+)":"([0-9a-zA-Z_-]+)",?)+}$')]),kmsKeyName:new K("",[ce.pattern("^projects\\/[^\\n\\r]+\\/locations\\/[^\\n\\r]+\\/keyRings\\/[^\\n\\r]+\\/cryptoKeys\\/[^\\n\\r]+$")])}),this.presetFlagsForm=new ei({dataflowProjectId:new K(e.GCPProjectID),dataflowLocation:new K(""),gcsTemplatePath:new K("",[ce.pattern("^gs:\\/\\/[^\\n\\r]+$")])}),this.presetFlagsForm.disable()}ngOnInit(){}updateDataflowDetails(){let e=this.tunableFlagsForm.value;localStorage.setItem("network",e.network),localStorage.setItem("subnetwork",e.subnetwork),localStorage.setItem("vpcHostProjectId",e.vpcHostProjectId),localStorage.setItem("maxWorkers",e.maxWorkers),localStorage.setItem("numWorkers",e.numWorkers),localStorage.setItem("serviceAccountEmail",e.serviceAccountEmail),localStorage.setItem("machineType",e.machineType),localStorage.setItem("additionalUserLabels",e.additionalUserLabels),localStorage.setItem("kmsKeyName",e.kmsKeyName),localStorage.setItem("dataflowProjectId",this.presetFlagsForm.value.dataflowProjectId),localStorage.setItem("dataflowLocation",this.presetFlagsForm.value.dataflowLocation),localStorage.setItem("gcsTemplatePath",this.presetFlagsForm.value.gcsTemplatePath),localStorage.setItem("isDataflowConfigSet","true"),this.dialofRef.close()}enablePresetFlags(){this.disablePresetFlags=!1,this.presetFlagsForm.enable()}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(An))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-dataflow-form"]],decls:109,vars:16,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["matTooltip","Edit to run Dataflow in a VPC",1,"mat-row"],["appearance","outline","matTooltip","Specify the host project Id of the VPC network. For shared VPC, this needs to be edited to the correct host project id.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Host ProjectID","type","text","formControlName","vpcHostProjectId"],["href","https://cloud.google.com/vpc/docs/create-modify-vpc-networks#create-auto-network","target","_blank"],["appearance","outline","matTooltip","Specify the network name for the VPC",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Network Name","type","text","formControlName","network"],["appearance","outline","matTooltip","Specify the subnetwork name for the VPC. Provide only the subnetwork name and NOT the full URL for subnetwork.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Subnetwork Name","type","text","formControlName","subnetwork"],["matTooltip","Set performance parameters of the Dataflow job(s)",1,"mat-row"],["appearance","outline","matTooltip","Set maximum workers for the dataflow job(s). Default value: 50",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","50","type","text","formControlName","maxWorkers"],["appearance","outline","matTooltip","Set initial number of workers for the dataflow job(s). Default value: 1",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","1","type","text","formControlName","numWorkers"],["appearance","outline","matTooltip","The machine type to use for the job. Default machine type: n1-standard-2.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Machine Type","type","text","formControlName","machineType"],["href","https://cloud.google.com/compute/docs/machine-resource","target","_blank"],["appearance","outline","matTooltip","Set the service account to run the dataflow job(s) as",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Service Account Email","type","text","formControlName","serviceAccountEmail"],["appearance","outline","matTooltip",'Additional user labels to be specified for the job. Enter a json of "key": "value" pairs. Example: {"name": "wrench", "mass": "1kg", "count": "3" }.',1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Additional User Labels","type","text","formControlName","additionalUserLabels"],["appearance","outline","matTooltip","Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings //cryptoKeys/. Omit this field to use Google Managed Encryption Keys.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","KMS Key Name","type","text","formControlName","kmsKeyName"],["mat-button","",1,"edit-button",3,"disabled","click"],["appearance","outline","matTooltip","Specify the project to run the dataflow job in.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Dataflow Project Id","type","text","formControlName","dataflowProjectId"],["appearance","outline","matTooltip","Specify the region to run the dataflow job in. It is recommended to keep the region same as Spanner region for performance. Example: us-central1",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Dataflow Location","type","text","formControlName","dataflowLocation"],["appearance","outline","matTooltip","Cloud Storage path to the template spec. Use this to run launch dataflow with custom templates. Example: gs://my-bucket/path/to/template",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","GCS Template Path","type","text","formControlName","gcsTemplatePath"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Tune Dataflow (Optional)"),l(),d(4,"h5"),h(5,"This form is optional and should only be edited to tune runtime environment for Dataflow."),l(),d(6,"mat-expansion-panel")(7,"mat-expansion-panel-header",2)(8,"span"),h(9,"Networking"),l()(),d(10,"div")(11,"mat-form-field",3)(12,"mat-label"),h(13,"VPC Host ProjectID"),l(),D(14,"input",4),l(),D(15,"br"),d(16,"h5"),h(17," - Provide "),d(18,"b"),h(19,"ONLY"),l(),h(20," the VPC subnetwork if unsure about what VPC network to use. Dataflow chooses the network for you. "),D(21,"br"),h(22," - If you are using an "),d(23,"a",5),h(24,"auto mode network"),l(),h(25,", provide ONLY the network name and skip the VPC subnetwork. "),l(),d(26,"mat-form-field",6)(27,"mat-label"),h(28,"VPC Network"),l(),D(29,"input",7),l(),D(30,"br"),d(31,"mat-form-field",8)(32,"mat-label"),h(33,"VPC Subnetwork"),l(),D(34,"input",9),l()()(),D(35,"br"),d(36,"mat-expansion-panel")(37,"mat-expansion-panel-header",10)(38,"span"),h(39,"Performance"),l()(),d(40,"div")(41,"mat-form-field",11)(42,"mat-label"),h(43,"Max Workers"),l(),D(44,"input",12),l(),D(45,"br"),d(46,"mat-form-field",13)(47,"mat-label"),h(48,"Initial Number of Workers"),l(),D(49,"input",14),l(),D(50,"br"),d(51,"mat-form-field",15)(52,"mat-label"),h(53,"Machine Type"),l(),D(54,"input",16),l(),d(55,"h5"),h(56,"Find the list of all machine types "),d(57,"a",17),h(58,"here"),l(),h(59,"."),l()()(),D(60,"br"),d(61,"mat-form-field",18)(62,"mat-label"),h(63,"Service Account Email"),l(),D(64,"input",19),l(),D(65,"br"),d(66,"mat-form-field",20)(67,"mat-label"),h(68,"Additional User Labels"),l(),D(69,"input",21),l(),D(70,"br"),d(71,"mat-form-field",22)(72,"mat-label"),h(73,"KMS Key Name"),l(),D(74,"input",23),l()(),D(75,"hr"),d(76,"form",1)(77,"h2"),h(78," Preset Flags "),d(79,"span")(80,"button",24),N("click",function(){return o.enablePresetFlags()}),d(81,"mat-icon"),h(82,"edit"),l(),h(83," EDIT "),l()()(),d(84,"h5"),h(85,"These flags are set by SMT by default and "),d(86,"b"),h(87,"SHOULD NOT BE"),l(),h(88," modified unless running Dataflow in a non-standard configuration. To edit these parameters, click the edit button above."),l(),D(89,"br"),d(90,"mat-form-field",25)(91,"mat-label"),h(92,"Dataflow Project Id"),l(),D(93,"input",26),l(),D(94,"br"),d(95,"mat-form-field",27)(96,"mat-label"),h(97,"Dataflow Location"),l(),D(98,"input",28),l(),D(99,"br"),d(100,"mat-form-field",29)(101,"mat-label"),h(102,"GCS Template Path"),l(),D(103,"input",30),l()(),d(104,"div",31)(105,"button",32),h(106,"Cancel"),l(),d(107,"button",33),N("click",function(){return o.updateDataflowDetails()}),h(108," Save "),l()()()),2&i&&(m(),f("formGroup",o.tunableFlagsForm),m(10),f("matTooltipPosition","right"),m(15),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(10),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(10),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("formGroup",o.presetFlagsForm),m(4),f("disabled",!o.disablePresetFlags),m(10),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(7),f("disabled",o.tunableFlagsForm.invalid||o.presetFlagsForm.invalid))},dependencies:[Yt,Ii,Ri,Pi,rn,On,Oi,xi,Ui,Ai,Yi,Dw,_P,mo,Jo,er,Dn],styles:[".edit-button[_ngcontent-%COMP%]{color:#3367d6}"]})}return t})();function fue(t,n){1&t&&(d(0,"mat-form-field",8)(1,"mat-label"),h(2,"Max Concurrent CDC Tasks"),l(),D(3,"input",9),l()),2&t&&f("matTooltipPosition","right")}let gue=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.isCdcTuningSupported=!0,this.datastreamForm=new ei({maxConcurrentBackfillTasks:new K("50",[ce.required,ce.pattern("^[1-9][0-9]*$"),ce.min(1),ce.max(50)]),maxConcurrentCdcTasks:new K("5",[ce.required,ce.pattern("^[1-9][0-9]*$"),ce.min(1),ce.max(50)])}),this.isCdcTuningSupported=e.sourceType!=Wr.Postgres.toLowerCase()}ngOnInit(){}updateDatastreamDetails(){let e=this.datastreamForm.value;localStorage.setItem("maxConcurrentBackfillTasks",e.maxConcurrentBackfillTasks),localStorage.setItem("maxConcurrentCdcTasks",e.maxConcurrentCdcTasks),localStorage.setItem("isDatastreamConfigSet","true"),this.dialofRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(An))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-tune-datastream-form"]],decls:17,vars:4,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream backfill. Default: 50",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Max Concurrent Backfill Tasks","type","text","formControlName","maxConcurrentBackfillTasks"],["class","full-width","appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream CDC. Default: 5",3,"matTooltipPosition",4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],["appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream CDC. Default: 5",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Max Concurrent CDC Tasks","type","text","formControlName","maxConcurrentCdcTasks"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Tune Datastream (Optional)"),l(),d(4,"h5"),h(5,"This form is optional and should only be edited to tune runtime environment for Datastream."),l(),d(6,"mat-form-field",2)(7,"mat-label"),h(8,"Max Concurrent Backfill Tasks"),l(),D(9,"input",3),l(),D(10,"br"),y(11,fue,4,1,"mat-form-field",4),l(),d(12,"div",5)(13,"button",6),h(14,"Cancel"),l(),d(15,"button",7),N("click",function(){return o.updateDatastreamDetails()}),h(16," Save "),l()()()),2&i&&(m(),f("formGroup",o.datastreamForm),m(5),f("matTooltipPosition","right"),m(5),f("ngIf",o.isCdcTuningSupported),m(4),f("disabled",!o.datastreamForm.valid))},dependencies:[Tt,Yt,Ri,Pi,rn,On,Oi,xi,Ui,Ai,Yi,mo,Jo,er,Dn]})}return t})();function _ue(t,n){1&t&&(d(0,"mat-form-field",7)(1,"mat-label"),h(2,"TTL in days"),l(),D(3,"input",8),l()),2&t&&f("matTooltipPosition","right")}let bue=(()=>{class t{constructor(e){this.dialofRef=e,this.ttlInDaysSet=!1,this.gcsForm=new ei({ttlInDays:new K("",[ce.required,ce.pattern("^([1-9][0-9]*$)"),ce.min(1),ce.max(1e8)])})}ngOnInit(){}updateGcsDetails(){this.ttlInDaysSet?(localStorage.setItem("ttlInDays",this.gcsForm.value.ttlInDays),localStorage.setItem("ttlInDaysSet","true")):(localStorage.setItem("ttlInDays","0"),localStorage.setItem("ttlInDaysSet","false")),localStorage.setItem("isGcsConfigSet","true"),this.dialofRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(An))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-tune-gcs-form"]],decls:15,vars:5,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["color","primary","matTooltip","Set the TTL (in days) for GCS data written by Datastream. This sets the GCS lifecycle to delete the objects after specified number of days.",3,"matTooltipPosition","checked","change"],["class","ttl-input","appearance","outline","matTooltip","Set the TTL in days",3,"matTooltipPosition",4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],["appearance","outline","matTooltip","Set the TTL in days",1,"ttl-input",3,"matTooltipPosition"],["matInput","","type","text","formControlName","ttlInDays"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Tune Google Cloud Storage (Optional)"),l(),d(4,"h5"),h(5,"This form is optional and should only be edited to tune the Cloud Storage bucket used by Datastream to store Change Records, specified by the destination connection profile"),l(),d(6,"mat-checkbox",2),N("change",function(){return o.ttlInDaysSet=!o.ttlInDaysSet}),h(7," Set TTL for data "),l(),D(8,"br"),y(9,_ue,4,1,"mat-form-field",3),l(),d(10,"div",4)(11,"button",5),h(12,"Cancel"),l(),d(13,"button",6),N("click",function(){return o.updateGcsDetails()}),h(14," Save "),l()()()),2&i&&(m(),f("formGroup",o.gcsForm),m(5),f("matTooltipPosition","right")("checked",o.ttlInDaysSet),m(3),f("ngIf",o.ttlInDaysSet),m(4),f("disabled",o.ttlInDaysSet&&o.gcsForm.invalid))},dependencies:[Tt,Yt,Ri,Pi,rn,On,Oi,xi,Ui,Ai,Yi,mo,Jo,er,Dn,ng],styles:[".ttl-input[_ngcontent-%COMP%]{padding-left:10%}"]})}return t})(),vue=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.gcloudCmd=e}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho),_(An))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-equivalent-gcloud-command"]],decls:12,vars:2,consts:[["mat-dialog-content",""],["matTooltip","This is the gcloud command to launch the dataflow job with the same parameters. Can be used to re-run a dataflow job manually in case of failure.",1,"configure"],[1,"left-text"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","color","primary",3,"cdkCopyToClipboard"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),h(2,"Equivalent gcloud command line"),d(3,"mat-icon",1),h(4," info"),l()(),d(5,"span",2),h(6),l(),d(7,"div",3)(8,"button",4),h(9,"Close"),l(),d(10,"button",5),h(11,"Copy"),l()()()),2&i&&(m(6),Ne(o.gcloudCmd),m(4),f("cdkCopyToClipboard",o.gcloudCmd))},dependencies:[Yt,Ii,mo,Jo,er,Dn,Kw]})}return t})();function yue(t,n){if(1&t&&(d(0,"mat-option",14),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.displayName," ")}}function wue(t,n){1&t&&(d(0,"div",15)(1,"mat-form-field",4)(2,"mat-label"),h(3,"Paste JSON Configuration"),l(),D(4,"textarea",16,17),l()())}function xue(t,n){1&t&&(d(0,"div",18)(1,"mat-form-field",19)(2,"mat-label"),h(3,"Hostname"),l(),D(4,"input",20),l(),d(5,"mat-form-field",19)(6,"mat-label"),h(7,"Port"),l(),D(8,"input",21),d(9,"mat-error"),h(10," Only numbers are allowed. "),l()(),D(11,"br"),d(12,"mat-form-field",19)(13,"mat-label"),h(14,"User name"),l(),D(15,"input",22),l(),d(16,"mat-form-field",19)(17,"mat-label"),h(18,"Password"),l(),D(19,"input",23),l(),D(20,"br"),d(21,"mat-form-field",19)(22,"mat-label"),h(23,"Database Name"),l(),D(24,"input",24),l(),D(25,"br"),d(26,"mat-form-field",19)(27,"mat-label"),h(28,"Shard ID"),l(),D(29,"input",25),l(),D(30,"br"),l())}function Cue(t,n){if(1&t){const e=_e();d(0,"button",26),N("click",function(){return ae(e),se(w().saveDetailsAndReset())}),h(1," ADD MORE SHARDS "),l()}2&t&&f("disabled",w().directConnectForm.invalid)}function Due(t,n){if(1&t&&(d(0,"div",27)(1,"span",28),h(2),l(),d(3,"mat-icon",29),h(4," error "),l()()),2&t){const e=w();m(2),Ne(e.errorMsg),m(),f("matTooltip",e.errorMsg)}}let Sue=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.dataService=o,this.dialogRef=r,this.data=a,this.errorMsg="",this.shardConnDetailsList=[],this.sourceConnDetails={dbConfigs:[],isRestoredSession:""},this.shardSessionDetails={sourceDatabaseEngine:"",isRestoredSession:""},this.inputOptionsList=[{value:"text",displayName:"Text"},{value:"form",displayName:"Form"}],this.shardSessionDetails={sourceDatabaseEngine:a.sourceDatabaseEngine,isRestoredSession:a.isRestoredSession};let s={dbEngine:"",isSharded:!1,hostName:"",port:"",userName:"",password:"",dbName:""};localStorage.getItem(Qi.Type)==Qn.DirectConnect&&null!=localStorage.getItem(Qi.Config)&&(s=JSON.parse(localStorage.getItem(Qi.Config))),this.directConnectForm=new ei({inputType:new K("form",[ce.required]),textInput:new K(""),hostName:new K(s.hostName,[ce.required]),port:new K(s.port,[ce.required]),userName:new K(s.userName,[ce.required]),dbName:new K(s.dbName,[ce.required]),password:new K(s.password),shardId:new K("",[ce.required])})}ngOnInit(){this.initFromLocalStorage()}initFromLocalStorage(){}setValidators(e){if("text"==e){for(const i in this.directConnectForm.controls)this.directConnectForm.get(i)?.clearValidators(),this.directConnectForm.get(i)?.updateValueAndValidity();this.directConnectForm.get("textInput")?.setValidators([ce.required]),this.directConnectForm.controls.textInput.updateValueAndValidity()}else this.directConnectForm.get("hostName")?.setValidators([ce.required]),this.directConnectForm.controls.hostName.updateValueAndValidity(),this.directConnectForm.get("port")?.setValidators([ce.required]),this.directConnectForm.controls.port.updateValueAndValidity(),this.directConnectForm.get("userName")?.setValidators([ce.required]),this.directConnectForm.controls.userName.updateValueAndValidity(),this.directConnectForm.get("dbName")?.setValidators([ce.required]),this.directConnectForm.controls.dbName.updateValueAndValidity(),this.directConnectForm.get("password")?.setValidators([ce.required]),this.directConnectForm.controls.password.updateValueAndValidity(),this.directConnectForm.get("shardId")?.setValidators([ce.required]),this.directConnectForm.controls.shardId.updateValueAndValidity(),this.directConnectForm.controls.textInput.clearValidators(),this.directConnectForm.controls.textInput.updateValueAndValidity()}determineFormValidity(){return this.shardConnDetailsList.length>0||!!this.directConnectForm.valid}saveDetailsAndReset(){const{hostName:e,port:i,userName:o,password:r,dbName:a,shardId:s}=this.directConnectForm.value;this.shardConnDetailsList.push({dbEngine:this.shardSessionDetails.sourceDatabaseEngine,isSharded:!1,hostName:e,port:i,userName:o,password:r,dbName:a,shardId:s}),this.directConnectForm=new ei({inputType:new K("form",ce.required),textInput:new K(""),hostName:new K(""),port:new K(""),userName:new K(""),dbName:new K(""),password:new K(""),shardId:new K("")}),this.setValidators("form"),this.snack.openSnackBar("Shard configured successfully, please configure the next","Close",5)}finalizeConnDetails(){if("form"===this.directConnectForm.value.inputType){const{hostName:i,port:o,userName:r,password:a,dbName:s,shardId:c}=this.directConnectForm.value;this.shardConnDetailsList.push({dbEngine:this.shardSessionDetails.sourceDatabaseEngine,isSharded:!1,hostName:i,port:o,userName:r,password:a,dbName:s,shardId:c}),this.sourceConnDetails.dbConfigs=this.shardConnDetailsList}else{try{this.sourceConnDetails.dbConfigs=JSON.parse(this.directConnectForm.value.textInput)}catch{throw this.errorMsg="Unable to parse JSON",new Error(this.errorMsg)}this.sourceConnDetails.dbConfigs.forEach(i=>{i.dbEngine=this.shardSessionDetails.sourceDatabaseEngine})}this.sourceConnDetails.isRestoredSession=this.shardSessionDetails.isRestoredSession,this.fetch.setShardsSourceDBDetailsForBulk(this.sourceConnDetails).subscribe({next:()=>{localStorage.setItem(me.NumberOfShards,this.sourceConnDetails.dbConfigs.length.toString()),localStorage.setItem(me.NumberOfInstances,this.sourceConnDetails.dbConfigs.length.toString()),localStorage.setItem(me.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:i=>{this.errorMsg=i.error}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(zn),_(ir),_($i),_(An),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sharded-bulk-source-details-form"]],decls:23,vars:7,consts:[[1,"connect-load-database-container"],[1,"form-container"],[1,"shard-bulk-form",3,"formGroup"],[1,"primary-header"],["appearance","outline"],["formControlName","inputType",3,"selectionChange"],["inputType",""],[3,"value",4,"ngFor","ngForOf"],["class","textInput",4,"ngIf"],["class","formInput",4,"ngIf"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","accent",3,"disabled","click",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["class","failure",4,"ngIf"],[3,"value"],[1,"textInput"],["name","textInput","formControlName","textInput","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","20"],["autosize","cdkTextareaAutosize"],[1,"formInput"],["appearance","outline",1,"full-width"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName"],["matInput","","name","password","type","password","formControlName","password"],["matInput","","name","dbname","type","text","formControlName","dbName"],["matInput","","name","shardId","type","text","formControlName","shardId"],["mat-raised-button","","type","submit","color","accent",3,"disabled","click"],[1,"failure"],[1,"left-text"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"]],template:function(i,o){if(1&i){const r=_e();d(0,"div",0)(1,"div",1)(2,"form",2)(3,"h4",3),h(4,"Add Data Shard Connection Details"),l(),d(5,"b"),h(6,"Note: Please configure the schema source used for schema conversion if you want Spanner migration tool to migrate data from it as well."),l(),D(7,"br")(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),h(11,"Input Type"),l(),d(12,"mat-select",5,6),N("selectionChange",function(){ae(r);const s=Rt(13);return se(o.setValidators(s.value))}),y(14,yue,2,2,"mat-option",7),l()(),y(15,wue,6,0,"div",8)(16,xue,31,0,"div",9),d(17,"button",10),h(18,"CANCEL"),l(),y(19,Cue,2,1,"button",11),d(20,"button",12),N("click",function(){return o.finalizeConnDetails()}),h(21," FINISH "),l(),y(22,Due,5,2,"div",13),l()()()}2&i&&(m(2),f("formGroup",o.directConnectForm),m(12),f("ngForOf",o.inputOptionsList),m(),f("ngIf","text"===o.directConnectForm.value.inputType),m(),f("ngIf","form"===o.directConnectForm.value.inputType),m(3),f("ngIf","form"===o.directConnectForm.value.inputType),m(),f("disabled",!o.determineFormValidity()),m(2),f("ngIf",""!=o.errorMsg))},dependencies:[dn,Tt,Yt,Ii,Ri,Pi,iw,rn,BA,uo,En,On,Oi,xi,Ui,Ai,Yi,mo,Dn]})}return t})();function kue(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.displayName," ")}}function Tue(t,n){if(1&t&&(d(0,"div",19)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),h(4,"Total Configured Shards"),l(),d(5,"mat-card-subtitle"),h(6),l(),d(7,"mat-card-subtitle"),h(8),l()()()()),2&t){const e=w();m(6),ke("",e.physicalShards," physical instances configured."),m(2),ke("",e.logicalShards," logical shards configured.")}}function Mue(t,n){1&t&&(d(0,"div",20)(1,"mat-form-field",21)(2,"mat-label"),h(3,"Paste JSON Configuration"),l(),D(4,"textarea",22,23),l()())}function Iue(t,n){if(1&t&&(d(0,"li",26)(1,"span",27),h(2),l(),d(3,"span")(4,"mat-icon",28),h(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Ne(e),m(2),f("cdkCopyToClipboard",e)}}function Eue(t,n){if(1&t&&(d(0,"div",20)(1,"div")(2,"b"),h(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",24),h(5,"Learn More"),l()(),D(6,"br"),y(7,Iue,6,2,"li",25),l()),2&t){const e=w();m(7),f("ngForOf",e.ipList)}}function Oue(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2,"JSON Verification failed"),l(),d(3,"mat-icon",30),h(4," error "),l()()),2&t){const e=w();m(3),f("matTooltip",e.errorVerMsg)}}function Aue(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Validating Resources"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function Pue(t,n){1&t&&(d(0,"mat-icon",34),h(1," check_circle "),l())}function Rue(t,n){if(1&t){const e=_e();d(0,"div",20)(1,"button",35),N("click",function(){return ae(e),se(w().verifyTextJson())}),h(2,"VERIFY JSON"),l()()}if(2&t){const e=w();m(),f("disabled",!e.migrationProfileForm.valid||e.verifyingJson)}}function Nue(t,n){if(1&t){const e=_e();d(0,"mat-radio-button",48),N("change",function(){const r=ae(e).$implicit;return se(w(2).onItemChange(r.value,"source"))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.display,"")}}function Fue(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayName),m(),ke(" ",e.DisplayName," ")}}function Lue(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),h(3,"Select source connection profile"),l(),d(4,"mat-select",49),y(5,Fue,2,2,"mat-option",8),l()(),d(6,"mat-form-field",5)(7,"mat-label"),h(8,"Data Shard Id"),l(),D(9,"input",50),l()()),2&t){const e=w(2);m(5),f("ngForOf",e.sourceProfileList),m(4),f("value",e.inputValue)}}function Bue(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),h(3,"Host"),l(),D(4,"input",51),l(),d(5,"mat-form-field",5)(6,"mat-label"),h(7,"User"),l(),D(8,"input",52),l(),d(9,"mat-form-field",5)(10,"mat-label"),h(11,"Port"),l(),D(12,"input",53),l(),d(13,"mat-form-field",5)(14,"mat-label"),h(15,"Password"),l(),D(16,"input",54),l(),d(17,"mat-form-field",55)(18,"mat-label"),h(19,"Connection profile name"),l(),D(20,"input",56),l(),d(21,"mat-form-field",5)(22,"mat-label"),h(23,"Data Shard Id"),l(),D(24,"input",50),l()()),2&t){const e=w(2);m(24),f("value",e.inputValue)}}function Vue(t,n){if(1&t&&(d(0,"li",26)(1,"span",27),h(2),l(),d(3,"span")(4,"mat-icon",28),h(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Ne(e),m(2),f("cdkCopyToClipboard",e)}}function jue(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2,"Test connection failed"),l(),d(3,"mat-icon",30),h(4," error "),l()()),2&t){const e=w(3);m(3),f("matTooltip",e.errorSrcMsg)}}function zue(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Testing Connection"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function Hue(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Creating source connection profile"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function Uue(t,n){1&t&&(d(0,"mat-icon",60),h(1," check_circle "),l())}function $ue(t,n){1&t&&(d(0,"mat-icon",61),h(1," check_circle "),l())}function Gue(t,n){if(1&t){const e=_e();d(0,"div")(1,"div")(2,"b"),h(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",24),h(5,"Learn More"),l()(),D(6,"br"),y(7,Vue,6,2,"li",25)(8,jue,5,1,"div",11),D(9,"br"),y(10,zue,7,1,"div",12)(11,Hue,7,1,"div",12)(12,Uue,2,0,"mat-icon",57),d(13,"button",35),N("click",function(){return ae(e),se(w(2).createOrTestConnection(!0,!0))}),h(14,"TEST CONNECTION"),l(),y(15,$ue,2,0,"mat-icon",58),d(16,"button",59),N("click",function(){return ae(e),se(w(2).createOrTestConnection(!0,!1))}),h(17,"CREATE PROFILE"),l()()}if(2&t){const e=w(2);m(7),f("ngForOf",e.ipList),m(),f("ngIf",!e.testSuccess&&""!=e.errorSrcMsg),m(2),f("ngIf",e.testingSourceConnection),m(),f("ngIf",e.creatingSourceConnection),m(),f("ngIf",e.testSuccess),m(),f("disabled",!e.determineConnectionProfileInfoValidity()||e.testingSourceConnection),m(2),f("ngIf",e.createSrcConnSuccess),m(),f("disabled",!e.testSuccess||e.creatingSourceConnection)}}function Wue(t,n){if(1&t){const e=_e();ye(0),d(1,"div",62)(2,"mat-form-field",5)(3,"mat-label"),h(4,"Logical Shard ID"),l(),D(5,"input",63),l(),d(6,"mat-form-field",5)(7,"mat-label"),h(8,"Source Database Name"),l(),D(9,"input",64),l(),d(10,"mat-icon",65),N("click",function(){const r=ae(e).index;return se(w(2).deleteRow(r))}),h(11," delete_forever"),l()(),we()}if(2&t){const e=n.index;m(),f("formGroupName",e)}}function que(t,n){if(1&t){const e=_e();d(0,"mat-radio-button",48),N("change",function(){const r=ae(e).$implicit;return se(w(2).onItemChange(r.value,"target"))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.display,"")}}function Kue(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayName),m(),ke(" ",e.DisplayName," ")}}function Zue(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),h(3,"Select target connection profile"),l(),d(4,"mat-select",66),y(5,Kue,2,2,"mat-option",8),l()()()),2&t){const e=w(2);m(5),f("ngForOf",e.targetProfileList)}}function Yue(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Creating target connection profile"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function Que(t,n){1&t&&(d(0,"mat-icon",61),h(1," check_circle "),l())}function Xue(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2),l()()),2&t){const e=w(3);m(2),Ne(e.errorTgtMsg)}}function Jue(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-form-field",55)(2,"mat-label"),h(3,"Connection profile name"),l(),D(4,"input",67),l(),y(5,Yue,7,1,"div",12)(6,Que,2,0,"mat-icon",58),d(7,"button",59),N("click",function(){return ae(e),se(w(2).createOrTestConnection(!1,!1))}),h(8,"CREATE PROFILE"),l(),y(9,Xue,3,1,"div",11),l()}if(2&t){const e=w(2);m(5),f("ngIf",e.creatingTargetConnection),m(),f("ngIf",e.createTgtConnSuccess),m(),f("disabled",e.creatingTargetConnection),m(2),f("ngIf",""!=e.errorTgtMsg)}}function ehe(t,n){if(1&t){const e=_e();d(0,"div",20)(1,"span",36),h(2,"Configure Source Profile"),l(),d(3,"div",37)(4,"mat-radio-group",38),xn("ngModelChange",function(o){ae(e);const r=w();return Tn(r.selectedSourceProfileOption,o)||(r.selectedSourceProfileOption=o),se(o)}),y(5,Nue,2,2,"mat-radio-button",39),l()(),D(6,"br"),y(7,Lue,10,2,"div",12)(8,Bue,25,1,"div",12),D(9,"br"),y(10,Gue,18,8,"div",12),D(11,"hr"),d(12,"span",36),h(13,"Configure ShardId and Database Names"),l(),d(14,"mat-icon",40),h(15,"info"),l(),D(16,"br")(17,"br"),d(18,"span",41),ye(19,42),y(20,Wue,12,1,"ng-container",43),we(),l(),d(21,"div",44)(22,"button",45),N("click",function(){return ae(e),se(w().addRow())}),h(23,"ADD ROW"),l()(),D(24,"br")(25,"hr"),d(26,"span",36),h(27,"Configure Target Profile"),l(),d(28,"div",46)(29,"mat-radio-group",47),xn("ngModelChange",function(o){ae(e);const r=w();return Tn(r.selectedTargetProfileOption,o)||(r.selectedTargetProfileOption=o),se(o)}),y(30,que,2,2,"mat-radio-button",39),l()(),D(31,"br"),y(32,Zue,6,1,"div",12)(33,Jue,10,4,"div",12),D(34,"hr"),l()}if(2&t){const e=w();m(4),wn("ngModel",e.selectedSourceProfileOption),m(),f("ngForOf",e.profileOptions),m(2),f("ngIf","existing"===e.selectedSourceProfileOption),m(),f("ngIf","new"===e.selectedSourceProfileOption),m(2),f("ngIf","new"===e.selectedSourceProfileOption),m(10),f("ngForOf",e.shardMappingTable.controls),m(9),wn("ngModel",e.selectedTargetProfileOption),m(),f("ngForOf",e.profileOptions),m(2),f("ngIf","existing"===e.selectedTargetProfileOption),m(),f("ngIf","new"===e.selectedTargetProfileOption)}}function the(t,n){if(1&t){const e=_e();d(0,"button",68),N("click",function(){return ae(e),se(w().saveDetailsAndReset())}),h(1," ADD MORE SHARDS "),l()}2&t&&f("disabled",!w().determineFormValidity())}function ihe(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2),l(),d(3,"mat-icon",30),h(4," error "),l()()),2&t){const e=w();m(2),Ne(e.errorMsg),m(),f("matTooltip",e.errorMsg)}}let nhe=(()=>{class t{constructor(e,i,o,r,a,s){this.fetch=e,this.snack=i,this.dataService=o,this.formBuilder=r,this.dialogRef=a,this.data=s,this.selectedProfile="",this.profileType="",this.sourceProfileList=[],this.targetProfileList=[],this.definedSrcConnProfileList=[],this.definedTgtConnProfileList=[],this.shardIdToDBMappingTable=[],this.dataShardIdList=[],this.ipList=[],this.selectedSourceProfileOption="existing",this.selectedTargetProfileOption="existing",this.profileOptions=[{value:"existing",display:"Choose an existing connection profile"},{value:"new",display:"Create a new connection profile"}],this.profileName="",this.errorMsg="",this.errorSrcMsg="",this.errorTgtMsg="",this.errorVerMsg="",this.sourceDatabaseType="",this.inputValue="",this.testSuccess=!1,this.verifyJson=!1,this.createSrcConnSuccess=!1,this.createTgtConnSuccess=!1,this.physicalShards=0,this.logicalShards=0,this.testingSourceConnection=!1,this.creatingSourceConnection=!1,this.creatingTargetConnection=!1,this.verifyingJson=!1,this.prefix="smt-datashard",this.inputOptionsList=[{value:"text",displayName:"Text"},{value:"form",displayName:"Form"}],this.region=s.Region,this.sourceDatabaseType=s.SourceDatabaseType,localStorage.getItem(Qi.Type)==Qn.DirectConnect&&(this.schemaSourceConfig=JSON.parse(localStorage.getItem(Qi.Config)));let u=this.formBuilder.group({logicalShardId:["",ce.required],dbName:["",ce.required]});this.inputValue=this.prefix+"-"+this.randomString(4)+"-"+this.randomString(4),this.migrationProfileForm=this.formBuilder.group({inputType:["form",ce.required],textInput:[""],sourceProfileOption:["new",ce.required],targetProfileOption:["new",ce.required],newSourceProfile:["",[ce.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingSourceProfile:[],newTargetProfile:["",ce.pattern("^[a-z][a-z0-9-]{0,59}$")],existingTargetProfile:[],host:[this.schemaSourceConfig?.hostName],user:[this.schemaSourceConfig?.userName],port:[this.schemaSourceConfig?.port],password:[this.schemaSourceConfig?.password],dataShardId:[this.inputValue,ce.required],shardMappingTable:this.formBuilder.array([u])}),this.migrationProfile={configType:"dataflow",shardConfigurationDataflow:{schemaSource:{host:this.schemaSourceConfig?.hostName,user:this.schemaSourceConfig?.userName,password:this.schemaSourceConfig?.password,port:this.schemaSourceConfig?.port,dbName:this.schemaSourceConfig?.dbName},dataShards:[]}}}ngOnInit(){this.getConnectionProfiles(!0),this.getConnectionProfiles(!1),this.getDatastreamIPs(),this.initFromLocalStorage()}initFromLocalStorage(){}get shardMappingTable(){return this.migrationProfileForm.controls.shardMappingTable}addRow(){let e=this.formBuilder.group({logicalShardId:["",ce.required],dbName:["",ce.required]});this.shardMappingTable.push(e)}deleteRow(e){this.shardMappingTable.removeAt(e)}getDatastreamIPs(){this.fetch.getStaticIps().subscribe({next:e=>{this.ipList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}getConnectionProfiles(e){this.fetch.getConnectionProfiles(e).subscribe({next:i=>{e?this.sourceProfileList=i.sort((o,r)=>o.DisplayName.localeCompare(r.DisplayName)):this.targetProfileList=i.sort((o,r)=>o.DisplayName.localeCompare(r.DisplayName))},error:i=>{this.snack.openSnackBar(i.error,"Close")}})}onItemChange(e,i){this.profileType=i,"source"===this.profileType?(this.selectedSourceProfileOption=e,"new"==this.selectedSourceProfileOption?(this.migrationProfileForm.get("newSourceProfile")?.setValidators([ce.required]),this.migrationProfileForm.controls.existingSourceProfile.clearValidators(),this.migrationProfileForm.controls.newSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingSourceProfile.updateValueAndValidity(),this.migrationProfileForm.get("host")?.setValidators([ce.required]),this.migrationProfileForm.controls.host.updateValueAndValidity(),this.migrationProfileForm.get("user")?.setValidators([ce.required]),this.migrationProfileForm.controls.user.updateValueAndValidity(),this.migrationProfileForm.get("port")?.setValidators([ce.required]),this.migrationProfileForm.controls.port.updateValueAndValidity(),this.migrationProfileForm.get("password")?.setValidators([ce.required]),this.migrationProfileForm.controls.password.updateValueAndValidity()):(this.migrationProfileForm.controls.newSourceProfile.clearValidators(),this.migrationProfileForm.get("existingSourceProfile")?.addValidators([ce.required]),this.migrationProfileForm.controls.newSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.host.clearValidators(),this.migrationProfileForm.controls.host.updateValueAndValidity(),this.migrationProfileForm.controls.user.clearValidators(),this.migrationProfileForm.controls.user.updateValueAndValidity(),this.migrationProfileForm.controls.port.clearValidators(),this.migrationProfileForm.controls.port.updateValueAndValidity(),this.migrationProfileForm.controls.password.clearValidators(),this.migrationProfileForm.controls.password.updateValueAndValidity())):(this.selectedTargetProfileOption=e,"new"==this.selectedTargetProfileOption?(this.migrationProfileForm.get("newTargetProfile")?.setValidators([ce.required]),this.migrationProfileForm.controls.existingTargetProfile.clearValidators(),this.migrationProfileForm.controls.newTargetProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingTargetProfile.updateValueAndValidity()):(this.migrationProfileForm.controls.newTargetProfile.clearValidators(),this.migrationProfileForm.get("existingTargetProfile")?.addValidators([ce.required]),this.migrationProfileForm.controls.newTargetProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingTargetProfile.updateValueAndValidity()))}setValidators(e){if("text"===e){for(const o in this.migrationProfileForm.controls)this.migrationProfileForm.controls[o].clearValidators(),this.migrationProfileForm.controls[o].updateValueAndValidity();this.migrationProfileForm.get("shardMappingTable").controls.forEach(o=>{const r=o,a=r.get("logicalShardId"),s=r.get("dbName");a?.clearValidators(),a?.updateValueAndValidity(),s?.clearValidators(),s?.updateValueAndValidity()}),this.migrationProfileForm.controls.textInput.setValidators([ce.required]),this.migrationProfileForm.controls.textInput.updateValueAndValidity()}else this.onItemChange("new","source"),this.onItemChange("new","target"),this.migrationProfileForm.controls.textInput.clearValidators(),this.migrationProfileForm.controls.textInput.updateValueAndValidity()}saveDetailsAndReset(){this.handleConnConfigsFromForm();let e=this.formBuilder.group({logicalShardId:["",ce.required],dbName:["",ce.required]});this.inputValue=this.prefix+"-"+this.randomString(4)+"-"+this.randomString(4),this.migrationProfileForm=this.formBuilder.group({inputType:["form",ce.required],textInput:[],sourceProfileOption:[this.selectedSourceProfileOption],targetProfileOption:[this.selectedTargetProfileOption],newSourceProfile:["",[ce.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingSourceProfile:[],newTargetProfile:["",ce.pattern("^[a-z][a-z0-9-]{0,59}$")],existingTargetProfile:[],host:[],user:[],port:[],password:[],dataShardId:[this.inputValue],shardMappingTable:this.formBuilder.array([e])}),this.testSuccess=!1,this.verifyJson=!1,this.createSrcConnSuccess=!1,this.createTgtConnSuccess=!1,this.snack.openSnackBar("Shard configured successfully, please configure the next","Close",5)}randomString(e){for(var o="",r=0;r{localStorage.setItem(me.IsSourceConnectionProfileSet,"true"),localStorage.setItem(me.IsTargetConnectionProfileSet,"true"),localStorage.setItem(me.NumberOfShards,this.determineTotalLogicalShardsConfigured().toString()),localStorage.setItem(me.NumberOfInstances,this.migrationProfile.shardConfigurationDataflow.dataShards.length.toString()),this.dialogRef.close()},error:o=>{this.errorMsg=o.error}})}determineTotalLogicalShardsConfigured(){let e=0;return this.migrationProfile.shardConfigurationDataflow.dataShards.forEach(i=>{e+=i.databases.length}),e}handleConnConfigsFromForm(){let e=this.migrationProfileForm.value;this.dataShardIdList.push(e.dataShardId),this.definedSrcConnProfileList.push("new"===this.selectedSourceProfileOption?{name:e.newSourceProfile,location:this.region}:{name:e.existingSourceProfile,location:this.region}),this.definedTgtConnProfileList.push("new"===this.selectedTargetProfileOption?{name:e.newTargetProfile,location:this.region}:{name:e.existingTargetProfile,location:this.region});let i=[];for(let o of this.shardMappingTable.controls)if(o instanceof ei){const r=o.value;i.push({dbName:r.dbName,databaseId:r.logicalShardId,refDataShardId:e.dataShardId})}this.shardIdToDBMappingTable.push(i),this.physicalShards++,this.logicalShards=this.logicalShards+i.length}determineFormValidity(){return!(!this.migrationProfileForm.valid||"new"===this.selectedSourceProfileOption&&!this.createSrcConnSuccess||"new"===this.selectedTargetProfileOption&&!this.createTgtConnSuccess||"text"===this.migrationProfileForm.value.inputType!==this.verifyJson)}determineFinishValidity(){return this.definedSrcConnProfileList.length>0||this.determineFormValidity()}determineConnectionProfileInfoValidity(){let e=this.migrationProfileForm.value;return null!=e.host&&null!=e.port&&null!=e.user&&null!=e.password&&null!=e.newSourceProfile}verifyTextJson(){this.verifyingJson=!0;let i,e=this.migrationProfileForm.value;try{i=JSON.parse(e.textInput)}catch(o){return o instanceof SyntaxError?(this.errorVerMsg=o.message,this.verifyJson=!1,void(this.verifyingJson=!1)):(this.errorVerMsg=`Unexpected error parsing json ${o}`,this.verifyJson=!1,void(this.verifyingJson=!1))}this.fetch.verifyJsonConfiguration(i).subscribe({next:()=>{this.verifyJson=!0,this.verifyingJson=!1},error:o=>{this.verifyJson=!1,this.verifyingJson=!1,this.errorVerMsg=o.message}})}createOrTestConnection(e,i){i?this.testingSourceConnection=!0:e?this.creatingSourceConnection=!0:this.creatingTargetConnection=!0;let r,o=this.migrationProfileForm.value;r=e?{Id:o.newSourceProfile,IsSource:!0,ValidateOnly:i,Host:o.host,Port:o.port,User:o.user,Password:o.password}:{Id:o.newTargetProfile,IsSource:!1,ValidateOnly:i},this.fetch.createConnectionProfile(r).subscribe({next:()=>{i?(this.testingSourceConnection=!1,this.testSuccess=!0):e?(this.createSrcConnSuccess=!0,this.errorSrcMsg="",this.creatingSourceConnection=!1):(this.createTgtConnSuccess=!0,this.errorTgtMsg="",this.creatingTargetConnection=!1)},error:a=>{i?(this.testingSourceConnection=!1,this.testSuccess=!1,this.errorSrcMsg=a.error):e?(this.createSrcConnSuccess=!1,this.errorSrcMsg=a.error,this.creatingSourceConnection=!1):(this.createTgtConnSuccess=!1,this.errorTgtMsg=a.error,this.creatingTargetConnection=!1)}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(zn),_(ir),_($i),_(ba),_(An),_(ho))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sharded-dataflow-migration-details-form"]],viewQuery:function(i,o){if(1&i&&vt(qw,5),2&i){let r;Oe(r=Ae())&&(o.paginator=r.first)}},decls:31,vars:13,consts:[["mat-dialog-content","",1,"connect-load-database-container"],[1,"conn-profile-form",3,"formGroup"],[1,"mat-h2","header-title"],[1,"top"],[1,"top-1"],["appearance","outline"],["formControlName","inputType",3,"selectionChange"],["inputType",""],[3,"value",4,"ngFor","ngForOf"],["class","top-2",4,"ngIf"],["class","textInput",4,"ngIf"],["class","failure",4,"ngIf"],[4,"ngIf"],["class","success","matTooltip","JSON Verification successful","matTooltipPosition","above",4,"ngIf"],[1,"last-btns"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","accent",3,"disabled","click",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],[3,"value"],[1,"top-2"],[1,"textInput"],["appearance","outline",1,"json-input"],["name","textInput","formControlName","textInput","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","20"],["autosize","cdkTextareaAutosize"],["href","https://cloud.google.com/datastream/docs/network-connectivity-options#ipallowlists","target","_blank"],["class","connection-form-container",4,"ngFor","ngForOf"],[1,"connection-form-container"],[1,"left-text"],["matTooltip","Copy",1,"icon","copy",3,"cdkCopyToClipboard"],[1,"failure"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],[1,"spinner"],[3,"diameter"],[1,"spinner-small-text"],["matTooltip","JSON Verification successful","matTooltipPosition","above",1,"success"],["mat-raised-button","","type","button","color","primary",3,"disabled","click"],[1,"mat-h4","header-title"],[1,"source-radio-button-container"],["formControlName","sourceProfileOption",1,"radio-button-container",3,"ngModel","ngModelChange"],["class","radio-button",3,"value","change",4,"ngFor","ngForOf"],["matTooltip","Logical Shard ID value will be used to populate the migration_shard_id column added as part of sharded database migration",1,"configure"],[1,"border"],["formArrayName","shardMappingTable"],[4,"ngFor","ngForOf"],[1,"table-buttons"],["mat-raised-button","","color","primary","type","button",3,"click"],[1,"target-radio-button-container"],["formControlName","targetProfileOption",1,"radio-button-container",3,"ngModel","ngModelChange"],[1,"radio-button",3,"value","change"],["formControlName","existingSourceProfile","required","true","ng-value","selectedProfile",1,"input-field"],["matInput","","type","text","formControlName","dataShardId","required","true","readonly","",3,"value"],["matInput","","placeholder","Host","type","text","formControlName","host","required","true"],["matInput","","placeholder","User","type","text","formControlName","user","required","true"],["matInput","","placeholder","Port","type","text","formControlName","port","required","true"],["matInput","","placeholder","Password","type","password","formControlName","password","required","true"],["appearance","outline","hintLabel","Name can include lower case letters, numbers and hyphens. Must start with a letter."],["matInput","","placeholder","Connection profile name","type","text","formControlName","newSourceProfile","required","true"],["class","success","matTooltip","Test connection successful","matTooltipPosition","above",4,"ngIf"],["class","success","matTooltip","Profile creation successful","matTooltipPosition","above",4,"ngIf"],["mat-raised-button","","type","button","color","warn",3,"disabled","click"],["matTooltip","Test connection successful","matTooltipPosition","above",1,"success"],["matTooltip","Profile creation successful","matTooltipPosition","above",1,"success"],[1,"shard-mapping-form-row",3,"formGroupName"],["matInput","","formControlName","logicalShardId","placeholder","Enter Logical ShardID"],["matInput","","formControlName","dbName","placeholder","Enter Database Name"],[1,"delete-btn",3,"click"],["formControlName","existingTargetProfile","required","true","ng-value","selectedProfile",1,"input-field"],["matInput","","placeholder","Connection profile name","type","text","formControlName","newTargetProfile","required","true"],["mat-raised-button","","type","submit","color","accent",3,"disabled","click"]],template:function(i,o){if(1&i){const r=_e();d(0,"div",0)(1,"form",1)(2,"span",2),h(3,"Datastream Details"),l(),D(4,"br"),d(5,"b"),h(6,"Note: Please configure the database used for schema conversion, if you want Spanner migration tool to migrate data from it as well."),l(),d(7,"div",3),h(8,"` "),d(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),h(12,"Input Type"),l(),d(13,"mat-select",6,7),N("selectionChange",function(){ae(r);const s=Rt(14);return se(o.setValidators(s.value))}),y(15,kue,2,2,"mat-option",8),l()()(),y(16,Tue,9,2,"div",9),l(),y(17,Mue,6,0,"div",10)(18,Eue,8,1,"div",10)(19,Oue,5,1,"div",11)(20,Aue,7,1,"div",12)(21,Pue,2,0,"mat-icon",13)(22,Rue,3,1,"div",10)(23,ehe,35,10,"div",10),d(24,"div",14)(25,"button",15),h(26,"CANCEL"),l(),y(27,the,2,1,"button",16),d(28,"button",17),N("click",function(){return o.finalizeConnDetails()}),h(29," FINISH "),l(),y(30,ihe,5,2,"div",11),l()()()}2&i&&(m(),f("formGroup",o.migrationProfileForm),m(14),f("ngForOf",o.inputOptionsList),m(),f("ngIf","form"===o.migrationProfileForm.value.inputType),m(),f("ngIf","text"===o.migrationProfileForm.value.inputType),m(),f("ngIf","text"===o.migrationProfileForm.value.inputType),m(),f("ngIf",!o.verifyJson&&""!=o.errorVerMsg),m(),f("ngIf",o.verifyingJson),m(),f("ngIf",o.verifyJson),m(),f("ngIf","text"===o.migrationProfileForm.value.inputType),m(),f("ngIf","form"===o.migrationProfileForm.value.inputType),m(4),f("ngIf","form"===o.migrationProfileForm.value.inputType),m(),f("disabled",!o.determineFinishValidity()),m(2),f("ngIf",""!=o.errorMsg))},dependencies:[dn,Tt,Yt,Ii,$u,gO,O0,E0,Ri,Pi,rn,BA,uo,En,On,Oi,xi,Ui,Bo,Ai,Yi,Xu,Ju,mo,Jo,Dn,sg,cg,Kw,ad],styles:[".icon[_ngcontent-%COMP%]{font-size:15px}.connection-form-container[_ngcontent-%COMP%]{display:block}.left-text[_ngcontent-%COMP%]{width:40%;display:inline-block}.shard-mapping-form-row[_ngcontent-%COMP%]{width:80%;margin-left:auto;margin-right:auto}.table-header[_ngcontent-%COMP%]{width:80%;margin:auto auto 10px;text-align:right;display:flex;align-items:center;justify-content:space-between}form[_ngcontent-%COMP%], .table-body[_ngcontent-%COMP%]{flex:auto;overflow-y:auto}.table-buttons[_ngcontent-%COMP%]{margin-left:70%}.radio-button-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:15px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:5px}.json-input[_ngcontent-%COMP%]{width:100%}.top[_ngcontent-%COMP%]{border:3px solid #fff;padding:20px}.top-1[_ngcontent-%COMP%]{width:60%;float:left}.top-2[_ngcontent-%COMP%]{width:40%;float:right;flex:auto}.last-btns[_ngcontent-%COMP%]{padding:20px;width:100%;float:left}"]})}return t})();function ohe(t,n){1&t&&(d(0,"h2"),h(1,"Source and Target Database definitions"),l())}function rhe(t,n){1&t&&(d(0,"h2"),h(1,"Source and Target Database definitions (per shard)"),l())}function ahe(t,n){1&t&&(d(0,"th",38),h(1,"Title"),l())}function she(t,n){if(1&t&&(d(0,"td",39)(1,"b"),h(2),l()()),2&t){const e=n.$implicit;m(2),Ne(e.title)}}function che(t,n){1&t&&(d(0,"th",38),h(1,"Source"),l())}function lhe(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.source)}}function dhe(t,n){1&t&&(d(0,"th",38),h(1,"Destination"),l())}function uhe(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.target)}}function hhe(t,n){1&t&&D(0,"tr",40)}function mhe(t,n){1&t&&D(0,"tr",41)}function phe(t,n){if(1&t&&(d(0,"mat-option",42),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),ke(" ",e," ")}}function fhe(t,n){if(1&t&&(d(0,"mat-option",42),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.name," ")}}function ghe(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-form-field",20)(2,"mat-label"),h(3,"Migration Type:"),l(),d(4,"mat-select",21),xn("ngModelChange",function(o){ae(e);const r=w();return Tn(r.selectedMigrationType,o)||(r.selectedMigrationType=o),se(o)}),N("selectionChange",function(){return ae(e),se(w().refreshPrerequisites())}),y(5,fhe,2,2,"mat-option",22),l()(),d(6,"mat-icon",23),h(7,"info"),l(),D(8,"br"),l()}if(2&t){const e=w();m(4),wn("ngModel",e.selectedMigrationType),m(),f("ngForOf",e.migrationTypes),m(),f("matTooltip",e.migrationTypesHelpText.get(e.selectedMigrationType))}}function _he(t,n){if(1&t&&(d(0,"mat-option",42),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),ke(" ",e.displayName," ")}}function bhe(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-form-field",20)(2,"mat-label"),h(3,"Skip Foreign Key Creation:"),l(),d(4,"mat-select",43),xn("ngModelChange",function(o){ae(e);const r=w();return Tn(r.isForeignKeySkipped,o)||(r.isForeignKeySkipped=o),se(o)}),y(5,_he,2,2,"mat-option",22),l()()()}if(2&t){const e=w();m(4),wn("ngModel",e.isForeignKeySkipped),m(),f("ngForOf",e.skipForeignKeyResponseList)}}function vhe(t,n){1&t&&(d(0,"div",44)(1,"p",26)(2,"span",27),h(3,"1"),l(),d(4,"span"),h(5,"Please ensure that the application default credentials deployed on this machine have permissions to write to Spanner."),l()()())}function yhe(t,n){1&t&&(d(0,"div",44)(1,"p",26)(2,"span",27),h(3,"1"),l(),d(4,"span"),h(5,"Please ensure that the source is "),d(6,"a",45),h(7,"configured"),l(),h(8," for Datastream change data capture."),l()(),d(9,"p",26)(10,"span",27),h(11,"2"),l(),d(12,"span"),h(13,"Please ensure that Dataflow "),d(14,"a",46),h(15,"permissions"),l(),h(16," and "),d(17,"a",47),h(18,"networking"),l(),h(19," are correctly setup."),l()()())}function whe(t,n){1&t&&(d(0,"mat-icon",49),h(1," check_circle "),l())}function xhe(t,n){if(1&t){const e=_e();d(0,"div")(1,"h3"),h(2,"Source database details:"),l(),d(3,"p",26)(4,"span",27),h(5,"1"),l(),d(6,"span"),h(7,"Setup Source database details"),l(),d(8,"span")(9,"button",29),N("click",function(){return ae(e),se(w().openSourceDetailsForm())}),h(10," Configure "),d(11,"mat-icon",30),h(12,"edit"),l(),y(13,whe,2,0,"mat-icon",48),l()()()()}if(2&t){const e=w();m(9),f("disabled",e.isMigrationInProgress),m(4),f("ngIf",e.isSourceDetailsSet)}}function Che(t,n){1&t&&(d(0,"mat-icon",49),h(1," check_circle "),l())}function Dhe(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-card-title"),h(2,"Source databases details:"),l(),d(3,"p",26)(4,"span",27),h(5,"1"),l(),d(6,"span"),h(7,"Setup Source Connection details "),d(8,"mat-icon",50),h(9," info"),l()(),d(10,"span")(11,"button",29),N("click",function(){return ae(e),se(w().openShardedBulkSourceDetailsForm())}),h(12," Configure "),d(13,"mat-icon",30),h(14,"edit"),l(),y(15,Che,2,0,"mat-icon",48),l()()()()}if(2&t){const e=w();m(11),f("disabled",e.isMigrationInProgress),m(4),f("ngIf",e.isSourceDetailsSet)}}function She(t,n){1&t&&(d(0,"mat-icon",51),h(1," check_circle "),l())}function khe(t,n){1&t&&(d(0,"mat-icon",54),h(1," check_circle "),l())}function The(t,n){if(1&t){const e=_e();d(0,"p",26)(1,"span",27),h(2,"2"),l(),d(3,"span"),h(4,"Configure Datastream "),d(5,"mat-icon",52),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openMigrationProfileForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,khe,2,0,"mat-icon",53),l()()()}if(2&t){const e=w();m(8),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isSourceConnectionProfileSet)}}function Mhe(t,n){1&t&&(d(0,"mat-icon",54),h(1," check_circle "),l())}function Ihe(t,n){if(1&t){const e=_e();d(0,"p",26)(1,"span",27),h(2,"2"),l(),d(3,"span"),h(4,"Setup source connection profile "),d(5,"mat-icon",55),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openConnectionProfileForm(!0))}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,Mhe,2,0,"mat-icon",53),l()()()}if(2&t){const e=w();m(8),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isSourceConnectionProfileSet)}}function Ehe(t,n){1&t&&(d(0,"mat-icon",58),h(1," check_circle "),l())}function Ohe(t,n){if(1&t){const e=_e();d(0,"p",26)(1,"span",27),h(2,"3"),l(),d(3,"span"),h(4,"Setup target connection profile "),d(5,"mat-icon",56),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openConnectionProfileForm(!1))}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,Ehe,2,0,"mat-icon",57),l()()()}if(2&t){const e=w();m(8),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isTargetConnectionProfileSet)}}function Ahe(t,n){1&t&&(d(0,"span",27),h(1,"3"),l())}function Phe(t,n){1&t&&(d(0,"span",27),h(1,"4"),l())}function Rhe(t,n){1&t&&(d(0,"mat-icon",62),h(1," check_circle "),l())}function Nhe(t,n){if(1&t){const e=_e();d(0,"p",26),y(1,Ahe,2,0,"span",59)(2,Phe,2,0,"span",59),d(3,"span"),h(4,"Tune Datastream (Optional) "),d(5,"mat-icon",60),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openTuneDatastreamForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,Rhe,2,0,"mat-icon",61),l()()()}if(2&t){const e=w();m(),f("ngIf",e.isSharded),m(),f("ngIf",!e.isSharded),m(6),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isDatastreamConfigurationSet)}}function Fhe(t,n){1&t&&(d(0,"span",27),h(1,"4"),l())}function Lhe(t,n){1&t&&(d(0,"span",27),h(1,"5"),l())}function Bhe(t,n){1&t&&(d(0,"mat-icon",65),h(1," check_circle "),l())}function Vhe(t,n){if(1&t){const e=_e();d(0,"p",26),y(1,Fhe,2,0,"span",59)(2,Lhe,2,0,"span",59),d(3,"span"),h(4,"Tune Cloud Storage (Optional) "),d(5,"mat-icon",63),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openTuneGcsForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,Bhe,2,0,"mat-icon",64),l()()()}if(2&t){const e=w();m(),f("ngIf",e.isSharded),m(),f("ngIf",!e.isSharded),m(6),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isGcsConfigurationSet)}}function jhe(t,n){1&t&&(d(0,"span",27),h(1,"5"),l())}function zhe(t,n){1&t&&(d(0,"span",27),h(1,"6"),l())}function Hhe(t,n){1&t&&(d(0,"mat-icon",68),h(1," check_circle "),l())}function Uhe(t,n){if(1&t){const e=_e();d(0,"p",26),y(1,jhe,2,0,"span",59)(2,zhe,2,0,"span",59),d(3,"span"),h(4,"Tune Dataflow (Optional) "),d(5,"mat-icon",66),h(6," info"),l()(),d(7,"span")(8,"button",29),N("click",function(){return ae(e),se(w().openDataflowForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,Hhe,2,0,"mat-icon",67),l()()()}if(2&t){const e=w();m(),f("ngIf",e.isSharded),m(),f("ngIf",!e.isSharded),m(6),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isDataflowConfigurationSet)}}function $he(t,n){1&t&&(d(0,"span",27),h(1,"5"),l())}function Ghe(t,n){if(1&t){const e=_e();d(0,"p",26),y(1,$he,2,0,"span",59),d(2,"span"),h(3,"Download configuration as JSON "),d(4,"mat-icon",69),h(5,"info "),l()(),d(6,"span")(7,"button",29),N("click",function(){return ae(e),se(w().downloadConfiguration())}),h(8," Download "),d(9,"mat-icon",70),h(10," download"),l()()()()}if(2&t){const e=w();m(),f("ngIf",e.isSharded),m(6),f("disabled",!e.isTargetDetailSet||!e.isTargetConnectionProfileSet)}}function Whe(t,n){if(1&t&&(d(0,"div",24)(1,"mat-card")(2,"mat-card-title"),h(3,"Configured Source Details"),l(),d(4,"p",26)(5,"span",27),h(6,"1"),l(),d(7,"span")(8,"b"),h(9,"Source Database: "),l(),h(10),l()(),d(11,"p",26)(12,"span",27),h(13,"2"),l(),d(14,"span")(15,"b"),h(16,"Number of physical instances configured: "),l(),h(17),l()(),d(18,"p",26)(19,"span",27),h(20,"3"),l(),d(21,"span")(22,"b"),h(23,"Number of logical shards configured: "),l(),h(24),l()()()()),2&t){const e=w();m(10),Ne(e.sourceDatabaseType),m(7),ke(" ",e.numberOfInstances,""),m(7),ke(" ",e.numberOfShards,"")}}function qhe(t,n){if(1&t&&(d(0,"div",24)(1,"mat-card")(2,"mat-card-title"),h(3,"Configured Target Details"),l(),d(4,"p",26)(5,"span",27),h(6,"1"),l(),d(7,"span")(8,"b"),h(9,"Spanner Database: "),l(),h(10),l()(),d(11,"p",26)(12,"span",27),h(13,"2"),l(),d(14,"span")(15,"b"),h(16,"Spanner Dialect: "),l(),h(17),l()(),d(18,"p",26)(19,"span",27),h(20,"3"),l(),d(21,"span")(22,"b"),h(23,"Region: "),l(),h(24),l()(),d(25,"p",26)(26,"span",27),h(27,"4"),l(),d(28,"span")(29,"b"),h(30,"Spanner Instance: "),l(),h(31),l()()()()),2&t){const e=w();m(10),Ne(e.targetDetails.TargetDB),m(7),Ne(e.dialect),m(7),Ne(e.region),m(7),wv("",e.instance," (Nodes: ",e.nodeCount,", Processing Units: ",e.processingUnits,")")}}function Khe(t,n){if(1&t&&(d(0,"div",71),D(1,"br")(2,"mat-progress-bar",72),d(3,"span"),h(4),l()()),2&t){const e=w();m(2),f("value",e.schemaMigrationProgress),m(2),ke(" ",e.schemaProgressMessage,"")}}function Zhe(t,n){if(1&t&&(d(0,"div",71),D(1,"br")(2,"mat-progress-bar",72),d(3,"span"),h(4),l()()),2&t){const e=w();m(2),f("value",e.dataMigrationProgress),m(2),ke(" ",e.dataProgressMessage,"")}}function Yhe(t,n){if(1&t&&(d(0,"div",71),D(1,"br")(2,"mat-progress-bar",72),d(3,"span"),h(4),l()()),2&t){const e=w();m(2),f("value",e.foreignKeyUpdateProgress),m(2),ke(" ",e.foreignKeyProgressMessage,"")}}function Qhe(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",73),D(3,"mat-spinner",74),l(),d(4,"span",75),h(5,"Generating Resources"),l(),D(6,"br"),h(7," Note: Spanner migration tool is creating datastream and dataflow resources. Please look at the terminal logs to check the progress of resource creation. All created resources will be displayed here once they are generated. "),l()),2&t&&(m(3),f("diameter",20))}function Xhe(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"3"),l(),d(4,"span")(5,"b"),h(6,"Aggregated Monitoring Dashboard: "),l(),d(7,"a",76),h(8),l()()()()),2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.AggMonitoringDashboardUrl,Uo),m(),Ne(e.resourcesGenerated.AggMonitoringDashboardName)}}function Jhe(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"3"),l(),d(4,"span")(5,"b"),h(6,"Monitoring Dashboard: "),l(),d(7,"a",76),h(8),l()()()()),2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.MonitoringDashboardUrl,Uo),m(),Ne(e.resourcesGenerated.MonitoringDashboardName)}}function eme(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"4"),l(),d(4,"span")(5,"b"),h(6,"Datastream job: "),l(),d(7,"a",76),h(8),l()()()()),2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.DataStreamJobUrl,Uo),m(),Ne(e.resourcesGenerated.DataStreamJobName)}}function tme(t,n){if(1&t){const e=_e();d(0,"span")(1,"p",26)(2,"span",27),h(3,"5"),l(),d(4,"span")(5,"b"),h(6,"Dataflow job: "),l(),d(7,"a",76),h(8),l()(),d(9,"span")(10,"button",77),N("click",function(){ae(e);const o=w(2);return se(o.openGcloudPopup(o.resourcesGenerated.DataflowGcloudCmd))}),d(11,"mat-icon",78),h(12," code"),l()()()()()}if(2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.DataflowJobUrl,Uo),m(),Ne(e.resourcesGenerated.DataflowJobName)}}function ime(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"6"),l(),d(4,"span")(5,"b"),h(6,"Pubsub topic: "),l(),d(7,"a",76),h(8),l()()()()),2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.PubsubTopicUrl,Uo),m(),Ne(e.resourcesGenerated.PubsubTopicName)}}function nme(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"7"),l(),d(4,"span")(5,"b"),h(6,"Pubsub subscription: "),l(),d(7,"a",76),h(8),l()()()()),2&t){const e=w(2);m(7),f("href",e.resourcesGenerated.PubsubSubscriptionUrl,Uo),m(),Ne(e.resourcesGenerated.PubsubSubscriptionName)}}function ome(t,n){1&t&&(d(0,"th",38),h(1," Shard ID "),l())}function rme(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.DataShardId," ")}}function ame(t,n){1&t&&(d(0,"th",38),h(1," Resource Type "),l())}function sme(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit,i=w(3);m(),ke(" ",i.resourceTypeToDisplayTest.get(e.ResourceType)," ")}}function cme(t,n){1&t&&(d(0,"th",38),h(1," Resource Name "),l())}function lme(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.ResourceName," ")}}function dme(t,n){1&t&&(d(0,"th",38),h(1," Resource Link "),l())}function ume(t,n){if(1&t){const e=_e();d(0,"span")(1,"button",77),N("click",function(){ae(e);const o=w().$implicit;return se(w(3).openGcloudPopup(o.GcloudCmd))}),d(2,"mat-icon",78),h(3," code"),l()()()}}function hme(t,n){if(1&t&&(d(0,"td",39)(1,"a",76),h(2),l(),y(3,ume,4,0,"span",10),l()),2&t){const e=n.$implicit;m(),f("href",e.ResourceUrl,Uo),m(),Ne(e.ResourceName),m(),f("ngIf","dataflow"==e.ResourceType)}}function mme(t,n){1&t&&D(0,"tr",40)}function pme(t,n){1&t&&D(0,"tr",41)}function fme(t,n){if(1&t&&(d(0,"span")(1,"h2"),h(2,"Shard Level Resources: "),l(),d(3,"div",79)(4,"table",80),ye(5,81),y(6,ome,2,0,"th",14)(7,rme,2,1,"td",15),we(),ye(8,82),y(9,ame,2,0,"th",14)(10,sme,2,1,"td",15),we(),ye(11,83),y(12,cme,2,0,"th",14)(13,lme,2,1,"td",15),we(),ye(14,84),y(15,dme,2,0,"th",14)(16,hme,4,3,"td",15),we(),y(17,mme,1,0,"tr",18)(18,pme,1,0,"tr",19),l()()()),2&t){const e=w(2);m(4),f("dataSource",e.displayedResourcesDataSource),m(13),f("matHeaderRowDef",e.generatedResourcesColumns),m(),f("matRowDefColumns",e.generatedResourcesColumns)}}function gme(t,n){if(1&t&&(d(0,"div")(1,"h2"),h(2),l(),h(3,' Note: This resources displayed below can be looked upto at a later point in time in the "spannermigrationtool_metadata" database in your spanner instance using the migration jobId listed above. '),d(4,"div",24)(5,"mat-card")(6,"mat-card-title"),h(7,"Job Level Resources:"),l(),d(8,"p",26)(9,"span",27),h(10,"1"),l(),d(11,"span")(12,"b"),h(13,"Spanner Database: "),l(),d(14,"a",76),h(15),l()()(),d(16,"p",26)(17,"span",27),h(18,"2"),l(),d(19,"span")(20,"b"),h(21,"GCS bucket: "),l(),d(22,"a",76),h(23),l()()(),y(24,Xhe,9,2,"span",10)(25,Jhe,9,2,"span",10)(26,eme,9,2,"span",10)(27,tme,13,2,"span",10)(28,ime,9,2,"span",10)(29,nme,9,2,"span",10),l()(),y(30,fme,19,3,"span",10),l()),2&t){const e=w();m(2),ke("Migration resources generated for migration jobId: ",e.resourcesGenerated.MigrationJobId,""),m(12),f("href",e.resourcesGenerated.DatabaseUrl,Uo),m(),Ne(e.resourcesGenerated.DatabaseName),m(7),f("href",e.resourcesGenerated.BucketUrl,Uo),m(),Ne(e.resourcesGenerated.BucketName),m(),f("ngIf",""!==e.resourcesGenerated.AggMonitoringDashboardName&&"lowdt"===e.selectedMigrationType&&e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.MonitoringDashboardName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.DataStreamJobName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.DataflowJobName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.PubsubTopicName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.PubsubSubscriptionName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf","lowdt"===e.selectedMigrationType&&e.isSharded)}}function _me(t,n){1&t&&(d(0,"div")(1,"b"),h(2,"Note: "),l(),h(3,"Spanner migration tool has orchestrated the migration successfully. For minimal downtime migrations, it is safe to close Spanner migration tool now without affecting the progress of the migration. The resources listed on this page can be viewed in the \"SMT_JOB\" table in the 'spannermigrationtool_metadata' database created in your Spanner instance after you close the Spanner migration tool. "),l())}function bme(t,n){if(1&t){const e=_e();d(0,"span")(1,"button",85),N("click",function(){return ae(e),se(w().migrate())}),h(2,"Migrate"),l()()}if(2&t){const e=w();m(),f("disabled",!(e.isTargetDetailSet&&"lowdt"===e.selectedMigrationType&&e.isSourceConnectionProfileSet&&e.isTargetConnectionProfileSet||e.isTargetDetailSet&&"bulk"===e.selectedMigrationType)||e.isMigrationInProgress)}}function vme(t,n){if(1&t){const e=_e();d(0,"span")(1,"button",86),N("click",function(){return ae(e),se(w().endMigration())}),h(2,"End Migration"),l()()}}const yme=()=>[5,10,20],wme=[{path:"",component:Goe},{path:"source",component:vre,children:[{path:"",redirectTo:"/direct-connection",pathMatch:"full"},{path:"direct-connection",component:toe},{path:"load-dump",component:ore},{path:"load-session",component:lre}]},{path:"workspace",component:$de},{path:"instruction",component:MN},{path:"prepare-migration",component:(()=>{class t{constructor(e,i,o,r,a){this.dialog=e,this.fetch=i,this.snack=o,this.data=r,this.sidenav=a,this.displayedColumns=["Title","Source","Destination"],this.dataSource=[],this.migrationModes=[],this.migrationTypes=[],this.isSourceConnectionProfileSet=!1,this.isTargetConnectionProfileSet=!1,this.isDatastreamConfigurationSet=!1,this.isGcsConfigurationSet=!1,this.isDataflowConfigurationSet=!1,this.isSourceDetailsSet=!1,this.isTargetDetailSet=!1,this.isForeignKeySkipped=!1,this.isMigrationDetailSet=!1,this.isStreamingSupported=!1,this.hasDataMigrationStarted=!1,this.hasSchemaMigrationStarted=!1,this.hasForeignKeyUpdateStarted=!1,this.selectedMigrationMode=qr.schemaAndData,this.connectionType=Qn.DirectConnect,this.selectedMigrationType=jn.lowDowntimeMigration,this.isMigrationInProgress=!1,this.isLowDtMigrationRunning=!1,this.isResourceGenerated=!1,this.generatingResources=!1,this.errorMessage="",this.schemaProgressMessage="Schema migration in progress...",this.dataProgressMessage="Data migration in progress...",this.foreignKeyProgressMessage="Foreign key update in progress...",this.dataMigrationProgress=0,this.schemaMigrationProgress=0,this.foreignKeyUpdateProgress=0,this.sourceDatabaseName="",this.sourceDatabaseType="",this.resourcesGenerated={MigrationJobId:"",DatabaseName:"",DatabaseUrl:"",BucketName:"",BucketUrl:"",DataStreamJobName:"",DataStreamJobUrl:"",DataflowJobName:"",DataflowJobUrl:"",PubsubTopicName:"",PubsubTopicUrl:"",PubsubSubscriptionName:"",PubsubSubscriptionUrl:"",MonitoringDashboardName:"",MonitoringDashboardUrl:"",AggMonitoringDashboardName:"",AggMonitoringDashboardUrl:"",DataflowGcloudCmd:"",ShardToShardResourcesMap:new Map},this.generatedResourcesColumns=["shardId","resourceType","resourceName","resourceUrl"],this.displayedResources=[],this.displayedResourcesDataSource=new dP(this.displayedResources),this.region="",this.instance="",this.dialect="",this.isSharded=!1,this.numberOfShards="0",this.numberOfInstances="0",this.nodeCount=0,this.processingUnits=0,this.targetDetails={TargetDB:localStorage.getItem(si.TargetDB),SourceConnProfile:localStorage.getItem(si.SourceConnProfile),TargetConnProfile:localStorage.getItem(si.TargetConnProfile),ReplicationSlot:localStorage.getItem(si.ReplicationSlot),Publication:localStorage.getItem(si.Publication)},this.datastreamConfig={maxConcurrentBackfillTasks:localStorage.getItem("maxConcurrentBackfillTasks"),maxConcurrentCdcTasks:localStorage.getItem("maxConcurrentCdcTasks")},this.gcsConfig={ttlInDays:localStorage.getItem("ttlInDays"),ttlInDaysSet:"true"===localStorage.getItem("ttlInDaysSet")},this.dataflowConfig={network:localStorage.getItem("network"),subnetwork:localStorage.getItem("subnetwork"),hostProjectId:localStorage.getItem("vpcHostProjectId"),maxWorkers:localStorage.getItem("maxWorkers"),numWorkers:localStorage.getItem("numWorkers"),serviceAccountEmail:localStorage.getItem("serviceAccountEmail"),machineType:localStorage.getItem("machineType"),additionalUserLabels:localStorage.getItem("additionalUserLabels"),kmsKeyName:localStorage.getItem("kmsKeyName"),projectId:localStorage.getItem("dataflowProjectId"),location:localStorage.getItem("dataflowLocation"),gcsTemplatePath:localStorage.getItem("gcsTemplatePath")},this.spannerConfig={GCPProjectID:"",SpannerInstanceID:"",IsMetadataDbCreated:!1,IsConfigValid:!1},this.skipForeignKeyResponseList=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.migrationModesHelpText=new Map([["Schema","Migrates only the schema of the source database to the configured Spanner instance."],["Data","Migrates the data from the source database to the configured Spanner database. The configured database should already contain the schema."],["Schema And Data","Migrates both the schema and the data from the source database to Spanner."]]),this.migrationTypesHelpText=new Map([["bulk","Use the POC migration option when you want to migrate a sample of your data (<100GB) to do a Proof of Concept. It uses this machine's resources to copy data from the source database to Spanner"],["lowdt","Uses change data capture via Datastream to setup a continuous data replication pipeline from source to Spanner, using Dataflow jobs to perform the actual data migration."]]),this.resourceTypeToDisplayTest=new Map([["gcs","Cloud Storage Bucket"],["pubsub_sub","Pub/Sub subscription"],["pubsub_topic","Pub/Sub topic"],["datastream","Datastream Stream"],["dataflow","Dataflow Job"],["monitoring","Monitoring Dashboard"]])}refreshMigrationMode(){this.selectedMigrationMode!==qr.schemaOnly&&this.isStreamingSupported&&this.connectionType!==Qn.DumpFile?this.migrationTypes=[{name:"POC Migration",value:jn.bulkMigration},{name:"Minimal downtime Migration",value:jn.lowDowntimeMigration}]:(this.selectedMigrationType=jn.bulkMigration,this.migrationTypes=[{name:"POC Migration",value:jn.bulkMigration}])}refreshPrerequisites(){this.isSourceConnectionProfileSet=!1,this.isTargetConnectionProfileSet=!1,this.isTargetDetailSet=!1,this.isDatastreamConfigurationSet=!1,this.isGcsConfigurationSet=!1,this.isDataflowConfigurationSet=!1,this.refreshMigrationMode()}ngOnInit(){this.initializeFromLocalStorage(),this.data.config.subscribe(e=>{this.spannerConfig=e}),this.convObj=this.data.conv.subscribe(e=>{this.conv=e}),localStorage.setItem("vpcHostProjectId",this.spannerConfig.GCPProjectID),this.fetch.getSourceDestinationSummary().subscribe({next:e=>{this.connectionType=e.ConnectionType,this.dataSource=[{title:"Database Type",source:e.DatabaseType,target:"Spanner"},{title:"Number of tables",source:e.SourceTableCount,target:e.SpannerTableCount},{title:"Number of indexes",source:e.SourceIndexCount,target:e.SpannerIndexCount}],this.sourceDatabaseType=e.DatabaseType,this.region=e.Region,this.instance=e.Instance,this.dialect=e.Dialect,this.isSharded=e.IsSharded,this.processingUnits=e.ProcessingUnits,this.nodeCount=e.NodeCount,(e.DatabaseType==Wr.MySQL.toLowerCase()||e.DatabaseType==Wr.Oracle.toLowerCase()||e.DatabaseType==Wr.Postgres.toLowerCase())&&(this.isStreamingSupported=!0),this.isStreamingSupported?this.migrationTypes=[{name:"POC Migration",value:jn.bulkMigration},{name:"Minimal downtime Migration",value:jn.lowDowntimeMigration}]:(this.selectedMigrationType=jn.bulkMigration,this.migrationTypes=[{name:"POC Migration",value:jn.bulkMigration}]),this.sourceDatabaseName=e.SourceDatabaseName,this.migrationModes=[qr.schemaOnly,qr.dataOnly,qr.schemaAndData]},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}initializeFromLocalStorage(){null!=localStorage.getItem(me.MigrationMode)&&(this.selectedMigrationMode=localStorage.getItem(me.MigrationMode)),null!=localStorage.getItem(me.MigrationType)&&(this.selectedMigrationType=localStorage.getItem(me.MigrationType)),null!=localStorage.getItem(me.isForeignKeySkipped)&&(this.isForeignKeySkipped="true"===localStorage.getItem(me.isForeignKeySkipped)),null!=localStorage.getItem(me.IsMigrationInProgress)&&(this.isMigrationInProgress="true"===localStorage.getItem(me.IsMigrationInProgress),this.subscribeMigrationProgress()),null!=localStorage.getItem(me.IsTargetDetailSet)&&(this.isTargetDetailSet="true"===localStorage.getItem(me.IsTargetDetailSet)),null!=localStorage.getItem(me.IsSourceConnectionProfileSet)&&(this.isSourceConnectionProfileSet="true"===localStorage.getItem(me.IsSourceConnectionProfileSet)),null!=localStorage.getItem("isDatastreamConfigSet")&&(this.isDatastreamConfigurationSet="true"===localStorage.getItem("isDatastreamConfigSet")),null!=localStorage.getItem("isGcsConfigSet")&&(this.isGcsConfigurationSet="true"===localStorage.getItem("isGcsConfigSet")),null!=localStorage.getItem("isDataflowConfigSet")&&(this.isDataflowConfigurationSet="true"===localStorage.getItem("isDataflowConfigSet")),null!=localStorage.getItem(me.IsTargetConnectionProfileSet)&&(this.isTargetConnectionProfileSet="true"===localStorage.getItem(me.IsTargetConnectionProfileSet)),null!=localStorage.getItem(me.IsSourceDetailsSet)&&(this.isSourceDetailsSet="true"===localStorage.getItem(me.IsSourceDetailsSet)),null!=localStorage.getItem(me.IsMigrationDetailSet)&&(this.isMigrationDetailSet="true"===localStorage.getItem(me.IsMigrationDetailSet)),null!=localStorage.getItem(me.HasSchemaMigrationStarted)&&(this.hasSchemaMigrationStarted="true"===localStorage.getItem(me.HasSchemaMigrationStarted)),null!=localStorage.getItem(me.HasDataMigrationStarted)&&(this.hasDataMigrationStarted="true"===localStorage.getItem(me.HasDataMigrationStarted)),null!=localStorage.getItem(me.DataMigrationProgress)&&(this.dataMigrationProgress=parseInt(localStorage.getItem(me.DataMigrationProgress))),null!=localStorage.getItem(me.SchemaMigrationProgress)&&(this.schemaMigrationProgress=parseInt(localStorage.getItem(me.SchemaMigrationProgress))),null!=localStorage.getItem(me.DataProgressMessage)&&(this.dataProgressMessage=localStorage.getItem(me.DataProgressMessage)),null!=localStorage.getItem(me.SchemaProgressMessage)&&(this.schemaProgressMessage=localStorage.getItem(me.SchemaProgressMessage)),null!=localStorage.getItem(me.ForeignKeyProgressMessage)&&(this.foreignKeyProgressMessage=localStorage.getItem(me.ForeignKeyProgressMessage)),null!=localStorage.getItem(me.ForeignKeyUpdateProgress)&&(this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(me.ForeignKeyUpdateProgress))),null!=localStorage.getItem(me.HasForeignKeyUpdateStarted)&&(this.hasForeignKeyUpdateStarted="true"===localStorage.getItem(me.HasForeignKeyUpdateStarted)),null!=localStorage.getItem(me.GeneratingResources)&&(this.generatingResources="true"===localStorage.getItem(me.GeneratingResources)),null!=localStorage.getItem(me.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(me.NumberOfShards)),null!=localStorage.getItem(me.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(me.NumberOfInstances))}clearLocalStorage(){localStorage.removeItem(me.MigrationMode),localStorage.removeItem(me.MigrationType),localStorage.removeItem(me.IsTargetDetailSet),localStorage.removeItem(me.isForeignKeySkipped),localStorage.removeItem(me.IsSourceConnectionProfileSet),localStorage.removeItem(me.IsTargetConnectionProfileSet),localStorage.removeItem(me.IsSourceDetailsSet),localStorage.removeItem("isDatastreamConfigSet"),localStorage.removeItem("maxConcurrentBackfillTasks"),localStorage.removeItem("maxConcurrentCdcTasks"),localStorage.removeItem("isGcsConfigSet"),localStorage.removeItem("ttlInDays"),localStorage.removeItem("ttlInDaysSet"),localStorage.removeItem("isDataflowConfigSet"),localStorage.removeItem("network"),localStorage.removeItem("subnetwork"),localStorage.removeItem("maxWorkers"),localStorage.removeItem("numWorkers"),localStorage.removeItem("serviceAccountEmail"),localStorage.removeItem("vpcHostProjectId"),localStorage.removeItem("machineType"),localStorage.removeItem("additionalUserLabels"),localStorage.removeItem("kmsKeyName"),localStorage.removeItem("dataflowProjectId"),localStorage.removeItem("dataflowLocation"),localStorage.removeItem("gcsTemplatePath"),localStorage.removeItem(me.IsMigrationInProgress),localStorage.removeItem(me.HasSchemaMigrationStarted),localStorage.removeItem(me.HasDataMigrationStarted),localStorage.removeItem(me.DataMigrationProgress),localStorage.removeItem(me.SchemaMigrationProgress),localStorage.removeItem(me.DataProgressMessage),localStorage.removeItem(me.SchemaProgressMessage),localStorage.removeItem(me.ForeignKeyProgressMessage),localStorage.removeItem(me.ForeignKeyUpdateProgress),localStorage.removeItem(me.HasForeignKeyUpdateStarted),localStorage.removeItem(me.GeneratingResources),localStorage.removeItem(me.NumberOfShards),localStorage.removeItem(me.NumberOfInstances)}openConnectionProfileForm(e){this.dialog.open(iue,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{IsSource:e,SourceDatabaseType:this.sourceDatabaseType}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(si.TargetDB),SourceConnProfile:localStorage.getItem(si.SourceConnProfile),TargetConnProfile:localStorage.getItem(si.TargetConnProfile),ReplicationSlot:localStorage.getItem(si.ReplicationSlot),Publication:localStorage.getItem(si.Publication)},this.isSourceConnectionProfileSet="true"===localStorage.getItem(me.IsSourceConnectionProfileSet),this.isTargetConnectionProfileSet="true"===localStorage.getItem(me.IsTargetConnectionProfileSet),this.isTargetDetailSet&&this.isSourceConnectionProfileSet&&this.isTargetConnectionProfileSet&&(localStorage.setItem(me.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}openMigrationProfileForm(){this.dialog.open(nhe,{width:"30vw",minWidth:"1200px",maxWidth:"1600px",data:{IsSource:!1,SourceDatabaseType:this.sourceDatabaseType,Region:this.region}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(si.TargetDB),SourceConnProfile:localStorage.getItem(si.SourceConnProfile),TargetConnProfile:localStorage.getItem(si.TargetConnProfile),ReplicationSlot:localStorage.getItem(si.ReplicationSlot),Publication:localStorage.getItem(si.Publication)},null!=localStorage.getItem(me.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(me.NumberOfShards)),null!=localStorage.getItem(me.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(me.NumberOfInstances)),this.isSourceConnectionProfileSet="true"===localStorage.getItem(me.IsSourceConnectionProfileSet),this.isTargetConnectionProfileSet="true"===localStorage.getItem(me.IsTargetConnectionProfileSet),this.isTargetDetailSet&&this.isSourceConnectionProfileSet&&this.isTargetConnectionProfileSet&&(localStorage.setItem(me.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}openGcloudPopup(e){this.dialog.open(vue,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:e})}openTuneDatastreamForm(){this.dialog.open(gue,{width:"4000px",minWidth:"400px",maxWidth:"500px",data:{sourceType:this.sourceDatabaseType}}).afterClosed().subscribe(()=>{this.datastreamConfig={maxConcurrentBackfillTasks:localStorage.getItem("maxConcurrentBackfillTasks"),maxConcurrentCdcTasks:localStorage.getItem("maxConcurrentCdcTasks")},this.isDatastreamConfigurationSet="true"===localStorage.getItem("isDatastreamConfigSet"),this.isSharded&&this.fetch.setDatastreamDetailsForShardedMigrations(this.datastreamConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}openTuneGcsForm(){this.dialog.open(bue,{width:"4000px",minWidth:"400px",maxWidth:"500px"}).afterClosed().subscribe(()=>{this.gcsConfig={ttlInDays:localStorage.getItem("ttlInDays"),ttlInDaysSet:"true"===localStorage.getItem("ttlInDaysSet")},this.isGcsConfigurationSet="true"===localStorage.getItem("isGcsConfigSet"),this.isSharded&&this.fetch.setGcsDetailsForShardedMigrations(this.gcsConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}openDataflowForm(){this.dialog.open(pue,{width:"4000px",minWidth:"400px",maxWidth:"500px",data:this.spannerConfig}).afterClosed().subscribe(()=>{this.dataflowConfig={network:localStorage.getItem("network"),subnetwork:localStorage.getItem("subnetwork"),hostProjectId:localStorage.getItem("vpcHostProjectId"),maxWorkers:localStorage.getItem("maxWorkers"),numWorkers:localStorage.getItem("numWorkers"),serviceAccountEmail:localStorage.getItem("serviceAccountEmail"),machineType:localStorage.getItem("machineType"),additionalUserLabels:localStorage.getItem("additionalUserLabels"),kmsKeyName:localStorage.getItem("kmsKeyName"),projectId:localStorage.getItem("dataflowProjectId"),location:localStorage.getItem("dataflowLocation"),gcsTemplatePath:localStorage.getItem("gcsTemplatePath")},this.isDataflowConfigurationSet="true"===localStorage.getItem("isDataflowConfigSet"),this.isSharded&&this.fetch.setDataflowDetailsForShardedMigrations(this.dataflowConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}endMigration(){this.dialog.open(mue,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{SpannerDatabaseName:this.resourcesGenerated.DatabaseName,SpannerDatabaseUrl:this.resourcesGenerated.DatabaseUrl,SourceDatabaseType:this.sourceDatabaseType,SourceDatabaseName:this.sourceDatabaseName}}).afterClosed().subscribe()}openSourceDetailsForm(){this.dialog.open(uue,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:this.sourceDatabaseType}).afterClosed().subscribe(()=>{this.isSourceDetailsSet="true"===localStorage.getItem(me.IsSourceDetailsSet)})}openShardedBulkSourceDetailsForm(){this.dialog.open(Sue,{width:"30vw",minWidth:"400px",maxWidth:"550px",data:{sourceDatabaseEngine:this.sourceDatabaseType,isRestoredSession:this.connectionType}}).afterClosed().subscribe(()=>{this.isSourceDetailsSet="true"===localStorage.getItem(me.IsSourceDetailsSet),null!=localStorage.getItem(me.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(me.NumberOfShards)),null!=localStorage.getItem(me.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(me.NumberOfInstances))})}openTargetDetailsForm(){this.dialog.open(Gde,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{Region:this.region,Instance:this.instance,Dialect:this.dialect}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(si.TargetDB),SourceConnProfile:localStorage.getItem(si.SourceConnProfile),TargetConnProfile:localStorage.getItem(si.TargetConnProfile),ReplicationSlot:localStorage.getItem(si.ReplicationSlot),Publication:localStorage.getItem(si.Publication)},this.isTargetDetailSet="true"===localStorage.getItem(me.IsTargetDetailSet),(this.isSourceDetailsSet&&this.isTargetDetailSet&&this.connectionType===Qn.SessionFile&&this.selectedMigrationMode!==qr.schemaOnly||this.isTargetDetailSet&&this.selectedMigrationType==jn.bulkMigration&&this.connectionType!==Qn.SessionFile||this.isTargetDetailSet&&this.selectedMigrationType==jn.bulkMigration&&this.connectionType===Qn.SessionFile&&this.selectedMigrationMode===qr.schemaOnly)&&(localStorage.setItem(me.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}migrate(){this.resetValues(),this.fetch.migrate({TargetDetails:this.targetDetails,DatastreamConfig:this.datastreamConfig,GcsConfig:this.gcsConfig,DataflowConfig:this.dataflowConfig,IsSharded:this.isSharded,MigrationType:this.selectedMigrationType,MigrationMode:this.selectedMigrationMode,skipForeignKeys:this.isForeignKeySkipped}).subscribe({next:()=>{this.selectedMigrationMode==qr.dataOnly?this.selectedMigrationType==jn.bulkMigration?(this.hasDataMigrationStarted=!0,localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())):(this.generatingResources=!0,localStorage.setItem(me.GeneratingResources,this.generatingResources.toString()),this.snack.openSnackBar("Setting up dataflow and datastream jobs","Close")):(this.hasSchemaMigrationStarted=!0,localStorage.setItem(me.HasSchemaMigrationStarted,this.hasSchemaMigrationStarted.toString())),this.snack.openSnackBar("Migration started successfully","Close",5),this.subscribeMigrationProgress()},error:i=>{this.snack.openSnackBar(i.error,"Close"),this.isMigrationInProgress=!this.isMigrationInProgress,this.hasDataMigrationStarted=!1,this.hasSchemaMigrationStarted=!1,this.clearLocalStorage()}})}subscribeMigrationProgress(){var e=!1;this.subscription=TN(5e3).subscribe(i=>{this.fetch.getProgress().subscribe({next:o=>{""==o.ErrorMessage?o.ProgressStatus==rd.SchemaMigrationComplete?(localStorage.setItem(me.SchemaMigrationProgress,"100"),this.schemaMigrationProgress=parseInt(localStorage.getItem(me.SchemaMigrationProgress)),this.selectedMigrationMode==qr.schemaOnly?this.markMigrationComplete():this.selectedMigrationType==jn.lowDowntimeMigration?(this.markSchemaMigrationComplete(),this.generatingResources=!0,localStorage.setItem(me.GeneratingResources,this.generatingResources.toString()),e||(this.snack.openSnackBar("Setting up dataflow and datastream jobs","Close"),e=!0)):(this.markSchemaMigrationComplete(),this.hasDataMigrationStarted=!0,localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()))):o.ProgressStatus==rd.DataMigrationComplete?(this.selectedMigrationType!=jn.lowDowntimeMigration&&(this.hasDataMigrationStarted=!0,localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())),this.generatingResources=!1,localStorage.setItem(me.GeneratingResources,this.generatingResources.toString()),this.markMigrationComplete()):o.ProgressStatus==rd.DataWriteInProgress?(this.markSchemaMigrationComplete(),this.hasDataMigrationStarted=!0,localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()),localStorage.setItem(me.DataMigrationProgress,o.Progress.toString()),this.dataMigrationProgress=parseInt(localStorage.getItem(me.DataMigrationProgress))):o.ProgressStatus==rd.ForeignKeyUpdateComplete?this.markMigrationComplete():o.ProgressStatus==rd.ForeignKeyUpdateInProgress&&(this.markSchemaMigrationComplete(),this.selectedMigrationType==jn.bulkMigration&&(this.hasDataMigrationStarted=!0,localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())),this.markForeignKeyUpdateInitiation(),this.dataMigrationProgress=100,localStorage.setItem(me.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(me.ForeignKeyUpdateProgress,o.Progress.toString()),this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(me.ForeignKeyUpdateProgress)),this.generatingResources=!1,localStorage.setItem(me.GeneratingResources,this.generatingResources.toString()),this.fetchGeneratedResources()):(this.errorMessage=o.ErrorMessage,this.subscription.unsubscribe(),this.isMigrationInProgress=!this.isMigrationInProgress,this.snack.openSnackBarWithoutTimeout(this.errorMessage,"Close"),this.schemaProgressMessage="Schema migration cancelled!",this.dataProgressMessage="Data migration cancelled!",this.foreignKeyProgressMessage="Foreign key update cancelled!",this.generatingResources=!1,this.isLowDtMigrationRunning=!1,this.clearLocalStorage())},error:o=>{this.snack.openSnackBar(o.error,"Close"),this.isMigrationInProgress=!this.isMigrationInProgress,this.clearLocalStorage()}})})}markForeignKeyUpdateInitiation(){this.dataMigrationProgress=100,this.dataProgressMessage="Data migration completed successfully!",localStorage.setItem(me.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(me.DataMigrationProgress,this.dataMigrationProgress.toString()),this.hasForeignKeyUpdateStarted=!0,this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(me.ForeignKeyUpdateProgress))}markSchemaMigrationComplete(){this.schemaMigrationProgress=100,this.schemaProgressMessage="Schema migration completed successfully!",localStorage.setItem(me.SchemaMigrationProgress,this.schemaMigrationProgress.toString()),localStorage.setItem(me.SchemaProgressMessage,this.schemaProgressMessage)}downloadConfiguration(){this.fetch.getSourceProfile().subscribe({next:e=>{this.configuredMigrationProfile=e;var i=document.createElement("a");let o=JSON.stringify(this.configuredMigrationProfile,null,"\t").replace(/9223372036854776000/g,"9223372036854775807");i.href="data:text/json;charset=utf-8,"+encodeURIComponent(o),i.download=localStorage.getItem(si.TargetDB)+"-"+this.configuredMigrationProfile.configType+"-shardConfig.cfg",i.click()},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}fetchGeneratedResources(){this.fetch.getGeneratedResources().subscribe({next:e=>{this.isResourceGenerated=!0,this.resourcesGenerated=e,this.resourcesGenerated.ShardToShardResourcesMap=new Map(Object.entries(this.resourcesGenerated.ShardToShardResourcesMap)),this.prepareGeneratedResourcesTableData(this.resourcesGenerated)},error:e=>{this.snack.openSnackBar(e.error,"Close")}}),this.selectedMigrationType===jn.lowDowntimeMigration&&(this.isLowDtMigrationRunning=!0)}markMigrationComplete(){this.subscription.unsubscribe(),this.isMigrationInProgress=!this.isMigrationInProgress,this.dataProgressMessage="Data migration completed successfully!",this.schemaProgressMessage="Schema migration completed successfully!",this.schemaMigrationProgress=100,this.dataMigrationProgress=100,this.foreignKeyUpdateProgress=100,this.foreignKeyProgressMessage="Foreign key updated successfully!",this.fetchGeneratedResources(),this.clearLocalStorage(),this.refreshPrerequisites()}resetValues(){this.isMigrationInProgress=!this.isMigrationInProgress,this.hasSchemaMigrationStarted=!1,this.hasDataMigrationStarted=!1,this.generatingResources=!1,this.dataMigrationProgress=0,this.schemaMigrationProgress=0,this.schemaProgressMessage="Schema migration in progress...",this.dataProgressMessage="Data migration in progress...",this.isResourceGenerated=!1,this.hasForeignKeyUpdateStarted=!1,this.foreignKeyUpdateProgress=100,this.foreignKeyProgressMessage="Foreign key update in progress...",this.resourcesGenerated={MigrationJobId:"",DatabaseName:"",DatabaseUrl:"",BucketName:"",BucketUrl:"",DataStreamJobName:"",DataStreamJobUrl:"",DataflowJobName:"",DataflowJobUrl:"",PubsubTopicName:"",PubsubTopicUrl:"",PubsubSubscriptionName:"",PubsubSubscriptionUrl:"",MonitoringDashboardName:"",MonitoringDashboardUrl:"",AggMonitoringDashboardName:"",AggMonitoringDashboardUrl:"",DataflowGcloudCmd:"",ShardToShardResourcesMap:new Map},this.initializeLocalStorage()}initializeLocalStorage(){localStorage.setItem(me.MigrationMode,this.selectedMigrationMode),localStorage.setItem(me.MigrationType,this.selectedMigrationType),localStorage.setItem(me.isForeignKeySkipped,this.isForeignKeySkipped.toString()),localStorage.setItem(me.IsMigrationInProgress,this.isMigrationInProgress.toString()),localStorage.setItem(me.HasSchemaMigrationStarted,this.hasSchemaMigrationStarted.toString()),localStorage.setItem(me.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()),localStorage.setItem(me.HasForeignKeyUpdateStarted,this.hasForeignKeyUpdateStarted.toString()),localStorage.setItem(me.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(me.SchemaMigrationProgress,this.schemaMigrationProgress.toString()),localStorage.setItem(me.ForeignKeyUpdateProgress,this.foreignKeyUpdateProgress.toString()),localStorage.setItem(me.SchemaProgressMessage,this.schemaProgressMessage),localStorage.setItem(me.DataProgressMessage,this.dataProgressMessage),localStorage.setItem(me.ForeignKeyProgressMessage,this.foreignKeyProgressMessage),localStorage.setItem(me.IsTargetDetailSet,this.isTargetDetailSet.toString()),localStorage.setItem(me.GeneratingResources,this.generatingResources.toString())}openSaveSessionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("saveSession"),this.sidenav.setSidenavDatabaseName(this.conv.DatabaseName)}downloadSession(){SN(this.conv)}prepareGeneratedResourcesTableData(e){for(let[i,o]of e.ShardToShardResourcesMap){for(let r of o)r.DataShardId=i;this.displayedResources.push(...o)}this.displayedResourcesDataSource=new dP(this.displayedResources),this.displayedResourcesDataSource.paginator=this.paginator}ngOnDestroy(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(jr),_(zn),_(ir),_($i),_(Xn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-prepare-migration"]],viewQuery:function(i,o){if(1&i&&vt(qw,5),2&i){let r;Oe(r=Ae())&&(o.paginator=r.first)}},decls:99,vars:40,consts:[[1,"header"],[1,"breadcrumb"],["mat-button","",1,"breadcrumb_source",3,"routerLink"],["mat-button","",1,"breadcrumb_workspace",3,"routerLink"],["mat-button","",1,"breadcrumb_prepare_migration",3,"routerLink"],[1,"header_action"],["mat-button","",3,"click"],["mat-button","","color","primary",3,"click"],[1,"body"],[1,"definition-container"],[4,"ngIf"],[1,"summary"],["id","summary-table","mat-table","",3,"dataSource"],["matColumnDef","Title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Source"],["matColumnDef","Destination"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["appearance","outline"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"configure",3,"matTooltip"],[1,"mat-card-class"],["class","static-prereqs",4,"ngIf"],[1,"point"],[1,"bullet"],["matTooltip","Configure the database in Spanner you want this migration to write to (up till now only GCP Project ID and Spanner Instance name have been configured.)",1,"configure"],["mat-button","","color","primary",3,"disabled","click"],["iconPositionEnd",""],["iconPositionEnd","","class","success","matTooltip","Target details configured","matTooltipPosition","above",4,"ngIf"],["class","point",4,"ngIf"],["class","mat-card-class",4,"ngIf"],["class","progress_bar",4,"ngIf"],[1,"mat-elevation-z8",3,"hidden"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],[1,"migrate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"value"],[3,"ngModel","ngModelChange"],[1,"static-prereqs"],["href","https://cloud.google.com/datastream/docs/sources","target","_blank"],["href","https://cloud.google.com/dataflow/docs/concepts/security-and-permissions","target","_blank"],["href","https://cloud.google.com/dataflow/docs/guides/routes-firewall","target","_blank"],["iconPositionEnd","","class","success","matTooltip","Source details configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Source details configured","matTooltipPosition","above",1,"success"],["matTooltip","Configure the connection info of all source shards to connect to and migrate data from.",1,"configure"],["iconPositionEnd","","matTooltip","Target details configured","matTooltipPosition","above",1,"success"],["matTooltip","Datastream will be used to capture change events from the source database. Please ensure you have met the pre-requistes required for setting up Datastream in your GCP environment. ",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Source connection profile configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Source connection profile configured","matTooltipPosition","above",1,"success"],["matTooltip","Configure the source connection profile to allow Datastream to read from your source database",1,"configure"],["matTooltip","Create a connection profile for datastream to write to a GCS bucket. Spanner migration tool will automatically create the bucket for you.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Target connection profile configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Target connection profile configured","matTooltipPosition","above",1,"success"],["class","bullet",4,"ngIf"],["matTooltip","Datastream will be used to stream CDC from source to GCS. This helps you configure the runtime environment for the Datastream job(s) e.g Parallel Backfill workers.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Datastream Tuned","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Datastream Tuned","matTooltipPosition","above",1,"success"],["matTooltip","Use this to tune the GCS bucket options where Datastream outputs to and Dataflow reads from.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Cloud Storage bucket Configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Cloud Storage bucket Configured","matTooltipPosition","above",1,"success"],["matTooltip","Dataflow will be used to perform the actual migration of data from source to Spanner. This helps you configure the execution environment for Dataflow jobs e.g VPC.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Dataflow Configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Dataflow Configured","matTooltipPosition","above",1,"success"],["matTooltip","Download the configuration done above as JSON.",1,"configure"],["iconPositionEnd","","matTooltip","Download configured shards as JSON","matTooltipPosition","above"],[1,"progress_bar"],["mode","determinate",3,"value"],[1,"spinner"],[3,"diameter"],[1,"spinner-text"],["target","_blank",3,"href"],["mat-button","",1,"configure",3,"click"],["matTooltip","Equivalent gCloud command","matTooltipPosition","above"],[1,"mat-elevation-z8"],["id","resources-table","mat-table","",3,"dataSource"],["matColumnDef","shardId"],["matColumnDef","resourceType"],["matColumnDef","resourceName"],["matColumnDef","resourceUrl"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"a",2),h(3,"Select Source"),l(),d(4,"span"),h(5,">"),l(),d(6,"a",3),h(7),l(),d(8,"span"),h(9,">"),l(),d(10,"a",4)(11,"b"),h(12,"Prepare Migration"),l()()(),d(13,"div",5)(14,"button",6),N("click",function(){return o.openSaveSessionSidenav()}),h(15," SAVE SESSION "),l(),d(16,"button",7),N("click",function(){return o.downloadSession()}),h(17,"DOWNLOAD SESSION FILE"),l()()(),D(18,"br"),d(19,"div",8)(20,"div",9),y(21,ohe,2,0,"h2",10)(22,rhe,2,0,"h2",10),d(23,"div",11)(24,"table",12),ye(25,13),y(26,ahe,2,0,"th",14)(27,she,3,1,"td",15),we(),ye(28,16),y(29,che,2,0,"th",14)(30,lhe,2,1,"td",15),we(),ye(31,17),y(32,dhe,2,0,"th",14)(33,uhe,2,1,"td",15),we(),y(34,hhe,1,0,"tr",18)(35,mhe,1,0,"tr",19),l()()(),D(36,"br"),d(37,"mat-form-field",20)(38,"mat-label"),h(39,"Migration Mode:"),l(),d(40,"mat-select",21),xn("ngModelChange",function(a){return Tn(o.selectedMigrationMode,a)||(o.selectedMigrationMode=a),a}),N("selectionChange",function(){return o.refreshPrerequisites()}),y(41,phe,2,2,"mat-option",22),l()(),d(42,"mat-icon",23),h(43,"info"),l(),D(44,"br"),y(45,ghe,9,3,"div",10)(46,bhe,6,2,"div",10),d(47,"div",24)(48,"mat-card")(49,"mat-card-title"),h(50,"Prerequisites"),l(),d(51,"mat-card-subtitle"),h(52,"Before we begin, please ensure you have done the following:"),l(),y(53,vhe,6,0,"div",25)(54,yhe,20,0,"div",25),l()(),d(55,"div",24)(56,"mat-card"),y(57,xhe,14,2,"div",10)(58,Dhe,16,2,"div",10),d(59,"div")(60,"mat-card-title"),h(61,"Target details:"),l(),d(62,"p",26)(63,"span",27),h(64,"1"),l(),d(65,"span"),h(66,"Configure Spanner Database "),d(67,"mat-icon",28),h(68," info"),l()(),d(69,"span")(70,"button",29),N("click",function(){return o.openTargetDetailsForm()}),h(71," Configure "),d(72,"mat-icon",30),h(73,"edit"),l(),y(74,She,2,0,"mat-icon",31),l()()(),y(75,The,13,2,"p",32)(76,Ihe,13,2,"p",32)(77,Ohe,13,2,"p",32)(78,Nhe,13,4,"p",32)(79,Vhe,13,4,"p",32)(80,Uhe,13,4,"p",32)(81,Ghe,11,2,"p",32),l()()(),y(82,Whe,25,3,"div",33)(83,qhe,32,6,"div",33)(84,Khe,5,2,"div",34)(85,Zhe,5,2,"div",34)(86,Yhe,5,2,"div",34)(87,Qhe,8,1,"div",10),D(88,"br")(89,"br"),y(90,gme,31,12,"div",10),d(91,"div",35),D(92,"mat-paginator",36),l(),D(93,"br")(94,"br"),y(95,_me,4,0,"div",10),d(96,"div",37),y(97,bme,3,1,"span",10)(98,vme,3,0,"span",10),l()()),2&i&&(m(2),f("routerLink","/"),m(4),f("routerLink","/workspace"),m(),ke("Configure Schema (",o.dialect," Dialect)"),m(3),f("routerLink","/prepare-migration"),m(11),f("ngIf",!o.isSharded),m(),f("ngIf",o.isSharded),m(2),f("dataSource",o.dataSource),m(10),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns),m(5),wn("ngModel",o.selectedMigrationMode),m(),f("ngForOf",o.migrationModes),m(),f("matTooltip",o.migrationModesHelpText.get(o.selectedMigrationMode)),m(3),f("ngIf","Schema"!=o.selectedMigrationMode),m(),f("ngIf",!("Schema"===o.selectedMigrationMode||"lowdt"===o.selectedMigrationType)),m(7),f("ngIf","bulk"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(3),f("ngIf","sessionFile"===o.connectionType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(),f("ngIf",o.isSharded&&"bulk"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(12),f("disabled",o.isMigrationInProgress||o.isLowDtMigrationRunning),m(4),f("ngIf",o.isTargetDetailSet),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&o.isSharded),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&o.isSharded),m(),f("ngIf","Schema"!==o.selectedMigrationMode&&o.isSharded),m(),f("ngIf",o.isTargetDetailSet),m(),f("ngIf",o.hasSchemaMigrationStarted),m(),f("ngIf",o.hasDataMigrationStarted),m(),f("ngIf",o.hasForeignKeyUpdateStarted),m(),f("ngIf",o.generatingResources),m(3),f("ngIf",o.isResourceGenerated),m(),f("hidden",!(o.isResourceGenerated&&"lowdt"===o.selectedMigrationType&&o.isSharded)),m(),f("pageSizeOptions",Wo(39,yme)),m(3),f("ngIf",o.isResourceGenerated&&"lowdt"===o.selectedMigrationType),m(2),f("ngIf",!o.isLowDtMigrationRunning),m(),f("ngIf",o.isLowDtMigrationRunning))},dependencies:[dn,Tt,$r,jE,Yt,Ii,$u,O0,E0,bO,Ri,Pi,uo,En,xi,ps,ka,fs,Ta,Sa,gs,Ma,Ia,_s,bs,qw,Dn,Pl,ad],styles:[".header[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb_workspace[_ngcontent-%COMP%]{color:#0000008f}.header[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb_prepare_migration[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.definition-container[_ngcontent-%COMP%]{max-height:500px;overflow:auto}.definition-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:13px}.body[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}#summary-table[_ngcontent-%COMP%]{min-width:30%;max-width:50%}#summary-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:10%}.configure[_ngcontent-%COMP%]{color:#1967d2}.migrate[_ngcontent-%COMP%]{margin-top:10px}#resources-table[_ngcontent-%COMP%]{width:100%}"]})}return t})()},{path:"**",redirectTo:"/",pathMatch:"full"}];let xme=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t});static#i=this.\u0275inj=at({imports:[wN.forRoot(wme),wN]})}return t})(),Cme=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.dataService=o,this.data=r,this.dialogRef=a,this.errMessage="",this.updateConfigForm=new ei({GCPProjectID:new K(r.GCPProjectID,[ce.required]),SpannerInstanceID:new K(r.SpannerInstanceID,[ce.required])}),a.disableClose=!0}updateSpannerConfig(){let e=this.updateConfigForm.value;this.fetch.setSpannerConfig({GCPProjectID:e.GCPProjectID,SpannerInstanceID:e.SpannerInstanceID}).subscribe({next:o=>{o.IsMetadataDbCreated&&this.snack.openSnackBar("Metadata database not found. A new database has been created to store session metadata.","Close",5),this.snack.openSnackBar(o.IsConfigValid?"Spanner Config updated successfully":"Invalid Spanner Configuration","Close",5),this.dialogRef.close({...o}),this.dataService.updateIsOffline(),this.dataService.updateConfig(o),this.dataService.getAllSessions()},error:o=>{this.snack.openSnackBar(o.message,"Close")}})}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(zn),_(ir),_($i),_(ho),_(An))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-update-spanner-config-form"]],decls:20,vars:3,consts:[["mat-dialog-content",""],[1,"save-session-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","placeholder","project id","type","text","formControlName","GCPProjectID","id","project-id"],["hintLabel","Min. 2 characters and Max. 64 characters","appearance","outline",1,"full-width"],["matInput","","placeholder","instance id","type","text","required","","minlength","2","maxlength","64","pattern","^[a-z]([-a-z0-9]*[a-z0-9])?","formControlName","SpannerInstanceID","id","instance-id"],["align","end"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["id","save-button","mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Connect to Spanner"),l(),d(4,"mat-form-field",2)(5,"mat-label"),h(6,"Project ID"),l(),D(7,"input",3),l(),D(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),h(11,"Instance ID"),l(),D(12,"input",5),d(13,"mat-hint",6),h(14),l()()()(),d(15,"div",7)(16,"button",8),h(17,"CANCEL"),l(),d(18,"button",9),N("click",function(){return o.updateSpannerConfig()}),h(19," SAVE "),l()()),2&i&&(m(),f("formGroup",o.updateConfigForm),m(13),ke("",(null==o.updateConfigForm.value.SpannerInstanceID?null:o.updateConfigForm.value.SpannerInstanceID.length)||0,"/64"),m(4),f("disabled",!o.updateConfigForm.valid))},dependencies:[Yt,Ri,Pi,Nl,rn,On,Oi,xi,Ui,Bo,X0,J0,ew,Ai,Yi,mo,Jo,er],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]})}return t})();function Dme(t,n){1&t&&(d(0,"mat-icon",11),h(1," warning "),l())}function Sme(t,n){1&t&&(d(0,"mat-icon",12),h(1," check_circle "),l())}function kme(t,n){1&t&&(d(0,"mat-icon",13),h(1," warning "),l())}function Tme(t,n){1&t&&(d(0,"div")(1,"span",null,14),h(3,"Spanner database is not configured, click on edit button to configure "),l()())}function Mme(t,n){if(1&t&&(d(0,"div")(1,"span",15)(2,"b"),h(3,"Project Id: "),l(),h(4),l(),d(5,"span",16)(6,"b"),h(7,"Spanner Instance Id: "),l(),h(8),l()()),2&t){const e=w();m(4),Ne(e.spannerConfig.GCPProjectID),m(4),Ne(e.spannerConfig.SpannerInstanceID)}}let Ime=(()=>{class t{constructor(e,i,o,r,a){this.data=e,this.dialog=i,this.sidenav=o,this.clickEvent=r,this.loaderService=a,this.isOfflineStatus=!1,this.spannerConfig={GCPProjectID:"",SpannerInstanceID:""}}ngOnInit(){this.data.config.subscribe(e=>{this.spannerConfig=e}),this.data.isOffline.subscribe({next:e=>{this.isOfflineStatus=e}}),this.clickEvent.spannerConfig.subscribe(e=>{e&&this.openEditForm()})}openEditForm(){this.dialog.open(Cme,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:this.spannerConfig}).afterClosed().subscribe(i=>{i&&(this.spannerConfig=i)})}showWarning(){return!this.spannerConfig.GCPProjectID&&!this.spannerConfig.SpannerInstanceID}openInstructionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("instruction")}openUserGuide(){window.open("https://github.com/GoogleCloudPlatform/spanner-migration-tool/blob/master/SpannerMigrationToolUIUserGuide.pdf","_blank")}stopLoading(){this.loaderService.stopLoader(),this.clickEvent.cancelDbLoading(),this.clickEvent.closeDatabaseLoader()}static#e=this.\u0275fac=function(i){return new(i||t)(_($i),_(jr),_(Xn),_(nr),_(Tg))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-header"]],decls:16,vars:6,consts:[["color","secondry",1,"header-container"],[1,"pointer",3,"routerLink","click"],[1,"menu-spacer"],[1,"right_container"],[1,"spanner_config"],["class","icon warning","matTooltip","Invalid spanner configuration. Working in offline mode",4,"ngIf"],["id","check-icon","class","icon success","matTooltip","Valid spanner configuration.",4,"ngIf"],["class","icon warning","matTooltip","Spanner configuration has not been set.",4,"ngIf"],[4,"ngIf"],["id","edit-icon","matTooltip","Edit Settings",1,"cursor-pointer",3,"click"],["mat-icon-button","","matTooltip","Instruction",1,"example-icon","favorite-icon",3,"click"],["matTooltip","Invalid spanner configuration. Working in offline mode",1,"icon","warning"],["id","check-icon","matTooltip","Valid spanner configuration.",1,"icon","success"],["matTooltip","Spanner configuration has not been set.",1,"icon","warning"],["name",""],[1,"pid"],[1,"iid"]],template:function(i,o){1&i&&(d(0,"mat-toolbar",0)(1,"span",1),N("click",function(){return o.stopLoading()}),h(2," Spanner migration tool"),l(),D(3,"span",2),d(4,"div",3)(5,"div",4),y(6,Dme,2,0,"mat-icon",5)(7,Sme,2,0,"mat-icon",6)(8,kme,2,0,"mat-icon",7)(9,Tme,4,0,"div",8)(10,Mme,9,2,"div",8),d(11,"mat-icon",9),N("click",function(){return o.openEditForm()}),h(12,"edit"),l()(),d(13,"button",10),N("click",function(){return o.openUserGuide()}),d(14,"mat-icon"),h(15,"help"),l()()()()),2&i&&(m(),f("routerLink","/"),m(5),f("ngIf",o.isOfflineStatus&&!o.showWarning()),m(),f("ngIf",!o.isOfflineStatus&&!o.showWarning()),m(),f("ngIf",o.showWarning()),m(),f("ngIf",o.showWarning()),m(),f("ngIf",!o.showWarning()))},dependencies:[Tt,$r,TW,_a,Ii,Dn],styles:[".header-container[_ngcontent-%COMP%]{padding:0 20px}.menu-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.right_container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%]{margin:0 15px 0 0;display:flex;align-items:center;border-radius:5px;padding:0 10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:2px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:300;padding:0 10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] .pid[_ngcontent-%COMP%]{margin-right:10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.cursor-pointer[_ngcontent-%COMP%]{color:#3367d6}"]})}return t})();function Eme(t,n){1&t&&(d(0,"div",1),D(1,"mat-progress-bar",2),l())}let Ome=(()=>{class t{constructor(e){this.loaderService=e,this.showProgress=!0}ngOnInit(){this.loaderService.isLoading.subscribe(e=>{this.showProgress=e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Tg))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-loader"]],decls:1,vars:1,consts:[["class","progress-bar-wrapper",4,"ngIf"],[1,"progress-bar-wrapper"],["mode","indeterminate","value","40"]],template:function(i,o){1&i&&y(0,Eme,2,0,"div",0),2&i&&f("ngIf",o.showProgress)},dependencies:[Tt,bO],styles:[".progress-bar-wrapper[_ngcontent-%COMP%]{background-color:#cbd0e9;height:2px}.progress-bar-wrapper[_ngcontent-%COMP%] .mat-mdc-progress-bar[_ngcontent-%COMP%]{height:2px}"]})}return t})();function Ame(t,n){if(1&t&&(d(0,"mat-option",11),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Ne(e)}}function Pme(t,n){if(1&t&&(d(0,"mat-option",11),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Ne(e)}}function Rme(t,n){if(1&t){const e=_e();d(0,"button",19),N("click",function(){ae(e);const o=w().index;return se(w().removeColumnForm(o))}),d(1,"mat-icon"),h(2,"remove"),l(),d(3,"span"),h(4,"REMOVE COLUMN"),l()()}}function Nme(t,n){if(1&t){const e=_e();ye(0),d(1,"mat-card",12)(2,"div",13)(3,"mat-form-field",1)(4,"mat-label"),h(5,"Column Name"),l(),d(6,"mat-select",14),N("selectionChange",function(){return ae(e),se(w().selectedColumnChange())}),y(7,Pme,2,2,"mat-option",3),l()(),d(8,"mat-form-field",1)(9,"mat-label"),h(10,"Sort"),l(),d(11,"mat-select",15)(12,"mat-option",16),h(13,"Ascending"),l(),d(14,"mat-option",17),h(15,"Descending"),l()()()(),y(16,Rme,5,0,"button",18),l(),we()}if(2&t){const e=n.index,i=w();m(2),f("formGroupName",e),m(5),f("ngForOf",i.addColumnsList[e]),m(9),f("ngIf",!i.viewRuleFlag)}}function Fme(t,n){if(1&t){const e=_e();d(0,"button",20),N("click",function(){return ae(e),se(w().addNewColumnForm())}),d(1,"mat-icon"),h(2,"add"),l(),d(3,"span"),h(4,"ADD COLUMN"),l()()}}function Lme(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",21),N("click",function(){return ae(e),se(w().addIndex())}),h(2," ADD RULE "),l()()}if(2&t){const e=w();m(),f("disabled",!(e.addIndexForm.valid&&e.ruleNameValid&&e.ColsArray.controls.length>0))}}function Bme(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",22),N("click",function(){return ae(e),se(w().deleteRule())}),h(2," DELETE RULE "),l()()}}let Vme=(()=>{class t{constructor(e,i,o,r){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Re,this.tableNames=[],this.totalColumns=[],this.addColumnsList=[],this.commonColumns=[],this.viewRuleData={},this.viewRuleFlag=!1,this.conv={},this.ruleId="",this.addIndexForm=this.fb.group({tableName:["",ce.required],indexName:["",[ce.required,ce.pattern("^[a-zA-Z].{0,59}$")]],ColsArray:this.fb.array([])})}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.tableNames=Object.keys(e.SpSchema).map(i=>e.SpSchema[i].Name)}}),this.sidenav.sidenavAddIndexTable.subscribe({next:e=>{this.addIndexForm.controls.tableName.setValue(e),""!==e&&this.selectedTableChange(e)}}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.viewRuleFlag&&this.getRuleData(this.viewRuleData)})})}getRuleData(e){this.ruleId=e?.Id;let i=this.conv.SpSchema[e?.Data?.TableId]?.Name;this.addIndexForm.controls.tableName.setValue(i),this.addIndexForm.controls.indexName.setValue(e?.Data?.Name),this.selectedTableChange(i),this.setColArraysForViewRules(e?.Data?.TableId,e?.Data?.Keys),this.addIndexForm.disable()}setColArraysForViewRules(e,i){if(this.ColsArray.clear(),i)for(let o=0;oo.ColDefs[r].Name)}this.ColsArray.clear(),this.commonColumns=[],this.addColumnsList=[],this.updateCommonColumns()}addNewColumnForm(){let e=this.fb.group({columnName:["",ce.required],sort:["",ce.required]});this.ColsArray.push(e),this.updateCommonColumns(),this.addColumnsList.push([...this.commonColumns])}selectedColumnChange(){this.updateCommonColumns(),this.addColumnsList=this.addColumnsList.map((e,i)=>{const o=[...this.commonColumns];return""!==this.ColsArray.value[i].columnName&&o.push(this.ColsArray.value[i].columnName),o})}updateCommonColumns(){this.commonColumns=this.totalColumns.filter(e=>{let i=!0;return this.ColsArray.value.forEach(o=>{o.columnName===e&&(i=!1)}),i})}removeColumnForm(e){this.ColsArray.removeAt(e),this.addColumnsList=this.addColumnsList.filter((i,o)=>o!==e),this.selectedColumnChange()}addIndex(){let e=this.addIndexForm.value,i=[],o=this.conversion.getTableIdFromSpName(e.tableName,this.conv);i.push({Name:e.indexName,TableId:o,Unique:!1,Keys:e.ColsArray.map((r,a)=>({ColId:this.conversion.getColIdFromSpannerColName(r.columnName,o,this.conv),Desc:"true"===r.sort,Order:a+1})),Id:""}),this.applyRule(i[0]),this.resetRuleType.emit(""),this.sidenav.setSidenavAddIndexTable(""),this.sidenav.closeSidenav()}applyRule(e){let o=this.conversion.getTableIdFromSpName(this.addIndexForm.value.tableName,this.conv);this.data.applyRule({Name:this.ruleName,Type:"add_index",ObjectType:"Table",AssociatedObjects:o,Enabled:!0,Data:e,Id:""})}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.setSidenavAddIndexTable(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(ba),_($i),_(Xn),_(hc))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-add-index-form"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:18,vars:7,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","tableName","required","true",1,"input-field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["hintLabel","Max. 60 characters, and starts with a letter.","appearance","outline"],["matInput","","formControlName","indexName",1,"input-field"],["align","end"],["formArrayName","ColsArray",1,"addcol-form"],[4,"ngFor","ngForOf"],["mat-button","","color","primary","class","add-column-btn","type","button",3,"click",4,"ngIf"],[4,"ngIf"],[3,"value"],[1,"column-form-card"],[3,"formGroupName"],["matSelect","","formControlName","columnName","required","true",1,"input-field",3,"selectionChange"],["formControlName","sort","required","true",1,"input-field"],["value","false"],["value","true"],["mat-button","","color","primary",3,"click",4,"ngIf"],["mat-button","","color","primary",3,"click"],["mat-button","","color","primary","type","button",1,"add-column-btn",3,"click"],["mat-raised-button","","type","submit","color","primary",1,"add-column-btn",3,"disabled","click"],["mat-raised-button","","type","submit","color","primary",1,"add-column-btn",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"For Table"),l(),d(4,"mat-select",2),N("selectionChange",function(a){return o.selectedTableChange(a.value)}),y(5,Ame,2,2,"mat-option",3),l()(),d(6,"mat-form-field",4)(7,"mat-label"),h(8,"Index Name"),l(),D(9,"input",5),d(10,"mat-hint",6),h(11),l()(),ye(12,7),y(13,Nme,17,3,"ng-container",8)(14,Fme,5,0,"button",9),D(15,"br"),y(16,Lme,3,1,"div",10)(17,Bme,3,0,"div",10),we(),l()),2&i&&(f("formGroup",o.addIndexForm),m(5),f("ngForOf",o.tableNames),m(6),ke("",(null==o.addIndexForm.value.indexName?null:o.addIndexForm.value.indexName.length)||0,"/60"),m(2),f("ngForOf",o.ColsArray.controls),m(),f("ngIf",o.addColumnsList.length{class t{constructor(e,i,o,r,a){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.fetch=a,this.ruleNameValid=!1,this.ruleType="",this.ruleName="",this.resetRuleType=new Re,this.conversionType={},this.sourceType=[],this.destinationType=[],this.viewRuleData=[],this.viewRuleFlag=!1,this.pgSQLToStandardTypeTypemap=new Map,this.standardTypeToPGSQLTypemap=new Map,this.conv={},this.isPostgreSQLDialect=!1,this.addGlobalDataTypeForm=this.fb.group({objectType:["column",ce.required],table:["allTable",ce.required],column:["allColumn",ce.required],sourceType:["",ce.required],destinationType:["",ce.required]})}ngOnInit(){this.data.typeMap.subscribe({next:e=>{this.conversionType=e,this.sourceType=Object.keys(this.conversionType)}}),this.data.conv.subscribe({next:e=>{this.conv=e,this.isPostgreSQLDialect="postgresql"===this.conv.SpDialect}}),this.conversion.pgSQLToStandardTypeTypeMap.subscribe(e=>{this.pgSQLToStandardTypeTypemap=e}),this.conversion.standardTypeToPGSQLTypeMap.subscribe(e=>{this.standardTypeToPGSQLTypemap=e}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.setViewRuleData(this.viewRuleData)})})}setViewRuleData(e){if(this.ruleId=e?.Id,this.addGlobalDataTypeForm.controls.sourceType.setValue(Object.keys(e?.Data)[0]),this.updateDestinationType(Object.keys(e?.Data)[0]),this.isPostgreSQLDialect){let i=this.standardTypeToPGSQLTypemap.get(Object.values(this.viewRuleData?.Data)[0]);this.addGlobalDataTypeForm.controls.destinationType.setValue(void 0===i?Object.values(this.viewRuleData?.Data)[0]:i)}else this.addGlobalDataTypeForm.controls.destinationType.setValue(Object.values(this.viewRuleData?.Data)[0]);this.addGlobalDataTypeForm.disable()}formSubmit(){const e=this.addGlobalDataTypeForm.value,i=e.sourceType,o={};if(this.isPostgreSQLDialect){let r=this.pgSQLToStandardTypeTypemap.get(e.destinationType);o[i]=void 0===r?e.destinationType:r}else o[i]=e.destinationType;this.applyRule(o),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}updateDestinationType(e){const i=this.conversionType[e],o=[];i?.forEach(r=>{o.push(r.DisplayT)}),this.destinationType=o}applyRule(e){this.data.applyRule({Name:this.ruleName,Type:"global_datatype_change",ObjectType:"Column",AssociatedObjects:"All Columns",Enabled:!0,Data:e,Id:""})}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(ba),_($i),_(Xn),_(hc),_(zn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-edit-global-datatype-form"]],inputs:{ruleNameValid:"ruleNameValid",ruleType:"ruleType",ruleName:"ruleName"},outputs:{resetRuleType:"resetRuleType"},decls:34,vars:5,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","objectType","required","true",1,"input-field"],["value","column"],["matSelect","","formControlName","table","required","true",1,"input-field"],["value","allTable"],["matSelect","","formControlName","column","required","true",1,"input-field"],["value","allColumn"],["matSelect","","formControlName","sourceType","required","true",1,"input-field",3,"selectionChange"],["sourceField",""],[3,"value",4,"ngFor","ngForOf"],["appearance","outline",4,"ngIf"],[4,"ngIf"],[3,"value"],["matSelect","","formControlName","destinationType","required","true",1,"input-field"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){if(1&i){const r=_e();d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"For object type"),l(),d(4,"mat-select",2)(5,"mat-option",3),h(6,"Column"),l()()(),d(7,"h3"),h(8,"When"),l(),d(9,"mat-form-field",1)(10,"mat-label"),h(11,"Table is"),l(),d(12,"mat-select",4)(13,"mat-option",5),h(14,"All tables"),l()()(),d(15,"mat-form-field",1)(16,"mat-label"),h(17,"and column is"),l(),d(18,"mat-select",6)(19,"mat-option",7),h(20,"All column"),l()()(),d(21,"h3"),h(22,"Convert from"),l(),d(23,"mat-form-field",1)(24,"mat-label"),h(25,"Source data type"),l(),d(26,"mat-select",8,9),N("selectionChange",function(){ae(r);const s=Rt(27);return se(o.updateDestinationType(s.value))}),y(28,jme,2,2,"mat-option",10),l()(),d(29,"h3"),h(30,"Convert to"),l(),y(31,Hme,5,1,"mat-form-field",11)(32,Ume,3,1,"div",12)(33,$me,3,0,"div",12),l()}if(2&i){const r=Rt(27);f("formGroup",o.addGlobalDataTypeForm),m(28),f("ngForOf",o.sourceType),m(3),f("ngIf",r.selected),m(),f("ngIf",!o.viewRuleFlag),m(),f("ngIf",o.viewRuleFlag)}},dependencies:[dn,Tt,Yt,Ri,Pi,uo,En,xi,Ui,Bo,Ai,Yi],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;padding:0}"]})}return t})();function Wme(t,n){if(1&t&&(d(0,"mat-option",10),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Ne(e)}}function qme(t,n){if(1&t&&(d(0,"mat-option",10),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Ne(e.name)}}function Kme(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",11),N("click",function(){return ae(e),se(w().formSubmit())}),h(2," ADD RULE "),l()()}if(2&t){const e=w();m(),f("disabled",!(e.editColMaxLengthForm.valid&&e.ruleNameValid))}}function Zme(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",12),N("click",function(){return ae(e),se(w().deleteRule())}),h(2,"DELETE RULE"),l()()}}let Yme=(()=>{class t{constructor(e,i,o,r){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Re,this.ruleId="",this.tableNames=[],this.viewRuleData=[],this.viewRuleFlag=!1,this.conv={},this.spTypes=[],this.hintlabel="",this.editColMaxLengthForm=this.fb.group({tableName:["",ce.required],column:["allColumn",ce.required],spDataType:["",ce.required],maxColLength:["",[ce.required,ce.pattern("([1-9][0-9]*|MAX)")]]})}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.tableNames=Object.keys(e.SpSchema).map(i=>e.SpSchema[i].Name),this.tableNames.push("All tables"),"postgresql"===this.conv.SpDialect?(this.spTypes=[{name:"VARCHAR",value:"STRING"}],this.hintlabel="Max "+Sn.StringMaxLength+" for VARCHAR"):(this.spTypes=[{name:"STRING",value:"STRING"},{name:"BYTES",value:"BYTES"}],this.hintlabel="Max "+Sn.StringMaxLength+" for STRING and "+Sn.ByteMaxLength+" for BYTES")}}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{if(this.viewRuleData=i,this.viewRuleData){this.ruleId=this.viewRuleData?.Id;let o=this.viewRuleData?.AssociatedObjects;this.editColMaxLengthForm.controls.tableName.setValue(o),this.editColMaxLengthForm.controls.spDataType.setValue(this.viewRuleData?.Data?.spDataType),this.editColMaxLengthForm.controls.maxColLength.setValue(this.viewRuleData?.Data?.spColMaxLength),this.editColMaxLengthForm.disable()}})})}formSubmit(){const e=this.editColMaxLengthForm.value;(("STRING"===e.spDataType||"VARCHAR"===e.spDataType)&&e.spColMaxLength>Sn.StringMaxLength||"BYTES"===e.spDataType&&e.spColMaxLength>Sn.ByteMaxLength)&&(e.spColMaxLength=Sn.StorageMaxLength);const i={spDataType:e.spDataType,spColMaxLength:e.maxColLength};let r=this.conversion.getTableIdFromSpName(e.tableName,this.conv);""===r&&(r="All tables"),this.data.applyRule({Name:this.ruleName,Type:"edit_column_max_length",ObjectType:"Table",AssociatedObjects:r,Enabled:!0,Data:i,Id:""}),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(ba),_($i),_(Xn),_(hc))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-edit-column-max-length"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:23,vars:6,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","tableName","required","true",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],["matSelect","","formControlName","column","required","true",1,"input-field"],["value","allColumn"],["matSelect","","formControlName","spDataType","required","true",1,"input-field"],["appearance","outline",3,"hintLabel"],["matInput","","formControlName","maxColLength",1,"input-field"],[4,"ngIf"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"Table is"),l(),d(4,"mat-select",2),y(5,Wme,2,2,"mat-option",3),l()(),d(6,"mat-form-field",1)(7,"mat-label"),h(8,"and column is"),l(),d(9,"mat-select",4)(10,"mat-option",5),h(11,"All column"),l()()(),d(12,"mat-form-field",1)(13,"mat-label"),h(14,"and Spanner Type is"),l(),d(15,"mat-select",6),y(16,qme,2,2,"mat-option",3),l()(),d(17,"mat-form-field",7)(18,"mat-label"),h(19,"Max column length"),l(),D(20,"input",8),l(),y(21,Kme,3,1,"div",9)(22,Zme,3,0,"div",9),l()),2&i&&(f("formGroup",o.editColMaxLengthForm),m(5),f("ngForOf",o.tableNames),m(11),f("ngForOf",o.spTypes),m(),f("hintLabel",o.hintlabel),m(4),f("ngIf",!o.viewRuleFlag),m(),f("ngIf",o.viewRuleFlag))},dependencies:[dn,Tt,Yt,Ri,Pi,rn,uo,En,Oi,xi,Ui,Bo,Ai,Yi]})}return t})();function Qme(t,n){if(1&t&&(d(0,"mat-option",7),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Ne(e.display)}}function Xme(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",8),N("click",function(){return ae(e),se(w().formSubmit())}),h(2," ADD RULE "),l()()}if(2&t){const e=w();m(),f("disabled",!(e.addShardIdPrimaryKeyForm.valid&&e.ruleNameValid))}}function Jme(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",9),N("click",function(){return ae(e),se(w().deleteRule())}),h(2,"DELETE RULE"),l()()}}let epe=(()=>{class t{constructor(e,i,o){this.fb=e,this.data=i,this.sidenav=o,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Re,this.viewRuleFlag=!1,this.viewRuleData={},this.primaryKeyOrder=[{value:!0,display:"At the beginning"},{value:!1,display:"At the end"}],this.addShardIdPrimaryKeyForm=this.fb.group({table:["allTable",ce.required],primaryKeyOrder:["",ce.required]})}ngOnInit(){this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&(this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.setViewRuleData(this.viewRuleData)}),this.addShardIdPrimaryKeyForm.disable())})}formSubmit(){this.data.applyRule({Name:this.ruleName,Type:"add_shard_id_primary_key",AssociatedObjects:"All Tables",Enabled:!0,Data:{AddedAtTheStart:this.addShardIdPrimaryKeyForm.value.primaryKeyOrder},Id:""}),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}setViewRuleData(e){this.ruleId=e?.Id,this.addShardIdPrimaryKeyForm.controls.primaryKeyOrder.setValue(e?.Data?.AddedAtTheStart)}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(ba),_($i),_(Xn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-add-shard-id-primary-key"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:14,vars:4,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","table","required","true",1,"input-field"],["value","allTable"],["matSelect","","formControlName","primaryKeyOrder","required","true",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"Table is"),l(),d(4,"mat-select",2)(5,"mat-option",3),h(6,"All tables"),l()()(),d(7,"mat-form-field",1)(8,"mat-label"),h(9,"Order in Primary Key"),l(),d(10,"mat-select",4),y(11,Qme,2,2,"mat-option",5),l()(),y(12,Xme,3,1,"div",6)(13,Jme,3,0,"div",6),l()),2&i&&(f("formGroup",o.addShardIdPrimaryKeyForm),m(11),f("ngForOf",o.primaryKeyOrder),m(),f("ngIf",!o.viewRuleFlag),m(),f("ngIf",o.viewRuleFlag))},dependencies:[dn,Tt,Yt,Ri,Pi,uo,En,xi,Ui,Bo,Ai,Yi]})}return t})();function tpe(t,n){1&t&&(d(0,"mat-option",18),h(1,"Add shard id column as primary key"),l())}function ipe(t,n){if(1&t){const e=_e();d(0,"div")(1,"app-edit-global-datatype-form",19),N("resetRuleType",function(){return ae(e),se(w().resetRuleType())}),l()()}if(2&t){const e=w();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function npe(t,n){if(1&t){const e=_e();d(0,"div")(1,"app-add-index-form",19),N("resetRuleType",function(){return ae(e),se(w().resetRuleType())}),l()()}if(2&t){const e=w();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function ope(t,n){if(1&t){const e=_e();d(0,"div")(1,"app-edit-column-max-length",19),N("resetRuleType",function(){return ae(e),se(w().resetRuleType())}),l()()}if(2&t){const e=w();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function rpe(t,n){if(1&t){const e=_e();d(0,"div")(1,"app-add-shard-id-primary-key",19),N("resetRuleType",function(){return ae(e),se(w().resetRuleType())}),l()()}if(2&t){const e=w();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}let ape=(()=>{class t{constructor(e,i){this.sidenav=e,this.data=i,this.currentRules=[],this.ruleForm=new ei({ruleName:new K("",[ce.required,ce.pattern("^[a-zA-Z].{0,59}$")]),ruleType:new K("",[ce.required])}),this.rulename="",this.ruletype="",this.viewRuleData=[],this.viewRuleFlag=!1,this.shardedMigration=!1}ngOnInit(){this.data.conv.subscribe({next:e=>{Object.keys(e.SpSchema),this.shardedMigration=!!e.IsSharded}}),this.ruleForm.valueChanges.subscribe(()=>{this.rulename=this.ruleForm.controls.ruleName?.value,this.ruletype=this.ruleForm.controls.ruleType?.value}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag?this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.setViewRuleData(this.viewRuleData)}):(this.ruleForm.enable(),this.ruleForm.controls.ruleType.setValue(""),this.sidenav.sidenavRuleType.subscribe(i=>{"addIndex"===i&&this.ruleForm.controls.ruleType.setValue("addIndex")}))})}setViewRuleData(e){this.ruleForm.disable(),this.ruleForm.controls.ruleName.setValue(e?.Name),this.ruleForm.controls.ruleType.setValue(this.getViewRuleType(this.viewRuleData?.Type))}closeSidenav(){this.sidenav.closeSidenav()}get ruleType(){return this.ruleForm.get("ruleType")?.value}resetRuleType(){this.ruleForm.controls.ruleType.setValue(""),this.ruleForm.controls.ruleName.setValue(""),this.ruleForm.markAsUntouched()}getViewRuleType(e){switch(e){case"add_index":return"addIndex";case"global_datatype_change":return"globalDataType";case"edit_column_max_length":return"changeMaxLength";case"add_shard_id_primary_key":return"addShardIdPrimaryKey"}return""}static#e=this.\u0275fac=function(i){return new(i||t)(_(Xn),_($i))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-rule"]],inputs:{currentRules:"currentRules"},decls:36,vars:8,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[3,"formGroup"],["hintLabel","Max. 60 characters, and starts with a letter.","appearance","outline"],["matInput","","formControlName","ruleName",1,"input-field"],["align","end"],["appearance","outline"],["matSelect","","formControlName","ruleType","required","true",1,"input-field"],["ruleType",""],["value","globalDataType"],["value","addIndex"],["value","changeMaxLength"],["value","addShardIdPrimaryKey",4,"ngIf"],[4,"ngIf"],["value","addShardIdPrimaryKey"],[3,"ruleNameValid","ruleName","ruleType","resetRuleType"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3),l(),d(4,"button",3),N("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),h(6,"close"),l()()(),d(7,"div",5)(8,"form",6)(9,"h3"),h(10,"Rule info"),l(),d(11,"mat-form-field",7)(12,"mat-label"),h(13,"Rule name"),l(),D(14,"input",8),d(15,"mat-hint",9),h(16),l()(),d(17,"h3"),h(18,"Rule definition"),l(),d(19,"mat-form-field",10)(20,"mat-label"),h(21,"Rule type"),l(),d(22,"mat-select",11,12)(24,"mat-option",13),h(25,"Change global data type"),l(),d(26,"mat-option",14),h(27,"Add Index"),l(),d(28,"mat-option",15),h(29,"Change default max column length"),l(),y(30,tpe,2,0,"mat-option",16),l()(),D(31,"br"),l(),y(32,ipe,2,3,"div",17)(33,npe,2,3,"div",17)(34,ope,2,3,"div",17)(35,rpe,2,3,"div",17),l()()),2&i){const r=Rt(23);m(3),Ne(o.viewRuleFlag?"View Rule":"Add Rule"),m(5),f("formGroup",o.ruleForm),m(8),ke("",(null==o.ruleForm.value.ruleName?null:o.ruleForm.value.ruleName.length)||0,"/60"),m(14),f("ngIf",o.shardedMigration),m(2),f("ngIf","globalDataType"===r.value),m(),f("ngIf","addIndex"===r.value),m(),f("ngIf","changeMaxLength"===r.value),m(),f("ngIf","addShardIdPrimaryKey"===r.value)}},dependencies:[Tt,_a,Ii,Ri,Pi,Nl,rn,uo,En,On,Oi,xi,Ui,Bo,Ai,Yi,Vme,Gme,Yme,epe],styles:["mat-mdc-form-field[_ngcontent-%COMP%]{padding-bottom:0} .mat-mdc-form-field-wrapper{padding-bottom:14px}"]})}return t})();function spe(t,n){1&t&&(d(0,"th",39),h(1,"Total tables"),l())}function cpe(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.total)}}function lpe(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",41),h(2," error "),l(),h(3,"Converted with many issues "),l())}function dpe(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.bad)}}function upe(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",42),h(2," warning"),l(),h(3,"Conversion some warnings & suggestions "),l())}function hpe(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.ok)}}function mpe(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",43),h(2," check_circle "),l(),h(3,"100% conversion "),l())}function ppe(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.good)}}function fpe(t,n){1&t&&D(0,"tr",44)}function gpe(t,n){1&t&&D(0,"tr",45)}function _pe(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function bpe(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.position," ")}}function vpe(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function ype(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.description," ")}}function wpe(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function xpe(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.tableCount," ")}}function Cpe(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function Dpe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function Spe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function kpe(t,n){if(1&t){const e=_e();d(0,"td",70)(1,"button",71),N("click",function(o){const a=ae(e).$implicit;return w(2).toggleRow(a),se(o.stopPropagation())}),y(2,Dpe,2,0,"mat-icon",37)(3,Spe,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=w(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function Tpe(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=w(2);Je("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),ke(" TABLES: ",e.tableNamesJoinedByComma,"")}}function Mpe(t,n){1&t&&D(0,"tr",44)}function Ipe(t,n){if(1&t){const e=_e();d(0,"tr",74),N("click",function(){const r=ae(e).$implicit;return se(w(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",w(2).isRowExpanded(e))}}function Epe(t,n){1&t&&D(0,"tr",75)}const Eg=()=>["expandedDetail"];function Ope(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",46),h(4," error "),l(),h(5," ERRORS "),l()(),d(6,"table",47),ye(7,48),y(8,_pe,2,0,"th",49)(9,bpe,2,1,"td",50),we(),ye(10,51),y(11,vpe,2,0,"th",52)(12,ype,2,1,"td",53),we(),ye(13,54),y(14,wpe,2,0,"th",55)(15,xpe,2,1,"td",56),we(),ye(16,57),y(17,Cpe,2,0,"th",58)(18,kpe,4,2,"td",59),we(),ye(19,60),y(20,Tpe,4,3,"td",59),we(),y(21,Mpe,1,0,"tr",34)(22,Ipe,1,2,"tr",61)(23,Epe,1,0,"tr",62),l()()),2&t){const e=w();m(6),f("dataSource",e.issueTableData_Errors),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",Wo(4,Eg))}}function Ape(t,n){1&t&&D(0,"br")}function Ppe(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function Rpe(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.position," ")}}function Npe(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function Fpe(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.description," ")}}function Lpe(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function Bpe(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.tableCount," ")}}function Vpe(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function jpe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function zpe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function Hpe(t,n){if(1&t){const e=_e();d(0,"td",70)(1,"button",71),N("click",function(o){const a=ae(e).$implicit;return w(2).toggleRow(a),se(o.stopPropagation())}),y(2,jpe,2,0,"mat-icon",37)(3,zpe,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=w(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function Upe(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=w(2);Je("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),ke(" TABLES: ",e.tableNamesJoinedByComma,"")}}function $pe(t,n){1&t&&D(0,"tr",44)}function Gpe(t,n){if(1&t){const e=_e();d(0,"tr",74),N("click",function(){const r=ae(e).$implicit;return se(w(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",w(2).isRowExpanded(e))}}function Wpe(t,n){1&t&&D(0,"tr",75)}function qpe(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",76),h(4," warning "),l(),h(5," WARNINGS "),l()(),d(6,"table",47),ye(7,48),y(8,Ppe,2,0,"th",49)(9,Rpe,2,1,"td",50),we(),ye(10,51),y(11,Npe,2,0,"th",52)(12,Fpe,2,1,"td",53),we(),ye(13,54),y(14,Lpe,2,0,"th",55)(15,Bpe,2,1,"td",56),we(),ye(16,57),y(17,Vpe,2,0,"th",58)(18,Hpe,4,2,"td",59),we(),ye(19,60),y(20,Upe,4,3,"td",59),we(),y(21,$pe,1,0,"tr",34)(22,Gpe,1,2,"tr",61)(23,Wpe,1,0,"tr",62),l()()),2&t){const e=w();m(6),f("dataSource",e.issueTableData_Warnings),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",Wo(4,Eg))}}function Kpe(t,n){1&t&&D(0,"br")}function Zpe(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function Ype(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.position," ")}}function Qpe(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function Xpe(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.description," ")}}function Jpe(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function efe(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.tableCount," ")}}function tfe(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function ife(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function nfe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function ofe(t,n){if(1&t){const e=_e();d(0,"td",70)(1,"button",71),N("click",function(o){const a=ae(e).$implicit;return w(2).toggleRow(a),se(o.stopPropagation())}),y(2,ife,2,0,"mat-icon",37)(3,nfe,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=w(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function rfe(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=w(2);Je("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),ke(" TABLES: ",e.tableNamesJoinedByComma,"")}}function afe(t,n){1&t&&D(0,"tr",44)}function sfe(t,n){if(1&t){const e=_e();d(0,"tr",74),N("click",function(){const r=ae(e).$implicit;return se(w(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",w(2).isRowExpanded(e))}}function cfe(t,n){1&t&&D(0,"tr",75)}function lfe(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",77),h(4," wb_incandescent "),l(),h(5," SUGGESTIONS "),l()(),d(6,"table",47),ye(7,48),y(8,Zpe,2,0,"th",49)(9,Ype,2,1,"td",50),we(),ye(10,51),y(11,Qpe,2,0,"th",52)(12,Xpe,2,1,"td",53),we(),ye(13,54),y(14,Jpe,2,0,"th",55)(15,efe,2,1,"td",56),we(),ye(16,57),y(17,tfe,2,0,"th",58)(18,ofe,4,2,"td",59),we(),ye(19,60),y(20,rfe,4,3,"td",59),we(),y(21,afe,1,0,"tr",34)(22,sfe,1,2,"tr",61)(23,cfe,1,0,"tr",62),l()()),2&t){const e=w();m(6),f("dataSource",e.issueTableData_Suggestions),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",Wo(4,Eg))}}function dfe(t,n){1&t&&D(0,"br")}function ufe(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function hfe(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.position," ")}}function mfe(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function pfe(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.description," ")}}function ffe(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function gfe(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),ke(" ",e.tableCount," ")}}function _fe(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function bfe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function vfe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function yfe(t,n){if(1&t){const e=_e();d(0,"td",70)(1,"button",71),N("click",function(o){const a=ae(e).$implicit;return w(2).toggleRow(a),se(o.stopPropagation())}),y(2,bfe,2,0,"mat-icon",37)(3,vfe,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=w(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function wfe(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=w(2);Je("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),ke(" TABLES: ",e.tableNamesJoinedByComma,"")}}function xfe(t,n){1&t&&D(0,"tr",44)}function Cfe(t,n){if(1&t){const e=_e();d(0,"tr",74),N("click",function(){const r=ae(e).$implicit;return se(w(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",w(2).isRowExpanded(e))}}function Dfe(t,n){1&t&&D(0,"tr",75)}function Sfe(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",78),h(4," check_circle "),l(),h(5," NOTES "),l()(),d(6,"table",47),ye(7,48),y(8,ufe,2,0,"th",49)(9,hfe,2,1,"td",50),we(),ye(10,51),y(11,mfe,2,0,"th",52)(12,pfe,2,1,"td",53),we(),ye(13,54),y(14,ffe,2,0,"th",55)(15,gfe,2,1,"td",56),we(),ye(16,57),y(17,_fe,2,0,"th",58)(18,yfe,4,2,"td",59),we(),ye(19,60),y(20,wfe,4,3,"td",59),we(),y(21,xfe,1,0,"tr",34)(22,Cfe,1,2,"tr",61)(23,Dfe,1,0,"tr",62),l()()),2&t){const e=w();m(6),f("dataSource",e.issueTableData_Notes),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",Wo(4,Eg))}}function kfe(t,n){1&t&&D(0,"br")}function Tfe(t,n){1&t&&(d(0,"div",79)(1,"div",80),Xt(),d(2,"svg",81),D(3,"path",82),l()(),mr(),d(4,"div",83),h(5," Woohoo! No issues or suggestions"),D(6,"br"),h(7,"found. "),l(),D(8,"br"),l())}const Dx=t=>({"width.%":t});let Mfe=(()=>{class t{toggleRow(e){this.isRowExpanded(e)?this.expandedElements.delete(e):this.expandedElements.add(e)}isRowExpanded(e){return this.expandedElements.has(e)}constructor(e,i,o){this.sidenav=e,this.clickEvent=i,this.fetch=o,this.issueTableData_Errors=[],this.issueTableData_Warnings=[],this.issueTableData_Suggestions=[],this.issueTableData_Notes=[],this.columnsToDisplay=["position","description","tableCount"],this.columnsToDisplayWithExpand=[...this.columnsToDisplay,"expand"],this.expandedElements=new Set,this.srcDbType="",this.connectionDetail="",this.summaryText="",this.issueDescription={},this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentage={good:0,ok:0,bad:0},this.rateCountDataSource=[],this.rateCountDisplayedColumns=["total","bad","ok","good"],this.ratePcDataSource=[],this.ratePcDisplayedColumns=["bad","ok","good"]}ngOnInit(){this.clickEvent.viewAssesment.subscribe(e=>{this.srcDbType=e.srcDbType,this.connectionDetail=e.connectionDetail,this.conversionRateCount=e.conversionRates;let i=this.conversionRateCount.good+this.conversionRateCount.ok+this.conversionRateCount.bad;if(i>0)for(let o in this.conversionRatePercentage)this.conversionRatePercentage[o]=Number((this.conversionRateCount[o]/i*100).toFixed(2));i>0&&this.setRateCountDataSource(i),this.fetch.getDStructuredReport().subscribe({next:o=>{this.summaryText=o.summary.text}}),this.issueTableData={position:0,description:"",tableCount:0,tableNamesJoinedByComma:""},this.fetch.getIssueDescription().subscribe({next:o=>{this.issueDescription=o,this.generateIssueReport()}})})}closeSidenav(){this.sidenav.closeSidenav()}setRateCountDataSource(e){this.rateCountDataSource=[],this.rateCountDataSource.push({total:e,bad:this.conversionRateCount.bad,ok:this.conversionRateCount.ok,good:this.conversionRateCount.good})}downloadStructuredReport(){var e=document.createElement("a");this.fetch.getDStructuredReport().subscribe({next:i=>{let o=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.href="data:text;charset=utf-8,"+encodeURIComponent(o),e.download=`${i.summary.dbName}_migration_structuredReport.json`,e.click()}})}downloadTextReport(){var e=document.createElement("a");this.fetch.getDTextReport().subscribe({next:i=>{let o=this.connectionDetail;e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${o}_migration_textReport.txt`,e.click()}})}downloadReports(){let e=new EN;this.fetch.getDStructuredReport().subscribe({next:i=>{let o=i.summary.dbName,r=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.file(o+"_migration_structuredReport.json",r),this.fetch.getDTextReport().subscribe({next:s=>{e.file(o+"_migration_textReport.txt",s),e.generateAsync({type:"blob"}).then(c=>{var u=document.createElement("a");u.href=URL.createObjectURL(c),u.download=`${o}_reports`,u.click()})}})}})}generateIssueReport(){this.fetch.getDStructuredReport().subscribe({next:e=>{let i=e.tableReports;var o={errors:new Map,warnings:new Map,suggestions:new Map,notes:new Map};for(var r of i){let c=r.issues;if(null==c)return this.issueTableData_Errors=[],this.issueTableData_Warnings=[],this.issueTableData_Suggestions=[],void(this.issueTableData_Notes=[]);for(var a of c){let u={tableCount:0,tableNames:new Set};switch(a.issueType){case"Error":case"Errors":this.appendIssueWithTableInformation(a.issueList,o.errors,u,r);break;case"Warnings":case"Warning":this.appendIssueWithTableInformation(a.issueList,o.warnings,u,r);break;case"Suggestion":case"Suggestions":this.appendIssueWithTableInformation(a.issueList,o.suggestions,u,r);break;case"Note":case"Notes":this.appendIssueWithTableInformation(a.issueList,o.notes,u,r)}}}let s=o.warnings;this.issueTableData_Warnings=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Warnings),s=o.errors,this.issueTableData_Errors=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Errors),s=o.suggestions,this.issueTableData_Suggestions=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Suggestions),s=o.notes,this.issueTableData_Notes=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Notes)}})}populateTableData(e,i){let o=1;for(let[r,a]of e.entries()){let s=[...a.tableNames.keys()];i.push({position:o,description:this.issueDescription[r],tableCount:a.tableCount,tableNamesJoinedByComma:s.join(", ")}),o+=1}}appendIssueWithTableInformation(e,i,o,r){for(var a of e)if(i.has(a.category)){let c=i.get(a.category),u={tableNames:new Set(c.tableNames),tableCount:c.tableNames.size};u.tableNames.add(r.srcTableName),u.tableCount=u.tableNames.size,i.set(a.category,u)}else{let c=o;c.tableNames.add(r.srcTableName),c.tableCount=c.tableNames.size,i.set(a.category,c)}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Xn),_(nr),_(zn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-view-assessment"]],decls:87,vars:25,consts:[[1,"sidenav-view-assessment-container"],[1,"sidenav-view-assessment-header"],[1,"mat-h2","header-title"],[1,"btn-source-select"],[1,"reportsButtons"],["mat-raised-button","","color","primary",1,"split-button-left",3,"click"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"content"],[1,"summaryHeader"],[1,"databaseName"],[1,"migrationDetails"],[1,"summaryText"],[1,"sidenav-percentage-bar"],[1,"danger-background",3,"ngStyle"],[1,"warning-background",3,"ngStyle"],[1,"success-background",3,"ngStyle"],[1,"sidenav-percentage-indent"],[1,"icon","danger"],[1,"icon","warning"],[1,"icon","success"],[1,"sidenav-title"],["mat-table","",1,"sidenav-conversionByTable",3,"dataSource"],["matColumnDef","total"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","cells",4,"matCellDef"],["matColumnDef","bad",1,"bad"],["matColumnDef","ok"],["matColumnDef","good"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"issue-report"],[4,"ngIf"],["class","no-issue-container",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"cells"],[1,"icon","danger","icon-size","icons"],[1,"icon","warning","icon-size","icons"],[1,"icon","success","icon-size","icons"],["mat-header-row",""],["mat-row",""],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above",1,"danger"],["mat-table","","multiTemplateDataRows","",1,"sidenav-databaseDefinitions",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","","class","mat-position",4,"matHeaderCellDef"],["mat-cell","","class","mat-position",4,"matCellDef"],["matColumnDef","description"],["mat-header-cell","","class","mat-description",4,"matHeaderCellDef"],["mat-cell","","class","mat-description",4,"matCellDef"],["matColumnDef","tableCount"],["mat-header-cell","","class","mat-tableCount",4,"matHeaderCellDef"],["mat-cell","","class","mat-tableCount",4,"matCellDef"],["matColumnDef","expand"],["mat-header-cell","","aria-label","row actions",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-row","","class","example-element-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"mat-position"],["mat-cell","",1,"mat-position"],["mat-header-cell","",1,"mat-description"],["mat-cell","",1,"mat-description"],["mat-header-cell","",1,"mat-tableCount"],["mat-cell","",1,"mat-tableCount"],["mat-header-cell","","aria-label","row actions"],["mat-cell",""],["mat-icon-button","","aria-label","expand row",3,"click"],[1,"example-element-detail",3,"ngClass"],[1,"example-element-description"],["mat-row","",1,"example-element-row",3,"click"],["mat-row","",1,"example-detail-row"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above",1,"warning"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above",1,"suggestion"],["matTooltip","Note : This is informational and you don't need to do anything.","matTooltipPosition","above",1,"success"],[1,"no-issue-container"],[1,"no-issue-icon-container"],["width","36","height","36","viewBox","0 0 24 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.8332 0.69873C16.0051 7.45842 16.2492 9.44782 10.4672 10.2012C16.1511 11.1242 16.2329 13.2059 16.8332 19.7037C17.6237 13.1681 17.4697 11.2106 23.1986 10.2012C17.4247 9.45963 17.6194 7.4505 16.8332 0.69873ZM4.23739 0.872955C3.79064 4.52078 3.92238 5.59467 0.802246 6.00069C3.86944 6.49885 3.91349 7.62218 4.23739 11.1284C4.66397 7.60153 4.581 6.54497 7.67271 6.00069C4.55696 5.60052 4.66178 4.51623 4.23739 0.872955ZM7.36426 11.1105C7.05096 13.6683 7.14331 14.4212 4.95554 14.7061C7.10612 15.0553 7.13705 15.8431 7.36426 18.3017C7.66333 15.8288 7.60521 15.088 9.77298 14.7061C7.58818 14.4255 7.66177 13.6653 7.36426 11.1105Z","fill","#3367D6"],[1,"no-issue-message"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3,"Assessment report"),l(),d(4,"div",3)(5,"span",4)(6,"button",5),N("click",function(){return o.downloadReports()}),h(7," DOWNLOAD REPORTS "),l(),d(8,"button",6)(9,"mat-icon",7),h(10,"expand_more"),l()(),d(11,"mat-menu",8,9)(13,"button",10),N("click",function(){return o.downloadTextReport()}),h(14," Download Text Report "),l(),d(15,"button",10),N("click",function(){return o.downloadStructuredReport()}),h(16," Download Structured Report "),l()()(),d(17,"button",11),N("click",function(){return o.closeSidenav()}),d(18,"mat-icon",12),h(19,"close"),l()()()(),d(20,"div",13)(21,"div",14)(22,"p",15),h(23),l(),d(24,"p",16),h(25),d(26,"mat-icon"),h(27,"arrow_right_alt"),l(),h(28," Spanner)"),l()(),d(29,"p",17),h(30),l(),d(31,"mat-card")(32,"div",18),D(33,"div",19)(34,"div",20)(35,"div",21),l(),D(36,"hr")(37,"br"),d(38,"div",22)(39,"span")(40,"mat-icon",23),h(41," circle "),l(),d(42,"span"),h(43," Not a great conversion"),l()(),d(44,"span")(45,"mat-icon",24),h(46," circle "),l(),d(47,"span"),h(48," Converted with warnings"),l()(),d(49,"span")(50,"mat-icon",25),h(51," circle "),l(),d(52,"span"),h(53," Converted automatically"),l()()()(),D(54,"br"),d(55,"h3",26),h(56,"Conversion status by table"),l(),d(57,"table",27),ye(58,28),y(59,spe,2,0,"th",29)(60,cpe,2,1,"td",30),we(),ye(61,31),y(62,lpe,4,0,"th",29)(63,dpe,2,1,"td",30),we(),ye(64,32),y(65,upe,4,0,"th",29)(66,hpe,2,1,"td",30),we(),ye(67,33),y(68,mpe,4,0,"th",29)(69,ppe,2,1,"td",30),we(),y(70,fpe,1,0,"tr",34)(71,gpe,1,0,"tr",35),l(),D(72,"br"),d(73,"h3"),h(74,"Summarized Table Report"),l(),d(75,"div",36),y(76,Ope,24,5,"mat-expansion-panel",37)(77,Ape,1,0,"br",37)(78,qpe,24,5,"mat-expansion-panel",37)(79,Kpe,1,0,"br",37)(80,lfe,24,5,"mat-expansion-panel",37)(81,dfe,1,0,"br",37)(82,Sfe,24,5,"mat-expansion-panel",37)(83,kfe,1,0,"br",37)(84,Tfe,9,0,"div",38),D(85,"br"),l(),D(86,"br"),l()()),2&i){const r=Rt(12);m(8),f("matMenuTriggerFor",r),m(15),Ne(o.connectionDetail),m(2),ke(" \xa0 (",o.srcDbType," "),m(5),Ne(o.summaryText),m(3),f("ngStyle",ui(19,Dx,o.conversionRatePercentage.bad)),m(),f("ngStyle",ui(21,Dx,o.conversionRatePercentage.ok)),m(),f("ngStyle",ui(23,Dx,o.conversionRatePercentage.good)),m(22),f("dataSource",o.rateCountDataSource),m(13),f("matHeaderRowDef",o.rateCountDisplayedColumns),m(),f("matRowDefColumns",o.rateCountDisplayedColumns),m(5),f("ngIf",o.issueTableData_Errors.length),m(),f("ngIf",o.issueTableData_Errors.length),m(),f("ngIf",o.issueTableData_Warnings.length),m(),f("ngIf",o.issueTableData_Warnings.length),m(),f("ngIf",o.issueTableData_Suggestions.length),m(),f("ngIf",o.issueTableData_Suggestions.length),m(),f("ngIf",o.issueTableData_Notes.length),m(),f("ngIf",o.issueTableData_Notes.length),m(),f("ngIf",!(o.issueTableData_Notes.length||o.issueTableData_Suggestions.length||o.issueTableData_Warnings.length||o.issueTableData_Errors.length))}},dependencies:[vr,Tt,yI,Yt,_a,Ii,$u,Vl,xa,jl,ps,ka,fs,Ta,Sa,gs,Ma,Ia,_s,bs,Dw,_P,KQ,Dn],styles:["table.mat-mdc-table[_ngcontent-%COMP%]{width:100%}.icon-size[_ngcontent-%COMP%]{font-size:1.2em;text-align:center;margin-top:8px;margin-left:10px;vertical-align:inherit}.mat-mdc-header-cell[_ngcontent-%COMP%]{border-style:none}.icons[_ngcontent-%COMP%]{border-left:1px solid rgb(208,204,204);padding-left:10px}.cells[_ngcontent-%COMP%]{text-align:center}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%]{padding:7px 16px;display:flex;flex-direction:row;align-items:center;border-bottom:1px solid #d0cccc;justify-content:space-between}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{margin:0}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%]{vertical-align:middle}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .reportsButtons[_ngcontent-%COMP%]{white-space:nowrap;vertical-align:middle}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-left[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-right[_ngcontent-%COMP%]{width:30px!important;min-width:unset!important;padding:0 8px 0 2px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid #fafafa}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{margin-left:1.25px;padding:0;height:10px;vertical-align:text-top}"]})}return t})(),Ife=(()=>{class t{constructor(e,i,o,r){this.fetch=e,this.data=i,this.snack=o,this.sidenav=r,this.errMessage="",this.saveSessionForm=new ei({SessionName:new K("",[ce.required,ce.pattern("^[a-zA-Z][a-zA-Z0-9_ -]{0,59}$")]),EditorName:new K("",[ce.required,ce.pattern("^[a-zA-Z][a-zA-Z0-9_ -]{0,59}$")]),DatabaseName:new K("",[ce.required,ce.pattern("^[a-zA-Z][a-zA-Z0-9_-]{0,59}$")]),Notes:new K("")})}saveSession(){let e=this.saveSessionForm.value,i={SessionName:e.SessionName.trim(),EditorName:e.EditorName.trim(),DatabaseName:e.DatabaseName.trim(),Notes:""===e.Notes?.trim()||null===e.Notes?[""]:e.Notes?.split("\n")};this.fetch.saveSession(i).subscribe({next:o=>{this.data.getAllSessions(),this.snack.openSnackBar("Session saved successfully","Close",5)},error:o=>{this.snack.openSnackBar(o.error,"Close")}}),this.saveSessionForm.reset(),this.saveSessionForm.markAsUntouched(),this.closeSidenav()}ngOnInit(){this.sidenav.sidenavDatabaseName.subscribe({next:e=>{this.saveSessionForm.controls.DatabaseName.setValue(e)}})}closeSidenav(){this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(zn),_($i),_(ir),_(Xn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-save-session"]],decls:40,vars:5,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[1,"save-session-form",3,"formGroup"],["hintLabel","Letters, numbers, hyphen, space and underscore allowed. Max. 60 characters, and starts with a letter.","appearance","outline"],["matInput","","placeholder","mysession","type","text","formControlName","SessionName","matTooltip","User can view saved sessions under session history section","matTooltipPosition","above"],["align","end"],["hintLabel","Letters, numbers, hyphen, space and underscore allowed. Max. 60 characters, and starts with a letter.","appearance","outline",1,"full-width"],["matInput","","placeholder","editor name","type","text","formControlName","EditorName"],["hintLabel","Letters, numbers, hyphen and underscores allowed. Max. 60 characters, and starts with a letter.","appearance","outline",1,"full-width"],["matInput","","type","text","formControlName","DatabaseName"],["appearance","outline",1,"full-width"],["rows","7","matInput","","placeholder","added new index","type","text","formControlName","Notes"],[1,"sidenav-footer"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3,"Save Session"),l(),d(4,"button",3),N("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),h(6,"close"),l()()(),d(7,"div",5)(8,"h3"),h(9,"Session Details"),l(),d(10,"form",6)(11,"mat-form-field",7)(12,"mat-label"),h(13,"Session Name"),l(),D(14,"input",8),d(15,"mat-hint",9),h(16),l()(),D(17,"br"),d(18,"mat-form-field",10)(19,"mat-label"),h(20,"Editor Name"),l(),D(21,"input",11),d(22,"mat-hint",9),h(23),l()(),D(24,"br"),d(25,"mat-form-field",12)(26,"mat-label"),h(27,"Database Name"),l(),D(28,"input",13),d(29,"mat-hint",9),h(30),l()(),D(31,"br"),d(32,"mat-form-field",14)(33,"mat-label"),h(34,"Notes"),l(),D(35,"textarea",15),l(),D(36,"br"),l()(),d(37,"div",16)(38,"button",17),N("click",function(){return o.saveSession()}),h(39," Save Session "),l()()()),2&i&&(m(10),f("formGroup",o.saveSessionForm),m(6),ke("",(null==o.saveSessionForm.value.SessionName?null:o.saveSessionForm.value.SessionName.length)||0,"/60"),m(7),ke("",(null==o.saveSessionForm.value.EditorName?null:o.saveSessionForm.value.EditorName.length)||0,"/60"),m(7),ke("",(null==o.saveSessionForm.value.DatabaseName?null:o.saveSessionForm.value.DatabaseName.length)||0,"/60"),m(8),f("disabled",!o.saveSessionForm.valid))},dependencies:[Yt,_a,Ii,Ri,Pi,Nl,rn,On,Oi,xi,Ui,Ai,Yi,Dn],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{padding-bottom:10px}"]})}return t})();function Efe(t,n){1&t&&(d(0,"th",9),h(1,"Column"),l())}function Ofe(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.ColumnName)}}function Afe(t,n){1&t&&(d(0,"th",9),h(1,"Type"),l())}function Pfe(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.Type)}}function Rfe(t,n){1&t&&(d(0,"th",9),h(1,"Updated Column"),l())}function Nfe(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.UpdateColumnName)}}function Ffe(t,n){1&t&&(d(0,"th",9),h(1,"Updated Type"),l())}function Lfe(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Ne(e.UpdateType)}}function Bfe(t,n){1&t&&D(0,"tr",11)}function Vfe(t,n){1&t&&D(0,"tr",12)}let jfe=(()=>{class t{constructor(){this.tableChange={InterleaveColumnChanges:[],Table:""},this.dataSource=[],this.displayedColumns=["ColumnName","Type","UpdateColumnName","UpdateType"]}ngOnInit(){}ngOnChanges(e){this.tableChange=e.tableChange?.currentValue||this.tableChange,this.dataSource=this.tableChange.InterleaveColumnChanges}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-table-column-changes-preview"]],inputs:{tableChange:"tableChange"},features:[fi],decls:15,vars:3,consts:[["mat-table","",1,"object-full-width","margin-bot-1",3,"dataSource"],["matColumnDef","ColumnName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Type"],["matColumnDef","UpdateColumnName"],["matColumnDef","UpdateType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(i,o){1&i&&(d(0,"table",0),ye(1,1),y(2,Efe,2,0,"th",2)(3,Ofe,2,1,"td",3),we(),ye(4,4),y(5,Afe,2,0,"th",2)(6,Pfe,2,1,"td",3),we(),ye(7,5),y(8,Rfe,2,0,"th",2)(9,Nfe,2,1,"td",3),we(),ye(10,6),y(11,Ffe,2,0,"th",2)(12,Lfe,2,1,"td",3),we(),y(13,Bfe,1,0,"tr",7)(14,Vfe,1,0,"tr",8),l()),2&i&&(f("dataSource",o.dataSource),m(13),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns))},dependencies:[ps,ka,fs,Ta,Sa,gs,Ma,Ia,_s,bs],styles:[".margin-bot-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mat-mdc-header-row[_ngcontent-%COMP%]{background-color:#f5f5f5}.mat-mdc-column-ColumnName[_ngcontent-%COMP%], .mat-mdc-column-UpdateColumnName[_ngcontent-%COMP%]{width:30%;max-width:30%}.mat-mdc-column-Type[_ngcontent-%COMP%], .mat-mdc-column-UpdateType[_ngcontent-%COMP%]{width:20%;max-width:20%}.mat-mdc-cell[_ngcontent-%COMP%]{padding-right:1rem;word-break:break-all}"]})}return t})();function zfe(t,n){1&t&&(d(0,"p"),h(1,"Review the DDL changes below."),l())}function Hfe(t,n){if(1&t&&(d(0,"p"),h(1," Changing an interleaved table will have an impact on the following tables : "),d(2,"b"),h(3),l()()),2&t){const e=w();m(3),Ne(e.tableList)}}function Ufe(t,n){if(1&t&&(d(0,"div",11)(1,"pre")(2,"code"),h(3),l()()()),2&t){const e=w();m(3),Ne(e.ddl)}}function $fe(t,n){if(1&t&&(ye(0),d(1,"h4"),h(2),l(),D(3,"app-table-column-changes-preview",14),we()),2&t){const e=n.$implicit,i=n.index,o=w(2);m(2),Ne(o.tableNames[i]),m(),f("tableChange",e)}}function Gfe(t,n){if(1&t&&(d(0,"div",12),y(1,$fe,4,2,"ng-container",13),l()),2&t){const e=w();m(),f("ngForOf",e.tableChanges)}}let Wfe=(()=>{class t{constructor(e,i,o,r){this.sidenav=e,this.tableUpdatePubSub=i,this.data=o,this.snackbar=r,this.ddl="",this.showDdl=!0,this.tableUpdateData={tableName:"",tableId:"",updateDetail:{UpdateCols:{}}},this.tableChanges=[],this.tableNames=[],this.tableList=""}ngOnInit(){this.tableUpdatePubSub.reviewTableChanges.subscribe(e=>{if(e.Changes&&e.Changes.length>0){this.showDdl=!1,this.tableChanges=e.Changes;const i=[];this.tableList="",this.tableChanges.forEach((o,r)=>{i.push(o.Table),this.tableList+=0==r?o.Table:", "+o.Table}),this.tableList+=".",this.tableNames=i}else this.showDdl=!0,this.ddl=e.DDL}),this.tableUpdatePubSub.tableUpdateDetail.subscribe(e=>{this.tableUpdateData=e})}updateTable(){this.data.updateTable(this.tableUpdateData.tableId,this.tableUpdateData.updateDetail).subscribe({next:e=>{""==e?(this.snackbar.openSnackBar(`Schema changes to table ${this.tableUpdateData.tableName} saved successfully`,"Close",5),0==this.showDdl&&1!=this.tableNames.length&&this.snackbar.openSnackBar(`Schema changes to tables ${this.tableNames[0]} and ${this.tableNames[1]} saved successfully`,"Close",5),this.closeSidenav()):this.snackbar.openSnackBar(e,"Close",5)}})}closeSidenav(){this.ddl="",this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Xn),_(wx),_($i),_(ir))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-review-changes"]],decls:17,vars:4,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[4,"ngIf"],["class","ddl-display",4,"ngIf"],["class","table-changes-display",4,"ngIf"],[1,"sidenav-footer"],["mat-raised-button","","color","primary",3,"click"],[1,"ddl-display"],[1,"table-changes-display"],[4,"ngFor","ngForOf"],[3,"tableChange"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3,"Review changes to your schema"),l(),d(4,"button",3),N("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),h(6,"close"),l()()(),D(7,"mat-divider"),d(8,"div",5),y(9,zfe,2,0,"p",6)(10,Hfe,4,1,"p",6)(11,Ufe,4,1,"div",7)(12,Gfe,2,1,"div",8),l(),D(13,"mat-divider"),d(14,"div",9)(15,"button",10),N("click",function(){return o.updateTable()}),h(16,"Confirm Conversion"),l()()()),2&i&&(m(9),f("ngIf",o.showDdl),m(),f("ngIf",!o.showDdl),m(),f("ngIf",o.showDdl),m(),f("ngIf",!o.showDdl))},dependencies:[dn,Tt,Yt,_a,Ii,wO,jfe],styles:[".sidenav-content[_ngcontent-%COMP%]{height:82%}.sidenav-content[_ngcontent-%COMP%] .ddl-display[_ngcontent-%COMP%]{height:90%;background-color:#dadada;padding:10px;overflow:auto}.sidenav-content[_ngcontent-%COMP%] .table-changes-display[_ngcontent-%COMP%]{height:90%;overflow:auto}"]})}return t})();function qfe(t,n){1&t&&D(0,"app-sidenav-rule")}function Kfe(t,n){1&t&&D(0,"app-sidenav-save-session")}function Zfe(t,n){1&t&&D(0,"app-sidenav-review-changes")}function Yfe(t,n){1&t&&D(0,"app-sidenav-view-assessment")}function Qfe(t,n){1&t&&D(0,"app-instruction")}const Xfe=(t,n,e)=>({"width-40pc":t,"width-50pc":n,"width-60pc":e});let Jfe=(()=>{class t{constructor(e){this.sidenavService=e,this.title="ui",this.showSidenav=!1,this.sidenavComponent=""}ngOnInit(){this.sidenavService.isSidenav.subscribe(e=>{this.showSidenav=e}),this.sidenavService.sidenavComponent.subscribe(e=>{this.sidenavComponent=e})}closeSidenav(){this.showSidenav=!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(Xn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-root"]],decls:14,vars:11,consts:[[1,"sidenav-container",3,"backdropClick"],["position","end","mode","over",3,"opened","ngClass"],["sidenav",""],[4,"ngIf"],[1,"sidenav-content"],[1,"appLoader"],[1,"padding-20"]],template:function(i,o){1&i&&(d(0,"mat-sidenav-container",0),N("backdropClick",function(){return o.closeSidenav()}),d(1,"mat-sidenav",1,2),y(3,qfe,1,0,"app-sidenav-rule",3)(4,Kfe,1,0,"app-sidenav-save-session",3)(5,Zfe,1,0,"app-sidenav-review-changes",3)(6,Yfe,1,0,"app-sidenav-view-assessment",3)(7,Qfe,1,0,"app-instruction",3),l(),d(8,"mat-sidenav-content",4),D(9,"app-header"),d(10,"div",5),D(11,"app-loader"),l(),d(12,"div",6),D(13,"router-outlet"),l()()()),2&i&&(m(),f("opened",o.showSidenav)("ngClass",zT(7,Xfe,"rule"===o.sidenavComponent||"saveSession"===o.sidenavComponent,"reviewChanges"===o.sidenavComponent,"assessment"===o.sidenavComponent||"instruction"===o.sidenavComponent)),m(2),f("ngIf","rule"===o.sidenavComponent),m(),f("ngIf","saveSession"==o.sidenavComponent),m(),f("ngIf","reviewChanges"==o.sidenavComponent),m(),f("ngIf","assessment"===o.sidenavComponent),m(),f("ngIf","instruction"===o.sidenavComponent))},dependencies:[vr,Tt,yg,uR,hR,Ww,MN,Ime,Ome,ape,Mfe,Ife,Wfe],styles:[".padding-20[_ngcontent-%COMP%]{padding:5px 0}.progress-bar-wrapper[_ngcontent-%COMP%]{background-color:#cbd0e9;height:2px}.progress-bar-wrapper[_ngcontent-%COMP%] .mat-mdc-progress-bar[_ngcontent-%COMP%], .appLoader[_ngcontent-%COMP%]{height:2px}mat-mdc-sidenav[_ngcontent-%COMP%]{width:30%;min-width:350px}.sidenav-container[_ngcontent-%COMP%]{height:100vh}.sidenav-container[_ngcontent-%COMP%] mat-mdc-sidenav[_ngcontent-%COMP%]{min-width:350px;border-radius:3px}.width-40pc[_ngcontent-%COMP%]{width:40%}.width-50pc[_ngcontent-%COMP%]{width:50%}.width-60pc[_ngcontent-%COMP%]{width:60%}"]})}return t})(),ege=(()=>{class t{constructor(e){this.loader=e,this.count=0}intercept(e,i){let o=!e.url.includes("/connect");return o&&(this.loader.startLoader(),this.count++),i.handle(e).pipe(Js(()=>{o&&this.count--,0==this.count&&this.loader.stopLoader()}))}static#e=this.\u0275fac=function(i){return new(i||t)(X(Tg))};static#t=this.\u0275prov=Se({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),tge=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=st({type:t,bootstrap:[Jfe]});static#i=this.\u0275inj=at({providers:[{provide:KE,useClass:ege,multi:!0}],imports:[KI,xme,m$,cte,cq,IK,bte,xte,Xoe,Ow]})}return t})();mH().bootstrapModule(tge).catch(t=>console.error(t))},304:cd=>{cd.exports=function G(Pe,Y,F){function P(U,W){if(!Y[U]){if(!Pe[U]){if(S)return S(U,!0);var $=new Error("Cannot find module '"+U+"'");throw $.code="MODULE_NOT_FOUND",$}var M=Y[U]={exports:{}};Pe[U][0].call(M.exports,function(B){return P(Pe[U][1][B]||B)},M,M.exports,G,Pe,Y,F)}return Y[U].exports}for(var S=void 0,A=0;A>4,B=1>6:64,k=2>2)+S.charAt(M)+S.charAt(B)+S.charAt(k));return R.join("")},Y.decode=function(A){var U,W,V,$,M,B,k=0,R=0,E="data:";if(A.substr(0,5)===E)throw new Error("Invalid base64 input, it looks like a data url.");var j,q=3*(A=A.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(A.charAt(A.length-1)===S.charAt(64)&&q--,A.charAt(A.length-2)===S.charAt(64)&&q--,q%1!=0)throw new Error("Invalid base64 input, bad content length.");for(j=P.uint8array?new Uint8Array(0|q):new Array(0|q);k>4,W=(15&$)<<4|(M=S.indexOf(A.charAt(k++)))>>2,V=(3&M)<<6|(B=S.indexOf(A.charAt(k++))),j[R++]=U,64!==M&&(j[R++]=W),64!==B&&(j[R++]=V);return j}},{"./support":30,"./utils":32}],2:[function(G,Pe,Y){"use strict";var F=G("./external"),P=G("./stream/DataWorker"),S=G("./stream/Crc32Probe"),A=G("./stream/DataLengthProbe");function U(W,V,$,M,B){this.compressedSize=W,this.uncompressedSize=V,this.crc32=$,this.compression=M,this.compressedContent=B}U.prototype={getContentWorker:function(){var W=new P(F.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new A("data_length")),V=this;return W.on("end",function(){if(this.streamInfo.data_length!==V.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),W},getCompressedWorker:function(){return new P(F.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},U.createWorkerFrom=function(W,V,$){return W.pipe(new S).pipe(new A("uncompressedSize")).pipe(V.compressWorker($)).pipe(new A("compressedSize")).withStreamInfo("compression",V)},Pe.exports=U},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(G,Pe,Y){"use strict";var F=G("./stream/GenericWorker");Y.STORE={magic:"\0\0",compressWorker:function(){return new F("STORE compression")},uncompressWorker:function(){return new F("STORE decompression")}},Y.DEFLATE=G("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(G,Pe,Y){"use strict";var F=G("./utils"),P=function(){for(var S,A=[],U=0;U<256;U++){S=U;for(var W=0;W<8;W++)S=1&S?3988292384^S>>>1:S>>>1;A[U]=S}return A}();Pe.exports=function(S,A){return void 0!==S&&S.length?"string"!==F.getTypeOf(S)?function(U,W,V,$){var M=P,B=0+V;U^=-1;for(var k=0;k>>8^M[255&(U^W[k])];return-1^U}(0|A,S,S.length):function(U,W,V,$){var M=P,B=0+V;U^=-1;for(var k=0;k>>8^M[255&(U^W.charCodeAt(k))];return-1^U}(0|A,S,S.length):0}},{"./utils":32}],5:[function(G,Pe,Y){"use strict";Y.base64=!1,Y.binary=!1,Y.dir=!1,Y.createFolders=!0,Y.date=null,Y.compression=null,Y.compressionOptions=null,Y.comment=null,Y.unixPermissions=null,Y.dosPermissions=null},{}],6:[function(G,Pe,Y){"use strict";var F;F=typeof Promise<"u"?Promise:G("lie"),Pe.exports={Promise:F}},{lie:37}],7:[function(G,Pe,Y){"use strict";var F=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",P=G("pako"),S=G("./utils"),A=G("./stream/GenericWorker"),U=F?"uint8array":"array";function W(V,$){A.call(this,"FlateWorker/"+V),this._pako=null,this._pakoAction=V,this._pakoOptions=$,this.meta={}}Y.magic="\b\0",S.inherits(W,A),W.prototype.processChunk=function(V){this.meta=V.meta,null===this._pako&&this._createPako(),this._pako.push(S.transformTo(U,V.data),!1)},W.prototype.flush=function(){A.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},W.prototype.cleanUp=function(){A.prototype.cleanUp.call(this),this._pako=null},W.prototype._createPako=function(){this._pako=new P[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var V=this;this._pako.onData=function($){V.push({data:$,meta:V.meta})}},Y.compressWorker=function(V){return new W("Deflate",V)},Y.uncompressWorker=function(){return new W("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(G,Pe,Y){"use strict";function F(M,B){var k,R="";for(k=0;k>>=8;return R}function P(M,B,k,R,E,j){var q,te,ee=M.file,Me=M.compression,xe=j!==U.utf8encode,Fe=S.transformTo("string",j(ee.name)),be=S.transformTo("string",U.utf8encode(ee.name)),Ge=ee.comment,ht=S.transformTo("string",j(Ge)),H=S.transformTo("string",U.utf8encode(Ge)),ve=be.length!==ee.name.length,C=H.length!==Ge.length,Te="",At="",Le="",Bt=ee.dir,Ve=ee.date,kt={crc32:0,compressedSize:0,uncompressedSize:0};B&&!k||(kt.crc32=M.crc32,kt.compressedSize=M.compressedSize,kt.uncompressedSize=M.uncompressedSize);var he=0;B&&(he|=8),xe||!ve&&!C||(he|=2048);var Qe,Nn,le=0,bt=0;Bt&&(le|=16),"UNIX"===E?(bt=798,le|=(Nn=Qe=ee.unixPermissions,Qe||(Nn=Bt?16893:33204),(65535&Nn)<<16)):(bt=20,le|=function(Qe){return 63&(Qe||0)}(ee.dosPermissions)),q=Ve.getUTCHours(),q<<=6,q|=Ve.getUTCMinutes(),q<<=5,q|=Ve.getUTCSeconds()/2,te=Ve.getUTCFullYear()-1980,te<<=4,te|=Ve.getUTCMonth()+1,te<<=5,te|=Ve.getUTCDate(),ve&&(At=F(1,1)+F(W(Fe),4)+be,Te+="up"+F(At.length,2)+At),C&&(Le=F(1,1)+F(W(ht),4)+H,Te+="uc"+F(Le.length,2)+Le);var it="";return it+="\n\0",it+=F(he,2),it+=Me.magic,it+=F(q,2),it+=F(te,2),it+=F(kt.crc32,4),it+=F(kt.compressedSize,4),it+=F(kt.uncompressedSize,4),it+=F(Fe.length,2),it+=F(Te.length,2),{fileRecord:V.LOCAL_FILE_HEADER+it+Fe+Te,dirRecord:V.CENTRAL_FILE_HEADER+F(bt,2)+it+F(ht.length,2)+"\0\0\0\0"+F(le,4)+F(R,4)+Fe+Te+ht}}var S=G("../utils"),A=G("../stream/GenericWorker"),U=G("../utf8"),W=G("../crc32"),V=G("../signature");function $(M,B,k,R){A.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=B,this.zipPlatform=k,this.encodeFileName=R,this.streamFiles=M,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}S.inherits($,A),$.prototype.push=function(M){var B=M.meta.percent||0,k=this.entriesCount,R=this._sources.length;this.accumulate?this.contentBuffer.push(M):(this.bytesWritten+=M.data.length,A.prototype.push.call(this,{data:M.data,meta:{currentFile:this.currentFile,percent:k?(B+100*(k-R-1))/k:100}}))},$.prototype.openedSource=function(M){this.currentSourceOffset=this.bytesWritten,this.currentFile=M.file.name;var B=this.streamFiles&&!M.file.dir;if(B){var k=P(M,B,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:k.fileRecord,meta:{percent:0}})}else this.accumulate=!0},$.prototype.closedSource=function(M){this.accumulate=!1;var R,B=this.streamFiles&&!M.file.dir,k=P(M,B,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(k.dirRecord),B)this.push({data:(R=M,V.DATA_DESCRIPTOR+F(R.crc32,4)+F(R.compressedSize,4)+F(R.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:k.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},$.prototype.flush=function(){for(var M=this.bytesWritten,B=0;B=this.index;A--)U=(U<<8)+this.byteAt(A);return this.index+=S,U},readString:function(S){return F.transformTo("string",this.readData(S))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var S=this.readInt(4);return new Date(Date.UTC(1980+(S>>25&127),(S>>21&15)-1,S>>16&31,S>>11&31,S>>5&63,(31&S)<<1))}},Pe.exports=P},{"../utils":32}],19:[function(G,Pe,Y){"use strict";var F=G("./Uint8ArrayReader");function P(S){F.call(this,S)}G("../utils").inherits(P,F),P.prototype.readData=function(S){this.checkOffset(S);var A=this.data.slice(this.zero+this.index,this.zero+this.index+S);return this.index+=S,A},Pe.exports=P},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(G,Pe,Y){"use strict";var F=G("./DataReader");function P(S){F.call(this,S)}G("../utils").inherits(P,F),P.prototype.byteAt=function(S){return this.data.charCodeAt(this.zero+S)},P.prototype.lastIndexOfSignature=function(S){return this.data.lastIndexOf(S)-this.zero},P.prototype.readAndCheckSignature=function(S){return S===this.readData(4)},P.prototype.readData=function(S){this.checkOffset(S);var A=this.data.slice(this.zero+this.index,this.zero+this.index+S);return this.index+=S,A},Pe.exports=P},{"../utils":32,"./DataReader":18}],21:[function(G,Pe,Y){"use strict";var F=G("./ArrayReader");function P(S){F.call(this,S)}G("../utils").inherits(P,F),P.prototype.readData=function(S){if(this.checkOffset(S),0===S)return new Uint8Array(0);var A=this.data.subarray(this.zero+this.index,this.zero+this.index+S);return this.index+=S,A},Pe.exports=P},{"../utils":32,"./ArrayReader":17}],22:[function(G,Pe,Y){"use strict";var F=G("../utils"),P=G("../support"),S=G("./ArrayReader"),A=G("./StringReader"),U=G("./NodeBufferReader"),W=G("./Uint8ArrayReader");Pe.exports=function(V){var $=F.getTypeOf(V);return F.checkSupport($),"string"!==$||P.uint8array?"nodebuffer"===$?new U(V):P.uint8array?new W(F.transformTo("uint8array",V)):new S(F.transformTo("array",V)):new A(V)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(G,Pe,Y){"use strict";Y.LOCAL_FILE_HEADER="PK\x03\x04",Y.CENTRAL_FILE_HEADER="PK\x01\x02",Y.CENTRAL_DIRECTORY_END="PK\x05\x06",Y.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",Y.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",Y.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(G,Pe,Y){"use strict";var F=G("./GenericWorker"),P=G("../utils");function S(A){F.call(this,"ConvertWorker to "+A),this.destType=A}P.inherits(S,F),S.prototype.processChunk=function(A){this.push({data:P.transformTo(this.destType,A.data),meta:A.meta})},Pe.exports=S},{"../utils":32,"./GenericWorker":28}],25:[function(G,Pe,Y){"use strict";var F=G("./GenericWorker"),P=G("../crc32");function S(){F.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}G("../utils").inherits(S,F),S.prototype.processChunk=function(A){this.streamInfo.crc32=P(A.data,this.streamInfo.crc32||0),this.push(A)},Pe.exports=S},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(G,Pe,Y){"use strict";var F=G("../utils"),P=G("./GenericWorker");function S(A){P.call(this,"DataLengthProbe for "+A),this.propName=A,this.withStreamInfo(A,0)}F.inherits(S,P),S.prototype.processChunk=function(A){A&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+A.data.length),P.prototype.processChunk.call(this,A)},Pe.exports=S},{"../utils":32,"./GenericWorker":28}],27:[function(G,Pe,Y){"use strict";var F=G("../utils"),P=G("./GenericWorker");function S(A){P.call(this,"DataWorker");var U=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,A.then(function(W){U.dataIsReady=!0,U.data=W,U.max=W&&W.length||0,U.type=F.getTypeOf(W),U.isPaused||U._tickAndRepeat()},function(W){U.error(W)})}F.inherits(S,P),S.prototype.cleanUp=function(){P.prototype.cleanUp.call(this),this.data=null},S.prototype.resume=function(){return!!P.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,F.delay(this._tickAndRepeat,[],this)),!0)},S.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(F.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},S.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var A=null,U=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":A=this.data.substring(this.index,U);break;case"uint8array":A=this.data.subarray(this.index,U);break;case"array":case"nodebuffer":A=this.data.slice(this.index,U)}return this.index=U,this.push({data:A,meta:{percent:this.max?this.index/this.max*100:0}})},Pe.exports=S},{"../utils":32,"./GenericWorker":28}],28:[function(G,Pe,Y){"use strict";function F(P){this.name=P||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}F.prototype={push:function(P){this.emit("data",P)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(P){this.emit("error",P)}return!0},error:function(P){return!this.isFinished&&(this.isPaused?this.generatedError=P:(this.isFinished=!0,this.emit("error",P),this.previous&&this.previous.error(P),this.cleanUp()),!0)},on:function(P,S){return this._listeners[P].push(S),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(P,S){if(this._listeners[P])for(var A=0;A "+P:P}},Pe.exports=F},{}],29:[function(G,Pe,Y){"use strict";var F=G("../utils"),P=G("./ConvertWorker"),S=G("./GenericWorker"),A=G("../base64"),U=G("../support"),W=G("../external"),V=null;if(U.nodestream)try{V=G("../nodejs/NodejsStreamOutputAdapter")}catch{}function M(B,k,R){var E=k;switch(k){case"blob":case"arraybuffer":E="uint8array";break;case"base64":E="string"}try{this._internalType=E,this._outputType=k,this._mimeType=R,F.checkSupport(E),this._worker=B.pipe(new P(E)),B.lock()}catch(j){this._worker=new S("error"),this._worker.error(j)}}M.prototype={accumulate:function(B){return function $(B,k){return new W.Promise(function(R,E){var j=[],q=B._internalType,te=B._outputType,ee=B._mimeType;B.on("data",function(Me,xe){j.push(Me),k&&k(xe)}).on("error",function(Me){j=[],E(Me)}).on("end",function(){try{var Me=function(xe,Fe,be){switch(xe){case"blob":return F.newBlob(F.transformTo("arraybuffer",Fe),be);case"base64":return A.encode(Fe);default:return F.transformTo(xe,Fe)}}(te,function(xe,Fe){var be,Ge=0,ht=null,H=0;for(be=0;be"u")Y.blob=!1;else{var F=new ArrayBuffer(0);try{Y.blob=0===new Blob([F],{type:"application/zip"}).size}catch{try{var P=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);P.append(F),Y.blob=0===P.getBlob("application/zip").size}catch{Y.blob=!1}}}try{Y.nodestream=!!G("readable-stream").Readable}catch{Y.nodestream=!1}},{"readable-stream":16}],31:[function(G,Pe,Y){"use strict";for(var F=G("./utils"),P=G("./support"),S=G("./nodejsUtils"),A=G("./stream/GenericWorker"),U=new Array(256),W=0;W<256;W++)U[W]=252<=W?6:248<=W?5:240<=W?4:224<=W?3:192<=W?2:1;function V(){A.call(this,"utf-8 decode"),this.leftOver=null}function $(){A.call(this,"utf-8 encode")}U[254]=U[254]=1,Y.utf8encode=function(M){return P.nodebuffer?S.newBufferFrom(M,"utf-8"):function(B){var k,R,E,j,q,te=B.length,ee=0;for(j=0;j>>6:(R<65536?k[q++]=224|R>>>12:(k[q++]=240|R>>>18,k[q++]=128|R>>>12&63),k[q++]=128|R>>>6&63),k[q++]=128|63&R);return k}(M)},Y.utf8decode=function(M){return P.nodebuffer?F.transformTo("nodebuffer",M).toString("utf-8"):function(B){var k,R,E,j,q=B.length,te=new Array(2*q);for(k=R=0;k>10&1023,te[R++]=56320|1023&E)}return te.length!==R&&(te.subarray?te=te.subarray(0,R):te.length=R),F.applyFromCharCode(te)}(M=F.transformTo(P.uint8array?"uint8array":"array",M))},F.inherits(V,A),V.prototype.processChunk=function(M){var B=F.transformTo(P.uint8array?"uint8array":"array",M.data);if(this.leftOver&&this.leftOver.length){if(P.uint8array){var k=B;(B=new Uint8Array(k.length+this.leftOver.length)).set(this.leftOver,0),B.set(k,this.leftOver.length)}else B=this.leftOver.concat(B);this.leftOver=null}var R=function(j,q){var te;for((q=q||j.length)>j.length&&(q=j.length),te=q-1;0<=te&&128==(192&j[te]);)te--;return te<0||0===te?q:te+U[j[te]]>q?te:q}(B),E=B;R!==B.length&&(P.uint8array?(E=B.subarray(0,R),this.leftOver=B.subarray(R,B.length)):(E=B.slice(0,R),this.leftOver=B.slice(R,B.length))),this.push({data:Y.utf8decode(E),meta:M.meta})},V.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Y.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},Y.Utf8DecodeWorker=V,F.inherits($,A),$.prototype.processChunk=function(M){this.push({data:Y.utf8encode(M.data),meta:M.meta})},Y.Utf8EncodeWorker=$},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(G,Pe,Y){"use strict";var F=G("./support"),P=G("./base64"),S=G("./nodejsUtils"),A=G("./external");function U(k){return k}function W(k,R){for(var E=0;E>8;this.dir=!!(16&this.externalFileAttributes),0==M&&(this.dosPermissions=63&this.externalFileAttributes),3==M&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var M=F(this.extraFields[1].value);this.uncompressedSize===P.MAX_VALUE_32BITS&&(this.uncompressedSize=M.readInt(8)),this.compressedSize===P.MAX_VALUE_32BITS&&(this.compressedSize=M.readInt(8)),this.localHeaderOffset===P.MAX_VALUE_32BITS&&(this.localHeaderOffset=M.readInt(8)),this.diskNumberStart===P.MAX_VALUE_32BITS&&(this.diskNumberStart=M.readInt(4))}},readExtraFields:function(M){var B,k,R,E=M.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});M.index+4>>6:(M<65536?$[R++]=224|M>>>12:($[R++]=240|M>>>18,$[R++]=128|M>>>12&63),$[R++]=128|M>>>6&63),$[R++]=128|63&M);return $},Y.buf2binstring=function(V){return W(V,V.length)},Y.binstring2buf=function(V){for(var $=new F.Buf8(V.length),M=0,B=$.length;M>10&1023,j[B++]=56320|1023&k)}return W(j,B)},Y.utf8border=function(V,$){var M;for(($=$||V.length)>V.length&&($=V.length),M=$-1;0<=M&&128==(192&V[M]);)M--;return M<0||0===M?$:M+A[V[M]]>$?M:$}},{"./common":41}],43:[function(G,Pe,Y){"use strict";Pe.exports=function(F,P,S,A){for(var U=65535&F|0,W=F>>>16&65535|0,V=0;0!==S;){for(S-=V=2e3>>1:P>>>1;S[A]=P}return S}();Pe.exports=function(P,S,A,U){var W=F,V=U+A;P^=-1;for(var $=U;$>>8^W[255&(P^S[$])];return-1^P}},{}],46:[function(G,Pe,Y){"use strict";var F,P=G("../utils/common"),S=G("./trees"),A=G("./adler32"),U=G("./crc32"),W=G("./messages"),V=0,M=0,B=-2,E=2,j=8,te=286,ee=30,Me=19,xe=2*te+1,Fe=15,be=3,Ge=258,ht=Ge+be+1,H=42,ve=113;function Bt(v,De){return v.msg=W[De],De}function Ve(v){return(v<<1)-(4v.avail_out&&(J=v.avail_out),0!==J&&(P.arraySet(v.output,De.pending_buf,De.pending_out,J,v.next_out),v.next_out+=J,De.pending_out+=J,v.total_out+=J,v.avail_out-=J,De.pending-=J,0===De.pending&&(De.pending_out=0))}function le(v,De){S._tr_flush_block(v,0<=v.block_start?v.block_start:-1,v.strstart-v.block_start,De),v.block_start=v.strstart,he(v.strm)}function bt(v,De){v.pending_buf[v.pending++]=De}function it(v,De){v.pending_buf[v.pending++]=De>>>8&255,v.pending_buf[v.pending++]=255&De}function Qe(v,De){var J,L,O=v.max_chain_length,Z=v.strstart,de=v.prev_length,Ee=v.nice_match,re=v.strstart>v.w_size-ht?v.strstart-(v.w_size-ht):0,je=v.window,Xe=v.w_mask,ze=v.prev,ut=v.strstart+Ge,ii=je[Z+de-1],Gt=je[Z+de];v.prev_length>=v.good_match&&(O>>=2),Ee>v.lookahead&&(Ee=v.lookahead);do{if(je[(J=De)+de]===Gt&&je[J+de-1]===ii&&je[J]===je[Z]&&je[++J]===je[Z+1]){Z+=2,J++;do{}while(je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&Zre&&0!=--O);return de<=v.lookahead?de:v.lookahead}function Wi(v){var De,J,L,O,Z,de,Ee,re,je,Xe,ze=v.w_size;do{if(O=v.window_size-v.lookahead-v.strstart,v.strstart>=ze+(ze-ht)){for(P.arraySet(v.window,v.window,ze,ze,0),v.match_start-=ze,v.strstart-=ze,v.block_start-=ze,De=J=v.hash_size;L=v.head[--De],v.head[De]=ze<=L?L-ze:0,--J;);for(De=J=ze;L=v.prev[--De],v.prev[De]=ze<=L?L-ze:0,--J;);O+=ze}if(0===v.strm.avail_in)break;if(Ee=v.window,re=v.strstart+v.lookahead,Xe=void 0,(je=O)<(Xe=(de=v.strm).avail_in)&&(Xe=je),J=0===Xe?0:(de.avail_in-=Xe,P.arraySet(Ee,de.input,de.next_in,Xe,re),1===de.state.wrap?de.adler=A(de.adler,Ee,Xe,re):2===de.state.wrap&&(de.adler=U(de.adler,Ee,Xe,re)),de.next_in+=Xe,de.total_in+=Xe,Xe),v.lookahead+=J,v.lookahead+v.insert>=be)for(v.ins_h=v.window[Z=v.strstart-v.insert],v.ins_h=(v.ins_h<=be&&(v.ins_h=(v.ins_h<=be)if(L=S._tr_tally(v,v.strstart-v.match_start,v.match_length-be),v.lookahead-=v.match_length,v.match_length<=v.max_lazy_match&&v.lookahead>=be){for(v.match_length--;v.strstart++,v.ins_h=(v.ins_h<=be&&(v.ins_h=(v.ins_h<=be&&v.match_length<=v.prev_length){for(O=v.strstart+v.lookahead-be,L=S._tr_tally(v,v.strstart-1-v.prev_match,v.prev_length-be),v.lookahead-=v.prev_length-1,v.prev_length-=2;++v.strstart<=O&&(v.ins_h=(v.ins_h<v.pending_buf_size-5&&(J=v.pending_buf_size-5);;){if(v.lookahead<=1){if(Wi(v),0===v.lookahead&&De===V)return 1;if(0===v.lookahead)break}v.strstart+=v.lookahead,v.lookahead=0;var L=v.block_start+J;if((0===v.strstart||v.strstart>=L)&&(v.lookahead=v.strstart-L,v.strstart=L,le(v,!1),0===v.strm.avail_out)||v.strstart-v.block_start>=v.w_size-ht&&(le(v,!1),0===v.strm.avail_out))return 1}return v.insert=0,4===De?(le(v,!0),0===v.strm.avail_out?3:4):(v.strstart>v.block_start&&le(v,!1),1)}),new ti(4,4,8,4,Nn),new ti(4,5,16,8,Nn),new ti(4,6,32,32,Nn),new ti(4,4,16,16,$t),new ti(8,16,32,32,$t),new ti(8,16,128,128,$t),new ti(8,32,128,256,$t),new ti(32,128,258,1024,$t),new ti(32,258,258,4096,$t)],Y.deflateInit=function(v,De){return fo(v,De,j,15,8,0)},Y.deflateInit2=fo,Y.deflateReset=rr,Y.deflateResetKeep=Vi,Y.deflateSetHeader=function(v,De){return v&&v.state?2!==v.state.wrap?B:(v.state.gzhead=De,M):B},Y.deflate=function(v,De){var J,L,O,Z;if(!v||!v.state||5>8&255),bt(L,L.gzhead.time>>16&255),bt(L,L.gzhead.time>>24&255),bt(L,9===L.level?2:2<=L.strategy||L.level<2?4:0),bt(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(bt(L,255&L.gzhead.extra.length),bt(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(v.adler=U(v.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(bt(L,0),bt(L,0),bt(L,0),bt(L,0),bt(L,0),bt(L,9===L.level?2:2<=L.strategy||L.level<2?4:0),bt(L,3),L.status=ve);else{var de=j+(L.w_bits-8<<4)<<8;de|=(2<=L.strategy||L.level<2?0:L.level<6?1:6===L.level?2:3)<<6,0!==L.strstart&&(de|=32),de+=31-de%31,L.status=ve,it(L,de),0!==L.strstart&&(it(L,v.adler>>>16),it(L,65535&v.adler)),v.adler=1}if(69===L.status)if(L.gzhead.extra){for(O=L.pending;L.gzindex<(65535&L.gzhead.extra.length)&&(L.pending!==L.pending_buf_size||(L.gzhead.hcrc&&L.pending>O&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),he(v),O=L.pending,L.pending!==L.pending_buf_size));)bt(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>O&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=73)}else L.status=73;if(73===L.status)if(L.gzhead.name){O=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>O&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),he(v),O=L.pending,L.pending===L.pending_buf_size)){Z=1;break}Z=L.gzindexO&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),0===Z&&(L.gzindex=0,L.status=91)}else L.status=91;if(91===L.status)if(L.gzhead.comment){O=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>O&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),he(v),O=L.pending,L.pending===L.pending_buf_size)){Z=1;break}Z=L.gzindexO&&(v.adler=U(v.adler,L.pending_buf,L.pending-O,O)),0===Z&&(L.status=103)}else L.status=103;if(103===L.status&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&he(v),L.pending+2<=L.pending_buf_size&&(bt(L,255&v.adler),bt(L,v.adler>>8&255),v.adler=0,L.status=ve)):L.status=ve),0!==L.pending){if(he(v),0===v.avail_out)return L.last_flush=-1,M}else if(0===v.avail_in&&Ve(De)<=Ve(J)&&4!==De)return Bt(v,-5);if(666===L.status&&0!==v.avail_in)return Bt(v,-5);if(0!==v.avail_in||0!==L.lookahead||De!==V&&666!==L.status){var Ee=2===L.strategy?function(re,je){for(var Xe;;){if(0===re.lookahead&&(Wi(re),0===re.lookahead)){if(je===V)return 1;break}if(re.match_length=0,Xe=S._tr_tally(re,0,re.window[re.strstart]),re.lookahead--,re.strstart++,Xe&&(le(re,!1),0===re.strm.avail_out))return 1}return re.insert=0,4===je?(le(re,!0),0===re.strm.avail_out?3:4):re.last_lit&&(le(re,!1),0===re.strm.avail_out)?1:2}(L,De):3===L.strategy?function(re,je){for(var Xe,ze,ut,ii,Gt=re.window;;){if(re.lookahead<=Ge){if(Wi(re),re.lookahead<=Ge&&je===V)return 1;if(0===re.lookahead)break}if(re.match_length=0,re.lookahead>=be&&0re.lookahead&&(re.match_length=re.lookahead)}if(re.match_length>=be?(Xe=S._tr_tally(re,1,re.match_length-be),re.lookahead-=re.match_length,re.strstart+=re.match_length,re.match_length=0):(Xe=S._tr_tally(re,0,re.window[re.strstart]),re.lookahead--,re.strstart++),Xe&&(le(re,!1),0===re.strm.avail_out))return 1}return re.insert=0,4===je?(le(re,!0),0===re.strm.avail_out?3:4):re.last_lit&&(le(re,!1),0===re.strm.avail_out)?1:2}(L,De):F[L.level].func(L,De);if(3!==Ee&&4!==Ee||(L.status=666),1===Ee||3===Ee)return 0===v.avail_out&&(L.last_flush=-1),M;if(2===Ee&&(1===De?S._tr_align(L):5!==De&&(S._tr_stored_block(L,0,0,!1),3===De&&(kt(L.head),0===L.lookahead&&(L.strstart=0,L.block_start=0,L.insert=0))),he(v),0===v.avail_out))return L.last_flush=-1,M}return 4!==De?M:L.wrap<=0?1:(2===L.wrap?(bt(L,255&v.adler),bt(L,v.adler>>8&255),bt(L,v.adler>>16&255),bt(L,v.adler>>24&255),bt(L,255&v.total_in),bt(L,v.total_in>>8&255),bt(L,v.total_in>>16&255),bt(L,v.total_in>>24&255)):(it(L,v.adler>>>16),it(L,65535&v.adler)),he(v),0=J.w_size&&(0===Z&&(kt(J.head),J.strstart=0,J.block_start=0,J.insert=0),je=new P.Buf8(J.w_size),P.arraySet(je,De,Xe-J.w_size,J.w_size,0),De=je,Xe=J.w_size),de=v.avail_in,Ee=v.next_in,re=v.input,v.avail_in=Xe,v.next_in=0,v.input=De,Wi(J);J.lookahead>=be;){for(L=J.strstart,O=J.lookahead-(be-1);J.ins_h=(J.ins_h<>>=be=Fe>>>24,q-=be,0==(be=Fe>>>16&255))Te[W++]=65535&Fe;else{if(!(16&be)){if(!(64&be)){Fe=te[(65535&Fe)+(j&(1<>>=be,q-=be),q<15&&(j+=C[A++]<>>=be=Fe>>>24,q-=be,!(16&(be=Fe>>>16&255))){if(!(64&be)){Fe=ee[(65535&Fe)+(j&(1<>>=be,q-=be,(be=W-V)>3,j&=(1<<(q-=Ge<<3))-1,F.next_in=A,F.next_out=W,F.avail_in=A>>24&255)+(H>>>8&65280)+((65280&H)<<8)+((255&H)<<24)}function j(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new F.Buf16(320),this.work=new F.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function q(H){var ve;return H&&H.state?(H.total_in=H.total_out=(ve=H.state).total=0,H.msg="",ve.wrap&&(H.adler=1&ve.wrap),ve.mode=B,ve.last=0,ve.havedict=0,ve.dmax=32768,ve.head=null,ve.hold=0,ve.bits=0,ve.lencode=ve.lendyn=new F.Buf32(k),ve.distcode=ve.distdyn=new F.Buf32(R),ve.sane=1,ve.back=-1,$):M}function te(H){var ve;return H&&H.state?((ve=H.state).wsize=0,ve.whave=0,ve.wnext=0,q(H)):M}function ee(H,ve){var C,Te;return H&&H.state?(Te=H.state,ve<0?(C=0,ve=-ve):(C=1+(ve>>4),ve<48&&(ve&=15)),ve&&(ve<8||15=Le.wsize?(F.arraySet(Le.window,ve,C-Le.wsize,Le.wsize,0),Le.wnext=0,Le.whave=Le.wsize):(Te<(At=Le.wsize-Le.wnext)&&(At=Te),F.arraySet(Le.window,ve,C-Te,At,Le.wnext),(Te-=At)?(F.arraySet(Le.window,ve,C-Te,Te,0),Le.wnext=Te,Le.whave=Le.wsize):(Le.wnext+=At,Le.wnext===Le.wsize&&(Le.wnext=0),Le.whave>>8&255,C.check=S(C.check,Z,2,0),le=he=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&he)<<8)+(he>>8))%31){H.msg="incorrect header check",C.mode=30;break}if(8!=(15&he)){H.msg="unknown compression method",C.mode=30;break}if(le-=4,v=8+(15&(he>>>=4)),0===C.wbits)C.wbits=v;else if(v>C.wbits){H.msg="invalid window size",C.mode=30;break}C.dmax=1<>8&1),512&C.flags&&(Z[0]=255&he,Z[1]=he>>>8&255,C.check=S(C.check,Z,2,0)),le=he=0,C.mode=3;case 3:for(;le<32;){if(0===Ve)break e;Ve--,he+=Te[Le++]<>>8&255,Z[2]=he>>>16&255,Z[3]=he>>>24&255,C.check=S(C.check,Z,4,0)),le=he=0,C.mode=4;case 4:for(;le<16;){if(0===Ve)break e;Ve--,he+=Te[Le++]<>8),512&C.flags&&(Z[0]=255&he,Z[1]=he>>>8&255,C.check=S(C.check,Z,2,0)),le=he=0,C.mode=5;case 5:if(1024&C.flags){for(;le<16;){if(0===Ve)break e;Ve--,he+=Te[Le++]<>>8&255,C.check=S(C.check,Z,2,0)),le=he=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&(Ve<(Qe=C.length)&&(Qe=Ve),Qe&&(C.head&&(v=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),F.arraySet(C.head.extra,Te,Le,Qe,v)),512&C.flags&&(C.check=S(C.check,Te,Qe,Le)),Ve-=Qe,Le+=Qe,C.length-=Qe),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if(0===Ve)break e;for(Qe=0;v=Te[Le+Qe++],C.head&&v&&C.length<65536&&(C.head.name+=String.fromCharCode(v)),v&&Qe>9&1,C.head.done=!0),H.adler=C.check=0,C.mode=12;break;case 10:for(;le<32;){if(0===Ve)break e;Ve--,he+=Te[Le++]<>>=7&le,le-=7&le,C.mode=27;break}for(;le<3;){if(0===Ve)break e;Ve--,he+=Te[Le++]<>>=1)){case 0:C.mode=14;break;case 1:if(Ge(C),C.mode=20,6!==ve)break;he>>>=2,le-=2;break e;case 2:C.mode=17;break;case 3:H.msg="invalid block type",C.mode=30}he>>>=2,le-=2;break;case 14:for(he>>>=7&le,le-=7≤le<32;){if(0===Ve)break e;Ve--,he+=Te[Le++]<>>16^65535)){H.msg="invalid stored block lengths",C.mode=30;break}if(C.length=65535&he,le=he=0,C.mode=15,6===ve)break e;case 15:C.mode=16;case 16:if(Qe=C.length){if(Ve>>=5)),le-=5,C.ncode=4+(15&(he>>>=5)),he>>>=4,le-=4,286>>=3,le-=3}for(;C.have<19;)C.lens[de[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,De=U(0,C.lens,0,19,C.lencode,0,C.work,J={bits:C.lenbits}),C.lenbits=J.bits,De){H.msg="invalid code lengths set",C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have>>16&255,sn=65535&O,!(($t=O>>>24)<=le);){if(0===Ve)break e;Ve--,he+=Te[Le++]<>>=$t,le-=$t,C.lens[C.have++]=sn;else{if(16===sn){for(L=$t+2;le>>=$t,le-=$t,0===C.have){H.msg="invalid bit length repeat",C.mode=30;break}v=C.lens[C.have-1],Qe=3+(3&he),he>>>=2,le-=2}else if(17===sn){for(L=$t+3;le>>=$t)),he>>>=3,le-=3}else{for(L=$t+7;le>>=$t)),he>>>=7,le-=7}if(C.have+Qe>C.nlen+C.ndist){H.msg="invalid bit length repeat",C.mode=30;break}for(;Qe--;)C.lens[C.have++]=v}}if(30===C.mode)break;if(0===C.lens[256]){H.msg="invalid code -- missing end-of-block",C.mode=30;break}if(C.lenbits=9,De=U(1,C.lens,0,C.nlen,C.lencode,0,C.work,J={bits:C.lenbits}),C.lenbits=J.bits,De){H.msg="invalid literal/lengths set",C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,De=U(2,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,J={bits:C.distbits}),C.distbits=J.bits,De){H.msg="invalid distances set",C.mode=30;break}if(C.mode=20,6===ve)break e;case 20:C.mode=21;case 21:if(6<=Ve&&258<=kt){H.next_out=Bt,H.avail_out=kt,H.next_in=Le,H.avail_in=Ve,C.hold=he,C.bits=le,A(H,it),Bt=H.next_out,At=H.output,kt=H.avail_out,Le=H.next_in,Te=H.input,Ve=H.avail_in,he=C.hold,le=C.bits,12===C.mode&&(C.back=-1);break}for(C.back=0;ti=(O=C.lencode[he&(1<>>16&255,sn=65535&O,!(($t=O>>>24)<=le);){if(0===Ve)break e;Ve--,he+=Te[Le++]<>Vi)])>>>16&255,sn=65535&O,!(Vi+($t=O>>>24)<=le);){if(0===Ve)break e;Ve--,he+=Te[Le++]<>>=Vi,le-=Vi,C.back+=Vi}if(he>>>=$t,le-=$t,C.back+=$t,C.length=sn,0===ti){C.mode=26;break}if(32&ti){C.back=-1,C.mode=12;break}if(64&ti){H.msg="invalid literal/length code",C.mode=30;break}C.extra=15&ti,C.mode=22;case 22:if(C.extra){for(L=C.extra;le>>=C.extra,le-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;ti=(O=C.distcode[he&(1<>>16&255,sn=65535&O,!(($t=O>>>24)<=le);){if(0===Ve)break e;Ve--,he+=Te[Le++]<>Vi)])>>>16&255,sn=65535&O,!(Vi+($t=O>>>24)<=le);){if(0===Ve)break e;Ve--,he+=Te[Le++]<>>=Vi,le-=Vi,C.back+=Vi}if(he>>>=$t,le-=$t,C.back+=$t,64&ti){H.msg="invalid distance code",C.mode=30;break}C.offset=sn,C.extra=15&ti,C.mode=24;case 24:if(C.extra){for(L=C.extra;le>>=C.extra,le-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){H.msg="invalid distance too far back",C.mode=30;break}C.mode=25;case 25:if(0===kt)break e;if(C.offset>(Qe=it-kt)){if((Qe=C.offset-Qe)>C.whave&&C.sane){H.msg="invalid distance too far back",C.mode=30;break}Wi=Qe>C.wnext?C.wsize-(Qe-=C.wnext):C.wnext-Qe,Qe>C.length&&(Qe=C.length),Nn=C.window}else Nn=At,Wi=Bt-C.offset,Qe=C.length;for(ktxe?(be=Wi[Nn+R[ve]],le[bt+R[ve]]):(be=96,0),j=1<>Bt)+(q-=j)]=Fe<<24|be<<16|Ge|0,0!==q;);for(j=1<>=1;if(0!==j?(he&=j-1,he+=j):he=0,ve++,0==--it[H]){if(H===Te)break;H=V[$+R[ve]]}if(At>>7)]}function bt(O,Z){O.pending_buf[O.pending++]=255&Z,O.pending_buf[O.pending++]=Z>>>8&255}function it(O,Z,de){O.bi_valid>E-de?(O.bi_buf|=Z<>E-O.bi_valid,O.bi_valid+=de-E):(O.bi_buf|=Z<>>=1,de<<=1,0<--Z;);return de>>>1}function Nn(O,Z,de){var Ee,re,je=new Array(R+1),Xe=0;for(Ee=1;Ee<=R;Ee++)je[Ee]=Xe=Xe+de[Ee-1]<<1;for(re=0;re<=Z;re++){var ze=O[2*re+1];0!==ze&&(O[2*re]=Wi(je[ze]++,ze))}}function $t(O){var Z;for(Z=0;Z<$;Z++)O.dyn_ltree[2*Z]=0;for(Z=0;Z>1;1<=de;de--)Vi(O,je,de);for(re=ut;de=O.heap[1],O.heap[1]=O.heap[O.heap_len--],Vi(O,je,1),Ee=O.heap[1],O.heap[--O.heap_max]=de,O.heap[--O.heap_max]=Ee,je[2*re]=je[2*de]+je[2*Ee],O.depth[re]=(O.depth[de]>=O.depth[Ee]?O.depth[de]:O.depth[Ee])+1,je[2*de+1]=je[2*Ee+1]=re,O.heap[1]=re++,Vi(O,je,1),2<=O.heap_len;);O.heap[--O.heap_max]=O.heap[1],function(Gt,go){var ws,_o,Do,Ci,fc,xs,ar=go.dyn_tree,gc=go.max_code,Ag=go.stat_desc.static_tree,Cs=go.stat_desc.has_stree,_c=go.stat_desc.extra_bits,Dh=go.stat_desc.extra_base,Yr=go.stat_desc.max_length,bc=0;for(Ci=0;Ci<=R;Ci++)Gt.bl_count[Ci]=0;for(ar[2*Gt.heap[Gt.heap_max]+1]=0,ws=Gt.heap_max+1;ws<573;ws++)Yr<(Ci=ar[2*ar[2*(_o=Gt.heap[ws])+1]+1]+1)&&(Ci=Yr,bc++),ar[2*_o+1]=Ci,gc<_o||(Gt.bl_count[Ci]++,fc=0,Dh<=_o&&(fc=_c[_o-Dh]),Gt.opt_len+=(xs=ar[2*_o])*(Ci+fc),Cs&&(Gt.static_len+=xs*(Ag[2*_o+1]+fc)));if(0!==bc){do{for(Ci=Yr-1;0===Gt.bl_count[Ci];)Ci--;Gt.bl_count[Ci]--,Gt.bl_count[Ci+1]+=2,Gt.bl_count[Yr]--,bc-=2}while(0>=7;re>>=1)if(1&ii&&0!==ze.dyn_ltree[2*ut])return 0;if(0!==ze.dyn_ltree[18]||0!==ze.dyn_ltree[20]||0!==ze.dyn_ltree[26])return 1;for(ut=32;ut>>3)<=(re=O.opt_len+3+7>>>3)&&(re=je)):re=je=de+5,de+4<=re&&-1!==Z?L(O,Z,de,Ee):4===O.strategy||je===re?(it(O,2+(Ee?1:0),3),rr(O,ht,H)):(it(O,4+(Ee?1:0),3),function(ze,ut,ii,Gt){var go;for(it(ze,ut-257,5),it(ze,ii-1,5),it(ze,Gt-4,4),go=0;go>>8&255,O.pending_buf[O.d_buf+2*O.last_lit+1]=255&Z,O.pending_buf[O.l_buf+O.last_lit]=255&de,O.last_lit++,0===Z?O.dyn_ltree[2*de]++:(O.matches++,Z--,O.dyn_ltree[2*(C[de]+V+1)]++,O.dyn_dtree[2*le(Z)]++),O.last_lit===O.lit_bufsize-1},Y._tr_align=function(O){var Z;it(O,2,3),Qe(O,256,ht),16===(Z=O).bi_valid?(bt(Z,Z.bi_buf),Z.bi_buf=0,Z.bi_valid=0):8<=Z.bi_valid&&(Z.pending_buf[Z.pending++]=255&Z.bi_buf,Z.bi_buf>>=8,Z.bi_valid-=8)}},{"../utils/common":41}],53:[function(G,Pe,Y){"use strict";Pe.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(G,Pe,Y){(function(F){!function(P,S){"use strict";if(!P.setImmediate){var A,U,W,V,$=1,M={},B=!1,k=P.document,R=Object.getPrototypeOf&&Object.getPrototypeOf(P);R=R&&R.setTimeout?R:P,A="[object process]"==={}.toString.call(P.process)?function(te){process.nextTick(function(){j(te)})}:function(){if(P.postMessage&&!P.importScripts){var te=!0,ee=P.onmessage;return P.onmessage=function(){te=!1},P.postMessage("","*"),P.onmessage=ee,te}}()?(V="setImmediate$"+Math.random()+"$",P.addEventListener?P.addEventListener("message",q,!1):P.attachEvent("onmessage",q),function(te){P.postMessage(V+te,"*")}):P.MessageChannel?((W=new MessageChannel).port1.onmessage=function(te){j(te.data)},function(te){W.port2.postMessage(te)}):k&&"onreadystatechange"in k.createElement("script")?(U=k.documentElement,function(te){var ee=k.createElement("script");ee.onreadystatechange=function(){j(te),ee.onreadystatechange=null,U.removeChild(ee),ee=null},U.appendChild(ee)}):function(te){setTimeout(j,0,te)},R.setImmediate=function(te){"function"!=typeof te&&(te=new Function(""+te));for(var ee=new Array(arguments.length-1),Me=0;Me"u"?void 0===F?this:F:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)}},cd=>{cd(cd.s=652)}]); \ No newline at end of file diff --git a/ui/package-lock.json b/ui/package-lock.json index eb900bf01..0013979e9 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -6534,9 +6534,9 @@ "dev": true }, "node_modules/cypress": { - "version": "13.6.6", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.6.6.tgz", - "integrity": "sha512-S+2S9S94611hXimH9a3EAYt81QM913ZVA03pUmGDfLTFa5gyp85NJ8dJGSlEAEmyRsYkioS1TtnWtbv/Fzt11A==", + "version": "13.7.3", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.7.3.tgz", + "integrity": "sha512-uoecY6FTCAuIEqLUYkTrxamDBjMHTYak/1O7jtgwboHiTnS1NaMOoR08KcTrbRZFCBvYOiS4tEkQRmsV+xcrag==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -19761,9 +19761,9 @@ "dev": true }, "cypress": { - "version": "13.6.6", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.6.6.tgz", - "integrity": "sha512-S+2S9S94611hXimH9a3EAYt81QM913ZVA03pUmGDfLTFa5gyp85NJ8dJGSlEAEmyRsYkioS1TtnWtbv/Fzt11A==", + "version": "13.7.3", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.7.3.tgz", + "integrity": "sha512-uoecY6FTCAuIEqLUYkTrxamDBjMHTYak/1O7jtgwboHiTnS1NaMOoR08KcTrbRZFCBvYOiS4tEkQRmsV+xcrag==", "dev": true, "requires": { "@cypress/request": "^3.0.0", diff --git a/ui/src/app/components/add-new-column/add-new-column.component.html b/ui/src/app/components/add-new-column/add-new-column.component.html index 5aa6bc6fb..5ec23c613 100644 --- a/ui/src/app/components/add-new-column/add-new-column.component.html +++ b/ui/src/app/components/add-new-column/add-new-column.component.html @@ -21,6 +21,28 @@

Column Details


+
+ + Auto Generated + + + + {{ autoGen.Name !== '' ? autoGen.Name : 'None' }} + + + + + + + {{ autoGen.Name }} + + + + + + +
+
IsNullable diff --git a/ui/src/app/components/add-new-column/add-new-column.component.ts b/ui/src/app/components/add-new-column/add-new-column.component.ts index 5c3904444..bf57729ce 100644 --- a/ui/src/app/components/add-new-column/add-new-column.component.ts +++ b/ui/src/app/components/add-new-column/add-new-column.component.ts @@ -1,10 +1,12 @@ -import { Component, Inject, OnInit } from '@angular/core'; +import { Component, Inject, OnInit, Input } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; -import { ColLength, DataTypes, Dialect } from 'src/app/app.constants'; -import { IAddColumnProps } from 'src/app/model/edit-table'; +import { ColLength, DataTypes, Dialect, StorageKeys } from 'src/app/app.constants'; +import { AutoGen, IAddColumnProps } from 'src/app/model/edit-table'; import { IAddColumn } from 'src/app/model/update-table'; import { DataService } from 'src/app/services/data/data.service'; +import { FetchService } from 'src/app/services/fetch/fetch.service' +import { GroupedAutoGens, processAutoGens } from 'src/app/utils/utils'; @Component({ selector: 'app-add-new-column', templateUrl: './add-new-column.component.html', @@ -19,9 +21,19 @@ export class AddNewColumnComponent implements OnInit { tableId: string = "" selectedNull: boolean = true dataTypesWithColLen: string[] = ColLength.DataTypes + autoGenMap : any = {} + selectedAutoGen: AutoGen = { + Name: '', + GenerationType: '' + } + processedAutoGenMap: GroupedAutoGens = {}; + srcDbName: string = localStorage.getItem(StorageKeys.SourceDbName) as string + autoGenSupportedDbs: string[] = ['MySQL'] + autGenSupported: boolean = false constructor( private formBuilder: FormBuilder, private dataService: DataService, + private fetchSerice: FetchService, private dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: IAddColumnProps) { this.dialect = data.dialect @@ -31,7 +43,18 @@ export class AddNewColumnComponent implements OnInit { datatype: ['', Validators.required], length: ['',Validators.pattern('^[0-9]+$')], isNullable: [], + autoGen: [{ + Name: "", + GenerationType: "" + }], }) + this.fetchSerice.getAutoGenMap().subscribe( + (autoGen: any) => { + this.autoGenMap = autoGen; + this.processedAutoGenMap = processAutoGens(this.autoGenMap) + } + ); + this.autGenSupported = this.autoGenSupportedDbs.includes(this.srcDbName) } @@ -65,7 +88,8 @@ export class AddNewColumnComponent implements OnInit { Name: formValue.name, Datatype: this.selectedDatatype, Length: parseInt(formValue.length), - IsNullable: this.selectedNull + IsNullable: this.selectedNull, + AutoGen: this.selectedAutoGen } this.dataService.addColumn(this.tableId, payload) this.dialogRef.close() diff --git a/ui/src/app/components/object-detail/object-detail.component.html b/ui/src/app/components/object-detail/object-detail.component.html index 28c9d1f6e..c304add0a 100644 --- a/ui/src/app/components/object-detail/object-detail.component.html +++ b/ui/src/app/components/object-detail/object-detail.component.html @@ -224,6 +224,36 @@

+ + Auto-Generated + +
+ + + + + + {{ autoGen.Name !== '' ? autoGen.Name : 'None' }} + + + + + + + {{ autoGen.Name }} + + + + + + + + +

{{ element.get('spAutoGen').value.Name !== '' ? element.get('spAutoGen').value.Name : 'None' }}

+
+
+ +
Max Length @@ -333,7 +363,7 @@

- +
Spanner
-1) { fb.get('spColMaxLength')?.setValidators([Validators.required, Validators.pattern('([1-9][0-9]*|MAX)')]) @@ -259,6 +273,7 @@ export class ObjectDetailComponent implements OnInit { spId: new FormControl(col.spId), srcId: new FormControl(col.srcId), spColMaxLength: new FormControl(col.spColMaxLength), + spAutoGen: new FormControl(col.spAutoGen), }) ) } else { @@ -278,6 +293,7 @@ export class ObjectDetailComponent implements OnInit { spIsPk: new FormControl(col.srcIsPk), spIsNotNull: new FormControl(col.srcIsNotNull), spColMaxLength: new FormControl(col.srcColMaxLength), + spAutoGen: new FormControl(col.spAutoGen) }) ) } @@ -340,7 +356,8 @@ export class ObjectDetailComponent implements OnInit { NotNull: col.spIsNotNull ? 'ADDED' : 'REMOVED', Removed: false, ToType: (this.conv.SpDialect === Dialect.PostgreSQLDialect) ? (standardDataType === undefined ? col.spDataType : standardDataType) : col.spDataType, - MaxColLength: col.spColMaxLength + MaxColLength: col.spColMaxLength, + AutoGen: col.spAutoGen } break } @@ -351,7 +368,8 @@ export class ObjectDetailComponent implements OnInit { NotNull: col.spIsNotNull ? 'ADDED' : 'REMOVED', Removed: false, ToType: (this.conv.SpDialect === Dialect.PostgreSQLDialect) ? (standardDataType === undefined ? col.spDataType : standardDataType) : col.spDataType, - MaxColLength: col.spColMaxLength + MaxColLength: col.spColMaxLength, + AutoGen: col.spAutoGen } } } @@ -365,6 +383,10 @@ export class ObjectDetailComponent implements OnInit { Removed: true, ToType: '', MaxColLength: '', + AutoGen: { + Name : '', + GenerationType : '' + } } }) @@ -418,6 +440,7 @@ export class ObjectDetailComponent implements OnInit { this.localTableData[index].spIsPk = this.droppedColumns[addedRowIndex].spIsPk this.localTableData[index].spIsNotNull = this.droppedColumns[addedRowIndex].spIsNotNull this.localTableData[index].spColMaxLength = this.droppedColumns[addedRowIndex].spColMaxLength + this.localTableData[index].spAutoGen = this.droppedColumns[addedRowIndex].spAutoGen let ind = this.droppedColumns .map((col: IColumnTabData) => col.spColName) .indexOf(this.addedColumnName) @@ -512,6 +535,10 @@ export class ObjectDetailComponent implements OnInit { col.spIsPk = false col.spOrder = '' col.spColMaxLength = '' + col.spAutoGen = { + Name : '', + GenerationType : '' + } } }) this.setSpTableRows() @@ -541,6 +568,10 @@ export class ObjectDetailComponent implements OnInit { this.spTableSuggestion[index] = brief } + compareAutoGen(t1: any, t2: any): boolean { + return t1 && t2 ? t1.Name === t2.Name && t1.GenerationType === t2.GenerationType : t1 === t2; + } + setPkRows() { this.pkArray = this.fb.array([]) this.pkOrderValidation() @@ -565,6 +596,7 @@ export class ObjectDetailComponent implements OnInit { spIsPk: row.spIsPk, spOrder: row.spOrder, spId: row.spId, + spAutoGen: row.spAutoGen }) } }) @@ -590,6 +622,7 @@ export class ObjectDetailComponent implements OnInit { spIsPk: new FormControl(spArr[i].spIsPk), spIsNotNull: new FormControl(spArr[i].spIsNotNull), spId: new FormControl(spArr[i].spId), + spAutoGen: new FormControl(spArr[i].spAutoGen), }) ) } @@ -609,6 +642,7 @@ export class ObjectDetailComponent implements OnInit { spIsPk: new FormControl(false), spIsNotNull: new FormControl(false), spId: new FormControl(''), + spAutoGen: new FormControl(spArr[i].spAutoGen), }) ) } @@ -628,6 +662,7 @@ export class ObjectDetailComponent implements OnInit { spIsPk: new FormControl(spArr[i].spIsPk), spIsNotNull: new FormControl(spArr[i].spIsNotNull), spId: new FormControl(spArr[i].spId), + spAutoGenGen: new FormControl(spArr[i].spAutoGen) }) ) } diff --git a/ui/src/app/components/workspace/workspace.component.html b/ui/src/app/components/workspace/workspace.component.html index affa3bb57..b2e9d7809 100644 --- a/ui/src/app/components/workspace/workspace.component.html +++ b/ui/src/app/components/workspace/workspace.component.html @@ -80,6 +80,7 @@ [tableData]="tableData" [indexData]="indexData" [typeMap]="typeMap" + [autoGenMap]="autoGenMap" [ddlStmts]="ddlStmts" [fkData]="fkData" [currentDatabase]="currentDatabase" diff --git a/ui/src/app/components/workspace/workspace.component.ts b/ui/src/app/components/workspace/workspace.component.ts index 64da361c2..c5b04fc41 100644 --- a/ui/src/app/components/workspace/workspace.component.ts +++ b/ui/src/app/components/workspace/workspace.component.ts @@ -35,8 +35,10 @@ export class WorkspaceComponent implements OnInit, OnDestroy { typeMap: Record> | boolean = false defaultTypeMap: Record | boolean = false conversionRates: Record = {} + autoGenMap: Record> | boolean = false typemapObj!: Subscription defaultTypemapObj!: Subscription + autoGenMapObj!: Subscription convObj!: Subscription converObj!: Subscription ddlsumconvObj!: Subscription @@ -89,6 +91,12 @@ export class WorkspaceComponent implements OnInit, OnDestroy { this.isMiddleColumnCollapse = !flag }) + if (this.data.autoGenMap){ + this.autoGenMapObj = this.data.autoGenMap.subscribe((autoGenMap) => { + this.autoGenMap = autoGenMap + }) + } + this.convObj = this.data.conv.subscribe((data: IConv) => { if (Object.keys(data.SrcSchema).length <= 0) { this.router.navigate(['/']) @@ -162,6 +170,9 @@ export class WorkspaceComponent implements OnInit, OnDestroy { this.convObj.unsubscribe() this.ddlObj.unsubscribe() this.ddlsumconvObj.unsubscribe() + if (this.autoGenMapObj){ + this.autoGenMapObj.unsubscribe() + } } updateConversionRatePercentages() { diff --git a/ui/src/app/model/conv.ts b/ui/src/app/model/conv.ts index ecd24a047..772a46387 100644 --- a/ui/src/app/model/conv.ts +++ b/ui/src/app/model/conv.ts @@ -139,6 +139,7 @@ export interface IColumnDef { T: IType NotNull: boolean Comment: string + AutoGen: IAutoGen } export interface IType { @@ -166,6 +167,11 @@ export interface IPrimaryKey { Columns: IIndexKey[] } +export interface IAutoGen { + Name: string + GenerationType: string +} + export interface ISessionSummary { DatabaseType: string ConnectionDetail: string diff --git a/ui/src/app/model/edit-table.ts b/ui/src/app/model/edit-table.ts index 71eec6459..5418f3623 100644 --- a/ui/src/app/model/edit-table.ts +++ b/ui/src/app/model/edit-table.ts @@ -5,6 +5,7 @@ export default interface IColumnTabData { srcDataType: string spColName: string spDataType: string | String + spAutoGen: AutoGen spIsPk: boolean srcIsPk: boolean spIsNotNull: boolean @@ -15,6 +16,11 @@ export default interface IColumnTabData { spColMaxLength: Number | string | undefined } +export interface AutoGen { + Name: string; + GenerationType: string; +} + export interface IIndexData { srcColId: string | undefined spColId: string | undefined diff --git a/ui/src/app/model/update-table.ts b/ui/src/app/model/update-table.ts index f2b8dd4a8..889e6e293 100644 --- a/ui/src/app/model/update-table.ts +++ b/ui/src/app/model/update-table.ts @@ -1,3 +1,5 @@ +import { AutoGen } from "./edit-table" + interface IUpdateCol { Add: boolean Removed: boolean @@ -5,6 +7,7 @@ interface IUpdateCol { NotNull: string ToType: string | String MaxColLength: string | undefined | Number + AutoGen: AutoGen } export interface ITableColumnChanges { ColumnId: string @@ -38,4 +41,5 @@ export interface IAddColumn { Datatype: string Length: number IsNullable: boolean + AutoGen: AutoGen } \ No newline at end of file diff --git a/ui/src/app/services/conversion/conversion.service.ts b/ui/src/app/services/conversion/conversion.service.ts index 11a1bf29d..395d40cd0 100644 --- a/ui/src/app/services/conversion/conversion.service.ts +++ b/ui/src/app/services/conversion/conversion.service.ts @@ -277,7 +277,11 @@ export class ConversionService { srcId: colId, spId: spannerColDef ? colId : '', spColMaxLength: spannerColDef?.T.Len != 0 ? (spannerColDef?.T.Len != spColMax ? spannerColDef?.T.Len: 'MAX') : '', - srcColMaxLength: data.SrcSchema[tableId].ColDefs[colId].Type.Mods != null ? data.SrcSchema[tableId].ColDefs[colId].Type.Mods[0] : '' + srcColMaxLength: data.SrcSchema[tableId].ColDefs[colId].Type.Mods != null ? data.SrcSchema[tableId].ColDefs[colId].Type.Mods[0] : '', + spAutoGen: spannerColDef?.AutoGen != null ? spannerColDef?.AutoGen : { + Name: '', + GenerationType: '' + }, } }) if (spColIds) { @@ -300,7 +304,8 @@ export class ConversionService { srcId: '', spId: colId, srcColMaxLength: '', - spColMaxLength: spannerColDef?.T.Len + spColMaxLength: spannerColDef?.T.Len, + spAutoGen: spColumn.AutoGen }) } }) diff --git a/ui/src/app/services/data/data.service.ts b/ui/src/app/services/data/data.service.ts index 92f82298f..04714e1c2 100644 --- a/ui/src/app/services/data/data.service.ts +++ b/ui/src/app/services/data/data.service.ts @@ -25,6 +25,7 @@ export class DataService { private conversionRateSub = new BehaviorSubject({}) private typeMapSub = new BehaviorSubject({}) private defaultTypeMapSub = new BehaviorSubject({}) + private autoGenMapSub = new BehaviorSubject({}) private summarySub = new BehaviorSubject(new Map()) private ddlSub = new BehaviorSubject({}) private tableInterleaveStatusSub = new BehaviorSubject({} as IInterleaveStatus) @@ -42,6 +43,7 @@ export class DataService { .pipe(filter((res) => Object.keys(res).length !== 0)) typeMap = this.typeMapSub.asObservable().pipe(filter((res) => Object.keys(res).length !== 0)) defaultTypeMap = this.defaultTypeMapSub.asObservable().pipe(filter((res) => Object.keys(res).length !== 0)) + autoGenMap = this.autoGenMapSub.asObservable().pipe(filter((res) => Object.keys(res).length !== 0)) summary = this.summarySub.asObservable() ddl = this.ddlSub.asObservable().pipe(filter((res) => Object.keys(res).length !== 0)) tableInterleaveStatus = this.tableInterleaveStatusSub.asObservable() @@ -68,6 +70,7 @@ export class DataService { this.conversionRateSub.next({}) this.typeMapSub.next({}) this.defaultTypeMapSub.next({}) + this.autoGenMapSub.next({}) this.summarySub.next(new Map()) this.ddlSub.next({}) this.tableInterleaveStatusSub.next({} as IInterleaveStatus) @@ -167,18 +170,20 @@ export class DataService { defaultTypeMap: this.fetch.getSpannerDefaultTypeMap(), summary: this.fetch.getSummary(), ddl: this.fetch.getDdl(), + autoGenMap: this.fetch.getAutoGenMap() }) .pipe( catchError((err: any) => { return of(err) }) ) - .subscribe(({ rates, typeMap,defaultTypeMap, summary, ddl }: any) => { + .subscribe(({ rates, typeMap,defaultTypeMap, summary, ddl ,autoGenMap}: any) => { this.conversionRateSub.next(rates) this.typeMapSub.next(typeMap) this.defaultTypeMapSub.next(defaultTypeMap) this.summarySub.next(new Map(Object.entries(summary))) this.ddlSub.next(ddl) + this.autoGenMapSub.next(autoGenMap) }) } getSummary() { diff --git a/ui/src/app/utils/utils.ts b/ui/src/app/utils/utils.ts index adcaa3811..97e5a3ccb 100644 --- a/ui/src/app/utils/utils.ts +++ b/ui/src/app/utils/utils.ts @@ -1,5 +1,11 @@ import { SourceDbNames } from '../app.constants' import IConv from '../model/conv' +import { AutoGen } from '../model/edit-table' + +export interface GroupedAutoGens { + [key: string]: { [type: string]: AutoGen[] }; +} + export function extractSourceDbName(srcDbName: string) { if (srcDbName == 'mysql' || srcDbName == 'mysqldump') { @@ -27,3 +33,22 @@ export function downloadSession(conv: IConv) { a.download = `${conv.SessionName}_${conv.DatabaseType}_${conv.DatabaseName}.json` a.click() } + +export function groupAutoGenByType(autoGens: AutoGen[]): { [type: string]: AutoGen[] } { + return autoGens.reduce((acc: { [type: string]: AutoGen[] }, autoGen: AutoGen) => { + const type = autoGen.GenerationType; + if (!acc[type]) { + acc[type] = []; + } + acc[type].push(autoGen); + return acc; + }, {}); +} + +export function processAutoGens(autoGenMap: any): GroupedAutoGens { + const groupedAutoGens: GroupedAutoGens = {}; + Object.keys(autoGenMap).forEach(key => { + groupedAutoGens[key] = groupAutoGenByType(autoGenMap[key]); + }); + return groupedAutoGens; +} \ No newline at end of file diff --git a/ui/src/mocks/conv.ts b/ui/src/mocks/conv.ts index 06755b42e..4fed2259f 100644 --- a/ui/src/mocks/conv.ts +++ b/ui/src/mocks/conv.ts @@ -16,6 +16,10 @@ const mockIConv: IConv = { Name: "STRING", Len: 50, IsArray: false + }, + AutoGen: { + Name: "", + GenerationType: "" } } },