@duplicati/ngclient 0.0.28 → 0.0.30

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.
Files changed (77) hide show
  1. package/assets/spk.woff2 +0 -0
  2. package/{chunk-LUAN4O53.js → chunk-2E5G54LG.js} +1 -1
  3. package/{chunk-6TFXXYVK.js → chunk-2VFGTKQ3.js} +1 -1
  4. package/chunk-3TOIJ5WO.js +2 -0
  5. package/chunk-4MFVXV2P.js +1 -0
  6. package/chunk-53HMBWP5.js +2 -0
  7. package/chunk-6RDPRL5W.js +7 -0
  8. package/{chunk-UMY3Y7LR.js → chunk-7ORKNESW.js} +1 -1
  9. package/{chunk-UPIWGO32.js → chunk-AALCXW7G.js} +1 -1
  10. package/{chunk-5X5UJ7CP.js → chunk-BDZSXP7I.js} +1 -1
  11. package/{chunk-WV3AOW4R.js → chunk-COO43JXP.js} +1 -1
  12. package/{chunk-B7SRENJI.js → chunk-DUQTXUOP.js} +1 -1
  13. package/{chunk-2PUTRWRI.js → chunk-FDJMCHX2.js} +1 -1
  14. package/{chunk-DESW2TCQ.js → chunk-FL23VQIJ.js} +1 -1
  15. package/{chunk-47O5BYLZ.js → chunk-GE6ONX6N.js} +1 -1
  16. package/{chunk-HH2EA6LF.js → chunk-H4PL4MX5.js} +1 -1
  17. package/{chunk-VAAI6C2V.js → chunk-HEQYI7XZ.js} +1 -1
  18. package/chunk-HIVOGYJW.js +1 -0
  19. package/chunk-IDL47L54.js +1 -0
  20. package/chunk-IVCLLJMP.js +1 -0
  21. package/chunk-K3Y54FPO.js +1 -0
  22. package/chunk-LDUHEMHJ.js +1 -0
  23. package/{chunk-ZAREJJZA.js → chunk-M6JAWID7.js} +1 -1
  24. package/chunk-MACZO675.js +1 -0
  25. package/{chunk-GAJ43GZE.js → chunk-MULBVD44.js} +1 -1
  26. package/{chunk-AIQQJSGP.js → chunk-N3IZHBC5.js} +1 -1
  27. package/{chunk-RMZR2OAY.js → chunk-NJIDVAUK.js} +1 -1
  28. package/{chunk-GBWXFIBZ.js → chunk-NKKY2IML.js} +1 -1
  29. package/{chunk-MFLGWG77.js → chunk-OL3XQXPO.js} +1 -1
  30. package/chunk-OOBDPKP5.js +1 -0
  31. package/{chunk-TLFDZKKI.js → chunk-PT7ISA6M.js} +1 -1
  32. package/chunk-PV7FMVA7.js +1 -0
  33. package/{chunk-BVTTY2FQ.js → chunk-QAOE722P.js} +1 -1
  34. package/chunk-QLL2CMCZ.js +1 -0
  35. package/{chunk-2SYB6ABM.js → chunk-QXWUZ7QN.js} +1 -1
  36. package/{chunk-C5O62M3L.js → chunk-R4XFPOM7.js} +1 -1
  37. package/{chunk-3EBWYIH7.js → chunk-RB7TVPQZ.js} +1 -1
  38. package/{chunk-BR45PK72.js → chunk-RENJEXE5.js} +1 -1
  39. package/{chunk-4Y76KESB.js → chunk-RFOUEAO7.js} +1 -1
  40. package/{chunk-YDJZQ6GS.js → chunk-SLC2RVWO.js} +1 -1
  41. package/{chunk-57W6Z6XZ.js → chunk-TTHH64Z5.js} +1 -1
  42. package/chunk-UROUYC5A.js +1 -0
  43. package/chunk-V2FTYSCJ.js +1 -0
  44. package/{chunk-PD6257G7.js → chunk-VN5Y4LY2.js} +1 -1
  45. package/{chunk-ZVT4YXH5.js → chunk-WFFR6X5F.js} +1 -1
  46. package/{chunk-L7M2MTRL.js → chunk-WMMDCNQV.js} +1 -1
  47. package/{chunk-4SJ35CHE.js → chunk-X7IF472Q.js} +1 -1
  48. package/chunk-XYLW6QJG.js +1 -0
  49. package/{chunk-T6ENXWPD.js → chunk-Y33NQYRN.js} +1 -1
  50. package/chunk-YBKFPTAU.js +1 -0
  51. package/chunk-ZJNMXPO2.js +1 -0
  52. package/index.html +3 -3
  53. package/locale/messages.de-DE.json +11 -0
  54. package/locale/messages.fr-FR.json +11 -0
  55. package/locale/messages.json +11 -0
  56. package/main-RUKECFB7.js +2 -0
  57. package/package.json +1 -1
  58. package/polyfills-DUGKNACR.js +1 -0
  59. package/styles-CLP6NP2M.css +1 -0
  60. package/chunk-C4S5PKAB.js +0 -1
  61. package/chunk-CGWELGPM.js +0 -1
  62. package/chunk-DOGZZDWG.js +0 -1
  63. package/chunk-EPVXOSHI.js +0 -1
  64. package/chunk-FAAAWY76.js +0 -1
  65. package/chunk-MHCUWVA2.js +0 -1
  66. package/chunk-P7LAQN3J.js +0 -1
  67. package/chunk-QL753AWG.js +0 -1
  68. package/chunk-QNP3LI3Y.js +0 -1
  69. package/chunk-RJDP2FPE.js +0 -7
  70. package/chunk-RONXYSR4.js +0 -1
  71. package/chunk-SDVRKDZS.js +0 -1
  72. package/chunk-UGZKHGQT.js +0 -1
  73. package/chunk-UVZO552H.js +0 -1
  74. package/chunk-VJACGH6X.js +0 -1
  75. package/chunk-ZAVS5NW7.js +0 -1
  76. package/main-YA4MEBAC.js +0 -1
  77. package/styles-QLKBXZ7T.css +0 -1
