| 76 | `)}sanitizeHtml(A){return re(this,null,function*(){return $iA(this.sanitize)?this.sanitize(yield A):this.sanitize!==Ng.NONE?this.sanitizer.sanitize(this.sanitize??this.DEFAULT_SECURITY_CONTEXT,A)??"":A})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=jA({token:i,factory:i.\u0275fac})}}return i})(),wb=(function(i){return i.CommandLine="command-line",i.LineHighlight="line-highlight",i.LineNumbers="line-numbers",i})(wb||{}),DK=(()=>{class i{constructor(){this.element=w(ce),this.markdownService=w(yK),this.viewContainerRef=w(Jo),this.error=new FA,this.load=new FA,this.ready=new FA,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new ne}get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(A){this._disableSanitizer=this.coerceBooleanProperty(A)}get inline(){return this._inline}set inline(A){this._inline=this.coerceBooleanProperty(A)}get clipboard(){return this._clipboard}set clipboard(A){this._clipboard=this.coerceBooleanProperty(A)}get emoji(){return this._emoji}set emoji(A){this._emoji=this.coerceBooleanProperty(A)}get katex(){return this._katex}set katex(A){this._katex=this.coerceBooleanProperty(A)}get mermaid(){return this._mermaid}set mermaid(A){this._mermaid=this.coerceBooleanProperty(A)}get lineHighlight(){return this._lineHighlight}set lineHighlight(A){this._lineHighlight=this.coerceBooleanProperty(A)}get lineNumbers(){return this._lineNumbers}set lineNumbers(A){this._lineNumbers=this.coerceBooleanProperty(A)}get commandLine(){return this._commandLine}set commandLine(A){this._commandLine=this.coerceBooleanProperty(A)}ngOnChanges(){this.loadContent()}loadContent(){if(this.data!=null){this.handleData();return}if(this.src!=null){this.handleSrc();return}}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(yt(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(A,t=!1){return re(this,null,function*(){let n={decodeHtml:t,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,disableSanitizer:this.disableSanitizer},o={clipboard:this.clipboard,clipboardOptions:this.getClipboardOptions(),katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},a=yield this.markdownService.parse(A,n);this.element.nativeElement.innerHTML=a,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,o,this.viewContainerRef),this.ready.emit()})}coerceBooleanProperty(A){return A!=null&&`${String(A)}`!="false"}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:A=>{this.render(A).then(()=>{this.load.emit(A)})},error:A=>this.error.emit(A)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,wb.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,wb.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(A,t){let n=A.querySelectorAll("pre");for(let o=0;o<n.length;o++){let a=t instanceof Array?t:[t];n.item(o).classList.add(...a)}}setPluginOptions(A,t){let n=A.querySelectorAll("pre");for(let o=0;o<n.length;o++)Object.keys(t).forEach(a=>{let r=t[a];if(r){let s=this.toLispCase(a);n.item(o).setAttribute(s,r.toString())}})}toLispCase(A){let t=A.match(/([A-Z])/g);if(!t)return A;let n=A.toString();for(let o=0,a=t.length;o<a;o++)n=n.replace(new RegExp(t[o]),"-"+t[o].toLowerCase());return n.slice(0,1)==="-"&&(n=n.slice(1)),n}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=vA({type:i,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",disableSanitizer:"disableSanitizer",inline:"inline",clipboard:"clipboard",clipboardButtonComponent:"clipboardButtonComponent",clipboardButtonTemplate:"clipboardButtonTemplate",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",mermaid:"mermaid",mermaidOptions:"mermaidOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[ii],ngContentSelectors:HiA,decls:1,vars:0,template:function(t,n){t&1&&(Ot(),Ze(0))},encapsulation:2})}}return i})();function GQ(i){return[yK,i?.loader??[],i?.clipboardOptions??[],i?.markedOptions??[],i?.mermaidOptions??[],i?.markedExtensions??[],i?.sanitize??[]]}var vK=(()=>{class i{static forRoot(A){return{ngModule:i,providers:[GQ(A)]}}static forChild(){return{ngModule:i}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=et({type:i})}static{this.\u0275inj=At({})}}return i})();var Yi="primary",qQ=Symbol("RouteTitle"),Mb=class{params;constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let A=this.params[e];return Array.isArray(A)?A[0]:A}return null}getAll(e){if(this.has(e)){let A=this.params[e];return Array.isArray(A)?A:[A]}return[]}get keys(){return Object.keys(this.params)}};function X1(i){return new Mb(i)}function yb(i,e,A){for(let t=0;t<i.length;t++){let n=i[t],o=e[t];if(n[0]===":")A[n.substring(1)]=o;else if(n!==o.path)return!1}return!0}function NK(i,e,A){let t=A.path.split("/"),n=t.indexOf("**");if(n===-1){if(t.length>i.length||A.pathMatch==="full"&&(e.hasChildren()||t.length<i.length))return null;let s={},l=i.slice(0,t.length);return yb(t,l,s)?{consumed:l,posParams:s}:null}if(n!==t.lastIndexOf("**"))return null;let o=t.slice(0,n),a=t.slice(n+1);if(o.length+a.length>i.length||A.pathMatch==="full"&&e.hasChildren()&&A.path!=="**")return null;let r={};return!yb(o,i.slice(0,o.length),r)||!yb(a,i.slice(i.length-a.length),r)?null:{consumed:i,posParams:r}}function Df(i){return new Promise((e,A)=>{i.pipe(oo()).subscribe({next:t=>e(t),error:t=>A(t)})})}function snA(i,e){if(i.length!==e.length)return!1;for(let A=0;A<i.length;++A)if(!zc(i[A],e[A]))return!1;return!0}function zc(i,e){let A=i?Sb(i):void 0,t=e?Sb(e):void 0;if(!A||!t||A.length!=t.length)return!1;let n;for(let o=0;o<A.length;o++)if(n=A[o],!FK(i[n],e[n]))return!1;return!0}function Sb(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}function FK(i,e){if(Array.isArray(i)&&Array.isArray(e)){if(i.length!==e.length)return!1;let A=[...i].sort(),t=[...e].sort();return A.every((n,o)=>t[o]===n)}else return i===e}function lnA(i){return i.length>0?i[i.length-1]:null}function Ad(i){return fI(i)?i:l3(i)?Yr(Promise.resolve(i)):oe(i)}function LK(i){return fI(i)?Df(i):Promise.resolve(i)}var gnA={exact:UK,subset:TK},GK={exact:cnA,subset:CnA,ignored:()=>!0},KK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function bK(i,e,A){return gnA[A.paths](i.root,e.root,A.matrixParams)&&GK[A.queryParams](i.queryParams,e.queryParams)&&!(A.fragment==="exact"&&i.fragment!==e.fragment)}function cnA(i,e){return zc(i,e)}function UK(i,e,A){if(!Z1(i.segments,e.segments)||!mf(i.segments,e.segments,A)||i.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!i.children[t]||!UK(i.children[t],e.children[t],A))return!1;return!0}function CnA(i,e){return Object.keys(e).length<=Object.keys(i).length&&Object.keys(e).every(A=>FK(i[A],e[A]))}function TK(i,e,A){return OK(i,e,e.segments,A)}function OK(i,e,A,t){if(i.segments.length>A.length){let n=i.segments.slice(0,A.length);return!(!Z1(n,A)||e.hasChildren()||!mf(n,A,t))}else if(i.segments.length===A.length){if(!Z1(i.segments,A)||!mf(i.segments,A,t))return!1;for(let n in e.children)if(!i.children[n]||!TK(i.children[n],e.children[n],t))return!1;return!0}else{let n=A.slice(0,i.segments.length),o=A.slice(i.segments.length);return!Z1(i.segments,n)||!mf(i.segments,n,t)||!i.children[Yi]?!1:OK(i.children[Yi],e,o,t)}}function mf(i,e,A){return e.every((t,n)=>GK[A](i[n].parameters,t.parameters))}var Xl=class{root;queryParams;fragment;_queryParamMap;constructor(e=new yo([],{}),A={},t=null){this.root=e,this.queryParams=A,this.fragment=t}get queryParamMap(){return this._queryParamMap??=X1(this.queryParams),this._queryParamMap}toString(){return BnA.serialize(this)}},yo=class{segments;children;parent=null;constructor(e,A){this.segments=e,this.children=A,Object.values(A).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wf(this)}},t2=class{path;parameters;_parameterMap;constructor(e,A){this.path=e,this.parameters=A}get parameterMap(){return this._parameterMap??=X1(this.parameters),this._parameterMap}toString(){return YK(this)}};function dnA(i,e){return Z1(i,e)&&i.every((A,t)=>zc(A.parameters,e[t].parameters))}function Z1(i,e){return i.length!==e.length?!1:i.every((A,t)=>A.path===e[t].path)}function InA(i,e){let A=[];return Object.entries(i.children).forEach(([t,n])=>{t===Yi&&(A=A.concat(e(n,t)))}),Object.entries(i.children).forEach(([t,n])=>{t!==Yi&&(A=A.concat(e(n,t)))}),A}var ed=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:()=>new z0,providedIn:"root"})}return i})(),z0=class{parse(e){let A=new xb(e);return new Xl(A.parseRootSegment(),A.parseQueryParams(),A.parseFragment())}serialize(e){let A=`/${KQ(e.root,!0)}`,t=QnA(e.queryParams),n=typeof e.fragment=="string"?`#${hnA(e.fragment)}`:"";return`${A}${t}${n}`}},BnA=new z0;function wf(i){return i.segments.map(e=>YK(e)).join("/")}function KQ(i,e){if(!i.hasChildren())return wf(i);if(e){let A=i.children[Yi]?KQ(i.children[Yi],!1):"",t=[];return Object.entries(i.children).forEach(([n,o])=>{n!==Yi&&t.push(`${n}:${KQ(o,!1)}`)}),t.length>0?`${A}(${t.join("//")})`:A}else{let A=InA(i,(t,n)=>n===Yi?[KQ(i.children[Yi],!1)]:[`${n}:${KQ(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[Yi]!=null?`${wf(i)}/${A[0]}`:`${wf(i)}/(${A.join("//")})`}}function JK(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pf(i){return JK(i).replace(/%3B/gi,";")}function hnA(i){return encodeURI(i)}function _b(i){return JK(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yf(i){return decodeURIComponent(i)}function MK(i){return yf(i.replace(/\+/g,"%20"))}function YK(i){return`${_b(i.path)}${EnA(i.parameters)}`}function EnA(i){return Object.entries(i).map(([e,A])=>`;${_b(e)}=${_b(A)}`).join("")}function QnA(i){let e=Object.entries(i).map(([A,t])=>Array.isArray(t)?t.map(n=>`${pf(A)}=${pf(n)}`).join("&"):`${pf(A)}=${pf(t)}`).filter(A=>A);return e.length?`?${e.join("&")}`:""}var unA=/^[^\/()?;#]+/;function Db(i){let e=i.match(unA);return e?e[0]:""}var pnA=/^[^\/()?;=#]+/;function fnA(i){let e=i.match(pnA);return e?e[0]:""}var mnA=/^[^=?&#]+/;function wnA(i){let e=i.match(mnA);return e?e[0]:""}var ynA=/^[^&#]+/;function DnA(i){let e=i.match(ynA);return e?e[0]:""}var xb=class{url;remaining;constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new yo([],{}):new yo([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(e=0){if(e>50)throw new Nt(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let A=[];for(this.peekStartsWith("(")||A.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),A.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0,e));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1,e)),(A.length>0||Object.keys(t).length>0)&&(n[Yi]=new yo(A,t)),n}parseSegment(){let e=Db(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new Nt(4009,!1);return this.capture(e),new t2(yf(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let A=fnA(this.remaining);if(!A)return;this.capture(A);let t="";if(this.consumeOptional("=")){let n=Db(this.remaining);n&&(t=n,this.capture(t))}e[yf(A)]=yf(t)}parseQueryParam(e){let A=wnA(this.remaining);if(!A)return;this.capture(A);let t="";if(this.consumeOptional("=")){let a=DnA(this.remaining);a&&(t=a,this.capture(t))}let n=MK(A),o=MK(t);if(e.hasOwnProperty(n)){let a=e[n];Array.isArray(a)||(a=[a],e[n]=a),a.push(o)}else e[n]=o}parseParens(e,A){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Db(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new Nt(4010,!1);let a;n.indexOf(":")>-1?(a=n.slice(0,n.indexOf(":")),this.capture(a),this.capture(":")):e&&(a=Yi);let r=this.parseChildren(A+1);t[a??Yi]=Object.keys(r).length===1&&r[Yi]?r[Yi]:new yo([],r),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new Nt(4011,!1)}};function HK(i){return i.segments.length>0?new yo([],{[Yi]:i}):i}function zK(i){let e={};for(let[t,n]of Object.entries(i.children)){let o=zK(n);if(t===Yi&&o.segments.length===0&&o.hasChildren())for(let[a,r]of Object.entries(o.children))e[a]=r;else(o.segments.length>0||o.hasChildren())&&(e[t]=o)}let A=new yo(i.segments,e);return vnA(A)}function vnA(i){if(i.numberOfChildren===1&&i.children[Yi]){let e=i.children[Yi];return new yo(i.segments.concat(e.segments),e.children)}return i}function tB(i){return i instanceof Xl}function PK(i,e,A=null,t=null,n=new z0){let o=jK(i);return VK(o,e,A,t,n)}function jK(i){let e;function A(o){let a={};for(let s of o.children){let l=A(s);a[s.outlet]=l}let r=new yo(o.url,a);return o===i&&(e=r),r}let t=A(i.root),n=HK(t);return e??n}function VK(i,e,A,t,n){let o=i;for(;o.parent;)o=o.parent;if(e.length===0)return vb(o,o,o,A,t,n);let a=bnA(e);if(a.toRoot())return vb(o,o,new yo([],{}),A,t,n);let r=MnA(a,o,i),s=r.processChildren?TQ(r.segmentGroup,r.index,a.commands):WK(r.segmentGroup,r.index,a.commands);return vb(o,r.segmentGroup,s,A,t,n)}function vf(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function JQ(i){return typeof i=="object"&&i!=null&&i.outlets}function SK(i,e,A){i||="\u0275";let t=new Xl;return t.queryParams={[i]:e},A.parse(A.serialize(t)).queryParams[i]}function vb(i,e,A,t,n,o){let a={};for(let[l,g]of Object.entries(t??{}))a[l]=Array.isArray(g)?g.map(C=>SK(l,C,o)):SK(l,g,o);let r;i===e?r=A:r=qK(i,e,A);let s=HK(zK(r));return new Xl(s,a,n)}function qK(i,e,A){let t={};return Object.entries(i.children).forEach(([n,o])=>{o===e?t[n]=A:t[n]=qK(o,e,A)}),new yo(i.segments,t)}var bf=class{isAbsolute;numberOfDoubleDots;commands;constructor(e,A,t){if(this.isAbsolute=e,this.numberOfDoubleDots=A,this.commands=t,e&&t.length>0&&vf(t[0]))throw new Nt(4003,!1);let n=t.find(JQ);if(n&&n!==lnA(t))throw new Nt(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function bnA(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new bf(!0,0,i);let e=0,A=!1,t=i.reduce((n,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let r={};return Object.entries(o.outlets).forEach(([s,l])=>{r[s]=typeof l=="string"?l.split("/"):l}),[...n,{outlets:r}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:a===0?(o.split("/").forEach((r,s)=>{s==0&&r==="."||(s==0&&r===""?A=!0:r===".."?e++:r!=""&&n.push(r))}),n):[...n,o]},[]);return new bf(A,e,t)}var $I=class{segmentGroup;processChildren;index;constructor(e,A,t){this.segmentGroup=e,this.processChildren=A,this.index=t}};function MnA(i,e,A){if(i.isAbsolute)return new $I(e,!0,0);if(!A)return new $I(e,!1,NaN);if(A.parent===null)return new $I(A,!0,0);let t=vf(i.commands[0])?0:1,n=A.segments.length-1+t;return SnA(A,n,i.numberOfDoubleDots)}function SnA(i,e,A){let t=i,n=e,o=A;for(;o>n;){if(o-=n,t=t.parent,!t)throw new Nt(4005,!1);n=t.segments.length}return new $I(t,!1,n-o)}function knA(i){return JQ(i[0])?i[0].outlets:{[Yi]:i}}function WK(i,e,A){if(i??=new yo([],{}),i.segments.length===0&&i.hasChildren())return TQ(i,e,A);let t=_nA(i,e,A),n=A.slice(t.commandIndex);if(t.match&&t.pathIndex<i.segments.length){let o=new yo(i.segments.slice(0,t.pathIndex),{});return o.children[Yi]=new yo(i.segments.slice(t.pathIndex),i.children),TQ(o,0,n)}else return t.match&&n.length===0?new yo(i.segments,{}):t.match&&!i.hasChildren()?Rb(i,e,A):t.match?TQ(i,0,n):Rb(i,e,A)}function TQ(i,e,A){if(A.length===0)return new yo(i.segments,{});{let t=knA(A),n={};if(Object.keys(t).some(o=>o!==Yi)&&i.children[Yi]&&i.numberOfChildren===1&&i.children[Yi].segments.length===0){let o=TQ(i.children[Yi],e,A);return new yo(i.segments,o.children)}return Object.entries(t).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(n[o]=WK(i.children[o],e,a))}),Object.entries(i.children).forEach(([o,a])=>{t[o]===void 0&&(n[o]=a)}),new yo(i.segments,n)}}function _nA(i,e,A){let t=0,n=e,o={match:!1,pathIndex:0,commandIndex:0};for(;n<i.segments.length;){if(t>=A.length)return o;let a=i.segments[n],r=A[t];if(JQ(r))break;let s=`${r}`,l=t<A.length-1?A[t+1]:null;if(n>0&&s===void 0)break;if(s&&l&&typeof l=="object"&&l.outlets===void 0){if(!_K(s,l,a))return o;t+=2}else{if(!_K(s,{},a))return o;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function Rb(i,e,A){let t=i.segments.slice(0,e),n=0;for(;n<A.length;){let o=A[n];if(JQ(o)){let s=xnA(o.outlets);return new yo(t,s)}if(n===0&&vf(A[0])){let s=i.segments[e];t.push(new t2(s.path,kK(A[0]))),n++;continue}let a=JQ(o)?o.outlets[Yi]:`${o}`,r=n<A.length-1?A[n+1]:null;a&&r&&vf(r)?(t.push(new t2(a,kK(r))),n+=2):(t.push(new t2(a,{})),n++)}return new yo(t,{})}function xnA(i){let e={};return Object.entries(i).forEach(([A,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(e[A]=Rb(new yo([],{}),0,t))}),e}function kK(i){let e={};return Object.entries(i).forEach(([A,t])=>e[A]=`${t}`),e}function _K(i,e,A){return i==A.path&&zc(e,A.parameters)}var AB="imperative",ur=(function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i})(ur||{}),Sl=class{id;url;constructor(e,A){this.id=e,this.url=A}},i2=class extends Sl{type=ur.NavigationStart;navigationTrigger;restoredState;constructor(e,A,t="imperative",n=null){super(e,A),this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Jg=class extends Sl{urlAfterRedirects;type=ur.NavigationEnd;constructor(e,A,t){super(e,A),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ds=(function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i[i.Aborted=4]="Aborted",i})(ds||{}),iB=(function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i})(iB||{}),Zl=class extends Sl{reason;code;type=ur.NavigationCancel;constructor(e,A,t,n){super(e,A),this.reason=t,this.code=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function ZK(i){return i instanceof Zl&&(i.code===ds.Redirect||i.code===ds.SupersededByNewNavigation)}var jc=class extends Sl{reason;code;type=ur.NavigationSkipped;constructor(e,A,t,n){super(e,A),this.reason=t,this.code=n}},$1=class extends Sl{error;target;type=ur.NavigationError;constructor(e,A,t,n){super(e,A),this.error=t,this.target=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},YQ=class extends Sl{urlAfterRedirects;state;type=ur.RoutesRecognized;constructor(e,A,t,n){super(e,A),this.urlAfterRedirects=t,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mf=class extends Sl{urlAfterRedirects;state;type=ur.GuardsCheckStart;constructor(e,A,t,n){super(e,A),this.urlAfterRedirects=t,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sf=class extends Sl{urlAfterRedirects;state;shouldActivate;type=ur.GuardsCheckEnd;constructor(e,A,t,n,o){super(e,A),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},kf=class extends Sl{urlAfterRedirects;state;type=ur.ResolveStart;constructor(e,A,t,n){super(e,A),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_f=class extends Sl{urlAfterRedirects;state;type=ur.ResolveEnd;constructor(e,A,t,n){super(e,A),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xf=class{route;type=ur.RouteConfigLoadStart;constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rf=class{route;type=ur.RouteConfigLoadEnd;constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Nf=class{snapshot;type=ur.ChildActivationStart;constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ff=class{snapshot;type=ur.ChildActivationEnd;constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lf=class{snapshot;type=ur.ActivationStart;constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gf=class{snapshot;type=ur.ActivationEnd;constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nB=class{routerEvent;position;anchor;scrollBehavior;type=ur.Scroll;constructor(e,A,t,n){this.routerEvent=e,this.position=A,this.anchor=t,this.scrollBehavior=n}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},oB=class{},HQ=class{},aB=class{url;navigationBehaviorOptions;constructor(e,A){this.url=e,this.navigationBehaviorOptions=A}};function RnA(i){return!(i instanceof oB)&&!(i instanceof aB)&&!(i instanceof HQ)}var Kf=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(e){this.rootInjector=e,this.children=new td(this.rootInjector)}},td=(()=>{class i{rootInjector;contexts=new Map;constructor(A){this.rootInjector=A}onChildOutletCreated(A,t){let n=this.getOrCreateContext(A);n.outlet=t,this.contexts.set(A,n)}onChildOutletDestroyed(A){let t=this.getContext(A);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let A=this.contexts;return this.contexts=new Map,A}onOutletReAttached(A){this.contexts=A}getOrCreateContext(A){let t=this.getContext(A);return t||(t=new Kf(this.rootInjector),this.contexts.set(A,t)),t}getContext(A){return this.contexts.get(A)||null}static \u0275fac=function(t){return new(t||i)(Wo(Hr))};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Uf=class{_root;constructor(e){this._root=e}get root(){return this._root.value}parent(e){let A=this.pathFromRoot(e);return A.length>1?A[A.length-2]:null}children(e){let A=Nb(e,this._root);return A?A.children.map(t=>t.value):[]}firstChild(e){let A=Nb(e,this._root);return A&&A.children.length>0?A.children[0].value:null}siblings(e){let A=Fb(e,this._root);return A.length<2?[]:A[A.length-2].children.map(n=>n.value).filter(n=>n!==e)}pathFromRoot(e){return Fb(e,this._root).map(A=>A.value)}};function Nb(i,e){if(i===e.value)return e;for(let A of e.children){let t=Nb(i,A);if(t)return t}return null}function Fb(i,e){if(i===e.value)return[e];for(let A of e.children){let t=Fb(i,A);if(t.length)return t.unshift(e),t}return[]}var Ml=class{value;children;constructor(e,A){this.value=e,this.children=A}toString(){return`TreeNode(${this.value})`}};function XI(i){let e={};return i&&i.children.forEach(A=>e[A.value.outlet]=A),e}var zQ=class extends Uf{snapshot;constructor(e,A){super(e),this.snapshot=A,Hb(this,e)}toString(){return this.snapshot.toString()}};function XK(i,e){let A=NnA(i,e),t=new gi([new t2("",{})]),n=new gi({}),o=new gi({}),a=new gi({}),r=new gi(""),s=new $s(t,n,a,r,o,Yi,i,A.root);return s.snapshot=A.root,new zQ(new Ml(s,[]),A)}function NnA(i,e){let A={},t={},n={},a=new rB([],A,n,"",t,Yi,i,null,{},e);return new PQ("",new Ml(a,[]))}var $s=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(e,A,t,n,o,a,r,s){this.urlSubject=e,this.paramsSubject=A,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=o,this.outlet=a,this.component=r,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(Se(l=>l[qQ]))??oe(void 0),this.url=e,this.params=A,this.queryParams=t,this.fragment=n,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(Se(e=>X1(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Se(e=>X1(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Yb(i,e,A="emptyOnly"){let t,{routeConfig:n}=i;return e!==null&&(A==="always"||n?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:P(P({},e.params),i.params),data:P(P({},e.data),i.data),resolve:P(P(P(P({},i.data),e.data),n?.data),i._resolvedData)}:t={params:P({},i.params),data:P({},i.data),resolve:P(P({},i.data),i._resolvedData??{})},n&&AU(n)&&(t.resolve[qQ]=n.title),t}var rB=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[qQ]}constructor(e,A,t,n,o,a,r,s,l,g){this.url=e,this.params=A,this.queryParams=t,this.fragment=n,this.data=o,this.outlet=a,this.component=r,this.routeConfig=s,this._resolve=l,this._environmentInjector=g}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??=X1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=X1(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),A=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${A}')`}},PQ=class extends Uf{url;constructor(e,A){super(A),this.url=e,Hb(this,A)}toString(){return $K(this._root)}};function Hb(i,e){e.value._routerState=i,e.children.forEach(A=>Hb(i,A))}function $K(i){let e=i.children.length>0?` { ${i.children.map($K).join(", ")} } `:"";return`${i.value}${e}`}function bb(i){if(i.snapshot){let e=i.snapshot,A=i._futureSnapshot;i.snapshot=A,zc(e.queryParams,A.queryParams)||i.queryParamsSubject.next(A.queryParams),e.fragment!==A.fragment&&i.fragmentSubject.next(A.fragment),zc(e.params,A.params)||i.paramsSubject.next(A.params),snA(e.url,A.url)||i.urlSubject.next(A.url),zc(e.data,A.data)||i.dataSubject.next(A.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function Lb(i,e){let A=zc(i.params,e.params)&&dnA(i.url,e.url),t=!i.parent!=!e.parent;return A&&!t&&(!i.parent||Lb(i.parent,e.parent))}function AU(i){return typeof i.title=="string"||i.title===null}var eU=new MA(""),zb=(()=>{class i{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Yi;activateEvents=new FA;deactivateEvents=new FA;attachEvents=new FA;detachEvents=new FA;routerOutletData=ve();parentContexts=w(td);location=w(Jo);changeDetector=w(Mt);inputBinder=w(WQ,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(A){if(A.name){let{firstChange:t,previousValue:n}=A.name;if(t)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(A){return this.parentContexts.getContext(A)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let A=this.parentContexts.getContext(this.name);A?.route&&(A.attachRef?this.attach(A.attachRef,A.route):this.activateWith(A.route,A.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Nt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Nt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Nt(4012,!1);this.location.detach();let A=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(A.instance),A}attach(A,t){this.activated=A,this._activatedRoute=t,this.location.insert(A.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(A.instance)}deactivate(){if(this.activated){let A=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(A)}}activateWith(A,t){if(this.isActivated)throw new Nt(4013,!1);this._activatedRoute=A;let n=this.location,a=A.snapshot.component,r=this.parentContexts.getOrCreateContext(this.name).children,s=new Gb(A,r,n.injector,this.routerOutletData);this.activated=n.createComponent(a,{index:n.length,injector:s,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=VA({type:i,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ii]})}return i})(),Gb=class{route;childContexts;parent;outletData;constructor(e,A,t,n){this.route=e,this.childContexts=A,this.parent=t,this.outletData=n}get(e,A){return e===$s?this.route:e===td?this.childContexts:e===eU?this.outletData:this.parent.get(e,A)}},WQ=new MA(""),Pb=(()=>{class i{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(A){this.unsubscribeFromRouteData(A),this.subscribeToRouteData(A)}unsubscribeFromRouteData(A){this.outletDataSubscriptions.get(A)?.unsubscribe(),this.outletDataSubscriptions.delete(A)}subscribeToRouteData(A){let{activatedRoute:t}=A,n=Dr([t.queryParams,t.params,t.data]).pipe(Mi(([o,a,r],s)=>(r=P(P(P({},o),a),r),s===0?oe(r):Promise.resolve(r)))).subscribe(o=>{if(!A.isActivated||!A.activatedComponentRef||A.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(A);return}let a=UN(t.component);if(!a){this.unsubscribeFromRouteData(A);return}for(let{templateName:r}of a.inputs)A.activatedComponentRef.setInput(r,o[r])});this.outletDataSubscriptions.set(A,n)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac})}return i})(),jb=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=vA({type:i,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,n){t&1&&lA(0,"router-outlet")},dependencies:[zb],encapsulation:2})}return i})();function Vb(i){let e=i.children&&i.children.map(Vb),A=e?$A(P({},i),{children:e}):P({},i);return!A.component&&!A.loadComponent&&(e||A.loadChildren)&&A.outlet&&A.outlet!==Yi&&(A.component=jb),A}function FnA(i,e,A){let t=jQ(i,e._root,A?A._root:void 0);return new zQ(t,e)}function jQ(i,e,A){if(A&&i.shouldReuseRoute(e.value,A.value.snapshot)){let t=A.value;t._futureSnapshot=e.value;let n=LnA(i,e,A);return new Ml(t,n)}else{if(i.shouldAttach(e.value)){let o=i.retrieve(e.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(r=>jQ(i,r)),a}}let t=GnA(e.value),n=e.children.map(o=>jQ(i,o));return new Ml(t,n)}}function LnA(i,e,A){return e.children.map(t=>{for(let n of A.children)if(i.shouldReuseRoute(t.value,n.value.snapshot))return jQ(i,t,n);return jQ(i,t)})}function GnA(i){return new $s(new gi(i.url),new gi(i.params),new gi(i.queryParams),new gi(i.fragment),new gi(i.data),i.outlet,i.component,i)}var sB=class{redirectTo;navigationBehaviorOptions;constructor(e,A){this.redirectTo=e,this.navigationBehaviorOptions=A}},tU="ngNavigationCancelingError";function Tf(i,e){let{redirectTo:A,navigationBehaviorOptions:t}=tB(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,n=iU(!1,ds.Redirect);return n.url=A,n.navigationBehaviorOptions=t,n}function iU(i,e){let A=new Error(`NavigationCancelingError: ${i||""}`);return A[tU]=!0,A.cancellationCode=e,A}function KnA(i){return nU(i)&&tB(i.url)}function nU(i){return!!i&&i[tU]}var Kb=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(e,A,t,n,o){this.routeReuseStrategy=e,this.futureState=A,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=o}activate(e){let A=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(A,t,e),bb(this.futureState.root),this.activateChildRoutes(A,t,e)}deactivateChildRoutes(e,A,t){let n=XI(A);e.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,n[a],t),delete n[a]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(e,A,t){let n=e.value,o=A?A.value:null;if(n===o)if(n.component){let a=t.getContext(n.outlet);a&&this.deactivateChildRoutes(e,A,a.children)}else this.deactivateChildRoutes(e,A,t);else o&&this.deactivateRouteAndItsChildren(A,t)}deactivateRouteAndItsChildren(e,A){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,A):this.deactivateRouteAndOutlet(e,A)}detachAndStoreRouteSubtree(e,A){let t=A.getContext(e.value.outlet),n=t&&e.value.component?t.children:A,o=XI(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);if(t&&t.outlet){let a=t.outlet.detach(),r=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:r})}}deactivateRouteAndOutlet(e,A){let t=A.getContext(e.value.outlet),n=t&&e.value.component?t.children:A,o=XI(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,A,t){let n=XI(A);e.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],t),this.forwardEvent(new Gf(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Ff(e.value.snapshot))}activateRoutes(e,A,t){let n=e.value,o=A?A.value:null;if(bb(n),n===o)if(n.component){let a=t.getOrCreateContext(n.outlet);this.activateChildRoutes(e,A,a.children)}else this.activateChildRoutes(e,A,t);else if(n.component){let a=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let r=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),a.children.onOutletReAttached(r.contexts),a.attachRef=r.componentRef,a.route=r.route.value,a.outlet&&a.outlet.attach(r.componentRef,r.route.value),bb(r.route.value),this.activateChildRoutes(e,null,a.children)}else a.attachRef=null,a.route=n,a.outlet&&a.outlet.activateWith(n,a.injector),this.activateChildRoutes(e,null,a.children)}else this.activateChildRoutes(e,null,t)}},Of=class{path;route;constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},eB=class{component;route;constructor(e,A){this.component=e,this.route=A}};function UnA(i,e,A){let t=i._root,n=e?e._root:null;return UQ(t,n,A,[t.value])}function TnA(i){let e=i.routeConfig?i.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:i,guards:e}}function gB(i,e){let A=Symbol(),t=e.get(i,A);return t===A?typeof i=="function"&&!fN(i)?i:e.get(i):t}function UQ(i,e,A,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=XI(e);return i.children.forEach(a=>{OnA(a,o[a.value.outlet],A,t.concat([a.value]),n),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,r])=>OQ(r,A.getContext(a),n)),n}function OnA(i,e,A,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,a=e?e.value:null,r=A?A.getContext(i.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=JnA(a,o,o.routeConfig.runGuardsAndResolvers);s?n.canActivateChecks.push(new Of(t)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?UQ(i,e,r?r.children:null,t,n):UQ(i,e,A,t,n),s&&r&&r.outlet&&r.outlet.isActivated&&n.canDeactivateChecks.push(new eB(r.outlet.component,a))}else a&&OQ(e,r,n),n.canActivateChecks.push(new Of(t)),o.component?UQ(i,null,r?r.children:null,t,n):UQ(i,null,A,t,n);return n}function JnA(i,e,A){if(typeof A=="function")return vr(e._environmentInjector,()=>A(i,e));switch(A){case"pathParamsChange":return!Z1(i.url,e.url);case"pathParamsOrQueryParamsChange":return!Z1(i.url,e.url)||!zc(i.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Lb(i,e)||!zc(i.queryParams,e.queryParams);default:return!Lb(i,e)}}function OQ(i,e,A){let t=XI(i),n=i.value;Object.entries(t).forEach(([o,a])=>{n.component?e?OQ(a,e.children.getContext(o),A):OQ(a,null,A):OQ(a,e,A)}),n.component?e&&e.outlet&&e.outlet.isActivated?A.canDeactivateChecks.push(new eB(e.outlet.component,n)):A.canDeactivateChecks.push(new eB(null,n)):A.canDeactivateChecks.push(new eB(null,n))}function ZQ(i){return typeof i=="function"}function YnA(i){return typeof i=="boolean"}function HnA(i){return i&&ZQ(i.canLoad)}function znA(i){return i&&ZQ(i.canActivate)}function PnA(i){return i&&ZQ(i.canActivateChild)}function jnA(i){return i&&ZQ(i.canDeactivate)}function VnA(i){return i&&ZQ(i.canMatch)}function oU(i){return i instanceof hN||i?.name==="EmptyError"}var ff=Symbol("INITIAL_VALUE");function lB(){return Mi(i=>Dr(i.map(e=>e.pipe(Ro(1),Yn(ff)))).pipe(Se(e=>{for(let A of e)if(A!==!0){if(A===ff)return ff;if(A===!1||qnA(A))return A}return!0}),Bt(e=>e!==ff),Ro(1)))}function qnA(i){return tB(i)||i instanceof sB}function aU(i){return i.aborted?oe(void 0).pipe(Ro(1)):new Fi(e=>{let A=()=>{e.next(),e.complete()};return i.addEventListener("abort",A),()=>i.removeEventListener("abort",A)})}function rU(i){return yt(aU(i))}function WnA(i){return xc(e=>{let{targetSnapshot:A,currentSnapshot:t,guards:{canActivateChecks:n,canDeactivateChecks:o}}=e;return o.length===0&&n.length===0?oe($A(P({},e),{guardsResult:!0})):ZnA(o,A,t).pipe(xc(a=>a&&YnA(a)?XnA(A,n,i):oe(a)),Se(a=>$A(P({},e),{guardsResult:a})))})}function ZnA(i,e,A){return Yr(i).pipe(xc(t=>ioA(t.component,t.route,A,e)),oo(t=>t!==!0,!0))}function XnA(i,e,A){return Yr(e).pipe(VE(t=>Xp(AoA(t.route.parent,A),$nA(t.route,A),toA(i,t.path),eoA(i,t.route))),oo(t=>t!==!0,!0))}function $nA(i,e){return i!==null&&e&&e(new Lf(i)),oe(!0)}function AoA(i,e){return i!==null&&e&&e(new Nf(i)),oe(!0)}function eoA(i,e){let A=e.routeConfig?e.routeConfig.canActivate:null;if(!A||A.length===0)return oe(!0);let t=A.map(n=>Rc(()=>{let o=e._environmentInjector,a=gB(n,o),r=znA(a)?a.canActivate(e,i):vr(o,()=>a(e,i));return Ad(r).pipe(oo())}));return oe(t).pipe(lB())}function toA(i,e){let A=e[e.length-1],n=e.slice(0,e.length-1).reverse().map(o=>TnA(o)).filter(o=>o!==null).map(o=>Rc(()=>{let a=o.guards.map(r=>{let s=o.node._environmentInjector,l=gB(r,s),g=PnA(l)?l.canActivateChild(A,i):vr(s,()=>l(A,i));return Ad(g).pipe(oo())});return oe(a).pipe(lB())}));return oe(n).pipe(lB())}function ioA(i,e,A,t){let n=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!n||n.length===0)return oe(!0);let o=n.map(a=>{let r=e._environmentInjector,s=gB(a,r),l=jnA(s)?s.canDeactivate(i,e,A,t):vr(r,()=>s(i,e,A,t));return Ad(l).pipe(oo())});return oe(o).pipe(lB())}function noA(i,e,A,t,n){let o=e.canLoad;if(o===void 0||o.length===0)return oe(!0);let a=o.map(r=>{let s=gB(r,i),l=HnA(s)?s.canLoad(e,A):vr(i,()=>s(e,A)),g=Ad(l);return n?g.pipe(rU(n)):g});return oe(a).pipe(lB(),sU(t))}function sU(i){return dN(mi(e=>{if(typeof e!="boolean")throw Tf(i,e)}),Se(e=>e===!0))}function ooA(i,e,A,t,n,o){let a=e.canMatch;if(!a||a.length===0)return oe(!0);let r=a.map(s=>{let l=gB(s,i),g=VnA(l)?l.canMatch(e,A,n):vr(i,()=>l(e,A,n));return Ad(g).pipe(rU(o))});return oe(r).pipe(lB(),sU(t))}var H0=class i extends Error{segmentGroup;constructor(e){super(),this.segmentGroup=e||null,Object.setPrototypeOf(this,i.prototype)}},VQ=class i extends Error{urlTree;constructor(e){super(),this.urlTree=e,Object.setPrototypeOf(this,i.prototype)}};function aoA(i){throw new Nt(4e3,!1)}function roA(i){throw iU(!1,ds.GuardRejected)}var Ub=class{urlSerializer;urlTree;constructor(e,A){this.urlSerializer=e,this.urlTree=A}lineralizeSegments(e,A){return re(this,null,function*(){let t=[],n=A.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return t;if(n.numberOfChildren>1||!n.children[Yi])throw aoA(`${e.redirectTo}`);n=n.children[Yi]}})}applyRedirectCommands(e,A,t,n,o){return re(this,null,function*(){let a=yield soA(A,n,o);if(a instanceof Xl)throw new VQ(a);let r=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),e,t);if(a[0]==="/")throw new VQ(r);return r})}applyRedirectCreateUrlTree(e,A,t,n){let o=this.createSegmentGroup(e,A.root,t,n);return new Xl(o,this.createQueryParams(A.queryParams,this.urlTree.queryParams),A.fragment)}createQueryParams(e,A){let t={};return Object.entries(e).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let r=o.substring(1);t[n]=A[r]}else t[n]=o}),t}createSegmentGroup(e,A,t,n){let o=this.createSegments(e,A.segments,t,n),a={};return Object.entries(A.children).forEach(([r,s])=>{a[r]=this.createSegmentGroup(e,s,t,n)}),new yo(o,a)}createSegments(e,A,t,n){return A.map(o=>o.path[0]===":"?this.findPosParam(e,o,n):this.findOrReturn(o,t))}findPosParam(e,A,t){let n=t[A.path.substring(1)];if(!n)throw new Nt(4001,!1);return n}findOrReturn(e,A){let t=0;for(let n of A){if(n.path===e.path)return A.splice(t),n;t++}return e}};function soA(i,e,A){if(typeof i=="string")return Promise.resolve(i);let t=i;return Df(Ad(vr(A,()=>t(e))))}function loA(i,e){return i.providers&&!i._injector&&(i._injector=a3(i.providers,e,`Route: ${i.path}`)),i._injector??e}function Pc(i){return i.outlet||Yi}function goA(i,e){let A=i.filter(t=>Pc(t)===e);return A.push(...i.filter(t=>Pc(t)!==e)),A}var Tb={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function lU(i){return{routeConfig:i.routeConfig,url:i.url,params:i.params,queryParams:i.queryParams,fragment:i.fragment,data:i.data,outlet:i.outlet,title:i.title,paramMap:i.paramMap,queryParamMap:i.queryParamMap}}function coA(i,e,A,t,n,o,a){let r=gU(i,e,A);if(!r.matched)return oe(r);let s=lU(o(r));return t=loA(e,t),ooA(t,e,A,n,s,a).pipe(Se(l=>l===!0?r:P({},Tb)))}function gU(i,e,A){if(e.path==="")return e.pathMatch==="full"&&(i.hasChildren()||A.length>0)?P({},Tb):{matched:!0,consumedSegments:[],remainingSegments:A,parameters:{},positionalParamSegments:{}};let n=(e.matcher||NK)(A,i,e);if(!n)return P({},Tb);let o={};Object.entries(n.posParams??{}).forEach(([r,s])=>{o[r]=s.path});let a=n.consumed.length>0?P(P({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:A.slice(n.consumed.length),parameters:a,positionalParamSegments:n.posParams??{}}}function xK(i,e,A,t){return A.length>0&&IoA(i,A,t)?{segmentGroup:new yo(e,doA(t,new yo(A,i.children))),slicedSegments:[]}:A.length===0&&BoA(i,A,t)?{segmentGroup:new yo(i.segments,CoA(i,A,t,i.children)),slicedSegments:A}:{segmentGroup:new yo(i.segments,i.children),slicedSegments:A}}function CoA(i,e,A,t){let n={};for(let o of A)if(Yf(i,e,o)&&!t[Pc(o)]){let a=new yo([],{});n[Pc(o)]=a}return P(P({},t),n)}function doA(i,e){let A={};A[Yi]=e;for(let t of i)if(t.path===""&&Pc(t)!==Yi){let n=new yo([],{});A[Pc(t)]=n}return A}function IoA(i,e,A){return A.some(t=>Yf(i,e,t)&&Pc(t)!==Yi)}function BoA(i,e,A){return A.some(t=>Yf(i,e,t))}function Yf(i,e,A){return(i.hasChildren()||e.length>0)&&A.pathMatch==="full"?!1:A.path===""}function hoA(i,e,A){return e.length===0&&!i.children[A]}var Ob=class{};function EoA(i,e,A,t,n,o,a="emptyOnly",r){return re(this,null,function*(){return new Jb(i,e,A,t,n,a,o,r).recognize()})}var QoA=31,Jb=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(e,A,t,n,o,a,r,s){this.injector=e,this.configLoader=A,this.rootComponentType=t,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=r,this.abortSignal=s,this.applyRedirects=new Ub(this.urlSerializer,this.urlTree)}noMatchError(e){return new Nt(4002,`'${e.segmentGroup}'`)}recognize(){return re(this,null,function*(){let e=xK(this.urlTree.root,[],[],this.config).segmentGroup,{children:A,rootSnapshot:t}=yield this.match(e),n=new Ml(t,A),o=new PQ("",n),a=PK(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(e){return re(this,null,function*(){let A=new rB([],Object.freeze({}),Object.freeze(P({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Yi,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,e,Yi,A),rootSnapshot:A}}catch(t){if(t instanceof VQ)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof H0?this.noMatchError(t):t}})}processSegmentGroup(e,A,t,n,o){return re(this,null,function*(){if(t.segments.length===0&&t.hasChildren())return this.processChildren(e,A,t,o);let a=yield this.processSegment(e,A,t,t.segments,n,!0,o);return a instanceof Ml?[a]:[]})}processChildren(e,A,t,n){return re(this,null,function*(){let o=[];for(let s of Object.keys(t.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let l=t.children[s],g=goA(A,s),C=yield this.processSegmentGroup(e,g,l,s,n);a.push(...C)}let r=cU(a);return uoA(r),r})}processSegment(e,A,t,n,o,a,r){return re(this,null,function*(){for(let s of A)try{return yield this.processSegmentAgainstRoute(s._injector??e,A,s,t,n,o,a,r)}catch(l){if(l instanceof H0||oU(l))continue;throw l}if(hoA(t,n,o))return new Ob;throw new H0(t)})}processSegmentAgainstRoute(e,A,t,n,o,a,r,s){return re(this,null,function*(){if(Pc(t)!==a&&(a===Yi||!Yf(n,o,t)))throw new H0(n);if(t.redirectTo===void 0)return this.matchSegmentAgainstRoute(e,n,t,o,a,s);if(this.allowRedirects&&r)return this.expandSegmentAgainstRouteUsingRedirect(e,n,A,t,o,a,s);throw new H0(n)})}expandSegmentAgainstRouteUsingRedirect(e,A,t,n,o,a,r){return re(this,null,function*(){let{matched:s,parameters:l,consumedSegments:g,positionalParamSegments:C,remainingSegments:d}=gU(A,n,o);if(!s)throw new H0(A);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>QoA&&(this.allowRedirects=!1));let B=this.createSnapshot(e,n,o,l,r);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let u=yield this.applyRedirects.applyRedirectCommands(g,n.redirectTo,C,lU(B),e),E=yield this.applyRedirects.lineralizeSegments(n,u);return this.processSegment(e,t,A,E.concat(d),a,!1,r)})}createSnapshot(e,A,t,n,o){let a=new rB(t,n,Object.freeze(P({},this.urlTree.queryParams)),this.urlTree.fragment,foA(A),Pc(A),A.component??A._loadedComponent??null,A,moA(A),e),r=Yb(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(r.params),a.data=Object.freeze(r.data),a}matchSegmentAgainstRoute(e,A,t,n,o,a){return re(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let r=S=>this.createSnapshot(e,t,S.consumedSegments,S.parameters,a),s=yield Df(coA(A,t,n,e,this.urlSerializer,r,this.abortSignal));if(t.path==="**"&&(A.children={}),!s?.matched)throw new H0(A);e=t._injector??e;let{routes:l}=yield this.getChildConfig(e,t,n),g=t._loadedInjector??e,{parameters:C,consumedSegments:d,remainingSegments:B}=s,u=this.createSnapshot(e,t,d,C,a),{segmentGroup:E,slicedSegments:f}=xK(A,d,B,l);if(f.length===0&&E.hasChildren()){let S=yield this.processChildren(g,l,E,u);return new Ml(u,S)}if(l.length===0&&f.length===0)return new Ml(u,[]);let m=Pc(t)===o,v=yield this.processSegment(g,l,E,f,m?Yi:o,!0,u);return new Ml(u,v instanceof Ml?[v]:[])})}getChildConfig(e,A,t){return re(this,null,function*(){if(A.children)return{routes:A.children,injector:e};if(A.loadChildren){if(A._loadedRoutes!==void 0){let o=A._loadedNgModuleFactory;return o&&!A._loadedInjector&&(A._loadedInjector=o.create(e).injector),{routes:A._loadedRoutes,injector:A._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Df(noA(e,A,t,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(e,A);return A._loadedRoutes=o.routes,A._loadedInjector=o.injector,A._loadedNgModuleFactory=o.factory,o}throw roA(A)}return{routes:[],injector:e}})}};function uoA(i){i.sort((e,A)=>e.value.outlet===Yi?-1:A.value.outlet===Yi?1:e.value.outlet.localeCompare(A.value.outlet))}function poA(i){let e=i.value.routeConfig;return e&&e.path===""}function cU(i){let e=[],A=new Set;for(let t of i){if(!poA(t)){e.push(t);continue}let n=e.find(o=>t.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...t.children),A.add(n)):e.push(t)}for(let t of A){let n=cU(t.children);e.push(new Ml(t.value,n))}return e.filter(t=>!A.has(t))}function foA(i){return i.data||{}}function moA(i){return i.resolve||{}}function woA(i,e,A,t,n,o,a){return xc(r=>re(null,null,function*(){let{state:s,tree:l}=yield EoA(i,e,A,t,r.extractedUrl,n,o,a);return $A(P({},r),{targetSnapshot:s,urlAfterRedirects:l})}))}function yoA(i){return xc(e=>{let{targetSnapshot:A,guards:{canActivateChecks:t}}=e;if(!t.length)return oe(e);let n=new Set(t.map(r=>r.route)),o=new Set;for(let r of n)if(!o.has(r))for(let s of CU(r))o.add(s);let a=0;return Yr(o).pipe(VE(r=>n.has(r)?DoA(r,A,i):(r.data=Yb(r,r.parent,i).resolve,oe(void 0))),mi(()=>a++),FD(1),xc(r=>a===o.size?oe(e):Br))})}function CU(i){let e=i.children.map(A=>CU(A)).flat();return[i,...e]}function DoA(i,e,A){let t=i.routeConfig,n=i._resolve;return t?.title!==void 0&&!AU(t)&&(n[qQ]=t.title),Rc(()=>(i.data=Yb(i,i.parent,A).resolve,voA(n,i,e).pipe(Se(o=>(i._resolvedData=o,i.data=P(P({},i.data),o),null)))))}function voA(i,e,A){let t=Sb(i);if(t.length===0)return oe({});let n={};return Yr(t).pipe(xc(o=>boA(i[o],e,A).pipe(oo(),mi(a=>{if(a instanceof sB)throw Tf(new z0,a);n[o]=a}))),FD(1),Se(()=>n),aa(o=>oU(o)?Br:Wp(o)))}function boA(i,e,A){let t=e._environmentInjector,n=gB(i,t),o=n.resolve?n.resolve(e,A):vr(t,()=>n(e,A));return Ad(o)}function RK(i){return Mi(e=>{let A=i(e);return A?Yr(A).pipe(Se(()=>e)):oe(e)})}var qb=(()=>{class i{buildTitle(A){let t,n=A.root;for(;n!==void 0;)t=this.getResolvedTitleForRoute(n)??t,n=n.children.find(o=>o.outlet===Yi);return t}getResolvedTitleForRoute(A){return A.data[qQ]}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:()=>w(dU),providedIn:"root"})}return i})(),dU=(()=>{class i extends qb{title;constructor(A){super(),this.title=A}updateTitle(A){let t=this.buildTitle(A);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||i)(Wo(qN))};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),id=new MA("",{factory:()=>({})}),cB=new MA(""),Hf=(()=>{class i{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=w(xN);loadComponent(A,t){return re(this,null,function*(){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Promise.resolve(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=re(this,null,function*(){try{let o=yield LK(vr(A,()=>t.loadComponent())),a=yield hU(BU(o));return this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a,a}finally{this.componentLoaders.delete(t)}});return this.componentLoaders.set(t,n),n})}loadChildren(A,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return Promise.resolve({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let n=re(this,null,function*(){try{let o=yield IU(t,this.compiler,A,this.onLoadEndListener);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(t)}});return this.childrenLoaders.set(t,n),n}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function IU(i,e,A,t){return re(this,null,function*(){let n=yield LK(vr(A,()=>i.loadChildren())),o=yield hU(BU(n)),a;o instanceof bN||Array.isArray(o)?a=o:a=yield e.compileModuleAsync(o),t&&t(i);let r,s,l=!1,g;return Array.isArray(a)?(s=a,l=!0):(r=a.create(A).injector,g=a,s=r.get(cB,[],{optional:!0,self:!0}).flat()),{routes:s.map(Vb),injector:r,factory:g}})}function MoA(i){return i&&typeof i=="object"&&"default"in i}function BU(i){return MoA(i)?i.default:i}function hU(i){return re(this,null,function*(){return i})}var zf=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:()=>w(SoA),providedIn:"root"})}return i})(),SoA=(()=>{class i{shouldProcessUrl(A){return!0}extract(A){return A}merge(A,t){return A}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Wb=new MA(""),Zb=new MA("");function EU(i,e,A){let t=i.get(Zb),n=i.get(ci);if(!n.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,a=new Promise(l=>{o=l}),r=n.startViewTransition(()=>(o(),koA(i)));r.updateCallbackDone.catch(l=>{}),r.ready.catch(l=>{}),r.finished.catch(l=>{});let{onViewTransitionCreated:s}=t;return s&&vr(i,()=>s({transition:r,from:e,to:A})),a}function koA(i){return new Promise(e=>{ao({read:()=>setTimeout(e)},{injector:i})})}var _oA=()=>{},Xb=new MA(""),Pf=(()=>{class i{currentNavigation=mA(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=mA(null);events=new ne;transitionAbortWithErrorSubject=new ne;configLoader=w(Hf);environmentInjector=w(Hr);destroyRef=w(Er);urlSerializer=w(ed);rootContexts=w(td);location=w(Gc);inputBindingEnabled=w(WQ,{optional:!0})!==null;titleStrategy=w(qb);options=w(id,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=w(zf);createViewTransition=w(Wb,{optional:!0});navigationErrorHandler=w(Xb,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>oe(void 0);rootComponentType=null;destroyed=!1;constructor(){let A=n=>this.events.next(new xf(n)),t=n=>this.events.next(new Rf(n));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=A,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(A){let t=++this.navigationId;wa(()=>{this.transitions?.next($A(P({},A),{extractedUrl:this.urlHandlingStrategy.extract(A.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:t,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(A){return this.transitions=new gi(null),this.transitions.pipe(Bt(t=>t!==null),Mi(t=>{let n=!1,o=new AbortController,a=()=>!n&&this.currentTransition?.id===t.id;return oe(t).pipe(Mi(r=>{if(this.navigationId>t.id)return this.cancelNavigationTransition(t,"",ds.SupersededByNewNavigation),Br;this.currentTransition=t;let s=this.lastSuccessfulNavigation();this.currentNavigation.set({id:r.id,initialUrl:r.rawUrl,extractedUrl:r.extractedUrl,targetBrowserUrl:typeof r.extras.browserUrl=="string"?this.urlSerializer.parse(r.extras.browserUrl):r.extras.browserUrl,trigger:r.source,extras:r.extras,previousNavigation:s?$A(P({},s),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:r.routesRecognizeHandler,beforeActivateHandler:r.beforeActivateHandler});let l=!A.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),g=r.extras.onSameUrlNavigation??A.onSameUrlNavigation;if(!l&&g!=="reload")return this.events.next(new jc(r.id,this.urlSerializer.serialize(r.rawUrl),"",iB.IgnoredSameUrlNavigation)),r.resolve(!1),Br;if(this.urlHandlingStrategy.shouldProcessUrl(r.rawUrl))return oe(r).pipe(Mi(C=>(this.events.next(new i2(C.id,this.urlSerializer.serialize(C.extractedUrl),C.source,C.restoredState)),C.id!==this.navigationId?Br:Promise.resolve(C))),woA(this.environmentInjector,this.configLoader,this.rootComponentType,A.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),mi(C=>{t.targetSnapshot=C.targetSnapshot,t.urlAfterRedirects=C.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=C.urlAfterRedirects,d)),this.events.next(new HQ)}),Mi(C=>Yr(t.routesRecognizeHandler.deferredHandle??oe(void 0)).pipe(Se(()=>C))),mi(()=>{let C=new YQ(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(C)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(r.currentRawUrl)){let{id:C,extractedUrl:d,source:B,restoredState:u,extras:E}=r,f=new i2(C,this.urlSerializer.serialize(d),B,u);this.events.next(f);let m=XK(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=t=$A(P({},r),{targetSnapshot:m,urlAfterRedirects:d,extras:$A(P({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(v=>(v.finalUrl=d,v)),oe(t)}else return this.events.next(new jc(r.id,this.urlSerializer.serialize(r.extractedUrl),"",iB.IgnoredByUrlHandlingStrategy)),r.resolve(!1),Br}),Se(r=>{let s=new Mf(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);return this.events.next(s),this.currentTransition=t=$A(P({},r),{guards:UnA(r.targetSnapshot,r.currentSnapshot,this.rootContexts)}),t}),WnA(r=>this.events.next(r)),Mi(r=>{if(t.guardsResult=r.guardsResult,r.guardsResult&&typeof r.guardsResult!="boolean")throw Tf(this.urlSerializer,r.guardsResult);let s=new Sf(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot,!!r.guardsResult);if(this.events.next(s),!a())return Br;if(!r.guardsResult)return this.cancelNavigationTransition(r,"",ds.GuardRejected),Br;if(r.guards.canActivateChecks.length===0)return oe(r);let l=new kf(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);if(this.events.next(l),!a())return Br;let g=!1;return oe(r).pipe(yoA(this.paramsInheritanceStrategy),mi({next:()=>{g=!0;let C=new _f(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(C)},complete:()=>{g||this.cancelNavigationTransition(r,"",ds.NoDataFromResolver)}}))}),RK(r=>{let s=g=>{let C=[];if(g.routeConfig?._loadedComponent)g.component=g.routeConfig?._loadedComponent;else if(g.routeConfig?.loadComponent){let d=g._environmentInjector;C.push(this.configLoader.loadComponent(d,g.routeConfig).then(B=>{g.component=B}))}for(let d of g.children)C.push(...s(d));return C},l=s(r.targetSnapshot.root);return l.length===0?oe(r):Yr(Promise.all(l).then(()=>r))}),RK(()=>this.afterPreactivation()),Mi(()=>{let{currentSnapshot:r,targetSnapshot:s}=t,l=this.createViewTransition?.(this.environmentInjector,r.root,s.root);return l?Yr(l).pipe(Se(()=>t)):oe(t)}),Ro(1),Mi(r=>{let s=FnA(A.routeReuseStrategy,r.targetSnapshot,r.currentRouterState);this.currentTransition=t=r=$A(P({},r),{targetRouterState:s}),this.currentNavigation.update(g=>(g.targetRouterState=s,g)),this.events.next(new oB);let l=t.beforeActivateHandler.deferredHandle;return l?Yr(l.then(()=>r)):oe(r)}),mi(r=>{new Kb(A.routeReuseStrategy,t.targetRouterState,t.currentRouterState,s=>this.events.next(s),this.inputBindingEnabled).activate(this.rootContexts),a()&&(n=!0,this.currentNavigation.update(s=>(s.abort=_oA,s)),this.lastSuccessfulNavigation.set(wa(this.currentNavigation)),this.events.next(new Jg(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects))),this.titleStrategy?.updateTitle(r.targetRouterState.snapshot),r.resolve(!0))}),yt(aU(o.signal).pipe(Bt(()=>!n&&!t.targetRouterState),mi(()=>{this.cancelNavigationTransition(t,o.signal.reason+"",ds.Aborted)}))),mi({complete:()=>{n=!0}}),yt(this.transitionAbortWithErrorSubject.pipe(mi(r=>{throw r}))),A3(()=>{o.abort(),n||this.cancelNavigationTransition(t,"",ds.SupersededByNewNavigation),this.currentTransition?.id===t.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),aa(r=>{if(n=!0,this.destroyed)return t.resolve(!1),Br;if(nU(r))this.events.next(new Zl(t.id,this.urlSerializer.serialize(t.extractedUrl),r.message,r.cancellationCode)),KnA(r)?this.events.next(new aB(r.url,r.navigationBehaviorOptions)):t.resolve(!1);else{let s=new $1(t.id,this.urlSerializer.serialize(t.extractedUrl),r,t.targetSnapshot??void 0);try{let l=vr(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(l instanceof sB){let{message:g,cancellationCode:C}=Tf(this.urlSerializer,l);this.events.next(new Zl(t.id,this.urlSerializer.serialize(t.extractedUrl),g,C)),this.events.next(new aB(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(s),r}catch(l){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(l)}}return Br}))}))}cancelNavigationTransition(A,t,n){let o=new Zl(A.id,this.urlSerializer.serialize(A.extractedUrl),t,n);this.events.next(o),A.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let A=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=wa(this.currentNavigation),n=t?.targetBrowserUrl??t?.extractedUrl;return A.toString()!==n?.toString()&&!t?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function xoA(i){return i!==AB}var QU=new MA("");var uU=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:()=>w(RoA),providedIn:"root"})}return i})(),Jf=class{shouldDetach(e){return!1}store(e,A){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,A){return e.routeConfig===A.routeConfig}shouldDestroyInjector(e){return!0}},RoA=(()=>{class i extends Jf{static \u0275fac=(()=>{let A;return function(n){return(A||(A=Li(i)))(n||i)}})();static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),$b=(()=>{class i{urlSerializer=w(ed);options=w(id,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=w(Gc);urlHandlingStrategy=w(zf);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Xl;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:A,initialUrl:t,targetBrowserUrl:n}){let o=A!==void 0?this.urlHandlingStrategy.merge(A,t):t,a=n??o;return a instanceof Xl?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:A,finalUrl:t,initialUrl:n}){t&&A?(this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(t,n),this.routerState=A):this.rawUrlTree=n}routerState=XK(null,w(Hr));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:()=>w(NoA),providedIn:"root"})}return i})(),NoA=(()=>{class i extends $b{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(A){return this.location.subscribe(t=>{t.type==="popstate"&&setTimeout(()=>{A(t.url,t.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(A,t){A instanceof i2?this.updateStateMemento():A instanceof jc?this.commitTransition(t):A instanceof YQ?this.urlUpdateStrategy==="eager"&&(t.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(t),t)):A instanceof oB?(this.commitTransition(t),this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(t),t)):A instanceof Zl&&!ZK(A)?this.restoreHistory(t):A instanceof $1?this.restoreHistory(t,!0):A instanceof Jg&&(this.lastSuccessfulId=A.id,this.currentPageId=this.browserPageId)}setBrowserUrl(A,{extras:t,id:n}){let{replaceUrl:o,state:a}=t;if(this.location.isCurrentPathEqualTo(A)||o){let r=this.browserPageId,s=P(P({},a),this.generateNgRouterState(n,r));this.location.replaceState(A,"",s)}else{let r=P(P({},a),this.generateNgRouterState(n,this.browserPageId+1));this.location.go(A,"",r)}}restoreHistory(A,t=!1){if(this.canceledNavigationResolution==="computed"){let n=this.browserPageId,o=this.currentPageId-n;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===A.finalUrl&&o===0&&(this.resetInternalState(A),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetInternalState(A),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:A}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,A??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(A,t){return this.canceledNavigationResolution==="computed"?{navigationId:A,\u0275routerPageId:t}:{navigationId:A}}static \u0275fac=(()=>{let A;return function(n){return(A||(A=Li(i)))(n||i)}})();static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function jf(i,e){i.events.pipe(Bt(A=>A instanceof Jg||A instanceof Zl||A instanceof $1||A instanceof jc),Se(A=>A instanceof Jg||A instanceof jc?0:(A instanceof Zl?A.code===ds.Redirect||A.code===ds.SupersededByNewNavigation:!1)?2:1),Bt(A=>A!==2),Ro(1)).subscribe(()=>{e()})}var Is=(()=>{class i{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=w(MN);stateManager=w($b);options=w(id,{optional:!0})||{};pendingTasks=w(yN);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=w(Pf);urlSerializer=w(ed);location=w(Gc);urlHandlingStrategy=w(zf);injector=w(Hr);_events=new ne;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=w(uU);injectorCleanup=w(QU,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=w(cB,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!w(WQ,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:A=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Oo;subscribeToNavigationEvents(){let A=this.navigationTransitions.events.subscribe(t=>{try{let n=this.navigationTransitions.currentTransition,o=wa(this.navigationTransitions.currentNavigation);if(n!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof Zl&&t.code!==ds.Redirect&&t.code!==ds.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof Jg)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(t instanceof aB){let a=t.navigationBehaviorOptions,r=this.urlHandlingStrategy.merge(t.url,n.currentRawUrl),s=P({scroll:n.extras.scroll,browserUrl:n.extras.browserUrl,info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||this.urlUpdateStrategy==="eager"||xoA(n.source)},a);this.scheduleNavigation(r,AB,null,s,{resolve:n.resolve,reject:n.reject,promise:n.promise})}}RnA(t)&&this._events.next(t)}catch(n){this.navigationTransitions.transitionAbortWithErrorSubject.next(n)}});this.eventsSubscription.add(A)}resetRootComponentType(A){this.routerState.root.component=A,this.navigationTransitions.rootComponentType=A}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),AB,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((A,t,n,o)=>{this.navigateToSyncWithBrowser(A,n,t,o)})}navigateToSyncWithBrowser(A,t,n,o){let a=n?.navigationId?n:null;if(n){let s=P({},n);delete s.navigationId,delete s.\u0275routerPageId,Object.keys(s).length!==0&&(o.state=s)}let r=this.parseUrl(A);this.scheduleNavigation(r,t,a,o).catch(s=>{this.disposed||this.injector.get(LD)(s)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return wa(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(A){this.config=A.map(Vb),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(A,t={}){let{relativeTo:n,queryParams:o,fragment:a,queryParamsHandling:r,preserveFragment:s}=t,l=s?this.currentUrlTree.fragment:a,g=null;switch(r??this.options.defaultQueryParamsHandling){case"merge":g=P(P({},this.currentUrlTree.queryParams),o);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=o||null}g!==null&&(g=this.removeEmptyProps(g));let C;try{let d=n?n.snapshot:this.routerState.snapshot.root;C=jK(d)}catch(d){(typeof A[0]!="string"||A[0][0]!=="/")&&(A=[]),C=this.currentUrlTree.root}return VK(C,A,g,l??null,this.urlSerializer)}navigateByUrl(A,t={skipLocationChange:!1}){let n=tB(A)?A:this.parseUrl(A),o=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(o,AB,null,t)}navigate(A,t={skipLocationChange:!1}){return FoA(A),this.navigateByUrl(this.createUrlTree(A,t),t)}serializeUrl(A){return this.urlSerializer.serialize(A)}parseUrl(A){try{return this.urlSerializer.parse(A)}catch(t){return this.console.warn(pN(4018,!1)),this.urlSerializer.parse("/")}}isActive(A,t){let n;if(t===!0?n=P({},KK):t===!1?n=P({},kb):n=P(P({},kb),t),tB(A))return bK(this.currentUrlTree,A,n);let o=this.parseUrl(A);return bK(this.currentUrlTree,o,n)}removeEmptyProps(A){return Object.entries(A).reduce((t,[n,o])=>(o!=null&&(t[n]=o),t),{})}scheduleNavigation(A,t,n,o,a){if(this.disposed)return Promise.resolve(!1);let r,s,l;a?(r=a.resolve,s=a.reject,l=a.promise):l=new Promise((C,d)=>{r=C,s=d});let g=this.pendingTasks.add();return jf(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(g))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:A,extras:o,resolve:r,reject:s,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(Promise.reject.bind(Promise))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function FoA(i){for(let e=0;e<i.length;e++)if(i[e]==null)throw new Nt(4008,!1)}var XQ=class{};var pU=(()=>{class i{router;injector;preloadingStrategy;loader;subscription;constructor(A,t,n,o){this.router=A,this.injector=t,this.preloadingStrategy=n,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Bt(A=>A instanceof Jg),VE(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(A,t){let n=[];for(let o of t){o.providers&&!o._injector&&(o._injector=a3(o.providers,A,""));let a=o._injector??A;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let r=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&n.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&n.push(this.processRoutes(r,o.children??o._loadedRoutes))}return Yr(n).pipe(ND())}preloadConfig(A,t){return this.preloadingStrategy.preload(t,()=>{if(A.destroyed)return oe(null);let n;t.loadChildren&&t.canLoad===void 0?n=Yr(this.loader.loadChildren(A,t)):n=oe(null);let o=n.pipe(xc(a=>a===null?oe(void 0):(t._loadedRoutes=a.routes,t._loadedInjector=a.injector,t._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??A,a.routes))));if(t.loadComponent&&!t._loadedComponent){let a=this.loader.loadComponent(A,t);return Yr([o,a]).pipe(ND())}else return o})}static \u0275fac=function(t){return new(t||i)(Wo(Is),Wo(Hr),Wo(XQ),Wo(Hf))};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),fU=new MA(""),GoA=(()=>{class i{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=AB;restoredId=0;store={};urlSerializer=w(ed);zone=w(We);viewportScroller=w(JD);transitions=w(Pf);constructor(A){this.options=A,this.options.scrollPositionRestoration||="disabled",this.options.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(A=>{A instanceof i2?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=A.navigationTrigger,this.restoredId=A.restoredState?A.restoredState.navigationId:0):A instanceof Jg?(this.lastId=A.id,this.scheduleScrollEvent(A,this.urlSerializer.parse(A.urlAfterRedirects).fragment)):A instanceof jc&&A.code===iB.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(A,this.urlSerializer.parse(A.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(A=>{if(!(A instanceof nB)||A.scrollBehavior==="manual")return;let t={behavior:"instant"};A.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],t):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(A.position,t):A.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(A.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(A,t){let n=wa(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>re(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new nB(A,this.lastSource==="popstate"?this.store[this.restoredId]:null,t,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(t){o3()};static \u0275prov=jA({token:i,factory:i.\u0275fac})}return i})();function KoA(){return w(Is).routerState.root}function $Q(i,e){return{\u0275kind:i,\u0275providers:e}}function UoA(){let i=w(St);return e=>{let A=i.get(F0);if(e!==A.components[0])return;let t=i.get(Is),n=i.get(mU);i.get(e7)===1&&t.initialNavigation(),i.get(DU,null,{optional:!0})?.setUpPreloading(),i.get(fU,null,{optional:!0})?.init(),t.resetRootComponentType(A.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var mU=new MA("",{factory:()=>new ne}),e7=new MA("",{factory:()=>1});function wU(){let i=[{provide:vN,useValue:!0},{provide:e7,useValue:0},UD(()=>{let e=w(St);return e.get(TN,Promise.resolve()).then(()=>new Promise(t=>{let n=e.get(Is),o=e.get(mU);jf(n,()=>{t(!0)}),e.get(Pf).afterPreactivation=()=>(t(!0),o.closed?oe(void 0):o),n.initialNavigation()}))})];return $Q(2,i)}function yU(){let i=[UD(()=>{w(Is).setUpLocationChangeListener()}),{provide:e7,useValue:2}];return $Q(3,i)}var DU=new MA("");function vU(i){return $Q(0,[{provide:DU,useExisting:pU},{provide:XQ,useExisting:i}])}function bU(){return $Q(8,[Pb,{provide:WQ,useExisting:Pb}])}function MU(i){n3("NgRouterViewTransitions");let e=[{provide:Wb,useValue:EU},{provide:Zb,useValue:P({skipNextTransition:!!i?.skipInitialTransition},i)}];return $Q(9,e)}var SU=[Gc,{provide:ed,useClass:z0},Is,td,{provide:$s,useFactory:KoA},Hf,[]],Vf=(()=>{class i{constructor(){}static forRoot(A,t){return{ngModule:i,providers:[SU,[],{provide:cB,multi:!0,useValue:A},[],t?.errorHandler?{provide:Xb,useValue:t.errorHandler}:[],{provide:id,useValue:t||{}},t?.useHash?OoA():JoA(),ToA(),t?.preloadingStrategy?vU(t.preloadingStrategy).\u0275providers:[],t?.initialNavigation?YoA(t):[],t?.bindToComponentInputs?bU().\u0275providers:[],t?.enableViewTransitions?MU().\u0275providers:[],HoA()]}}static forChild(A){return{ngModule:i,providers:[{provide:cB,multi:!0,useValue:A}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=et({type:i});static \u0275inj=At({})}return i})();function ToA(){return{provide:fU,useFactory:()=>{let i=w(JD),e=w(id);return e.scrollOffset&&i.setOffset(e.scrollOffset),new GoA(e)}}}function OoA(){return{provide:OD,useClass:JN}}function JoA(){return{provide:OD,useClass:ON}}function YoA(i){return[i.initialNavigation==="disabled"?yU().\u0275providers:[],i.initialNavigation==="enabledBlocking"?wU().\u0275providers:[]]}var A7=new MA("");function HoA(){return[{provide:A7,useFactory:UoA},{provide:SN,multi:!0,useExisting:A7}]}var joA=["*"];var VoA=new MA("MAT_CARD_CONFIG"),qf=(()=>{class i{appearance;constructor(){let A=w(VoA,{optional:!0});this.appearance=A?.appearance||"raised"}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=vA({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(t,n){t&2&&_A("mat-mdc-card-outlined",n.appearance==="outlined")("mdc-card--outlined",n.appearance==="outlined")("mat-mdc-card-filled",n.appearance==="filled")("mdc-card--filled",n.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:joA,decls:1,vars:0,template:function(t,n){t&1&&(Ot(),Ze(0))},styles:[`.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end} |