@tilde-nlp/ngx-common 6.1.83 → 6.1.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/new-feature-dialog/new-feature-dialog-wrapper/new-feature-dialog-wrapper.component.mjs +8 -11
- package/esm2022/lib/plausible/plausible.helper.mjs +1 -3
- package/fesm2022/tilde-nlp-ngx-common.mjs +7 -12
- package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -1
- package/lib/new-feature-dialog/new-feature-dialog-wrapper/new-feature-dialog-wrapper.component.d.ts +1 -2
- package/package.json +1 -1
- package/web-components/main.js +1 -1
package/web-components/main.js
CHANGED
|
@@ -14,7 +14,7 @@ ${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(`
|
|
|
14
14
|
see http://bit.ly/2sd4HMP
|
|
15
15
|
*/
|
|
16
16
|
@media ${r} {.fx-query-test{ }}
|
|
17
|
-
`;o.appendChild(n.createTextNode(s))}n.head.appendChild(o),i.forEach(s=>zS[s]=o)}catch(o){console.error(o)}}}function Fz(t){let n=new EventTarget;return n.matches=t==="all"||t==="",n.media=t,n.addListener=()=>{},n.removeListener=()=>{},n.addEventListener=()=>{},n.dispatchEvent=()=>!1,n.onchange=null,n}function Nz(t,n){return n&&!!window.matchMedia("all").addListener?window.matchMedia(t):Fz(t)}function Pz(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}function jz(t){return t.replace(Lz,"|").split("|").map(Pz).join("")}function Vz(t){return t.forEach(n=>{n.suffix||(n.suffix=jz(n.alias),n.overlapping=!!n.overlapping)}),t}function Bz(t,n=[]){let e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?Pn(e[i.alias],i):e[i.alias]=i}),Vz(Object.keys(e).map(i=>e[i]))}function Wz(t){return t?.mediaQuery.startsWith(xa)??!1}function KS(t,n,e,i){if(i!==void 0){let r=t.get(n)??new Map;r.set(e,i),t.set(n,r)}}function D_(t,n="1",e="1"){let i=[n,e,t],r=t.indexOf("calc");if(r>0){i[2]=QS(t.substring(r).trim());let o=t.substr(0,r).trim().split(" ");o.length==2&&(i[0]=o[0],i[1]=o[1])}else if(r==0)i[2]=QS(t.trim());else{let o=t.split(" ");i=o.length===3?o:[n,e,t]}return i}function QS(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Ih(t,n){if(n===void 0)return t;let e=i=>{let r=+i.slice(0,-ZS.length);return t.endsWith(ZS)&&!isNaN(r)?`${r*n.value}${n.unit}`:t};return t.includes(" ")?t.split(" ").map(e).join(" "):e(t)}var Iz,US,Ca,Vo,Mz,Eh,Mn,fc,Dh,ci,Qi,Oz,zS,Lz,Uz,$S,HS,GS,WS,qS,YS,Ki,zz,$z,eA,xa,Hz,Gz,E_,Br,Ur,ZS,zr=f(()=>{"use strict";M();M();we();ke();w_();st();Iz={provide:zs,useFactory:Dz,deps:[B,yt],multi:!0},US="flex-layout-";Ca=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[Iz]})}}return t})(),Vo=class t{constructor(n=!1,e="all",i="",r="",o=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}clone(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}};Mz=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){let o=this.stylesheet.get(e);o?o.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){let r=this.stylesheet.get(e),o="";if(r){let s=r.get(i);(typeof s=="number"||typeof s=="string")&&(o=s+"")}return o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Eh={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Mn=new C("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Eh});fc=new C("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1});Dh=new C("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});ci=class{constructor(){this.shouldCache=!0}sideEffect(n,e,i){}};Qi=(()=>{class t{constructor(e,i,r,o){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=o}applyStyleToElement(e,i,r=null){let o={};typeof i=="string"&&(o[i]=r,i=o),o=this.layoutConfig.disableVendorPrefixes?i:C_(i),this._applyMultiValueStyleToElement(o,e)}applyStyleToElements(e,i=[]){let r=this.layoutConfig.disableVendorPrefixes?e:C_(e);i.forEach(o=>{this._applyMultiValueStyleToElement(r,o)})}getFlowDirection(e){let i="flex-direction",r=this.lookupStyle(e,i),o=this.lookupInlineStyle(e,i)||Ni(this._platformId)&&this._serverModuleLoaded?r:"";return[r||"row",o]}hasWrap(e){return this.lookupStyle(e,"flex-wrap")==="wrap"}lookupAttributeValue(e,i){return e.getAttribute(i)??""}lookupInlineStyle(e,i){return Xn(this._platformId)?e.style.getPropertyValue(i):Sz(e,i)}lookupStyle(e,i,r=!1){let o="";return e&&((o=this.lookupInlineStyle(e,i))||(Xn(this._platformId)?r||(o=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(e,i)))),o?o.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{let o=e[r],s=Array.isArray(o)?o:[o];s.sort();for(let a of s)a=a?a+"":"",Xn(this._platformId)||!this._serverModuleLoaded?Xn(this._platformId)?i.style.setProperty(r,a):Az(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}static{this.\u0275fac=function(i){return new(i||t)(g(Mz),g(fc),g(yt),g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Oz=(()=>{class t{constructor(e,i,r,o){this._zone=e,this._platformId=i,this._document=r,this._nonce=o,this.source=new ot(new Vo(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){let e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){return this.registry.get(e)?.matches??this.registerQuery(e).some(r=>r.matches)}observe(e,i=!1){if(e&&e.length){let r=this._observable$.pipe(ue(s=>i?e.indexOf(s.mediaQuery)>-1:!0)),o=new Q(s=>{let a=this.registerQuery(e);if(a.length){let l=a.pop();a.forEach(c=>{s.next(c)}),this.source.next(l)}s.complete()});return ft(o,r)}return this._observable$}registerQuery(e){let i=Array.isArray(e)?e:[e],r=[];return kz(i,this._document,this._nonce),i.forEach(o=>{let s=l=>{this._zone.run(()=>this.source.next(new Vo(l.matches,o)))},a=this.registry.get(o);a||(a=this.buildMQL(o),a.addListener(s),this.pendingRemoveListenerFns.push(()=>a.removeListener(s)),this.registry.set(o,a)),a.matches&&r.push(new Vo(!0,o))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return Nz(e,Xn(this._platformId))}static{this.\u0275fac=function(i){return new(i||t)(g(k),g(yt),g(B),g(Io,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zS={};Lz=/(\.|-|_)/g;Uz=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}];$S="(orientation: portrait) and (max-width: 599.98px)",HS="(orientation: landscape) and (max-width: 959.98px)",GS="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",WS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",qS="(orientation: portrait) and (min-width: 840px)",YS="(orientation: landscape) and (min-width: 1280px)",Ki={HANDSET:`${$S}, ${HS}`,TABLET:`${GS} , ${WS}`,WEB:`${qS}, ${YS} `,HANDSET_PORTRAIT:`${$S}`,TABLET_PORTRAIT:`${GS} `,WEB_PORTRAIT:`${qS}`,HANDSET_LANDSCAPE:`${HS}`,TABLET_LANDSCAPE:`${WS}`,WEB_LANDSCAPE:`${YS}`},zz=[{alias:"handset",priority:2e3,mediaQuery:Ki.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ki.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ki.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ki.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ki.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ki.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ki.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ki.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ki.WEB_PORTRAIT,overlapping:!0}];$z=new C("Token (@ngbracket/ngx-layout) Breakpoints",{providedIn:"root",factory:()=>{let t=y(Dh),n=y(Mn),e=[].concat.apply([],(t||[]).map(r=>Array.isArray(r)?r:[r])),i=(n.disableDefaultBps?[]:Uz).concat(n.addOrientationBps?zz:[]);return Bz(i,e)}});eA=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(Rz)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>e?.suffix??"")}findWithPredicate(e,i){let r=this.findByMap.get(e);return r||(r=this.items.find(i)??null,this.findByMap.set(e,r)),r??null}static{this.\u0275fac=function(i){return new(i||t)(g($z))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();xa="print",Hz={alias:xa,mediaQuery:xa,priority:1e3},Gz=(()=>{class t{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new E_,this.deactivations=[]}withPrintQuery(e){return[...e,xa]}isPrintEvent(e){return e.mediaQuery.startsWith(xa)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>e!==null)}getEventBreakpoints({mediaQuery:e}){let i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(uc)}updateEvent(e){let i=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(i=this.getEventBreakpoints(e)[0],e.mediaQuery=i?.mediaQuery??""),XS(e,i)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;let i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Vo(!0,xa))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(e){return i=>{if(this.isPrintEvent(i)){i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles());return}this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent){this.deactivations=[];return}if(!i.matches){let r=this.breakpoints.findByQuery(i.mediaQuery);if(r){let o=this.formerActivations&&this.formerActivations.includes(r),s=!this.formerActivations&&e.activatedBreakpoints.includes(r);(o||s)&&(this.deactivations.push(r),this.deactivations.sort(uc))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}static{this.\u0275fac=function(i){return new(i||t)(g(eA),g(Mn),g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),E_=class{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(Hz),n.sort(uc),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)===void 0&&(this.printBreakpoints=Wz(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}};Br=(()=>{class t{get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new R,this.observeActivations()}onMediaChange(e){let i=this.findByQuery(e.mediaQuery);if(i){e=XS(e,i);let r=this.activatedBreakpoints.indexOf(i);e.matches&&r===-1?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(uc),this.updateStyles()):!e.matches&&r!==-1&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(uc),this.updateStyles())}}init(e,i,r,o,s=[]){KS(this.updateMap,e,i,r),KS(this.clearMap,e,i,o),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,s)}getValue(e,i,r){let o=this.elementMap.get(e);if(o){let s=r!==void 0?o.get(r):this.getActivatedValues(o,i);if(s)return s.get(i)}}hasValue(e,i){let r=this.elementMap.get(e);if(r){let o=this.getActivatedValues(r,i);if(o)return o.get(i)!==void 0||!1}return!1}setValue(e,i,r,o){let s=this.elementMap.get(e);if(!s)s=new Map().set(o,new Map().set(i,r)),this.elementMap.set(e,s);else{let l=(s.get(o)??new Map).set(i,r);s.set(o,l),this.elementMap.set(e,s)}let a=this.getValue(e,i);a!==void 0&&this.updateElement(e,i,a)}trackValue(e,i){return this.subject.asObservable().pipe(ue(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{let r=new Set(this.elementKeyMap.get(i)),o=this.getActivatedValues(e);o&&o.forEach((s,a)=>{this.updateElement(i,a,s),r.delete(a)}),r.forEach(s=>{if(o=this.getActivatedValues(e,s),o){let a=o.get(s);this.updateElement(i,s,a)}else this.clearElement(i,s)})})}clearElement(e,i){let r=this.clearMap.get(e);if(r){let o=r.get(i);o&&(o(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){let o=this.updateMap.get(e);if(o){let s=o.get(i);s&&(s(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){let i=this.watcherMap.get(e);i&&(i.forEach(o=>o.unsubscribe()),this.watcherMap.delete(e));let r=this.elementMap.get(e);r&&(r.forEach((o,s)=>r.delete(s)),this.elementMap.delete(e))}triggerUpdate(e,i){let r=this.elementMap.get(e);if(r){let o=this.getActivatedValues(r,i);o&&(i?this.updateElement(e,i,o.get(i)):o.forEach((s,a)=>this.updateElement(e,a,s)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let o=this.watcherMap.get(e);if(o||(o=new Map,this.watcherMap.set(e,o)),!o.get(i)){let a=ft(...r).subscribe(()=>{let l=this.getValue(e,i);this.updateElement(e,i,l)});o.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let o=0;o<this.activatedBreakpoints.length;o++){let s=this.activatedBreakpoints[o],a=e.get(s.alias);if(a&&(i===void 0||a.has(i)&&a.get(i)!=null))return a}if(!this._useFallbacks)return;let r=e.get("");return i===void 0||r&&r.has(i)?r:void 0}observeActivations(){let e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Pe(this.hook.interceptEvents(this)),ue(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}static{this.\u0275fac=function(i){return new(i||t)(g(Oz),g(eA),g(Gz))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Ur=(()=>{class t{get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}constructor(e,i,r,o){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=o,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new R,this.styleCache=new Map}ngOnChanges(e){Object.keys(e).forEach(i=>{if(this.inputs.indexOf(i)!==-1){let r=i.split(".").slice(1).join("."),o=e[i].currentValue;this.setValue(o,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){let r=this.styleBuilder,o=r.shouldCache,s=this.styleCache.get(e);(!s||!o)&&(s=r.buildStyles(e,i),o&&this.styleCache.set(e,s)),this.mru=x({},s),this.applyStyleToElement(s),r.sideEffect(e,s,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){let[r,o]=this.styler.getFlowDirection(e);if(!o&&i){let s=wh(r),a=[e];this.styler.applyStyleToElements(s,a)}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(ci),h(Qi),h(Br))}}static{this.\u0275dir=j({type:t,features:[He]})}}return t})();ZS="x";});var Yz,Kz,wa,I_,Ea=f(()=>{"use strict";M();zr();zr();we();we();Yz=(()=>{class t extends Ur{set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}constructor(e,i,r,o,s){super(e,null,i,r),this.ngClassInstance=s,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new br(e,o)),this.init(),this.setValue("","")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(Br),h(Qn),h(br,10))}}static{this.\u0275dir=j({type:t,inputs:{klass:[0,"class","klass"]},features:[Ce]})}}return t})(),Kz=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],wa=(()=>{class t extends Yz{constructor(){super(...arguments),this.inputs=Kz}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Ce]})}}return t})();I_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca]})}}return t})();});function x$(t,n){let[e,i]=t.split(" "),r=i??e,o="0px",s=r,a="0px";return n==="rtl"?a=e:o=e,{padding:`0px ${o} ${s} ${a}`}}function C$(t,n){let[e,i]=t.split(" "),r=i??e,o=c=>`-${c}`,s="0px",a=o(r),l="0px";return n==="rtl"?l=o(e):s=o(e),{margin:`0px ${s} ${a} ${l}`}}function aA(t,n){switch(n){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return t==="rtl"?"margin-left":"margin-right";case"row-reverse":return t==="rtl"?"margin-right":"margin-left";default:return t==="rtl"?"margin-left":"margin-right"}}function w$(t,n){let e=aA(n.directionality,n.layout),i=x({},oA);return i[e]=t,i}var Qz,Zz,Xz,iA,Jz,e$,t$,n$,i$,r$,o$,rA,s$,a$,l$,c$,d$,u$,f$,h$,oA,p$,m$,g$,sA,v$,y$,_$,b$,Mh,E$,D$,I$,lA,nA,S_,Sh=f(()=>{"use strict";cn();cn();M();zr();zr();w_();st();ke();Qz=(()=>{class t extends ci{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[r,o,...s]=e.split(" "),a=s.join(" "),l=i.direction.indexOf("column")>-1?"column":"row",c=dc(l)?"max-width":"max-height",d=dc(l)?"min-width":"min-height",u=String(a).indexOf("calc")>-1,m=u||a==="auto",p=String(a).indexOf("%")>-1&&!u,v=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1,_=u||v;r=r=="0"?0:r,o=o=="0"?0:o;let E=!r&&!o,I={},U={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":let H=this.layoutConfig.useColumnBasisZero!==!1;a=l==="row"?"0%":H?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":o=0,a="auto";break;case"auto":break;case"none":r=0,o=0,a="auto";break;default:!_&&!p&&!isNaN(a)&&(a=a+"%"),a==="0%"&&(_=!0),a==="0px"&&(a="0%"),u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":_?a:"100%"}):I=Pn(U,{flex:`${r} ${o} ${_?a:"100%"}`});break}return I.flex||I["flex-grow"]||(u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":a}):I=Pn(U,{flex:`${r} ${o} ${a}`})),a!=="0%"&&a!=="0px"&&a!=="0.000000001px"&&a!=="auto"&&(I[d]=E||_&&r?a:null,I[c]=E||!m&&o?a:null),!I[d]&&!I[c]?u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":a}):I=Pn(U,{flex:`${r} ${o} ${a}`}):i.hasWrap&&(I[u?"flex-basis":"flex"]=I[c]?u?I[c]:`${r} ${o} ${I[c]}`:u?I[d]:`${r} ${o} ${I[d]}`),Pn(I,{"box-sizing":"border-box"})}static{this.\u0275fac=function(i){return new(i||t)(g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Zz=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],Xz=(()=>{class t extends Ur{get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}constructor(e,i,r,o,s){super(e,o,i,s),this.layoutConfig=r,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(ae(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){let r=e.value.split(" ");this.direction=r[0],this.wrap=r[1]!==void 0&&r[1]==="wrap",this.triggerUpdate()}updateWithValue(e){let i=this.layoutConfig.addFlexToParent!==!1;this.direction===void 0&&(this.direction=this.getFlexFlowDirection(this.parentElement,i)),this.wrap===void 0&&(this.wrap=this.hasWrap(this.parentElement));let r=this.direction,o=r.startsWith("row"),s=this.wrap;o&&s?this.styleCache=t$:o&&!s?this.styleCache=Jz:!o&&s?this.styleCache=n$:!o&&!s&&(this.styleCache=e$);let a=String(e).replace(";",""),l=D_(a,this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:r,hasWrap:s})}triggerReflow(){let e=this.activatedValue;if(e!==void 0){let i=D_(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(Mn),h(Qz),h(Br))}}static{this.\u0275dir=j({type:t,inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"]},features:[Ce]})}}return t})(),iA=(()=>{class t extends Xz{constructor(){super(...arguments),this.inputs=Zz}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Ce]})}}return t})(),Jz=new Map,e$=new Map,t$=new Map,n$=new Map;i$=(()=>{class t extends ci{buildStyles(e,i){let r={},[o,s]=e.split(" ");switch(o){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;case"start":case"flex-start":default:r["justify-content"]="flex-start";break}switch(s){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;case"stretch":default:r["align-items"]=r["align-content"]="stretch";break}return Pn(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":s==="stretch"?dc(i.layout)?null:"100%":null,"max-height":s==="stretch"&&dc(i.layout)?"100%":null})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),r$=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],o$=(()=>{class t extends Ur{constructor(e,i,r,o){super(e,r,i,o),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){let i=this.layout||"row",r=this.inline;i==="row"&&r?this.styleCache=d$:i==="row"&&!r?this.styleCache=s$:i==="row-reverse"&&r?this.styleCache=f$:i==="row-reverse"&&!r?this.styleCache=l$:i==="column"&&r?this.styleCache=u$:i==="column"&&!r?this.styleCache=a$:i==="column-reverse"&&r?this.styleCache=h$:i==="column-reverse"&&!r&&(this.styleCache=c$),this.addStyles(e,{layout:i,inline:r})}onLayoutChange(e){let i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),cc.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(i$),h(Br))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),rA=(()=>{class t extends o${constructor(){super(...arguments),this.inputs=r$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Ce]})}}return t})(),s$=new Map,a$=new Map,l$=new Map,c$=new Map,d$=new Map,u$=new Map,f$=new Map,h$=new Map,oA={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},p$=(()=>{class t extends ci{constructor(e,i){super(),this._styler=e,this._config=i}buildStyles(e,i){return e.endsWith(Mh)?(e=e.slice(0,e.indexOf(Mh)),e=Ih(e,this._config.multiplier),C$(e,i.directionality)):{}}sideEffect(e,i,r){let o=r.items;if(e.endsWith(Mh)){e=e.slice(0,e.indexOf(Mh)),e=Ih(e,this._config.multiplier);let s=x$(e,r.directionality);this._styler.applyStyleToElements(s,r.items)}else{e=Ih(e,this._config.multiplier),e=this.addFallbackUnit(e);let s=o.pop(),a=w$(e,r);this._styler.applyStyleToElements(a,o),this._styler.applyStyleToElements(oA,[s])}}addFallbackUnit(e){return isNaN(+e)?e:`${e}${this._config.defaultUnit}`}static{this.\u0275fac=function(i){return new(i||t)(g(Qi),g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),m$=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],g$=(()=>{class t extends Ur{get childrenNodes(){let e=this.nativeElement.children,i=[];for(let r=e.length;r--;)i[r]=e[r];return i}constructor(e,i,r,o,s,a){super(e,s,o,a),this.zone=i,this.directionality=r,this.styleUtils=o,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new R;let l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){let r=e.value.split(" ")[0];cc.find(o=>o===r)||(r="row"),this.layout&&this.layout!==r&&this.clearStyles(),this.layout=r,this.triggerUpdate()}updateWithValue(e){let i=this.childrenNodes.filter(r=>r.nodeType===1&&this.willDisplay(r)).sort((r,o)=>{let s=+this.styler.lookupStyle(r,"order"),a=+this.styler.lookupStyle(o,"order");return isNaN(s)||isNaN(a)||s===a?0:s>a?1:-1});if(i.length>0){let r=this.directionality.value,o=this.layout;o==="row"&&r==="rtl"?this.styleCache=v$:o==="row"&&r!=="rtl"?this.styleCache=_$:o==="column"&&r==="rtl"?this.styleCache=y$:o==="column"&&r!=="rtl"&&(this.styleCache=b$),this.addStyles(e,{directionality:r,items:i,layout:o})}}clearStyles(){let e=Object.keys(this.mru).length>0,i=e?"padding":aA(this.directionality.value,this.layout);e&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(e){let i=this.marshal.getValue(e,"show-hide");return i===!0||i===void 0&&this.styleUtils.lookupStyle(e,"display")!=="none"}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(e=>{let i=r=>r.addedNodes&&r.addedNodes.length>0||r.removedNodes&&r.removedNodes.length>0;e.some(i)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k),h(xt),h(Qi),h(p$),h(Br))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),sA=(()=>{class t extends g${constructor(){super(...arguments),this.inputs=m$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[Ce]})}}return t})(),v$=new Map,y$=new Map,_$=new Map,b$=new Map,Mh=" grid";E$=(()=>{class t extends ci{buildStyles(e,{display:i}){let r=wh(e);return ne(x({},r),{display:i==="none"?i:r.display})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),D$=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],I$=(()=>{class t extends Ur{constructor(e,i,r,o,s){super(e,r,i,o),this._config=s,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){let r=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=nA.get(r)??new Map,nA.set(r,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:r}),this.currentValue=e)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(E$),h(Br),h(Mn))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),lA=(()=>{class t extends I${constructor(){super(...arguments),this.inputs=D$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Ce]})}}return t})(),nA=new Map;S_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca,ni]})}}return t})();});var A_,T_=f(()=>{"use strict";M();zr();A_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca]})}}return t})();});var Da,Fte,Ah=f(()=>{"use strict";zr();zr();Ea();Ea();Sh();Sh();T_();T_();we();M();M();Da=(()=>{class t{static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Mn,useValue:x(x({},Eh),e)},{provide:Dh,useValue:i,multi:!0},{provide:fc,useValue:!0}]:[{provide:Mn,useValue:x(x({},Eh),e)},{provide:Dh,useValue:i,multi:!0}]}}constructor(e,i){Ni(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static{this.\u0275fac=function(i){return new(i||t)(g(fc),g(yt))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[S_,I_,A_,S_,I_,A_]})}}return t})();Fte=new Kn("18.0.0");});function S$(t,n){if(t&1&&(D(0,"mat-option",12),le(1),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",e.voiceName," ")}}function A$(t,n){if(t&1&&(D(0,"mat-icon"),le(1),T()),t&2){let e=$();w(),it(" ",e.isPlaying?"stop":"volume_up"," ")}}function T$(t,n){t&1&&oe(0,"mat-spinner",13),t&2&&A("diameter",15)}var cA,dA=f(()=>{"use strict";we();M();ji();ii();Fr();oS();ke();hh();Yi();lc();ac();Ah();Ht();M();we();ji();Yi();ac();lc();In();Ea();Ht();cA=(()=>{class t{constructor(){this.maxCharLength=1e3,this.#e=y(rS)}get hasOverflow(){let e=document.querySelector("textarea");return e?.clientHeight<e?.scrollHeight}#e;ngOnInit(){this.selected=this.voices[0]}togglePlay(){if(this.isPlaying){this.stop();return}this.isLoading=!0;let e=this.text.length>this.maxCharLength?this.text.substring(0,this.maxCharLength):this.text;if(this.audio&&e===this.previousText&&this.selected.voice===this.previousVoice){this.audio.play(),this.isPlaying=!0,this.isLoading=!1;return}this.#e.play(e,this.selected).pipe(Wt(()=>{this.isLoading=!1})).subscribe({next:i=>{this.previousText=e,this.previousVoice=this.selected.voice;let r=URL.createObjectURL(i);this.audio=new Audio(r),this.audio.play(),this.isPlaying=!0,this.audio.onended=()=>{URL.revokeObjectURL(r),this.isPlaying=!1}}})}stop(){this.audio&&(this.audio.pause(),this.audio.currentTime=0,this.isPlaying=!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["lib-text-to-speech"]],inputs:{maxCharLength:"maxCharLength",voices:"voices"},standalone:!0,features:[Se],decls:19,vars:23,consts:[[1,"text-to-speech-wrapper",3,"ngClass.lt-md"],["appearance","outline","color","accent"],[3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[1,"text-to-speech-textarea-wrapper"],[1,"text-to-speech-textarea",3,"ngModelChange","ngModel","placeholder"],[1,"text-to-speech-characters"],[1,"text-to-speech-actions"],[3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip","disabled"],[4,"ngIf"],[3,"diameter",4,"ngIf"],[3,"value"],[3,"diameter"]],template:function(i,r){if(i&1&&(D(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),le(3),se(4,"translate"),T(),D(5,"mat-select",2),Us("valueChange",function(s){return El(r.selected,s)||(r.selected=s),s}),ee(6,S$,2,2,"mat-option",3),T()(),D(7,"div",4)(8,"textarea",5),se(9,"translate"),Us("ngModelChange",function(s){return El(r.text,s)||(r.text=s),s}),T(),D(10,"div",6),le(11),T()(),D(12,"div",7)(13,"div",8),se(14,"translate"),D(15,"button",9),se(16,"translate"),K("click",function(){return r.togglePlay()}),ee(17,A$,2,1,"mat-icon",10)(18,T$,1,1,"mat-spinner",11),T()()()()),i&2){let o;A("ngClass.lt-md","mobile"),w(3),pt(be(4,15,"selectVoice")),w(2),Bs("value",r.selected),w(),A("ngForOf",r.voices),w(2),Bs("ngModel",r.text),A("placeholder",be(9,17,"placeholder")),w(2),fe("text-overflow",r.hasOverflow),w(),Vv(" ",(o=r.text==null?null:r.text.length)!==null&&o!==void 0?o:0,"/",r.maxCharLength," "),w(2),A("matTooltip",r.text?"":be(14,19,"playDisabled")),w(2),A("matTooltip",be(16,21,r.isPlaying?"stop":"play"))("disabled",!r.text||r.isLoading),w(2),A("ngIf",!r.isLoading),w(),A("ngIf",r.isLoading)}},dependencies:[ct,mf,Hs,Or,kr,$f,Xs,Js,Hl,fh,_a,li,bh,_h,ba,Ch,xh,fa,Da,wa,ei,En],styles:[".text-to-speech-wrapper[_ngcontent-%COMP%]{margin-top:5px;position:relative;display:flex;flex-direction:column;align-items:center}.text-to-speech-wrapper[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{max-width:900px!important;width:100%}.text-to-speech-textarea-wrapper[_ngcontent-%COMP%], .text-to-speech-textarea[_ngcontent-%COMP%]{position:relative;width:100%;max-width:900px}.text-to-speech-textarea-wrapper[_ngcontent-%COMP%]{border:1px solid var(--base-70);padding:5px;border-radius:8px;box-shadow:0 0 16px #0000001a}.text-to-speech-textarea[_ngcontent-%COMP%]{margin:15px 0;padding:0 10px;min-height:120px;resize:none;outline:none;border:none}.text-to-speech-actions[_ngcontent-%COMP%]{position:absolute;bottom:-20px}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;justify-content:center;color:var(--base-100)!important;background-color:var(--accent)}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{background-color:var(--base-70)}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{scale:1.2}.text-to-speech-characters[_ngcontent-%COMP%]{position:absolute;right:10px;bottom:0;margin:5px;font-size:13px;color:var(--base-65)}.text-overflow[_ngcontent-%COMP%]{right:30px}.mobile[_ngcontent-%COMP%] .text-overflow[_ngcontent-%COMP%]{right:15px}"]})}}return t})()});var uA=f(()=>{"use strict";dA()});var fA,hA=f(()=>{"use strict";fA={en:{selectVoice:"Demo voices (currently only for Latvian language)",placeholder:'Enter text to listen to a demonstration of the text-to-speech technology. Remember, this service can only be used in accordance with its terms of use (see the "Frequently asked questions" section). It is not permitted to use this service for texts that contain offensive, indecent, defamatory, misleading, hateful, or discriminatory statements. Violation of the terms of use may result in liability as stipulated by the laws of the Republic of Latvia. A maximum of 1000 characters will be spoken.',playDisabled:"Enter text to play",play:"Play",stop:"Stop"},lv:{selectVoice:"Demo balsis (\u0161obr\u012Bd tikai Latvie\u0161u valod\u0101)",placeholder:"Ievadi tekstu, lai noklaus\u012Btos balss sint\u0113zes tehnolo\u0123ijas demonstr\u0101ciju. Atceries, ka \u0161o pakalpojumu var lietot tikai atbilsto\u0161i t\u0101 lieto\u0161anas noteikumiem (skat\u012Bt sada\u013Cu \u201CBie\u017E\u0101k uzdotie jaut\u0101jumi\u201D)! To nav at\u013Cauts izmantot tekstiem, kas satur aizskaro\u0161us, nepiekl\u0101j\u012Bgus, apmelojo\u0161us, maldino\u0161us, naidu vai diskrimin\u0101ciju veicino\u0161us apgalvojumus. Par lieto\u0161anas noteikumu p\u0101rk\u0101pumu var iest\u0101ties LR likumos noteikt\u0101 atbild\u012Bba. Tiks izrun\u0101ti ne vair\u0101k k\u0101 1000 simboli.",playDisabled:"Ievadi tekstu, lai atska\u0146ot to",play:"Atska\u0146ot",stop:"Apst\u0101din\u0101t",voice:"Balss {{nth}}"}}});var Th,R_=f(()=>{"use strict";Dy();uA();hA();M();Th=(()=>{class t extends Sf{set voices(e){this._voices=typeof e=="string"?JSON.parse(e):e}set maxCharLength(e){this._maxCharLength=+e}get voices(){return this._voices}get maxCharLength(){return this._maxCharLength}constructor(){super(fA),this._maxCharLength=500}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["app-text-to-speech"]],inputs:{voices:"voices",maxCharLength:"maxCharLength"},standalone:!0,features:[Ce,Se],decls:1,vars:2,consts:[[3,"voices","maxCharLength"]],template:function(i,r){i&1&&oe(0,"lib-text-to-speech",0),i&2&&A("voices",r.voices)("maxCharLength",r.maxCharLength)},dependencies:[cA]})}}return t})()});var jn,Rh=f(()=>{"use strict";jn=function(t){return t.SUMMARY="SUMMARY",t.REPHRASE="REPHRASE",t}(jn||{})});function R$(t,n){}function O_(t,n){let e=t.length;for(;e--;)n(t[e])}var Bo,k_,hc,O$,k$,F$,N$,F_,pA,mA=f(()=>{"use strict";ln();ln();oi();oi();Pt();va();we();M();M();Vi();ke();cn();st();Bo=class{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}},k_=(()=>{class t extends ga{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._platform=y(Fe),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=y(Be),this._injector=y(De),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let 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(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){this._isDestroyed||on(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=Wl(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,i=Wl();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Wl()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(nh),h(B,8),h(Bo),h(Yl),h(k),h(Gi),h(Ln))}}static{this.\u0275cmp=re({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&Ve(nc,7),i&2){let o;he(o=pe())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&_e("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[Ce,Se],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&ee(0,R$,0,0,"ng-template",0)},dependencies:[nc],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return t})(),hc=class{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new R,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!St(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(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this.containerInstance){let 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}},O$=new C("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.block()}}),k$=new C("DialogData"),F$=new C("DefaultDialogConfig"),N$=0,F_=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new R,this._afterOpenedAtThisLevel=new R,this._ariaHiddenElements=new Map,this.afterAllClosed=Jt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(wt(void 0))),this._scrollStrategy=a}open(e,i){let r=this._defaultOptions||new Bo;i=x(x({},r),i),i.id=i.id||`cdk-dialog-${N$++}`,i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new hc(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){O_(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){O_(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),O_(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Pr({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,s=[{provide:Bo,useValue:r},{provide:hc,useValue:i},{provide:Gi,useValue:e}],a;r.container?typeof r.container=="function"?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=k_;let l=new Lr(a,r.viewContainerRef,De.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof Nt){let s=this._createInjector(o,i,r,void 0),a={$implicit:o.data,dialogRef:i};o.templateContext&&(a=x(x({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Hi(e,null,a,s))}else{let s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new Lr(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentRef=a,i.componentInstance=a.instance}}_createInjector(e,i,r,o){let s=e.injector||e.viewContainerRef?.injector,a=[{provide:k$,useValue:e.data},{provide:hc,useValue:i}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(xt,null,{optional:!0}))&&a.push({provide:xt,useValue:{value:e.direction,change:O()}}),De.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(i){return new(i||t)(g(Qe),g(De),g(F$,8),g(t,12),g(ya),g(O$))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();pA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[F_],imports:[ri,Lo,ih,Lo]})}}return t})()});function L$(t,n){}function _A(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Rr(t.substring(0,t.length-2)):t.endsWith("s")?Rr(t.substring(0,t.length-1))*1e3:t==="0"?0:null}function bA(t,n,e){return t._closeInteractionType=n,t.close(e)}function IA(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}var pc,N_,gA,vA,P$,j$,V$,yA,Oh,mc,L_,B$,U$,z$,gc,$$,xA,CA,wA,EA,DA,MA,vc=f(()=>{"use strict";oi();oi();we();we();M();M();ln();mA();Ui();va();ke();st();Vi();$i();In();pc=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},N_="mdc-dialog--open",gA="mdc-dialog--opening",vA="mdc-dialog--closing",P$=150,j$=75,V$=(()=>{class t extends k_{constructor(e,i,r,o,s,a,l,c,d){super(e,i,r,o,s,a,l,d),this._animationMode=c,this._animationStateChanged=new V,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?_A(this._config.enterAnimationDuration)??P$:0,this._exitAnimationDuration=this._animationsEnabled?_A(this._config.exitAnimationDuration)??j$:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(yA,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(gA,N_)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(N_),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(N_),this._animationsEnabled?(this._hostElement.style.setProperty(yA,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(vA)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(gA,vA)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(nh),h(B,8),h(pc),h(Yl),h(k),h(Gi),h(at,8),h(Ln))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(_r("id",r._config.id),_e("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),fe("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[Ce,Se],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(D(0,"div",0)(1,"div",1),ee(2,L$,0,0,"ng-template",2),T()())},dependencies:[nc],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-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));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-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}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{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);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}}return t})(),yA="--mat-dialog-transition-duration";Oh=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(Oh||{}),mc=class{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new R,this._beforeClosed=new R,this._state=Oh.OPEN,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ue(r=>r.state==="opened"),Te(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ue(r=>r.state==="closed"),Te(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),ft(this.backdropClick(),this.keydownEvents().pipe(ue(r=>r.keyCode===27&&!this.disableClose&&!St(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),bA(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(ue(e=>e.state==="closing"),Te(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=Oh.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=Oh.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};L_=new C("MatMdcDialogData"),B$=new C("mat-mdc-dialog-default-options"),U$=new C("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.block()}}),z$=0,gc=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,r,o,s,a,l,c){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new R,this._afterOpenedAtThisLevel=new R,this.dialogConfigClass=pc,this.afterAllClosed=Jt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(wt(void 0))),this._dialog=i.get(F_),this._dialogRefConstructor=mc,this._dialogContainerType=V$,this._dialogDataToken=L_}open(e,i){let r;i=x(x({},this._defaultOptions||new pc),i),i.id=i.id||`mat-mdc-dialog-${z$++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,ne(x({},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:Bo,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static{this.\u0275fac=function(i){return new(i||t)(g(Qe),g(De),g(Zn,8),g(B$,8),g(U$),g(t,12),g(ya),g(at,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$$=0,xA=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=IA(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){bA(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(i){return new(i||t)(h(mc,8),h(F),h(gc))}}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&K("click",function(s){return r._onButtonClick(s)}),i&2&&_e("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[He]})}}return t})(),CA=(()=>{class t{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=IA(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static{this.\u0275fac=function(i){return new(i||t)(h(mc,8),h(F),h(gc))}}static{this.\u0275dir=j({type:t,standalone:!0})}}return t})(),wA=(()=>{class t extends CA{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${$$++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&_r("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[Ce]})}}return t})(),EA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[kD([o_])]})}}return t})(),DA=(()=>{class t extends CA{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&fe("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[Ce]})}}return t})();MA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[gc],imports:[pA,ri,Lo,We,We]})}}return t})()});var yc,kh,Fh,Nh,Ia,AA,qe,TA,Uo=f(()=>{"use strict";Al();M();M();ke();yc=new C("ngx-tld-services Api service configuration."),kh=class{#e;constructor(n){this.http=y(Dr),this.#e=y(yc);let e=n(this.#e);if(!e)throw new Error(`${Object.getPrototypeOf(this).constructor.name} is created, but no service configuration defined in 'SERVICE_CONFIGURATION_TOKEN'. Config: ${JSON.stringify(this.#e)}`);this.configuration=e,this.sharedServiceConfiguration=this.#e.sharedConfiguration}},Fh=function(t){return t.Event="Event",t.General="General",t.Meeting="Meeting",t}(Fh||{}),Nh=function(t){return t.Event="Event",t.General="General",t.Meeting="Meeting",t.MeetingBrief="MeetingBrief",t.Brief="Brief",t}(Nh||{}),Ia=class{static xAppIdHeader(n){return{"X-App-Id":n}}},AA=(()=>{class t extends kh{#e=y(Dr);constructor(){super(e=>e.llmService)}rephrase(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/rewrite`,e,{responseType:"text",headers:i})}summarize(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/summarize/`,e,{responseType:"text",headers:i})}customPrompt(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/custom-prompt/`,e,{responseType:"text",headers:i})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),qe=function(t){return t.TRANSLATION_FILES="FileTranslationFiles",t.ASR_FILE_LENGTH_SECONDS="AsrFileLengthSeconds",t.ASR_FILE_SIZE_KB="AsrFileSizeKb",t.ONLINE_ASR_USED_SECONDS="OnlineAsrUsedSeconds",t.TRANSLATION_CHARACTERS="TranslationCharacters",t.TRANSLATION_DOCUMENTS="TranslationDocuments",t.LLM_CHARACTER_COUNT="LlmCharacterCount",t.LLM_REQUESTS="LlmRequests",t.TTS_CHARACTERS="TtsCharacters",t.ANONYMISE_WORDS="AnonymiseWords",t.ANONYMISE_DOCUMENTS="AnonymiseDocuments",t[t.LEGACY_TRANSLATION_FILES=0]="LEGACY_TRANSLATION_FILES",t[t.LEGACY_ASR_FILE_LENGTH_SECONDS=1]="LEGACY_ASR_FILE_LENGTH_SECONDS",t[t.LEGACY_ASR_FILE_SIZE_KB=2]="LEGACY_ASR_FILE_SIZE_KB",t[t.LEGACY_ONLINE_ASR_USED_SECONDS=3]="LEGACY_ONLINE_ASR_USED_SECONDS",t[t.LEGACY_TRANSLATION_CHARACTERS=4]="LEGACY_TRANSLATION_CHARACTERS",t[t.LEGACY_TRANSLATION_DOCUMENTS=5]="LEGACY_TRANSLATION_DOCUMENTS",t[t.LEGACY_LLM_CHARACTER_COUNT=6]="LEGACY_LLM_CHARACTER_COUNT",t[t.LEGACY_LLM_REQUESTS=7]="LEGACY_LLM_REQUESTS",t[t.LEGACY_TTS_CHARACTERS=8]="LEGACY_TTS_CHARACTERS",t[t.LEGACY_ANONYMISE_WORDS=9]="LEGACY_ANONYMISE_WORDS",t[t.LEGACY_ANONYMISE_DOCUMENTS=10]="LEGACY_ANONYMISE_DOCUMENTS",t}(qe||{}),TA=(()=>{class t extends kh{constructor(){super(e=>e.quotaService),this.legacyQuotaTypeMap={[qe.LEGACY_TRANSLATION_FILES]:qe.TRANSLATION_FILES,[qe.LEGACY_ASR_FILE_LENGTH_SECONDS]:qe.ASR_FILE_LENGTH_SECONDS,[qe.LEGACY_ASR_FILE_SIZE_KB]:qe.ASR_FILE_SIZE_KB,[qe.LEGACY_ONLINE_ASR_USED_SECONDS]:qe.ONLINE_ASR_USED_SECONDS,[qe.LEGACY_TRANSLATION_CHARACTERS]:qe.TRANSLATION_CHARACTERS,[qe.LEGACY_TRANSLATION_DOCUMENTS]:qe.TRANSLATION_DOCUMENTS,[qe.LEGACY_LLM_CHARACTER_COUNT]:qe.LLM_CHARACTER_COUNT,[qe.LEGACY_LLM_REQUESTS]:qe.LLM_REQUESTS,[qe.LEGACY_TTS_CHARACTERS]:qe.TTS_CHARACTERS,[qe.LEGACY_ANONYMISE_WORDS]:qe.ANONYMISE_WORDS,[qe.LEGACY_ANONYMISE_DOCUMENTS]:qe.ANONYMISE_DOCUMENTS}}getQuotaUsage(){let e=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.http.get(this.configuration.url,{headers:e}).pipe(P(i=>(i.usage.forEach(r=>{this.legacyQuotaTypeMap[r.quotaType]&&(r.quotaType=this.legacyQuotaTypeMap[r.quotaType])}),i)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var OA=f(()=>{"use strict"});var kA=f(()=>{"use strict"});var P_,FA=f(()=>{"use strict";P_=function(t){return t[t.TIMEOUT=504]="TIMEOUT",t}(P_||{})});var j_=f(()=>{"use strict";OA();kA();FA()});var NA,LA=f(()=>{"use strict";M();Fr();Gs();NA=(()=>{class t{constructor(e,i){this.iconRegistry=e,this.sanitizer=i}registerIcons(e){for(let i in e)this.iconRegistry.addSvgIconLiteral(i.toLowerCase(),this.sanitizer.bypassSecurityTrustHtml(e[i]))}registerIconFromUrl(e,i){this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(i))}addSvgIconSet(e,i){i?this.iconRegistry.addSvgIconSetInNamespace(i,this.sanitizer.bypassSecurityTrustResourceUrl(e)):this.iconRegistry.addSvgIconSet(this.sanitizer.bypassSecurityTrustResourceUrl(e))}static{this.\u0275fac=function(i){return new(i||t)(g(r_),g(kl))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var PA=f(()=>{"use strict";LA()});var H$,G$,jA,VA=f(()=>{"use strict";M();H$=typeof localStorage<"u"?localStorage:null,G$=typeof window<"u"?window:null,jA=(()=>{class t{get window(){return G$}get localStorage(){return H$}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var BA=f(()=>{"use strict";VA()});function Oa(t){return new $_(t)}function W$(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.length<t.length))return null;let r={};for(let o=0;o<i.length;o++){let s=i[o],a=t[o];if(s[0]===":")r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function q$(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!di(t[e],n[e]))return!1;return!0}function di(t,n){let e=t?H_(t):void 0,i=n?H_(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!ZA(t[r],n[r]))return!1;return!0}function H_(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ZA(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r)}else return t===n}function XA(t){return t.length>0?t[t.length-1]:null}function Gr(t){return gn(t)?t:To(t)?Le(Promise.resolve(t)):O(t)}function UA(t,n,e){return Y$[e.paths](t.root,n.root,e.matrixParams)&&JA[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function K$(t,n){return di(t,n)}function eT(t,n,e){if(!$o(t.segments,n.segments)||!jh(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!eT(t.children[i],n.children[i],e))return!1;return!0}function Q$(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ZA(t[e],n[e]))}function tT(t,n,e){return nT(t,n,n.segments,e)}function nT(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!$o(r,e)||n.hasChildren()||!jh(r,e,i))}else if(t.segments.length===e.length){if(!$o(t.segments,e)||!jh(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!tT(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!$o(t.segments,r)||!jh(t.segments,r,i)||!t.children[me]?!1:nT(t.children[me],n,o,i)}}function jh(t,n,e){return n.every((i,r)=>JA[e](t[r].parameters,i.parameters))}function Z$(t,n){return $o(t,n)&&t.every((e,i)=>di(e.parameters,n[i].parameters))}function $o(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function X$(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===me&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==me&&(e=e.concat(n(r,i)))}),e}function Vh(t){return t.segments.map(n=>rT(n)).join("/")}function _c(t,n){if(!t.hasChildren())return Vh(t);if(n){let e=t.children[me]?_c(t.children[me],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==me&&i.push(`${r}:${_c(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=X$(t,(i,r)=>r===me?[_c(t.children[me],!1)]:[`${r}:${_c(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[me]!=null?`${Vh(t)}/${e[0]}`:`${Vh(t)}/(${e.join("//")})`}}function iT(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lh(t){return iT(t).replace(/%3B/gi,";")}function eH(t){return encodeURI(t)}function G_(t){return iT(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bh(t){return decodeURIComponent(t)}function zA(t){return Bh(t.replace(/\+/g,"%20"))}function rT(t){return`${G_(t.path)}${tH(t.parameters)}`}function tH(t){return Object.entries(t).map(([n,e])=>`;${G_(n)}=${G_(e)}`).join("")}function nH(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Lh(e)}=${Lh(r)}`).join("&"):`${Lh(e)}=${Lh(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}function V_(t){let n=t.match(iH);return n?n[0]:""}function oH(t){let n=t.match(rH);return n?n[0]:""}function aH(t){let n=t.match(sH);return n?n[0]:""}function cH(t){let n=t.match(lH);return n?n[0]:""}function oT(t){return t.segments.length>0?new Ne([],{[me]:t}):t}function sT(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=sT(r);if(i===me&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new Ne(t.segments,n);return dH(e)}function dH(t){if(t.numberOfChildren===1&&t.children[me]){let n=t.children[me];return new Ne(t.segments.concat(n.segments),n.children)}return t}function Ho(t){return t instanceof Xi}function uH(t,n,e=null,i=null){let r=aT(t);return lT(r,n,e,i)}function aT(t){let n;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new Ne(o.url,s);return o===t&&(n=a),a}let i=e(t.root),r=oT(i);return n??r}function lT(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return B_(r,r,r,e,i);let o=fH(n);if(o.toRoot())return B_(r,r,new Ne([],{}),e,i);let s=hH(o,r,t),a=s.processChildren?Cc(s.segmentGroup,s.index,o.commands):dT(s.segmentGroup,s.index,o.commands);return B_(r,s.segmentGroup,a,e,i)}function Uh(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Dc(t){return typeof t=="object"&&t!=null&&t.outlets}function B_(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=cT(t,n,e);let a=oT(sT(s));return new Xi(a,o,r)}function cT(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=cT(o,n,e)}),new Ne(t.segments,i)}function fH(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new zh(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?n++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new zh(e,n,i)}function hH(t,n,e){if(t.isAbsolute)return new Aa(n,!0,0);if(!e)return new Aa(n,!1,NaN);if(e.parent===null)return new Aa(e,!0,0);let i=Uh(t.commands[0])?0:1,r=e.segments.length-1+i;return pH(e,r,t.numberOfDoubleDots)}function pH(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new S(4005,!1);r=i.segments.length}return new Aa(i,!1,r-o)}function mH(t){return Dc(t[0])?t[0].outlets:{[me]:t}}function dT(t,n,e){if(t??=new Ne([],{}),t.segments.length===0&&t.hasChildren())return Cc(t,n,e);let i=gH(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let o=new Ne(t.segments.slice(0,i.pathIndex),{});return o.children[me]=new Ne(t.segments.slice(i.pathIndex),t.children),Cc(o,0,r)}else return i.match&&r.length===0?new Ne(t.segments,{}):i.match&&!t.hasChildren()?q_(t,n,e):i.match?Cc(t,0,r):q_(t,n,e)}function Cc(t,n,e){if(e.length===0)return new Ne(t.segments,{});{let i=mH(e),r={};if(Object.keys(i).some(o=>o!==me)&&t.children[me]&&t.numberOfChildren===1&&t.children[me].segments.length===0){let o=Cc(t.children[me],n,e);return new Ne(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=dT(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new Ne(t.segments,r)}}function gH(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;let s=t.segments[r],a=e[i];if(Dc(a))break;let l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!HA(l,c,s))return o;i+=2}else{if(!HA(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function q_(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r<e.length;){let o=e[r];if(Dc(o)){let l=vH(o.outlets);return new Ne(i,l)}if(r===0&&Uh(e[0])){let l=t.segments[n];i.push(new zo(l.path,$A(e[0]))),r++;continue}let s=Dc(o)?o.outlets[me]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&Uh(a)?(i.push(new zo(s,$A(a))),r+=2):(i.push(new zo(s,{})),r++)}return new Ne(i,{})}function vH(t){let n={};return Object.entries(t).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=q_(new Ne([],{}),0,i))}),n}function $A(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function HA(t,n,e){return t==e.path&&di(n,e.parameters)}function yH(t,n){return t.providers&&!t._injector&&(t._injector=Ju(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Vn(t){return t.outlet||me}function _H(t,n){let e=t.filter(i=>Vn(i)===n);return e.push(...t.filter(i=>Vn(i)!==n)),e}function Fc(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}function ob(t,n){if(t===n.value)return n;for(let e of n.children){let i=ob(t,e);if(i)return i}return null}function sb(t,n){if(t===n.value)return[n];for(let e of n.children){let i=sb(t,e);if(i.length)return i.unshift(n),i}return[]}function Sa(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}function uT(t){let n=bH(t),e=new ot([new zo("",{})]),i=new ot({}),r=new ot({}),o=new ot({}),s=new ot(""),a=new Go(e,i,o,s,r,me,t,n.root);return a.snapshot=n.root,new qh(new dn(a,[]),n)}function bH(t){let n={},e={},i={},r="",o=new Ta([],n,i,r,e,me,t,null,{});return new Kh("",new dn(o,[]))}function Yh(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:x(x({},n.params),t.params),data:x(x({},n.data),t.data),resolve:x(x(x(x({},t.data),n.data),r?.data),t._resolvedData)}:i={params:x({},t.params),data:x({},t.data),resolve:x(x({},t.data),t._resolvedData??{})},r&&hT(r)&&(i.resolve[Oc]=r.title),i}function mb(t,n){n.value._routerState=t,n.children.forEach(e=>mb(t,e))}function fT(t){let n=t.children.length>0?` { ${t.children.map(fT).join(", ")} } `:"";return`${t.value}${n}`}function U_(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,di(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),di(n.params,e.params)||t.paramsSubject.next(e.params),q$(n.url,e.url)||t.urlSubject.next(e.url),di(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ab(t,n){let e=di(t.params,n.params)&&Z$(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||ab(t.parent,n.parent))}function hT(t){return typeof t.title=="string"||t.title===null}function CH(t,n,e){let i=Sc(t,n._root,e?e._root:void 0);return new qh(i,n)}function Sc(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=wH(t,n,e);return new dn(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Sc(t,a)),s}}let i=EH(n.value),r=n.children.map(o=>Sc(t,o));return new dn(i,r)}}function wH(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Sc(t,i,r);return Sc(t,i)})}function EH(t){return new Go(new ot(t.url),new ot(t.params),new ot(t.queryParams),new ot(t.fragment),new ot(t.data),t.outlet,t.component,t)}function Qh(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=Ho(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=mT(!1,un.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function mT(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[pT]=!0,e.cancellationCode=n,e}function DH(t){return gT(t)&&Ho(t.url)}function gT(t){return!!t&&t[pT]}function MH(t,n,e){let i=t._root,r=n?n._root:null;return bc(i,r,e,[i.value])}function SH(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Pa(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!hw(t)?t:n.get(t):i}function bc(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Sa(n);return t.children.forEach(s=>{AH(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ec(a,e.getContext(s),r)),r}function AH(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=TH(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Zh(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?bc(t,n,a?a.children:null,i,r):bc(t,n,e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ra(a.outlet.component,s))}else s&&Ec(n,a,r),r.canActivateChecks.push(new Zh(i)),o.component?bc(t,null,a?a.children:null,i,r):bc(t,null,e,i,r);return r}function TH(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!$o(t.url,n.url);case"pathParamsOrQueryParamsChange":return!$o(t.url,n.url)||!di(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ab(t,n)||!di(t.queryParams,n.queryParams);case"paramsChange":default:return!ab(t,n)}}function Ec(t,n,e){let i=Sa(t),r=t.value;Object.entries(i).forEach(([o,s])=>{r.component?n?Ec(s,n.children.getContext(o),e):Ec(s,null,e):Ec(s,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ra(n.outlet.component,r)):e.canDeactivateChecks.push(new Ra(null,r)):e.canDeactivateChecks.push(new Ra(null,r))}function Lc(t){return typeof t=="function"}function RH(t){return typeof t=="boolean"}function OH(t){return t&&Lc(t.canLoad)}function kH(t){return t&&Lc(t.canActivate)}function FH(t){return t&&Lc(t.canActivateChild)}function NH(t){return t&&Lc(t.canDeactivate)}function LH(t){return t&&Lc(t.canMatch)}function vT(t){return t instanceof mi||t?.name==="EmptyError"}function La(){return ze(t=>so(t.map(n=>n.pipe(Te(1),wt(Ph)))).pipe(P(n=>{for(let e of n)if(e!==!0){if(e===Ph)return Ph;if(e===!1||PH(e))return e}return!0}),ue(n=>n!==Ph),Te(1)))}function PH(t){return Ho(t)||t instanceof Ac}function jH(t,n){return Ue(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?O(ne(x({},e),{guardsResult:!0})):VH(s,i,r,t).pipe(Ue(a=>a&&RH(a)?BH(i,o,t,n):O(a)),P(a=>ne(x({},e),{guardsResult:a})))})}function VH(t,n,e,i){return Le(t).pipe(Ue(r=>GH(r.component,r.route,e,n,i)),$n(r=>r!==!0,!0))}function BH(t,n,e,i){return Le(n).pipe(Rn(r=>Xt(zH(r.route.parent,i),UH(r.route,i),HH(t,r.path,e),$H(t,r.route,e))),$n(r=>r!==!0,!0))}function UH(t,n){return t!==null&&n&&n(new nb(t)),O(!0)}function zH(t,n){return t!==null&&n&&n(new eb(t)),O(!0)}function $H(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return O(!0);let r=i.map(o=>Jt(()=>{let s=Fc(n)??e,a=Pa(o,s),l=kH(a)?a.canActivate(n,t):yn(s,()=>a(n,t));return Gr(l).pipe($n())}));return O(r).pipe(La())}function HH(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>SH(s)).filter(s=>s!==null).map(s=>Jt(()=>{let a=s.guards.map(l=>{let c=Fc(s.node)??e,d=Pa(l,c),u=FH(d)?d.canActivateChild(i,t):yn(c,()=>d(i,t));return Gr(u).pipe($n())});return O(a).pipe(La())}));return O(o).pipe(La())}function GH(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return O(!0);let s=o.map(a=>{let l=Fc(n)??r,c=Pa(a,l),d=NH(c)?c.canDeactivate(t,n,e,i):yn(l,()=>c(t,n,e,i));return Gr(d).pipe($n())});return O(s).pipe(La())}function WH(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return O(!0);let o=r.map(s=>{let a=Pa(s,t),l=OH(a)?a.canLoad(n,e):yn(t,()=>a(n,e));return Gr(l)});return O(o).pipe(La(),yT(i))}function yT(t){return Bp(Pe(n=>{if(typeof n!="boolean")throw Qh(t,n)}),P(n=>n===!0))}function qH(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return O(!0);let o=r.map(s=>{let a=Pa(s,t),l=LH(a)?a.canMatch(n,e):yn(t,()=>a(n,e));return Gr(l)});return O(o).pipe(La(),yT(i))}function Ma(t){return nr(new Tc(t))}function YH(t){return nr(new S(4e3,!1))}function KH(t){return nr(mT(!1,un.GuardRejected))}function QH(t,n,e,i,r){let o=_T(t,n,e);return o.matched?(i=yH(n,i),qH(i,n,e,r).pipe(P(s=>s===!0?o:x({},ub)))):O(o)}function _T(t,n,e){if(n.path==="**")return ZH(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?x({},ub):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||W$)(e,t,n);if(!r)return x({},ub);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?x(x({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function ZH(t){return{matched:!0,parameters:t.length>0?XA(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function WA(t,n,e,i){return e.length>0&&eG(t,e,i)?{segmentGroup:new Ne(n,JH(i,new Ne(e,t.children))),slicedSegments:[]}:e.length===0&&tG(t,e,i)?{segmentGroup:new Ne(t.segments,XH(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Ne(t.segments,t.children),slicedSegments:e}}function XH(t,n,e,i){let r={};for(let o of e)if(tp(t,n,o)&&!i[Vn(o)]){let s=new Ne([],{});r[Vn(o)]=s}return x(x({},i),r)}function JH(t,n){let e={};e[me]=n;for(let i of t)if(i.path===""&&Vn(i)!==me){let r=new Ne([],{});e[Vn(i)]=r}return e}function eG(t,n,e){return e.some(i=>tp(t,n,i)&&Vn(i)!==me)}function tG(t,n,e){return e.some(i=>tp(t,n,i))}function tp(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function nG(t,n,e){return n.length===0&&!t.children[e]}function iG(t,n,e,i,r,o,s="emptyOnly"){return new hb(t,n,e,i,r,s,o).recognize()}function oG(t){t.sort((n,e)=>n.value.outlet===me?-1:e.value.outlet===me?1:n.value.outlet.localeCompare(e.value.outlet))}function sG(t){let n=t.value.routeConfig;return n&&n.path===""}function bT(t){let n=[],e=new Set;for(let i of t){if(!sG(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=bT(i.children);n.push(new dn(i.value,r))}return n.filter(i=>!e.has(i))}function qA(t){return t.data||{}}function YA(t){return t.resolve||{}}function aG(t,n,e,i,r,o){return Ue(s=>iG(t,n,e,i,s.extractedUrl,r,o).pipe(P(({state:a,tree:l})=>ne(x({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function lG(t,n){return Ue(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return O(e);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of xT(l))s.add(c);let a=0;return Le(s).pipe(Rn(l=>o.has(l)?cG(l,i,t,n):(l.data=Yh(l,l.parent,t).resolve,O(void 0))),Pe(()=>a++),gs(1),Ue(l=>a===s.size?O(e):Bt))})}function xT(t){let n=t.children.map(e=>xT(e)).flat();return[t,...n]}function cG(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!hT(r)&&(o[Oc]=r.title),dG(o,t,n,i).pipe(P(s=>(t._resolvedData=s,t.data=Yh(t,t.parent,e).resolve,null)))}function dG(t,n,e,i){let r=H_(t);if(r.length===0)return O({});let o={};return Le(r).pipe(Ue(s=>uG(t[s],n,e,i).pipe($n(),Pe(a=>{if(a instanceof Ac)throw Qh(new ka,a);o[s]=a}))),gs(1),el(o),en(s=>vT(s)?Bt:nr(s)))}function uG(t,n,e,i){let r=Fc(n)??i,o=Pa(t,r),s=o.resolve?o.resolve(n,e):yn(r,()=>o(n,e));return Gr(s)}function z_(t){return ze(n=>{let e=t(n);return e?Le(e).pipe(P(()=>n)):O(n)})}function gb(t){let n=t.children&&t.children.map(gb),e=n?ne(x({},t),{children:n}):x({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==me&&(e.component=hG),e}function pG(t,n,e,i){return Gr(t.loadChildren()).pipe(P(wT),Ue(r=>r instanceof fl||Array.isArray(r)?O(r):Le(n.compileModuleAsync(r))),P(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(Xh,[],{optional:!0,self:!0}).flat()),{routes:s.map(gb),injector:o}}))}function mG(t){return t&&typeof t=="object"&&"default"in t}function wT(t){return mG(t)?t.default:t}function vG(t,n,e){let i=t.get(DT),r=t.get(B);return t.get(k).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),yG(t))),{onViewTransitionCreated:l}=i;return l&&yn(t,()=>l({transition:a,from:n,to:e})),s})}function yG(t){return new Promise(n=>{on({read:()=>setTimeout(n)},{injector:t})})}function bG(t){return t!==wc}function MT(t,n){t.events.pipe(ue(e=>e instanceof ui||e instanceof Zi||e instanceof Ic||e instanceof $r),P(e=>e instanceof ui||e instanceof $r?xc.COMPLETE:(e instanceof Zi?e.code===un.Redirect||e.code===un.SupersededByNewNavigation:!1)?xc.REDIRECTING:xc.FAILED),ue(e=>e!==xc.REDIRECTING),Te(1)).subscribe(()=>{n()})}function EG(t){throw t}function MG(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new S(4008,!1)}function SG(t){return!(t instanceof Mc)&&!(t instanceof Na)}function RG(t){return t.routerState.root}function jc(t,n){return{\u0275kind:t,\u0275providers:n}}function OG(){let t=y(De);return n=>{let e=t.get(sn);if(n!==e.components[0])return;let i=t.get(Hr),r=t.get(TT);t.get(bb)===1&&i.initialNavigation(),t.get(RT,null,xe.Optional)?.setUpPreloading(),t.get(AT,null,xe.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}function kG(){return jc(2,[{provide:bb,useValue:0},{provide:lf,multi:!0,deps:[De],useFactory:n=>{let e=n.get(_I,Promise.resolve());return()=>e.then(()=>new Promise(i=>{let r=n.get(Hr),o=n.get(TT);MT(r,()=>{i(!0)}),n.get(_b).afterPreactivation=()=>(i(!0),o.closed?O(void 0):o),r.initialNavigation()}))}}])}function FG(){return jc(3,[{provide:lf,multi:!0,useFactory:()=>{let n=y(Hr);return()=>{n.setUpLocationChangeListener()}}},{provide:bb,useValue:2}])}function NG(t){return jc(0,[{provide:RT,useExisting:AG},{provide:Jh,useExisting:t}])}function LG(){return jc(8,[GA,{provide:ep,useExisting:GA}])}function PG(t){let n=[{provide:ET,useValue:vG},{provide:DT,useValue:x({skipNextTransition:!!t?.skipInitialTransition},t)}];return jc(9,n)}function VG(){return{provide:AT,useFactory:()=>{let t=y(wI),n=y(k),e=y(Pc),i=y(_b),r=y(kc);return e.scrollOffset&&t.setOffset(e.scrollOffset),new TG(r,i,t,n,e)}}}function BG(){return{provide:Fi,useClass:xI}}function UG(){return{provide:Fi,useClass:ty}}function zG(t){return"guarded"}function $G(t){return[t.initialNavigation==="disabled"?FG().\u0275providers:[],t.initialNavigation==="enabledBlocking"?kG().\u0275providers:[]]}function HG(){return[{provide:QA,useFactory:OG},{provide:zs,multi:!0,useExisting:QA}]}var me,Oc,$_,Y$,JA,Xi,Ne,zo,kc,ka,J$,iH,rH,sH,lH,W_,zh,Aa,wc,Ct,Sn,Fa,ui,un,$h,Zi,$r,Ic,Hh,Y_,K_,Q_,Z_,X_,J_,eb,tb,nb,ib,Gh,Mc,Na,rb,Nc,Wh,dn,qh,Go,Ta,Kh,xH,lb,ep,GA,Ac,pT,IH,cb,Zh,Ra,Ph,Tc,Rc,db,ub,fb,rG,hb,CT,fG,Pc,hG,Xh,vb,yb,gG,ET,DT,_G,_b,xG,pb,CG,IT,wG,xc,DG,IG,Hr,ST,Jh,AG,AT,TG,TT,bb,RT,KA,jG,OT,QA,xb=f(()=>{"use strict";M();M();ke();we();we();st();Gs();me="primary",Oc=Symbol("RouteTitle"),$_=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};Y$={exact:eT,subset:tT},JA={exact:K$,subset:Q$,ignored:()=>!0};Xi=class{constructor(n=new Ne([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Oa(this.queryParams),this._queryParamMap}toString(){return J$.serialize(this)}},Ne=class{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 Vh(this)}},zo=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Oa(this.parameters),this._parameterMap}toString(){return rT(this)}};kc=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>new ka,providedIn:"root"})}}return t})(),ka=class{parse(n){let e=new W_(n);return new Xi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_c(n.root,!0)}`,i=nH(n.queryParams),r=typeof n.fragment=="string"?`#${eH(n.fragment)}`:"";return`${e}${i}${r}`}},J$=new ka;iH=/^[^\/()?;#]+/;rH=/^[^\/()?;=#]+/;sH=/^[^=?&#]+/;lH=/^[^&#]+/;W_=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ne([],{}):new Ne([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let 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[me]=new Ne(n,e)),i}parseSegment(){let n=V_(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new zo(Bh(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=oH(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=V_(this.remaining);r&&(i=r,this.capture(i))}n[Bh(e)]=Bh(i)}parseQueryParam(n){let e=aH(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let s=cH(this.remaining);s&&(i=s,this.capture(i))}let r=zA(e),o=zA(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=V_(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new S(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=me);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[me]:new Ne([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};zh=class{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Uh(i[0]))throw new S(4003,!1);let r=i.find(Dc);if(r&&r!==XA(i))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};Aa=class{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};wc="imperative",Ct=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}(Ct||{}),Sn=class{constructor(n,e){this.id=n,this.url=e}},Fa=class extends Sn{constructor(n,e,i="imperative",r=null){super(n,e),this.type=Ct.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ui=class extends Sn{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=Ct.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},un=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(un||{}),$h=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}($h||{}),Zi=class extends Sn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Ct.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},$r=class extends Sn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Ct.NavigationSkipped}},Ic=class extends Sn{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=Ct.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Hh=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Y_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},K_=class extends Sn{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Ct.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Q_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Z_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},X_=class{constructor(n){this.route=n,this.type=Ct.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},J_=class{constructor(n){this.route=n,this.type=Ct.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},eb=class{constructor(n){this.snapshot=n,this.type=Ct.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tb=class{constructor(n){this.snapshot=n,this.type=Ct.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nb=class{constructor(n){this.snapshot=n,this.type=Ct.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ib=class{constructor(n){this.snapshot=n,this.type=Ct.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gh=class{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=Ct.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Mc=class{},Na=class{constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};rb=class{get injector(){return Fc(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new Nc(this.rootInjector),this.attachRef=null}},Nc=(()=>{class t{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let 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 rb(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)(g(Dt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Wh=class{constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=ob(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=ob(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=sb(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return sb(n,this._root).map(e=>e.value)}};dn=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};qh=class extends Wh{constructor(n,e){super(n),this.snapshot=e,mb(this,n)}toString(){return this.snapshot.toString()}};Go=class{constructor(n,e,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(P(c=>c[Oc]))??O(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(P(n=>Oa(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(P(n=>Oa(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};Ta=class{get title(){return this.data?.[Oc]}constructor(n,e,i,r,o,s,a,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}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??=Oa(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Oa(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Kh=class extends Wh{constructor(n,e){super(e),this.url=n,mb(this,e)}toString(){return fT(this._root)}};xH=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=me,this.activateEvents=new V,this.deactivateEvents=new V,this.attachEvents=new V,this.detachEvents=new V,this.parentContexts=y(Nc),this.location=y(_t),this.changeDetector=y(Be),this.inputBinder=y(ep,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let 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){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new lb(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[He]})}}return t})(),lb=class t{__ngOutletInjector(n){return new t(this.route,this.childContexts,n)}constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Go?this.route:n===Nc?this.childContexts:this.parent.get(n,e)}},ep=new C(""),GA=(()=>{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){let{activatedRoute:i}=e,r=so([i.queryParams,i.params,i.data]).pipe(ze(([o,s,a],l)=>(a=x(x(x({},o),s),a),l===0?O(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=dI(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();Ac=class{constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},pT="ngNavigationCancelingError";IH=(t,n,e,i)=>P(r=>(new cb(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),cb=class{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),U_(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Sa(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Sa(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Sa(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Sa(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new ib(o.value.snapshot))}),n.children.length&&this.forwardEvent(new tb(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(U_(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),U_(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,i)}},Zh=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ra=class{constructor(n,e){this.component=n,this.route=e}};Ph=Symbol("INITIAL_VALUE");Tc=class{constructor(n){this.segmentGroup=n||null}},Rc=class extends Error{constructor(n){super(),this.urlTree=n}};db=class{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return O(i);if(r.numberOfChildren>1||!r.children[me])return YH(`${n.redirectTo}`);r=r.children[me]}}applyRedirectCommands(n,e,i,r,o){if(typeof e!="string"){let a=e,{queryParams:l,fragment:c,routeConfig:d,url:u,outlet:m,params:p,data:v,title:_}=r,E=yn(o,()=>a({params:p,data:v,queryParams:l,fragment:c,routeConfig:d,url:u,outlet:m,title:_}));if(E instanceof Xi)throw new Rc(E);e=E}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e[0]==="/")throw new Rc(s);return s}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new Xi(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new Ne(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new S(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}},ub={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};fb=class{};rG=31,hb=class{constructor(n,e,i,r,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new db(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){let n=WA(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(P(({children:e,rootSnapshot:i})=>{let r=new dn(i,e),o=new Kh("",r),s=uH(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new Ta([],Object.freeze({}),Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),me,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,me,e).pipe(P(i=>({children:i,rootSnapshot:e})),en(i=>{if(i instanceof Rc)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Tc?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(P(s=>s instanceof dn?[s]:[]))}processChildren(n,e,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Le(o).pipe(Rn(s=>{let a=i.children[s],l=_H(e,s);return this.processSegmentGroup(n,l,a,s,r)}),xm((s,a)=>(s.push(...a),s)),rr(null),bm(),Ue(s=>{if(s===null)return Ma(i);let a=bT(s);return oG(a),O(a)}))}processSegment(n,e,i,r,o,s,a){return Le(e).pipe(Rn(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,s,a).pipe(en(c=>{if(c instanceof Tc)return O(null);throw c}))),$n(l=>!!l),en(l=>{if(vT(l))return nG(i,r,o)?O(new fb):Ma(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,s,a,l){return Vn(i)!==s&&(s===me||!tp(r,o,i))?Ma(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s,l):Ma(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:m}=_T(e,r,o);if(!l)return Ma(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>rG&&(this.allowRedirects=!1));let p=new Ta(o,c,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,qA(r),Vn(r),r.component??r._loadedComponent??null,r,YA(r)),v=Yh(p,a,this.paramsInheritanceStrategy);p.params=Object.freeze(v.params),p.data=Object.freeze(v.data);let _=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,p,n);return this.applyRedirects.lineralizeSegments(r,_).pipe(Ue(E=>this.processSegment(n,i,e,E.concat(m),s,!1,a)))}matchSegmentAgainstRoute(n,e,i,r,o,s){let a=QH(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),a.pipe(ze(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(ze(({routes:c})=>{let d=i._loadedInjector??n,{parameters:u,consumedSegments:m,remainingSegments:p}=l,v=new Ta(m,u,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,qA(i),Vn(i),i.component??i._loadedComponent??null,i,YA(i)),_=Yh(v,s,this.paramsInheritanceStrategy);v.params=Object.freeze(_.params),v.data=Object.freeze(_.data);let{segmentGroup:E,slicedSegments:I}=WA(e,m,p,c);if(I.length===0&&E.hasChildren())return this.processChildren(d,c,E,v).pipe(P(H=>new dn(v,H)));if(c.length===0&&I.length===0)return O(new dn(v,[]));let U=Vn(i)===o;return this.processSegment(d,c,E,I,U?me:o,!0,v).pipe(P(H=>new dn(v,H instanceof dn?[H]:[])))}))):Ma(e)))}getChildConfig(n,e,i){return e.children?O({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?O({routes:e._loadedRoutes,injector:e._loadedInjector}):WH(n,e,i,this.urlSerializer).pipe(Ue(r=>r?this.configLoader.loadChildren(n,e).pipe(Pe(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):KH(e))):O({routes:[],injector:n})}};CT=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===me);return i}getResolvedTitleForRoute(e){return e.data[Oc]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(fG),providedIn:"root"})}}return t})(),fG=(()=>{class t extends CT{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(g(GI))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Pc=new C("",{providedIn:"root",factory:()=>({})}),hG=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["ng-component"]],standalone:!0,features:[Se],decls:1,vars:0,template:function(i,r){i&1&&oe(0,"router-outlet")},dependencies:[xH],encapsulation:2})}}return t})();Xh=new C(""),vb=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=y(cf)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return O(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Gr(e.loadComponent()).pipe(P(wT),Pe(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Wt(()=>{this.componentLoaders.delete(e)})),r=new to(i,()=>new R).pipe(ss());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return O({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=pG(i,this.compiler,e,this.onLoadEndListener).pipe(Wt(()=>{this.childrenLoaders.delete(i)})),s=new to(o,()=>new R).pipe(ss());return this.childrenLoaders.set(i,s),s}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();yb=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(gG),providedIn:"root"})}}return t})(),gG=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ET=new C(""),DT=new C("");_G=new C(""),_b=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new R,this.transitionAbortSubject=new R,this.configLoader=y(vb),this.environmentInjector=y(Dt),this.urlSerializer=y(kc),this.rootContexts=y(Nc),this.location=y(Zn),this.inputBindingEnabled=y(ep,{optional:!0})!==null,this.titleStrategy=y(CT),this.options=y(Pc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=y(yb),this.createViewTransition=y(ET,{optional:!0}),this.navigationErrorHandler=y(_G,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>O(void 0),this.rootComponentType=null;let e=r=>this.events.next(new X_(r)),i=r=>this.events.next(new J_(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(ne(x(x({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new ot({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:wc,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ue(o=>o.id!==0),P(o=>ne(x({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ze(o=>{let s=!1,a=!1;return O(o).pipe(ze(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",un.SupersededByNewNavigation),Bt;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?ne(x({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let u="";return this.events.next(new $r(l.id,this.urlSerializer.serialize(l.rawUrl),u,$h.IgnoredSameUrlNavigation)),l.resolve(!1),Bt}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return O(l).pipe(ze(u=>{let m=this.transitions?.getValue();return this.events.next(new Fa(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),m!==this.transitions?.getValue()?Bt:Promise.resolve(u)}),aG(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Pe(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=ne(x({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let m=new Hh(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(m)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:u,extractedUrl:m,source:p,restoredState:v,extras:_}=l,E=new Fa(u,this.urlSerializer.serialize(m),p,v);this.events.next(E);let I=uT(this.rootComponentType).snapshot;return this.currentTransition=o=ne(x({},l),{targetSnapshot:I,urlAfterRedirects:m,extras:ne(x({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,O(o)}else{let u="";return this.events.next(new $r(l.id,this.urlSerializer.serialize(l.extractedUrl),u,$h.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Bt}}),Pe(l=>{let c=new Y_(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),P(l=>(this.currentTransition=o=ne(x({},l),{guards:MH(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),jH(this.environmentInjector,l=>this.events.next(l)),Pe(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Qh(this.urlSerializer,l.guardsResult);let c=new K_(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ue(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",un.GuardRejected),!1)),z_(l=>{if(l.guards.canActivateChecks.length)return O(l).pipe(Pe(c=>{let d=new Q_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),ze(c=>{let d=!1;return O(c).pipe(lG(this.paramsInheritanceStrategy,this.environmentInjector),Pe({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",un.NoDataFromResolver)}}))}),Pe(c=>{let d=new Z_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),z_(l=>{let c=d=>{let u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(Pe(m=>{d.component=m}),P(()=>{})));for(let m of d.children)u.push(...c(m));return u};return so(c(l.targetSnapshot.root)).pipe(rr(null),Te(1))}),z_(()=>this.afterPreactivation()),ze(()=>{let{currentSnapshot:l,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?Le(d).pipe(P(()=>o)):O(o)}),P(l=>{let c=CH(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=ne(x({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),Pe(()=>{this.events.next(new Mc)}),IH(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Te(1),Pe({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ui(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),ae(this.transitionAbortSubject.pipe(Pe(l=>{throw l}))),Wt(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",un.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),en(l=>{if(a=!0,gT(l))this.events.next(new Zi(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),DH(l)?this.events.next(new Na(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Ic(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let d=yn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof Ac){let{message:u,cancellationCode:m}=Qh(this.urlSerializer,d);this.events.next(new Zi(o.id,this.urlSerializer.serialize(o.extractedUrl),u,m)),this.events.next(new Na(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(c);let u=e.errorHandler(l);o.resolve(!!u)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return Bt}))}))}cancelNavigationTransition(e,i,r){let o=new Zi(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();xG=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(CG),providedIn:"root"})}}return t})(),pb=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},CG=(()=>{class t extends pb{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),IT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(wG),providedIn:"root"})}}return t})(),wG=(()=>{class t extends IT{constructor(){super(...arguments),this.location=y(Zn),this.urlSerializer=y(kc),this.options=y(Pc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=y(yb),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Xi,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=uT(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?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=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Fa)this.stateMemento=this.createStateMemento();else if(e instanceof $r)this.rawUrlTree=i.initialUrl;else if(e instanceof Hh){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else e instanceof Mc?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof Zi&&(e.code===un.GuardRejected||e.code===un.NoDataFromResolver)?this.restoreHistory(i):e instanceof Ic?this.restoreHistory(i,!0):e instanceof ui&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=e instanceof Xi?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let o=this.browserPageId,s=x(x({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(r,"",s)}else{let o=x(x({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",o)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(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 this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),xc=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(xc||{});DG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},IG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Hr=(()=>{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.console=y(af),this.stateManager=y(IT),this.options=y(Pc,{optional:!0})||{},this.pendingTasks=y(Di),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=y(_b),this.urlSerializer=y(kc),this.location=y(Zn),this.urlHandlingStrategy=y(yb),this._events=new R,this.errorHandler=this.options.errorHandler||EG,this.navigated=!1,this.routeReuseStrategy=y(xG),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=y(Xh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!y(ep,{optional:!0}),this.eventsSubscription=new ge,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Zi&&i.code!==un.Redirect&&i.code!==un.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ui)this.navigated=!0;else if(i instanceof Na){let s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=x({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||bG(r.source)},s);this.scheduleNavigation(a,wc,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}SG(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),wc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let l=x({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(gb),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={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=x(x({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let u;try{let m=r?r.snapshot:this.routerState.snapshot.root;u=aT(m)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),u=this.currentUrlTree.root}return lT(u,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=Ho(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,wc,null,i)}navigate(e,i={skipLocationChange:!1}){return MG(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=x({},DG):i===!1?r=x({},IG):r=i,Ho(e))return UA(this.currentUrlTree,e,r);let o=this.parseUrl(e);return UA(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((u,m)=>{a=u,l=m});let d=this.pendingTasks.add();return MT(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(u=>Promise.reject(u))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();ST=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new R,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof ui&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Ho(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||i||r||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:BE(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Ho(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(h(Hr),h(Go),yr("tabindex"),h(Qn),h(F),h(Fi))}}static{this.\u0275dir=j({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&K("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&_e("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ie],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ie],replaceUrl:[2,"replaceUrl","replaceUrl",Ie],routerLink:"routerLink"},standalone:!0,features:[lt,He]})}}return t})(),Jh=class{},AG=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ue(e=>e instanceof ui),Rn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=Ju(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Le(r).pipe(ir())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=O(null);let o=r.pipe(Ue(s=>s===null?O(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(i);return Le([o,s]).pipe(ir())}else return o})}static{this.\u0275fac=function(i){return new(i||t)(g(Hr),g(cf),g(Dt),g(Jh),g(vb))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),AT=new C(""),TG=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Fa?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ui?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof $r&&e.code===$h.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 Gh&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Gh(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){js()}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();TT=new C("",{factory:()=>new R}),bb=new C("",{providedIn:"root",factory:()=>1});RT=new C("");KA=new C("ROUTER_FORROOT_GUARD"),jG=[Zn,{provide:kc,useClass:ka},Hr,Nc,{provide:Go,useFactory:RG,deps:[Hr]},vb,[]],OT=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[jG,[],{provide:Xh,multi:!0,useValue:e},{provide:KA,useFactory:zG,deps:[[Hr,new ml,new Tu]]},{provide:Pc,useValue:i||{}},i?.useHash?BG():UG(),VG(),i?.preloadingStrategy?NG(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?$G(i):[],i?.bindToComponentInputs?LG().\u0275providers:[],i?.enableViewTransitions?PG().\u0275providers:[],HG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Xh,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(g(KA,8))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})();QA=new C("")});var WG,kT,Cb=f(()=>{"use strict";M();M();ii();Yi();Ht();WG=["clearButton"],kT=(()=>{class t{constructor(){this.tldClick=new V,this.ariaCode="CLOSE_BUTTON"}clicked(){this.tldClick.emit(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["tld-close-button"]],viewQuery:function(i,r){if(i&1&&Ve(WG,5),i&2){let o;he(o=pe())&&(r.clearButton=o.first)}},inputs:{ariaCode:"ariaCode",disabled:"disabled",tooltip:"tooltip"},outputs:{tldClick:"tldClick"},decls:6,vars:7,consts:[["clearButton",""],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons"]],template:function(i,r){if(i&1){let o=Ge();D(0,"button",1,0),se(2,"translate"),se(3,"translate"),K("click",function(){return ve(o),ye(r.clicked())}),D(4,"span",2),le(5," close "),T()()}i&2&&(A("matTooltip",be(2,3,r.tooltip))("disabled",r.disabled),_e("aria-label",be(3,5,"ARIA_LABELS."+r.ariaCode)))},dependencies:[Or,li,En],encapsulation:2})}}return t})()});var FT,NT=f(()=>{"use strict";we();Cb();ii();Ht();Yi();M();FT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,ha,ei,_a]})}}return t})()});function KG(t,n){if(t&1&&(oe(0,"p",10),se(1,"translate")),t&2){let e=$();A("innerHtml",So(1,1,e.message.title,e.message.localizationParams),Ps)}}function QG(t,n){if(t&1&&(oe(0,"span",12),se(1,"translate")),t&2){let e=$(2);A("innerHtml",So(1,1,e.message.support,e.message.localizationParams),Ps)}}function ZG(t,n){if(t&1&&(D(0,"p",11),oe(1,"span",12),se(2,"translate"),ee(3,QG,2,4,"span",13),T()),t&2){let e=$();w(),A("innerHtml",So(2,2,e.message.body,e.message.localizationParams),Ps),w(2),A("ngIf",e.message.support)}}function XG(t,n){if(t&1&&(D(0,"mat-icon"),le(1),T()),t&2){let e=$(2);w(),pt(e.message.callbackButtonIcon)}}function JG(t,n){if(t&1){let e=Ge();D(0,"button",14),K("click",function(){ve(e);let r=$();return ye(r.message==null?null:r.message.callbackButtonClick())}),ee(1,XG,2,1,"mat-icon",15),le(2),se(3,"translate"),T()}if(t&2){let e=$();w(),A("ngIf",e.message.callbackButtonIcon),w(),it(" ",be(3,2,e.message.callbackButtonText)," ")}}function e3(t,n){if(t&1){let e=Ge();D(0,"tld-close-button",16),K("tldClick",function(){ve(e);let r=$();return ye(r.closeClick())}),T()}if(t&2){let e=$();fe("no-top-margin",!e.message.title||!e.message.body)}}function t3(t,n){if(t&1){let e=Ge();D(0,"button",21),K("click",function(){ve(e);let r=$(2);return ye(r.buttonClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);w(),it("",be(2,1,e.message.buttonText)," ")}}function n3(t,n){if(t&1){let e=Ge();D(0,"a",22),K("click",function(){ve(e);let r=$(2);return ye(r.linkClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);_e("href",e.message.linkHref,xv),w(),pt(be(2,2,e.message.linkText))}}function i3(t,n){if(t&1){let e=Ge();D(0,"a",23),K("click",function(){ve(e);let r=$(2);return ye(r.linkClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);A("routerLink",sf(4,YG,e.message.routerLink)),w(),pt(be(2,2,e.message.linkText))}}function r3(t,n){if(t&1&&(D(0,"div",17),ee(1,t3,3,3,"button",18)(2,n3,3,4,"a",19)(3,i3,3,6,"a",20),T()),t&2){let e=$();w(),A("ngIf",e.message.buttonText),w(),A("ngIf",e.message.linkHref&&e.message.linkText),w(),A("ngIf",e.message.routerLink&&e.message.linkText)}}var YG,LT,np=f(()=>{"use strict";M();M();we();Sh();Ea();Cb();ii();xb();Fr();Ht();YG=t=>[t];LT=(()=>{class t{constructor(){this.buttonClicked=new V,this.closeClicked=new V,this.linkClicked=new V,this.iconNames={BASIC:"info",INFO:"info",ERROR:"error",SUCCESS:"check_circle",WARNING:"info"}}ngOnInit(){this.className=this.message.type.toLocaleLowerCase()}buttonClick(){this.buttonClicked.next(null)}closeClick(){this.closeClicked.next(null)}linkClick(){this.linkClicked.next(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["lib-tld-notification-message"]],inputs:{message:"message",inline:"inline"},outputs:{buttonClicked:"buttonClicked",closeClicked:"closeClicked",linkClicked:"linkClicked"},decls:12,vars:13,consts:[["fxLayout","row","fxLayoutAlign","start start","aria-live","polite","fxLayout","row",1,"notification-message-container","tld-default-border",3,"ngClass.lt-md"],[1,"material-icons-outlined","message-icon"],["fxFlex","",1,"items-container"],["fxLayout","row"],["fxFlex","",1,"text-container"],["class","message-title",3,"innerHtml",4,"ngIf"],["class","message-body",4,"ngIf"],["color","accent","mat-stroked-button","","class","callback-button",3,"click",4,"ngIf"],["class","close-button",3,"no-top-margin","tldClick",4,"ngIf"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center",4,"ngIf"],[1,"message-title",3,"innerHtml"],[1,"message-body"],[3,"innerHtml"],[3,"innerHtml",4,"ngIf"],["color","accent","mat-stroked-button","",1,"callback-button",3,"click"],[4,"ngIf"],[1,"close-button",3,"tldClick"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center"],["class","message-action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","message-action-link",3,"click",4,"ngIf"],["class","message-action-link",3,"routerLink","click",4,"ngIf"],["color","accent","mat-flat-button","",1,"message-action-button",3,"click"],[1,"message-action-link",3,"click"],[1,"message-action-link",3,"click","routerLink"]],template:function(i,r){i&1&&(D(0,"div")(1,"div",0)(2,"span",1),le(3),T(),D(4,"div",2)(5,"div",3)(6,"div",4),ee(7,KG,2,4,"p",5)(8,ZG,4,5,"p",6),T(),ee(9,JG,4,4,"button",7)(10,e3,1,2,"tld-close-button",8),T(),ee(11,r3,4,3,"div",9),T()()()),i&2&&(tf("notification-message ",r.className,""),w(),fe("inline",r.inline),A("ngClass.lt-md","mobile"),_e("id",r.message.id),w(2),it(" ",r.iconNames[r.message.type]," "),w(4),A("ngIf",r.message.title),w(),A("ngIf",r.message.body),w(),A("ngIf",r.message.callbackButtonText),w(),A("ngIf",!r.message.hideClose&&!r.message.callbackButtonText),w(),A("ngIf",r.message.buttonText||r.message.linkHref||r.message.routerLink))},dependencies:[Hs,lA,sA,rA,iA,wa,kT,ah,ST,kr,En],styles:["[_nghost-%COMP%]{display:inline-block;width:100%}.close-button[_ngcontent-%COMP%]{position:absolute;top:.2em!important;right:.2em!important}.no-top-margin[_ngcontent-%COMP%]{top:0}.text-container[_ngcontent-%COMP%]{margin-right:45px}.notification-message[_ngcontent-%COMP%]{position:relative}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--base-100)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--base-40)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--info-light)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--info-primary)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--error-light)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--error-dark)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--warning-light)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--warning-dark)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--success-light)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--success-dark)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{border-radius:4px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:has(.message-title + .message-body)[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{font-weight:600}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%]{padding:.6em .4em!important;border-radius:0}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.4em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.2em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:0!important}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:first-child{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{margin:0;font-size:16px;line-height:24px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-body[_ngcontent-%COMP%]{margin:0}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline){padding:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .items-container[_ngcontent-%COMP%]{margin-left:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-title[_ngcontent-%COMP%]{font-size:1.25em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-body[_ngcontent-%COMP%]{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%]{padding:.75em 1em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.75em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:.2em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{font-size:1em}"]})}}return t})()});var PT,jT=f(()=>{"use strict";we();Ah();ii();xb();Ht();NT();np();Fr();M();PT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,Da,FT,ha,ei,OT,dh]})}}return t})()});var Wo,wb=f(()=>{"use strict";Wo=function(t){return t.BASIC="BASIC",t.INFO="INFO",t.WARNING="WARNING",t.SUCCESS="SUCCESS",t.ERROR="ERROR",t}(Wo||{})});var VT=f(()=>{"use strict";wb()});var BT=f(()=>{"use strict"});var UT=f(()=>{"use strict";BT()});var Eb=f(()=>{"use strict";jT();np();VT();UT()});var Db=f(()=>{"use strict"});var zT=f(()=>{"use strict";Eb();Db()});var $T=f(()=>{"use strict"});var HT=f(()=>{"use strict";$T()});var GT=f(()=>{"use strict";Db()});var WT=f(()=>{"use strict";zT();HT();GT()});var qT=f(()=>{"use strict"});var YT=f(()=>{"use strict"});var KT=f(()=>{"use strict"});var QT=f(()=>{"use strict"});var ZT=f(()=>{"use strict"});var XT=f(()=>{"use strict"});var JT=f(()=>{"use strict"});var eR=f(()=>{"use strict"});var tR=f(()=>{"use strict";j_()});var Ib=f(()=>{"use strict"});var nR=f(()=>{"use strict";qo();Ib()});var iR=f(()=>{"use strict";Ib()});var Mb=f(()=>{"use strict";nR();iR()});var rR=f(()=>{"use strict";Mb()});var oR=f(()=>{"use strict"});var sR=f(()=>{"use strict"});var qo=f(()=>{"use strict";qT();YT();KT();QT();ZT();XT();JT();eR();tR();rR();oR();sR()});var aR=f(()=>{"use strict"});var lR=f(()=>{"use strict"});var cR=f(()=>{"use strict"});var dR=f(()=>{"use strict"});var uR=f(()=>{"use strict"});var fR=f(()=>{"use strict"});var hR=f(()=>{"use strict"});var pR=f(()=>{"use strict"});var mR=f(()=>{"use strict";aR();lR();cR();dR();uR();fR();hR();pR()});var gR=f(()=>{"use strict"});var vR=f(()=>{"use strict"});var yR=f(()=>{"use strict";vR()});var _R=f(()=>{"use strict";qo();mR();gR();yR()});var bR=f(()=>{"use strict";_R()});var xR=f(()=>{"use strict";bR()});var Sb=f(()=>{"use strict"});var CR=f(()=>{"use strict";Sb()});var wR=f(()=>{"use strict";CR();Sb()});var Ab=f(()=>{"use strict"});var ER=f(()=>{"use strict";Ab()});var DR=f(()=>{"use strict";ER();Ab()});var Tb=f(()=>{"use strict"});var IR=f(()=>{"use strict";Tb()});var MR=f(()=>{"use strict";IR();Tb()});var SR,Rb=f(()=>{"use strict";M();Ht();SR=(()=>{class t{constructor(e){this.translate=e,this.languagesLocalizationKey="LANGUAGES",this.translationCache=new Map,this.localeSameRegions={nb:["no"],et:["ee"],sl:["si"],sv:["se"],uk:["ua"],en:["gb","us"]},this.translations={en:{mt:"Maltese"},lv:{mt:"Maltie\u0161u"},lt:{mt:"Maltie\u010Di\u0173"},et:{mt:"Malta"}},this.translate.onLangChange.subscribe(()=>{this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang}),this.lastUiLanguage=this.translate.currentLang}transform(e,i=!1){if(!e)return"";this.lastUiLanguage!==this.translate.currentLang&&(this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang);let r=`${e}:${i}`;if(this.translationCache.has(r))return this.translationCache.get(r);let o=this.getLanguageFromLanguageCode(e),a=this.isLanguageCodeSameAsRegion(e)?o:e,l=this.getTranslation(a,i);return this.translationCache.set(r,l),l}getTranslation(e,i){let o=this.translate.instant(this.languagesLocalizationKey)[e.toUpperCase().replace("-","_")]??this.getLanguageTranslationFromLanguageCode(this.translate.currentLang,e);return i&&(o=o.split("(")[0].trim()),o}getLanguageTranslationFromLanguageCode(e,i){let r=new Intl.DisplayNames([e],{type:"language"}),o=new Intl.DisplayNames([e],{type:"region"}),s,a=this.getLanguageFromLanguageCode(i),l=this.getRegionFromLanguageCode(i);try{let c=r.of(a),d=o.of(l);s=`${c} (${d})`}catch{try{s=r.of(i)}catch{return s=this.translations[e]?.[a]??i,s}}return this.capitalizeFirstLetter(s)}isLanguageCodeSameAsRegion(e){let[i,r,o]=e.split("-");return(i===r?.toLowerCase()||this.localeSameRegions[i]?.includes(r?.toLowerCase()))&&!o}getRegionFromLanguageCode(e){let[i,r,o]=e.split("-");return(o?`${r}-${o}`:`${r}`).toUpperCase()}getLanguageFromLanguageCode(e){return e.split("-")[0].toLowerCase()}capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}static{this.\u0275fac=function(i){return new(i||t)(h(Li,16))}}static{this.\u0275pipe=ks({name:"languageTranslate",type:t,pure:!1,standalone:!0})}}return t})()});var AR=f(()=>{"use strict";Rb()});var TR=f(()=>{"use strict";AR();Rb()});var RR=f(()=>{"use strict"});var OR=f(()=>{"use strict"});var kR=f(()=>{"use strict"});var FR=f(()=>{"use strict"});var NR=f(()=>{"use strict";RR();OR();kR();FR()});var Ob=f(()=>{"use strict";NR()});var LR=f(()=>{"use strict";Ob()});var PR=f(()=>{"use strict";LR();Ob()});var kb=f(()=>{"use strict"});var jR=f(()=>{"use strict";kb()});var VR=f(()=>{"use strict";jR();kb()});var BR=f(()=>{"use strict";qo()});var UR=f(()=>{"use strict";BR()});var Fb=f(()=>{"use strict";qo()});var zR=f(()=>{"use strict";Fb()});var $R=f(()=>{"use strict";zR();Fb()});var HR=f(()=>{"use strict"});var GR=f(()=>{"use strict";HR()});var WR=f(()=>{"use strict";Lb()});var qR=f(()=>{"use strict";GR();WR()});var YR=f(()=>{"use strict";qo()});var KR=f(()=>{"use strict";YR()});var QR=f(()=>{"use strict";qo()});var ZR=f(()=>{"use strict";QR()});var XR=f(()=>{"use strict";wR();DR();MR();TR();PR();VR();UR();$R();qR();Mb();KR();ZR()});var Nb,JR=f(()=>{"use strict";XR();M();Ht();Nb=(()=>{class t{constructor(e){this.translateService=e}getLanguageCodeTranslation(e,i=!1){return new SR(this.translateService).transform(e,i)}removeRegionFromLanguageCode(e){return e.split("-")[0]}static{this.\u0275fac=function(i){return new(i||t)(g(Li))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var Lb=f(()=>{"use strict";JR()});var Pb=f(()=>{"use strict"});var eO=f(()=>{"use strict";Pb()});var tO=f(()=>{"use strict"});var nO=f(()=>{"use strict";tO();Pb()});var iO=f(()=>{"use strict";eO();nO()});var jb=f(()=>{"use strict";PA();BA();WT();xR();Lb();iO()});var Wr,Vb=f(()=>{"use strict";jb();Wr=class{static addPlausible(n){let i=new jA().window;if(!i||!n)return;let r="https://plausible.io/js/plausible.js",o=document.createElement("script");o.src=r,o.setAttribute("data-domain",n),document.head.append(o),i.plausible=i.plausible||((...s)=>{(i.plausible.q=i.plausible.q||[]).push(s)})}static customEvent(n,e){let i=window;if(!i?.plausible){console.log("STOPPING EVENT",i);return}console.log("SUCCESS EVENT",n,e),i.plausible(n,{props:e})}}});var Bb=f(()=>{"use strict";Vb()});var rO=f(()=>{"use strict";Bb()});var oO=f(()=>{"use strict"});var sO=f(()=>{"use strict";oO()});var aO=f(()=>{"use strict";Vb();Bb();rO();sO()});var ip,lO=f(()=>{"use strict";ip=function(t){return t.GENERAL="General",t.PROFESSIONAL="Professional",t.ACADEMIC="Academic",t}(ip||{})});var ja,cO=f(()=>{"use strict";M();ja=new C("LLM_CONFIGURATION_TOKEN")});var dO=f(()=>{"use strict"});var rp=f(()=>{"use strict";cO();dO();Rh()});var uO,fO=f(()=>{"use strict";M();Uo();ke();wb();rp();M();Uo();uO=(()=>{class t{constructor(e){this.quotaService=e,this.llmConfiguration=y(ja),this.trialRequestCount=15,this.LLMQuotaLocalStorageKey="LLM_QUOTA"}getRemainingQuota(e){return this.llmConfiguration.useLocalQuota?O(this.setQuotaLocalStorageUsage(e)):this.quotaService.getQuotaUsage().pipe(P(i=>{let r=i.usage.find(o=>o.quotaType===qe.LLM_REQUESTS||o.quotaType===qe.LEGACY_LLM_REQUESTS);return r?r.quotaRemaining:this.setQuotaLocalStorageUsage(e)}),en(()=>O(this.setQuotaLocalStorageUsage(e))))}getExceededLimitMessage(e){return{type:Wo.WARNING,body:"ERRORS.MAX_CHAR_LENGTH",localizationParams:{maxCharLength:this.llmConfiguration.maxCharLength,totalSymbols:e}}}getReachedQuotaMessage(){return{type:Wo.ERROR,body:"LLM.ERRORS.QUOTA_LIMIT_REACHED",localizationParams:{subscriptionUrl:this.llmConfiguration.subscriptionUrl}}}getDefaultErrorMessage(){return{type:Wo.ERROR,body:"LLM.ERRORS.DEFAULT",localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}getRequestTimeoutMessage(e){return{type:Wo.ERROR,body:`LLM.ERRORS.${e}_REQUEST_TIMEOUT`,localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}setQuotaLocalStorageUsage(e){let i=localStorage.getItem(this.LLMQuotaLocalStorageKey),r=new Date,o={remainingQuota:this.trialRequestCount,lastUsedAt:r};if(i){o=JSON.parse(i);let a=new Date(o.lastUsedAt);(a.getDate()!==r.getDate()||a.getMonth()!==r.getMonth()||a.getFullYear()!==r.getFullYear())&&(o.remainingQuota=this.trialRequestCount),e&&(o.remainingQuota-=1)}return o.lastUsedAt=r,localStorage.setItem(this.LLMQuotaLocalStorageKey,JSON.stringify(o)),o.remainingQuota}static{this.\u0275fac=function(i){return new(i||t)(g(TA))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var Ub,hO,pO,zb=f(()=>{"use strict";we();M();Ub=class{constructor(n,e){this._document=e;let i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=n,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){let n=this._textarea,e=!1;try{if(n){let i=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){let n=this._textarea;n&&(n.remove(),this._textarea=void 0)}},hO=(()=>{class t{constructor(e){this._document=e}copy(e){let i=this.beginCopy(e),r=i.copy();return i.destroy(),r}beginCopy(e){return new Ub(e,this._document)}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})()});var p3,mO,$b=f(()=>{"use strict";M();ji();ke();M();zb();ii();Fr();ji();Yi();Ea();Ht();p3=["textarea"],mO=(()=>{class t{constructor(e){this.clipboard=e,this.textEditEvent=new V,this.dislikeEvent=new V,this.copyEvent=new V,this.destroy=new R}ngOnInit(){this.textareaControl=new $l(this.text)}ngAfterViewInit(){gi(this.textarea.nativeElement,"keyup").pipe(Pe(e=>{e.ctrlKey&&e.key==="c"&&this.copyEvent.emit()}),vi(300),ae(this.destroy)).subscribe(()=>{this.textEditEvent.emit(this.textareaControl.value)})}ngOnChanges(e){e&&e.disabled&&(this.disabled?this.textareaControl?.disable():this.textareaControl?.enable()),e&&e.text&&(this.textareaControl=new $l(this.text))}dislike(){this.dislikeEvent.emit()}copy(){this.clipboard.copy(this.textareaControl.value),this.copyEvent.emit()}ngOnDestroy(){this.destroy.next(null),this.destroy.complete()}static{this.\u0275fac=function(i){return new(i||t)(h(hO))}}static{this.\u0275cmp=re({type:t,selectors:[["lib-llm-textarea"]],viewQuery:function(i,r){if(i&1&&Ve(p3,5),i&2){let o;he(o=pe())&&(r.textarea=o.first)}},inputs:{text:"text",disabled:"disabled",actionButtonsDisabled:"actionButtonsDisabled"},outputs:{textEditEvent:"textEditEvent",dislikeEvent:"dislikeEvent",copyEvent:"copyEvent"},features:[He],decls:18,vars:13,consts:[["textarea",""],[1,"llm-wrapper",3,"ngClass.gt-lg"],[1,"llm-textarea-wrapper"],[1,"llm-textarea",3,"formControl"],[1,"llm-textarea-actions"],[1,"material-icons-outlined","llm-eu-data-tooltip",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons-outlined","copy"],["mat-icon-button","",3,"click","disabled","matTooltip"],[1,"material-icons-outlined","dislike"]],template:function(i,r){if(i&1){let o=Ge();D(0,"div",1)(1,"div",2)(2,"textarea",3,0),le(4," "),T(),D(5,"div",4)(6,"mat-icon",5),se(7,"translate"),le(8," gpp_maybe "),T(),D(9,"div")(10,"button",6),se(11,"translate"),K("click",function(){return ve(o),ye(r.dislike())}),D(12,"mat-icon",7),le(13," thumb_down "),T()(),D(14,"button",8),se(15,"translate"),K("click",function(){return ve(o),ye(r.copy())}),D(16,"mat-icon",9),le(17," content_copy "),T()()()()()()}i&2&&(A("ngClass.gt-lg","desktop"),w(2),A("formControl",r.textareaControl),w(4),A("matTooltip",be(7,7,"LLM.EU_DATA_TOOLTIP")),w(4),A("matTooltip",be(11,9,"TOOLTIPS.DISLIKE"))("disabled",r.actionButtonsDisabled||!r.textareaControl.value),w(4),A("disabled",r.actionButtonsDisabled||!r.textareaControl.value)("matTooltip",be(15,11,"TOOLTIPS.COPY")))},dependencies:[Or,kr,Xs,Js,Ny,li,wa,En],styles:[".llm-wrapper[_ngcontent-%COMP%]{position:relative;border:1px solid var(--base-65);border-radius:8px;overflow-y:auto}.llm-textarea-wrapper[_ngcontent-%COMP%]{position:relative}.llm-textarea[_ngcontent-%COMP%]{min-width:100%;min-height:310px;padding:8px 16px;resize:none;background:none;border-radius:8px;margin-bottom:46px}.desktop[_ngcontent-%COMP%] .llm-textarea[_ngcontent-%COMP%]{min-height:490px}.llm-textarea-actions[_ngcontent-%COMP%]{position:absolute;display:flex;justify-content:space-between;align-items:center;width:100%;bottom:4px}.llm-eu-data-tooltip[_ngcontent-%COMP%]{margin-left:16px}"]})}}return t})()});function y3(t,n){if(t&1){let e=Ge();D(0,"lib-tld-notification-message",15),K("closeClicked",function(){let r=ve(e).$implicit,o=$();return ye(o.closeMessage(r))}),T()}if(t&2){let e=n.$implicit;A("message",e)}}function _3(t,n){if(t&1&&(D(0,"mat-option",18),le(1),se(2,"uppercase"),se(3,"translate"),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",be(3,4,"LLM.USE_CASE."+be(2,2,e))," ")}}function b3(t,n){if(t&1){let e=Ge();D(0,"mat-form-field",16)(1,"mat-label"),le(2),se(3,"translate"),T(),D(4,"mat-select",17),Us("ngModelChange",function(r){ve(e);let o=$();return El(o.selectedUseCase,r)||(o.selectedUseCase=r),ye(r)}),QD(5,_3,4,6,"mat-option",18,KD),T()()}if(t&2){let e=$();w(2),pt(be(3,3,"LLM.USE_CASES_LABEL")),w(2),A("disabled",e.isLoading),Bs("ngModel",e.selectedUseCase),w(),ZD(e.useCases)}}function x3(t,n){if(t&1&&(D(0,"mat-option",18),le(1),se(2,"uppercase"),se(3,"translate"),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",be(3,4,"LLM.REPHRASE_MODAL.WRITING_STYLES."+be(2,2,e))," ")}}function C3(t,n){if(t&1){let e=Ge();nf(0),D(1,"mat-form-field",19)(2,"mat-label"),le(3),se(4,"translate"),T(),D(5,"mat-select",20),K("selectionChange",function(r){ve(e);let o=$();return ye(o.checkRephrasedTextSaves(r))}),ee(6,x3,4,6,"mat-option",21),T()(),D(7,"p",22),le(8),se(9,"uppercase"),se(10,"translate"),se(11,"translate"),D(12,"span",23),se(13,"uppercase"),se(14,"translate"),le(15," info "),T()(),rf()}if(t&2){let e=$();w(3),pt(be(4,6,"LLM.REPHRASE_MODAL.WRITING_STYLES.TITLE")),w(2),A("disabled",e.isLoading)("value",e.selectedWritingStyle),w(),A("ngForOf",e.writingStyles),w(2),it("",So(11,12,"LLM.REPHRASE_MODAL.WRITING_STYLES.SPECIFIC_STYLE",sf(19,g3,be(10,10,"LLM.REPHRASE_MODAL.WRITING_STYLES."+be(9,8,e.selectedWritingStyle))))," "),w(4),A("matTooltip",be(14,17,"LLM.REPHRASE_MODAL.WRITING_STYLES.TOOLTIP_"+be(13,15,e.selectedWritingStyle)))}}function w3(t,n){if(t&1&&(oe(0,"div",24),se(1,"translate")),t&2){let e=$();A("innerHTML",So(1,1,e.localizationKey+"LIMIT",nI(4,v3,e.quotaLeft,e.subscriptionUrl)),Ps)}}function E3(t,n){if(t&1){let e=Ge();D(0,"button",25),K("click",function(){ve(e);let r=$();return ye(r.cancel())}),le(1),se(2,"translate"),T()}if(t&2){let e=$();w(),it(" ",be(2,1,e.localizationKey+"CANCEL")," ")}}function D3(t,n){if(t&1&&(D(0,"button",26),le(1),se(2,"translate"),T()),t&2){let e=$();A("mat-dialog-close",null),w(),it(" ",be(2,2,e.localizationKey+"CLOSE")," ")}}function I3(t,n){if(t&1&&(D(0,"span"),le(1),se(2,"translate"),T()),t&2){let e=$();w(),it(" ",be(2,1,e.isSummarized?"LLM.SUMMARY_MODAL.REGENERATE":"LLM.SUMMARY_MODAL.ACTION")," ")}}function M3(t,n){if(t&1&&(le(0),se(1,"translate")),t&2){let e=$();it(" ",be(1,1,e.localizationKey+"ACTION")," ")}}function S3(t,n){t&1&&oe(0,"mat-spinner",27),t&2&&A("diameter",20)}var g3,v3,gO,Hb=f(()=>{"use strict";vc();Uo();ke();j_();aO();Rh();lO();M();Uo();fO();we();ii();vc();ji();ac();lc();In();np();Yi();hh();$b();Ht();g3=t=>({style:t}),v3=(t,n)=>({limit:t,subscriptionUrl:n});gO=(()=>{class t{get isDisabled(){return this.isLoading||!this.initialText||this.quotaLeft<1}constructor(e,i,r){this.llmService=e,this.llmHelperService=i,this.data=r,this.selectedWritingStyle=ip.GENERAL,this.editedText="",this.manuallyEditedText="",this.savedRephrasings=[],this.llmActions=jn,this.writingStyles=Object.values(ip),this.useCases=[],this.messages=[],this.showUseCase=!1}ngOnInit(){this.setInitialText(),this.llmActionType===jn.REPHRASE?(this.useCases=Object.values(Fh),this.selectedUseCase=Fh.General):this.llmActionType===jn.SUMMARY&&(this.useCases=Object.values(Nh),this.selectedUseCase=Nh.General),this.showUseCase=this.llmActionType===jn.REPHRASE&&this.data.showUseCaseRephrase||this.llmActionType===jn.SUMMARY&&this.data.showUseCaseSummary,this.data.defaultUseCase&&(this.selectedUseCase=this.data.defaultUseCase)}closeMessage(e){let i=this.messages?.findIndex(r=>JSON.stringify(r)===JSON.stringify(e));(i||i===0)&&this.messages.splice(i,1)}checkRephrasedTextSaves(e){e.value!==this.selectedWritingStyle&&(this.previousWritingStyle=this.selectedWritingStyle,this.selectedWritingStyle=e.value);let i=this.savedRephrasings.find(o=>o.style===this.selectedWritingStyle),r=this.savedRephrasings.find(o=>o.style===this.previousWritingStyle);r?r.text=this.editedText!==""?this.editedText:this.initialText:this.savedRephrasings.push({style:this.previousWritingStyle,text:this.editedText!==""?this.editedText:this.initialText}),this.editedText=i?.text??this.initialText,this.manuallyEditedText="",this.checkTextLimit()}getEditedText(){this.isLoading=!0,this.llmActionType===jn.REPHRASE?this.writingStylePlausibleEvent():this.summaryPlausibleEvent(),this.subscription=this.getRequest()}cancel(){this.subscription.unsubscribe()}textEditEvent(e){this.manuallyEditedText=e,this.initialText=e,this.editedText="",this.checkTextLimit()}copyPlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"copy"})}dislikePlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"dislike"})}setInitialText(){this.data.text.subscribe(e=>{this.initialText=e,this.llmActionType=this.data.action,this.localizationKey=`LLM.${this.llmActionType}_MODAL.`,this.subscriptionUrl=this.llmHelperService.llmConfiguration.subscriptionUrl,this.maxCharLength=this.llmHelperService.llmConfiguration.maxCharLength,this.refreshQuota()})}checkTextLimit(){let e=this.maxCharLength,i=[this.initialText,this.manuallyEditedText,this.editedText],r=this.editedText&&!this.manuallyEditedText?this.editedText:i.reduce((o,s)=>o.length>s.length?o:s);if(r.length>e){this.exceededLimitMessage&&this.closeMessage(this.exceededLimitMessage),this.exceededLimitMessage=this.llmHelperService.getExceededLimitMessage(r.length),this.messages.push(this.exceededLimitMessage);return}this.closeMessage(this.exceededLimitMessage)}writingStylePlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{writingStyle:this.selectedWritingStyle})}summaryPlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"summary"})}refreshQuota(e){this.llmHelperService.getRemainingQuota(e).subscribe(i=>{this.quotaLeft=i,this.setQuotaMessage()})}setQuotaMessage(){this.quotaLeft<=this.llmHelperService.trialRequestCount&&(this.remainingQuotaMessageVisible=!0),this.quotaLeft<1&&(this.reachedQuotaMessage=this.llmHelperService.getReachedQuotaMessage(),this.messages.push(this.reachedQuotaMessage))}getRequest(){let e=this.manuallyEditedText!==""?this.manuallyEditedText:this.initialText;return e.length>this.maxCharLength&&(e=e.substring(0,this.maxCharLength)),(this.llmActionType===jn.REPHRASE?this.llmService.rephrase({text:e,language:this.data.language,style:this.selectedWritingStyle,useCase:this.selectedUseCase}):this.llmService.summarize({text:e,language:this.data.language,useCase:this.selectedUseCase})).pipe(Wt(()=>this.isLoading=!1)).subscribe(this.getRequestCallback())}getRequestCallback(){return{next:e=>{this.llmActionType===this.llmActions.SUMMARY&&(this.isSummarized=!0),this.editedText=e,this.manuallyEditedText="",this.defaultErrorMessage=this.llmHelperService.getDefaultErrorMessage(),this.closeMessage(this.defaultErrorMessage),this.closeMessage(this.requestTimeoutMessage),this.isEdited=!0,this.refreshQuota(!0),this.checkTextLimit()},error:e=>{if(e.status===P_.TIMEOUT){this.requestTimeoutMessage=this.llmHelperService.getRequestTimeoutMessage(this.llmActionType),this.messages.push(this.requestTimeoutMessage);return}this.messages.push(this.defaultErrorMessage)}}}static{this.\u0275fac=function(i){return new(i||t)(h(AA),h(uO),h(L_))}}static{this.\u0275cmp=re({type:t,selectors:[["lib-llm-textarea-with-actions"]],decls:22,vars:23,consts:[["closeButton",""],["rephraseAction",""],["mat-dialog-title",""],["mat-dialog-content",""],[3,"message","closeClicked",4,"ngFor","ngForOf"],["color","accent","class","w-full llm-writing-style-select","appearance","outline",4,"ngIf"],[4,"ngIf"],[3,"textEditEvent","copyEvent","dislikeEvent","text","disabled","actionButtonsDisabled"],["mat-dialog-actions","",1,"llm-actions-wrapper"],["class","quota-left-message",3,"innerHTML",4,"ngIf"],[1,"llm-actions"],["mat-button","","color","accent",3,"click",4,"ngIf","ngIfElse"],["mat-flat-button","","color","accent",3,"click","disabled"],[4,"ngIf","ngIfElse"],["color","primary-accent-darker",3,"diameter",4,"ngIf"],[3,"closeClicked","message"],["color","accent","appearance","outline",1,"w-full","llm-writing-style-select"],[3,"ngModelChange","disabled","ngModel"],[3,"value"],["color","primary","appearance","outline",1,"w-full","llm-writing-style-select"],[3,"selectionChange","disabled","value"],[3,"value",4,"ngFor","ngForOf"],[1,"llm-writing-style","text-m-semi-bold"],["matTooltipClass","multiline-tooltip","matTooltipPosition","above",1,"material-icons-outlined","info-icon",3,"matTooltip"],[1,"quota-left-message",3,"innerHTML"],["mat-button","","color","accent",3,"click"],["mat-button","","color","accent",3,"mat-dialog-close"],["color","primary-accent-darker",3,"diameter"]],template:function(i,r){if(i&1){let o=Ge();D(0,"h1",2),le(1),se(2,"translate"),T(),D(3,"div",3)(4,"p"),le(5),se(6,"translate"),T(),ee(7,y3,1,1,"lib-tld-notification-message",4)(8,b3,7,5,"mat-form-field",5)(9,C3,16,21,"ng-container",6),D(10,"lib-llm-textarea",7),K("textEditEvent",function(a){return ve(o),ye(r.textEditEvent(a))})("copyEvent",function(){return ve(o),ye(r.copyPlausibleEvent())})("dislikeEvent",function(){return ve(o),ye(r.dislikePlausibleEvent())}),T()(),D(11,"div",8),ee(12,w3,2,7,"div",9),D(13,"div",10),ee(14,E3,3,3,"button",11)(15,D3,3,4,"ng-template",null,0,Ao),D(17,"button",12),K("click",function(){return ve(o),ye(r.getEditedText())}),ee(18,I3,3,3,"span",13)(19,M3,2,3,"ng-template",null,1,Ao)(21,S3,1,1,"mat-spinner",14),T()()()}if(i&2){let o=Cn(16),s=Cn(20);w(),pt(be(2,19,r.localizationKey+"TITLE")),w(4),pt(be(6,21,r.localizationKey+"DESCRIPTION")),w(2),A("ngForOf",r.messages),w(),A("ngIf",r.showUseCase),w(),A("ngIf",r.llmActionType===r.llmActions.REPHRASE),w(),fe("rephrase",r.llmActionType===r.llmActions.REPHRASE),A("text",r.editedText!==""?r.editedText:r.initialText)("disabled",r.isLoading||!r.quotaLeft)("actionButtonsDisabled",!r.isEdited),w(2),A("ngIf",r.remainingQuotaMessageVisible),w(),fe("w-full",!r.remainingQuotaMessageVisible),w(),A("ngIf",r.isLoading)("ngIfElse",o),w(3),A("disabled",r.isDisabled),w(),A("ngIf",r.llmActionType===r.llmActions.SUMMARY)("ngIfElse",s),w(3),A("ngIf",r.isLoading)}},dependencies:[mf,Hs,ah,xA,wA,DA,EA,Js,Hl,_h,ba,xh,fa,LT,li,fh,mO,CI,En],styles:[".info-icon[_ngcontent-%COMP%]{font-size:1rem;margin-left:5px}[_nghost-%COMP%] .message-body{margin:0 2.25rem 0 0!important;font-size:14px}[_nghost-%COMP%] .notification-message-container{margin:0 0 16px;padding:.9em 1em!important;align-items:center!important}[_nghost-%COMP%] .text-container{margin-right:0!important}[_nghost-%COMP%] tld-close-button{top:1px!important} .multiline-tooltip{white-space:pre;min-width:fit-content} .multiline-tooltip .mdc-tooltip__surface{max-width:none!important}[_nghost-%COMP%] .llm-textarea{min-height:240px!important}[_nghost-%COMP%] .rephrase .llm-textarea{min-height:100px!important}[_nghost-%COMP%] .desktop .llm-textarea{min-height:460px!important}[_nghost-%COMP%] .rephrase .desktop .llm-textarea{min-height:330px!important}.llm-writing-style-select[_ngcontent-%COMP%]{margin-top:1.25rem}.llm-writing-style[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:.25rem}.llm-actions-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 1rem .5rem}.llm-actions[_ngcontent-%COMP%]{display:flex;justify-content:end}.w-full[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .mdc-button__label{display:flex!important;align-items:center!important}mat-spinner[_ngcontent-%COMP%]{margin-left:.5rem}.quota-left-message[_ngcontent-%COMP%]{margin-bottom:12px}"]})}}return t})()});var A3,vO=f(()=>{"use strict";A3=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
17
|
+
`;o.appendChild(n.createTextNode(s))}n.head.appendChild(o),i.forEach(s=>zS[s]=o)}catch(o){console.error(o)}}}function Fz(t){let n=new EventTarget;return n.matches=t==="all"||t==="",n.media=t,n.addListener=()=>{},n.removeListener=()=>{},n.addEventListener=()=>{},n.dispatchEvent=()=>!1,n.onchange=null,n}function Nz(t,n){return n&&!!window.matchMedia("all").addListener?window.matchMedia(t):Fz(t)}function Pz(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}function jz(t){return t.replace(Lz,"|").split("|").map(Pz).join("")}function Vz(t){return t.forEach(n=>{n.suffix||(n.suffix=jz(n.alias),n.overlapping=!!n.overlapping)}),t}function Bz(t,n=[]){let e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?Pn(e[i.alias],i):e[i.alias]=i}),Vz(Object.keys(e).map(i=>e[i]))}function Wz(t){return t?.mediaQuery.startsWith(xa)??!1}function KS(t,n,e,i){if(i!==void 0){let r=t.get(n)??new Map;r.set(e,i),t.set(n,r)}}function D_(t,n="1",e="1"){let i=[n,e,t],r=t.indexOf("calc");if(r>0){i[2]=QS(t.substring(r).trim());let o=t.substr(0,r).trim().split(" ");o.length==2&&(i[0]=o[0],i[1]=o[1])}else if(r==0)i[2]=QS(t.trim());else{let o=t.split(" ");i=o.length===3?o:[n,e,t]}return i}function QS(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Ih(t,n){if(n===void 0)return t;let e=i=>{let r=+i.slice(0,-ZS.length);return t.endsWith(ZS)&&!isNaN(r)?`${r*n.value}${n.unit}`:t};return t.includes(" ")?t.split(" ").map(e).join(" "):e(t)}var Iz,US,Ca,Vo,Mz,Eh,Mn,fc,Dh,ci,Qi,Oz,zS,Lz,Uz,$S,HS,GS,WS,qS,YS,Ki,zz,$z,eA,xa,Hz,Gz,E_,Br,Ur,ZS,zr=f(()=>{"use strict";M();M();we();ke();w_();st();Iz={provide:zs,useFactory:Dz,deps:[B,yt],multi:!0},US="flex-layout-";Ca=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[Iz]})}}return t})(),Vo=class t{constructor(n=!1,e="all",i="",r="",o=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}clone(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}};Mz=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){let o=this.stylesheet.get(e);o?o.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){let r=this.stylesheet.get(e),o="";if(r){let s=r.get(i);(typeof s=="number"||typeof s=="string")&&(o=s+"")}return o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Eh={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Mn=new C("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Eh});fc=new C("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1});Dh=new C("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});ci=class{constructor(){this.shouldCache=!0}sideEffect(n,e,i){}};Qi=(()=>{class t{constructor(e,i,r,o){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=o}applyStyleToElement(e,i,r=null){let o={};typeof i=="string"&&(o[i]=r,i=o),o=this.layoutConfig.disableVendorPrefixes?i:C_(i),this._applyMultiValueStyleToElement(o,e)}applyStyleToElements(e,i=[]){let r=this.layoutConfig.disableVendorPrefixes?e:C_(e);i.forEach(o=>{this._applyMultiValueStyleToElement(r,o)})}getFlowDirection(e){let i="flex-direction",r=this.lookupStyle(e,i),o=this.lookupInlineStyle(e,i)||Ni(this._platformId)&&this._serverModuleLoaded?r:"";return[r||"row",o]}hasWrap(e){return this.lookupStyle(e,"flex-wrap")==="wrap"}lookupAttributeValue(e,i){return e.getAttribute(i)??""}lookupInlineStyle(e,i){return Xn(this._platformId)?e.style.getPropertyValue(i):Sz(e,i)}lookupStyle(e,i,r=!1){let o="";return e&&((o=this.lookupInlineStyle(e,i))||(Xn(this._platformId)?r||(o=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(e,i)))),o?o.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{let o=e[r],s=Array.isArray(o)?o:[o];s.sort();for(let a of s)a=a?a+"":"",Xn(this._platformId)||!this._serverModuleLoaded?Xn(this._platformId)?i.style.setProperty(r,a):Az(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}static{this.\u0275fac=function(i){return new(i||t)(g(Mz),g(fc),g(yt),g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Oz=(()=>{class t{constructor(e,i,r,o){this._zone=e,this._platformId=i,this._document=r,this._nonce=o,this.source=new ot(new Vo(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){let e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){return this.registry.get(e)?.matches??this.registerQuery(e).some(r=>r.matches)}observe(e,i=!1){if(e&&e.length){let r=this._observable$.pipe(ue(s=>i?e.indexOf(s.mediaQuery)>-1:!0)),o=new Q(s=>{let a=this.registerQuery(e);if(a.length){let l=a.pop();a.forEach(c=>{s.next(c)}),this.source.next(l)}s.complete()});return ft(o,r)}return this._observable$}registerQuery(e){let i=Array.isArray(e)?e:[e],r=[];return kz(i,this._document,this._nonce),i.forEach(o=>{let s=l=>{this._zone.run(()=>this.source.next(new Vo(l.matches,o)))},a=this.registry.get(o);a||(a=this.buildMQL(o),a.addListener(s),this.pendingRemoveListenerFns.push(()=>a.removeListener(s)),this.registry.set(o,a)),a.matches&&r.push(new Vo(!0,o))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return Nz(e,Xn(this._platformId))}static{this.\u0275fac=function(i){return new(i||t)(g(k),g(yt),g(B),g(Io,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zS={};Lz=/(\.|-|_)/g;Uz=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}];$S="(orientation: portrait) and (max-width: 599.98px)",HS="(orientation: landscape) and (max-width: 959.98px)",GS="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",WS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",qS="(orientation: portrait) and (min-width: 840px)",YS="(orientation: landscape) and (min-width: 1280px)",Ki={HANDSET:`${$S}, ${HS}`,TABLET:`${GS} , ${WS}`,WEB:`${qS}, ${YS} `,HANDSET_PORTRAIT:`${$S}`,TABLET_PORTRAIT:`${GS} `,WEB_PORTRAIT:`${qS}`,HANDSET_LANDSCAPE:`${HS}`,TABLET_LANDSCAPE:`${WS}`,WEB_LANDSCAPE:`${YS}`},zz=[{alias:"handset",priority:2e3,mediaQuery:Ki.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ki.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ki.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ki.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ki.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ki.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ki.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ki.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ki.WEB_PORTRAIT,overlapping:!0}];$z=new C("Token (@ngbracket/ngx-layout) Breakpoints",{providedIn:"root",factory:()=>{let t=y(Dh),n=y(Mn),e=[].concat.apply([],(t||[]).map(r=>Array.isArray(r)?r:[r])),i=(n.disableDefaultBps?[]:Uz).concat(n.addOrientationBps?zz:[]);return Bz(i,e)}});eA=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(Rz)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>e?.suffix??"")}findWithPredicate(e,i){let r=this.findByMap.get(e);return r||(r=this.items.find(i)??null,this.findByMap.set(e,r)),r??null}static{this.\u0275fac=function(i){return new(i||t)(g($z))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();xa="print",Hz={alias:xa,mediaQuery:xa,priority:1e3},Gz=(()=>{class t{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new E_,this.deactivations=[]}withPrintQuery(e){return[...e,xa]}isPrintEvent(e){return e.mediaQuery.startsWith(xa)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>e!==null)}getEventBreakpoints({mediaQuery:e}){let i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(uc)}updateEvent(e){let i=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(i=this.getEventBreakpoints(e)[0],e.mediaQuery=i?.mediaQuery??""),XS(e,i)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;let i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Vo(!0,xa))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(e){return i=>{if(this.isPrintEvent(i)){i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles());return}this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent){this.deactivations=[];return}if(!i.matches){let r=this.breakpoints.findByQuery(i.mediaQuery);if(r){let o=this.formerActivations&&this.formerActivations.includes(r),s=!this.formerActivations&&e.activatedBreakpoints.includes(r);(o||s)&&(this.deactivations.push(r),this.deactivations.sort(uc))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}static{this.\u0275fac=function(i){return new(i||t)(g(eA),g(Mn),g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),E_=class{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(Hz),n.sort(uc),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)===void 0&&(this.printBreakpoints=Wz(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}};Br=(()=>{class t{get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new R,this.observeActivations()}onMediaChange(e){let i=this.findByQuery(e.mediaQuery);if(i){e=XS(e,i);let r=this.activatedBreakpoints.indexOf(i);e.matches&&r===-1?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(uc),this.updateStyles()):!e.matches&&r!==-1&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(uc),this.updateStyles())}}init(e,i,r,o,s=[]){KS(this.updateMap,e,i,r),KS(this.clearMap,e,i,o),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,s)}getValue(e,i,r){let o=this.elementMap.get(e);if(o){let s=r!==void 0?o.get(r):this.getActivatedValues(o,i);if(s)return s.get(i)}}hasValue(e,i){let r=this.elementMap.get(e);if(r){let o=this.getActivatedValues(r,i);if(o)return o.get(i)!==void 0||!1}return!1}setValue(e,i,r,o){let s=this.elementMap.get(e);if(!s)s=new Map().set(o,new Map().set(i,r)),this.elementMap.set(e,s);else{let l=(s.get(o)??new Map).set(i,r);s.set(o,l),this.elementMap.set(e,s)}let a=this.getValue(e,i);a!==void 0&&this.updateElement(e,i,a)}trackValue(e,i){return this.subject.asObservable().pipe(ue(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{let r=new Set(this.elementKeyMap.get(i)),o=this.getActivatedValues(e);o&&o.forEach((s,a)=>{this.updateElement(i,a,s),r.delete(a)}),r.forEach(s=>{if(o=this.getActivatedValues(e,s),o){let a=o.get(s);this.updateElement(i,s,a)}else this.clearElement(i,s)})})}clearElement(e,i){let r=this.clearMap.get(e);if(r){let o=r.get(i);o&&(o(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){let o=this.updateMap.get(e);if(o){let s=o.get(i);s&&(s(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){let i=this.watcherMap.get(e);i&&(i.forEach(o=>o.unsubscribe()),this.watcherMap.delete(e));let r=this.elementMap.get(e);r&&(r.forEach((o,s)=>r.delete(s)),this.elementMap.delete(e))}triggerUpdate(e,i){let r=this.elementMap.get(e);if(r){let o=this.getActivatedValues(r,i);o&&(i?this.updateElement(e,i,o.get(i)):o.forEach((s,a)=>this.updateElement(e,a,s)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let o=this.watcherMap.get(e);if(o||(o=new Map,this.watcherMap.set(e,o)),!o.get(i)){let a=ft(...r).subscribe(()=>{let l=this.getValue(e,i);this.updateElement(e,i,l)});o.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let o=0;o<this.activatedBreakpoints.length;o++){let s=this.activatedBreakpoints[o],a=e.get(s.alias);if(a&&(i===void 0||a.has(i)&&a.get(i)!=null))return a}if(!this._useFallbacks)return;let r=e.get("");return i===void 0||r&&r.has(i)?r:void 0}observeActivations(){let e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Pe(this.hook.interceptEvents(this)),ue(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}static{this.\u0275fac=function(i){return new(i||t)(g(Oz),g(eA),g(Gz))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Ur=(()=>{class t{get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}constructor(e,i,r,o){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=o,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new R,this.styleCache=new Map}ngOnChanges(e){Object.keys(e).forEach(i=>{if(this.inputs.indexOf(i)!==-1){let r=i.split(".").slice(1).join("."),o=e[i].currentValue;this.setValue(o,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){let r=this.styleBuilder,o=r.shouldCache,s=this.styleCache.get(e);(!s||!o)&&(s=r.buildStyles(e,i),o&&this.styleCache.set(e,s)),this.mru=x({},s),this.applyStyleToElement(s),r.sideEffect(e,s,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){let[r,o]=this.styler.getFlowDirection(e);if(!o&&i){let s=wh(r),a=[e];this.styler.applyStyleToElements(s,a)}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(ci),h(Qi),h(Br))}}static{this.\u0275dir=j({type:t,features:[He]})}}return t})();ZS="x";});var Yz,Kz,wa,I_,Ea=f(()=>{"use strict";M();zr();zr();we();we();Yz=(()=>{class t extends Ur{set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}constructor(e,i,r,o,s){super(e,null,i,r),this.ngClassInstance=s,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new br(e,o)),this.init(),this.setValue("","")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(Br),h(Qn),h(br,10))}}static{this.\u0275dir=j({type:t,inputs:{klass:[0,"class","klass"]},features:[Ce]})}}return t})(),Kz=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],wa=(()=>{class t extends Yz{constructor(){super(...arguments),this.inputs=Kz}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Ce]})}}return t})();I_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca]})}}return t})();});function x$(t,n){let[e,i]=t.split(" "),r=i??e,o="0px",s=r,a="0px";return n==="rtl"?a=e:o=e,{padding:`0px ${o} ${s} ${a}`}}function C$(t,n){let[e,i]=t.split(" "),r=i??e,o=c=>`-${c}`,s="0px",a=o(r),l="0px";return n==="rtl"?l=o(e):s=o(e),{margin:`0px ${s} ${a} ${l}`}}function aA(t,n){switch(n){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return t==="rtl"?"margin-left":"margin-right";case"row-reverse":return t==="rtl"?"margin-right":"margin-left";default:return t==="rtl"?"margin-left":"margin-right"}}function w$(t,n){let e=aA(n.directionality,n.layout),i=x({},oA);return i[e]=t,i}var Qz,Zz,Xz,iA,Jz,e$,t$,n$,i$,r$,o$,rA,s$,a$,l$,c$,d$,u$,f$,h$,oA,p$,m$,g$,sA,v$,y$,_$,b$,Mh,E$,D$,I$,lA,nA,S_,Sh=f(()=>{"use strict";cn();cn();M();zr();zr();w_();st();ke();Qz=(()=>{class t extends ci{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[r,o,...s]=e.split(" "),a=s.join(" "),l=i.direction.indexOf("column")>-1?"column":"row",c=dc(l)?"max-width":"max-height",d=dc(l)?"min-width":"min-height",u=String(a).indexOf("calc")>-1,m=u||a==="auto",p=String(a).indexOf("%")>-1&&!u,v=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1,_=u||v;r=r=="0"?0:r,o=o=="0"?0:o;let E=!r&&!o,I={},U={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":let H=this.layoutConfig.useColumnBasisZero!==!1;a=l==="row"?"0%":H?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":o=0,a="auto";break;case"auto":break;case"none":r=0,o=0,a="auto";break;default:!_&&!p&&!isNaN(a)&&(a=a+"%"),a==="0%"&&(_=!0),a==="0px"&&(a="0%"),u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":_?a:"100%"}):I=Pn(U,{flex:`${r} ${o} ${_?a:"100%"}`});break}return I.flex||I["flex-grow"]||(u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":a}):I=Pn(U,{flex:`${r} ${o} ${a}`})),a!=="0%"&&a!=="0px"&&a!=="0.000000001px"&&a!=="auto"&&(I[d]=E||_&&r?a:null,I[c]=E||!m&&o?a:null),!I[d]&&!I[c]?u?I=Pn(U,{"flex-grow":r,"flex-shrink":o,"flex-basis":a}):I=Pn(U,{flex:`${r} ${o} ${a}`}):i.hasWrap&&(I[u?"flex-basis":"flex"]=I[c]?u?I[c]:`${r} ${o} ${I[c]}`:u?I[d]:`${r} ${o} ${I[d]}`),Pn(I,{"box-sizing":"border-box"})}static{this.\u0275fac=function(i){return new(i||t)(g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Zz=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],Xz=(()=>{class t extends Ur{get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}constructor(e,i,r,o,s){super(e,o,i,s),this.layoutConfig=r,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(ae(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){let r=e.value.split(" ");this.direction=r[0],this.wrap=r[1]!==void 0&&r[1]==="wrap",this.triggerUpdate()}updateWithValue(e){let i=this.layoutConfig.addFlexToParent!==!1;this.direction===void 0&&(this.direction=this.getFlexFlowDirection(this.parentElement,i)),this.wrap===void 0&&(this.wrap=this.hasWrap(this.parentElement));let r=this.direction,o=r.startsWith("row"),s=this.wrap;o&&s?this.styleCache=t$:o&&!s?this.styleCache=Jz:!o&&s?this.styleCache=n$:!o&&!s&&(this.styleCache=e$);let a=String(e).replace(";",""),l=D_(a,this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:r,hasWrap:s})}triggerReflow(){let e=this.activatedValue;if(e!==void 0){let i=D_(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(Mn),h(Qz),h(Br))}}static{this.\u0275dir=j({type:t,inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"]},features:[Ce]})}}return t})(),iA=(()=>{class t extends Xz{constructor(){super(...arguments),this.inputs=Zz}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Ce]})}}return t})(),Jz=new Map,e$=new Map,t$=new Map,n$=new Map;i$=(()=>{class t extends ci{buildStyles(e,i){let r={},[o,s]=e.split(" ");switch(o){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;case"start":case"flex-start":default:r["justify-content"]="flex-start";break}switch(s){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;case"stretch":default:r["align-items"]=r["align-content"]="stretch";break}return Pn(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":s==="stretch"?dc(i.layout)?null:"100%":null,"max-height":s==="stretch"&&dc(i.layout)?"100%":null})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),r$=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],o$=(()=>{class t extends Ur{constructor(e,i,r,o){super(e,r,i,o),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){let i=this.layout||"row",r=this.inline;i==="row"&&r?this.styleCache=d$:i==="row"&&!r?this.styleCache=s$:i==="row-reverse"&&r?this.styleCache=f$:i==="row-reverse"&&!r?this.styleCache=l$:i==="column"&&r?this.styleCache=u$:i==="column"&&!r?this.styleCache=a$:i==="column-reverse"&&r?this.styleCache=h$:i==="column-reverse"&&!r&&(this.styleCache=c$),this.addStyles(e,{layout:i,inline:r})}onLayoutChange(e){let i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),cc.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(i$),h(Br))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),rA=(()=>{class t extends o${constructor(){super(...arguments),this.inputs=r$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Ce]})}}return t})(),s$=new Map,a$=new Map,l$=new Map,c$=new Map,d$=new Map,u$=new Map,f$=new Map,h$=new Map,oA={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},p$=(()=>{class t extends ci{constructor(e,i){super(),this._styler=e,this._config=i}buildStyles(e,i){return e.endsWith(Mh)?(e=e.slice(0,e.indexOf(Mh)),e=Ih(e,this._config.multiplier),C$(e,i.directionality)):{}}sideEffect(e,i,r){let o=r.items;if(e.endsWith(Mh)){e=e.slice(0,e.indexOf(Mh)),e=Ih(e,this._config.multiplier);let s=x$(e,r.directionality);this._styler.applyStyleToElements(s,r.items)}else{e=Ih(e,this._config.multiplier),e=this.addFallbackUnit(e);let s=o.pop(),a=w$(e,r);this._styler.applyStyleToElements(a,o),this._styler.applyStyleToElements(oA,[s])}}addFallbackUnit(e){return isNaN(+e)?e:`${e}${this._config.defaultUnit}`}static{this.\u0275fac=function(i){return new(i||t)(g(Qi),g(Mn))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),m$=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],g$=(()=>{class t extends Ur{get childrenNodes(){let e=this.nativeElement.children,i=[];for(let r=e.length;r--;)i[r]=e[r];return i}constructor(e,i,r,o,s,a){super(e,s,o,a),this.zone=i,this.directionality=r,this.styleUtils=o,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new R;let l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(ae(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){let r=e.value.split(" ")[0];cc.find(o=>o===r)||(r="row"),this.layout&&this.layout!==r&&this.clearStyles(),this.layout=r,this.triggerUpdate()}updateWithValue(e){let i=this.childrenNodes.filter(r=>r.nodeType===1&&this.willDisplay(r)).sort((r,o)=>{let s=+this.styler.lookupStyle(r,"order"),a=+this.styler.lookupStyle(o,"order");return isNaN(s)||isNaN(a)||s===a?0:s>a?1:-1});if(i.length>0){let r=this.directionality.value,o=this.layout;o==="row"&&r==="rtl"?this.styleCache=v$:o==="row"&&r!=="rtl"?this.styleCache=_$:o==="column"&&r==="rtl"?this.styleCache=y$:o==="column"&&r!=="rtl"&&(this.styleCache=b$),this.addStyles(e,{directionality:r,items:i,layout:o})}}clearStyles(){let e=Object.keys(this.mru).length>0,i=e?"padding":aA(this.directionality.value,this.layout);e&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(e){let i=this.marshal.getValue(e,"show-hide");return i===!0||i===void 0&&this.styleUtils.lookupStyle(e,"display")!=="none"}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(e=>{let i=r=>r.addedNodes&&r.addedNodes.length>0||r.removedNodes&&r.removedNodes.length>0;e.some(i)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(k),h(xt),h(Qi),h(p$),h(Br))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),sA=(()=>{class t extends g${constructor(){super(...arguments),this.inputs=m$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[Ce]})}}return t})(),v$=new Map,y$=new Map,_$=new Map,b$=new Map,Mh=" grid";E$=(()=>{class t extends ci{buildStyles(e,{display:i}){let r=wh(e);return ne(x({},r),{display:i==="none"?i:r.display})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),D$=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],I$=(()=>{class t extends Ur{constructor(e,i,r,o,s){super(e,r,i,o),this._config=s,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){let r=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=nA.get(r)??new Map,nA.set(r,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:r}),this.currentValue=e)}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(Qi),h(E$),h(Br),h(Mn))}}static{this.\u0275dir=j({type:t,features:[Ce]})}}return t})(),lA=(()=>{class t extends I${constructor(){super(...arguments),this.inputs=D$}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Ce]})}}return t})(),nA=new Map;S_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca,ni]})}}return t})();});var A_,T_=f(()=>{"use strict";M();zr();A_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[Ca]})}}return t})();});var Da,Fte,Ah=f(()=>{"use strict";zr();zr();Ea();Ea();Sh();Sh();T_();T_();we();M();M();Da=(()=>{class t{static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Mn,useValue:x(x({},Eh),e)},{provide:Dh,useValue:i,multi:!0},{provide:fc,useValue:!0}]:[{provide:Mn,useValue:x(x({},Eh),e)},{provide:Dh,useValue:i,multi:!0}]}}constructor(e,i){Ni(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static{this.\u0275fac=function(i){return new(i||t)(g(fc),g(yt))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[S_,I_,A_,S_,I_,A_]})}}return t})();Fte=new Kn("18.0.0");});function S$(t,n){if(t&1&&(D(0,"mat-option",12),le(1),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",e.voiceName," ")}}function A$(t,n){if(t&1&&(D(0,"mat-icon"),le(1),T()),t&2){let e=$();w(),it(" ",e.isPlaying?"stop":"volume_up"," ")}}function T$(t,n){t&1&&oe(0,"mat-spinner",13),t&2&&A("diameter",15)}var cA,dA=f(()=>{"use strict";we();M();ji();ii();Fr();oS();ke();hh();Yi();lc();ac();Ah();Ht();M();we();ji();Yi();ac();lc();In();Ea();Ht();cA=(()=>{class t{constructor(){this.maxCharLength=1e3,this.#e=y(rS)}get hasOverflow(){let e=document.querySelector("textarea");return e?.clientHeight<e?.scrollHeight}#e;ngOnInit(){this.selected=this.voices[0]}togglePlay(){if(this.isPlaying){this.stop();return}this.isLoading=!0;let e=this.text.length>this.maxCharLength?this.text.substring(0,this.maxCharLength):this.text;if(this.audio&&e===this.previousText&&this.selected.voice===this.previousVoice){this.audio.play(),this.isPlaying=!0,this.isLoading=!1;return}this.#e.play(e,this.selected).pipe(Wt(()=>{this.isLoading=!1})).subscribe({next:i=>{this.previousText=e,this.previousVoice=this.selected.voice;let r=URL.createObjectURL(i);this.audio=new Audio(r),this.audio.play(),this.isPlaying=!0,this.audio.onended=()=>{URL.revokeObjectURL(r),this.isPlaying=!1}}})}stop(){this.audio&&(this.audio.pause(),this.audio.currentTime=0,this.isPlaying=!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["lib-text-to-speech"]],inputs:{maxCharLength:"maxCharLength",voices:"voices"},standalone:!0,features:[Se],decls:19,vars:23,consts:[[1,"text-to-speech-wrapper",3,"ngClass.lt-md"],["appearance","outline","color","accent"],[3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[1,"text-to-speech-textarea-wrapper"],[1,"text-to-speech-textarea",3,"ngModelChange","ngModel","placeholder"],[1,"text-to-speech-characters"],[1,"text-to-speech-actions"],[3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip","disabled"],[4,"ngIf"],[3,"diameter",4,"ngIf"],[3,"value"],[3,"diameter"]],template:function(i,r){if(i&1&&(D(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),le(3),se(4,"translate"),T(),D(5,"mat-select",2),Us("valueChange",function(s){return El(r.selected,s)||(r.selected=s),s}),ee(6,S$,2,2,"mat-option",3),T()(),D(7,"div",4)(8,"textarea",5),se(9,"translate"),Us("ngModelChange",function(s){return El(r.text,s)||(r.text=s),s}),T(),D(10,"div",6),le(11),T()(),D(12,"div",7)(13,"div",8),se(14,"translate"),D(15,"button",9),se(16,"translate"),K("click",function(){return r.togglePlay()}),ee(17,A$,2,1,"mat-icon",10)(18,T$,1,1,"mat-spinner",11),T()()()()),i&2){let o;A("ngClass.lt-md","mobile"),w(3),pt(be(4,15,"selectVoice")),w(2),Bs("value",r.selected),w(),A("ngForOf",r.voices),w(2),Bs("ngModel",r.text),A("placeholder",be(9,17,"placeholder")),w(2),fe("text-overflow",r.hasOverflow),w(),Vv(" ",(o=r.text==null?null:r.text.length)!==null&&o!==void 0?o:0,"/",r.maxCharLength," "),w(2),A("matTooltip",r.text?"":be(14,19,"playDisabled")),w(2),A("matTooltip",be(16,21,r.isPlaying?"stop":"play"))("disabled",!r.text||r.isLoading),w(2),A("ngIf",!r.isLoading),w(),A("ngIf",r.isLoading)}},dependencies:[ct,mf,Hs,Or,kr,$f,Xs,Js,Hl,fh,_a,li,bh,_h,ba,Ch,xh,fa,Da,wa,ei,En],styles:[".text-to-speech-wrapper[_ngcontent-%COMP%]{margin-top:5px;position:relative;display:flex;flex-direction:column;align-items:center}.text-to-speech-wrapper[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{max-width:900px!important;width:100%}.text-to-speech-textarea-wrapper[_ngcontent-%COMP%], .text-to-speech-textarea[_ngcontent-%COMP%]{position:relative;width:100%;max-width:900px}.text-to-speech-textarea-wrapper[_ngcontent-%COMP%]{border:1px solid var(--base-70);padding:5px;border-radius:8px;box-shadow:0 0 16px #0000001a}.text-to-speech-textarea[_ngcontent-%COMP%]{margin:15px 0;padding:0 10px;min-height:120px;resize:none;outline:none;border:none}.text-to-speech-actions[_ngcontent-%COMP%]{position:absolute;bottom:-20px}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;justify-content:center;color:var(--base-100)!important;background-color:var(--accent)}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{background-color:var(--base-70)}.text-to-speech-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{scale:1.2}.text-to-speech-characters[_ngcontent-%COMP%]{position:absolute;right:10px;bottom:0;margin:5px;font-size:13px;color:var(--base-65)}.text-overflow[_ngcontent-%COMP%]{right:30px}.mobile[_ngcontent-%COMP%] .text-overflow[_ngcontent-%COMP%]{right:15px}"]})}}return t})()});var uA=f(()=>{"use strict";dA()});var fA,hA=f(()=>{"use strict";fA={en:{selectVoice:"Demo voices (currently only for Latvian language)",placeholder:'Enter text to listen to a demonstration of the text-to-speech technology. Remember, this service can only be used in accordance with its terms of use (see the "Frequently asked questions" section). It is not permitted to use this service for texts that contain offensive, indecent, defamatory, misleading, hateful, or discriminatory statements. Violation of the terms of use may result in liability as stipulated by the laws of the Republic of Latvia. A maximum of 1000 characters will be spoken.',playDisabled:"Enter text to play",play:"Play",stop:"Stop"},lv:{selectVoice:"Demo balsis (\u0161obr\u012Bd tikai Latvie\u0161u valod\u0101)",placeholder:"Ievadi tekstu, lai noklaus\u012Btos balss sint\u0113zes tehnolo\u0123ijas demonstr\u0101ciju. Atceries, ka \u0161o pakalpojumu var lietot tikai atbilsto\u0161i t\u0101 lieto\u0161anas noteikumiem (skat\u012Bt sada\u013Cu \u201CBie\u017E\u0101k uzdotie jaut\u0101jumi\u201D)! To nav at\u013Cauts izmantot tekstiem, kas satur aizskaro\u0161us, nepiekl\u0101j\u012Bgus, apmelojo\u0161us, maldino\u0161us, naidu vai diskrimin\u0101ciju veicino\u0161us apgalvojumus. Par lieto\u0161anas noteikumu p\u0101rk\u0101pumu var iest\u0101ties LR likumos noteikt\u0101 atbild\u012Bba. Tiks izrun\u0101ti ne vair\u0101k k\u0101 1000 simboli.",playDisabled:"Ievadi tekstu, lai atska\u0146ot to",play:"Atska\u0146ot",stop:"Apst\u0101din\u0101t",voice:"Balss {{nth}}"}}});var Th,R_=f(()=>{"use strict";Dy();uA();hA();M();Th=(()=>{class t extends Sf{set voices(e){this._voices=typeof e=="string"?JSON.parse(e):e}set maxCharLength(e){this._maxCharLength=+e}get voices(){return this._voices}get maxCharLength(){return this._maxCharLength}constructor(){super(fA),this._maxCharLength=500}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["app-text-to-speech"]],inputs:{voices:"voices",maxCharLength:"maxCharLength"},standalone:!0,features:[Ce,Se],decls:1,vars:2,consts:[[3,"voices","maxCharLength"]],template:function(i,r){i&1&&oe(0,"lib-text-to-speech",0),i&2&&A("voices",r.voices)("maxCharLength",r.maxCharLength)},dependencies:[cA]})}}return t})()});var jn,Rh=f(()=>{"use strict";jn=function(t){return t.SUMMARY="SUMMARY",t.REPHRASE="REPHRASE",t}(jn||{})});function R$(t,n){}function O_(t,n){let e=t.length;for(;e--;)n(t[e])}var Bo,k_,hc,O$,k$,F$,N$,F_,pA,mA=f(()=>{"use strict";ln();ln();oi();oi();Pt();va();we();M();M();Vi();ke();cn();st();Bo=class{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}},k_=(()=>{class t extends ga{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._platform=y(Fe),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=y(Be),this._injector=y(De),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let 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(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){this._isDestroyed||on(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=Wl(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,i=Wl();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Wl()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(nh),h(B,8),h(Bo),h(Yl),h(k),h(Gi),h(Ln))}}static{this.\u0275cmp=re({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&Ve(nc,7),i&2){let o;he(o=pe())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&_e("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[Ce,Se],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&ee(0,R$,0,0,"ng-template",0)},dependencies:[nc],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return t})(),hc=class{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new R,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!St(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(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this.containerInstance){let 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}},O$=new C("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.block()}}),k$=new C("DialogData"),F$=new C("DefaultDialogConfig"),N$=0,F_=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new R,this._afterOpenedAtThisLevel=new R,this._ariaHiddenElements=new Map,this.afterAllClosed=Jt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(wt(void 0))),this._scrollStrategy=a}open(e,i){let r=this._defaultOptions||new Bo;i=x(x({},r),i),i.id=i.id||`cdk-dialog-${N$++}`,i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new hc(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){O_(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){O_(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),O_(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Pr({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,s=[{provide:Bo,useValue:r},{provide:hc,useValue:i},{provide:Gi,useValue:e}],a;r.container?typeof r.container=="function"?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=k_;let l=new Lr(a,r.viewContainerRef,De.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof Nt){let s=this._createInjector(o,i,r,void 0),a={$implicit:o.data,dialogRef:i};o.templateContext&&(a=x(x({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Hi(e,null,a,s))}else{let s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new Lr(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentRef=a,i.componentInstance=a.instance}}_createInjector(e,i,r,o){let s=e.injector||e.viewContainerRef?.injector,a=[{provide:k$,useValue:e.data},{provide:hc,useValue:i}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(xt,null,{optional:!0}))&&a.push({provide:xt,useValue:{value:e.direction,change:O()}}),De.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(i){return new(i||t)(g(Qe),g(De),g(F$,8),g(t,12),g(ya),g(O$))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();pA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[F_],imports:[ri,Lo,ih,Lo]})}}return t})()});function L$(t,n){}function _A(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Rr(t.substring(0,t.length-2)):t.endsWith("s")?Rr(t.substring(0,t.length-1))*1e3:t==="0"?0:null}function bA(t,n,e){return t._closeInteractionType=n,t.close(e)}function IA(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}var pc,N_,gA,vA,P$,j$,V$,yA,Oh,mc,L_,B$,U$,z$,gc,$$,xA,CA,wA,EA,DA,MA,vc=f(()=>{"use strict";oi();oi();we();we();M();M();ln();mA();Ui();va();ke();st();Vi();$i();In();pc=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},N_="mdc-dialog--open",gA="mdc-dialog--opening",vA="mdc-dialog--closing",P$=150,j$=75,V$=(()=>{class t extends k_{constructor(e,i,r,o,s,a,l,c,d){super(e,i,r,o,s,a,l,d),this._animationMode=c,this._animationStateChanged=new V,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?_A(this._config.enterAnimationDuration)??P$:0,this._exitAnimationDuration=this._animationsEnabled?_A(this._config.exitAnimationDuration)??j$:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(yA,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(gA,N_)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(N_),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(N_),this._animationsEnabled?(this._hostElement.style.setProperty(yA,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(vA)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(gA,vA)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static{this.\u0275fac=function(i){return new(i||t)(h(F),h(nh),h(B,8),h(pc),h(Yl),h(k),h(Gi),h(at,8),h(Ln))}}static{this.\u0275cmp=re({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(_r("id",r._config.id),_e("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),fe("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[Ce,Se],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(D(0,"div",0)(1,"div",1),ee(2,L$,0,0,"ng-template",2),T()())},dependencies:[nc],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-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));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-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}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{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);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}}return t})(),yA="--mat-dialog-transition-duration";Oh=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(Oh||{}),mc=class{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new R,this._beforeClosed=new R,this._state=Oh.OPEN,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ue(r=>r.state==="opened"),Te(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ue(r=>r.state==="closed"),Te(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),ft(this.backdropClick(),this.keydownEvents().pipe(ue(r=>r.keyCode===27&&!this.disableClose&&!St(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),bA(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(ue(e=>e.state==="closing"),Te(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=Oh.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=Oh.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};L_=new C("MatMdcDialogData"),B$=new C("mat-mdc-dialog-default-options"),U$=new C("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Qe);return()=>t.scrollStrategies.block()}}),z$=0,gc=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,r,o,s,a,l,c){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new R,this._afterOpenedAtThisLevel=new R,this.dialogConfigClass=pc,this.afterAllClosed=Jt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(wt(void 0))),this._dialog=i.get(F_),this._dialogRefConstructor=mc,this._dialogContainerType=V$,this._dialogDataToken=L_}open(e,i){let r;i=x(x({},this._defaultOptions||new pc),i),i.id=i.id||`mat-mdc-dialog-${z$++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,ne(x({},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:Bo,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static{this.\u0275fac=function(i){return new(i||t)(g(Qe),g(De),g(Zn,8),g(B$,8),g(U$),g(t,12),g(ya),g(at,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$$=0,xA=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=IA(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){bA(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(i){return new(i||t)(h(mc,8),h(F),h(gc))}}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&K("click",function(s){return r._onButtonClick(s)}),i&2&&_e("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[He]})}}return t})(),CA=(()=>{class t{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=IA(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static{this.\u0275fac=function(i){return new(i||t)(h(mc,8),h(F),h(gc))}}static{this.\u0275dir=j({type:t,standalone:!0})}}return t})(),wA=(()=>{class t extends CA{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${$$++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&_r("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[Ce]})}}return t})(),EA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[kD([o_])]})}}return t})(),DA=(()=>{class t extends CA{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275dir=j({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&fe("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[Ce]})}}return t})();MA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({providers:[gc],imports:[pA,ri,Lo,We,We]})}}return t})()});var yc,kh,Fh,Nh,Ia,AA,qe,TA,Uo=f(()=>{"use strict";Al();M();M();ke();yc=new C("ngx-tld-services Api service configuration."),kh=class{#e;constructor(n){this.http=y(Dr),this.#e=y(yc);let e=n(this.#e);if(!e)throw new Error(`${Object.getPrototypeOf(this).constructor.name} is created, but no service configuration defined in 'SERVICE_CONFIGURATION_TOKEN'. Config: ${JSON.stringify(this.#e)}`);this.configuration=e,this.sharedServiceConfiguration=this.#e.sharedConfiguration}},Fh=function(t){return t.Event="Event",t.General="General",t.Meeting="Meeting",t}(Fh||{}),Nh=function(t){return t.Event="Event",t.General="General",t.Meeting="Meeting",t.MeetingBrief="MeetingBrief",t.Brief="Brief",t}(Nh||{}),Ia=class{static xAppIdHeader(n){return{"X-App-Id":n}}},AA=(()=>{class t extends kh{#e=y(Dr);constructor(){super(e=>e.llmService)}rephrase(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/rewrite`,e,{responseType:"text",headers:i})}summarize(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/summarize/`,e,{responseType:"text",headers:i})}customPrompt(e){let i=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.#e.post(`${this.configuration.url}/custom-prompt/`,e,{responseType:"text",headers:i})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),qe=function(t){return t.TRANSLATION_FILES="FileTranslationFiles",t.ASR_FILE_LENGTH_SECONDS="AsrFileLengthSeconds",t.ASR_FILE_SIZE_KB="AsrFileSizeKb",t.ONLINE_ASR_USED_SECONDS="OnlineAsrUsedSeconds",t.TRANSLATION_CHARACTERS="TranslationCharacters",t.TRANSLATION_DOCUMENTS="TranslationDocuments",t.LLM_CHARACTER_COUNT="LlmCharacterCount",t.LLM_REQUESTS="LlmRequests",t.TTS_CHARACTERS="TtsCharacters",t.ANONYMISE_WORDS="AnonymiseWords",t.ANONYMISE_DOCUMENTS="AnonymiseDocuments",t[t.LEGACY_TRANSLATION_FILES=0]="LEGACY_TRANSLATION_FILES",t[t.LEGACY_ASR_FILE_LENGTH_SECONDS=1]="LEGACY_ASR_FILE_LENGTH_SECONDS",t[t.LEGACY_ASR_FILE_SIZE_KB=2]="LEGACY_ASR_FILE_SIZE_KB",t[t.LEGACY_ONLINE_ASR_USED_SECONDS=3]="LEGACY_ONLINE_ASR_USED_SECONDS",t[t.LEGACY_TRANSLATION_CHARACTERS=4]="LEGACY_TRANSLATION_CHARACTERS",t[t.LEGACY_TRANSLATION_DOCUMENTS=5]="LEGACY_TRANSLATION_DOCUMENTS",t[t.LEGACY_LLM_CHARACTER_COUNT=6]="LEGACY_LLM_CHARACTER_COUNT",t[t.LEGACY_LLM_REQUESTS=7]="LEGACY_LLM_REQUESTS",t[t.LEGACY_TTS_CHARACTERS=8]="LEGACY_TTS_CHARACTERS",t[t.LEGACY_ANONYMISE_WORDS=9]="LEGACY_ANONYMISE_WORDS",t[t.LEGACY_ANONYMISE_DOCUMENTS=10]="LEGACY_ANONYMISE_DOCUMENTS",t}(qe||{}),TA=(()=>{class t extends kh{constructor(){super(e=>e.quotaService),this.legacyQuotaTypeMap={[qe.LEGACY_TRANSLATION_FILES]:qe.TRANSLATION_FILES,[qe.LEGACY_ASR_FILE_LENGTH_SECONDS]:qe.ASR_FILE_LENGTH_SECONDS,[qe.LEGACY_ASR_FILE_SIZE_KB]:qe.ASR_FILE_SIZE_KB,[qe.LEGACY_ONLINE_ASR_USED_SECONDS]:qe.ONLINE_ASR_USED_SECONDS,[qe.LEGACY_TRANSLATION_CHARACTERS]:qe.TRANSLATION_CHARACTERS,[qe.LEGACY_TRANSLATION_DOCUMENTS]:qe.TRANSLATION_DOCUMENTS,[qe.LEGACY_LLM_CHARACTER_COUNT]:qe.LLM_CHARACTER_COUNT,[qe.LEGACY_LLM_REQUESTS]:qe.LLM_REQUESTS,[qe.LEGACY_TTS_CHARACTERS]:qe.TTS_CHARACTERS,[qe.LEGACY_ANONYMISE_WORDS]:qe.ANONYMISE_WORDS,[qe.LEGACY_ANONYMISE_DOCUMENTS]:qe.ANONYMISE_DOCUMENTS}}getQuotaUsage(){let e=Ia.xAppIdHeader(this.sharedServiceConfiguration.xAppId);return this.http.get(this.configuration.url,{headers:e}).pipe(P(i=>(i.usage.forEach(r=>{this.legacyQuotaTypeMap[r.quotaType]&&(r.quotaType=this.legacyQuotaTypeMap[r.quotaType])}),i)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var OA=f(()=>{"use strict"});var kA=f(()=>{"use strict"});var P_,FA=f(()=>{"use strict";P_=function(t){return t[t.TIMEOUT=504]="TIMEOUT",t}(P_||{})});var j_=f(()=>{"use strict";OA();kA();FA()});var NA,LA=f(()=>{"use strict";M();Fr();Gs();NA=(()=>{class t{constructor(e,i){this.iconRegistry=e,this.sanitizer=i}registerIcons(e){for(let i in e)this.iconRegistry.addSvgIconLiteral(i.toLowerCase(),this.sanitizer.bypassSecurityTrustHtml(e[i]))}registerIconFromUrl(e,i){this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(i))}addSvgIconSet(e,i){i?this.iconRegistry.addSvgIconSetInNamespace(i,this.sanitizer.bypassSecurityTrustResourceUrl(e)):this.iconRegistry.addSvgIconSet(this.sanitizer.bypassSecurityTrustResourceUrl(e))}static{this.\u0275fac=function(i){return new(i||t)(g(r_),g(kl))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var PA=f(()=>{"use strict";LA()});var H$,G$,jA,VA=f(()=>{"use strict";M();H$=typeof localStorage<"u"?localStorage:null,G$=typeof window<"u"?window:null,jA=(()=>{class t{get window(){return G$}get localStorage(){return H$}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var BA=f(()=>{"use strict";VA()});function Oa(t){return new $_(t)}function W$(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.length<t.length))return null;let r={};for(let o=0;o<i.length;o++){let s=i[o],a=t[o];if(s[0]===":")r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function q$(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!di(t[e],n[e]))return!1;return!0}function di(t,n){let e=t?H_(t):void 0,i=n?H_(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!ZA(t[r],n[r]))return!1;return!0}function H_(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ZA(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r)}else return t===n}function XA(t){return t.length>0?t[t.length-1]:null}function Gr(t){return gn(t)?t:To(t)?Le(Promise.resolve(t)):O(t)}function UA(t,n,e){return Y$[e.paths](t.root,n.root,e.matrixParams)&&JA[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function K$(t,n){return di(t,n)}function eT(t,n,e){if(!$o(t.segments,n.segments)||!jh(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!eT(t.children[i],n.children[i],e))return!1;return!0}function Q$(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ZA(t[e],n[e]))}function tT(t,n,e){return nT(t,n,n.segments,e)}function nT(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!$o(r,e)||n.hasChildren()||!jh(r,e,i))}else if(t.segments.length===e.length){if(!$o(t.segments,e)||!jh(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!tT(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!$o(t.segments,r)||!jh(t.segments,r,i)||!t.children[me]?!1:nT(t.children[me],n,o,i)}}function jh(t,n,e){return n.every((i,r)=>JA[e](t[r].parameters,i.parameters))}function Z$(t,n){return $o(t,n)&&t.every((e,i)=>di(e.parameters,n[i].parameters))}function $o(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function X$(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===me&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==me&&(e=e.concat(n(r,i)))}),e}function Vh(t){return t.segments.map(n=>rT(n)).join("/")}function _c(t,n){if(!t.hasChildren())return Vh(t);if(n){let e=t.children[me]?_c(t.children[me],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==me&&i.push(`${r}:${_c(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=X$(t,(i,r)=>r===me?[_c(t.children[me],!1)]:[`${r}:${_c(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[me]!=null?`${Vh(t)}/${e[0]}`:`${Vh(t)}/(${e.join("//")})`}}function iT(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lh(t){return iT(t).replace(/%3B/gi,";")}function eH(t){return encodeURI(t)}function G_(t){return iT(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bh(t){return decodeURIComponent(t)}function zA(t){return Bh(t.replace(/\+/g,"%20"))}function rT(t){return`${G_(t.path)}${tH(t.parameters)}`}function tH(t){return Object.entries(t).map(([n,e])=>`;${G_(n)}=${G_(e)}`).join("")}function nH(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Lh(e)}=${Lh(r)}`).join("&"):`${Lh(e)}=${Lh(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}function V_(t){let n=t.match(iH);return n?n[0]:""}function oH(t){let n=t.match(rH);return n?n[0]:""}function aH(t){let n=t.match(sH);return n?n[0]:""}function cH(t){let n=t.match(lH);return n?n[0]:""}function oT(t){return t.segments.length>0?new Ne([],{[me]:t}):t}function sT(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=sT(r);if(i===me&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new Ne(t.segments,n);return dH(e)}function dH(t){if(t.numberOfChildren===1&&t.children[me]){let n=t.children[me];return new Ne(t.segments.concat(n.segments),n.children)}return t}function Ho(t){return t instanceof Xi}function uH(t,n,e=null,i=null){let r=aT(t);return lT(r,n,e,i)}function aT(t){let n;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new Ne(o.url,s);return o===t&&(n=a),a}let i=e(t.root),r=oT(i);return n??r}function lT(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return B_(r,r,r,e,i);let o=fH(n);if(o.toRoot())return B_(r,r,new Ne([],{}),e,i);let s=hH(o,r,t),a=s.processChildren?Cc(s.segmentGroup,s.index,o.commands):dT(s.segmentGroup,s.index,o.commands);return B_(r,s.segmentGroup,a,e,i)}function Uh(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Dc(t){return typeof t=="object"&&t!=null&&t.outlets}function B_(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=cT(t,n,e);let a=oT(sT(s));return new Xi(a,o,r)}function cT(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=cT(o,n,e)}),new Ne(t.segments,i)}function fH(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new zh(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?n++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new zh(e,n,i)}function hH(t,n,e){if(t.isAbsolute)return new Aa(n,!0,0);if(!e)return new Aa(n,!1,NaN);if(e.parent===null)return new Aa(e,!0,0);let i=Uh(t.commands[0])?0:1,r=e.segments.length-1+i;return pH(e,r,t.numberOfDoubleDots)}function pH(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new S(4005,!1);r=i.segments.length}return new Aa(i,!1,r-o)}function mH(t){return Dc(t[0])?t[0].outlets:{[me]:t}}function dT(t,n,e){if(t??=new Ne([],{}),t.segments.length===0&&t.hasChildren())return Cc(t,n,e);let i=gH(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let o=new Ne(t.segments.slice(0,i.pathIndex),{});return o.children[me]=new Ne(t.segments.slice(i.pathIndex),t.children),Cc(o,0,r)}else return i.match&&r.length===0?new Ne(t.segments,{}):i.match&&!t.hasChildren()?q_(t,n,e):i.match?Cc(t,0,r):q_(t,n,e)}function Cc(t,n,e){if(e.length===0)return new Ne(t.segments,{});{let i=mH(e),r={};if(Object.keys(i).some(o=>o!==me)&&t.children[me]&&t.numberOfChildren===1&&t.children[me].segments.length===0){let o=Cc(t.children[me],n,e);return new Ne(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=dT(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new Ne(t.segments,r)}}function gH(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;let s=t.segments[r],a=e[i];if(Dc(a))break;let l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!HA(l,c,s))return o;i+=2}else{if(!HA(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function q_(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r<e.length;){let o=e[r];if(Dc(o)){let l=vH(o.outlets);return new Ne(i,l)}if(r===0&&Uh(e[0])){let l=t.segments[n];i.push(new zo(l.path,$A(e[0]))),r++;continue}let s=Dc(o)?o.outlets[me]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&Uh(a)?(i.push(new zo(s,$A(a))),r+=2):(i.push(new zo(s,{})),r++)}return new Ne(i,{})}function vH(t){let n={};return Object.entries(t).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=q_(new Ne([],{}),0,i))}),n}function $A(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function HA(t,n,e){return t==e.path&&di(n,e.parameters)}function yH(t,n){return t.providers&&!t._injector&&(t._injector=Ju(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Vn(t){return t.outlet||me}function _H(t,n){let e=t.filter(i=>Vn(i)===n);return e.push(...t.filter(i=>Vn(i)!==n)),e}function Fc(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}function ob(t,n){if(t===n.value)return n;for(let e of n.children){let i=ob(t,e);if(i)return i}return null}function sb(t,n){if(t===n.value)return[n];for(let e of n.children){let i=sb(t,e);if(i.length)return i.unshift(n),i}return[]}function Sa(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}function uT(t){let n=bH(t),e=new ot([new zo("",{})]),i=new ot({}),r=new ot({}),o=new ot({}),s=new ot(""),a=new Go(e,i,o,s,r,me,t,n.root);return a.snapshot=n.root,new qh(new dn(a,[]),n)}function bH(t){let n={},e={},i={},r="",o=new Ta([],n,i,r,e,me,t,null,{});return new Kh("",new dn(o,[]))}function Yh(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:x(x({},n.params),t.params),data:x(x({},n.data),t.data),resolve:x(x(x(x({},t.data),n.data),r?.data),t._resolvedData)}:i={params:x({},t.params),data:x({},t.data),resolve:x(x({},t.data),t._resolvedData??{})},r&&hT(r)&&(i.resolve[Oc]=r.title),i}function mb(t,n){n.value._routerState=t,n.children.forEach(e=>mb(t,e))}function fT(t){let n=t.children.length>0?` { ${t.children.map(fT).join(", ")} } `:"";return`${t.value}${n}`}function U_(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,di(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),di(n.params,e.params)||t.paramsSubject.next(e.params),q$(n.url,e.url)||t.urlSubject.next(e.url),di(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ab(t,n){let e=di(t.params,n.params)&&Z$(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||ab(t.parent,n.parent))}function hT(t){return typeof t.title=="string"||t.title===null}function CH(t,n,e){let i=Sc(t,n._root,e?e._root:void 0);return new qh(i,n)}function Sc(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=wH(t,n,e);return new dn(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Sc(t,a)),s}}let i=EH(n.value),r=n.children.map(o=>Sc(t,o));return new dn(i,r)}}function wH(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Sc(t,i,r);return Sc(t,i)})}function EH(t){return new Go(new ot(t.url),new ot(t.params),new ot(t.queryParams),new ot(t.fragment),new ot(t.data),t.outlet,t.component,t)}function Qh(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=Ho(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=mT(!1,un.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function mT(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[pT]=!0,e.cancellationCode=n,e}function DH(t){return gT(t)&&Ho(t.url)}function gT(t){return!!t&&t[pT]}function MH(t,n,e){let i=t._root,r=n?n._root:null;return bc(i,r,e,[i.value])}function SH(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Pa(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!hw(t)?t:n.get(t):i}function bc(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Sa(n);return t.children.forEach(s=>{AH(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ec(a,e.getContext(s),r)),r}function AH(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=TH(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Zh(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?bc(t,n,a?a.children:null,i,r):bc(t,n,e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ra(a.outlet.component,s))}else s&&Ec(n,a,r),r.canActivateChecks.push(new Zh(i)),o.component?bc(t,null,a?a.children:null,i,r):bc(t,null,e,i,r);return r}function TH(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!$o(t.url,n.url);case"pathParamsOrQueryParamsChange":return!$o(t.url,n.url)||!di(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ab(t,n)||!di(t.queryParams,n.queryParams);case"paramsChange":default:return!ab(t,n)}}function Ec(t,n,e){let i=Sa(t),r=t.value;Object.entries(i).forEach(([o,s])=>{r.component?n?Ec(s,n.children.getContext(o),e):Ec(s,null,e):Ec(s,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ra(n.outlet.component,r)):e.canDeactivateChecks.push(new Ra(null,r)):e.canDeactivateChecks.push(new Ra(null,r))}function Lc(t){return typeof t=="function"}function RH(t){return typeof t=="boolean"}function OH(t){return t&&Lc(t.canLoad)}function kH(t){return t&&Lc(t.canActivate)}function FH(t){return t&&Lc(t.canActivateChild)}function NH(t){return t&&Lc(t.canDeactivate)}function LH(t){return t&&Lc(t.canMatch)}function vT(t){return t instanceof mi||t?.name==="EmptyError"}function La(){return ze(t=>so(t.map(n=>n.pipe(Te(1),wt(Ph)))).pipe(P(n=>{for(let e of n)if(e!==!0){if(e===Ph)return Ph;if(e===!1||PH(e))return e}return!0}),ue(n=>n!==Ph),Te(1)))}function PH(t){return Ho(t)||t instanceof Ac}function jH(t,n){return Ue(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?O(ne(x({},e),{guardsResult:!0})):VH(s,i,r,t).pipe(Ue(a=>a&&RH(a)?BH(i,o,t,n):O(a)),P(a=>ne(x({},e),{guardsResult:a})))})}function VH(t,n,e,i){return Le(t).pipe(Ue(r=>GH(r.component,r.route,e,n,i)),$n(r=>r!==!0,!0))}function BH(t,n,e,i){return Le(n).pipe(Rn(r=>Xt(zH(r.route.parent,i),UH(r.route,i),HH(t,r.path,e),$H(t,r.route,e))),$n(r=>r!==!0,!0))}function UH(t,n){return t!==null&&n&&n(new nb(t)),O(!0)}function zH(t,n){return t!==null&&n&&n(new eb(t)),O(!0)}function $H(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return O(!0);let r=i.map(o=>Jt(()=>{let s=Fc(n)??e,a=Pa(o,s),l=kH(a)?a.canActivate(n,t):yn(s,()=>a(n,t));return Gr(l).pipe($n())}));return O(r).pipe(La())}function HH(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>SH(s)).filter(s=>s!==null).map(s=>Jt(()=>{let a=s.guards.map(l=>{let c=Fc(s.node)??e,d=Pa(l,c),u=FH(d)?d.canActivateChild(i,t):yn(c,()=>d(i,t));return Gr(u).pipe($n())});return O(a).pipe(La())}));return O(o).pipe(La())}function GH(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return O(!0);let s=o.map(a=>{let l=Fc(n)??r,c=Pa(a,l),d=NH(c)?c.canDeactivate(t,n,e,i):yn(l,()=>c(t,n,e,i));return Gr(d).pipe($n())});return O(s).pipe(La())}function WH(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return O(!0);let o=r.map(s=>{let a=Pa(s,t),l=OH(a)?a.canLoad(n,e):yn(t,()=>a(n,e));return Gr(l)});return O(o).pipe(La(),yT(i))}function yT(t){return Bp(Pe(n=>{if(typeof n!="boolean")throw Qh(t,n)}),P(n=>n===!0))}function qH(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return O(!0);let o=r.map(s=>{let a=Pa(s,t),l=LH(a)?a.canMatch(n,e):yn(t,()=>a(n,e));return Gr(l)});return O(o).pipe(La(),yT(i))}function Ma(t){return nr(new Tc(t))}function YH(t){return nr(new S(4e3,!1))}function KH(t){return nr(mT(!1,un.GuardRejected))}function QH(t,n,e,i,r){let o=_T(t,n,e);return o.matched?(i=yH(n,i),qH(i,n,e,r).pipe(P(s=>s===!0?o:x({},ub)))):O(o)}function _T(t,n,e){if(n.path==="**")return ZH(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?x({},ub):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||W$)(e,t,n);if(!r)return x({},ub);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?x(x({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function ZH(t){return{matched:!0,parameters:t.length>0?XA(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function WA(t,n,e,i){return e.length>0&&eG(t,e,i)?{segmentGroup:new Ne(n,JH(i,new Ne(e,t.children))),slicedSegments:[]}:e.length===0&&tG(t,e,i)?{segmentGroup:new Ne(t.segments,XH(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Ne(t.segments,t.children),slicedSegments:e}}function XH(t,n,e,i){let r={};for(let o of e)if(tp(t,n,o)&&!i[Vn(o)]){let s=new Ne([],{});r[Vn(o)]=s}return x(x({},i),r)}function JH(t,n){let e={};e[me]=n;for(let i of t)if(i.path===""&&Vn(i)!==me){let r=new Ne([],{});e[Vn(i)]=r}return e}function eG(t,n,e){return e.some(i=>tp(t,n,i)&&Vn(i)!==me)}function tG(t,n,e){return e.some(i=>tp(t,n,i))}function tp(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function nG(t,n,e){return n.length===0&&!t.children[e]}function iG(t,n,e,i,r,o,s="emptyOnly"){return new hb(t,n,e,i,r,s,o).recognize()}function oG(t){t.sort((n,e)=>n.value.outlet===me?-1:e.value.outlet===me?1:n.value.outlet.localeCompare(e.value.outlet))}function sG(t){let n=t.value.routeConfig;return n&&n.path===""}function bT(t){let n=[],e=new Set;for(let i of t){if(!sG(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=bT(i.children);n.push(new dn(i.value,r))}return n.filter(i=>!e.has(i))}function qA(t){return t.data||{}}function YA(t){return t.resolve||{}}function aG(t,n,e,i,r,o){return Ue(s=>iG(t,n,e,i,s.extractedUrl,r,o).pipe(P(({state:a,tree:l})=>ne(x({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function lG(t,n){return Ue(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return O(e);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of xT(l))s.add(c);let a=0;return Le(s).pipe(Rn(l=>o.has(l)?cG(l,i,t,n):(l.data=Yh(l,l.parent,t).resolve,O(void 0))),Pe(()=>a++),gs(1),Ue(l=>a===s.size?O(e):Bt))})}function xT(t){let n=t.children.map(e=>xT(e)).flat();return[t,...n]}function cG(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!hT(r)&&(o[Oc]=r.title),dG(o,t,n,i).pipe(P(s=>(t._resolvedData=s,t.data=Yh(t,t.parent,e).resolve,null)))}function dG(t,n,e,i){let r=H_(t);if(r.length===0)return O({});let o={};return Le(r).pipe(Ue(s=>uG(t[s],n,e,i).pipe($n(),Pe(a=>{if(a instanceof Ac)throw Qh(new ka,a);o[s]=a}))),gs(1),el(o),en(s=>vT(s)?Bt:nr(s)))}function uG(t,n,e,i){let r=Fc(n)??i,o=Pa(t,r),s=o.resolve?o.resolve(n,e):yn(r,()=>o(n,e));return Gr(s)}function z_(t){return ze(n=>{let e=t(n);return e?Le(e).pipe(P(()=>n)):O(n)})}function gb(t){let n=t.children&&t.children.map(gb),e=n?ne(x({},t),{children:n}):x({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==me&&(e.component=hG),e}function pG(t,n,e,i){return Gr(t.loadChildren()).pipe(P(wT),Ue(r=>r instanceof fl||Array.isArray(r)?O(r):Le(n.compileModuleAsync(r))),P(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(Xh,[],{optional:!0,self:!0}).flat()),{routes:s.map(gb),injector:o}}))}function mG(t){return t&&typeof t=="object"&&"default"in t}function wT(t){return mG(t)?t.default:t}function vG(t,n,e){let i=t.get(DT),r=t.get(B);return t.get(k).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),yG(t))),{onViewTransitionCreated:l}=i;return l&&yn(t,()=>l({transition:a,from:n,to:e})),s})}function yG(t){return new Promise(n=>{on({read:()=>setTimeout(n)},{injector:t})})}function bG(t){return t!==wc}function MT(t,n){t.events.pipe(ue(e=>e instanceof ui||e instanceof Zi||e instanceof Ic||e instanceof $r),P(e=>e instanceof ui||e instanceof $r?xc.COMPLETE:(e instanceof Zi?e.code===un.Redirect||e.code===un.SupersededByNewNavigation:!1)?xc.REDIRECTING:xc.FAILED),ue(e=>e!==xc.REDIRECTING),Te(1)).subscribe(()=>{n()})}function EG(t){throw t}function MG(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new S(4008,!1)}function SG(t){return!(t instanceof Mc)&&!(t instanceof Na)}function RG(t){return t.routerState.root}function jc(t,n){return{\u0275kind:t,\u0275providers:n}}function OG(){let t=y(De);return n=>{let e=t.get(sn);if(n!==e.components[0])return;let i=t.get(Hr),r=t.get(TT);t.get(bb)===1&&i.initialNavigation(),t.get(RT,null,xe.Optional)?.setUpPreloading(),t.get(AT,null,xe.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}function kG(){return jc(2,[{provide:bb,useValue:0},{provide:lf,multi:!0,deps:[De],useFactory:n=>{let e=n.get(_I,Promise.resolve());return()=>e.then(()=>new Promise(i=>{let r=n.get(Hr),o=n.get(TT);MT(r,()=>{i(!0)}),n.get(_b).afterPreactivation=()=>(i(!0),o.closed?O(void 0):o),r.initialNavigation()}))}}])}function FG(){return jc(3,[{provide:lf,multi:!0,useFactory:()=>{let n=y(Hr);return()=>{n.setUpLocationChangeListener()}}},{provide:bb,useValue:2}])}function NG(t){return jc(0,[{provide:RT,useExisting:AG},{provide:Jh,useExisting:t}])}function LG(){return jc(8,[GA,{provide:ep,useExisting:GA}])}function PG(t){let n=[{provide:ET,useValue:vG},{provide:DT,useValue:x({skipNextTransition:!!t?.skipInitialTransition},t)}];return jc(9,n)}function VG(){return{provide:AT,useFactory:()=>{let t=y(wI),n=y(k),e=y(Pc),i=y(_b),r=y(kc);return e.scrollOffset&&t.setOffset(e.scrollOffset),new TG(r,i,t,n,e)}}}function BG(){return{provide:Fi,useClass:xI}}function UG(){return{provide:Fi,useClass:ty}}function zG(t){return"guarded"}function $G(t){return[t.initialNavigation==="disabled"?FG().\u0275providers:[],t.initialNavigation==="enabledBlocking"?kG().\u0275providers:[]]}function HG(){return[{provide:QA,useFactory:OG},{provide:zs,multi:!0,useExisting:QA}]}var me,Oc,$_,Y$,JA,Xi,Ne,zo,kc,ka,J$,iH,rH,sH,lH,W_,zh,Aa,wc,Ct,Sn,Fa,ui,un,$h,Zi,$r,Ic,Hh,Y_,K_,Q_,Z_,X_,J_,eb,tb,nb,ib,Gh,Mc,Na,rb,Nc,Wh,dn,qh,Go,Ta,Kh,xH,lb,ep,GA,Ac,pT,IH,cb,Zh,Ra,Ph,Tc,Rc,db,ub,fb,rG,hb,CT,fG,Pc,hG,Xh,vb,yb,gG,ET,DT,_G,_b,xG,pb,CG,IT,wG,xc,DG,IG,Hr,ST,Jh,AG,AT,TG,TT,bb,RT,KA,jG,OT,QA,xb=f(()=>{"use strict";M();M();ke();we();we();st();Gs();me="primary",Oc=Symbol("RouteTitle"),$_=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};Y$={exact:eT,subset:tT},JA={exact:K$,subset:Q$,ignored:()=>!0};Xi=class{constructor(n=new Ne([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Oa(this.queryParams),this._queryParamMap}toString(){return J$.serialize(this)}},Ne=class{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 Vh(this)}},zo=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Oa(this.parameters),this._parameterMap}toString(){return rT(this)}};kc=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>new ka,providedIn:"root"})}}return t})(),ka=class{parse(n){let e=new W_(n);return new Xi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_c(n.root,!0)}`,i=nH(n.queryParams),r=typeof n.fragment=="string"?`#${eH(n.fragment)}`:"";return`${e}${i}${r}`}},J$=new ka;iH=/^[^\/()?;#]+/;rH=/^[^\/()?;=#]+/;sH=/^[^=?&#]+/;lH=/^[^&#]+/;W_=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ne([],{}):new Ne([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let 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[me]=new Ne(n,e)),i}parseSegment(){let n=V_(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new zo(Bh(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=oH(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=V_(this.remaining);r&&(i=r,this.capture(i))}n[Bh(e)]=Bh(i)}parseQueryParam(n){let e=aH(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let s=cH(this.remaining);s&&(i=s,this.capture(i))}let r=zA(e),o=zA(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=V_(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new S(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=me);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[me]:new Ne([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};zh=class{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Uh(i[0]))throw new S(4003,!1);let r=i.find(Dc);if(r&&r!==XA(i))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};Aa=class{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};wc="imperative",Ct=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}(Ct||{}),Sn=class{constructor(n,e){this.id=n,this.url=e}},Fa=class extends Sn{constructor(n,e,i="imperative",r=null){super(n,e),this.type=Ct.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ui=class extends Sn{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=Ct.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},un=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(un||{}),$h=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}($h||{}),Zi=class extends Sn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Ct.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},$r=class extends Sn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Ct.NavigationSkipped}},Ic=class extends Sn{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=Ct.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Hh=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Y_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},K_=class extends Sn{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Ct.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Q_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Z_=class extends Sn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Ct.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},X_=class{constructor(n){this.route=n,this.type=Ct.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},J_=class{constructor(n){this.route=n,this.type=Ct.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},eb=class{constructor(n){this.snapshot=n,this.type=Ct.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tb=class{constructor(n){this.snapshot=n,this.type=Ct.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nb=class{constructor(n){this.snapshot=n,this.type=Ct.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ib=class{constructor(n){this.snapshot=n,this.type=Ct.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gh=class{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=Ct.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Mc=class{},Na=class{constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};rb=class{get injector(){return Fc(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new Nc(this.rootInjector),this.attachRef=null}},Nc=(()=>{class t{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let 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 rb(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)(g(Dt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Wh=class{constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=ob(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=ob(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=sb(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return sb(n,this._root).map(e=>e.value)}};dn=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};qh=class extends Wh{constructor(n,e){super(n),this.snapshot=e,mb(this,n)}toString(){return this.snapshot.toString()}};Go=class{constructor(n,e,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(P(c=>c[Oc]))??O(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(P(n=>Oa(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(P(n=>Oa(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};Ta=class{get title(){return this.data?.[Oc]}constructor(n,e,i,r,o,s,a,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}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??=Oa(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Oa(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Kh=class extends Wh{constructor(n,e){super(e),this.url=n,mb(this,e)}toString(){return fT(this._root)}};xH=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=me,this.activateEvents=new V,this.deactivateEvents=new V,this.attachEvents=new V,this.detachEvents=new V,this.parentContexts=y(Nc),this.location=y(_t),this.changeDetector=y(Be),this.inputBinder=y(ep,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let 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){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new lb(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=j({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[He]})}}return t})(),lb=class t{__ngOutletInjector(n){return new t(this.route,this.childContexts,n)}constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Go?this.route:n===Nc?this.childContexts:this.parent.get(n,e)}},ep=new C(""),GA=(()=>{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){let{activatedRoute:i}=e,r=so([i.queryParams,i.params,i.data]).pipe(ze(([o,s,a],l)=>(a=x(x(x({},o),s),a),l===0?O(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=dI(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();Ac=class{constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},pT="ngNavigationCancelingError";IH=(t,n,e,i)=>P(r=>(new cb(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),cb=class{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),U_(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Sa(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Sa(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Sa(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Sa(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new ib(o.value.snapshot))}),n.children.length&&this.forwardEvent(new tb(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(U_(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),U_(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,i)}},Zh=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ra=class{constructor(n,e){this.component=n,this.route=e}};Ph=Symbol("INITIAL_VALUE");Tc=class{constructor(n){this.segmentGroup=n||null}},Rc=class extends Error{constructor(n){super(),this.urlTree=n}};db=class{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return O(i);if(r.numberOfChildren>1||!r.children[me])return YH(`${n.redirectTo}`);r=r.children[me]}}applyRedirectCommands(n,e,i,r,o){if(typeof e!="string"){let a=e,{queryParams:l,fragment:c,routeConfig:d,url:u,outlet:m,params:p,data:v,title:_}=r,E=yn(o,()=>a({params:p,data:v,queryParams:l,fragment:c,routeConfig:d,url:u,outlet:m,title:_}));if(E instanceof Xi)throw new Rc(E);e=E}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e[0]==="/")throw new Rc(s);return s}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new Xi(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new Ne(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new S(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}},ub={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};fb=class{};rG=31,hb=class{constructor(n,e,i,r,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new db(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){let n=WA(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(P(({children:e,rootSnapshot:i})=>{let r=new dn(i,e),o=new Kh("",r),s=uH(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new Ta([],Object.freeze({}),Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),me,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,me,e).pipe(P(i=>({children:i,rootSnapshot:e})),en(i=>{if(i instanceof Rc)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Tc?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(P(s=>s instanceof dn?[s]:[]))}processChildren(n,e,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Le(o).pipe(Rn(s=>{let a=i.children[s],l=_H(e,s);return this.processSegmentGroup(n,l,a,s,r)}),xm((s,a)=>(s.push(...a),s)),rr(null),bm(),Ue(s=>{if(s===null)return Ma(i);let a=bT(s);return oG(a),O(a)}))}processSegment(n,e,i,r,o,s,a){return Le(e).pipe(Rn(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,s,a).pipe(en(c=>{if(c instanceof Tc)return O(null);throw c}))),$n(l=>!!l),en(l=>{if(vT(l))return nG(i,r,o)?O(new fb):Ma(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,s,a,l){return Vn(i)!==s&&(s===me||!tp(r,o,i))?Ma(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s,l):Ma(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:m}=_T(e,r,o);if(!l)return Ma(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>rG&&(this.allowRedirects=!1));let p=new Ta(o,c,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,qA(r),Vn(r),r.component??r._loadedComponent??null,r,YA(r)),v=Yh(p,a,this.paramsInheritanceStrategy);p.params=Object.freeze(v.params),p.data=Object.freeze(v.data);let _=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,p,n);return this.applyRedirects.lineralizeSegments(r,_).pipe(Ue(E=>this.processSegment(n,i,e,E.concat(m),s,!1,a)))}matchSegmentAgainstRoute(n,e,i,r,o,s){let a=QH(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),a.pipe(ze(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(ze(({routes:c})=>{let d=i._loadedInjector??n,{parameters:u,consumedSegments:m,remainingSegments:p}=l,v=new Ta(m,u,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,qA(i),Vn(i),i.component??i._loadedComponent??null,i,YA(i)),_=Yh(v,s,this.paramsInheritanceStrategy);v.params=Object.freeze(_.params),v.data=Object.freeze(_.data);let{segmentGroup:E,slicedSegments:I}=WA(e,m,p,c);if(I.length===0&&E.hasChildren())return this.processChildren(d,c,E,v).pipe(P(H=>new dn(v,H)));if(c.length===0&&I.length===0)return O(new dn(v,[]));let U=Vn(i)===o;return this.processSegment(d,c,E,I,U?me:o,!0,v).pipe(P(H=>new dn(v,H instanceof dn?[H]:[])))}))):Ma(e)))}getChildConfig(n,e,i){return e.children?O({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?O({routes:e._loadedRoutes,injector:e._loadedInjector}):WH(n,e,i,this.urlSerializer).pipe(Ue(r=>r?this.configLoader.loadChildren(n,e).pipe(Pe(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):KH(e))):O({routes:[],injector:n})}};CT=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===me);return i}getResolvedTitleForRoute(e){return e.data[Oc]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(fG),providedIn:"root"})}}return t})(),fG=(()=>{class t extends CT{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(g(GI))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Pc=new C("",{providedIn:"root",factory:()=>({})}),hG=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["ng-component"]],standalone:!0,features:[Se],decls:1,vars:0,template:function(i,r){i&1&&oe(0,"router-outlet")},dependencies:[xH],encapsulation:2})}}return t})();Xh=new C(""),vb=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=y(cf)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return O(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Gr(e.loadComponent()).pipe(P(wT),Pe(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Wt(()=>{this.componentLoaders.delete(e)})),r=new to(i,()=>new R).pipe(ss());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return O({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=pG(i,this.compiler,e,this.onLoadEndListener).pipe(Wt(()=>{this.childrenLoaders.delete(i)})),s=new to(o,()=>new R).pipe(ss());return this.childrenLoaders.set(i,s),s}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();yb=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(gG),providedIn:"root"})}}return t})(),gG=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ET=new C(""),DT=new C("");_G=new C(""),_b=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new R,this.transitionAbortSubject=new R,this.configLoader=y(vb),this.environmentInjector=y(Dt),this.urlSerializer=y(kc),this.rootContexts=y(Nc),this.location=y(Zn),this.inputBindingEnabled=y(ep,{optional:!0})!==null,this.titleStrategy=y(CT),this.options=y(Pc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=y(yb),this.createViewTransition=y(ET,{optional:!0}),this.navigationErrorHandler=y(_G,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>O(void 0),this.rootComponentType=null;let e=r=>this.events.next(new X_(r)),i=r=>this.events.next(new J_(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(ne(x(x({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new ot({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:wc,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ue(o=>o.id!==0),P(o=>ne(x({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ze(o=>{let s=!1,a=!1;return O(o).pipe(ze(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",un.SupersededByNewNavigation),Bt;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?ne(x({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let u="";return this.events.next(new $r(l.id,this.urlSerializer.serialize(l.rawUrl),u,$h.IgnoredSameUrlNavigation)),l.resolve(!1),Bt}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return O(l).pipe(ze(u=>{let m=this.transitions?.getValue();return this.events.next(new Fa(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),m!==this.transitions?.getValue()?Bt:Promise.resolve(u)}),aG(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Pe(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=ne(x({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let m=new Hh(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(m)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:u,extractedUrl:m,source:p,restoredState:v,extras:_}=l,E=new Fa(u,this.urlSerializer.serialize(m),p,v);this.events.next(E);let I=uT(this.rootComponentType).snapshot;return this.currentTransition=o=ne(x({},l),{targetSnapshot:I,urlAfterRedirects:m,extras:ne(x({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,O(o)}else{let u="";return this.events.next(new $r(l.id,this.urlSerializer.serialize(l.extractedUrl),u,$h.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Bt}}),Pe(l=>{let c=new Y_(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),P(l=>(this.currentTransition=o=ne(x({},l),{guards:MH(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),jH(this.environmentInjector,l=>this.events.next(l)),Pe(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Qh(this.urlSerializer,l.guardsResult);let c=new K_(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ue(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",un.GuardRejected),!1)),z_(l=>{if(l.guards.canActivateChecks.length)return O(l).pipe(Pe(c=>{let d=new Q_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),ze(c=>{let d=!1;return O(c).pipe(lG(this.paramsInheritanceStrategy,this.environmentInjector),Pe({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",un.NoDataFromResolver)}}))}),Pe(c=>{let d=new Z_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),z_(l=>{let c=d=>{let u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(Pe(m=>{d.component=m}),P(()=>{})));for(let m of d.children)u.push(...c(m));return u};return so(c(l.targetSnapshot.root)).pipe(rr(null),Te(1))}),z_(()=>this.afterPreactivation()),ze(()=>{let{currentSnapshot:l,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?Le(d).pipe(P(()=>o)):O(o)}),P(l=>{let c=CH(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=ne(x({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),Pe(()=>{this.events.next(new Mc)}),IH(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Te(1),Pe({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ui(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),ae(this.transitionAbortSubject.pipe(Pe(l=>{throw l}))),Wt(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",un.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),en(l=>{if(a=!0,gT(l))this.events.next(new Zi(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),DH(l)?this.events.next(new Na(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Ic(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let d=yn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof Ac){let{message:u,cancellationCode:m}=Qh(this.urlSerializer,d);this.events.next(new Zi(o.id,this.urlSerializer.serialize(o.extractedUrl),u,m)),this.events.next(new Na(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(c);let u=e.errorHandler(l);o.resolve(!!u)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return Bt}))}))}cancelNavigationTransition(e,i,r){let o=new Zi(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();xG=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(CG),providedIn:"root"})}}return t})(),pb=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},CG=(()=>{class t extends pb{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),IT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>y(wG),providedIn:"root"})}}return t})(),wG=(()=>{class t extends IT{constructor(){super(...arguments),this.location=y(Zn),this.urlSerializer=y(kc),this.options=y(Pc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=y(yb),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Xi,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=uT(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?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=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Fa)this.stateMemento=this.createStateMemento();else if(e instanceof $r)this.rawUrlTree=i.initialUrl;else if(e instanceof Hh){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else e instanceof Mc?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof Zi&&(e.code===un.GuardRejected||e.code===un.NoDataFromResolver)?this.restoreHistory(i):e instanceof Ic?this.restoreHistory(i,!0):e instanceof ui&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=e instanceof Xi?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let o=this.browserPageId,s=x(x({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(r,"",s)}else{let o=x(x({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",o)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(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 this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=tt(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),xc=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(xc||{});DG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},IG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Hr=(()=>{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.console=y(af),this.stateManager=y(IT),this.options=y(Pc,{optional:!0})||{},this.pendingTasks=y(Di),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=y(_b),this.urlSerializer=y(kc),this.location=y(Zn),this.urlHandlingStrategy=y(yb),this._events=new R,this.errorHandler=this.options.errorHandler||EG,this.navigated=!1,this.routeReuseStrategy=y(xG),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=y(Xh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!y(ep,{optional:!0}),this.eventsSubscription=new ge,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Zi&&i.code!==un.Redirect&&i.code!==un.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ui)this.navigated=!0;else if(i instanceof Na){let s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=x({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||bG(r.source)},s);this.scheduleNavigation(a,wc,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}SG(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),wc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let l=x({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(gb),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={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=x(x({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let u;try{let m=r?r.snapshot:this.routerState.snapshot.root;u=aT(m)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),u=this.currentUrlTree.root}return lT(u,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=Ho(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,wc,null,i)}navigate(e,i={skipLocationChange:!1}){return MG(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=x({},DG):i===!1?r=x({},IG):r=i,Ho(e))return UA(this.currentUrlTree,e,r);let o=this.parseUrl(e);return UA(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((u,m)=>{a=u,l=m});let d=this.pendingTasks.add();return MT(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(u=>Promise.reject(u))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();ST=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new R,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof ui&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Ho(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||i||r||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:BE(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Ho(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(h(Hr),h(Go),yr("tabindex"),h(Qn),h(F),h(Fi))}}static{this.\u0275dir=j({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&K("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&_e("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ie],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ie],replaceUrl:[2,"replaceUrl","replaceUrl",Ie],routerLink:"routerLink"},standalone:!0,features:[lt,He]})}}return t})(),Jh=class{},AG=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ue(e=>e instanceof ui),Rn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=Ju(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Le(r).pipe(ir())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=O(null);let o=r.pipe(Ue(s=>s===null?O(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(i);return Le([o,s]).pipe(ir())}else return o})}static{this.\u0275fac=function(i){return new(i||t)(g(Hr),g(cf),g(Dt),g(Jh),g(vb))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),AT=new C(""),TG=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Fa?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ui?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof $r&&e.code===$h.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 Gh&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Gh(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){js()}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();TT=new C("",{factory:()=>new R}),bb=new C("",{providedIn:"root",factory:()=>1});RT=new C("");KA=new C("ROUTER_FORROOT_GUARD"),jG=[Zn,{provide:kc,useClass:ka},Hr,Nc,{provide:Go,useFactory:RG,deps:[Hr]},vb,[]],OT=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[jG,[],{provide:Xh,multi:!0,useValue:e},{provide:KA,useFactory:zG,deps:[[Hr,new ml,new Tu]]},{provide:Pc,useValue:i||{}},i?.useHash?BG():UG(),VG(),i?.preloadingStrategy?NG(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?$G(i):[],i?.bindToComponentInputs?LG().\u0275providers:[],i?.enableViewTransitions?PG().\u0275providers:[],HG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Xh,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(g(KA,8))}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})();QA=new C("")});var WG,kT,Cb=f(()=>{"use strict";M();M();ii();Yi();Ht();WG=["clearButton"],kT=(()=>{class t{constructor(){this.tldClick=new V,this.ariaCode="CLOSE_BUTTON"}clicked(){this.tldClick.emit(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["tld-close-button"]],viewQuery:function(i,r){if(i&1&&Ve(WG,5),i&2){let o;he(o=pe())&&(r.clearButton=o.first)}},inputs:{ariaCode:"ariaCode",disabled:"disabled",tooltip:"tooltip"},outputs:{tldClick:"tldClick"},decls:6,vars:7,consts:[["clearButton",""],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons"]],template:function(i,r){if(i&1){let o=Ge();D(0,"button",1,0),se(2,"translate"),se(3,"translate"),K("click",function(){return ve(o),ye(r.clicked())}),D(4,"span",2),le(5," close "),T()()}i&2&&(A("matTooltip",be(2,3,r.tooltip))("disabled",r.disabled),_e("aria-label",be(3,5,"ARIA_LABELS."+r.ariaCode)))},dependencies:[Or,li,En],encapsulation:2})}}return t})()});var FT,NT=f(()=>{"use strict";we();Cb();ii();Ht();Yi();M();FT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,ha,ei,_a]})}}return t})()});function KG(t,n){if(t&1&&(oe(0,"p",10),se(1,"translate")),t&2){let e=$();A("innerHtml",So(1,1,e.message.title,e.message.localizationParams),Ps)}}function QG(t,n){if(t&1&&(oe(0,"span",12),se(1,"translate")),t&2){let e=$(2);A("innerHtml",So(1,1,e.message.support,e.message.localizationParams),Ps)}}function ZG(t,n){if(t&1&&(D(0,"p",11),oe(1,"span",12),se(2,"translate"),ee(3,QG,2,4,"span",13),T()),t&2){let e=$();w(),A("innerHtml",So(2,2,e.message.body,e.message.localizationParams),Ps),w(2),A("ngIf",e.message.support)}}function XG(t,n){if(t&1&&(D(0,"mat-icon"),le(1),T()),t&2){let e=$(2);w(),pt(e.message.callbackButtonIcon)}}function JG(t,n){if(t&1){let e=Ge();D(0,"button",14),K("click",function(){ve(e);let r=$();return ye(r.message==null?null:r.message.callbackButtonClick())}),ee(1,XG,2,1,"mat-icon",15),le(2),se(3,"translate"),T()}if(t&2){let e=$();w(),A("ngIf",e.message.callbackButtonIcon),w(),it(" ",be(3,2,e.message.callbackButtonText)," ")}}function e3(t,n){if(t&1){let e=Ge();D(0,"tld-close-button",16),K("tldClick",function(){ve(e);let r=$();return ye(r.closeClick())}),T()}if(t&2){let e=$();fe("no-top-margin",!e.message.title||!e.message.body)}}function t3(t,n){if(t&1){let e=Ge();D(0,"button",21),K("click",function(){ve(e);let r=$(2);return ye(r.buttonClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);w(),it("",be(2,1,e.message.buttonText)," ")}}function n3(t,n){if(t&1){let e=Ge();D(0,"a",22),K("click",function(){ve(e);let r=$(2);return ye(r.linkClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);_e("href",e.message.linkHref,xv),w(),pt(be(2,2,e.message.linkText))}}function i3(t,n){if(t&1){let e=Ge();D(0,"a",23),K("click",function(){ve(e);let r=$(2);return ye(r.linkClick())}),le(1),se(2,"translate"),T()}if(t&2){let e=$(2);A("routerLink",sf(4,YG,e.message.routerLink)),w(),pt(be(2,2,e.message.linkText))}}function r3(t,n){if(t&1&&(D(0,"div",17),ee(1,t3,3,3,"button",18)(2,n3,3,4,"a",19)(3,i3,3,6,"a",20),T()),t&2){let e=$();w(),A("ngIf",e.message.buttonText),w(),A("ngIf",e.message.linkHref&&e.message.linkText),w(),A("ngIf",e.message.routerLink&&e.message.linkText)}}var YG,LT,np=f(()=>{"use strict";M();M();we();Sh();Ea();Cb();ii();xb();Fr();Ht();YG=t=>[t];LT=(()=>{class t{constructor(){this.buttonClicked=new V,this.closeClicked=new V,this.linkClicked=new V,this.iconNames={BASIC:"info",INFO:"info",ERROR:"error",SUCCESS:"check_circle",WARNING:"info"}}ngOnInit(){this.className=this.message.type.toLocaleLowerCase()}buttonClick(){this.buttonClicked.next(null)}closeClick(){this.closeClicked.next(null)}linkClick(){this.linkClicked.next(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=re({type:t,selectors:[["lib-tld-notification-message"]],inputs:{message:"message",inline:"inline"},outputs:{buttonClicked:"buttonClicked",closeClicked:"closeClicked",linkClicked:"linkClicked"},decls:12,vars:13,consts:[["fxLayout","row","fxLayoutAlign","start start","aria-live","polite","fxLayout","row",1,"notification-message-container","tld-default-border",3,"ngClass.lt-md"],[1,"material-icons-outlined","message-icon"],["fxFlex","",1,"items-container"],["fxLayout","row"],["fxFlex","",1,"text-container"],["class","message-title",3,"innerHtml",4,"ngIf"],["class","message-body",4,"ngIf"],["color","accent","mat-stroked-button","","class","callback-button",3,"click",4,"ngIf"],["class","close-button",3,"no-top-margin","tldClick",4,"ngIf"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center",4,"ngIf"],[1,"message-title",3,"innerHtml"],[1,"message-body"],[3,"innerHtml"],[3,"innerHtml",4,"ngIf"],["color","accent","mat-stroked-button","",1,"callback-button",3,"click"],[4,"ngIf"],[1,"close-button",3,"tldClick"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center"],["class","message-action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","message-action-link",3,"click",4,"ngIf"],["class","message-action-link",3,"routerLink","click",4,"ngIf"],["color","accent","mat-flat-button","",1,"message-action-button",3,"click"],[1,"message-action-link",3,"click"],[1,"message-action-link",3,"click","routerLink"]],template:function(i,r){i&1&&(D(0,"div")(1,"div",0)(2,"span",1),le(3),T(),D(4,"div",2)(5,"div",3)(6,"div",4),ee(7,KG,2,4,"p",5)(8,ZG,4,5,"p",6),T(),ee(9,JG,4,4,"button",7)(10,e3,1,2,"tld-close-button",8),T(),ee(11,r3,4,3,"div",9),T()()()),i&2&&(tf("notification-message ",r.className,""),w(),fe("inline",r.inline),A("ngClass.lt-md","mobile"),_e("id",r.message.id),w(2),it(" ",r.iconNames[r.message.type]," "),w(4),A("ngIf",r.message.title),w(),A("ngIf",r.message.body),w(),A("ngIf",r.message.callbackButtonText),w(),A("ngIf",!r.message.hideClose&&!r.message.callbackButtonText),w(),A("ngIf",r.message.buttonText||r.message.linkHref||r.message.routerLink))},dependencies:[Hs,lA,sA,rA,iA,wa,kT,ah,ST,kr,En],styles:["[_nghost-%COMP%]{display:inline-block;width:100%}.close-button[_ngcontent-%COMP%]{position:absolute;top:.2em!important;right:.2em!important}.no-top-margin[_ngcontent-%COMP%]{top:0}.text-container[_ngcontent-%COMP%]{margin-right:45px}.notification-message[_ngcontent-%COMP%]{position:relative}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--base-100)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--base-40)}.notification-message.basic[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--info-light)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--info-primary)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:var(--info-dark)}.notification-message.info[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--error-light)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--error-dark)}.notification-message.error[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--warning-light)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--warning-dark)}.notification-message.warning[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{background-color:var(--success-light)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%], .notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-icon[_ngcontent-%COMP%]{color:var(--success-dark)}.notification-message.success[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .message-action-button[_ngcontent-%COMP%]{background-color:var(--base-40)}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]{border-radius:4px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:has(.message-title + .message-body)[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{font-weight:600}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%]{padding:.6em .4em!important;border-radius:0}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.4em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.2em!important}.notification-message[_ngcontent-%COMP%] .notification-message-container.mobile[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:0!important}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]:first-child{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{margin:0;font-size:16px;line-height:24px}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .message-body[_ngcontent-%COMP%]{margin:0}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline){padding:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .items-container[_ngcontent-%COMP%]{margin-left:1em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-title[_ngcontent-%COMP%]{font-size:1.25em}.notification-message[_ngcontent-%COMP%] .notification-message-container[_ngcontent-%COMP%]:not(.inline) .message-body[_ngcontent-%COMP%]{line-height:1.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%]{padding:.75em 1em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%]{margin-left:.75em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:.5em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .items-container[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%] + .message-body[_ngcontent-%COMP%]{margin-top:.2em}.notification-message[_ngcontent-%COMP%] .notification-message-container.inline[_ngcontent-%COMP%] .message-title[_ngcontent-%COMP%]{font-size:1em}"]})}}return t})()});var PT,jT=f(()=>{"use strict";we();Ah();ii();xb();Ht();NT();np();Fr();M();PT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({imports:[ct,Da,FT,ha,ei,OT,dh]})}}return t})()});var Wo,wb=f(()=>{"use strict";Wo=function(t){return t.BASIC="BASIC",t.INFO="INFO",t.WARNING="WARNING",t.SUCCESS="SUCCESS",t.ERROR="ERROR",t}(Wo||{})});var VT=f(()=>{"use strict";wb()});var BT=f(()=>{"use strict"});var UT=f(()=>{"use strict";BT()});var Eb=f(()=>{"use strict";jT();np();VT();UT()});var Db=f(()=>{"use strict"});var zT=f(()=>{"use strict";Eb();Db()});var $T=f(()=>{"use strict"});var HT=f(()=>{"use strict";$T()});var GT=f(()=>{"use strict";Db()});var WT=f(()=>{"use strict";zT();HT();GT()});var qT=f(()=>{"use strict"});var YT=f(()=>{"use strict"});var KT=f(()=>{"use strict"});var QT=f(()=>{"use strict"});var ZT=f(()=>{"use strict"});var XT=f(()=>{"use strict"});var JT=f(()=>{"use strict"});var eR=f(()=>{"use strict"});var tR=f(()=>{"use strict";j_()});var Ib=f(()=>{"use strict"});var nR=f(()=>{"use strict";qo();Ib()});var iR=f(()=>{"use strict";Ib()});var Mb=f(()=>{"use strict";nR();iR()});var rR=f(()=>{"use strict";Mb()});var oR=f(()=>{"use strict"});var sR=f(()=>{"use strict"});var qo=f(()=>{"use strict";qT();YT();KT();QT();ZT();XT();JT();eR();tR();rR();oR();sR()});var aR=f(()=>{"use strict"});var lR=f(()=>{"use strict"});var cR=f(()=>{"use strict"});var dR=f(()=>{"use strict"});var uR=f(()=>{"use strict"});var fR=f(()=>{"use strict"});var hR=f(()=>{"use strict"});var pR=f(()=>{"use strict"});var mR=f(()=>{"use strict";aR();lR();cR();dR();uR();fR();hR();pR()});var gR=f(()=>{"use strict"});var vR=f(()=>{"use strict"});var yR=f(()=>{"use strict";vR()});var _R=f(()=>{"use strict";qo();mR();gR();yR()});var bR=f(()=>{"use strict";_R()});var xR=f(()=>{"use strict";bR()});var Sb=f(()=>{"use strict"});var CR=f(()=>{"use strict";Sb()});var wR=f(()=>{"use strict";CR();Sb()});var Ab=f(()=>{"use strict"});var ER=f(()=>{"use strict";Ab()});var DR=f(()=>{"use strict";ER();Ab()});var Tb=f(()=>{"use strict"});var IR=f(()=>{"use strict";Tb()});var MR=f(()=>{"use strict";IR();Tb()});var SR,Rb=f(()=>{"use strict";M();Ht();SR=(()=>{class t{constructor(e){this.translate=e,this.languagesLocalizationKey="LANGUAGES",this.translationCache=new Map,this.localeSameRegions={nb:["no"],et:["ee"],sl:["si"],sv:["se"],uk:["ua"],en:["gb","us"]},this.translations={en:{mt:"Maltese"},lv:{mt:"Maltie\u0161u"},lt:{mt:"Maltie\u010Di\u0173"},et:{mt:"Malta"}},this.translate.onLangChange.subscribe(()=>{this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang}),this.lastUiLanguage=this.translate.currentLang}transform(e,i=!1){if(!e)return"";this.lastUiLanguage!==this.translate.currentLang&&(this.translationCache.clear(),this.lastUiLanguage=this.translate.currentLang);let r=`${e}:${i}`;if(this.translationCache.has(r))return this.translationCache.get(r);let o=this.getLanguageFromLanguageCode(e),a=this.isLanguageCodeSameAsRegion(e)?o:e,l=this.getTranslation(a,i);return this.translationCache.set(r,l),l}getTranslation(e,i){let o=this.translate.instant(this.languagesLocalizationKey)[e.toUpperCase().replace("-","_")]??this.getLanguageTranslationFromLanguageCode(this.translate.currentLang,e);return i&&(o=o.split("(")[0].trim()),o}getLanguageTranslationFromLanguageCode(e,i){let r=new Intl.DisplayNames([e],{type:"language"}),o=new Intl.DisplayNames([e],{type:"region"}),s,a=this.getLanguageFromLanguageCode(i),l=this.getRegionFromLanguageCode(i);try{let c=r.of(a),d=o.of(l);s=`${c} (${d})`}catch{try{s=r.of(i)}catch{return s=this.translations[e]?.[a]??i,s}}return this.capitalizeFirstLetter(s)}isLanguageCodeSameAsRegion(e){let[i,r,o]=e.split("-");return(i===r?.toLowerCase()||this.localeSameRegions[i]?.includes(r?.toLowerCase()))&&!o}getRegionFromLanguageCode(e){let[i,r,o]=e.split("-");return(o?`${r}-${o}`:`${r}`).toUpperCase()}getLanguageFromLanguageCode(e){return e.split("-")[0].toLowerCase()}capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}static{this.\u0275fac=function(i){return new(i||t)(h(Li,16))}}static{this.\u0275pipe=ks({name:"languageTranslate",type:t,pure:!1,standalone:!0})}}return t})()});var AR=f(()=>{"use strict";Rb()});var TR=f(()=>{"use strict";AR();Rb()});var RR=f(()=>{"use strict"});var OR=f(()=>{"use strict"});var kR=f(()=>{"use strict"});var FR=f(()=>{"use strict"});var NR=f(()=>{"use strict";RR();OR();kR();FR()});var Ob=f(()=>{"use strict";NR()});var LR=f(()=>{"use strict";Ob()});var PR=f(()=>{"use strict";LR();Ob()});var kb=f(()=>{"use strict"});var jR=f(()=>{"use strict";kb()});var VR=f(()=>{"use strict";jR();kb()});var BR=f(()=>{"use strict";qo()});var UR=f(()=>{"use strict";BR()});var Fb=f(()=>{"use strict";qo()});var zR=f(()=>{"use strict";Fb()});var $R=f(()=>{"use strict";zR();Fb()});var HR=f(()=>{"use strict"});var GR=f(()=>{"use strict";HR()});var WR=f(()=>{"use strict";Lb()});var qR=f(()=>{"use strict";GR();WR()});var YR=f(()=>{"use strict";qo()});var KR=f(()=>{"use strict";YR()});var QR=f(()=>{"use strict";qo()});var ZR=f(()=>{"use strict";QR()});var XR=f(()=>{"use strict";wR();DR();MR();TR();PR();VR();UR();$R();qR();Mb();KR();ZR()});var Nb,JR=f(()=>{"use strict";XR();M();Ht();Nb=(()=>{class t{constructor(e){this.translateService=e}getLanguageCodeTranslation(e,i=!1){return new SR(this.translateService).transform(e,i)}removeRegionFromLanguageCode(e){return e.split("-")[0]}static{this.\u0275fac=function(i){return new(i||t)(g(Li))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var Lb=f(()=>{"use strict";JR()});var Pb=f(()=>{"use strict"});var eO=f(()=>{"use strict";Pb()});var tO=f(()=>{"use strict"});var nO=f(()=>{"use strict";tO();Pb()});var iO=f(()=>{"use strict";eO();nO()});var jb=f(()=>{"use strict";PA();BA();WT();xR();Lb();iO()});var Wr,Vb=f(()=>{"use strict";jb();Wr=class{static addPlausible(n){let i=new jA().window;if(!i||!n)return;let r="https://plausible.io/js/plausible.js",o=document.createElement("script");o.src=r,o.setAttribute("data-domain",n),document.head.append(o),i.plausible=i.plausible||((...s)=>{(i.plausible.q=i.plausible.q||[]).push(s)})}static customEvent(n,e){let i=window;i?.plausible&&i.plausible(n,{props:e})}}});var Bb=f(()=>{"use strict";Vb()});var rO=f(()=>{"use strict";Bb()});var oO=f(()=>{"use strict"});var sO=f(()=>{"use strict";oO()});var aO=f(()=>{"use strict";Vb();Bb();rO();sO()});var ip,lO=f(()=>{"use strict";ip=function(t){return t.GENERAL="General",t.PROFESSIONAL="Professional",t.ACADEMIC="Academic",t}(ip||{})});var ja,cO=f(()=>{"use strict";M();ja=new C("LLM_CONFIGURATION_TOKEN")});var dO=f(()=>{"use strict"});var rp=f(()=>{"use strict";cO();dO();Rh()});var uO,fO=f(()=>{"use strict";M();Uo();ke();wb();rp();M();Uo();uO=(()=>{class t{constructor(e){this.quotaService=e,this.llmConfiguration=y(ja),this.trialRequestCount=15,this.LLMQuotaLocalStorageKey="LLM_QUOTA"}getRemainingQuota(e){return this.llmConfiguration.useLocalQuota?O(this.setQuotaLocalStorageUsage(e)):this.quotaService.getQuotaUsage().pipe(P(i=>{let r=i.usage.find(o=>o.quotaType===qe.LLM_REQUESTS||o.quotaType===qe.LEGACY_LLM_REQUESTS);return r?r.quotaRemaining:this.setQuotaLocalStorageUsage(e)}),en(()=>O(this.setQuotaLocalStorageUsage(e))))}getExceededLimitMessage(e){return{type:Wo.WARNING,body:"ERRORS.MAX_CHAR_LENGTH",localizationParams:{maxCharLength:this.llmConfiguration.maxCharLength,totalSymbols:e}}}getReachedQuotaMessage(){return{type:Wo.ERROR,body:"LLM.ERRORS.QUOTA_LIMIT_REACHED",localizationParams:{subscriptionUrl:this.llmConfiguration.subscriptionUrl}}}getDefaultErrorMessage(){return{type:Wo.ERROR,body:"LLM.ERRORS.DEFAULT",localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}getRequestTimeoutMessage(e){return{type:Wo.ERROR,body:`LLM.ERRORS.${e}_REQUEST_TIMEOUT`,localizationParams:{supportEmail:this.llmConfiguration.supportEmail}}}setQuotaLocalStorageUsage(e){let i=localStorage.getItem(this.LLMQuotaLocalStorageKey),r=new Date,o={remainingQuota:this.trialRequestCount,lastUsedAt:r};if(i){o=JSON.parse(i);let a=new Date(o.lastUsedAt);(a.getDate()!==r.getDate()||a.getMonth()!==r.getMonth()||a.getFullYear()!==r.getFullYear())&&(o.remainingQuota=this.trialRequestCount),e&&(o.remainingQuota-=1)}return o.lastUsedAt=r,localStorage.setItem(this.LLMQuotaLocalStorageKey,JSON.stringify(o)),o.remainingQuota}static{this.\u0275fac=function(i){return new(i||t)(g(TA))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var Ub,hO,pO,zb=f(()=>{"use strict";we();M();Ub=class{constructor(n,e){this._document=e;let i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=n,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){let n=this._textarea,e=!1;try{if(n){let i=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){let n=this._textarea;n&&(n.remove(),this._textarea=void 0)}},hO=(()=>{class t{constructor(e){this._document=e}copy(e){let i=this.beginCopy(e),r=i.copy();return i.destroy(),r}beginCopy(e){return new Ub(e,this._document)}static{this.\u0275fac=function(i){return new(i||t)(g(B))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=N({})}}return t})()});var p3,mO,$b=f(()=>{"use strict";M();ji();ke();M();zb();ii();Fr();ji();Yi();Ea();Ht();p3=["textarea"],mO=(()=>{class t{constructor(e){this.clipboard=e,this.textEditEvent=new V,this.dislikeEvent=new V,this.copyEvent=new V,this.destroy=new R}ngOnInit(){this.textareaControl=new $l(this.text)}ngAfterViewInit(){gi(this.textarea.nativeElement,"keyup").pipe(Pe(e=>{e.ctrlKey&&e.key==="c"&&this.copyEvent.emit()}),vi(300),ae(this.destroy)).subscribe(()=>{this.textEditEvent.emit(this.textareaControl.value)})}ngOnChanges(e){e&&e.disabled&&(this.disabled?this.textareaControl?.disable():this.textareaControl?.enable()),e&&e.text&&(this.textareaControl=new $l(this.text))}dislike(){this.dislikeEvent.emit()}copy(){this.clipboard.copy(this.textareaControl.value),this.copyEvent.emit()}ngOnDestroy(){this.destroy.next(null),this.destroy.complete()}static{this.\u0275fac=function(i){return new(i||t)(h(hO))}}static{this.\u0275cmp=re({type:t,selectors:[["lib-llm-textarea"]],viewQuery:function(i,r){if(i&1&&Ve(p3,5),i&2){let o;he(o=pe())&&(r.textarea=o.first)}},inputs:{text:"text",disabled:"disabled",actionButtonsDisabled:"actionButtonsDisabled"},outputs:{textEditEvent:"textEditEvent",dislikeEvent:"dislikeEvent",copyEvent:"copyEvent"},features:[He],decls:18,vars:13,consts:[["textarea",""],[1,"llm-wrapper",3,"ngClass.gt-lg"],[1,"llm-textarea-wrapper"],[1,"llm-textarea",3,"formControl"],[1,"llm-textarea-actions"],[1,"material-icons-outlined","llm-eu-data-tooltip",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip","disabled"],[1,"material-icons-outlined","copy"],["mat-icon-button","",3,"click","disabled","matTooltip"],[1,"material-icons-outlined","dislike"]],template:function(i,r){if(i&1){let o=Ge();D(0,"div",1)(1,"div",2)(2,"textarea",3,0),le(4," "),T(),D(5,"div",4)(6,"mat-icon",5),se(7,"translate"),le(8," gpp_maybe "),T(),D(9,"div")(10,"button",6),se(11,"translate"),K("click",function(){return ve(o),ye(r.dislike())}),D(12,"mat-icon",7),le(13," thumb_down "),T()(),D(14,"button",8),se(15,"translate"),K("click",function(){return ve(o),ye(r.copy())}),D(16,"mat-icon",9),le(17," content_copy "),T()()()()()()}i&2&&(A("ngClass.gt-lg","desktop"),w(2),A("formControl",r.textareaControl),w(4),A("matTooltip",be(7,7,"LLM.EU_DATA_TOOLTIP")),w(4),A("matTooltip",be(11,9,"TOOLTIPS.DISLIKE"))("disabled",r.actionButtonsDisabled||!r.textareaControl.value),w(4),A("disabled",r.actionButtonsDisabled||!r.textareaControl.value)("matTooltip",be(15,11,"TOOLTIPS.COPY")))},dependencies:[Or,kr,Xs,Js,Ny,li,wa,En],styles:[".llm-wrapper[_ngcontent-%COMP%]{position:relative;border:1px solid var(--base-65);border-radius:8px;overflow-y:auto}.llm-textarea-wrapper[_ngcontent-%COMP%]{position:relative}.llm-textarea[_ngcontent-%COMP%]{min-width:100%;min-height:310px;padding:8px 16px;resize:none;background:none;border-radius:8px;margin-bottom:46px}.desktop[_ngcontent-%COMP%] .llm-textarea[_ngcontent-%COMP%]{min-height:490px}.llm-textarea-actions[_ngcontent-%COMP%]{position:absolute;display:flex;justify-content:space-between;align-items:center;width:100%;bottom:4px}.llm-eu-data-tooltip[_ngcontent-%COMP%]{margin-left:16px}"]})}}return t})()});function y3(t,n){if(t&1){let e=Ge();D(0,"lib-tld-notification-message",15),K("closeClicked",function(){let r=ve(e).$implicit,o=$();return ye(o.closeMessage(r))}),T()}if(t&2){let e=n.$implicit;A("message",e)}}function _3(t,n){if(t&1&&(D(0,"mat-option",18),le(1),se(2,"uppercase"),se(3,"translate"),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",be(3,4,"LLM.USE_CASE."+be(2,2,e))," ")}}function b3(t,n){if(t&1){let e=Ge();D(0,"mat-form-field",16)(1,"mat-label"),le(2),se(3,"translate"),T(),D(4,"mat-select",17),Us("ngModelChange",function(r){ve(e);let o=$();return El(o.selectedUseCase,r)||(o.selectedUseCase=r),ye(r)}),QD(5,_3,4,6,"mat-option",18,KD),T()()}if(t&2){let e=$();w(2),pt(be(3,3,"LLM.USE_CASES_LABEL")),w(2),A("disabled",e.isLoading),Bs("ngModel",e.selectedUseCase),w(),ZD(e.useCases)}}function x3(t,n){if(t&1&&(D(0,"mat-option",18),le(1),se(2,"uppercase"),se(3,"translate"),T()),t&2){let e=n.$implicit;A("value",e),w(),it(" ",be(3,4,"LLM.REPHRASE_MODAL.WRITING_STYLES."+be(2,2,e))," ")}}function C3(t,n){if(t&1){let e=Ge();nf(0),D(1,"mat-form-field",19)(2,"mat-label"),le(3),se(4,"translate"),T(),D(5,"mat-select",20),K("selectionChange",function(r){ve(e);let o=$();return ye(o.checkRephrasedTextSaves(r))}),ee(6,x3,4,6,"mat-option",21),T()(),D(7,"p",22),le(8),se(9,"uppercase"),se(10,"translate"),se(11,"translate"),D(12,"span",23),se(13,"uppercase"),se(14,"translate"),le(15," info "),T()(),rf()}if(t&2){let e=$();w(3),pt(be(4,6,"LLM.REPHRASE_MODAL.WRITING_STYLES.TITLE")),w(2),A("disabled",e.isLoading)("value",e.selectedWritingStyle),w(),A("ngForOf",e.writingStyles),w(2),it("",So(11,12,"LLM.REPHRASE_MODAL.WRITING_STYLES.SPECIFIC_STYLE",sf(19,g3,be(10,10,"LLM.REPHRASE_MODAL.WRITING_STYLES."+be(9,8,e.selectedWritingStyle))))," "),w(4),A("matTooltip",be(14,17,"LLM.REPHRASE_MODAL.WRITING_STYLES.TOOLTIP_"+be(13,15,e.selectedWritingStyle)))}}function w3(t,n){if(t&1&&(oe(0,"div",24),se(1,"translate")),t&2){let e=$();A("innerHTML",So(1,1,e.localizationKey+"LIMIT",nI(4,v3,e.quotaLeft,e.subscriptionUrl)),Ps)}}function E3(t,n){if(t&1){let e=Ge();D(0,"button",25),K("click",function(){ve(e);let r=$();return ye(r.cancel())}),le(1),se(2,"translate"),T()}if(t&2){let e=$();w(),it(" ",be(2,1,e.localizationKey+"CANCEL")," ")}}function D3(t,n){if(t&1&&(D(0,"button",26),le(1),se(2,"translate"),T()),t&2){let e=$();A("mat-dialog-close",null),w(),it(" ",be(2,2,e.localizationKey+"CLOSE")," ")}}function I3(t,n){if(t&1&&(D(0,"span"),le(1),se(2,"translate"),T()),t&2){let e=$();w(),it(" ",be(2,1,e.isSummarized?"LLM.SUMMARY_MODAL.REGENERATE":"LLM.SUMMARY_MODAL.ACTION")," ")}}function M3(t,n){if(t&1&&(le(0),se(1,"translate")),t&2){let e=$();it(" ",be(1,1,e.localizationKey+"ACTION")," ")}}function S3(t,n){t&1&&oe(0,"mat-spinner",27),t&2&&A("diameter",20)}var g3,v3,gO,Hb=f(()=>{"use strict";vc();Uo();ke();j_();aO();Rh();lO();M();Uo();fO();we();ii();vc();ji();ac();lc();In();np();Yi();hh();$b();Ht();g3=t=>({style:t}),v3=(t,n)=>({limit:t,subscriptionUrl:n});gO=(()=>{class t{get isDisabled(){return this.isLoading||!this.initialText||this.quotaLeft<1}constructor(e,i,r){this.llmService=e,this.llmHelperService=i,this.data=r,this.selectedWritingStyle=ip.GENERAL,this.editedText="",this.manuallyEditedText="",this.savedRephrasings=[],this.llmActions=jn,this.writingStyles=Object.values(ip),this.useCases=[],this.messages=[],this.showUseCase=!1}ngOnInit(){this.setInitialText(),this.llmActionType===jn.REPHRASE?(this.useCases=Object.values(Fh),this.selectedUseCase=Fh.General):this.llmActionType===jn.SUMMARY&&(this.useCases=Object.values(Nh),this.selectedUseCase=Nh.General),this.showUseCase=this.llmActionType===jn.REPHRASE&&this.data.showUseCaseRephrase||this.llmActionType===jn.SUMMARY&&this.data.showUseCaseSummary,this.data.defaultUseCase&&(this.selectedUseCase=this.data.defaultUseCase)}closeMessage(e){let i=this.messages?.findIndex(r=>JSON.stringify(r)===JSON.stringify(e));(i||i===0)&&this.messages.splice(i,1)}checkRephrasedTextSaves(e){e.value!==this.selectedWritingStyle&&(this.previousWritingStyle=this.selectedWritingStyle,this.selectedWritingStyle=e.value);let i=this.savedRephrasings.find(o=>o.style===this.selectedWritingStyle),r=this.savedRephrasings.find(o=>o.style===this.previousWritingStyle);r?r.text=this.editedText!==""?this.editedText:this.initialText:this.savedRephrasings.push({style:this.previousWritingStyle,text:this.editedText!==""?this.editedText:this.initialText}),this.editedText=i?.text??this.initialText,this.manuallyEditedText="",this.checkTextLimit()}getEditedText(){this.isLoading=!0,this.llmActionType===jn.REPHRASE?this.writingStylePlausibleEvent():this.summaryPlausibleEvent(),this.subscription=this.getRequest()}cancel(){this.subscription.unsubscribe()}textEditEvent(e){this.manuallyEditedText=e,this.initialText=e,this.editedText="",this.checkTextLimit()}copyPlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"copy"})}dislikePlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"dislike"})}setInitialText(){this.data.text.subscribe(e=>{this.initialText=e,this.llmActionType=this.data.action,this.localizationKey=`LLM.${this.llmActionType}_MODAL.`,this.subscriptionUrl=this.llmHelperService.llmConfiguration.subscriptionUrl,this.maxCharLength=this.llmHelperService.llmConfiguration.maxCharLength,this.refreshQuota()})}checkTextLimit(){let e=this.maxCharLength,i=[this.initialText,this.manuallyEditedText,this.editedText],r=this.editedText&&!this.manuallyEditedText?this.editedText:i.reduce((o,s)=>o.length>s.length?o:s);if(r.length>e){this.exceededLimitMessage&&this.closeMessage(this.exceededLimitMessage),this.exceededLimitMessage=this.llmHelperService.getExceededLimitMessage(r.length),this.messages.push(this.exceededLimitMessage);return}this.closeMessage(this.exceededLimitMessage)}writingStylePlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{writingStyle:this.selectedWritingStyle})}summaryPlausibleEvent(){Wr.customEvent(this.llmActionType.toLowerCase(),{action:"summary"})}refreshQuota(e){this.llmHelperService.getRemainingQuota(e).subscribe(i=>{this.quotaLeft=i,this.setQuotaMessage()})}setQuotaMessage(){this.quotaLeft<=this.llmHelperService.trialRequestCount&&(this.remainingQuotaMessageVisible=!0),this.quotaLeft<1&&(this.reachedQuotaMessage=this.llmHelperService.getReachedQuotaMessage(),this.messages.push(this.reachedQuotaMessage))}getRequest(){let e=this.manuallyEditedText!==""?this.manuallyEditedText:this.initialText;return e.length>this.maxCharLength&&(e=e.substring(0,this.maxCharLength)),(this.llmActionType===jn.REPHRASE?this.llmService.rephrase({text:e,language:this.data.language,style:this.selectedWritingStyle,useCase:this.selectedUseCase}):this.llmService.summarize({text:e,language:this.data.language,useCase:this.selectedUseCase})).pipe(Wt(()=>this.isLoading=!1)).subscribe(this.getRequestCallback())}getRequestCallback(){return{next:e=>{this.llmActionType===this.llmActions.SUMMARY&&(this.isSummarized=!0),this.editedText=e,this.manuallyEditedText="",this.defaultErrorMessage=this.llmHelperService.getDefaultErrorMessage(),this.closeMessage(this.defaultErrorMessage),this.closeMessage(this.requestTimeoutMessage),this.isEdited=!0,this.refreshQuota(!0),this.checkTextLimit()},error:e=>{if(e.status===P_.TIMEOUT){this.requestTimeoutMessage=this.llmHelperService.getRequestTimeoutMessage(this.llmActionType),this.messages.push(this.requestTimeoutMessage);return}this.messages.push(this.defaultErrorMessage)}}}static{this.\u0275fac=function(i){return new(i||t)(h(AA),h(uO),h(L_))}}static{this.\u0275cmp=re({type:t,selectors:[["lib-llm-textarea-with-actions"]],decls:22,vars:23,consts:[["closeButton",""],["rephraseAction",""],["mat-dialog-title",""],["mat-dialog-content",""],[3,"message","closeClicked",4,"ngFor","ngForOf"],["color","accent","class","w-full llm-writing-style-select","appearance","outline",4,"ngIf"],[4,"ngIf"],[3,"textEditEvent","copyEvent","dislikeEvent","text","disabled","actionButtonsDisabled"],["mat-dialog-actions","",1,"llm-actions-wrapper"],["class","quota-left-message",3,"innerHTML",4,"ngIf"],[1,"llm-actions"],["mat-button","","color","accent",3,"click",4,"ngIf","ngIfElse"],["mat-flat-button","","color","accent",3,"click","disabled"],[4,"ngIf","ngIfElse"],["color","primary-accent-darker",3,"diameter",4,"ngIf"],[3,"closeClicked","message"],["color","accent","appearance","outline",1,"w-full","llm-writing-style-select"],[3,"ngModelChange","disabled","ngModel"],[3,"value"],["color","primary","appearance","outline",1,"w-full","llm-writing-style-select"],[3,"selectionChange","disabled","value"],[3,"value",4,"ngFor","ngForOf"],[1,"llm-writing-style","text-m-semi-bold"],["matTooltipClass","multiline-tooltip","matTooltipPosition","above",1,"material-icons-outlined","info-icon",3,"matTooltip"],[1,"quota-left-message",3,"innerHTML"],["mat-button","","color","accent",3,"click"],["mat-button","","color","accent",3,"mat-dialog-close"],["color","primary-accent-darker",3,"diameter"]],template:function(i,r){if(i&1){let o=Ge();D(0,"h1",2),le(1),se(2,"translate"),T(),D(3,"div",3)(4,"p"),le(5),se(6,"translate"),T(),ee(7,y3,1,1,"lib-tld-notification-message",4)(8,b3,7,5,"mat-form-field",5)(9,C3,16,21,"ng-container",6),D(10,"lib-llm-textarea",7),K("textEditEvent",function(a){return ve(o),ye(r.textEditEvent(a))})("copyEvent",function(){return ve(o),ye(r.copyPlausibleEvent())})("dislikeEvent",function(){return ve(o),ye(r.dislikePlausibleEvent())}),T()(),D(11,"div",8),ee(12,w3,2,7,"div",9),D(13,"div",10),ee(14,E3,3,3,"button",11)(15,D3,3,4,"ng-template",null,0,Ao),D(17,"button",12),K("click",function(){return ve(o),ye(r.getEditedText())}),ee(18,I3,3,3,"span",13)(19,M3,2,3,"ng-template",null,1,Ao)(21,S3,1,1,"mat-spinner",14),T()()()}if(i&2){let o=Cn(16),s=Cn(20);w(),pt(be(2,19,r.localizationKey+"TITLE")),w(4),pt(be(6,21,r.localizationKey+"DESCRIPTION")),w(2),A("ngForOf",r.messages),w(),A("ngIf",r.showUseCase),w(),A("ngIf",r.llmActionType===r.llmActions.REPHRASE),w(),fe("rephrase",r.llmActionType===r.llmActions.REPHRASE),A("text",r.editedText!==""?r.editedText:r.initialText)("disabled",r.isLoading||!r.quotaLeft)("actionButtonsDisabled",!r.isEdited),w(2),A("ngIf",r.remainingQuotaMessageVisible),w(),fe("w-full",!r.remainingQuotaMessageVisible),w(),A("ngIf",r.isLoading)("ngIfElse",o),w(3),A("disabled",r.isDisabled),w(),A("ngIf",r.llmActionType===r.llmActions.SUMMARY)("ngIfElse",s),w(3),A("ngIf",r.isLoading)}},dependencies:[mf,Hs,ah,xA,wA,DA,EA,Js,Hl,_h,ba,xh,fa,LT,li,fh,mO,CI,En],styles:[".info-icon[_ngcontent-%COMP%]{font-size:1rem;margin-left:5px}[_nghost-%COMP%] .message-body{margin:0 2.25rem 0 0!important;font-size:14px}[_nghost-%COMP%] .notification-message-container{margin:0 0 16px;padding:.9em 1em!important;align-items:center!important}[_nghost-%COMP%] .text-container{margin-right:0!important}[_nghost-%COMP%] tld-close-button{top:1px!important} .multiline-tooltip{white-space:pre;min-width:fit-content} .multiline-tooltip .mdc-tooltip__surface{max-width:none!important}[_nghost-%COMP%] .llm-textarea{min-height:240px!important}[_nghost-%COMP%] .rephrase .llm-textarea{min-height:100px!important}[_nghost-%COMP%] .desktop .llm-textarea{min-height:460px!important}[_nghost-%COMP%] .rephrase .desktop .llm-textarea{min-height:330px!important}.llm-writing-style-select[_ngcontent-%COMP%]{margin-top:1.25rem}.llm-writing-style[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:.25rem}.llm-actions-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 1rem .5rem}.llm-actions[_ngcontent-%COMP%]{display:flex;justify-content:end}.w-full[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .mdc-button__label{display:flex!important;align-items:center!important}mat-spinner[_ngcontent-%COMP%]{margin-left:.5rem}.quota-left-message[_ngcontent-%COMP%]{margin-bottom:12px}"]})}}return t})()});var A3,vO=f(()=>{"use strict";A3=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
18
18
|
<path d="M16.1585 17.1686L14.9128 19.9564C14.5601 20.7458 13.4395 20.7458 13.0868 19.9564L11.8412 17.1686C11.6403 16.719 11.2806 16.3593 10.8311 16.1585L8.04323 14.9128C7.25382 14.5601 7.25382 13.4395 8.04323 13.0868L10.8311 11.8412C11.2806 11.6403 11.6403 11.2806 11.8412 10.8311L13.0868 8.04323C13.4395 7.25382 14.5601 7.25382 14.9128 8.04323L16.1585 10.8311C16.3593 11.2806 16.719 11.6403 17.1686 11.8412L19.9564 13.0868C20.7458 13.4395 20.7458 14.5601 19.9564 14.9128L17.1686 16.1585C16.719 16.3593 16.3593 16.719 16.1585 17.1686Z" stroke="#524345" stroke-width="1.5"/>
|
|
19
19
|
<path d="M10.4838 2.31373C10.2969 1.89542 9.7031 1.89542 9.5162 2.31373L9.14485 3.14485L8.31373 3.5162C7.89542 3.7031 7.89542 4.2969 8.31373 4.4838L9.14485 4.85515L9.5162 5.68627C9.7031 6.10458 10.2969 6.10458 10.4838 5.68627L10.8552 4.85515L11.6863 4.4838C12.1046 4.2969 12.1046 3.7031 11.6863 3.5162L10.8552 3.14485L10.4838 2.31373Z" fill="#524345"/>
|
|
20
20
|
<path d="M5.7257 5.47059C5.44534 4.84314 4.55466 4.84313 4.2743 5.47059L3.71727 6.71727L2.47059 7.2743C1.84314 7.55466 1.84314 8.44534 2.47059 8.7257L3.71727 9.28273L4.2743 10.5294C4.55466 11.1569 5.44534 11.1569 5.7257 10.5294L6.28273 9.28273L7.52941 8.7257C8.15687 8.44534 8.15687 7.55466 7.52941 7.2743L6.28273 6.71727L5.7257 5.47059Z" fill="#524345"/>
|