@@ -1,2 +1,2 @@
1
- import{Ga as ue,X as he,e as de}from"./chunk-DESW2TCQ.js";import{E as ne,L as re,O as te,R as O,U as N,W as w,X as m,_ as se,aa as oe,ba as ie,d as S,k as Q,l as X,la as ae,na as ce,p as x,w as H,wa as le,z as ee}from"./chunk-RJDP2FPE.js";import{a as Z}from"./chunk-7CGTOI24.js";var F=class{},L=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
1
+ import{Ga as ue,X as he,e as de}from"./chunk-FL23VQIJ.js";import{E as ne,L as re,O as te,R as O,U as N,W as w,X as m,_ as se,aa as oe,ba as ie,d as S,k as Q,l as X,la as ae,na as ce,p as x,w as H,wa as le,z as ee}from"./chunk-6RDPRL5W.js";import{a as Z}from"./chunk-7CGTOI24.js";var F=class{},L=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
2
2
  `).forEach(n=>{let t=n.indexOf(":");if(t>0){let s=n.slice(0,t),i=n.slice(t+1).trim();this.addHeaderEntry(s,i)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,t)=>{this.addHeaderEntry(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new r;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,n);let s=(e.op==="a"?this.headers.get(n):void 0)||[];s.push(...t),this.headers.set(n,s);break;case"d":let i=e.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(d=>i.indexOf(d)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}break}}addHeaderEntry(e,n){let t=e.toLowerCase();this.maybeSetNormalizedName(e,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}setHeaderEntries(e,n){let t=(Array.isArray(n)?n:[n]).map(i=>i.toString()),s=e.toLowerCase();this.headers.set(s,t),this.maybeSetNormalizedName(e,s)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var C=class{encodeKey(e){return fe(e)}encodeValue(e){return fe(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Re(r,e){let n=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let i=s.indexOf("="),[o,d]=i==-1?[e.decodeKey(s),""]:[e.decodeKey(s.slice(0,i)),e.decodeValue(s.slice(i+1))],a=n.get(o)||[];a.push(d),n.set(o,a)}),n}var Pe=/%(\d[a-f0-9])/gi,Ne={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function fe(r){return encodeURIComponent(r).replace(Pe,(e,n)=>Ne[n]??e)}function _(r){return`${r}`}var v=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new C,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Re(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let t=e.fromObject[n],s=Array.isArray(t)?t.map(_):[_(t)];this.map.set(n,s)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(t=>{let s=e[t];Array.isArray(s)?s.forEach(i=>{n.push({param:t,value:i,op:"a"})}):n.push({param:t,value:s,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new r({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(_(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],s=t.indexOf(_(e.value));s!==-1&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var V=class{map=new Map;set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Ae(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function pe(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function ye(r){return typeof Blob<"u"&&r instanceof Blob}function me(r){return typeof FormData<"u"&&r instanceof FormData}function Oe(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var k=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,n,t,s){this.url=n,this.method=e.toUpperCase();let i;if(Ae(this.method)||s?(this.body=t!==void 0?t:null,i=s):i=t,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new g,this.context??=new V,!this.params)this.params=new v,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let d=n.indexOf("?"),a=d===-1?"?":d<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||pe(this.body)||ye(this.body)||me(this.body)||Oe(this.body)?this.body:this.body instanceof v?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||me(this.body)?null:ye(this.body)?this.body.type||null:pe(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof v?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let n=e.method||this.method,t=e.url||this.url,s=e.responseType||this.responseType,i=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,d=e.withCredentials??this.withCredentials,a=e.reportProgress??this.reportProgress,f=e.headers||this.headers,p=e.params||this.params,y=e.context??this.context;return e.setHeaders!==void 0&&(f=Object.keys(e.setHeaders).reduce((R,h)=>R.set(h,e.setHeaders[h]),f)),e.setParams&&(p=Object.keys(e.setParams).reduce((R,h)=>R.set(h,e.setParams[h]),p)),new r(n,t,o,{params:p,headers:f,context:y,reportProgress:a,responseType:s,withCredentials:d,transferCache:i})}},b=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(b||{}),j=class{headers;status;statusText;url;ok;type;constructor(e,n=200,t="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},B=class r extends j{constructor(e={}){super(e)}type=b.ResponseHeader;clone(e={}){return new r({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},U=class r extends j{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=b.Response;clone(e={}){return new r({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},E=class extends j{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Ee=200,Ie=204;function J(r,e){return{body:e,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var Me=(()=>{class r{handler;constructor(n){this.handler=n}request(n,t,s={}){let i;if(n instanceof k)i=n;else{let a;s.headers instanceof g?a=s.headers:a=new g(s.headers);let f;s.params&&(s.params instanceof v?f=s.params:f=new v({fromObject:s.params})),i=new k(n,t,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:f,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let o=X(i).pipe(ee(a=>this.handler.handle(a)));if(n instanceof k||s.observe==="events")return o;let d=o.pipe(H(a=>a instanceof U));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return d.pipe(x(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return d.pipe(x(a=>a.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,t={}){return this.request("DELETE",n,t)}get(n,t={}){return this.request("GET",n,t)}head(n,t={}){return this.request("HEAD",n,t)}jsonp(n,t){return this.request("JSONP",n,{params:new v().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,t={}){return this.request("OPTIONS",n,t)}patch(n,t,s={}){return this.request("PATCH",n,J(s,t))}post(n,t,s={}){return this.request("POST",n,J(s,t))}put(n,t,s={}){return this.request("PUT",n,J(s,t))}static \u0275fac=function(t){return new(t||r)(w(F))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),De=/^\)\]\}',?\n/,xe="X-Request-URL";function ge(r){if(r.url)return r.url;let e=xe.toLocaleLowerCase();return r.headers.get(e)}var $=(()=>{class r{fetchImpl=m(G,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(ce);handle(n){return new S(t=>{let s=new AbortController;return this.doRequest(n,s.signal,t).then(W,i=>t.error(new E({error:i}))),()=>s.abort()})}async doRequest(n,t,s){let i=this.createRequestInit(n),o;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,Z({signal:t},i)));ke(h),s.next({type:b.Sent}),o=await h}catch(h){s.error(new E({error:h,status:h.status??0,statusText:h.statusText,url:n.urlWithParams,headers:h.headers}));return}let d=new g(o.headers),a=o.statusText,f=ge(o)??n.urlWithParams,p=o.status,y=null;if(n.reportProgress&&s.next(new B({headers:d,status:p,statusText:a,url:f})),o.body){let h=o.headers.get("content-length"),I=[],c=o.body.getReader(),l=0,T,A,u=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:P,value:D}=await c.read();if(P)break;if(I.push(D),l+=D.length,n.reportProgress){A=n.responseType==="text"?(A??"")+(T??=new TextDecoder).decode(D,{stream:!0}):void 0;let Y=()=>s.next({type:b.DownloadProgress,total:h?+h:void 0,loaded:l,partialText:A});u?u.run(Y):Y()}}});let M=this.concatChunks(I,l);try{let P=o.headers.get("Content-Type")??"";y=this.parseBody(n,M,P)}catch(P){s.error(new E({error:P,headers:new g(o.headers),status:o.status,statusText:o.statusText,url:ge(o)??n.urlWithParams}));return}}p===0&&(p=y?Ee:0),p>=200&&p<300?(s.next(new U({body:y,headers:d,status:p,statusText:a,url:f})),s.complete()):s.error(new E({error:y,headers:d,status:p,statusText:a,url:f}))}parseBody(n,t,s){switch(n.responseType){case"json":let i=new TextDecoder().decode(t).replace(De,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:s});case"arraybuffer":return t.buffer}}createRequestInit(n){let t={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((i,o)=>t[i]=o.join(",")),n.headers.has("Accept")||(t.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(t["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:t,credentials:s}}concatChunks(n,t){let s=new Uint8Array(t),i=0;for(let o of n)s.set(o,i),i+=o.length;return s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),G=class{};function W(){}function ke(r){r.then(W,W)}function Fe(r,e){return e(r)}function Le(r,e,n){return(t,s)=>ie(n,()=>e(t,i=>r(i,s)))}var K=new N(""),je=new N(""),Ue=new N("",{providedIn:"root",factory:()=>!0});var Te=(()=>{class r extends F{backend;injector;chain=null;pendingTasks=m(ae);contributeToStability=m(Ue);constructor(n,t){super(),this.backend=n,this.injector=t}handle(n){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(K),...this.injector.get(je,[])]));this.chain=t.reduceRight((s,i)=>Le(s,i,this.injector),Fe)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(ne(()=>this.pendingTasks.remove(t)))}else return this.chain(n,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||r)(w(L),w(oe))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();var _e=/^\)\]\}',?\n/;function Be(r){return"responseURL"in r&&r.responseURL?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):null}var we=(()=>{class r{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new te(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?Q(t.\u0275loadImpl()):X(null)).pipe(re(()=>new S(i=>{let o=t.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((c,l)=>o.setRequestHeader(c,l.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let c=n.detectContentTypeHeader();c!==null&&o.setRequestHeader("Content-Type",c)}if(n.responseType){let c=n.responseType.toLowerCase();o.responseType=c!=="json"?c:"text"}let d=n.serializeBody(),a=null,f=()=>{if(a!==null)return a;let c=o.statusText||"OK",l=new g(o.getAllResponseHeaders()),T=Be(o)||n.url;return a=new B({headers:l,status:o.status,statusText:c,url:T}),a},p=()=>{let{headers:c,status:l,statusText:T,url:A}=f(),u=null;l!==Ie&&(u=typeof o.response>"u"?o.responseText:o.response),l===0&&(l=u?Ee:0);let M=l>=200&&l<300;if(n.responseType==="json"&&typeof u=="string"){let P=u;u=u.replace(_e,"");try{u=u!==""?JSON.parse(u):null}catch(D){u=P,M&&(M=!1,u={error:D,text:u})}}M?(i.next(new U({body:u,headers:c,status:l,statusText:T,url:A||void 0})),i.complete()):i.error(new E({error:u,headers:c,status:l,statusText:T,url:A||void 0}))},y=c=>{let{url:l}=f(),T=new E({error:c,status:o.status||0,statusText:o.statusText||"Unknown Error",url:l||void 0});i.error(T)},R=!1,h=c=>{R||(i.next(f()),R=!0);let l={type:b.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),n.responseType==="text"&&o.responseText&&(l.partialText=o.responseText),i.next(l)},I=c=>{let l={type:b.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),i.next(l)};return o.addEventListener("load",p),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),n.reportProgress&&(o.addEventListener("progress",h),d!==null&&o.upload&&o.upload.addEventListener("progress",I)),o.send(d),i.next({type:b.Sent}),()=>{o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",p),o.removeEventListener("timeout",y),n.reportProgress&&(o.removeEventListener("progress",h),d!==null&&o.upload&&o.upload.removeEventListener("progress",I)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(t){return new(t||r)(w(ue))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),ve=new N(""),ze="XSRF-TOKEN",Se=new N("",{providedIn:"root",factory:()=>ze}),Xe="X-XSRF-TOKEN",Je=new N("",{providedIn:"root",factory:()=>Xe}),z=class{},Ce=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,t,s){this.doc=n,this.platform=t,this.cookieName=s}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=he(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(t){return new(t||r)(w(de),w(le),w(Se))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();function Ve(r,e){let n=r.url.toLowerCase();if(!m(ve)||r.method==="GET"||r.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(r);let t=m(z).getToken(),s=m(Je);return t!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,t)})),e(r)}var q=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(q||{});function be(r,e){return{\u0275kind:r,\u0275providers:e}}function pn(...r){let e=[Me,we,Te,{provide:F,useExisting:Te},{provide:L,useFactory:()=>m($,{optional:!0})??m(we)},{provide:K,useValue:Ve,multi:!0},{provide:ve,useValue:!0},{provide:z,useClass:Ce}];for(let n of r)e.push(...n.\u0275providers);return se(e)}function yn(r){return be(q.Interceptors,r.map(e=>({provide:K,useValue:e,multi:!0})))}function mn(){return be(q.Fetch,[$,{provide:L,useExisting:$}])}export{g as a,U as b,Me as c,pn as d,yn as e,mn as f};
@@ -1 +1 @@
1
- import{a as be}from"./chunk-GBWXFIBZ.js";import{a as M,b as Ce}from"./chunk-2PUTRWRI.js";import{b as q}from"./chunk-ZVT4YXH5.js";import{a as me,b as O,d as V,e as E,h as T,i as ce,j as ue,l as P,o as R,p as de,q as fe,r as N,t as I}from"./chunk-6TFXXYVK.js";import{a as w}from"./chunk-BVTTY2FQ.js";import{a as B,g as D,n as ge,o as he,q as Fe,t as Se}from"./chunk-QL753AWG.js";import{H as _,X as C}from"./chunk-PD6257G7.js";import{pa as x}from"./chunk-DESW2TCQ.js";import{Ab as $,B as X,Bb as ie,Cb as oe,Db as ne,Dc as pe,E as G,Eb as o,Fb as n,Gb as m,Hb as h,Ib as F,K as Y,Kb as y,L as Z,Qb as S,R as ee,Ra as c,Rb as W,X as p,Za as d,c as J,cc as r,ea as f,fa as g,fb as k,fc as re,jc as se,l as K,lb as j,oc as le,p as Q,qc as ae,v as U,vb as u,xb as te}from"./chunk-RJDP2FPE.js";function we(l,t){l&1&&m(0,"spk-progress-bar",3)}function Oe(l,t){if(l&1&&(o(0,"option",10),r(1),le(2,"date"),n()),l&2){let e=t.$implicit;u("value",e.Version),c(),re("",e.Version,": ",ae(2,3,e.Time,"d MMM y, h:mm"),"")}}function Ve(l,t){if(l&1&&(o(0,"app-file-tree",11)(1,"label",12),r(2,"Path"),n(),m(3,"input",13),n()),l&2){let e=W(2);u("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ee(l,t){if(l&1&&(o(0,"spk-select",7),m(1,"input",8),h(2,9),oe(3,Oe,3,6,"option",10,ie),F(),n(),j(5,Ve,4,4,"app-file-tree",11)),l&2){let e=W();u("displayFn",e.displayFn()),c(3),ne(e.versionOptions()),c(2),$(e.rootPathLoaded()?5:-1)}}var L=new N,ke=()=>L.group({filesToRestore:L.control(""),selectedOption:L.control(null),passphrase:L.control(null)}),z=class l{#t=p(w);#e=p(b);#i=p(C);#o=p(_);#n=p(x);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;backupSettings=pe(()=>{let t=this.backupId(),e=this.selectFilesFormSignal()?.selectedOption;if(typeof e!="number"||!t)return null;let s=this.versionOptions()?.find(a=>a.Version===e)?.Time??null;return s?{id:t,time:s}:null});rootPathLoaded=d(!1);rootPath=be([this.selectFilesFormSignal,this.backupId],J(Y([null,null]),Z(([t,e])=>{let i=t?.selectedOption,s=e;if(typeof i!="number"||!s)return K("/");let a=this.versionOptions()?.find(A=>A.Version===i);return this.#t.getApiV1BackupByIdFiles({id:s,time:a?.Time??"",prefixOnly:!1,folderContents:!0}).pipe(Q(A=>(this.rootPathLoaded.set(!0),A.Files[0].Path)))})));displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let i=t?.find(s=>s.Version?.toString()===e);return i?`${i.Version}: ${this.#n.transform(i.Time,"d MMM y, h:mm")}`:""}}next(){this.#i.navigate(["options"],{relativeTo:this.#o.parent})}exit(){this.#e.exit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-select-files"]],features:[se([x])],decls:15,vars:2,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn"],["type","number","placeholder","Select an option...","formControlName","selectedOption"],["options",""],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]],template:function(e,i){if(e&1){let s=y();o(0,"form",1,0),S("submit",function(){return f(s),g(i.next())}),o(2,"h3",2),r(3,"Select files"),n(),j(4,we,1,0,"spk-progress-bar",3)(5,Ee,6,2),o(6,"div",4)(7,"button",5),S("click",function(){return f(s),g(i.exit())}),o(8,"spk-icon"),r(9,"arrow-left"),n(),r(10," Exit "),n(),o(11,"button",6)(12,"spk-icon"),r(13,"arrow-right"),n(),r(14," Continue "),n()()()}e&2&&(u("formGroup",i.selectFilesForm),c(4),$(i.versionOptionsLoading()?4:5))},dependencies:[I,T,de,fe,O,ce,V,E,P,R,x,M,D,B,Fe,ge],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var b=class l{#t=p(C);#e=p(w);backupId=d(null);backup=d(null);selectFilesForm=ke();optionsForm=ye();optionsFormSignal=q(this.optionsForm.valueChanges);selectFilesFormSignal=q(this.selectFilesForm.valueChanges);versionOptionsLoading=d(!1);versionOptions=d([]);isSubmitting=d(!1);init(t){this.backupId.set(t),this.#i(t,!0)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,i=this.selectFilesForm.value,s=this.versionOptions()?.find(a=>a.Version===i.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:i.filesToRestore?.split("\0").map(a=>`${a}*`)??[],passphrase:i.passphrase??null,time:s?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(G(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:a=>{console.error("restore error",a)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}#i(t,e=!1){this.versionOptionsLoading.set(!0),U([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t})]).pipe(X(1),G(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([i,s])=>{this.versionOptions.set(s),this.backup.set(i),e&&this.selectFilesForm.controls.selectedOption.setValue(s[0].Version)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||l)};static \u0275prov=ee({token:l,factory:l.\u0275fac,providedIn:"root"})};var v=new N,ye=()=>v.group({restoreFrom:v.control("orignal"),restoreFromPath:v.control(""),handleExisting:v.control("overwrite"),permissions:v.control(!1)}),H=class l{#t=p(b);#e=p(C);#i=p(_);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#i.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-options"]],decls:41,vars:6,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]],template:function(e,i){if(e&1){let s=y();o(0,"form",1,0),S("submit",function(){return f(s),g(i.submit())}),o(2,"h3",2),r(3,"Restore options"),n(),o(4,"app-toggle-card",3),h(5,4),r(6,"Where do you want to restore files from?"),F(),o(7,"spk-radio",5),r(8," Original location "),m(9,"input",6),n(),o(10,"spk-radio",5),r(11," Pick location "),m(12,"input",7),n(),o(13,"app-file-tree",8)(14,"label",9),r(15,"Path"),n(),m(16,"input",10),n()(),o(17,"app-toggle-card",3),h(18,4),r(19,"How do you want to handle existing files?"),F(),o(20,"spk-radio",5),r(21," Overwrite "),m(22,"input",11),n(),o(23,"spk-radio",5),r(24," Save different versions with timestamp in file name "),m(25,"input",12),n()(),o(26,"app-toggle-card"),h(27,4),r(28,"Permissions"),F(),o(29,"spk-toggle",13),r(30," Restore read/write permissions "),m(31,"input",14),n()(),o(32,"div",15)(33,"button",16),S("click",function(){return f(s),g(i.goBack())}),o(34,"spk-icon"),r(35,"arrow-left"),n(),r(36," Go back "),n(),o(37,"button",17)(38,"spk-icon"),r(39,"arrow-right"),n(),r(40," Submit "),n()()()}if(e&2){let s;u("formGroup",i.optionsForm),c(4),u("disallowToggle",!0),c(9),u("disabled",((s=i.optionsFormSignal())==null?null:s.restoreFrom)!=="pickLocation"),c(4),u("disallowToggle",!0),c(20),te("loader",i.isSubmitting())}},dependencies:[I,T,O,me,ue,V,E,P,R,Ce,M,Se,he,D,B],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{ye as a,H as b,ke as c,z as d,b as e};
1
+ import{a as be}from"./chunk-NKKY2IML.js";import{a as M,b as Ce}from"./chunk-FDJMCHX2.js";import{b as q}from"./chunk-WFFR6X5F.js";import{a as me,b as O,d as V,e as E,h as T,i as ce,j as ue,l as P,o as R,p as de,q as fe,r as N,t as I}from"./chunk-2VFGTKQ3.js";import{a as w}from"./chunk-QAOE722P.js";import{a as B,g as D,n as ge,o as he,q as Fe,v as Se}from"./chunk-K3Y54FPO.js";import{H as _,X as C}from"./chunk-VN5Y4LY2.js";import{pa as x}from"./chunk-FL23VQIJ.js";import{Ab as $,B as X,Bb as ie,Cb as oe,Db as ne,E as G,Eb as o,Fb as n,Gb as m,Hb as h,Hc as pe,Ib as F,K as Y,Kb as y,L as Z,R as ee,Ra as c,Tb as S,Ub as W,X as p,Za as d,c as J,ea as f,fa as g,fb as k,fc as r,ic as re,l as K,lb as j,nc as se,p as Q,sc as le,uc as ae,v as U,vb as u,xb as te}from"./chunk-6RDPRL5W.js";function we(l,t){l&1&&m(0,"spk-progress-bar",3)}function Oe(l,t){if(l&1&&(o(0,"option",10),r(1),le(2,"date"),n()),l&2){let e=t.$implicit;u("value",e.Version),c(),re("",e.Version,": ",ae(2,3,e.Time,"d MMM y, h:mm"),"")}}function Ve(l,t){if(l&1&&(o(0,"app-file-tree",11)(1,"label",12),r(2,"Path"),n(),m(3,"input",13),n()),l&2){let e=W(2);u("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ee(l,t){if(l&1&&(o(0,"spk-select",7),m(1,"input",8),h(2,9),oe(3,Oe,3,6,"option",10,ie),F(),n(),j(5,Ve,4,4,"app-file-tree",11)),l&2){let e=W();u("displayFn",e.displayFn()),c(3),ne(e.versionOptions()),c(2),$(e.rootPathLoaded()?5:-1)}}var L=new N,ke=()=>L.group({filesToRestore:L.control(""),selectedOption:L.control(null),passphrase:L.control(null)}),z=class l{#t=p(w);#e=p(b);#i=p(C);#o=p(_);#n=p(x);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;backupSettings=pe(()=>{let t=this.backupId(),e=this.selectFilesFormSignal()?.selectedOption;if(typeof e!="number"||!t)return null;let s=this.versionOptions()?.find(a=>a.Version===e)?.Time??null;return s?{id:t,time:s}:null});rootPathLoaded=d(!1);rootPath=be([this.selectFilesFormSignal,this.backupId],J(Y([null,null]),Z(([t,e])=>{let i=t?.selectedOption,s=e;if(typeof i!="number"||!s)return K("/");let a=this.versionOptions()?.find(A=>A.Version===i);return this.#t.getApiV1BackupByIdFiles({id:s,time:a?.Time??"",prefixOnly:!1,folderContents:!0}).pipe(Q(A=>(this.rootPathLoaded.set(!0),A.Files[0].Path)))})));displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let i=t?.find(s=>s.Version?.toString()===e);return i?`${i.Version}: ${this.#n.transform(i.Time,"d MMM y, h:mm")}`:""}}next(){this.#i.navigate(["options"],{relativeTo:this.#o.parent})}exit(){this.#e.exit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-select-files"]],features:[se([x])],decls:15,vars:2,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn"],["type","number","placeholder","Select an option...","formControlName","selectedOption"],["options",""],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]],template:function(e,i){if(e&1){let s=y();o(0,"form",1,0),S("submit",function(){return f(s),g(i.next())}),o(2,"h3",2),r(3,"Select files"),n(),j(4,we,1,0,"spk-progress-bar",3)(5,Ee,6,2),o(6,"div",4)(7,"button",5),S("click",function(){return f(s),g(i.exit())}),o(8,"spk-icon"),r(9,"arrow-left"),n(),r(10," Exit "),n(),o(11,"button",6)(12,"spk-icon"),r(13,"arrow-right"),n(),r(14," Continue "),n()()()}e&2&&(u("formGroup",i.selectFilesForm),c(4),$(i.versionOptionsLoading()?4:5))},dependencies:[I,T,de,fe,O,ce,V,E,P,R,x,M,D,B,Fe,ge],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var b=class l{#t=p(C);#e=p(w);backupId=d(null);backup=d(null);selectFilesForm=ke();optionsForm=ye();optionsFormSignal=q(this.optionsForm.valueChanges);selectFilesFormSignal=q(this.selectFilesForm.valueChanges);versionOptionsLoading=d(!1);versionOptions=d([]);isSubmitting=d(!1);init(t){this.backupId.set(t),this.#i(t,!0)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,i=this.selectFilesForm.value,s=this.versionOptions()?.find(a=>a.Version===i.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:i.filesToRestore?.split("\0").map(a=>`${a}*`)??[],passphrase:i.passphrase??null,time:s?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(G(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:a=>{console.error("restore error",a)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}#i(t,e=!1){this.versionOptionsLoading.set(!0),U([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t})]).pipe(X(1),G(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([i,s])=>{this.versionOptions.set(s),this.backup.set(i),e&&this.selectFilesForm.controls.selectedOption.setValue(s[0].Version)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||l)};static \u0275prov=ee({token:l,factory:l.\u0275fac,providedIn:"root"})};var v=new N,ye=()=>v.group({restoreFrom:v.control("orignal"),restoreFromPath:v.control(""),handleExisting:v.control("overwrite"),permissions:v.control(!1)}),H=class l{#t=p(b);#e=p(C);#i=p(_);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#i.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-options"]],decls:41,vars:6,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]],template:function(e,i){if(e&1){let s=y();o(0,"form",1,0),S("submit",function(){return f(s),g(i.submit())}),o(2,"h3",2),r(3,"Restore options"),n(),o(4,"app-toggle-card",3),h(5,4),r(6,"Where do you want to restore files from?"),F(),o(7,"spk-radio",5),r(8," Original location "),m(9,"input",6),n(),o(10,"spk-radio",5),r(11," Pick location "),m(12,"input",7),n(),o(13,"app-file-tree",8)(14,"label",9),r(15,"Path"),n(),m(16,"input",10),n()(),o(17,"app-toggle-card",3),h(18,4),r(19,"How do you want to handle existing files?"),F(),o(20,"spk-radio",5),r(21," Overwrite "),m(22,"input",11),n(),o(23,"spk-radio",5),r(24," Save different versions with timestamp in file name "),m(25,"input",12),n()(),o(26,"app-toggle-card"),h(27,4),r(28,"Permissions"),F(),o(29,"spk-toggle",13),r(30," Restore read/write permissions "),m(31,"input",14),n()(),o(32,"div",15)(33,"button",16),S("click",function(){return f(s),g(i.goBack())}),o(34,"spk-icon"),r(35,"arrow-left"),n(),r(36," Go back "),n(),o(37,"button",17)(38,"spk-icon"),r(39,"arrow-right"),n(),r(40," Submit "),n()()()}if(e&2){let s;u("formGroup",i.optionsForm),c(4),u("disallowToggle",!0),c(9),u("disabled",((s=i.optionsFormSignal())==null?null:s.restoreFrom)!=="pickLocation"),c(4),u("disallowToggle",!0),c(20),te("loader",i.isSubmitting())}},dependencies:[I,T,O,me,ue,V,E,P,R,Ce,M,Se,he,D,B],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{ye as a,H as b,ke as c,z as d,b as e};
@@ -1 +1 @@
1
- import{e as v}from"./chunk-YDJZQ6GS.js";import"./chunk-GBWXFIBZ.js";import"./chunk-2PUTRWRI.js";import"./chunk-TLFDZKKI.js";import"./chunk-ZVT4YXH5.js";import"./chunk-6TFXXYVK.js";import"./chunk-BVTTY2FQ.js";import{o as g,s as C}from"./chunk-QL753AWG.js";import{H as d,L as f,Y as k,Z as w}from"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import{Eb as o,Fb as n,Gb as i,Ra as s,X as r,cc as a,fb as u,lc as c,vb as p}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var S=e=>["/restore-flow",e,"select-files"],R=e=>["/restore-flow",e,"options"],m=class e{#t=r(d);#e=r(v);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=u({type:e,selectors:[["app-restore-flow"]],decls:9,vars:6,consts:[["step","","routerLinkActive","active",3,"routerLink"]],template:function(t,l){t&1&&(o(0,"spk-stepper")(1,"div",0),i(2,"spk-radio"),a(3," Select files "),n(),o(4,"div",0),i(5,"spk-radio"),a(6," Options "),n()(),o(7,"section"),i(8,"router-outlet"),n()),t&2&&(s(),p("routerLink",c(2,S,l.backupId())),s(3),p("routerLink",c(4,R,l.backupId())))},dependencies:[C,g,f,k,w],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{m as default};
1
+ import{e as v}from"./chunk-SLC2RVWO.js";import"./chunk-NKKY2IML.js";import"./chunk-FDJMCHX2.js";import"./chunk-PT7ISA6M.js";import"./chunk-WFFR6X5F.js";import"./chunk-2VFGTKQ3.js";import"./chunk-QAOE722P.js";import{o as g,s as C}from"./chunk-K3Y54FPO.js";import{H as d,L as f,Y as k,Z as w}from"./chunk-VN5Y4LY2.js";import"./chunk-DUQTXUOP.js";import"./chunk-RFOUEAO7.js";import"./chunk-FL23VQIJ.js";import{Eb as o,Fb as n,Gb as i,Ra as s,X as r,fb as u,fc as a,pc as c,vb as p}from"./chunk-6RDPRL5W.js";import"./chunk-7CGTOI24.js";var S=e=>["/restore-flow",e,"select-files"],R=e=>["/restore-flow",e,"options"],m=class e{#t=r(d);#e=r(v);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=u({type:e,selectors:[["app-restore-flow"]],decls:9,vars:6,consts:[["step","","routerLinkActive","active",3,"routerLink"]],template:function(t,l){t&1&&(o(0,"spk-stepper")(1,"div",0),i(2,"spk-radio"),a(3," Select files "),n(),o(4,"div",0),i(5,"spk-radio"),a(6," Options "),n()(),o(7,"section"),i(8,"router-outlet"),n()),t&2&&(s(),p("routerLink",c(2,S,l.backupId())),s(3),p("routerLink",c(4,R,l.backupId())))},dependencies:[C,g,f,k,w],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{m as default};
@@ -0,0 +1 @@
1
+ import{g as a,h as b,i as c}from"./chunk-R4XFPOM7.js";import"./chunk-FDJMCHX2.js";import"./chunk-DNHLTHLR.js";import"./chunk-PT7ISA6M.js";import"./chunk-WFFR6X5F.js";import"./chunk-2VFGTKQ3.js";import"./chunk-QAOE722P.js";import"./chunk-K3Y54FPO.js";import"./chunk-VN5Y4LY2.js";import"./chunk-DUQTXUOP.js";import"./chunk-RFOUEAO7.js";import"./chunk-FL23VQIJ.js";import"./chunk-6RDPRL5W.js";import"./chunk-7CGTOI24.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
@@ -0,0 +1 @@
1
+ import{a as y}from"./chunk-PT7ISA6M.js";import"./chunk-WFFR6X5F.js";import"./chunk-QAOE722P.js";import"./chunk-RFOUEAO7.js";import{sa as l}from"./chunk-FL23VQIJ.js";import{Eb as t,Fb as n,Ra as p,X as m,fb as a,fc as o,gc as f,sc as r,tc as c}from"./chunk-6RDPRL5W.js";import"./chunk-7CGTOI24.js";var i=class s{#e=m(y);systemInfo=this.#e.systemInfo;static \u0275fac=function(e){return new(e||s)};static \u0275cmp=a({type:s,selectors:[["app-system-info"]],decls:5,vars:3,template:function(e,g){e&1&&(t(0,"h3"),o(1,"System info"),n(),t(2,"pre"),o(3),r(4,"json"),n()),e&2&&(p(3),f(c(4,1,g.systemInfo())))},dependencies:[l],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:p2r(0 0 20)}"],changeDetection:0})};export{i as default};
@@ -1 +1 @@
1
- import{b as rn}from"./chunk-B7SRENJI.js";import{Ea as xt,e as Jr,g as en,j as se,l as tn,m as Ut,n as Ae}from"./chunk-DESW2TCQ.js";import{A as Rt,B as ie,Ba as jr,Bc as Ye,C as Rr,E as He,F as Q,G as wt,Gb as Wr,H as wr,Hc as Xr,I as br,K as Ir,L as P,M as Ar,N as R,O as b,Pa as Nr,Qb as Gr,R as C,S as Dr,Sa as j,T as Mr,Ta as Lr,U as A,V as bt,W as q,Wa as Mt,X as l,Xa as $r,Xb as Qr,Y as Tr,Yb as Kr,Z as Or,Zb as Zr,_ as Er,a as vr,aa as Ie,ba as k,c as mr,cb as kr,da as We,e as yt,eb as Tt,f as Ct,fb as _r,g as W,gb as zr,h as E,ha as It,hb as Qe,ia as Ur,j as G,ja as At,k as I,kb as Fr,l as f,la as xr,m as we,ma as oe,mb as qr,n as yr,na as Ge,nb as Br,o as Cr,p as m,pb as Ot,q as Ve,qb as Et,r as M,ra as Pr,rb as Vr,s as be,sa as Dt,sc as Yr,t as Sr,tc as Ke,u as St,ub as Hr,w as X,xc as Ze,y as J,z as ne}from"./chunk-RJDP2FPE.js";import{a as h,b as D}from"./chunk-7CGTOI24.js";var g="primary",_e=Symbol("RouteTitle"),$t=class{params;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)}};function de(t){return new $t(t)}function Xn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Jn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!_(t[e],n[e]))return!1;return!0}function _(t,n){let e=t?kt(t):void 0,r=n?kt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!gn(t[i],n[i]))return!1;return!0}function kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function gn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function vn(t){return t.length>0?t[t.length-1]:null}function Y(t){return yr(t)?t:Br(t)?I(Promise.resolve(t)):f(t)}var ei={exact:yn,subset:Cn},mn={exact:ti,subset:ri,ignored:()=>!0};function nn(t,n,e){return ei[e.paths](t.root,n.root,e.matrixParams)&&mn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function ti(t,n){return _(t,n)}function yn(t,n,e){if(!te(t.segments,n.segments)||!et(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!yn(t.children[r],n.children[r],e))return!1;return!0}function ri(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>gn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!te(i,e)||n.hasChildren()||!et(i,e,r))}else if(t.segments.length===e.length){if(!te(t.segments,e)||!et(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!te(t.segments,i)||!et(t.segments,i,r)||!t.children[g]?!1:Sn(t.children[g],n,o,r)}}function et(t,n,e){return n.every((r,i)=>mn[e](t[i].parameters,r.parameters))}var V=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){return oi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tt(this)}},ee=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=de(this.parameters),this._parameterMap}toString(){return wn(this)}};function ni(t,n){return te(t,n)&&t.every((e,r)=>_(e.parameters,n[r].parameters))}function te(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function ii(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new fe,providedIn:"root"})}return t})(),fe=class{parse(n){let e=new zt(n);return new V(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${De(n.root,!0)}`,r=ui(n.queryParams),i=typeof n.fragment=="string"?`#${si(n.fragment)}`:"";return`${e}${r}${i}`}},oi=new fe;function tt(t){return t.segments.map(n=>wn(n)).join("/")}function De(t,n){if(!t.hasChildren())return tt(t);if(n){let e=t.children[g]?De(t.children[g],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=ii(t,(r,i)=>i===g?[De(t.children[g],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${tt(t)}/${e[0]}`:`${tt(t)}/(${e.join("//")})`}}function Rn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(t){return Rn(t).replace(/%3B/gi,";")}function si(t){return encodeURI(t)}function _t(t){return Rn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(t){return decodeURIComponent(t)}function on(t){return rt(t.replace(/\+/g,"%20"))}function wn(t){return`${_t(t.path)}${ai(t.parameters)}`}function ai(t){return Object.entries(t).map(([n,e])=>`;${_t(n)}=${_t(e)}`).join("")}function ui(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${Xe(e)}=${Xe(i)}`).join("&"):`${Xe(e)}=${Xe(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ci=/^[^\/()?;#]+/;function Pt(t){let n=t.match(ci);return n?n[0]:""}var li=/^[^\/()?;=#]+/;function hi(t){let n=t.match(li);return n?n[0]:""}var di=/^[^=?&#]+/;function fi(t){let n=t.match(di);return n?n[0]:""}var pi=/^[^&#]+/;function gi(t){let n=t.match(pi);return n?n[0]:""}var zt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[g]=new v(n,e)),r}parseSegment(){let n=Pt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new ee(rt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=hi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Pt(this.remaining);i&&(r=i,this.capture(r))}n[rt(e)]=rt(r)}parseQueryParam(n){let e=fi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=gi(this.remaining);s&&(r=s,this.capture(r))}let i=on(e),o=on(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Pt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=g);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[g]:new v([],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 b(4011,!1)}};function bn(t){return t.segments.length>0?new v([],{[g]:t}):t}function In(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=In(i);if(r===g&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))n[s]=u;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return vi(e)}function vi(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new v(t.segments.concat(n.segments),n.children)}return t}function re(t){return t instanceof V}function mi(t,n,e=null,r=null){let i=An(t);return Dn(i,n,e,r)}function An(t){let n;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new v(o.url,s);return o===t&&(n=u),u}let r=e(t.root),i=bn(r);return n??i}function Dn(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return jt(i,i,i,e,r);let o=yi(n);if(o.toRoot())return jt(i,i,new v([],{}),e,r);let s=Ci(o,i,t),u=s.processChildren?Oe(s.segmentGroup,s.index,o.commands):Tn(s.segmentGroup,s.index,o.commands);return jt(i,s.segmentGroup,u,e,r)}function nt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xe(t){return typeof t=="object"&&t!=null&&t.outlets}function jt(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=Mn(t,n,e);let u=bn(In(s));return new V(u,o,i)}function Mn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Mn(o,n,e)}),new v(t.segments,r)}var it=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&nt(r[0]))throw new b(4003,!1);let i=r.find(xe);if(i&&i!==vn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function yi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new it(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?n++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new it(e,n,r)}var ce=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Ci(t,n,e){if(t.isAbsolute)return new ce(n,!0,0);if(!e)return new ce(n,!1,NaN);if(e.parent===null)return new ce(e,!0,0);let r=nt(t.commands[0])?0:1,i=e.segments.length-1+r;return Si(e,i,t.numberOfDoubleDots)}function Si(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new ce(r,!1,i-o)}function Ri(t){return xe(t[0])?t[0].outlets:{[g]:t}}function Tn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return Oe(t,n,e);let r=wi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[g]=new v(t.segments.slice(r.pathIndex),t.children),Oe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Ft(t,n,e):r.match?Oe(t,0,i):Ft(t,n,e)}function Oe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=Ri(e),i={};if(Object.keys(r).some(o=>o!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let o=Oe(t.children[g],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Tn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function wi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],u=e[r];if(xe(u))break;let a=`${u}`,c=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!an(a,c,s))return o;r+=2}else{if(!an(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Ft(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(xe(o)){let a=bi(o.outlets);return new v(r,a)}if(i===0&&nt(e[0])){let a=t.segments[n];r.push(new ee(a.path,sn(e[0]))),i++;continue}let s=xe(o)?o.outlets[g]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&nt(u)?(r.push(new ee(s,sn(u))),i+=2):(r.push(new ee(s,{})),i++)}return new v(r,{})}function bi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Ft(new v([],{}),0,r))}),n}function sn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function an(t,n,e){return t==e.path&&_(n,e.parameters)}var Ee="imperative",S=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}(S||{}),U=class{id;url;constructor(n,e){this.id=n,this.url=e}},pe=class extends U{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},L=class extends U{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},O=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(O||{}),ot=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(ot||{}),B=class extends U{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},K=class extends U{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},Pe=class extends U{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},st=class extends U{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qt=class extends U{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bt=class extends U{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Vt=class extends U{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ht=class extends U{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wt=class{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gt=class{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Qt=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kt=class{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zt=class{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yt=class{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},at=class{routerEvent;position;anchor;type=S.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},je=class{},ge=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Ii(t,n){return t.providers&&!t._injector&&(t._injector=Tt(t.providers,n,`Route: ${t.path}`)),t._injector??n}function N(t){return t.outlet||g}function Ai(t,n){let e=t.filter(r=>N(r)===n);return e.push(...t.filter(r=>N(r)!==n)),e}function ze(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}var Xt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ze(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Fe(this.rootInjector)}},Fe=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Xt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(q(Ie))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ut=class{_root;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=Jt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Jt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Jt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Jt(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var T=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ue(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ct=class extends ut{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function On(t){let n=Di(t),e=new E([new ee("",{})]),r=new E({}),i=new E({}),o=new E({}),s=new E(""),u=new Z(e,r,o,s,i,g,t,n.root);return u.snapshot=n.root,new ct(new T(u,[]),n)}function Di(t){let n={},e={},r={},i="",o=new le([],n,r,i,e,g,t,null,{});return new ht("",new T(o,[]))}var Z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,u,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[_e]))??f(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,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(m(n=>de(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(n=>de(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function lt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&Un(i)&&(r.resolve[_e]=i.title),r}var le=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[_e]}constructor(n,e,r,i,o,s,u,a,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,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??=de(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ht=class extends ut{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return En(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function En(t){let n=t.children.length>0?` { ${t.children.map(En).join(", ")} } `:"";return`${t.value}${n}`}function Nt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),_(n.params,e.params)||t.paramsSubject.next(e.params),Jn(n.url,e.url)||t.urlSubject.next(e.url),_(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=_(t.params,n.params)&&ni(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function Un(t){return typeof t.title=="string"||t.title===null}var Mi=new A(""),Ti=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new oe;deactivateEvents=new oe;attachEvents=new oe;detachEvents=new oe;routerOutletData=Pr(void 0);parentContexts=l(Fe);location=l($r);changeDetector=l(Ze);inputBinder=l(gt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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 b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,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,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new rr(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Qe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[We]})}return t})(),rr=class t{route;childContexts;parent;outletData;__ngOutletInjector(n){return new t(this.route,this.childContexts,n,this.outletData)}constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Z?this.route:n===Fe?this.childContexts:n===Mi?this.outletData:this.parent.get(n,e)}},gt=new A(""),un=(()=>{class t{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:r}=e,i=Ve([r.queryParams,r.params,r.data]).pipe(P(([o,s,u],a)=>(u=h(h(h({},o),s),u),a===0?f(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=Xr(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Oi(t,n,e){let r=Ne(t,n._root,e?e._root:void 0);return new ct(r,n)}function Ne(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Ei(t,n,e);return new T(r,i)}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(u=>Ne(t,u)),s}}let r=Ui(n.value),i=n.children.map(o=>Ne(t,o));return new T(r,i)}}function Ei(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Ne(t,r,i);return Ne(t,r)})}function Ui(t){return new Z(new E(t.url),new E(t.params),new E(t.queryParams),new E(t.fragment),new E(t.data),t.outlet,t.component,t)}var Le=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function dt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=re(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Pn(!1,O.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Pn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function xi(t){return jn(t)&&re(t.url)}function jn(t){return!!t&&t[xn]}var Pi=(t,n,e,r)=>m(i=>(new nr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Nt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ue(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ue(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),u=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:u})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ue(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ue(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Kt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Nt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Nt(u.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},ft=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},he=class{component;route;constructor(n,e){this.component=n,this.route=e}};function ji(t,n,e){let r=t._root,i=n?n._root:null;return Me(r,i,e,[r.value])}function Ni(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ce(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Mr(t)?t:n.get(t):r}function Me(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ue(n);return t.children.forEach(s=>{Li(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>Ue(u,e.getContext(s),i)),i}function Li(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=$i(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new ft(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Me(t,n,u?u.children:null,r,i):Me(t,n,e,r,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new he(u.outlet.component,s))}else s&&Ue(n,u,i),i.canActivateChecks.push(new ft(r)),o.component?Me(t,null,u?u.children:null,r,i):Me(t,null,e,r,i);return i}function $i(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!te(t.url,n.url);case"pathParamsOrQueryParamsChange":return!te(t.url,n.url)||!_(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!_(t.queryParams,n.queryParams);case"paramsChange":default:return!tr(t,n)}}function Ue(t,n,e){let r=ue(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ue(s,n.children.getContext(o),e):Ue(s,null,e):Ue(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new he(n.outlet.component,i)):e.canDeactivateChecks.push(new he(null,i)):e.canDeactivateChecks.push(new he(null,i))}function qe(t){return typeof t=="function"}function ki(t){return typeof t=="boolean"}function _i(t){return t&&qe(t.canLoad)}function zi(t){return t&&qe(t.canActivate)}function Fi(t){return t&&qe(t.canActivateChild)}function qi(t){return t&&qe(t.canDeactivate)}function Bi(t){return t&&qe(t.canMatch)}function Nn(t){return t instanceof Cr||t?.name==="EmptyError"}var Je=Symbol("INITIAL_VALUE");function ve(){return P(t=>Ve(t.map(n=>n.pipe(ie(1),Ir(Je)))).pipe(m(n=>{for(let e of n)if(e!==!0){if(e===Je)return Je;if(e===!1||Vi(e))return e}return!0}),X(n=>n!==Je),ie(1)))}function Vi(t){return re(t)||t instanceof Le}function Hi(t,n){return M(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(D(h({},e),{guardsResult:!0})):Wi(s,r,i,t).pipe(M(u=>u&&ki(u)?Gi(r,o,t,n):f(u)),m(u=>D(h({},e),{guardsResult:u})))})}function Wi(t,n,e,r){return I(t).pipe(M(i=>Xi(i.component,i.route,e,n,r)),Q(i=>i!==!0,!0))}function Gi(t,n,e,r){return I(n).pipe(ne(i=>Sr(Ki(i.route.parent,r),Qi(i.route,r),Yi(t,i.path,e),Zi(t,i.route,e))),Q(i=>i!==!0,!0))}function Qi(t,n){return t!==null&&n&&n(new Zt(t)),f(!0)}function Ki(t,n){return t!==null&&n&&n(new Qt(t)),f(!0)}function Zi(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let i=r.map(o=>St(()=>{let s=ze(n)??e,u=Ce(o,s),a=zi(u)?u.canActivate(n,t):k(s,()=>u(n,t));return Y(a).pipe(Q())}));return f(i).pipe(ve())}function Yi(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Ni(s)).filter(s=>s!==null).map(s=>St(()=>{let u=s.guards.map(a=>{let c=ze(s.node)??e,d=Ce(a,c),p=Fi(d)?d.canActivateChild(r,t):k(c,()=>d(r,t));return Y(p).pipe(Q())});return f(u).pipe(ve())}));return f(o).pipe(ve())}function Xi(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(u=>{let a=ze(n)??i,c=Ce(u,a),d=qi(c)?c.canDeactivate(t,n,e,r):k(a,()=>c(t,n,e,r));return Y(d).pipe(Q())});return f(s).pipe(ve())}function Ji(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=_i(u)?u.canLoad(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}function Ln(t){return mr(R(n=>{if(typeof n!="boolean")throw dt(t,n)}),m(n=>n===!0))}function eo(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=Bi(u)?u.canMatch(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}var $e=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},ke=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ae(t){return we(new $e(t))}function to(t){return we(new b(4e3,!1))}function ro(t){return we(Pn(!1,O.GuardRejected))}var ir=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return f(r);if(i.numberOfChildren>1||!i.children[g])return to(`${n.redirectTo}`);i=i.children[g]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,params:$,data:w,title:H}=i,x=k(o,()=>u({params:$,data:w,queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,title:H}));if(x instanceof V)throw new ke(x);e=x}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new ke(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new V(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);r[i]=e[u]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(n,a,r,i)}),new v(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function no(t,n,e,r,i){let o=$n(t,n,e);return o.matched?(r=Ii(n,r),eo(r,n,e,i).pipe(m(s=>s===!0?o:h({},or)))):f(o)}function $n(t,n,e){if(n.path==="**")return io(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Xn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function io(t){return{matched:!0,parameters:t.length>0?vn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function cn(t,n,e,r){return e.length>0&&ao(t,e,r)?{segmentGroup:new v(n,so(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&uo(t,e,r)?{segmentGroup:new v(t.segments,oo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function oo(t,n,e,r){let i={};for(let o of e)if(vt(t,n,o)&&!r[N(o)]){let s=new v([],{});i[N(o)]=s}return h(h({},r),i)}function so(t,n){let e={};e[g]=n;for(let r of t)if(r.path===""&&N(r)!==g){let i=new v([],{});e[N(r)]=i}return e}function ao(t,n,e){return e.some(r=>vt(t,n,r)&&N(r)!==g)}function uo(t,n,e){return e.some(r=>vt(t,n,r))}function vt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function co(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function lo(t,n,e,r,i,o,s="emptyOnly"){return new ar(t,n,e,r,i,s,o).recognize()}var ho=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,u){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=cn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:e,rootSnapshot:r})=>{let i=new T(r,e),o=new ht("",i),s=mi(r,[],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 le([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,g,e).pipe(m(r=>({children:r,rootSnapshot:e})),J(r=>{if(r instanceof ke)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof $e?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(m(s=>s instanceof T?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return I(o).pipe(ne(s=>{let u=r.children[s],a=Ai(e,s);return this.processSegmentGroup(n,a,u,s,i)}),br((s,u)=>(s.push(...u),s)),Rt(null),wr(),M(s=>{if(s===null)return ae(r);let u=kn(s);return fo(u),f(u)}))}processSegment(n,e,r,i,o,s,u){return I(e).pipe(ne(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,o,s,u).pipe(J(c=>{if(c instanceof $e)return f(null);throw c}))),Q(a=>!!a),J(a=>{if(Nn(a))return co(r,i,o)?f(new sr):ae(r);throw a}))}processSegmentAgainstRoute(n,e,r,i,o,s,u,a){return N(r)!==s&&(s===g||!vt(i,o,r))?ae(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,a):ae(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,u){let{matched:a,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:y}=$n(e,i,o);if(!a)return ae(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ho&&(this.allowRedirects=!1));let $=new le(o,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(i),N(i),i.component??i._loadedComponent??null,i,hn(i)),w=lt($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(w.params),$.data=Object.freeze(w.data);let H=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,$,n);return this.applyRedirects.lineralizeSegments(i,H).pipe(M(x=>this.processSegment(n,r,e,x.concat(y),s,!1,u)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let u=no(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),u.pipe(P(a=>a.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(P(({routes:c})=>{let d=r._loadedInjector??n,{parameters:p,consumedSegments:y,remainingSegments:$}=a,w=new le(y,p,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(r),N(r),r.component??r._loadedComponent??null,r,hn(r)),H=lt(w,s,this.paramsInheritanceStrategy);w.params=Object.freeze(H.params),w.data=Object.freeze(H.data);let{segmentGroup:x,slicedSegments:Re}=cn(e,y,$,c);if(Re.length===0&&x.hasChildren())return this.processChildren(d,c,x,w).pipe(m(Be=>new T(w,Be)));if(c.length===0&&Re.length===0)return f(new T(w,[]));let Yn=N(r)===o;return this.processSegment(d,c,x,Re,Yn?g:o,!0,w).pipe(m(Be=>new T(w,Be instanceof T?[Be]:[])))}))):ae(e)))}getChildConfig(n,e,r){return e.children?f({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):Ji(n,e,r,this.urlSerializer).pipe(M(i=>i?this.configLoader.loadChildren(n,e).pipe(R(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ro(e))):f({routes:[],injector:n})}};function fo(t){t.sort((n,e)=>n.value.outlet===g?-1:e.value.outlet===g?1:n.value.outlet.localeCompare(e.value.outlet))}function po(t){let n=t.value.routeConfig;return n&&n.path===""}function kn(t){let n=[],e=new Set;for(let r of t){if(!po(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=kn(r.children);n.push(new T(r.value,i))}return n.filter(r=>!e.has(r))}function ln(t){return t.data||{}}function hn(t){return t.resolve||{}}function go(t,n,e,r,i,o){return M(s=>lo(t,n,e,r,s.extractedUrl,i,o).pipe(m(({state:u,tree:a})=>D(h({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function vo(t,n){return M(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of _n(a))s.add(c);let u=0;return I(s).pipe(ne(a=>o.has(a)?mo(a,r,t,n):(a.data=lt(a,a.parent,t).resolve,f(void 0))),R(()=>u++),wt(1),M(a=>u===s.size?f(e):G))})}function _n(t){let n=t.children.map(e=>_n(e)).flat();return[t,...n]}function mo(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Un(i)&&(o[_e]=i.title),yo(o,t,n,r).pipe(m(s=>(t._resolvedData=s,t.data=lt(t,t.parent,e).resolve,null)))}function yo(t,n,e,r){let i=kt(t);if(i.length===0)return f({});let o={};return I(i).pipe(M(s=>Co(t[s],n,e,r).pipe(Q(),R(u=>{if(u instanceof Le)throw dt(new fe,u);o[s]=u}))),wt(1),Rr(o),J(s=>Nn(s)?G:we(s)))}function Co(t,n,e,r){let i=ze(n)??r,o=Ce(t,i),s=o.resolve?o.resolve(n,e):k(i,()=>o(n,e));return Y(s)}function Lt(t){return P(n=>{let e=t(n);return e?I(e).pipe(m(()=>n)):f(n)})}var zn=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===g);return r}getResolvedTitleForRoute(e){return e.data[_e]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(So),providedIn:"root"})}return t})(),So=(()=>{class t extends zn{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(q(rn))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Se=new A("",{providedIn:"root",factory:()=>({})}),Ro=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=_r({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,i){r&1&&Wr(0,"router-outlet")},dependencies:[Ti],encapsulation:2})}return t})();function lr(t){let n=t.children&&t.children.map(lr),e=n?D(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Ro),e}var me=new A(""),hr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Ke);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=Y(e.loadComponent()).pipe(m(Fn),R(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),He(()=>{this.componentLoaders.delete(e)})),i=new Ct(r,()=>new W).pipe(yt());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=wo(r,this.compiler,e,this.onLoadEndListener).pipe(He(()=>{this.childrenLoaders.delete(r)})),s=new Ct(o,()=>new W).pipe(yt());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wo(t,n,e,r){return Y(t.loadChildren()).pipe(m(Fn),M(i=>i instanceof kr||Array.isArray(i)?f(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(me,[],{optional:!0,self:!0}).flat()),{routes:s.map(lr),injector:o}}))}function bo(t){return t&&typeof t=="object"&&"default"in t}function Fn(t){return bo(t)?t.default:t}var dr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Io),providedIn:"root"})}return t})(),Io=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qn=new A(""),Bn=new A("");function Ao(t,n,e){let r=t.get(Bn),i=t.get(Jr);return t.get(Ge).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),u=i.startViewTransition(()=>(o(),Do(t))),{onViewTransitionCreated:a}=r;return a&&k(t,()=>a({transition:u,from:n,to:e})),s})}function Do(t){return new Promise(n=>{jr({read:()=>setTimeout(n)},{injector:t})})}var fr=new A(""),mt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new W;transitionAbortSubject=new W;configLoader=l(hr);environmentInjector=l(Ie);urlSerializer=l(ye);rootContexts=l(Fe);location=l(Ae);inputBindingEnabled=l(gt,{optional:!0})!==null;titleStrategy=l(zn);options=l(Se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(dr);createViewTransition=l(qn,{optional:!0});navigationErrorHandler=l(fr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;constructor(){let e=i=>this.events.next(new Wt(i)),r=i=>this.events.next(new Gt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(D(h(h({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new E({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ee,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),m(o=>D(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),P(o=>{let s=!1,u=!1;return f(o).pipe(P(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),G;this.currentTransition=o,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?D(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.rawUrl),p,ot.IgnoredSameUrlNavigation)),a.resolve(!1),G}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(P(p=>{let y=this.transitions?.getValue();return this.events.next(new pe(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),y!==this.transitions?.getValue()?G:Promise.resolve(p)}),go(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),R(p=>{o.targetSnapshot=p.targetSnapshot,o.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=D(h({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let y=new st(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:y,source:$,restoredState:w,extras:H}=a,x=new pe(p,this.urlSerializer.serialize(y),$,w);this.events.next(x);let Re=On(this.rootComponentType).snapshot;return this.currentTransition=o=D(h({},a),{targetSnapshot:Re,urlAfterRedirects:y,extras:D(h({},H),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(o)}else{let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.extractedUrl),p,ot.IgnoredByUrlHandlingStrategy)),a.resolve(!1),G}}),R(a=>{let c=new qt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=o=D(h({},a),{guards:ji(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),Hi(this.environmentInjector,a=>this.events.next(a)),R(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw dt(this.urlSerializer,a.guardsResult);let c=new Bt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",O.GuardRejected),!1)),Lt(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(R(c=>{let d=new Vt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),P(c=>{let d=!1;return f(c).pipe(vo(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",O.NoDataFromResolver)}}))}),R(c=>{let d=new Ht(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),Lt(a=>{let c=d=>{let p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(R(y=>{d.component=y}),m(()=>{})));for(let y of d.children)p.push(...c(y));return p};return Ve(c(a.targetSnapshot.root)).pipe(Rt(null),ie(1))}),Lt(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return d?I(d).pipe(m(()=>o)):f(o)}),m(a=>{let c=Oi(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=D(h({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),R(()=>{this.events.next(new je)}),Pi(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ie(1),R({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new L(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Ar(this.transitionAbortSubject.pipe(R(a=>{throw a}))),He(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(u=!0,jn(a))this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),xi(a)?this.events.next(new ge(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Pe(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let d=k(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof Le){let{message:p,cancellationCode:y}=dt(this.urlSerializer,d);this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),p,y)),this.events.next(new ge(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return G}))}))}cancelNavigationTransition(e,r,i){let o=new B(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);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))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Mo(t){return t!==Ee}var To=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Oo),providedIn:"root"})}return t})(),ur=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Oo=(()=>{class t extends ur{static \u0275fac=(()=>{let e;return function(i){return(e||(e=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Eo),providedIn:"root"})}return t})(),Eo=(()=>{class t extends Vn{location=l(Ae);urlSerializer=l(ye);options=l(Se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=l(dr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new V;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=On(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof pe)this.stateMemento=this.createStateMemento();else if(e instanceof K)this.rawUrlTree=r.initialUrl;else if(e instanceof st){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else e instanceof je?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):e instanceof B&&(e.code===O.GuardRejected||e.code===O.NoDataFromResolver)?this.restoreHistory(r):e instanceof Pe?this.restoreHistory(r,!0):e instanceof L&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof V?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=h(h({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&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,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Te=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Te||{});function Hn(t,n){t.events.pipe(X(e=>e instanceof L||e instanceof B||e instanceof Pe||e instanceof K),m(e=>e instanceof L||e instanceof K?Te.COMPLETE:(e instanceof B?e.code===O.Redirect||e.code===O.SupersededByNewNavigation:!1)?Te.REDIRECTING:Te.FAILED),X(e=>e!==Te.REDIRECTING),ie(1)).subscribe(()=>{n()})}var Uo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},z=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(qr);stateManager=l(Vn);options=l(Se,{optional:!0})||{};pendingTasks=l(xr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(mt);urlSerializer=l(ye);location=l(Ae);urlHandlingStrategy=l(dr);_events=new W;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(To);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(me,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(gt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new vr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof B&&r.code!==O.Redirect&&r.code!==O.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof L)this.navigated=!0;else if(r instanceof ge){let s=r.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Mo(i.source)},s);this.scheduleNavigation(u,Ee,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}jo(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});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),Ee,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=h({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,r,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(lr),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,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=r,c=a?this.currentUrlTree.fragment:s,d=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let y=i?i.snapshot:this.routerState.snapshot.root;p=An(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),p=this.currentUrlTree.root}return Dn(p,e,d,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=re(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ee,null,r)}navigate(e,r={skipLocationChange:!1}){return Po(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=h({},Uo):r===!1?i=h({},xo):i=r,re(e))return nn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return nn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((p,y)=>{u=p,a=y});let d=this.pendingTasks.add();return Hn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Po(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new b(4008,!1)}function jo(t){return!(t instanceof je)&&!(t instanceof ge)}var dn=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new W;constructor(e,r,i,o,s,u){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof L&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(re(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!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 r=this.href===null?null:Nr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:re(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 \u0275fac=function(r){return new(r||t)(j(z),j(Z),Ur("tabindex"),j(Mt),j(Dt),j(se))};static \u0275dir=Qe({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Gr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Hr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ye],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ye],replaceUrl:[2,"replaceUrl","replaceUrl",Ye],routerLink:"routerLink"},features:[Fr,We]})}return t})(),ms=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new oe;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof L&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(be()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=I(e).pipe(be()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=No(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(j(z),j(Dt),j(Mt),j(Ze),j(dn,8))};static \u0275dir=Qe({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Qr(o,dn,5),r&2){let s;Kr(s=Zr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[We]})}return t})();function No(t){return!!t.paths}var pt=class{},ys=(()=>{class t{preload(e,r){return r().pipe(J(()=>f(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cs=(()=>{class t{preload(e,r){return f(null)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lo=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(X(e=>e instanceof L),ne(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Tt(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,u=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(u,o.children??o._loadedRoutes))}return I(i).pipe(be())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=f(null);let o=i.pipe(M(s=>s===null?f(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return I([o,s]).pipe(be())}else return o})}static \u0275fac=function(r){return new(r||t)(q(z),q(Ke),q(Ie),q(pt),q(hr))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new A(""),Wn=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,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 pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof L?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof K&&e.code===ot.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 at&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new at(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Lr()};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Ss(t,...n){return Er([{provide:me,multi:!0,useValue:t},[],{provide:Z,useFactory:Gn,deps:[z]},{provide:Et,multi:!0,useFactory:Qn},n.map(e=>e.\u0275providers)])}function Gn(t){return t.routerState.root}function F(t,n){return{\u0275kind:t,\u0275providers:n}}function Rs(t){return[{provide:me,multi:!0,useValue:t},[]]}function ws(t={}){return F(4,[{provide:pr,useFactory:()=>{let e=l(xt),r=l(Ge),i=l(mt),o=l(ye);return new Wn(o,i,e,r,t)}}])}function Qn(){let t=l(At);return n=>{let e=t.get(Vr);if(n!==e.components[0])return;let r=t.get(z),i=t.get(Kn);t.get(gr)===1&&r.initialNavigation(),t.get(Zn,null,bt.Optional)?.setUpPreloading(),t.get(pr,null,bt.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Kn=new A("",{factory:()=>new W}),gr=new A("",{providedIn:"root",factory:()=>1});function $o(){return F(2,[{provide:gr,useValue:0},{provide:Ot,multi:!0,deps:[At],useFactory:n=>{let e=n.get(en,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(z),o=n.get(Kn);Hn(i,()=>{r(!0)}),n.get(mt).afterPreactivation=()=>(r(!0),o.closed?f(void 0):o),i.initialNavigation()}))}}])}function ko(){return F(3,[{provide:Ot,multi:!0,useFactory:()=>{let n=l(z);return()=>{n.setUpLocationChangeListener()}}},{provide:gr,useValue:2}])}function bs(){let t=[];return t=[],F(1,t)}var Zn=new A("");function _o(t){return F(0,[{provide:Zn,useExisting:Lo},{provide:pt,useExisting:t}])}function Is(t){return F(5,[{provide:Se,useValue:t}])}function As(){return F(6,[{provide:se,useClass:Ut}])}function Ds(t){return F(7,[{provide:fr,useValue:t}])}function zo(){return F(8,[un,{provide:gt,useExisting:un}])}function Fo(t){let n=[{provide:qn,useValue:Ao},{provide:Bn,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return F(9,n)}var fn=new A("ROUTER_FORROOT_GUARD"),qo=[Ae,{provide:ye,useClass:fe},z,Fe,{provide:Z,useFactory:Gn,deps:[z]},hr,[]],Ms=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[qo,[],{provide:me,multi:!0,useValue:e},{provide:fn,useFactory:Wo,deps:[[z,new Tr,new Or]]},r?.errorHandler?{provide:fr,useValue:r.errorHandler}:[],{provide:Se,useValue:r||{}},r?.useHash?Vo():Ho(),Bo(),r?.preloadingStrategy?_o(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Go(r):[],r?.bindToComponentInputs?zo().\u0275providers:[],r?.enableViewTransitions?Fo().\u0275providers:[],Qo()]}}static forChild(e){return{ngModule:t,providers:[{provide:me,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)(q(fn,8))};static \u0275mod=zr({type:t});static \u0275inj=Dr({})}return t})();function Bo(){return{provide:pr,useFactory:()=>{let t=l(xt),n=l(Ge),e=l(Se),r=l(mt),i=l(ye);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Wn(i,r,t,n,e)}}}function Vo(){return{provide:se,useClass:Ut}}function Ho(){return{provide:se,useClass:tn}}function Wo(t){return"guarded"}function Go(t){return[t.initialNavigation==="disabled"?ko().\u0275providers:[],t.initialNavigation==="enabledBlocking"?$o().\u0275providers:[]]}var pn=new A("");function Qo(){return[{provide:pn,useFactory:Qn},{provide:Et,multi:!0,useExisting:pn}]}function Ts(t){return t.map(n=>(...e)=>l(n).canMatch(...e))}function Os(t){return t.map(n=>(...e)=>l(n).canActivate(...e))}function Es(t){return t.map(n=>(...e)=>l(n).canActivateChild(...e))}function Us(t){return t.map(n=>(...e)=>l(n).canDeactivate(...e))}function xs(t){return(...n)=>l(t).resolve(...n)}var Ps=new Yr("19.0.1");export{g as a,de as b,Xn as c,V as d,v as e,ee as f,ye as g,fe as h,mi as i,S as j,U as k,pe as l,L as m,O as n,ot as o,B as p,K as q,Pe as r,st as s,qt as t,Bt as u,Vt as v,Ht as w,Wt as x,Gt as y,Qt as z,Kt as A,Zt as B,Yt as C,at as D,Xt as E,Fe as F,ct as G,Z as H,le as I,ht as J,Mi as K,Ti as L,Le as M,zn as N,So as O,Se as P,Ro as Q,me as R,wo as S,dr as T,To as U,ur as V,Hn as W,z as X,dn as Y,ms as Z,pt as _,ys as $,Cs as aa,Lo as ba,Ss as ca,Rs as da,ws as ea,$o as fa,ko as ga,bs as ha,_o as ia,Is as ja,As as ka,Ds as la,zo as ma,Fo as na,qo as oa,Ms as pa,pn as qa,Ts as ra,Os as sa,Es as ta,Us as ua,xs as va,Ps as wa};
1
+ import{b as rn}from"./chunk-DUQTXUOP.js";import{Ea as xt,e as Jr,g as en,j as se,l as tn,m as Ut,n as Ae}from"./chunk-FL23VQIJ.js";import{$b as Kr,A as Rt,B as ie,Ba as jr,Bc as Ze,C as Rr,E as He,F as Q,Fc as Ye,G as wt,Gb as Wr,H as wr,I as br,K as Ir,L as P,Lc as Xr,M as Ar,N as R,O as b,Pa as Nr,R as C,S as Dr,Sa as j,T as Mr,Ta as Lr,Tb as Gr,U as A,V as bt,W as q,Wa as Mt,X as l,Xa as $r,Y as Tr,Z as Or,_ as Er,_b as Qr,a as vr,aa as Ie,ac as Zr,ba as k,c as mr,cb as kr,da as We,e as yt,eb as Tt,f as Ct,fb as _r,g as W,gb as zr,h as E,ha as It,hb as Qe,ia as Ur,j as G,ja as At,k as I,kb as Fr,l as f,la as xr,m as we,ma as oe,mb as qr,n as yr,na as Ge,nb as Br,o as Cr,p as m,pb as Ot,q as Ve,qb as Et,r as M,ra as Pr,rb as Vr,s as be,sa as Dt,t as Sr,u as St,ub as Hr,w as X,wc as Yr,xc as Ke,y as J,z as ne}from"./chunk-6RDPRL5W.js";import{a as h,b as D}from"./chunk-7CGTOI24.js";var g="primary",_e=Symbol("RouteTitle"),$t=class{params;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)}};function de(t){return new $t(t)}function Xn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Jn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!_(t[e],n[e]))return!1;return!0}function _(t,n){let e=t?kt(t):void 0,r=n?kt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!gn(t[i],n[i]))return!1;return!0}function kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function gn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function vn(t){return t.length>0?t[t.length-1]:null}function Y(t){return yr(t)?t:Br(t)?I(Promise.resolve(t)):f(t)}var ei={exact:yn,subset:Cn},mn={exact:ti,subset:ri,ignored:()=>!0};function nn(t,n,e){return ei[e.paths](t.root,n.root,e.matrixParams)&&mn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function ti(t,n){return _(t,n)}function yn(t,n,e){if(!te(t.segments,n.segments)||!et(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!yn(t.children[r],n.children[r],e))return!1;return!0}function ri(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>gn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!te(i,e)||n.hasChildren()||!et(i,e,r))}else if(t.segments.length===e.length){if(!te(t.segments,e)||!et(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!te(t.segments,i)||!et(t.segments,i,r)||!t.children[g]?!1:Sn(t.children[g],n,o,r)}}function et(t,n,e){return n.every((r,i)=>mn[e](t[i].parameters,r.parameters))}var V=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){return oi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tt(this)}},ee=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=de(this.parameters),this._parameterMap}toString(){return wn(this)}};function ni(t,n){return te(t,n)&&t.every((e,r)=>_(e.parameters,n[r].parameters))}function te(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function ii(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new fe,providedIn:"root"})}return t})(),fe=class{parse(n){let e=new zt(n);return new V(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${De(n.root,!0)}`,r=ui(n.queryParams),i=typeof n.fragment=="string"?`#${si(n.fragment)}`:"";return`${e}${r}${i}`}},oi=new fe;function tt(t){return t.segments.map(n=>wn(n)).join("/")}function De(t,n){if(!t.hasChildren())return tt(t);if(n){let e=t.children[g]?De(t.children[g],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=ii(t,(r,i)=>i===g?[De(t.children[g],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${tt(t)}/${e[0]}`:`${tt(t)}/(${e.join("//")})`}}function Rn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(t){return Rn(t).replace(/%3B/gi,";")}function si(t){return encodeURI(t)}function _t(t){return Rn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(t){return decodeURIComponent(t)}function on(t){return rt(t.replace(/\+/g,"%20"))}function wn(t){return`${_t(t.path)}${ai(t.parameters)}`}function ai(t){return Object.entries(t).map(([n,e])=>`;${_t(n)}=${_t(e)}`).join("")}function ui(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${Xe(e)}=${Xe(i)}`).join("&"):`${Xe(e)}=${Xe(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ci=/^[^\/()?;#]+/;function Pt(t){let n=t.match(ci);return n?n[0]:""}var li=/^[^\/()?;=#]+/;function hi(t){let n=t.match(li);return n?n[0]:""}var di=/^[^=?&#]+/;function fi(t){let n=t.match(di);return n?n[0]:""}var pi=/^[^&#]+/;function gi(t){let n=t.match(pi);return n?n[0]:""}var zt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[g]=new v(n,e)),r}parseSegment(){let n=Pt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new ee(rt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=hi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Pt(this.remaining);i&&(r=i,this.capture(r))}n[rt(e)]=rt(r)}parseQueryParam(n){let e=fi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=gi(this.remaining);s&&(r=s,this.capture(r))}let i=on(e),o=on(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Pt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=g);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[g]:new v([],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 b(4011,!1)}};function bn(t){return t.segments.length>0?new v([],{[g]:t}):t}function In(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=In(i);if(r===g&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))n[s]=u;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return vi(e)}function vi(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new v(t.segments.concat(n.segments),n.children)}return t}function re(t){return t instanceof V}function mi(t,n,e=null,r=null){let i=An(t);return Dn(i,n,e,r)}function An(t){let n;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new v(o.url,s);return o===t&&(n=u),u}let r=e(t.root),i=bn(r);return n??i}function Dn(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return jt(i,i,i,e,r);let o=yi(n);if(o.toRoot())return jt(i,i,new v([],{}),e,r);let s=Ci(o,i,t),u=s.processChildren?Oe(s.segmentGroup,s.index,o.commands):Tn(s.segmentGroup,s.index,o.commands);return jt(i,s.segmentGroup,u,e,r)}function nt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xe(t){return typeof t=="object"&&t!=null&&t.outlets}function jt(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=Mn(t,n,e);let u=bn(In(s));return new V(u,o,i)}function Mn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Mn(o,n,e)}),new v(t.segments,r)}var it=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&nt(r[0]))throw new b(4003,!1);let i=r.find(xe);if(i&&i!==vn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function yi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new it(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?n++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new it(e,n,r)}var ce=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Ci(t,n,e){if(t.isAbsolute)return new ce(n,!0,0);if(!e)return new ce(n,!1,NaN);if(e.parent===null)return new ce(e,!0,0);let r=nt(t.commands[0])?0:1,i=e.segments.length-1+r;return Si(e,i,t.numberOfDoubleDots)}function Si(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new ce(r,!1,i-o)}function Ri(t){return xe(t[0])?t[0].outlets:{[g]:t}}function Tn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return Oe(t,n,e);let r=wi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[g]=new v(t.segments.slice(r.pathIndex),t.children),Oe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Ft(t,n,e):r.match?Oe(t,0,i):Ft(t,n,e)}function Oe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=Ri(e),i={};if(Object.keys(r).some(o=>o!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let o=Oe(t.children[g],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Tn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function wi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],u=e[r];if(xe(u))break;let a=`${u}`,c=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!an(a,c,s))return o;r+=2}else{if(!an(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Ft(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(xe(o)){let a=bi(o.outlets);return new v(r,a)}if(i===0&&nt(e[0])){let a=t.segments[n];r.push(new ee(a.path,sn(e[0]))),i++;continue}let s=xe(o)?o.outlets[g]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&nt(u)?(r.push(new ee(s,sn(u))),i+=2):(r.push(new ee(s,{})),i++)}return new v(r,{})}function bi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Ft(new v([],{}),0,r))}),n}function sn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function an(t,n,e){return t==e.path&&_(n,e.parameters)}var Ee="imperative",S=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}(S||{}),U=class{id;url;constructor(n,e){this.id=n,this.url=e}},pe=class extends U{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},L=class extends U{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},O=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(O||{}),ot=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(ot||{}),B=class extends U{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},K=class extends U{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},Pe=class extends U{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},st=class extends U{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qt=class extends U{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bt=class extends U{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Vt=class extends U{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ht=class extends U{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wt=class{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gt=class{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Qt=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kt=class{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zt=class{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yt=class{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},at=class{routerEvent;position;anchor;type=S.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},je=class{},ge=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Ii(t,n){return t.providers&&!t._injector&&(t._injector=Tt(t.providers,n,`Route: ${t.path}`)),t._injector??n}function N(t){return t.outlet||g}function Ai(t,n){let e=t.filter(r=>N(r)===n);return e.push(...t.filter(r=>N(r)!==n)),e}function ze(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}var Xt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ze(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Fe(this.rootInjector)}},Fe=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Xt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(q(Ie))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ut=class{_root;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=Jt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Jt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Jt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Jt(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var T=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ue(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ct=class extends ut{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function On(t){let n=Di(t),e=new E([new ee("",{})]),r=new E({}),i=new E({}),o=new E({}),s=new E(""),u=new Z(e,r,o,s,i,g,t,n.root);return u.snapshot=n.root,new ct(new T(u,[]),n)}function Di(t){let n={},e={},r={},i="",o=new le([],n,r,i,e,g,t,null,{});return new ht("",new T(o,[]))}var Z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,u,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[_e]))??f(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,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(m(n=>de(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(n=>de(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function lt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&Un(i)&&(r.resolve[_e]=i.title),r}var le=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[_e]}constructor(n,e,r,i,o,s,u,a,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,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??=de(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ht=class extends ut{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return En(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function En(t){let n=t.children.length>0?` { ${t.children.map(En).join(", ")} } `:"";return`${t.value}${n}`}function Nt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),_(n.params,e.params)||t.paramsSubject.next(e.params),Jn(n.url,e.url)||t.urlSubject.next(e.url),_(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=_(t.params,n.params)&&ni(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function Un(t){return typeof t.title=="string"||t.title===null}var Mi=new A(""),Ti=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new oe;deactivateEvents=new oe;attachEvents=new oe;detachEvents=new oe;routerOutletData=Pr(void 0);parentContexts=l(Fe);location=l($r);changeDetector=l(Ze);inputBinder=l(gt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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 b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,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,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new rr(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Qe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[We]})}return t})(),rr=class t{route;childContexts;parent;outletData;__ngOutletInjector(n){return new t(this.route,this.childContexts,n,this.outletData)}constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Z?this.route:n===Fe?this.childContexts:n===Mi?this.outletData:this.parent.get(n,e)}},gt=new A(""),un=(()=>{class t{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:r}=e,i=Ve([r.queryParams,r.params,r.data]).pipe(P(([o,s,u],a)=>(u=h(h(h({},o),s),u),a===0?f(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=Xr(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Oi(t,n,e){let r=Ne(t,n._root,e?e._root:void 0);return new ct(r,n)}function Ne(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Ei(t,n,e);return new T(r,i)}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(u=>Ne(t,u)),s}}let r=Ui(n.value),i=n.children.map(o=>Ne(t,o));return new T(r,i)}}function Ei(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Ne(t,r,i);return Ne(t,r)})}function Ui(t){return new Z(new E(t.url),new E(t.params),new E(t.queryParams),new E(t.fragment),new E(t.data),t.outlet,t.component,t)}var Le=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function dt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=re(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Pn(!1,O.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Pn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function xi(t){return jn(t)&&re(t.url)}function jn(t){return!!t&&t[xn]}var Pi=(t,n,e,r)=>m(i=>(new nr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Nt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ue(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ue(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),u=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:u})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ue(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ue(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Kt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Nt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Nt(u.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},ft=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},he=class{component;route;constructor(n,e){this.component=n,this.route=e}};function ji(t,n,e){let r=t._root,i=n?n._root:null;return Me(r,i,e,[r.value])}function Ni(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ce(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Mr(t)?t:n.get(t):r}function Me(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ue(n);return t.children.forEach(s=>{Li(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>Ue(u,e.getContext(s),i)),i}function Li(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=$i(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new ft(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Me(t,n,u?u.children:null,r,i):Me(t,n,e,r,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new he(u.outlet.component,s))}else s&&Ue(n,u,i),i.canActivateChecks.push(new ft(r)),o.component?Me(t,null,u?u.children:null,r,i):Me(t,null,e,r,i);return i}function $i(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!te(t.url,n.url);case"pathParamsOrQueryParamsChange":return!te(t.url,n.url)||!_(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!_(t.queryParams,n.queryParams);case"paramsChange":default:return!tr(t,n)}}function Ue(t,n,e){let r=ue(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ue(s,n.children.getContext(o),e):Ue(s,null,e):Ue(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new he(n.outlet.component,i)):e.canDeactivateChecks.push(new he(null,i)):e.canDeactivateChecks.push(new he(null,i))}function qe(t){return typeof t=="function"}function ki(t){return typeof t=="boolean"}function _i(t){return t&&qe(t.canLoad)}function zi(t){return t&&qe(t.canActivate)}function Fi(t){return t&&qe(t.canActivateChild)}function qi(t){return t&&qe(t.canDeactivate)}function Bi(t){return t&&qe(t.canMatch)}function Nn(t){return t instanceof Cr||t?.name==="EmptyError"}var Je=Symbol("INITIAL_VALUE");function ve(){return P(t=>Ve(t.map(n=>n.pipe(ie(1),Ir(Je)))).pipe(m(n=>{for(let e of n)if(e!==!0){if(e===Je)return Je;if(e===!1||Vi(e))return e}return!0}),X(n=>n!==Je),ie(1)))}function Vi(t){return re(t)||t instanceof Le}function Hi(t,n){return M(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(D(h({},e),{guardsResult:!0})):Wi(s,r,i,t).pipe(M(u=>u&&ki(u)?Gi(r,o,t,n):f(u)),m(u=>D(h({},e),{guardsResult:u})))})}function Wi(t,n,e,r){return I(t).pipe(M(i=>Xi(i.component,i.route,e,n,r)),Q(i=>i!==!0,!0))}function Gi(t,n,e,r){return I(n).pipe(ne(i=>Sr(Ki(i.route.parent,r),Qi(i.route,r),Yi(t,i.path,e),Zi(t,i.route,e))),Q(i=>i!==!0,!0))}function Qi(t,n){return t!==null&&n&&n(new Zt(t)),f(!0)}function Ki(t,n){return t!==null&&n&&n(new Qt(t)),f(!0)}function Zi(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let i=r.map(o=>St(()=>{let s=ze(n)??e,u=Ce(o,s),a=zi(u)?u.canActivate(n,t):k(s,()=>u(n,t));return Y(a).pipe(Q())}));return f(i).pipe(ve())}function Yi(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Ni(s)).filter(s=>s!==null).map(s=>St(()=>{let u=s.guards.map(a=>{let c=ze(s.node)??e,d=Ce(a,c),p=Fi(d)?d.canActivateChild(r,t):k(c,()=>d(r,t));return Y(p).pipe(Q())});return f(u).pipe(ve())}));return f(o).pipe(ve())}function Xi(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(u=>{let a=ze(n)??i,c=Ce(u,a),d=qi(c)?c.canDeactivate(t,n,e,r):k(a,()=>c(t,n,e,r));return Y(d).pipe(Q())});return f(s).pipe(ve())}function Ji(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=_i(u)?u.canLoad(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}function Ln(t){return mr(R(n=>{if(typeof n!="boolean")throw dt(t,n)}),m(n=>n===!0))}function eo(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=Bi(u)?u.canMatch(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}var $e=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},ke=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ae(t){return we(new $e(t))}function to(t){return we(new b(4e3,!1))}function ro(t){return we(Pn(!1,O.GuardRejected))}var ir=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return f(r);if(i.numberOfChildren>1||!i.children[g])return to(`${n.redirectTo}`);i=i.children[g]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,params:$,data:w,title:H}=i,x=k(o,()=>u({params:$,data:w,queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,title:H}));if(x instanceof V)throw new ke(x);e=x}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new ke(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new V(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);r[i]=e[u]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(n,a,r,i)}),new v(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function no(t,n,e,r,i){let o=$n(t,n,e);return o.matched?(r=Ii(n,r),eo(r,n,e,i).pipe(m(s=>s===!0?o:h({},or)))):f(o)}function $n(t,n,e){if(n.path==="**")return io(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Xn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function io(t){return{matched:!0,parameters:t.length>0?vn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function cn(t,n,e,r){return e.length>0&&ao(t,e,r)?{segmentGroup:new v(n,so(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&uo(t,e,r)?{segmentGroup:new v(t.segments,oo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function oo(t,n,e,r){let i={};for(let o of e)if(vt(t,n,o)&&!r[N(o)]){let s=new v([],{});i[N(o)]=s}return h(h({},r),i)}function so(t,n){let e={};e[g]=n;for(let r of t)if(r.path===""&&N(r)!==g){let i=new v([],{});e[N(r)]=i}return e}function ao(t,n,e){return e.some(r=>vt(t,n,r)&&N(r)!==g)}function uo(t,n,e){return e.some(r=>vt(t,n,r))}function vt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function co(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function lo(t,n,e,r,i,o,s="emptyOnly"){return new ar(t,n,e,r,i,s,o).recognize()}var ho=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,u){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=cn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:e,rootSnapshot:r})=>{let i=new T(r,e),o=new ht("",i),s=mi(r,[],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 le([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,g,e).pipe(m(r=>({children:r,rootSnapshot:e})),J(r=>{if(r instanceof ke)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof $e?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(m(s=>s instanceof T?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return I(o).pipe(ne(s=>{let u=r.children[s],a=Ai(e,s);return this.processSegmentGroup(n,a,u,s,i)}),br((s,u)=>(s.push(...u),s)),Rt(null),wr(),M(s=>{if(s===null)return ae(r);let u=kn(s);return fo(u),f(u)}))}processSegment(n,e,r,i,o,s,u){return I(e).pipe(ne(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,o,s,u).pipe(J(c=>{if(c instanceof $e)return f(null);throw c}))),Q(a=>!!a),J(a=>{if(Nn(a))return co(r,i,o)?f(new sr):ae(r);throw a}))}processSegmentAgainstRoute(n,e,r,i,o,s,u,a){return N(r)!==s&&(s===g||!vt(i,o,r))?ae(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,a):ae(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,u){let{matched:a,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:y}=$n(e,i,o);if(!a)return ae(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ho&&(this.allowRedirects=!1));let $=new le(o,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(i),N(i),i.component??i._loadedComponent??null,i,hn(i)),w=lt($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(w.params),$.data=Object.freeze(w.data);let H=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,$,n);return this.applyRedirects.lineralizeSegments(i,H).pipe(M(x=>this.processSegment(n,r,e,x.concat(y),s,!1,u)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let u=no(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),u.pipe(P(a=>a.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(P(({routes:c})=>{let d=r._loadedInjector??n,{parameters:p,consumedSegments:y,remainingSegments:$}=a,w=new le(y,p,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(r),N(r),r.component??r._loadedComponent??null,r,hn(r)),H=lt(w,s,this.paramsInheritanceStrategy);w.params=Object.freeze(H.params),w.data=Object.freeze(H.data);let{segmentGroup:x,slicedSegments:Re}=cn(e,y,$,c);if(Re.length===0&&x.hasChildren())return this.processChildren(d,c,x,w).pipe(m(Be=>new T(w,Be)));if(c.length===0&&Re.length===0)return f(new T(w,[]));let Yn=N(r)===o;return this.processSegment(d,c,x,Re,Yn?g:o,!0,w).pipe(m(Be=>new T(w,Be instanceof T?[Be]:[])))}))):ae(e)))}getChildConfig(n,e,r){return e.children?f({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):Ji(n,e,r,this.urlSerializer).pipe(M(i=>i?this.configLoader.loadChildren(n,e).pipe(R(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ro(e))):f({routes:[],injector:n})}};function fo(t){t.sort((n,e)=>n.value.outlet===g?-1:e.value.outlet===g?1:n.value.outlet.localeCompare(e.value.outlet))}function po(t){let n=t.value.routeConfig;return n&&n.path===""}function kn(t){let n=[],e=new Set;for(let r of t){if(!po(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=kn(r.children);n.push(new T(r.value,i))}return n.filter(r=>!e.has(r))}function ln(t){return t.data||{}}function hn(t){return t.resolve||{}}function go(t,n,e,r,i,o){return M(s=>lo(t,n,e,r,s.extractedUrl,i,o).pipe(m(({state:u,tree:a})=>D(h({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function vo(t,n){return M(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of _n(a))s.add(c);let u=0;return I(s).pipe(ne(a=>o.has(a)?mo(a,r,t,n):(a.data=lt(a,a.parent,t).resolve,f(void 0))),R(()=>u++),wt(1),M(a=>u===s.size?f(e):G))})}function _n(t){let n=t.children.map(e=>_n(e)).flat();return[t,...n]}function mo(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Un(i)&&(o[_e]=i.title),yo(o,t,n,r).pipe(m(s=>(t._resolvedData=s,t.data=lt(t,t.parent,e).resolve,null)))}function yo(t,n,e,r){let i=kt(t);if(i.length===0)return f({});let o={};return I(i).pipe(M(s=>Co(t[s],n,e,r).pipe(Q(),R(u=>{if(u instanceof Le)throw dt(new fe,u);o[s]=u}))),wt(1),Rr(o),J(s=>Nn(s)?G:we(s)))}function Co(t,n,e,r){let i=ze(n)??r,o=Ce(t,i),s=o.resolve?o.resolve(n,e):k(i,()=>o(n,e));return Y(s)}function Lt(t){return P(n=>{let e=t(n);return e?I(e).pipe(m(()=>n)):f(n)})}var zn=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===g);return r}getResolvedTitleForRoute(e){return e.data[_e]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(So),providedIn:"root"})}return t})(),So=(()=>{class t extends zn{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(q(rn))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Se=new A("",{providedIn:"root",factory:()=>({})}),Ro=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=_r({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,i){r&1&&Wr(0,"router-outlet")},dependencies:[Ti],encapsulation:2})}return t})();function lr(t){let n=t.children&&t.children.map(lr),e=n?D(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Ro),e}var me=new A(""),hr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Ke);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=Y(e.loadComponent()).pipe(m(Fn),R(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),He(()=>{this.componentLoaders.delete(e)})),i=new Ct(r,()=>new W).pipe(yt());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=wo(r,this.compiler,e,this.onLoadEndListener).pipe(He(()=>{this.childrenLoaders.delete(r)})),s=new Ct(o,()=>new W).pipe(yt());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wo(t,n,e,r){return Y(t.loadChildren()).pipe(m(Fn),M(i=>i instanceof kr||Array.isArray(i)?f(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(me,[],{optional:!0,self:!0}).flat()),{routes:s.map(lr),injector:o}}))}function bo(t){return t&&typeof t=="object"&&"default"in t}function Fn(t){return bo(t)?t.default:t}var dr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Io),providedIn:"root"})}return t})(),Io=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qn=new A(""),Bn=new A("");function Ao(t,n,e){let r=t.get(Bn),i=t.get(Jr);return t.get(Ge).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),u=i.startViewTransition(()=>(o(),Do(t))),{onViewTransitionCreated:a}=r;return a&&k(t,()=>a({transition:u,from:n,to:e})),s})}function Do(t){return new Promise(n=>{jr({read:()=>setTimeout(n)},{injector:t})})}var fr=new A(""),mt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new W;transitionAbortSubject=new W;configLoader=l(hr);environmentInjector=l(Ie);urlSerializer=l(ye);rootContexts=l(Fe);location=l(Ae);inputBindingEnabled=l(gt,{optional:!0})!==null;titleStrategy=l(zn);options=l(Se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(dr);createViewTransition=l(qn,{optional:!0});navigationErrorHandler=l(fr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;constructor(){let e=i=>this.events.next(new Wt(i)),r=i=>this.events.next(new Gt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(D(h(h({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new E({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ee,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),m(o=>D(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),P(o=>{let s=!1,u=!1;return f(o).pipe(P(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),G;this.currentTransition=o,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?D(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.rawUrl),p,ot.IgnoredSameUrlNavigation)),a.resolve(!1),G}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(P(p=>{let y=this.transitions?.getValue();return this.events.next(new pe(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),y!==this.transitions?.getValue()?G:Promise.resolve(p)}),go(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),R(p=>{o.targetSnapshot=p.targetSnapshot,o.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=D(h({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let y=new st(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:y,source:$,restoredState:w,extras:H}=a,x=new pe(p,this.urlSerializer.serialize(y),$,w);this.events.next(x);let Re=On(this.rootComponentType).snapshot;return this.currentTransition=o=D(h({},a),{targetSnapshot:Re,urlAfterRedirects:y,extras:D(h({},H),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(o)}else{let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.extractedUrl),p,ot.IgnoredByUrlHandlingStrategy)),a.resolve(!1),G}}),R(a=>{let c=new qt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=o=D(h({},a),{guards:ji(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),Hi(this.environmentInjector,a=>this.events.next(a)),R(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw dt(this.urlSerializer,a.guardsResult);let c=new Bt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",O.GuardRejected),!1)),Lt(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(R(c=>{let d=new Vt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),P(c=>{let d=!1;return f(c).pipe(vo(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",O.NoDataFromResolver)}}))}),R(c=>{let d=new Ht(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),Lt(a=>{let c=d=>{let p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(R(y=>{d.component=y}),m(()=>{})));for(let y of d.children)p.push(...c(y));return p};return Ve(c(a.targetSnapshot.root)).pipe(Rt(null),ie(1))}),Lt(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return d?I(d).pipe(m(()=>o)):f(o)}),m(a=>{let c=Oi(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=D(h({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),R(()=>{this.events.next(new je)}),Pi(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ie(1),R({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new L(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Ar(this.transitionAbortSubject.pipe(R(a=>{throw a}))),He(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(u=!0,jn(a))this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),xi(a)?this.events.next(new ge(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Pe(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let d=k(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof Le){let{message:p,cancellationCode:y}=dt(this.urlSerializer,d);this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),p,y)),this.events.next(new ge(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return G}))}))}cancelNavigationTransition(e,r,i){let o=new B(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);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))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Mo(t){return t!==Ee}var To=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Oo),providedIn:"root"})}return t})(),ur=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Oo=(()=>{class t extends ur{static \u0275fac=(()=>{let e;return function(i){return(e||(e=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Eo),providedIn:"root"})}return t})(),Eo=(()=>{class t extends Vn{location=l(Ae);urlSerializer=l(ye);options=l(Se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=l(dr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new V;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=On(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof pe)this.stateMemento=this.createStateMemento();else if(e instanceof K)this.rawUrlTree=r.initialUrl;else if(e instanceof st){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else e instanceof je?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):e instanceof B&&(e.code===O.GuardRejected||e.code===O.NoDataFromResolver)?this.restoreHistory(r):e instanceof Pe?this.restoreHistory(r,!0):e instanceof L&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof V?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=h(h({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&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,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Te=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Te||{});function Hn(t,n){t.events.pipe(X(e=>e instanceof L||e instanceof B||e instanceof Pe||e instanceof K),m(e=>e instanceof L||e instanceof K?Te.COMPLETE:(e instanceof B?e.code===O.Redirect||e.code===O.SupersededByNewNavigation:!1)?Te.REDIRECTING:Te.FAILED),X(e=>e!==Te.REDIRECTING),ie(1)).subscribe(()=>{n()})}var Uo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},z=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(qr);stateManager=l(Vn);options=l(Se,{optional:!0})||{};pendingTasks=l(xr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(mt);urlSerializer=l(ye);location=l(Ae);urlHandlingStrategy=l(dr);_events=new W;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(To);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(me,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(gt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new vr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof B&&r.code!==O.Redirect&&r.code!==O.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof L)this.navigated=!0;else if(r instanceof ge){let s=r.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Mo(i.source)},s);this.scheduleNavigation(u,Ee,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}jo(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});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),Ee,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=h({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,r,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(lr),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,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=r,c=a?this.currentUrlTree.fragment:s,d=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let y=i?i.snapshot:this.routerState.snapshot.root;p=An(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),p=this.currentUrlTree.root}return Dn(p,e,d,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=re(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ee,null,r)}navigate(e,r={skipLocationChange:!1}){return Po(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=h({},Uo):r===!1?i=h({},xo):i=r,re(e))return nn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return nn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((p,y)=>{u=p,a=y});let d=this.pendingTasks.add();return Hn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Po(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new b(4008,!1)}function jo(t){return!(t instanceof je)&&!(t instanceof ge)}var dn=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new W;constructor(e,r,i,o,s,u){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof L&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(re(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!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 r=this.href===null?null:Nr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:re(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 \u0275fac=function(r){return new(r||t)(j(z),j(Z),Ur("tabindex"),j(Mt),j(Dt),j(se))};static \u0275dir=Qe({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Gr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Hr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ye],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ye],replaceUrl:[2,"replaceUrl","replaceUrl",Ye],routerLink:"routerLink"},features:[Fr,We]})}return t})(),ms=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new oe;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof L&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(be()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=I(e).pipe(be()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=No(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(j(z),j(Dt),j(Mt),j(Ze),j(dn,8))};static \u0275dir=Qe({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Qr(o,dn,5),r&2){let s;Kr(s=Zr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[We]})}return t})();function No(t){return!!t.paths}var pt=class{},ys=(()=>{class t{preload(e,r){return r().pipe(J(()=>f(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cs=(()=>{class t{preload(e,r){return f(null)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lo=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(X(e=>e instanceof L),ne(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Tt(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,u=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(u,o.children??o._loadedRoutes))}return I(i).pipe(be())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=f(null);let o=i.pipe(M(s=>s===null?f(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return I([o,s]).pipe(be())}else return o})}static \u0275fac=function(r){return new(r||t)(q(z),q(Ke),q(Ie),q(pt),q(hr))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new A(""),Wn=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,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 pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof L?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof K&&e.code===ot.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 at&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new at(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Lr()};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Ss(t,...n){return Er([{provide:me,multi:!0,useValue:t},[],{provide:Z,useFactory:Gn,deps:[z]},{provide:Et,multi:!0,useFactory:Qn},n.map(e=>e.\u0275providers)])}function Gn(t){return t.routerState.root}function F(t,n){return{\u0275kind:t,\u0275providers:n}}function Rs(t){return[{provide:me,multi:!0,useValue:t},[]]}function ws(t={}){return F(4,[{provide:pr,useFactory:()=>{let e=l(xt),r=l(Ge),i=l(mt),o=l(ye);return new Wn(o,i,e,r,t)}}])}function Qn(){let t=l(At);return n=>{let e=t.get(Vr);if(n!==e.components[0])return;let r=t.get(z),i=t.get(Kn);t.get(gr)===1&&r.initialNavigation(),t.get(Zn,null,bt.Optional)?.setUpPreloading(),t.get(pr,null,bt.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Kn=new A("",{factory:()=>new W}),gr=new A("",{providedIn:"root",factory:()=>1});function $o(){return F(2,[{provide:gr,useValue:0},{provide:Ot,multi:!0,deps:[At],useFactory:n=>{let e=n.get(en,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(z),o=n.get(Kn);Hn(i,()=>{r(!0)}),n.get(mt).afterPreactivation=()=>(r(!0),o.closed?f(void 0):o),i.initialNavigation()}))}}])}function ko(){return F(3,[{provide:Ot,multi:!0,useFactory:()=>{let n=l(z);return()=>{n.setUpLocationChangeListener()}}},{provide:gr,useValue:2}])}function bs(){let t=[];return t=[],F(1,t)}var Zn=new A("");function _o(t){return F(0,[{provide:Zn,useExisting:Lo},{provide:pt,useExisting:t}])}function Is(t){return F(5,[{provide:Se,useValue:t}])}function As(){return F(6,[{provide:se,useClass:Ut}])}function Ds(t){return F(7,[{provide:fr,useValue:t}])}function zo(){return F(8,[un,{provide:gt,useExisting:un}])}function Fo(t){let n=[{provide:qn,useValue:Ao},{provide:Bn,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return F(9,n)}var fn=new A("ROUTER_FORROOT_GUARD"),qo=[Ae,{provide:ye,useClass:fe},z,Fe,{provide:Z,useFactory:Gn,deps:[z]},hr,[]],Ms=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[qo,[],{provide:me,multi:!0,useValue:e},{provide:fn,useFactory:Wo,deps:[[z,new Tr,new Or]]},r?.errorHandler?{provide:fr,useValue:r.errorHandler}:[],{provide:Se,useValue:r||{}},r?.useHash?Vo():Ho(),Bo(),r?.preloadingStrategy?_o(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Go(r):[],r?.bindToComponentInputs?zo().\u0275providers:[],r?.enableViewTransitions?Fo().\u0275providers:[],Qo()]}}static forChild(e){return{ngModule:t,providers:[{provide:me,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)(q(fn,8))};static \u0275mod=zr({type:t});static \u0275inj=Dr({})}return t})();function Bo(){return{provide:pr,useFactory:()=>{let t=l(xt),n=l(Ge),e=l(Se),r=l(mt),i=l(ye);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Wn(i,r,t,n,e)}}}function Vo(){return{provide:se,useClass:Ut}}function Ho(){return{provide:se,useClass:tn}}function Wo(t){return"guarded"}function Go(t){return[t.initialNavigation==="disabled"?ko().\u0275providers:[],t.initialNavigation==="enabledBlocking"?$o().\u0275providers:[]]}var pn=new A("");function Qo(){return[{provide:pn,useFactory:Qn},{provide:Et,multi:!0,useExisting:pn}]}function Ts(t){return t.map(n=>(...e)=>l(n).canMatch(...e))}function Os(t){return t.map(n=>(...e)=>l(n).canActivate(...e))}function Es(t){return t.map(n=>(...e)=>l(n).canActivateChild(...e))}function Us(t){return t.map(n=>(...e)=>l(n).canDeactivate(...e))}function xs(t){return(...n)=>l(t).resolve(...n)}var Ps=new Yr("19.0.1");export{g as a,de as b,Xn as c,V as d,v as e,ee as f,ye as g,fe as h,mi as i,S as j,U as k,pe as l,L as m,O as n,ot as o,B as p,K as q,Pe as r,st as s,qt as t,Bt as u,Vt as v,Ht as w,Wt as x,Gt as y,Qt as z,Kt as A,Zt as B,Yt as C,at as D,Xt as E,Fe as F,ct as G,Z as H,le as I,ht as J,Mi as K,Ti as L,Le as M,zn as N,So as O,Se as P,Ro as Q,me as R,wo as S,dr as T,To as U,ur as V,Hn as W,z as X,dn as Y,ms as Z,pt as _,ys as $,Cs as aa,Lo as ba,Ss as ca,Rs as da,ws as ea,$o as fa,ko as ga,bs as ha,_o as ia,Is as ja,As as ka,Ds as la,zo as ma,Fo as na,qo as oa,Ms as pa,pn as qa,Ts as ra,Os as sa,Es as ta,Us as ua,xs as va,Ps as wa};
@@ -1 +1 @@
1
- import{Dc as p,Ec as f,Fc as g,O as a,X as l,Za as b,ca as d,i as v,ja as y,ka as i}from"./chunk-RJDP2FPE.js";function m(s,e){!e?.injector&&d(m);let n=e?.injector??l(y),o=new v(1),u=g(()=>{let t;try{t=s()}catch(c){f(()=>o.error(c));return}f(()=>o.next(t))},{injector:n,manualCleanup:!0});return n.get(i).onDestroy(()=>{u.destroy(),o.complete()}),o.asObservable()}function w(s,e){let n=!e?.manualCleanup;n&&!e?.injector&&d(w);let o=n?e?.injector?.get(i)??l(i):null,u=h(e?.equal),t;e?.requireSync?t=b({kind:0},{equal:u}):t=b({kind:1,value:e?.initialValue},{equal:u});let c=s.subscribe({next:r=>t.set({kind:1,value:r}),error:r=>{if(e?.rejectErrors)throw r;t.set({kind:2,error:r})}});if(e?.requireSync&&t().kind===0)throw new a(601,!1);return o?.onDestroy(c.unsubscribe.bind(c)),p(()=>{let r=t();switch(r.kind){case 1:return r.value;case 2:throw r.error;case 0:throw new a(601,!1)}},{equal:e?.equal})}function h(s=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&s(e.value,n.value)}export{m as a,w as b};
1
+ import{Hc as p,Ic as f,Jc as g,O as a,X as l,Za as b,ca as d,i as v,ja as y,ka as i}from"./chunk-6RDPRL5W.js";function m(s,e){!e?.injector&&d(m);let n=e?.injector??l(y),o=new v(1),u=g(()=>{let t;try{t=s()}catch(c){f(()=>o.error(c));return}f(()=>o.next(t))},{injector:n,manualCleanup:!0});return n.get(i).onDestroy(()=>{u.destroy(),o.complete()}),o.asObservable()}function w(s,e){let n=!e?.manualCleanup;n&&!e?.injector&&d(w);let o=n?e?.injector?.get(i)??l(i):null,u=h(e?.equal),t;e?.requireSync?t=b({kind:0},{equal:u}):t=b({kind:1,value:e?.initialValue},{equal:u});let c=s.subscribe({next:r=>t.set({kind:1,value:r}),error:r=>{if(e?.rejectErrors)throw r;t.set({kind:2,error:r})}});if(e?.requireSync&&t().kind===0)throw new a(601,!1);return o?.onDestroy(c.unsubscribe.bind(c)),p(()=>{let r=t();switch(r.kind){case 1:return r.value;case 2:throw r.error;case 0:throw new a(601,!1)}},{equal:e?.equal})}function h(s=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&s(e.value,n.value)}export{m as a,w as b};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-ZAREJJZA.js";import{a as c}from"./chunk-BVTTY2FQ.js";import{X as u}from"./chunk-PD6257G7.js";import{B as e,E as l,Fc as h,N as i,R as a,X as s,Za as o}from"./chunk-RJDP2FPE.js";var p=class r{#e=s(m);#i=s(u);#s=s(c);#t=o(this.#e.getItemParsed("token")??null);#r=o(this.#e.getItemParsed("tokenSetTime")??null);#o=o(!1);tokenSetTime=this.#r.asReadonly();token=this.#t.asReadonly();isLoggingOut=this.#o.asReadonly();#n=h(()=>{if(!this.#t()){this.#e.clearAll(),this.#i.navigate(["/login"]);return}let t=Date.now();this.#e.setItemParsed("tokenSetTime",t),this.#e.setItemParsed("token",this.#t()),this.#r.set(this.#t()?t:null)});login(t="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:t,RememberMe:!0}}).pipe(e(1),i(n=>this.#t.set(n.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(e(1),i(t=>this.#t.set(t.AccessToken??null)))}logout(){this.#o.set(!0),this.#s.postApiV1AuthRefreshLogout().pipe(e(1),l(()=>this.#o.set(!1)),i(t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(n){return new(n||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};
1
+ import{a as c}from"./chunk-M6JAWID7.js";import{a as m}from"./chunk-QAOE722P.js";import{X as u}from"./chunk-VN5Y4LY2.js";import{B as e,E as l,Jc as h,N as i,R as a,X as s,Za as o}from"./chunk-6RDPRL5W.js";var p=class r{#e=s(c);#i=s(u);#s=s(m);#t=o(this.#e.getItemParsed("token")??null);#r=o(this.#e.getItemParsed("tokenSetTime")??null);#o=o(!1);tokenSetTime=this.#r.asReadonly();token=this.#t.asReadonly();isLoggingOut=this.#o.asReadonly();#n=h(()=>{if(!this.#t()){this.#e.clearAll(),this.#i.navigate(["/login"]);return}let t=Date.now();this.#e.setItemParsed("tokenSetTime",t),this.#e.setItemParsed("token",this.#t()),this.#r.set(this.#t()?t:null)});login(t="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:t,RememberMe:!0}}).pipe(e(1),i(n=>this.#t.set(n.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(e(1),i(t=>this.#t.set(t.AccessToken??null)))}logout(){this.#o.set(!0),this.#s.postApiV1AuthRefreshLogout().pipe(e(1),l(()=>this.#o.set(!1)),i(t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(n){return new(n||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};