From 8bb90fe5d311045b23bed0b67691f651b92b03ac Mon Sep 17 00:00:00 2001 From: acoffman Date: Tue, 12 Apr 2022 21:21:10 +0000 Subject: [PATCH] Automated frontend build --- ...1650f6c554.js => 1457.91c95cefa3cfff40.js} | 2 +- server/public/2033.98c7d970352312a5.js | 1 + server/public/3021.7c78e6391c41d18d.js | 1 - server/public/3179.ea3e6bc0a3ac79f8.js | 1 - server/public/3218.9a2a6eae0aa809aa.js | 1 + server/public/3218.c3517fe66324250b.js | 1 - server/public/3482.0effe2652c710328.js | 1 - server/public/3482.ed6f7f94eb7c422d.js | 1 + server/public/3730.7141625c22d9cd58.js | 1 + server/public/3730.ac4e30b97f660758.js | 1 - ...158d4b219e.js => 4024.5e7368279f79aeb4.js} | 121 +++++------------- server/public/4292.431ce70ec225de05.js | 1 - server/public/4292.73f4c12168601c38.js | 1 + server/public/4376.d1c8d351b50a66d5.js | 1 - server/public/4584.94bce0e7cd7772b3.js | 1 + ...b6eacdd605.js => 4658.0b2f1cd78524e647.js} | 2 +- server/public/5632.b4048d1a94cb9e29.js | 1 + server/public/5787.5ff21f0a9c6baf5f.js | 1 - server/public/5787.6afd9133542c6e90.js | 1 + server/public/605.0b7e1919acad6432.js | 1 + server/public/605.96b969c7e87e0600.js | 1 - server/public/6303.39a638159b50f07b.js | 1 - server/public/6303.e5fe598bc8a5dfd2.js | 1 + ...8cc8bfeed0c.js => 681.80f46e569d77955f.js} | 2 +- server/public/6875.9a3f371a86467784.js | 1 + server/public/7012.f719422393652a3a.js | 1 + ...67a5a564b7.js => 7559.f6ca9a429933f621.js} | 2 +- server/public/7598.72692bbf9e6a5d2a.js | 1 - server/public/7893.09cc89d441456629.js | 1 + ...3ea68943616b.js => 79.88f59fde8cf78eea.js} | 2 +- server/public/8571.5eda17590c08c24e.js | 1 - server/public/8571.600728d2995f4bfc.js | 1 + server/public/8776.ed869c164e41c284.js | 1 - ...b29104dae0.js => 9020.4a98dc48a9af4544.js} | 2 +- server/public/9081.0ab72e89b7403f00.js | 1 - server/public/9484.aee7e3e6cb2747e5.js | 1 - server/public/9484.eba4a2cb1d41b5d4.js | 1 + ...0d942857de.js => 9636.fb2df4966b3986b1.js} | 2 +- ...est-8354fbb7c7cf2522fbdf49603160eca2.json} | 2 +- ...2676d49df561c3d06723770321fd441977c.css.gz | Bin 388 -> 388 bytes ...06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz | Bin 7762 -> 7762 bytes ...8e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz | Bin 1281094 -> 1281094 bytes ...86c9a957a5e40713d58f54be71b66954a1ff.js.gz | Bin 24 -> 24 bytes ...3f5eae961b616b07904fa27002eed3dd8a7b.js.gz | Bin 113438 -> 113438 bytes ...45370e53e4bf243a32c9a471cb83a00f7d3.css.gz | Bin 56693 -> 56693 bytes ...35ef376b55d125bb4516cebeb14ce788597.css.gz | Bin 20 -> 20 bytes ...a57c6cc3f1043baf75e29c8349022a42907.svg.gz | Bin 254576 -> 254576 bytes ...8dda939e190a18149f57d5bc1fe4ac11b8d.ttf.gz | Bin 92666 -> 92666 bytes ...5e1158f767541186b9c692faa9394475059.eot.gz | Bin 92791 -> 92791 bytes ...42356f7b5da951980969a599e81f99a2a93.svg.gz | Bin 37143 -> 37143 bytes ...8f4da228f1906de09c095bf39735b77c989.ttf.gz | Bin 16740 -> 16740 bytes ...0f5156015904c2e55d0a76eadeb1ad4f519.eot.gz | Bin 16794 -> 16794 bytes ...161c2c575664a13ef43d2cae15ee7d92221.eot.gz | Bin 105059 -> 105059 bytes ...58870cb59968ec411d70f060d6bc684f721.svg.gz | Bin 255574 -> 255574 bytes ...0495c34782e75988e02e1b0f971b4d0bfdf.ttf.gz | Bin 104966 -> 104966 bytes ...54f56146915dca7ba28284b8405562d3ec8.css.gz | Bin 287 -> 287 bytes ...d2d74af01039bdc68eb5031fcb20817623f.css.gz | Bin 2193 -> 2193 bytes server/public/common.0319ec8b62184fc2.js | 1 + server/public/common.acceea69d48490b4.js | 1 - server/public/index.html | 2 +- server/public/main.8b48a5649d5fb513.js | 1 + server/public/main.f13c0355e8f1931c.js | 1 - server/public/runtime.2fa38d3546d84168.js | 1 - server/public/runtime.b073059867a5e47b.js | 1 + 64 files changed, 62 insertions(+), 113 deletions(-) rename server/public/{1457.519fd91650f6c554.js => 1457.91c95cefa3cfff40.js} (73%) create mode 100644 server/public/2033.98c7d970352312a5.js delete mode 100644 server/public/3021.7c78e6391c41d18d.js delete mode 100644 server/public/3179.ea3e6bc0a3ac79f8.js create mode 100644 server/public/3218.9a2a6eae0aa809aa.js delete mode 100644 server/public/3218.c3517fe66324250b.js delete mode 100644 server/public/3482.0effe2652c710328.js create mode 100644 server/public/3482.ed6f7f94eb7c422d.js create mode 100644 server/public/3730.7141625c22d9cd58.js delete mode 100644 server/public/3730.ac4e30b97f660758.js rename server/public/{4024.9ef20c158d4b219e.js => 4024.5e7368279f79aeb4.js} (56%) delete mode 100644 server/public/4292.431ce70ec225de05.js create mode 100644 server/public/4292.73f4c12168601c38.js delete mode 100644 server/public/4376.d1c8d351b50a66d5.js create mode 100644 server/public/4584.94bce0e7cd7772b3.js rename server/public/{4658.e20841b6eacdd605.js => 4658.0b2f1cd78524e647.js} (96%) create mode 100644 server/public/5632.b4048d1a94cb9e29.js delete mode 100644 server/public/5787.5ff21f0a9c6baf5f.js create mode 100644 server/public/5787.6afd9133542c6e90.js create mode 100644 server/public/605.0b7e1919acad6432.js delete mode 100644 server/public/605.96b969c7e87e0600.js delete mode 100644 server/public/6303.39a638159b50f07b.js create mode 100644 server/public/6303.e5fe598bc8a5dfd2.js rename server/public/{681.507ad8cc8bfeed0c.js => 681.80f46e569d77955f.js} (97%) create mode 100644 server/public/6875.9a3f371a86467784.js create mode 100644 server/public/7012.f719422393652a3a.js rename server/public/{7559.a5a35b67a5a564b7.js => 7559.f6ca9a429933f621.js} (79%) delete mode 100644 server/public/7598.72692bbf9e6a5d2a.js create mode 100644 server/public/7893.09cc89d441456629.js rename server/public/{79.45fe3ea68943616b.js => 79.88f59fde8cf78eea.js} (95%) delete mode 100644 server/public/8571.5eda17590c08c24e.js create mode 100644 server/public/8571.600728d2995f4bfc.js delete mode 100644 server/public/8776.ed869c164e41c284.js rename server/public/{9020.4668e5b29104dae0.js => 9020.4a98dc48a9af4544.js} (65%) delete mode 100644 server/public/9081.0ab72e89b7403f00.js delete mode 100644 server/public/9484.aee7e3e6cb2747e5.js create mode 100644 server/public/9484.eba4a2cb1d41b5d4.js rename server/public/{9636.8eed820d942857de.js => 9636.fb2df4966b3986b1.js} (55%) rename server/public/assets/{.sprockets-manifest-0b0c8677246b646bb0889aeddbe910a3.json => .sprockets-manifest-8354fbb7c7cf2522fbdf49603160eca2.json} (83%) create mode 100644 server/public/common.0319ec8b62184fc2.js delete mode 100644 server/public/common.acceea69d48490b4.js create mode 100644 server/public/main.8b48a5649d5fb513.js delete mode 100644 server/public/main.f13c0355e8f1931c.js delete mode 100644 server/public/runtime.2fa38d3546d84168.js create mode 100644 server/public/runtime.b073059867a5e47b.js diff --git a/server/public/1457.519fd91650f6c554.js b/server/public/1457.91c95cefa3cfff40.js similarity index 73% rename from server/public/1457.519fd91650f6c554.js rename to server/public/1457.91c95cefa3cfff40.js index 5a876ca46..f4ae70a63 100644 --- a/server/public/1457.519fd91650f6c554.js +++ b/server/public/1457.91c95cefa3cfff40.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1457],{7946:(S,_,t)=>{t.d(_,{x:()=>E});var h=t(9808),n=t(897),o=t(8481),z=t(3610),T=t(8018),P=t(3580),x=t(9476),O=t(5e3);let E=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275mod=O.oAB({type:f}),f.\u0275inj=O.cJS({imports:[[h.ez,o.X,z.$6,n.$,T.e,P.Q,x.L]]}),f})()},8664:(S,_,t)=>{t.d(_,{I:()=>b});var h=t(6654),n=t(5e3),o=t(9808),z=t(325),T=t(8481),P=t(3610),x=t(4850),O=t(712),E=t(7484),f=t(647),y=t(3193),C=t(3098),M=t(6550),e=t(1894),A=t(8144),v=t(6949);function I(a,l){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const r=n.oxw().ngIf;n.xp6(1),n.hij(" ",r.name," ")}}function D(a,l){if(1&a&&n._UZ(0,"cvc-gene-tag",14),2&a){const r=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",r.gene)}}function V(a,l){1&a&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function N(a,l){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,V,2,0,"span",1),n.qZA()),2&a){const r=l.$implicit,m=l.last;n.xp6(1),n.hij(" ",r,""),n.xp6(1),n.Q6J("ngIf",!m)}}function L(a,l){if(1&a&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,N,3,2,"span",16),n.qZA()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",r.variantAliases)}}function B(a,l){if(1&a&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",r.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",r.alleleRegistryId," ")}}function R(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/flags"),n.xp6(3),n.hij(" Flags (",r.flags.totalCount,") ")}}function J(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",r.revisions.totalCount,") ")}}function s(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/comments"),n.xp6(3),n.hij(" Comments (",r.comments.totalCount,") ")}}function u(a,l){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,I,2,1,"ng-template",null,3,n.W1O),n.YNc(4,D,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,L,2,1,"nz-descriptions-item",6),n.YNc(8,B,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,R,4,2,"a",12),n.YNc(15,J,4,2,"a",12),n.YNc(16,s,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const r=l.ngIf,m=n.MAs(3),U=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",m)("nzExtra",U),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",r.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",r.alleleRegistryId),n.xp6(2),n.hij(" ",r.evidenceItems.totalCount," ")}}let c=(()=>{class a{constructor(r){this.gql=r}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,x.U)(({data:r})=>r.variant))}}return a.\u0275fac=function(r){return new(r||a)(n.Y36(O.ZYZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(r,m){1&r&&(n.TgZ(0,"div",0),n.YNc(1,u,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&r&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,m.variant$)))},directives:[o.O5,E.bd,f.Ls,y.H,C.R7,C.uj,o.sg,M.l,e.SK,e.t3,A.NU,A.$1,z.yS,T.j],pipes:[v.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),a})();function d(a,l){}function Z(a,l){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,d,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const r=n.oxw(),m=n.MAs(2);n.xp6(1),n.Q6J("routerLink",r.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function Q(a,l){}function Y(a,l){if(1&a){const r=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(U){return n.CHM(r),n.oxw(2).itemClosed(U)}),n.YNc(1,Q,0,0,"ng-template",6),n.qZA()}if(2&a){n.oxw();const r=n.MAs(2),m=n.oxw(),U=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",m.onCloseClicked?0:.5)("nzPopoverContent",r)("nzMode",m.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",U)}}function i(a,l){if(1&a&&n._UZ(0,"cvc-variant-popover",11),2&a){const r=n.oxw(3);n.Q6J("variantId",r.variant.id)}}function p(a,l){if(1&a&&n.YNc(0,i,1,1,"cvc-variant-popover",10),2&a){const r=n.oxw(2);n.Q6J("ngIf",r.enablePopover)}}function g(a,l){if(1&a&&(n.YNc(0,Y,2,4,"nz-tag",7),n.YNc(1,p,1,1,"ng-template",null,8,n.W1O)),2&a){const r=n.oxw(),m=n.MAs(4);n.Q6J("ngIf",r.enablePopover)("ngIfElse",m)}}function W(a,l){}function w(a,l){if(1&a){const r=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(U){return n.CHM(r),n.oxw().itemClosed(U)}),n.YNc(1,W,0,0,"ng-template",6),n.qZA()}if(2&a){const r=n.oxw(),m=n.MAs(8);n.Q6J("nzMode",r.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function F(a,l){}function K(a,l){if(1&a&&n.YNc(0,F,0,0,"ng-template",6),2&a){n.oxw();const r=n.MAs(2);n.Q6J("ngTemplateOutlet",r)}}function j(a,l){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const r=n.oxw();n.xp6(1),n.hij(" ",r.variant.name,"\n")}}let b=(()=>{class a extends h.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(r,m){if(1&r&&(n.YNc(0,Z,3,2,"ng-container",0),n.YNc(1,g,3,2,"ng-template",null,1,n.W1O),n.YNc(3,w,2,2,"ng-template",null,2,n.W1O),n.YNc(5,K,1,1,"ng-template",null,3,n.W1O),n.YNc(7,j,2,1,"ng-template",null,4,n.W1O)),2&r){const U=n.MAs(6);n.Q6J("ngIf",m.linked)("ngIfElse",U)}},directives:[o.O5,z.yS,o.tP,T.j,P.lU,c,f.Ls],styles:[""]}),a})()},4867:(S,_,t)=>{t.d(_,{Q:()=>A});var h=t(9808),n=t(325),o=t(8481),z=t(647),T=t(3610),P=t(6949),x=t(7484),O=t(1894),E=t(3098),f=t(8144),y=t(3309),C=t(3630),M=t(5e3);let e=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=M.oAB({type:v}),v.\u0275inj=M.cJS({imports:[[h.ez,n.Bz,P.WG,x.vh,O.Jb,E.q6,o.X,z.PV,f.zf,y.U,C.X]]}),v})(),A=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=M.oAB({type:v}),v.\u0275inj=M.cJS({imports:[[h.ez,n.Bz,o.X,T.$6,z.PV,e]]}),v})()},3154:(S,_,t)=>{t.d(_,{_:()=>n});var h=t(712);function n(o){var z;switch(o.value){case"ascend":z=h.SrV.Asc;break;case"descend":z=h.SrV.Desc;break;default:return}return{column:o.key,direction:z}}},7727:(S,_,t)=>{t.r(_),t.d(_,{EvidenceModule:()=>Y});var h=t(9808),n=t(325),o=t(5630),z=t(1945),T=t(1894),P=t(647),x=t(767),O=t(3309),E=t(6949),f=t(6462),y=t(6042),C=t(8144),M=t(3618),e=t(5e3);let A=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[h.ez,n.Bz,E.WG,y.sL,f.m,z.KJ,T.Jb,P.PV,C.zf,M.ZJ,o.D,O.U,x.Q]]}),i})();var v=t(9350),I=t(8992),D=t(2643),V=t(2683),N=t(8965);function L(i,p){1&i&&(e.TgZ(0,"button",15),e._UZ(1,"i",16),e._uU(2," Submit New Evidence "),e.qZA())}function B(i,p){if(1&i&&(e.ynx(0),e.YNc(1,L,3,0,"button",14),e.BQk()),2&i){const g=p.ngrxLet;e.xp6(1),e.Q6J("ngIf",g.signedIn)}}function R(i,p){if(1&i&&e.YNc(0,B,2,1,"ng-container",13),2&i){const g=e.oxw();e.Q6J("ngrxLet",g.viewer$)}}function J(i,p){1&i&&(e.TgZ(0,"a",17),e._UZ(1,"i",18),e._uU(2," View Evidence Model Docs "),e.qZA())}function s(i,p){1&i&&(e.TgZ(0,"a",19),e._UZ(1,"i",18),e._uU(2," View Evidence Curation Docs "),e.qZA())}function u(i,p){1&i&&(e.TgZ(0,"nz-row"),e.TgZ(1,"div",20),e.TgZ(2,"div",21),e._UZ(3,"cvc-evidence-table",22),e.qZA(),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.Q6J("nzSpan",24))}const Z=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(g){return new(g||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-evidence"]],decls:1,vars:0,template:function(g,W){1&g&&e._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(g){this.viewerService=g,this.tableView=!0,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return i.\u0275fac=function(g){return new(g||i)(e.Y36(v.a))},i.\u0275cmp=e.Xpm({type:i,selectors:[["evidence-home"]],decls:18,vars:3,consts:[[3,"actionsTpl"],["evidenceActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:evidence"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[4,"ngIf"],[4,"ngrxLet"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Evidence"]],template:function(g,W){if(1&g&&(e._UZ(0,"cvc-section-navigation",0),e.YNc(1,R,1,1,"ng-template",null,1,e.W1O),e.TgZ(3,"nz-page-header",2),e.TgZ(4,"nz-page-header-content"),e.TgZ(5,"nz-row",3),e.TgZ(6,"nz-col",4),e._UZ(7,"i",5),e.qZA(),e.TgZ(8,"nz-col",6),e.TgZ(9,"h2"),e._uU(10,"Evidence Items"),e.qZA(),e.TgZ(11,"p",7),e._uU(12,"The clinical evidence statement is a piece of information that has been manually curated from trustable medical literature about a variant or genomic \u2018event\u2019 that has implications in cancer predisposition, diagnosis (aka molecular classification), prognosis, or predictive response to therapy."),e.qZA(),e.qZA(),e.TgZ(13,"nz-col",8),e.TgZ(14,"nz-space",9),e.YNc(15,J,3,0,"a",10),e.YNc(16,s,3,0,"a",11),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,u,4,1,"nz-row",12),e.qZA(),e.qZA()),2&g){const w=e.MAs(2);e.Q6J("actionsTpl",w),e.xp6(11),e.Q6J("nzEllipsisRows",2),e.xp6(6),e.Q6J("ngIf",W.tableView)}},directives:[I.I,E.eJ,h.O5,y.ix,D.dQ,n.rH,V.w,P.Ls,z.$O,z.u5,T.SK,T.t3,M.ZU,C.NU,C.$1,N.a],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}:[_nghost-%COMP%]{position:relative}"]}),i})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(1679),t.e(3021),t.e(8776),t.e(4376),t.e(3730),t.e(8592),t.e(7559)]).then(t.bind(t,7559)).then(i=>i.EvidenceAddModule),data:{breadcrumb:"Add"}},{path:":evidenceId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(2826),t.e(1679),t.e(2738),t.e(55),t.e(4292),t.e(3883),t.e(2043),t.e(3482),t.e(775),t.e(8592),t.e(9636)]).then(t.bind(t,9636)).then(i=>i.EvidenceDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(1679),t.e(3021),t.e(8776),t.e(4376),t.e(3730),t.e(8592),t.e(8571)]).then(t.bind(t,8571)).then(i=>i.EvidenceReviseModule),data:{breadcrumb:"Revise"}}]}]}];let Q=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[n.Bz.forChild(Z),A],n.Bz]}),i})(),Y=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[h.ez,Q]]}),i})()},6462:(S,_,t)=>{t.d(_,{i:()=>R,m:()=>J});var h=t(655),n=t(1159),o=t(5e3),z=t(4182),T=t(8929),P=t(3753),x=t(7625),O=t(9439),E=t(1721),f=t(5664),y=t(226),C=t(2643),M=t(9808),e=t(647),A=t(969);const v=["switchElement"];function I(s,u){1&s&&o._UZ(0,"i",8)}function D(s,u){if(1&s&&(o.ynx(0),o._uU(1),o.BQk()),2&s){const c=o.oxw(2);o.xp6(1),o.Oqu(c.nzCheckedChildren)}}function V(s,u){if(1&s&&(o.ynx(0),o.YNc(1,D,2,1,"ng-container",9),o.BQk()),2&s){const c=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",c.nzCheckedChildren)}}function N(s,u){if(1&s&&(o.ynx(0),o._uU(1),o.BQk()),2&s){const c=o.oxw(2);o.xp6(1),o.Oqu(c.nzUnCheckedChildren)}}function L(s,u){if(1&s&&o.YNc(0,N,2,1,"ng-container",9),2&s){const c=o.oxw();o.Q6J("nzStringTemplateOutlet",c.nzUnCheckedChildren)}}let R=(()=>{class s{constructor(c,d,Z,Q,Y,i){this.nzConfigService=c,this.host=d,this.ngZone=Z,this.cdr=Q,this.focusMonitor=Y,this.directionality=i,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new T.xQ}updateValue(c){this.isChecked!==c&&(this.isChecked=c,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,x.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,P.R)(this.host.nativeElement,"click").pipe((0,x.R)(this.destroy$)).subscribe(c=>{c.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,P.R)(this.switchElement.nativeElement,"keydown").pipe((0,x.R)(this.destroy$)).subscribe(c=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:d}=c;d!==n.oh&&d!==n.SV&&d!==n.L_&&d!==n.K5||(c.preventDefault(),this.ngZone.run(()=>{d===n.oh?this.updateValue(!1):d===n.SV?this.updateValue(!0):(d===n.L_||d===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,x.R)(this.destroy$)).subscribe(c=>{c||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(c){this.isChecked=c,this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.nzDisabled=c,this.cdr.markForCheck()}}return s.\u0275fac=function(c){return new(c||s)(o.Y36(O.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(f.tE),o.Y36(y.Is,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-switch"]],viewQuery:function(c,d){if(1&c&&o.Gf(v,7),2&c){let Z;o.iGM(Z=o.CRH())&&(d.switchElement=Z.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:z.JU,useExisting:(0,o.Gpc)(()=>s),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(c,d){if(1&c&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,I,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,V,2,1,"ng-container",5),o.YNc(6,L,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&c){const Z=o.MAs(7);o.ekj("ant-switch-checked",d.isChecked)("ant-switch-loading",d.nzLoading)("ant-switch-disabled",d.nzDisabled)("ant-switch-small","small"===d.nzSize)("ant-switch-rtl","rtl"===d.dir),o.Q6J("disabled",d.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",d.nzLoading),o.xp6(2),o.Q6J("ngIf",d.isChecked)("ngIfElse",Z)}},directives:[C.dQ,M.O5,e.Ls,A.f],encapsulation:2,changeDetection:0}),(0,h.gn)([(0,E.yF)()],s.prototype,"nzLoading",void 0),(0,h.gn)([(0,E.yF)()],s.prototype,"nzDisabled",void 0),(0,h.gn)([(0,E.yF)()],s.prototype,"nzControl",void 0),(0,h.gn)([(0,O.oS)()],s.prototype,"nzSize",void 0),s})(),J=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[y.vT,M.ez,C.vG,e.PV,A.T]]}),s})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1457],{7946:(S,_,t)=>{t.d(_,{x:()=>E});var h=t(9808),n=t(897),o=t(8481),z=t(3610),T=t(8018),P=t(3580),x=t(9476),O=t(5e3);let E=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275mod=O.oAB({type:f}),f.\u0275inj=O.cJS({imports:[[h.ez,o.X,z.$6,n.$,T.e,P.Q,x.L]]}),f})()},8664:(S,_,t)=>{t.d(_,{I:()=>b});var h=t(6654),n=t(5e3),o=t(9808),z=t(325),T=t(8481),P=t(3610),x=t(4850),O=t(712),E=t(7484),f=t(647),y=t(3193),C=t(3098),M=t(6550),e=t(1894),A=t(8144),v=t(6949);function I(a,l){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const r=n.oxw().ngIf;n.xp6(1),n.hij(" ",r.name," ")}}function D(a,l){if(1&a&&n._UZ(0,"cvc-gene-tag",14),2&a){const r=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",r.gene)}}function V(a,l){1&a&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function N(a,l){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,V,2,0,"span",1),n.qZA()),2&a){const r=l.$implicit,m=l.last;n.xp6(1),n.hij(" ",r,""),n.xp6(1),n.Q6J("ngIf",!m)}}function L(a,l){if(1&a&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,N,3,2,"span",16),n.qZA()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",r.variantAliases)}}function B(a,l){if(1&a&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",r.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",r.alleleRegistryId," ")}}function R(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/flags"),n.xp6(3),n.hij(" Flags (",r.flags.totalCount,") ")}}function J(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",r.revisions.totalCount,") ")}}function s(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/comments"),n.xp6(3),n.hij(" Comments (",r.comments.totalCount,") ")}}function u(a,l){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,I,2,1,"ng-template",null,3,n.W1O),n.YNc(4,D,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,L,2,1,"nz-descriptions-item",6),n.YNc(8,B,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,R,4,2,"a",12),n.YNc(15,J,4,2,"a",12),n.YNc(16,s,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const r=l.ngIf,m=n.MAs(3),U=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",m)("nzExtra",U),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",r.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",r.alleleRegistryId),n.xp6(2),n.hij(" ",r.evidenceItems.totalCount," ")}}let c=(()=>{class a{constructor(r){this.gql=r}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,x.U)(({data:r})=>r.variant))}}return a.\u0275fac=function(r){return new(r||a)(n.Y36(O.ZYZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(r,m){1&r&&(n.TgZ(0,"div",0),n.YNc(1,u,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&r&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,m.variant$)))},directives:[o.O5,E.bd,f.Ls,y.H,C.R7,C.uj,o.sg,M.l,e.SK,e.t3,A.NU,A.$1,z.yS,T.j],pipes:[v.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),a})();function d(a,l){}function Z(a,l){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,d,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const r=n.oxw(),m=n.MAs(2);n.xp6(1),n.Q6J("routerLink",r.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function Q(a,l){}function Y(a,l){if(1&a){const r=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(U){return n.CHM(r),n.oxw(2).itemClosed(U)}),n.YNc(1,Q,0,0,"ng-template",6),n.qZA()}if(2&a){n.oxw();const r=n.MAs(2),m=n.oxw(),U=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",m.onCloseClicked?0:.5)("nzPopoverContent",r)("nzMode",m.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",U)}}function i(a,l){if(1&a&&n._UZ(0,"cvc-variant-popover",11),2&a){const r=n.oxw(3);n.Q6J("variantId",r.variant.id)}}function p(a,l){if(1&a&&n.YNc(0,i,1,1,"cvc-variant-popover",10),2&a){const r=n.oxw(2);n.Q6J("ngIf",r.enablePopover)}}function g(a,l){if(1&a&&(n.YNc(0,Y,2,4,"nz-tag",7),n.YNc(1,p,1,1,"ng-template",null,8,n.W1O)),2&a){const r=n.oxw(),m=n.MAs(4);n.Q6J("ngIf",r.enablePopover)("ngIfElse",m)}}function W(a,l){}function w(a,l){if(1&a){const r=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(U){return n.CHM(r),n.oxw().itemClosed(U)}),n.YNc(1,W,0,0,"ng-template",6),n.qZA()}if(2&a){const r=n.oxw(),m=n.MAs(8);n.Q6J("nzMode",r.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function F(a,l){}function K(a,l){if(1&a&&n.YNc(0,F,0,0,"ng-template",6),2&a){n.oxw();const r=n.MAs(2);n.Q6J("ngTemplateOutlet",r)}}function j(a,l){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const r=n.oxw();n.xp6(1),n.hij(" ",r.variant.name,"\n")}}let b=(()=>{class a extends h.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(r,m){if(1&r&&(n.YNc(0,Z,3,2,"ng-container",0),n.YNc(1,g,3,2,"ng-template",null,1,n.W1O),n.YNc(3,w,2,2,"ng-template",null,2,n.W1O),n.YNc(5,K,1,1,"ng-template",null,3,n.W1O),n.YNc(7,j,2,1,"ng-template",null,4,n.W1O)),2&r){const U=n.MAs(6);n.Q6J("ngIf",m.linked)("ngIfElse",U)}},directives:[o.O5,z.yS,o.tP,T.j,P.lU,c,f.Ls],styles:[""]}),a})()},4867:(S,_,t)=>{t.d(_,{Q:()=>A});var h=t(9808),n=t(325),o=t(8481),z=t(647),T=t(3610),P=t(6949),x=t(7484),O=t(1894),E=t(3098),f=t(8144),y=t(3309),C=t(3630),M=t(5e3);let e=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=M.oAB({type:v}),v.\u0275inj=M.cJS({imports:[[h.ez,n.Bz,P.WG,x.vh,O.Jb,E.q6,o.X,z.PV,f.zf,y.U,C.X]]}),v})(),A=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=M.oAB({type:v}),v.\u0275inj=M.cJS({imports:[[h.ez,n.Bz,o.X,T.$6,z.PV,e]]}),v})()},3154:(S,_,t)=>{t.d(_,{_:()=>n});var h=t(712);function n(o){var z;switch(o.value){case"ascend":z=h.SrV.Asc;break;case"descend":z=h.SrV.Desc;break;default:return}return{column:o.key,direction:z}}},7727:(S,_,t)=>{t.r(_),t.d(_,{EvidenceModule:()=>Y});var h=t(9808),n=t(325),o=t(5630),z=t(1945),T=t(1894),P=t(647),x=t(767),O=t(3309),E=t(6949),f=t(6462),y=t(6042),C=t(8144),M=t(3618),e=t(5e3);let A=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[h.ez,n.Bz,E.WG,y.sL,f.m,z.KJ,T.Jb,P.PV,C.zf,M.ZJ,o.D,O.U,x.Q]]}),i})();var v=t(9350),I=t(8992),D=t(2643),V=t(2683),N=t(8965);function L(i,p){1&i&&(e.TgZ(0,"button",15),e._UZ(1,"i",16),e._uU(2," Submit New Evidence "),e.qZA())}function B(i,p){if(1&i&&(e.ynx(0),e.YNc(1,L,3,0,"button",14),e.BQk()),2&i){const g=p.ngrxLet;e.xp6(1),e.Q6J("ngIf",g.signedIn)}}function R(i,p){if(1&i&&e.YNc(0,B,2,1,"ng-container",13),2&i){const g=e.oxw();e.Q6J("ngrxLet",g.viewer$)}}function J(i,p){1&i&&(e.TgZ(0,"a",17),e._UZ(1,"i",18),e._uU(2," View Evidence Model Docs "),e.qZA())}function s(i,p){1&i&&(e.TgZ(0,"a",19),e._UZ(1,"i",18),e._uU(2," View Evidence Curation Docs "),e.qZA())}function u(i,p){1&i&&(e.TgZ(0,"nz-row"),e.TgZ(1,"div",20),e.TgZ(2,"div",21),e._UZ(3,"cvc-evidence-table",22),e.qZA(),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.Q6J("nzSpan",24))}const Z=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(g){return new(g||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-evidence"]],decls:1,vars:0,template:function(g,W){1&g&&e._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(g){this.viewerService=g,this.tableView=!0,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return i.\u0275fac=function(g){return new(g||i)(e.Y36(v.a))},i.\u0275cmp=e.Xpm({type:i,selectors:[["evidence-home"]],decls:18,vars:3,consts:[[3,"actionsTpl"],["evidenceActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:evidence"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[4,"ngIf"],[4,"ngrxLet"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Evidence"]],template:function(g,W){if(1&g&&(e._UZ(0,"cvc-section-navigation",0),e.YNc(1,R,1,1,"ng-template",null,1,e.W1O),e.TgZ(3,"nz-page-header",2),e.TgZ(4,"nz-page-header-content"),e.TgZ(5,"nz-row",3),e.TgZ(6,"nz-col",4),e._UZ(7,"i",5),e.qZA(),e.TgZ(8,"nz-col",6),e.TgZ(9,"h2"),e._uU(10,"Evidence Items"),e.qZA(),e.TgZ(11,"p",7),e._uU(12,"The clinical evidence statement is a piece of information that has been manually curated from trustable medical literature about a variant or genomic \u2018event\u2019 that has implications in cancer predisposition, diagnosis (aka molecular classification), prognosis, or predictive response to therapy."),e.qZA(),e.qZA(),e.TgZ(13,"nz-col",8),e.TgZ(14,"nz-space",9),e.YNc(15,J,3,0,"a",10),e.YNc(16,s,3,0,"a",11),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,u,4,1,"nz-row",12),e.qZA(),e.qZA()),2&g){const w=e.MAs(2);e.Q6J("actionsTpl",w),e.xp6(11),e.Q6J("nzEllipsisRows",2),e.xp6(6),e.Q6J("ngIf",W.tableView)}},directives:[I.I,E.eJ,h.O5,y.ix,D.dQ,n.rH,V.w,P.Ls,z.$O,z.u5,T.SK,T.t3,M.ZU,C.NU,C.$1,N.a],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}:[_nghost-%COMP%]{position:relative}"]}),i})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(1679),t.e(6875),t.e(2033),t.e(3730),t.e(8592),t.e(7559)]).then(t.bind(t,7559)).then(i=>i.EvidenceAddModule),data:{breadcrumb:"Add"}},{path:":evidenceId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(2826),t.e(1679),t.e(2738),t.e(55),t.e(4292),t.e(3883),t.e(2043),t.e(3482),t.e(775),t.e(8592),t.e(9636)]).then(t.bind(t,9636)).then(i=>i.EvidenceDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(1679),t.e(6875),t.e(2033),t.e(3730),t.e(8592),t.e(8571)]).then(t.bind(t,8571)).then(i=>i.EvidenceReviseModule),data:{breadcrumb:"Revise"}}]}]}];let Q=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[n.Bz.forChild(Z),A],n.Bz]}),i})(),Y=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[h.ez,Q]]}),i})()},6462:(S,_,t)=>{t.d(_,{i:()=>R,m:()=>J});var h=t(655),n=t(1159),o=t(5e3),z=t(4182),T=t(8929),P=t(3753),x=t(7625),O=t(9439),E=t(1721),f=t(5664),y=t(226),C=t(2643),M=t(9808),e=t(647),A=t(969);const v=["switchElement"];function I(s,u){1&s&&o._UZ(0,"i",8)}function D(s,u){if(1&s&&(o.ynx(0),o._uU(1),o.BQk()),2&s){const c=o.oxw(2);o.xp6(1),o.Oqu(c.nzCheckedChildren)}}function V(s,u){if(1&s&&(o.ynx(0),o.YNc(1,D,2,1,"ng-container",9),o.BQk()),2&s){const c=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",c.nzCheckedChildren)}}function N(s,u){if(1&s&&(o.ynx(0),o._uU(1),o.BQk()),2&s){const c=o.oxw(2);o.xp6(1),o.Oqu(c.nzUnCheckedChildren)}}function L(s,u){if(1&s&&o.YNc(0,N,2,1,"ng-container",9),2&s){const c=o.oxw();o.Q6J("nzStringTemplateOutlet",c.nzUnCheckedChildren)}}let R=(()=>{class s{constructor(c,d,Z,Q,Y,i){this.nzConfigService=c,this.host=d,this.ngZone=Z,this.cdr=Q,this.focusMonitor=Y,this.directionality=i,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new T.xQ}updateValue(c){this.isChecked!==c&&(this.isChecked=c,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,x.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,P.R)(this.host.nativeElement,"click").pipe((0,x.R)(this.destroy$)).subscribe(c=>{c.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,P.R)(this.switchElement.nativeElement,"keydown").pipe((0,x.R)(this.destroy$)).subscribe(c=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:d}=c;d!==n.oh&&d!==n.SV&&d!==n.L_&&d!==n.K5||(c.preventDefault(),this.ngZone.run(()=>{d===n.oh?this.updateValue(!1):d===n.SV?this.updateValue(!0):(d===n.L_||d===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,x.R)(this.destroy$)).subscribe(c=>{c||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(c){this.isChecked=c,this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.nzDisabled=c,this.cdr.markForCheck()}}return s.\u0275fac=function(c){return new(c||s)(o.Y36(O.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(f.tE),o.Y36(y.Is,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-switch"]],viewQuery:function(c,d){if(1&c&&o.Gf(v,7),2&c){let Z;o.iGM(Z=o.CRH())&&(d.switchElement=Z.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:z.JU,useExisting:(0,o.Gpc)(()=>s),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(c,d){if(1&c&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,I,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,V,2,1,"ng-container",5),o.YNc(6,L,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&c){const Z=o.MAs(7);o.ekj("ant-switch-checked",d.isChecked)("ant-switch-loading",d.nzLoading)("ant-switch-disabled",d.nzDisabled)("ant-switch-small","small"===d.nzSize)("ant-switch-rtl","rtl"===d.dir),o.Q6J("disabled",d.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",d.nzLoading),o.xp6(2),o.Q6J("ngIf",d.isChecked)("ngIfElse",Z)}},directives:[C.dQ,M.O5,e.Ls,A.f],encapsulation:2,changeDetection:0}),(0,h.gn)([(0,E.yF)()],s.prototype,"nzLoading",void 0),(0,h.gn)([(0,E.yF)()],s.prototype,"nzDisabled",void 0),(0,h.gn)([(0,E.yF)()],s.prototype,"nzControl",void 0),(0,h.gn)([(0,O.oS)()],s.prototype,"nzSize",void 0),s})(),J=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[y.vT,M.ez,C.vG,e.PV,A.T]]}),s})()}}]); \ No newline at end of file diff --git a/server/public/2033.98c7d970352312a5.js b/server/public/2033.98c7d970352312a5.js new file mode 100644 index 000000000..ecd669f05 --- /dev/null +++ b/server/public/2033.98c7d970352312a5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2033],{8926:($,Q,n)=>{n.d(Q,{A:()=>C});var y=n(5e3),N=n(2313);let C=(()=>{class I{constructor(S){this.sanitizer=S}transform(S,D){if(!D||""==D)return S;const A=new RegExp(D,"gi"),e=S.match(A);if(!e)return S;let M=S.replace(A,`${e[0]}`);return this.sanitizer.bypassSecurityTrustHtml(M)}}return I.\u0275fac=function(S){return new(S||I)(y.Y36(N.H7,16))},I.\u0275pipe=y.Yjl({name:"highlightTypeahead",type:I,pure:!0}),I})()},3416:($,Q,n)=>{n.d(Q,{g:()=>P});var y=n(9808),N=n(4182),C=n(8776),I=n(3793),J=n(8054),S=n(7338),D=n(8006),A=n(8390),e=n(915);const F={name:"disease-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Disease",helpText:"Please enter a disease name. If you are unable to locate the disease in the dropdown, please check the 'Could not find disease' checkbox below and enter the disease in the field that appears.",required:!1,addText:"Add a Disease",destroy$:new(n(8929).xQ)},fieldArray:{type:"cvc-disease-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(t,d,h)=>{var V,k;const w=null===(k=null===(V=null==h?void 0:h.parent)||void 0===V?void 0:V.templateOptions)||void 0===k?void 0:k.allowCreate;return void 0===w||w}}},defaultValue:[],validation:{messages:{required:(t,d)=>{const h=(null==d?void 0:d.form)?d.form.get("evidenceType"):null;return h?`${(0,e.E)(h.value)} Evidence requires a disease to be specified.`:"Disease is required."}}},hooks:{onInit:t=>{var d;const h=t.templateOptions,V=null===(d=null==t?void 0:t.options)||void 0===d?void 0:d.formState,k=(null==t?void 0:t.form)?t.form.get("evidenceType"):null;!k||(h.vcSub=k.valueChanges.subscribe(w=>{V.requiresDisease(w)?(h.hidden=!1,h.required=!0):(h.hidden=!0,h.required=!1,t.model.length>0&&(t.model.splice(1),h.remove(0)))}))},onDestroy:t=>{const d=t.templateOptions;d.vcSub&&d.vcSub.unsubscribe()}}}};var v=n(5e3);let P=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=v.oAB({type:t}),t.\u0275inj=v.cJS({imports:[[y.ez,N.u5,N.UX,J.LV,S.z,I.F,C.X0.forChild({types:[F]}),D.I,A.N]]}),t})()},8006:($,Q,n)=>{n.d(Q,{I:()=>g});var y=n(9808),N=n(8776),C=n(7625),I=n(373),J=n(4850),S=n(8929),D=n(591),A=n(6123),e=n(5e3),M=n(712),L=n(9169),F=n(8054),v=n(4182),P=n(6949),t=n(8144),d=n(3618),h=n(4022),V=n(822),k=n(2683),w=n(1047),U=n(6042),c=n(2643),p=n(8926);function r(a,T){if(1&a&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&a){const o=e.oxw().$implicit,u=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.label,u.to.searchString),e.oJD)}}function _(a,T){if(1&a&&(e._UZ(0,"span",11),e.ALo(1,"highlightTypeahead")),2&a){const o=e.oxw().$implicit,u=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.disease.diseaseAliases.join(", "),u.to.searchString),e.oJD)}}function B(a,T){if(1&a&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,r,2,4,"span",8),e.YNc(3,_,2,4,"span",9),e.qZA(),e.qZA()),2&a){const o=T.$implicit;e.Q6J("nzLabel",o.tooltip)("nzValue",o.disease)}}function l(a,T){if(1&a&&(e.ynx(0),e.YNc(1,B,4,2,"nz-option",6),e.BQk()),2&a){const o=T.ngrxLet;e.xp6(1),e.Q6J("ngForOf",o)}}function E(a,T){1&a&&e._uU(0," No disease found in CIViC that matches the string provided. ")}function f(a,T){if(1&a){const o=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(m){return e.CHM(o),e.oxw().to.onSearch(m)}),e.YNc(2,l,2,1,"ng-container",4),e.qZA(),e.YNc(3,E,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&a){const o=e.MAs(4),u=e.oxw(),m=e.MAs(4);e.xp6(1),e.Q6J("formControl",u.formControl)("formlyAttributes",u.field)("nzPlaceHolder",u.to.placeholder?u.to.placeholder:null)("nzDropdownRender",u.to.allowCreate?m:null)("nzNotFoundContent",o)("nzShowArrow",u.to.showArrow)("nzFilterOption",u.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",u.diseases$)}}function Z(a,T){if(1&a&&e._UZ(0,"cvc-disease-tag",12),2&a){const o=e.oxw();e.Q6J("disease",o.formControl.value)}}function b(a,T){if(1&a&&e._UZ(0,"cvc-form-errors-alert",18),2&a){const o=e.oxw(4);e.Q6J("errors",o.errorMessages)}}function H(a,T){if(1&a){const o=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(){e.CHM(o);const m=e.oxw(4);return m.addDisease(m.to.searchString)}),e._UZ(1,"i",20),e._uU(2,"No Existing CIViC Disease\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Disease? "),e.qZA()}if(2&a){const o=e.oxw(4);e.Q6J("nzLoading",o.loading),e.xp6(4),e.Oqu(o.to.searchString)}}function R(a,T){if(1&a){const o=e.EpF();e.ynx(0),e.YNc(1,b,1,1,"cvc-form-errors-alert",14),e.TgZ(2,"nz-input-group",15),e.TgZ(3,"input",16),e.NdJ("ngModelChange",function(m){return e.CHM(o),e.oxw(3).enteredDoid=m}),e.qZA(),e.qZA(),e.YNc(4,H,6,2,"button",17),e.BQk()}if(2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.errorMessages.length>0),e.xp6(2),e.Q6J("ngModel",o.enteredDoid),e.xp6(1),e.Q6J("ngIf",0==o.errorMessages.length)}}function j(a,T){if(1&a&&(e.ynx(0),e.YNc(1,R,5,3,"ng-container",13),e.BQk()),2&a){const o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==o.to.searchString&&o.to.searchString.length>=5)}}function W(a,T){if(1&a&&(e.YNc(0,j,2,1,"ng-container",13),e.ALo(1,"ngrxPush")),2&a){const o=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,o.displayAdd$))}}const s={name:"cvc-disease-input",component:(()=>{class a extends N.fS{constructor(o,u,m){super(),this.diseaseTypeaheadQuery=o,this.networkErrorService=u,this.addDiseaseGQL=m,this.destroy$=new S.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.enteredDoid="",this.displayAdd$=new D.X(!1),this.addDiseaseMutator=new A.U(u),this.defaultOptions={templateOptions:{placeholder:"Search Diseases",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.diseaseTypeaheadQuery.watch({name:"zzzz"}),this.diseases$=this.queryRef.valueChanges.pipe((0,C.R)(this.destroy$),(0,I.j)("data","diseaseTypeahead"),(0,J.U)(o=>o.map(m=>{let x=m.doid?`DOID:${m.doid}`:"no DOID",Y=m.diseaseAliases.length>0?`Aliases: ${m.diseaseAliases.join(", ")}`:"";return{value:m.id,tooltip:`${m.displayName} (${x}) ${Y}`,label:`${m.displayName} (${x})`,disease:m}})))}ngAfterViewInit(){this.to.onSearch=o=>{o.length{this.displayAdd$.next(0==u.data.diseaseTypeahead.filter(m=>m.displayName.toUpperCase()==o.toUpperCase()).length)}))}}addDisease(o){if(o&&""!=o){let m=this.addDiseaseMutator.mutate(this.addDiseaseGQL,{name:o,doid:+this.enteredDoid?+this.enteredDoid:void 0},x=>{var Y;null===(Y=this.field.formControl)||void 0===Y||Y.setValue({id:x.addDisease.disease.id,name:x.addDisease.disease.name}),this.to.searchString="",this.to.searchLength=0});m.submitSuccess$.pipe((0,C.R)(this.destroy$)).subscribe(x=>{x&&(this.success=!0)}),m.submitError$.pipe((0,C.R)(this.destroy$)).subscribe(x=>{x&&(this.errorMessages=x,this.success=!1)}),m.isSubmitting$.pipe((0,C.R)(this.destroy$)).subscribe(x=>{this.loading=x})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return a.\u0275fac=function(o){return new(o||a)(e.Y36(M.kv3),e.Y36(L.Y),e.Y36(M.KNk))},a.\u0275cmp=e.Xpm({type:a,selectors:[["cvc-disease-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["diseaseListItem",""],["addDiseaseTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml",4,"nzSpaceItem"],[3,"innerHtml"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"disease"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nzAddOnBefore","DOID:"],["type","text","nz-input","","placeholder","Optional DOID",3,"ngModel","ngModelChange"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(o,u){if(1&o&&(e.YNc(0,f,5,8,"ng-container",0),e.YNc(1,Z,1,1,"ng-template",null,1,e.W1O),e.YNc(3,W,2,3,"ng-template",null,2,e.W1O)),2&o){const m=e.MAs(2);e.Q6J("ngIf",!(null!=u.formControl.value&&u.formControl.value.id))("ngIfElse",m)}},directives:[y.O5,F.Vq,v.JJ,v.oH,N.VQ,P.eJ,y.sg,F.Ip,t.NU,t.$1,d.ZU,h.n,V.V,k.w,w.gB,w.Zp,v.Fj,v.On,U.ix,c.dQ],pipes:[p.A,P.fM],styles:[""]}),a})()};var O=n(3580),i=n(7008),z=n(9444);let g=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[y.ez,v.UX,P.WG,N.X0.forChild({types:[s]}),F.LV,O.Q,d.ZJ,t.zf,U.sL,i.B,w.o7,v.u5,z.s]]}),a})()},5926:($,Q,n)=>{n.d(Q,{J:()=>F});var y=n(9808),N=n(4182),C=n(8776),I=n(3793),J=n(304),S=n(8054),D=n(4181),A=n(8390);const M={name:"variant-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant",helpText:"Description of the type of variant (e.g., V600E, BCR-ABL fusion, Loss-of-function, exon 12 mutations). Should be as specific as possible (i.e., specific amino acid changes).",required:!1,addText:"Specify a Variant"},fieldArray:{type:"variant-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(v,P,t)=>{var d,h;const V=null===(h=null===(d=null==t?void 0:t.parent)||void 0===d?void 0:d.templateOptions)||void 0===h?void 0:h.allowCreate;return void 0===V||V}}},hideExpression:(v,P,t)=>{const d=(null==t?void 0:t.form)?t.form.get("gene"):null;return!d||!d.value||!d.value[0]},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Variant be specified."}}}};var L=n(5e3);let F=(()=>{class v{}return v.\u0275fac=function(t){return new(t||v)},v.\u0275mod=L.oAB({type:v}),v.\u0275inj=L.cJS({imports:[[y.ez,N.u5,N.UX,S.LV,J.F,I.F,C.X0.forChild({types:[M]}),D.O,A.N]]}),v})()},4181:($,Q,n)=>{n.d(Q,{O:()=>X});var y=n(9808),N=n(6123),C=n(8776),I=n(8929),J=n(591),S=n(373),D=n(4850),A=n(7625),e=n(5e3),M=n(712),L=n(9169),F=n(8054),v=n(4182),P=n(8664),t=n(822),d=n(6042),h=n(2643),V=n(2683),k=n(647),w=n(6949),U=n(8926);function c(s,O){if(1&s&&(e.TgZ(0,"nz-option",6),e._UZ(1,"span",7),e.ALo(2,"highlightTypeahead"),e.qZA()),2&s){const i=O.$implicit,z=e.oxw(2);e.Q6J("nzValue",i.variant),e.xp6(1),e.Q6J("innerHtml",e.xi3(2,2,i.label,z.to.searchString),e.oJD)}}function p(s,O){1&s&&e._uU(0," No variant found in CIViC that matches the string provided. ")}function r(s,O){if(1&s){const i=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(g){return e.CHM(i),e.oxw().to.onSearch(g)}),e.YNc(2,c,3,5,"nz-option",4),e.ALo(3,"ngrxPush"),e.qZA(),e.YNc(4,p,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&s){const i=e.MAs(5),z=e.oxw(),g=e.MAs(4);e.xp6(1),e.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzDropdownRender",z.to.allowCreate?g:null)("nzNotFoundContent",i)("nzShowArrow",z.to.showArrow),e.xp6(1),e.Q6J("ngForOf",e.lcZ(3,7,z.variants$))}}function _(s,O){if(1&s&&e._UZ(0,"cvc-variant-tag",8),2&s){const i=e.oxw();e.Q6J("variant",i.formControl.value)}}function B(s,O){if(1&s&&e._UZ(0,"cvc-form-errors-alert",12),2&s){const i=e.oxw(4);e.Q6J("errors",i.errorMessages)}}function l(s,O){if(1&s){const i=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(i);const g=e.oxw(4);return g.addVariant(g.to.searchString)}),e._UZ(1,"i",14),e._uU(2,"No Existing CIViC Variant\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Variant? "),e.qZA()}if(2&s){const i=e.oxw(4);e.Q6J("nzLoading",i.loading),e.xp6(4),e.Oqu(i.to.searchString)}}function E(s,O){if(1&s&&(e.ynx(0),e.YNc(1,B,1,1,"cvc-form-errors-alert",10),e.YNc(2,l,6,2,"button",11),e.BQk()),2&s){const i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",0==i.errorMessages.length)}}function f(s,O){if(1&s&&(e.ynx(0),e.YNc(1,E,3,2,"ng-container",9),e.BQk()),2&s){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==i.to.searchString)}}function Z(s,O){if(1&s&&(e.YNc(0,f,2,1,"ng-container",9),e.ALo(1,"ngrxPush")),2&s){const i=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,i.displayAdd$))}}const H={name:"variant-input",component:(()=>{class s extends C.fS{constructor(i,z,g){super(),this.variantTypeaheadQuery=i,this.networkErrorService=z,this.addVariantGQL=g,this.destroy$=new I.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new J.X(!1),this.addVariantMutator=new N.U(z),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(a,T,o)=>{var u,m;let x=null===(m=null===(u=null==o?void 0:o.parent)||void 0===u?void 0:u.parent)||void 0===m?void 0:m.model;if(x&&x.gene&&x.gene[0])return x.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,S.j)("data","variants","nodes"),(0,D.U)(i=>i.map(g=>({value:g.id,label:g.name,variant:g}))))}ngAfterViewInit(){this.to.onSearch=i=>{i.length{this.displayAdd$.next(0==z.data.variants.nodes.filter(g=>g.name.toUpperCase()==i.toUpperCase()).length)}))}}addVariant(i){if(i&&""!=i&&this.to.geneId){let z=this.addVariantMutator.mutate(this.addVariantGQL,{name:i,geneId:this.to.geneId},g=>{var a;null===(a=this.field.formControl)||void 0===a||a.setValue({id:g.addVariant.variant.id,name:g.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});z.submitSuccess$.pipe((0,A.R)(this.destroy$)).subscribe(g=>{g&&(this.success=!0)}),z.submitError$.pipe((0,A.R)(this.destroy$)).subscribe(g=>{g&&(this.errorMessages=g,this.success=!1)}),z.isSubmitting$.pipe((0,A.R)(this.destroy$)).subscribe(g=>{this.loading=g})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return s.\u0275fac=function(i){return new(i||s)(e.Y36(M._eC),e.Y36(L.Y),e.Y36(M.LUc))},s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-variant-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(i,z){if(1&i&&(e.YNc(0,r,6,9,"ng-container",0),e.YNc(1,_,1,1,"ng-template",null,1,e.W1O),e.YNc(3,Z,2,3,"ng-template",null,2,e.W1O)),2&i){const g=e.MAs(2);e.Q6J("ngIf",!(null!=z.formControl.value&&z.formControl.value.id))("ngIfElse",g)}},directives:[y.O5,F.Vq,v.JJ,v.oH,C.VQ,y.sg,F.Ip,P.I,t.V,d.ix,h.dQ,V.w,k.Ls],pipes:[w.fM,U.A],styles:[""],changeDetection:0}),s})()};var R=n(4867),j=n(7008),W=n(9444);let X=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[y.ez,v.UX,w.WG,C.X0.forChild({types:[H]}),F.LV,d.sL,k.PV,R.Q,j.B,W.s]]}),s})()},7338:($,Q,n)=>{n.d(Q,{z:()=>B});var y=n(9808),N=n(9444),C=n(6949),I=n(8776),J=n(7484),S=n(5482),D=n(4546),A=n(1894),e=n(647),M=n(3610),L=n(8144),F=n(3618),v=n(5109),P=n(6789),t=n(5e3),d=n(2313);let h=(()=>{class l{constructor(f){this.sanitizer=f}transform(f){return this.sanitizer.bypassSecurityTrustHtml(f)}}return l.\u0275fac=function(f){return new(f||l)(t.Y36(d.H7,16))},l.\u0275pipe=t.Yjl({name:"sanitizeHtml",type:l,pure:!0}),l})();function V(l,E){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const f=t.oxw(2);t.xp6(1),t.Oqu(f.to.label)}}function k(l,E){if(1&l&&t._UZ(0,"i",11),2&l){t.oxw();const f=t.MAs(3);t.Q6J("nzPopoverContent",f)}}function w(l,E){if(1&l&&(t._UZ(0,"span",12),t.ALo(1,"sanitizeHtml")),2&l){const f=t.oxw(3);t.Q6J("innerHtml",t.lcZ(1,1,f.to.helpText),t.oJD)}}function U(l,E){1&l&&(t.ynx(0),t.YNc(1,k,1,1,"i",9),t.YNc(2,w,2,3,"ng-template",null,10,t.W1O),t.BQk())}function c(l,E){if(1&l&&(t.ynx(0),t.TgZ(1,"nz-form-label",7),t.TgZ(2,"nz-space"),t.YNc(3,V,2,1,"span",8),t.YNc(4,U,4,0,"ng-container",1),t.qZA(),t.qZA(),t.BQk()),2&l){const f=t.oxw();t.xp6(1),t.Q6J("nzRequired",f.to.required&&!0!==f.to.hideRequiredMarker)("nzFor",f.id),t.xp6(3),t.Q6J("ngIf",f.to.helpText)}}const p=function(l){return{hidden:l}},_={wrappers:[{name:"form-field",component:(()=>{class l extends I.n2{get errorState(){return this.showError?"error":""}}return l.\u0275fac=function(){let E;return function(Z){return(E||(E=t.n5z(l)))(Z||l)}}(),l.\u0275cmp=t.Xpm({type:l,selectors:[["cvc-form-field-wrapper"]],features:[t.qOj],decls:10,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"nzValidateStatus"],["fieldComponent",""],["nzType","danger"],[3,"field"],["nzType","secondary"],[3,"nzRequired","nzFor"],[4,"nzSpaceItem"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent",4,"nzSpaceItem"],["help",""],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent"],[3,"innerHtml"]],template:function(f,Z){1&f&&(t.TgZ(0,"div",0),t.TgZ(1,"nz-form-item"),t.YNc(2,c,5,3,"ng-container",1),t.TgZ(3,"nz-form-control",2),t.GkF(4,null,3),t.qZA(),t.TgZ(6,"nz-typography",4),t._UZ(7,"formly-validation-message",5),t.qZA(),t.TgZ(8,"nz-typography",6),t._uU(9),t.qZA(),t.qZA(),t.qZA()),2&f&&(t.Q6J("ngClass",t.VKq(5,p,!0===Z.to.hidden)),t.xp6(2),t.Q6J("ngIf",Z.to.label&&!0!==Z.to.hideLabel),t.xp6(1),t.Q6J("nzValidateStatus",Z.errorState),t.xp6(4),t.Q6J("field",Z.field),t.xp6(2),t.hij(" ",Z.to.optionText," "))},directives:[y.mk,A.SK,D.Nx,y.O5,A.t3,D.iK,L.NU,L.$1,e.Ls,M.lU,D.Fd,F.ZU,I.u_],pipes:[h],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),l})()}]};let B=(()=>{class l{}return l.\u0275fac=function(f){return new(f||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[y.ez,C.WG,I.X0.forChild(_),A.Jb,J.vh,S.cD,P._,v.s,D.U5,e.PV,L.zf,M.$6,N.s,F.ZJ]]}),l})()},6559:($,Q,n)=>{n.d(Q,{H0:()=>U});var y=n(5e3),N=n(9808),C=n(226);let U=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=y.oAB({type:c}),c.\u0275inj=y.cJS({imports:[[C.vT,N.ez]]}),c})()}}]); \ No newline at end of file diff --git a/server/public/3021.7c78e6391c41d18d.js b/server/public/3021.7c78e6391c41d18d.js deleted file mode 100644 index 77d6bb9a0..000000000 --- a/server/public/3021.7c78e6391c41d18d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3021],{4889:(P,N,l)=>{l.d(N,{E:()=>v});var _=l(9808),x=l(4182),e=l(325),S=l(8776),O=l(304),b=l(6042),t=l(5e3),M=l(2643),E=l(2683);const Z={name:"cancel-button",component:(()=>{class g extends S.fS{constructor(){super(...arguments),this.redirectPath="/"}ngOnInit(){var y,F;(null===(y=this.field.templateOptions)||void 0===y?void 0:y.redirectPath)&&(this.redirectPath=null===(F=this.field.templateOptions)||void 0===F?void 0:F.redirectPath)}}return g.\u0275fac=function(){let C;return function(F){return(C||(C=t.n5z(g)))(F||g)}}(),g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-cancel-button"]],features:[t.qOj],decls:2,vars:1,consts:[["nz-button","","type","button","nzType","default","nzSize","large",1,"cancel-button",3,"routerLink"]],template:function(y,F){1&y&&(t.TgZ(0,"button",0),t._uU(1,"Cancel"),t.qZA()),2&y&&t.Q6J("routerLink",F.redirectPath)},directives:[b.ix,M.dQ,E.w,e.rH],styles:[".cancel-button[_ngcontent-%COMP%]{float:left}"]}),g})()};let v=(()=>{class g{}return g.\u0275fac=function(y){return new(y||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[_.ez,x.u5,x.UX,b.sL,e.Bz,O.F,S.X0.forChild({types:[Z]})]]}),g})()},8979:(P,N,l)=>{l.d(N,{N:()=>Z});var _=l(9808),x=l(8776),e=l(5e3),S=l(6042),O=l(2643),b=l(2683);const M={name:"cvc-multi-field-add-btn",component:(()=>{class v extends x.fS{constructor(){super()}}return v.\u0275fac=function(C){return new(C||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["cvc-multi-field-add-btn-type"]],features:[e.qOj],decls:2,vars:2,consts:[["type","submit","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"disabled"]],template:function(C,y){1&C&&(e.TgZ(0,"button",0),e._uU(1),e.qZA()),2&C&&(e.Q6J("disabled",y.to.disabled),e.xp6(1),e.Oqu(y.to.label))},directives:[S.ix,O.dQ,b.w],styles:[""],encapsulation:2,changeDetection:0}),v})()};var E=l(9139),T=l(4546);let Z=(()=>{class v{}return v.\u0275fac=function(C){return new(C||v)},v.\u0275mod=e.oAB({type:v}),v.\u0275inj=e.cJS({imports:[[_.ez,E.u,x.X0.forChild({types:[M]}),T.U5,S.sL]]}),v})()},8390:(P,N,l)=>{l.d(N,{N:()=>z});var _=l(9808),x=l(4182),e=l(8776),S=l(4546),O=l(1047),b=l(647),t=l(5e3),M=l(1894),E=l(8481),T=l(2683),Z=l(6042),v=l(2643);function g(c,f){if(1&c&&t._UZ(0,"formly-validation-message",7),2&c){const s=t.oxw(2);t.Q6J("field",s.field)}}function C(c,f){if(1&c){const s=t.EpF();t.TgZ(0,"nz-form-item"),t.TgZ(1,"nz-form-control",3),t.TgZ(2,"nz-tag",4),t.NdJ("click",function(L){return t.CHM(s),t.oxw().addField(L)}),t._UZ(3,"i",5),t._uU(4),t.qZA(),t.YNc(5,g,1,1,"ng-template",null,6,t.W1O),t.qZA(),t.qZA()}if(2&c){const s=t.MAs(6),h=t.oxw();t.xp6(1),t.Q6J("nzValidateStatus",h.errorState)("nzErrorTip",s),t.xp6(3),t.hij(" ",h.to.addText," ")}}function y(c,f){if(1&c){const s=t.EpF();t.TgZ(0,"nz-tag",4),t.NdJ("click",function(L){return t.CHM(s),t.oxw(4).addField(L)}),t._UZ(1,"i",5),t._uU(2),t.qZA()}if(2&c){const s=t.oxw(4);t.xp6(2),t.hij(" ",s.to.addText," ")}}function F(c,f){if(1&c&&(t.TgZ(0,"div",12),t.YNc(1,y,3,1,"nz-tag",13),t.qZA()),2&c){const s=t.oxw(2).$implicit,h=t.oxw();t.xp6(1),t.Q6J("ngIf",0==h.to.maxCount||h.to.maxCount>s.model.length)}}function U(c,f){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"nz-tag",9),t.TgZ(2,"i",10),t.NdJ("click",function(){t.CHM(s);const L=t.oxw().index;return t.oxw().remove(L)}),t.qZA(),t.qZA(),t.YNc(3,F,2,1,"div",11),t.BQk()}if(2&c){const s=t.oxw().last;t.xp6(3),t.Q6J("ngIf",s)}}function V(c,f){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"div",14),t.TgZ(2,"button",15),t.NdJ("click",function(){t.CHM(s);const L=t.oxw().index;return t.oxw().remove(L)}),t._UZ(3,"i",16),t.qZA(),t.qZA(),t.BQk()}}function I(c,f){if(1&c&&(t.TgZ(0,"nz-form-item"),t.TgZ(1,"div",8),t.TgZ(2,"div",0),t._UZ(3,"formly-field",7),t.qZA(),t.YNc(4,U,4,1,"ng-container",1),t.YNc(5,V,4,0,"ng-container",1),t.qZA(),t.qZA()),2&c){const s=f.$implicit,h=f.index;t.xp6(2),t.Q6J("ngClass",s.model[h]?"selected-field-col":"default-field-col"),t.xp6(1),t.Q6J("field",s),t.xp6(1),t.Q6J("ngIf",s.model[h]),t.xp6(1),t.Q6J("ngIf",!s.model[h])}}const J=function(c){return{hidden:c}},Q={name:"multi-field",component:(()=>{class c extends e.hv{constructor(){super(),this.defaultOptions={templateOptions:{maxCount:0}}}get errorState(){return this.showError?"error":""}addField(s){s&&s.preventDefault(),this.add()}ngOnInit(){this.to.add=this.add.bind(this),this.to.remove=this.remove.bind(this)}}return c.\u0275fac=function(s){return new(s||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-multi-field-type"]],features:[t.qOj],decls:3,vars:5,consts:[[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzValidateStatus","nzErrorTip"],["nzNoAnimation","",1,"editable-tag",3,"click"],["nz-icon","","nzType","plus"],["errorTpl",""],[3,"field"],["ngClass","field-display"],[1,"close-tag"],["nz-icon","","nzType","close",3,"click"],["class","field-add-btn",4,"ngIf"],[1,"field-add-btn"],["class","editable-tag","nzNoAnimation","",3,"click",4,"ngIf"],[1,"field-cancel-btn"],["nz-button","","nzBlock","","nzType","default","nzSize","small","nzDanger","",3,"click"],["nz-icon","","nzType","close"]],template:function(s,h){1&s&&(t.TgZ(0,"div",0),t.YNc(1,C,7,3,"nz-form-item",1),t.YNc(2,I,6,4,"nz-form-item",2),t.qZA()),2&s&&(t.Q6J("ngClass",t.VKq(3,J,!0===h.to.hidden)),t.xp6(1),t.Q6J("ngIf",0===(null==h.field.fieldGroup?null:h.field.fieldGroup.length)),t.xp6(1),t.Q6J("ngForOf",h.field.fieldGroup))},directives:[_.mk,_.O5,M.SK,S.Nx,M.t3,S.Fd,E.j,b.Ls,T.w,e.u_,_.sg,e.cw,Z.ix,v.dQ],styles:["[_nghost-%COMP%]{display:block}nz-form-item[_ngcontent-%COMP%]{margin-bottom:.25em}nz-form-item[_ngcontent-%COMP%]:last-child{margin-bottom:16px}.hidden[_ngcontent-%COMP%]{display:none}.editable-tag[_ngcontent-%COMP%]{background:#ffffff;border-style:dashed;cursor:pointer}.field-display[_ngcontent-%COMP%]{margin-top:.5em;display:inline-block} > nz-form-item[_ngcontent-%COMP%]{margin-bottom:0}.selected-field-col[_ngcontent-%COMP%]{display:inline-block}.default-field-col[_ngcontent-%COMP%]{display:inline-block;width:calc(100% - (2*(10px + 1em)))}.field-add-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em}.close-tag[_ngcontent-%COMP%]{margin-left:-9px;cursor:pointer}.field-cancel-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em;width:calc(20px + 1em)}"]}),c})()};function A(c,f){if(1&c&&t._UZ(0,"formly-validation-message",3),2&c){const s=t.oxw();t.Q6J("field",s.field)}}const r={name:"cvc-field-errors",component:(()=>{class c extends e.n2{get errorState(){return this.showError?"error":""}}return c.\u0275fac=function(){let f;return function(h){return(f||(f=t.n5z(c)))(h||c)}}(),c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-field-errors-wrapper"]],features:[t.qOj],decls:7,vars:3,consts:[[3,"nzValidateStatus","nzErrorTip"],["fieldComponent",""],["errorTpl",""],[3,"field"]],template:function(s,h){if(1&s&&(t.TgZ(0,"nz-form-control",0),t.TgZ(1,"p"),t._uU(2),t.qZA(),t.GkF(3,null,1),t.YNc(5,A,1,1,"ng-template",null,2,t.W1O),t.qZA()),2&s){const L=t.MAs(6);t.Q6J("nzValidateStatus",h.errorState)("nzErrorTip",L),t.xp6(2),t.hij("errorState: ",h.errorState,"")}},directives:[M.t3,S.Fd,e.u_],encapsulation:2,changeDetection:0}),c})()};let d=(()=>{class c{}return c.\u0275fac=function(s){return new(s||c)},c.\u0275mod=t.oAB({type:c}),c.\u0275inj=t.cJS({imports:[[_.ez,x.UX,S.U5,e.X0.forChild({wrappers:[r]})]]}),c})();var m=l(5109);let z=(()=>{class c{}return c.\u0275fac=function(s){return new(s||c)},c.\u0275mod=t.oAB({type:c}),c.\u0275inj=t.cJS({imports:[[_.ez,x.u5,e.X0.forChild({types:[Q]}),x.UX,d,S.U5,O.o7,b.PV,Z.sL,m.s,E.X]]}),c})()},3773:(P,N,l)=>{l.d(N,{g:()=>de});var _=l(9808),x=l(8776),e=l(5e3),S=l(4182),O=l(712),b=l(6530),t=l(444);const M={sourceType:void 0,citationId:void 0};let E=(()=>{class o{constructor(){this.sourceSelected=new e.vpe,this.model=M,this.form=new S.cw({}),this.options={},this.fields=[{key:"id"},{key:"citation",defaultValue:""},{key:"sourceType",type:"select",className:"source-type-field",defaultValue:O.yic.Pubmed,templateOptions:{required:!0,placeholder:"Select Type",options:(0,t.o6)(O.yic).map((n,a)=>({value:n,label:(0,b.c)(n)}))}},{key:"citationId",className:"citation-id-field",type:"source-selector-typeahead",templateOptions:{maxLength:10,required:!0,triggerParentSubmit:()=>{this.onSubmit()}},expressionProperties:{"templateOptions.disabled":"!model.sourceType","templateOptions.placeholder":'!model.sourceType ? "Select source type before searching" : "Search " + model.sourceType + " sources"',"templateOptions.sourceType":"model.sourceType","templateOptions.sourceTypeKey":n=>{if(n.sourceType)return(0,t.o6)(O.yic).getKeyOrThrow(n.sourceType)}}},{type:"cvc-multi-field-add-btn",className:"add-button",templateOptions:{label:"Add Source"},expressionProperties:{"templateOptions.disabled":"!model.citationId"}}]}ngOnInit(){}onSubmit(){console.log("source-select form submitted."),this.sourceSelected.emit(this.model)}ngOnDestroy(){console.log("source-selector onDestroy called.")}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-selector"]],outputs:{sourceSelected:"sourceSelected"},decls:2,vars:5,consts:[["nz-form","","nzLayout","horizontal",3,"formGroup","ngSubmit"],[1,"formly-form",3,"model","fields","options","form","modelChange"]],template:function(n,a){1&n&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return a.onSubmit()}),e.TgZ(1,"formly-form",1),e.NdJ("modelChange",function(w){return a.model=w}),e.qZA(),e.qZA()),2&n&&(e.Q6J("formGroup",a.form),e.xp6(1),e.Q6J("model",a.model)("fields",a.fields)("options",a.options)("form",a.form))},directives:[S._Y,S.JL,S.sg,x.T7],styles:[":host{display:block}cvc-source-input .formly-form{width:100%}cvc-source-input .source-type-field{display:inline-block;width:10em}cvc-source-input .citation-id-field{display:inline-block;margin-left:.5em;width:calc(100% - 19em)}cvc-source-input .add-button{display:inline-block;margin-left:.5em;width:8em}\n"],encapsulation:2}),o})();var T=l(6906);function Z(o,u){if(1&o){const n=e.EpF();e.ynx(0),e.TgZ(1,"cvc-source-selector",2),e.NdJ("sourceSelected",function(p){return e.CHM(n),e.oxw().onSourceSelected(p)}),e.qZA(),e.BQk()}}function v(o,u){if(1&o&&e._UZ(0,"cvc-source-tag",3),2&o){const n=e.oxw();e.Q6J("source",n.formControl.value)}}const C={name:"source-input",component:(()=>{class o extends x.fS{constructor(){super()}onSourceSelected(n){console.log(n),this.formControl.setValue(n)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["sourceListItem",""],[3,"sourceSelected"],[3,"source"]],template:function(n,a){if(1&n&&(e.YNc(0,Z,2,0,"ng-container",0),e.YNc(1,v,1,1,"ng-template",null,1,e.W1O)),2&n){const p=e.MAs(2);e.Q6J("ngIf",!(null!=a.formControl.value&&a.formControl.value.id))("ngIfElse",p)}},directives:[_.O5,E,T.T],styles:[""],changeDetection:0}),o})()};var y=l(9139),F=l(6042),U=l(8054),V=l(537),I=l(8144),J=l(2359),Y=l(1894),Q=l(4546),A=l(822),i=l(2643),r=l(2683);function d(o,u){if(1&o&&e._UZ(0,"nz-alert",6),2&o){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function m(o,u){if(1&o&&(e._uU(0," Found citation: "),e.TgZ(1,"em"),e._uU(2),e.qZA()),2&o){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function z(o,u){1&o&&(e.ynx(0),e.YNc(1,d,1,1,"nz-alert",4),e.YNc(2,m,3,1,"ng-template",null,5,e.W1O),e.BQk())}function c(o,u){if(1&o&&e._UZ(0,"nz-alert",9),2&o){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function f(o,u){if(1&o&&(e._uU(0," '"),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,"' created. ")),2&o){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function s(o,u){1&o&&(e.ynx(0),e.YNc(1,c,1,1,"nz-alert",7),e.YNc(2,f,4,1,"ng-template",null,8,e.W1O),e.BQk())}function h(o,u){if(1&o&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.createErrors)}}function L(o,u){if(1&o){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(p){return e.CHM(n),e.oxw(3).onCreateSourceStub(p)}),e._uU(1," Create\xa0'"),e.TgZ(2,"em"),e._uU(3),e.qZA(),e._uU(4,"'\xa0 CIViC Source "),e.qZA()}if(2&o){const n=e.oxw(3);e.Q6J("nzLoading",n.isCreating),e.xp6(3),e.Oqu(n.foundCitation)}}function B(o,u){1&o&&(e.ynx(0),e.YNc(1,L,5,2,"button",11),e.BQk())}function j(o,u){if(1&o){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(p){return e.CHM(n),e.oxw(3).onAcceptSource(p)}),e._uU(1," Add Source to List "),e.qZA()}}function k(o,u){1&o&&(e.ynx(0),e.YNc(1,j,2,0,"button",13),e.BQk())}function K(o,u){if(1&o&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,z,4,0,"ng-container",3),e.YNc(3,s,4,0,"ng-container",3),e.YNc(4,h,2,1,"nz-form-item",3),e.YNc(5,B,2,0,"ng-container",3),e.YNc(6,k,2,0,"ng-container",3),e.qZA(),e.BQk()),2&o){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",!1===n.createSuccess&&0===n.createErrors.length),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess),e.xp6(1),e.Q6J("ngIf",n.createErrors.length>0),e.xp6(1),e.Q6J("ngIf",!1===n.createSuccess),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess)}}function D(o,u){if(1&o&&(e.TgZ(0,"span",16),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&o){const n=e.oxw(3);e.xp6(2),e.hij(" Source not known to CIViC, fetch citation from ",n.sourceTypeKey,"? ")}}function X(o,u){1&o&&(e.ynx(0),e.YNc(1,D,3,1,"span",15),e.BQk())}function H(o,u){if(1&o&&e._uU(0),2&o){const n=e.oxw(4);e.AsE(" Citation not found for ",n.sourceTypeKey,": ",n.citationId,". ")}}function R(o,u){if(1&o&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,H,1,2,"ng-template",null,20,e.W1O),e.qZA()),2&o){const n=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",n)}}function G(o,u){1&o&&(e.ynx(0),e.YNc(1,R,4,1,"span",18),e.BQk())}function $(o,u){if(1&o){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(p){return e.CHM(n),e.oxw(2).onExistenceQuery(p)}),e._uU(1," Fetch Citation for\xa0"),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("nzLoading",n.isChecking),e.xp6(3),e.AsE("",n.sourceTypeKey," ",n.citationId,"")}}function q(o,u){if(1&o&&(e.TgZ(0,"nz-space",2),e.YNc(1,X,2,0,"ng-container",3),e.YNc(2,G,2,0,"ng-container",3),e.YNc(3,$,4,3,"button",11),e.qZA()),2&o){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showPrompt),e.xp6(1),e.Q6J("ngIf",n.existenceFail)}}let ee=(()=>{class o{constructor(n,a,p){this.existenceCheckQuery=n,this.createSourceStubQuery=a,this.changeDetectorRef=p,this.modelUpdate=new e.vpe,this.citationIdChange=new e.vpe,this.sourceTypeChange=new e.vpe,this.showPrompt=!0,this.isChecking=!1,this.existenceFail=!1,this.existenceError=[],this.foundCitation=void 0,this.isCreating=!1,this.createSuccess=!1,this.createErrors=[]}set sourceType(n){this._sourceType=n,this.sourceTypeKey=(0,t.o6)(O.yic).getKeyOrThrow(n)}get sourceType(){return this._sourceType}onExistenceQuery(n){n&&n.preventDefault(),this.isChecking=!0,this.foundCitation=void 0,this.existenceCheckQuery.fetch({sourceType:this.sourceType,citationId:+this.citationId}).pipe((0,V.x)(()=>{this.isChecking=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:{remoteCitation:a}})=>{null!==a?this.foundCitation=a:(this.showPrompt=!1,this.existenceFail=!0)},error:a=>{this.showPrompt=!1,this.existenceError=a.graphQLErrors.map(p=>p.message)},complete:()=>{this.existenceError=[]}})}onCreateSourceStub(n){n&&n.preventDefault(),this.isCreating=!0,this.createSuccess=!1,this.createSourceStubQuery.mutate({input:{citationId:+this.citationId,sourceType:this.sourceType}}).pipe((0,V.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:a})=>{var p;console.log(a);const w=null===(p=null==a?void 0:a.addRemoteCitation)||void 0===p?void 0:p.newSource;this.sourceStub=w,this.createSuccess=!0},error:a=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=a.graphQLErrors.map(p=>p.message)},complete:()=>{this.createErrors=[]}})}onAcceptSource(n){n&&n.preventDefault(),console.log("source accepted");const a=Object.assign(Object.assign({},this.model),{id:this.sourceStub.id,citation:this.foundCitation,citationId:this.citationId});this.modelUpdate.emit(a)}ngAfterContentInit(){console.log("model")}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(O.fpJ),e.Y36(O.JQ3),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-loader"]],inputs:{model:"model",citationId:"citationId",sourceType:"sourceType"},outputs:{modelUpdate:"modelUpdate",citationIdChange:"citationIdChange",sourceTypeChange:"sourceTypeChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["fetchCitation",""],["nzDirection","vertical"],[4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["foundCitationMsg",""],["nzType","info","nzShowIcon","",3,"nzMessage"],["nzType","success","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["createdMsg",""],["nzType","success","nzShowIcon","",3,"nzMessage"],[3,"errors"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click"],["nz-typography","",4,"nzSpaceItem"],["nz-typography",""],["nz-icon","","nzType","info-circle","nzTheme","twotone"],[4,"nzSpaceItem"],["nzType","warning","nzShowIcon","",3,"nzMessage"],["existenceFail",""]],template:function(n,a){if(1&n&&(e.YNc(0,K,7,5,"ng-container",0),e.YNc(1,q,4,2,"ng-template",null,1,e.W1O)),2&n){const p=e.MAs(2);e.Q6J("ngIf",a.foundCitation)("ngIfElse",p)}},directives:[_.O5,I.NU,I.$1,J.r,Y.SK,Q.Nx,A.V,F.ix,i.dQ,r.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),o})();function te(o,u){if(1&o&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&o){const n=u.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.value),e.xp6(1),e.AsE(" ",n.source.citation," (",n.source.citationId,") ")}}function ne(o,u){if(1&o&&(e.TgZ(0,"div",5),e._uU(1," Citation: "),e.TgZ(2,"span",6),e._uU(3),e.qZA(),e.qZA()),2&o){const n=e.oxw();e.xp6(3),e.hij(" ",n.model.citation," ")}}function oe(o,u){if(1&o&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.hij(" Enter a ",n.to.sourceTypeKey," citation ID to search CIViC sources ")}}function re(o,u){if(1&o){const n=e.EpF();e.TgZ(0,"cvc-source-loader",10),e.NdJ("modelUpdate",function(p){return e.CHM(n),e.oxw(2).onModelUpdated(p)})("sourceTypeChange",function(p){return e.CHM(n),e.oxw(2).model.sourceType=p})("citationIdChange",function(p){return e.CHM(n),e.oxw(2).to.fieldValue=p}),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("model",n.model)("sourceType",n.model.sourceType)("citationId",n.to.fieldValue)}}function ie(o,u){if(1&o&&(e.ynx(0,7),e.YNc(1,oe,2,1,"div",8),e.YNc(2,re,1,3,"cvc-source-loader",9),e.BQk()),2&o){const n=e.oxw();e.Q6J("ngSwitch",n.to.fieldLength>0&&n.to.fieldLength>=n.to.minLengthSearch),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}const ce={name:"source-selector-typeahead",component:(()=>{class o extends x.fS{constructor(n,a){super(),this.sourceTypeaheadQuery=n,this.changeDetectorRef=a,this.selectedValue=null,this.nzFilterOption=()=>!0,this.defaultOptions={templateOptions:{placeholder:"Search",sourceType:void 0,showArrow:!1,onSearch:()=>{},filterOption:()=>{},modelChange:()=>{},triggerParentSubmit:()=>{},minLengthSearch:1,fieldLength:0,fieldValue:"",optionList:[]}}}ngAfterViewInit(){this.to.filterOption=()=>!0,this.to.modelChange=n=>{if(this.to.optionList.length>0){const{source:a}=this.to.optionList.find(p=>p.value===+n);a?this.form.patchValue({citation:a.citation,id:a.id}):console.error("Could not find selected citation in list?")}},this.to.onSearch=n=>{this.to.fieldValue=n,this.to.fieldLength=n.length,!(n.lengththis.to.maxLength)&&this.sourceTypeaheadQuery.fetch({sourceType:this.to.sourceType,partialCitationId:+n},{fetchPolicy:"network-only"}).subscribe(({data:{sourceTypeahead:a}})=>{this.to.optionList=a.map(p=>({value:p.citationId,label:p.citationId,source:p})),this.changeDetectorRef.detectChanges()})}}onModelUpdated(n){this.form.patchValue(n),this.changeDetectorRef.detectChanges(),this.to.triggerParentSubmit()}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(O.k2T),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-selector-typeahead-type"]],features:[e.qOj],decls:5,vars:8,consts:[["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","ngModelChange","nzOnSearch"],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["class","ant-form-item-explain",4,"ngIf"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue"],[1,"ant-form-item-explain"],[1,"source-citation"],[3,"ngSwitch"],["class","ant-form-item-explain",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange"]],template:function(n,a){if(1&n&&(e.TgZ(0,"nz-select",0),e.NdJ("ngModelChange",function(w){return a.to.modelChange(w)})("nzOnSearch",function(w){return a.to.onSearch(w)}),e.YNc(1,te,2,4,"nz-option",1),e.qZA(),e.YNc(2,ne,4,1,"div",2),e.YNc(3,ie,3,3,"ng-template",null,3,e.W1O)),2&n){const p=e.MAs(4);e.Q6J("formControl",a.formControl)("formlyAttributes",a.field)("nzPlaceHolder",a.to.placeholder?a.to.placeholder:null)("nzNotFoundContent",p)("nzShowArrow",a.to.showArrow)("nzFilterOption",a.to.filterOption),e.xp6(1),e.Q6J("ngForOf",a.to.optionList),e.xp6(1),e.Q6J("ngIf",a.model.citation.length>0)}},directives:[U.Vq,S.JJ,S.oH,x.VQ,_.sg,U.Ip,_.O5,_.RF,_.n9,ee],styles:["[_nghost-%COMP%]{display:block}.loading-icon[_ngcontent-%COMP%]{margin-right:8px}.source-citation[_ngcontent-%COMP%]{font-style:oblique}"],changeDetection:0}),o})(),wrappers:["form-field"]};var le=l(7008);let W=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[_.ez,I.zf,J.L,Q.U5,le.B,F.sL]]}),o})(),ae=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[_.ez,S.UX,x.X0.forChild({types:[ce]}),U.LV,W]]}),o})();var se=l(8979);let ue=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[_.ez,S.UX,x.X0,y.u,F.sL,W,ae,se.N]]}),o})();var pe=l(9779);let de=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[_.ez,x.X0.forChild({types:[C]}),ue,pe.s]]}),o})()},444:(P,N,l)=>{function _(i){return i!==String(parseFloat(i))}l.d(N,{o6:()=>A});var O=Object.getOwnPropertyNames?function x(i){return Object.getOwnPropertyNames(i).filter(function(r){return i.propertyIsEnumerable(r)&&_(r)})}:Object.keys?function e(i){return Object.keys(i).filter(_)}:function S(i){var r=[];for(var d in i)i.hasOwnProperty(d)&&i.propertyIsEnumerable(d)&&_(d)&&r.push(d);return r},b=function(){function i(r){this.enumObj=r,this.keysList=Object.freeze(O(r));for(var d=this.keysList.length,m=new Array(d),z=new Map,c=0;c=d.length,value:d.keysList[m]};return++m,c}})[Symbol.iterator]=function(){return this},r},i.prototype.values=function(){var r,d=this,m=0;return(r={next:function(){var c={done:m>=d.length,value:d.valuesList[m]};return++m,c}})[Symbol.iterator]=function(){return this},r},i.prototype.entries=function(){var r,d=this,m=0;return(r={next:function(){var c={done:m>=d.length,value:d[m]};return++m,c}})[Symbol.iterator]=function(){return this},r},i.prototype[Symbol.iterator]=function(){return this.entries()},i.prototype.forEach=function(r,d){for(var m=this.length,z=0;z{n.d(C,{u:()=>e});var t=n(5e3),f=n(685),p=n(1912),g=n(3618),u=n(647);function z(d,v){1&d&&(t.TgZ(0,"span"),t._uU(1," You must be logged in to view this page. "),t.qZA())}function S(d,v){1&d&&t._UZ(0,"cvc-login-button")}function a(d,v){1&d&&(t.TgZ(0,"nz-typography",4),t._UZ(1,"i",5),t.qZA())}let e=(()=>{class d{}return d.\u0275fac=function(y){return new(y||d)},d.\u0275cmp=t.Xpm({type:d,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(y,O){if(1&y&&(t.TgZ(0,"nz-empty",0),t.YNc(1,z,2,0,"ng-template",null,1,t.W1O),t.YNc(3,S,1,0,"ng-template",null,2,t.W1O),t.qZA(),t.YNc(5,a,2,0,"ng-template",null,3,t.W1O)),2&y){const x=t.MAs(2),P=t.MAs(4),D=t.MAs(6);t.Q6J("nzNotFoundImage",D)("nzNotFoundContent",x)("nzNotFoundFooter",P)}},directives:[f.p9,p.s,g.ZU,u.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),d})()},9386:(E,C,n)=>{n.d(C,{a:()=>S});var t=n(9808),f=n(1844),p=n(685),g=n(647),u=n(3618),z=n(5e3);let S=(()=>{class a{}return a.\u0275fac=function(d){return new(d||a)},a.\u0275mod=z.oAB({type:a}),a.\u0275inj=z.cJS({imports:[[t.ez,f.B,p.Xo,g.PV,u.ZJ]]}),a})()},9180:(E,C,n)=>{n.d(C,{Z:()=>p});var t=n(5e3);const f=["*"];let p=(()=>{class g{constructor(){}ngOnInit(){}}return g.\u0275fac=function(z){return new(z||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-form-buttons"]],ngContentSelectors:f,decls:2,vars:0,consts:[[1,"form-buttons"]],template:function(z,S){1&z&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:["[_nghost-%COMP%]{display:block}.form-buttons[_ngcontent-%COMP%]{text-align:right}"]}),g})()},4375:(E,C,n)=>{n.d(C,{R:()=>p});var t=n(9808),f=n(5e3);let p=(()=>{class g{}return g.\u0275fac=function(z){return new(z||g)},g.\u0275mod=f.oAB({type:g}),g.\u0275inj=f.cJS({imports:[[t.ez]]}),g})()},8227:(E,C,n)=>{n.d(C,{q:()=>_});var t=n(5e3),f=n(8929),p=n(4850),g=n(373),u=n(2868),z=n(7625),S=n(1793),a=n(9350),e=n(9808),d=n(6042),v=n(2683),y=n(2643),O=n(3677),x=n(8144),P=n(6699),D=n(4219);function N(o,i){1&o&&t.Hsn(0)}function G(o,i){1&o&&t.GkF(0)}function L(o,i){if(1&o&&(t.ynx(0),t.YNc(1,G,1,0,"ng-container",5),t.BQk()),2&o){t.oxw(2);const l=t.MAs(1);t.xp6(1),t.Q6J("ngTemplateOutlet",l)}}function I(o,i){1&o&&t.GkF(0)}function U(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-button-group",6),t.YNc(2,I,1,0,"ng-container",5),t.TgZ(3,"button",7),t.TgZ(4,"nz-space",8),t.TgZ(5,"span"),t._uU(6,"for"),t.qZA(),t._UZ(7,"nz-avatar",9),t._UZ(8,"i",10),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&o){t.oxw();const l=t.MAs(4),T=t.oxw(),R=t.MAs(1);t.xp6(1),t.Q6J("nzSize",T.nzSize),t.xp6(1),t.Q6J("ngTemplateOutlet",R),t.xp6(1),t.Q6J("nzType",T.buttonType)("nzDanger",T.nzDanger)("disabled",T.disabled)("nzDropdownMenu",l),t.xp6(1),t.Q6J("nzSize",4),t.xp6(3),t.Q6J("nzSrc",null==T.selectedOrg?null:T.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function A(o,i){if(1&o){const l=t.EpF();t.TgZ(0,"li",11),t.NdJ("click",function(){const Z=t.CHM(l).$implicit;return t.oxw(2).selectOrg(Z)}),t._UZ(1,"nz-avatar",12),t._uU(2),t.qZA()}if(2&o){const l=i.$implicit,T=t.oxw(2);t.Q6J("nzSelected",(null==T.selectedOrg?null:T.selectedOrg.id)===l.id),t.xp6(1),t.Q6J("nzSrc",null==l?null:l.profileImagePath)("nzSize",10)("nzShape","square"),t.xp6(1),t.hij(" ",l.name," ")}}function B(o,i){if(1&o&&(t.ynx(0),t.YNc(1,L,2,1,"ng-container",1),t.YNc(2,U,9,10,"ng-container",1),t.TgZ(3,"nz-dropdown-menu",null,2),t.TgZ(5,"ul",3),t.YNc(6,A,3,5,"li",4),t.qZA(),t.qZA(),t.BQk()),2&o){const l=i.ngIf;t.xp6(1),t.Q6J("ngIf",l.length<=1),t.xp6(1),t.Q6J("ngIf",l.length>1),t.xp6(4),t.Q6J("ngForOf",l)}}const c=["*"];let _=(()=>{class o{constructor(l){this.viewerService=l,this.selectedOrgChange=new t.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new f.xQ}get disabled(){return this.button.disabled}selectOrg(l){this.selectedOrg=l,this.selectedOrgChange.emit(l)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,p.U)(l=>l.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,g.j)("mostRecentOrg"),(0,u.b)(l=>{l&&(this.selectedOrg=l,this.selectedOrgChange.emit(l))})),this.mostRecentOrg$.pipe((0,z.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(l){return new(l||o)(t.Y36(a.a))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(l,T,R){if(1&l&&t.Suo(R,S.m,5),2&l){let Z;t.iGM(Z=t.CRH())&&(T.button=Z.first)}},inputs:{selectedOrg:"selectedOrg",buttonType:"buttonType",nzDanger:"nzDanger",nzSize:"nzSize"},outputs:{selectedOrgChange:"selectedOrgChange"},ngContentSelectors:c,decls:4,vars:3,consts:[["submitButton",""],[4,"ngIf"],["orgMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[4,"ngTemplateOutlet"],[3,"nzSize"],["type","button","nz-button","","nz-dropdown","",1,"org-dropdown-btn",3,"nzType","nzDanger","disabled","nzDropdownMenu"],["nzDirection","horizontal",3,"nzSize"],[3,"nzSrc","nzSize","nzShape"],["nz-icon","","nzType","down"],["nz-menu-item","",3,"nzSelected","click"],[2,"background-color","#f0f5ff",3,"nzSrc","nzSize","nzShape"]],template:function(l,T){1&l&&(t.F$t(),t.YNc(0,N,1,0,"ng-template",null,0,t.W1O),t.YNc(2,B,7,3,"ng-container",1),t.ALo(3,"async")),2&l&&(t.xp6(2),t.Q6J("ngIf",t.lcZ(3,1,T.organizations$)))},directives:[e.O5,e.tP,d.fY,v.w,d.ix,y.dQ,O.wA,O.cm,x.NU,P.Dz,O.RR,D.wO,e.sg,D.r9],pipes:[e.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),o})()},1825:(E,C,n)=>{n.d(C,{A:()=>S});var t=n(9808),f=n(6042),p=n(6699),g=n(3677),u=n(8144),z=n(5e3);let S=(()=>{class a{}return a.\u0275fac=function(d){return new(d||a)},a.\u0275mod=z.oAB({type:a}),a.\u0275inj=z.cJS({imports:[[t.ez,f.sL,p.Rt,g.b1,u.zf]]}),a})()},1793:(E,C,n)=>{n.d(C,{m:()=>f});var t=n(5e3);let f=(()=>{class p{constructor(u){this.el=u,this.observer=new MutationObserver(([z])=>this.disabled=z.target.disabled),this.observer.observe(this.el.nativeElement,{attributeFilter:["disabled"],childList:!1,subtree:!1})}ngOnDestroy(){this.observer.disconnect()}}return p.\u0275fac=function(u){return new(u||p)(t.Y36(t.SBq))},p.\u0275dir=t.lG2({type:p,selectors:[["button","cvcOrgSelectorBtn",""]],hostVars:2,hostBindings:function(u,z){2&u&&t.ekj("ant-btn-dangerous",z.nzDanger)}}),p})()},4623:(E,C,n)=>{n.d(C,{K:()=>d});var t=n(9808),f=n(8776),p=n(5e3),g=n(1047),u=n(4182);const S={name:"comment-textarea",component:(()=>{class v extends f.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(O,x)=>{var P;return`Comments must be at least ${null===(P=x.templateOptions)||void 0===P?void 0:P.minLength} characters in length.`}}},templateOptions:{rows:4}}}}return v.\u0275fac=function(){let y;return function(x){return(y||(y=p.n5z(v)))(x||v)}}(),v.\u0275cmp=p.Xpm({type:v,selectors:[["comment-textarea-type"]],features:[p.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(O,x){1&O&&p._UZ(0,"textarea",0),2&O&&p.Q6J("formControl",x.formControl)("formlyAttributes",x.field)},directives:[g.Zp,u.Fj,u.JJ,u.oH,f.VQ],styles:[""],changeDetection:0}),v})(),wrappers:["form-field"]};var a=n(4546),e=n(9139);let d=(()=>{class v{}return v.\u0275fac=function(O){return new(O||v)},v.\u0275mod=p.oAB({type:v}),v.\u0275inj=p.cJS({imports:[[t.ez,u.UX,f.X0.forChild({types:[S]}),e.u,a.U5,g.o7]]}),v})()},7462:(E,C,n)=>{n.d(C,{o:()=>a});var t=n(9808),f=n(8776),p=n(5e3),g=n(1047),u=n(4182);const S={name:"cvc-textarea",component:(()=>{class e extends f.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return e.\u0275fac=function(){let d;return function(y){return(d||(d=p.n5z(e)))(y||e)}}(),e.\u0275cmp=p.Xpm({type:e,selectors:[["cvc-textarea-base-type"]],features:[p.qOj],decls:1,vars:3,consts:[["nz-input","",3,"nzAutosize","formControl","formlyAttributes"]],template:function(v,y){1&v&&p._UZ(0,"textarea",0),2&v&&p.Q6J("nzAutosize",y.to.autosize)("formControl",y.formControl)("formlyAttributes",y.field)},directives:[g.Zp,g.rh,u.Fj,u.JJ,u.oH,f.VQ],styles:[""],changeDetection:0}),e})(),wrappers:["form-field"]};let a=(()=>{class e{}return e.\u0275fac=function(v){return new(v||e)},e.\u0275mod=p.oAB({type:e}),e.\u0275inj=p.cJS({imports:[[t.ez,u.u5,u.UX,f.X0.forChild({types:[S]}),g.o7]]}),e})()},6738:(E,C,n)=>{function t(a){let e={value:void 0,unset:void 0};return a&&a.trim().length>0?e.value=a.trim():e.unset=!0,e}function f(a){let e={value:void 0,unset:void 0};return void 0!==a?e.value=a:e.unset=!0,e}function p(a){let e,d;return a&&a.includes("N/A")?(a=void 0,d=void 0,e=!0):a||(a=void 0,e=void 0,d=!0),{ids:a?a.map(v=>+v):void 0,noneFound:d,notApplicable:e}}function g(a){return{chromosome:z(a.chromosome),representativeTranscript:z(a.representativeTranscript),start:a.start?+a.start:void 0,stop:a.stop?+a.stop:void 0}}function u(a){let e={value:void 0,unset:void 0};return a?e.value=a:e.unset=!0,e}function z(a){let e;return e=a&&a.length>0?a:void 0,e}n.d(C,{aP:()=>S,Zg:()=>p,_$:()=>g,uP:()=>f,dh:()=>u,xt:()=>t});const S=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},3179:(E,C,n)=>{n.r(C),n.d(C,{GenesReviseModule:()=>Ee});var t=n(9808),f=n(325),p=n(5630),g=n(1945),u=n(647),z=n(373),S=n(1059),a=n(4850),e=n(5e3),d=n(712),v=n(9350),y=n(8992),O=n(1894),x=n(8616),P=n(6949);function D(r,h){1&r&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function N(r,h){1&r&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function G(r,h){if(1&r&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,D,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,N,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&r){const s=h.ngIf,m=e.MAs(14),M=e.oxw();e.xp6(1),e.Q6J("displayName",s.name),e.xp6(5),e.hij(" ",s.name," "),e.xp6(2),e.hij(" ",s.officialName," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,M.isSignedIn$))("ngIfElse",m)}}let L=(()=>{class r{constructor(s,m,M){this.gql=s,this.route=m,this.viewerService=M,this.routeSub=this.route.params.subscribe(b=>{let $=this.gql.watch({geneId:+b.geneId}).valueChanges;this.loading$=$.pipe((0,z.j)("loading"),(0,S.O)(!0)),this.gene$=$.pipe((0,z.j)("data","gene")),this.commentsTotal$=this.gene$.pipe((0,z.j)("comments","totalCount")),this.flagsTotal$=this.gene$.pipe((0,z.j)("flags","totalCount")),this.revisionsTotal$=this.gene$.pipe((0,z.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,a.U)(s=>s.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return r.\u0275fac=function(s){return new(s||r)(e.Y36(d.TNk),e.Y36(f.gz),e.Y36(v.a))},r.\u0275cmp=e.Xpm({type:r,selectors:[["genes-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:gene"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(s,m){1&s&&(e.YNc(0,G,15,7,"ng-container",0),e.ALo(1,"async")),2&s&&e.Q6J("ngIf",e.lcZ(1,1,m.gene$))},directives:[t.O5,y.I,g.$O,g.u9,u.Ls,g.yG,g.u5,f.lC,O.SK,O.t3,x.u],pipes:[t.Ov,P.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),r})();var I=n(8144),U=n(6559),A=n(4182),B=n(4546),c=n(2359),_=n(8776),o=n(1825),i=n(7008),l=n(4375),T=n(6042),R=n(8390),Z=n(3773),w=n(5109),W=n(4623),Y=n(7462),K=n(4889);let j=(()=>{class r{}return r.\u0275fac=function(s){return new(s||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[t.ez,f.Bz,A.UX,w.s,B.U5,c.L,O.Jb,T.sL,_.X0,o.A,i.B,l.R,W.K,R.N,Z.g,Y.o,K.E]]}),r})();var J=n(7484);let X=(()=>{class r{}return r.\u0275fac=function(s){return new(s||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[t.ez,P.WG,J.vh,O.Jb,I.zf,U.H0,g.KJ,j,p.D]]}),r})();var Q=n(8929),F=n(7625),V=n(6738),k=n(591),H=n(5284),q=n(537),ee=n(9169);let te=(()=>{class r{constructor(s,m){this.suggestGeneRevisionGQL=s,this.networkErrorService=m,this.destroy$=new Q.xQ,this.isSubmitting$=new k.X(!1),this.submitSuccess$=new k.X(!1),this.submitError$=new k.X([])}suggest(s){this.storeObj={id:s.id,__typename:(0,H.e)("Gene")},this.isSubmitting$.next(!0),this.suggestGeneRevisionGQL.mutate({input:s},{update:(m,{data:{suggestGeneRevision:M}})=>{m.modify({id:m.identify(this.storeObj),fields:{revisions:(b=[])=>M.gene.revisions}})}}).pipe((0,F.R)(this.destroy$),(0,q.x)(()=>{this.isSubmitting$.next(!1)})).subscribe({error:m=>{m.graphQLErrors.length>0?this.submitError$.next(m.graphQLErrors.map(M=>M.message)):m.networkError&&this.networkErrorService.networkError$.next(m.networkError)},complete:()=>{this.submitError$.next([]),this.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0)}})}cleanup(){this.submitError$.next([]),this.submitSuccess$.next(!1),this.isSubmitting$.next(!1),this.networkErrorService.networkError$.next(void 0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return r.\u0275fac=function(s){return new(s||r)(e.LFG(d.D9L),e.LFG(ee.Y))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var ne=n(822),oe=n(9180),re=n(8227),se=n(2643),ae=n(1793),ie=n(2683);function le(r,h){if(1&r&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",3),e.qZA()),2&r){const s=e.oxw().ngIf;e.xp6(1),e.Q6J("errors",s)}}function ce(r,h){if(1&r&&(e.ynx(0),e.YNc(1,le,2,1,"nz-form-item",1),e.BQk()),2&r){const s=h.ngIf;e.xp6(1),e.Q6J("ngIf",s.length>0)}}function ge(r,h){1&r&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",7),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4," or suggest another revision below."),e.qZA())}function pe(r,h){if(1&r&&(e.ynx(0),e._UZ(1,"nz-alert",4),e.YNc(2,ge,5,0,"ng-template",5,6,e.W1O),e.BQk()),2&r){const s=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",s)}}function de(r,h){if(1&r){const s=e.EpF();e.TgZ(0,"nz-form-item"),e.TgZ(1,"nz-form-control"),e.TgZ(2,"cvc-form-buttons"),e.TgZ(3,"cvc-org-selector-btn-group",8),e.NdJ("selectedOrgChange",function(M){return e.CHM(s),e.oxw().mostRecentOrg=M}),e.TgZ(4,"button",9),e._uU(5," Suggest Revision "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&r){const s=e.oxw();e.xp6(3),e.Q6J("selectedOrg",s.mostRecentOrg),e.xp6(1),e.Q6J("disabled",!s.formGroup.valid)}}let ue=(()=>{class r{constructor(s,m,M){this.viewerService=s,this.revisionService=m,this.revisableFieldsGQL=M,this.destroy$=new Q.xQ,this.formGroup=new A.cw({}),this.formOptions={},this.viewerService.viewer$.pipe((0,F.R)(this.destroy$)).subscribe(b=>{this.organizations=b.organizations,this.mostRecentOrg=b.mostRecentOrg}),this.submitError$=this.revisionService.submitError$,this.isSubmitting$=this.revisionService.isSubmitting$,this.submitSuccess$=this.revisionService.submitSuccess$,this.formFields=[{key:"id",type:"input",hide:!0},{key:"fields.description",type:"cvc-textarea",templateOptions:{label:"Description",placeholder:"Enter a description for this gene.",required:!1}},{key:"fields.sources",type:"multi-field",templateOptions:{label:"Sources",addText:"Add another Source"},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}}],this.submitSuccess$.pipe((0,F.R)(this.destroy$)).subscribe(b=>{b&&this.formOptions.resetModel&&this.formOptions.resetModel()})}ngOnInit(){this.revisableFieldsGQL.fetch({geneId:this.geneId}).subscribe(({data:{gene:s}})=>{s?this.formModel=this.toFormModel(s):console.error("Could not retrieve gene."),this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue()})}toFormModel(s){return{id:s.id,fields:Object.assign({},s),comment:""}}selectOrg(s){this.mostRecentOrg=s}submitRevision(s){this.revisionService.suggest(this.toRevisionInput(s))}toRevisionInput(s){return Object.assign(Object.assign({},s),{fields:{description:(0,V.xt)(s.fields.description),sourceIds:s.fields.sources.map(m=>+m.id)},organizationId:void 0===this.mostRecentOrg?void 0:this.mostRecentOrg.id})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.revisionService.cleanup()}}return r.\u0275fac=function(s){return new(s||r)(e.Y36(v.a),e.Y36(te),e.Y36(d.FOU))},r.\u0275cmp=e.Xpm({type:r,selectors:[["cvc-gene-revise-form"]],inputs:{geneId:"geneId"},decls:8,vars:14,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngIf"],[3,"form","fields","model","options","modelChange"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"]],template:function(s,m){1&s&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return m.submitRevision(m.formModel)}),e.YNc(1,ce,2,1,"ng-container",1),e.ALo(2,"async"),e.YNc(3,pe,4,1,"ng-container",1),e.ALo(4,"async"),e.TgZ(5,"formly-form",2),e.NdJ("modelChange",function(b){return m.formModel=b}),e.qZA(),e.YNc(6,de,6,2,"nz-form-item",1),e.ALo(7,"async"),e.qZA()),2&s&&(e.Q6J("formGroup",m.formGroup),e.xp6(1),e.Q6J("ngIf",e.lcZ(2,8,m.submitError$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,10,m.submitSuccess$)),e.xp6(2),e.Q6J("form",m.formGroup)("fields",m.formFields)("model",m.formModel)("options",m.formOptions),e.xp6(1),e.Q6J("ngIf",!e.lcZ(7,12,m.submitSuccess$)))},directives:[A._Y,A.JL,B.Lr,A.sg,t.O5,O.SK,B.Nx,ne.V,c.r,f.yS,_.T7,O.t3,B.Fd,oe.Z,re.q,T.ix,se.dQ,ae.m,ie.w],pipes:[t.Ov],styles:["[_nghost-%COMP%]{display:block}"]}),r})();function me(r,h){if(1&r&&(e.ynx(0),e._UZ(1,"cvc-gene-revise-form",8),e.BQk()),2&r){const s=e.oxw();e.xp6(1),e.Q6J("geneId",s.geneId)}}function fe(r,h){1&r&&e._uU(0,"Loading Gene...")}const he=function(){return{rows:1}};function ve(r,h){1&r&&e._UZ(0,"nz-skeleton",9),2&r&&e.Q6J("nzParagraph",e.DdM(1,he))}const _e=function(){return{rows:3}};function ze(r,h){1&r&&e._UZ(0,"nz-skeleton",9),2&r&&e.Q6J("nzParagraph",e.DdM(1,_e))}const Ce=function(){return{rows:4}};function ye(r,h){1&r&&e._UZ(0,"nz-skeleton",9),2&r&&e.Q6J("nzParagraph",e.DdM(1,Ce))}const Oe=function(){return{rows:5}};function Se(r,h){1&r&&e._UZ(0,"nz-skeleton",9),2&r&&e.Q6J("nzParagraph",e.DdM(1,Oe))}function Te(r,h){1&r&&e._uU(0,"Loading gene...")}const Me=[{path:"",component:L,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class r{constructor(s){this.route=s,this.routeParams$=this.route.params.subscribe(m=>{this.geneId=+m.geneId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return r.\u0275fac=function(s){return new(s||r)(e.Y36(f.gz))},r.\u0275cmp=e.Xpm({type:r,selectors:[["cvc-genes-suggest"]],decls:14,vars:3,consts:[[3,"nzGutter"],["nzSpan","16"],[4,"ngIf","ngIfElse"],["loadingGene",""],["nzSpan","8"],["nzTitle","Instructions","nz-type","inner"],["nzDirection","vertical",2,"width","100%"],[3,"nzParagraph",4,"nzSpaceItem"],[3,"geneId"],[3,"nzParagraph"]],template:function(s,m){if(1&s&&(e.TgZ(0,"nz-row",0),e.TgZ(1,"nz-col",1),e.YNc(2,me,2,1,"ng-container",2),e.YNc(3,fe,1,0,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(5,"nz-col",4),e.TgZ(6,"nz-card",5),e.TgZ(7,"nz-space",6),e.YNc(8,ve,1,2,"nz-skeleton",7),e.YNc(9,ze,1,2,"nz-skeleton",7),e.YNc(10,ye,1,2,"nz-skeleton",7),e.YNc(11,Se,1,2,"nz-skeleton",7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(12,Te,1,0,"ng-template",null,3,e.W1O)),2&s){const M=e.MAs(4);e.Q6J("nzGutter",16),e.xp6(2),e.Q6J("ngIf",m.geneId)("ngIfElse",M)}},directives:[O.SK,O.t3,t.O5,ue,J.bd,I.NU,I.$1,U.ng],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),r})(),data:{breadcrumb:"Suggest Revision"}}]}];let xe=(()=>{class r{}return r.\u0275fac=function(s){return new(s||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[f.Bz.forChild(Me),X]]}),r})();var Pe=n(9386);let Ee=(()=>{class r{}return r.\u0275fac=function(s){return new(s||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[t.ez,xe,f.Bz,p.D,g.KJ,u.PV,P.WG,O.Jb,Pe.a]]}),r})()},6559:(E,C,n)=>{n.d(C,{ng:()=>A,H0:()=>B});var t=n(5e3),f=n(1721),p=n(655),g=n(9808),u=n(226);const S=["nzType","avatar"];function d(c,_){if(1&c&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&c){const o=t.oxw(2);t.xp6(1),t.Q6J("nzSize",o.avatar.size||"default")("nzShape",o.avatar.shape||"circle")}}function v(c,_){if(1&c&&t._UZ(0,"h3",7),2&c){const o=t.oxw(2);t.Udp("width",o.toCSSUnit(o.title.width))}}function y(c,_){if(1&c&&t._UZ(0,"li"),2&c){const o=_.index,i=t.oxw(3);t.Udp("width",i.toCSSUnit(i.widthList[o]))}}function O(c,_){if(1&c&&(t.TgZ(0,"ul",8),t.YNc(1,y,1,2,"li",9),t.qZA()),2&c){const o=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",o.rowsList)}}function x(c,_){if(1&c&&(t.ynx(0),t.YNc(1,d,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,v,1,2,"h3",3),t.YNc(4,O,2,1,"ul",4),t.qZA(),t.BQk()),2&c){const o=t.oxw();t.xp6(1),t.Q6J("ngIf",!!o.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!o.nzTitle),t.xp6(1),t.Q6J("ngIf",!!o.nzParagraph)}}function P(c,_){1&c&&(t.ynx(0),t.Hsn(1),t.BQk())}const D=["*"];let N=(()=>{class c{constructor(){this.nzActive=!1,this.nzBlock=!1}}return c.\u0275fac=function(o){return new(o||c)},c.\u0275dir=t.lG2({type:c,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(o,i){2&o&&t.ekj("ant-skeleton-active",i.nzActive)("ant-skeleton-block",i.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,p.gn)([(0,f.yF)()],c.prototype,"nzBlock",void 0),c})(),L=(()=>{class c{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(o){if(o.nzSize&&"number"==typeof this.nzSize){const i=`${this.nzSize}px`;this.styleMap={width:i,height:i,"line-height":i}}else this.styleMap={}}}return c.\u0275fac=function(o){return new(o||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:S,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(o,i){1&o&&t._UZ(0,"span",0),2&o&&(t.ekj("ant-skeleton-avatar-square","square"===i.nzShape)("ant-skeleton-avatar-circle","circle"===i.nzShape)("ant-skeleton-avatar-lg","large"===i.nzSize)("ant-skeleton-avatar-sm","small"===i.nzSize),t.Q6J("ngStyle",i.styleMap))},directives:[g.PC],encapsulation:2,changeDetection:0}),c})(),A=(()=>{class c{constructor(o,i,l){this.cdr=o,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],i.addClass(l.nativeElement,"ant-skeleton")}toCSSUnit(o=""){return(0,f.WX)(o)}getTitleProps(){const o=!!this.nzAvatar,i=!!this.nzParagraph;let l="";return!o&&i?l="38%":o&&i&&(l="50%"),Object.assign({width:l},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const o=!!this.nzAvatar,i=!!this.nzTitle,l={};return(!o||!i)&&(l.width="61%"),l.rows=!o&&i?3:2,Object.assign(Object.assign({},l),this.getProps(this.nzParagraph))}getProps(o){return o&&"object"==typeof o?o:{}}getWidthList(){const{width:o,rows:i}=this.paragraph;let l=[];return o&&Array.isArray(o)?l=o:o&&!Array.isArray(o)&&(l=[],l[i-1]=o),l}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(o){(o.nzTitle||o.nzAvatar||o.nzParagraph)&&this.updateProps()}}return c.\u0275fac=function(o){return new(o||c)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},c.\u0275cmp=t.Xpm({type:c,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(o,i){2&o&&t.ekj("ant-skeleton-with-avatar",!!i.nzAvatar)("ant-skeleton-active",i.nzActive)("ant-skeleton-round",!!i.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:D,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(o,i){1&o&&(t.F$t(),t.YNc(0,x,5,3,"ng-container",0),t.YNc(1,P,2,0,"ng-container",0)),2&o&&(t.Q6J("ngIf",i.nzLoading),t.xp6(1),t.Q6J("ngIf",!i.nzLoading))},directives:[L,g.O5,N,g.sg],encapsulation:2,changeDetection:0}),c})(),B=(()=>{class c{}return c.\u0275fac=function(o){return new(o||c)},c.\u0275mod=t.oAB({type:c}),c.\u0275inj=t.cJS({imports:[[u.vT,g.ez]]}),c})()}}]); \ No newline at end of file diff --git a/server/public/3218.9a2a6eae0aa809aa.js b/server/public/3218.9a2a6eae0aa809aa.js new file mode 100644 index 000000000..73b149b01 --- /dev/null +++ b/server/public/3218.9a2a6eae0aa809aa.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3218],{5749:(oe,O,a)=>{a.d(O,{m:()=>te});var i=a(5e3),M=a(9808),n=a(325),z=a(8481),J=a(3610),T=a(4850),S=a(712),Z=a(7484),m=a(7881),e=a(1894),b=a(3098),U=a(6550),Q=a(6949);const P=function(u,h){return{displayName:u,profileImagePath:h}};function L(u,h){if(1&u&&(i._UZ(0,"cvc-user-avatar",12),i.TgZ(1,"span",13),i._uU(2),i.qZA()),2&u){const _=i.oxw().ngIf;i.Q6J("user",i.WLB(2,P,_.name,_.profileImagePath)),i.xp6(2),i.Oqu(_.name)}}function Y(u,h){if(1&u&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&u){const _=h.ngIf;i.xp6(1),i.Oqu(_)}}function F(u,h){if(1&u&&(i.ynx(0),i.TgZ(1,"cvc-link-tag",14),i._uU(2),i.qZA(),i.BQk()),2&u){const _=i.oxw().ngIf;i.xp6(1),i.Q6J("href",_.url),i.xp6(1),i.hij(" ",_.name," ")}}function G(u,h){if(1&u&&(i.ynx(0),i.TgZ(1,"nz-card",4),i.YNc(2,L,3,5,"ng-template",null,5,i.W1O),i.TgZ(4,"nz-row"),i.TgZ(5,"nz-col",6),i.TgZ(6,"div",7),i.TgZ(7,"p",8),i.YNc(8,Y,2,1,"span",9),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"nz-descriptions",10),i.TgZ(10,"nz-descriptions-item",11),i.YNc(11,F,3,2,"ng-container",9),i.qZA(),i.qZA(),i.qZA(),i.BQk()),2&u){const _=h.ngIf,y=i.MAs(3);i.oxw();const A=i.MAs(4),W=i.MAs(6);i.xp6(1),i.Q6J("nzTitle",y),i.xp6(7),i.Q6J("ngIf",_.description)("ngIfElse",A),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(2),i.Q6J("ngIf",_.url)("ngIfElse",W)}}function X(u,h){1&u&&i._uU(0," Organization has not provided a description.\n")}function D(u,h){1&u&&i._uU(0," --\n")}let v=(()=>{class u{constructor(_){this.gql=_}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,T.U)(({data:_})=>_.organization))}}return u.\u0275fac=function(_){return new(_||u)(i.Y36(S.X5f))},u.\u0275cmp=i.Xpm({type:u,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noDesc",""],["noHomepage",""],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(_,y){1&_&&(i.TgZ(0,"div",0),i.YNc(1,G,12,6,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA(),i.YNc(3,X,1,0,"ng-template",null,2,i.W1O),i.YNc(5,D,1,0,"ng-template",null,3,i.W1O)),2&_&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,y.org$)))},directives:[M.O5,Z.bd,m.L,e.SK,e.t3,b.R7,b.uj,U.l],pipes:[Q.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),u})();var k=a(647);function w(u,h){}function $(u,h){if(1&u&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,w,0,0,"ng-template",6),i.qZA(),i.BQk()),2&u){const _=i.oxw(),y=i.MAs(2);i.xp6(1),i.MGl("routerLink","/organizations/",_.org.id,""),i.xp6(1),i.Q6J("ngTemplateOutlet",y)}}function R(u,h){}function B(u,h){if(1&u&&i._UZ(0,"cvc-organization-popover",10),2&u){const _=i.oxw(3);i.Q6J("orgId",_.org.id)}}function j(u,h){if(1&u&&i.YNc(0,B,1,1,"cvc-organization-popover",9),2&u){const _=i.oxw(2);i.Q6J("ngIf",_.enablePopover)}}function K(u,h){if(1&u&&(i.TgZ(0,"nz-tag",7),i.YNc(1,R,0,0,"ng-template",6),i.qZA(),i.YNc(2,j,1,1,"ng-template",null,8,i.W1O)),2&u){const _=i.MAs(3);i.oxw();const y=i.MAs(8);i.Q6J("nzPopoverContent",_),i.xp6(1),i.Q6J("ngTemplateOutlet",y)}}function q(u,h){}function ee(u,h){if(1&u&&(i.TgZ(0,"nz-tag"),i.YNc(1,q,0,0,"ng-template",6),i.qZA()),2&u){i.oxw();const _=i.MAs(8);i.xp6(1),i.Q6J("ngTemplateOutlet",_)}}function ne(u,h){}function H(u,h){if(1&u&&i.YNc(0,ne,0,0,"ng-template",6),2&u){i.oxw();const _=i.MAs(2);i.Q6J("ngTemplateOutlet",_)}}function C(u,h){if(1&u&&(i._UZ(0,"i",11),i._uU(1)),2&u){const _=i.oxw();i.xp6(1),i.hij(" ",_.org.name,"\n")}}let te=(()=>{class u{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}}return u.\u0275fac=function(_){return new(_||u)},u.\u0275cmp=i.Xpm({type:u,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],["orgPopover",""],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(_,y){if(1&_&&(i.YNc(0,$,3,2,"ng-container",0),i.YNc(1,K,4,2,"ng-template",null,1,i.W1O),i.YNc(3,ee,2,1,"ng-template",null,2,i.W1O),i.YNc(5,H,1,1,"ng-template",null,3,i.W1O),i.YNc(7,C,2,1,"ng-template",null,4,i.W1O)),2&_){const A=i.MAs(6);i.Q6J("ngIf",y.linked)("ngIfElse",A)}},directives:[M.O5,n.yS,M.tP,z.j,J.lU,v,k.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),u})()},9058:(oe,O,a)=>{a.d(O,{j:()=>n});var i=a(712),M=a(5e3);let n=(()=>{class z{transform(T){switch(T){case"ASSERTION":case"Assertion":case i.o71.Assertion:return"civic:assertion";case"EVIDENCE_ITEM":case"EvidenceItem":case i.o71.EvidenceItem:return"civic:evidence";case"GENE":case"Gene":case i.o71.Gene:return"civic:gene";case i.o71.Revision:case"REVISION":case"Revision":return"civic:revision";case i.o71.Variant:case"VARIANT":case"Variant":return"civic:variant";case i.o71.VariantGroup:case"VARIANT_GROUP":case"VariantGrou":return"civic:variant-group";default:return console.log("String No icon name found for "+T),"border-outer"}}}return z.\u0275fac=function(T){return new(T||z)},z.\u0275pipe=M.Yjl({name:"iconNameForSubscribableEntity",type:z,pure:!0}),z})()},6738:(oe,O,a)=>{function i(m){let e={value:void 0,unset:void 0};return m&&m.trim().length>0?e.value=m.trim():e.unset=!0,e}function M(m){let e={value:void 0,unset:void 0};return void 0!==m?e.value=m:e.unset=!0,e}a.d(O,{aP:()=>Z,li:()=>n,Zg:()=>z,_$:()=>J,uP:()=>M,dh:()=>T,xt:()=>i});var n=(()=>{return(m=n||(n={}))[m.NotApplicable=0]="NotApplicable",m[m.NoneFound=1]="NoneFound",m[m.Found=2]="Found",n;var m})();function z(m,e){let b,U,Q;return e==n.Found?(b=void 0,U=void 0,Q=m):e==n.NoneFound?(U=!0,b=void 0,Q=void 0):(b=!0,U=void 0,Q=void 0),{ids:Q?Q.map(P=>+P):void 0,noneFound:U,notApplicable:b}}function J(m){return m?{chromosome:S(m.chromosome),representativeTranscript:S(m.representativeTranscript),start:m.start?+m.start:void 0,stop:m.stop?+m.stop:void 0}:{chromosome:void 0,representativeTranscript:void 0,start:void 0,stop:void 0}}function T(m){let e={value:void 0,unset:void 0};return m?e.value=m:e.unset=!0,e}function S(m){let e;return e=m&&m.length>0?m:void 0,e}const Z=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7600:(oe,O,a)=>{a.r(O),a.d(O,{UsersDetailModule:()=>Sn});var i=a(9808),M=a(5630),n=a(1945),z=a(325),J=a(8762),T=a(8144),S=a(5473),Z=a(6042),m=a(647),e=a(5e3);let b=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,Z.sL,m.PV]]}),o})();var U=a(3098),Q=a(9476),P=a(1894),L=a(9444),Y=a(6949),F=a(7484),G=a(5249),X=a(5737),D=a(3640),v=a(4182),k=a(2359),w=a(4546),$=a(7008),R=a(3868),B=a(7525),j=a(8054);let K=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,v.u5,w.U5,v.UX,Y.WG,F.vh,k.L,R.aF,Z.sL,B.j,j.LV,$.B]]}),o})();var q=a(330),ee=a(5013),ne=a(3756);let H=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(z.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-assertions"]],decls:1,vars:1,consts:[["cvcTitle","User Assertions",3,"userId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-assertions-table",0),2&t&&e.Q6J("userId",r.userId)},directives:[ne.x],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var C=a(712),te=a(2011);let u=(()=>{class o{constructor(t){this.route=t,this.mode=C.wJ2.User,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(z.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-events"]],decls:1,vars:2,consts:[["tagDisplay","hideUser",3,"userId","mode"]],template:function(t,r){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("userId",r.userId)("mode",r.mode)},directives:[te.o],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var h=a(8965);let _=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(z.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-evidence"]],decls:1,vars:1,consts:[["cvcTitle","User Evidence",3,"userId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-evidence-table",0),2&t&&e.Q6J("userId",r.userId)},directives:[h.a],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var y=a(6123),A=a(4850),W=a(1059),ie=a(9169),V=a(2683),ae=a(2643),ge=a(8747),ue=a(6114),se=a(2712),de=a(2347),_e=a(404),me=a(2937),fe=a(9058);function he(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.Q6J("nzType",t.iconName),e.xp6(1),e.hij(" ",t.displayName," ")}}function ze(o,l){1&o&&(e._uU(0),e.ALo(1,"eventVerbiage")),2&o&&e.hij(" ",e.xi3(1,1,l.$implicit.id,"action-filter")," ")}function De(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._UZ(1,"i",17),e.ALo(2,"iconNameForSubscribableEntity"),e._uU(3),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.Q6J("nzType",e.lcZ(2,3,t.subjectWithCount.subject.__typename)),e.xp6(2),e.AsE(" ",t.subjectWithCount.subject.name," (",t.subjectWithCount.occuranceCount,") ")}}function Re(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._uU(1),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.hij(" ",t.displayName," ")}}function Ce(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._uU(1),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function ve(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkMarkRead()}),e._UZ(1,"i",19),e._uU(2,"Mark as read "),e.qZA(),e.TgZ(3,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkMarkUnread()}),e._UZ(4,"i",19),e._uU(5,"Mark as unread "),e.qZA(),e.TgZ(6,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkUnsubscribe()}),e._UZ(7,"i",20),e._uU(8,"Unsubscribe "),e.qZA(),e._uU(9," Check all "),e.TgZ(10,"label",21),e.NdJ("ngModelChange",function(c){return e.CHM(t),e.oxw(2).allChecked=c})("nzCheckedChange",function(c){return e.CHM(t),e.oxw(2).onCheckAllCheckBoxClicked(c)}),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(3),e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(3),e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(4),e.Q6J("ngModel",t.allChecked)("nzIndeterminate",t.someChecked)}}function Te(o,l){if(1&o&&e._UZ(0,"i",32),2&o){const t=e.oxw().$implicit;e.Q6J("nzType","SUBSCRIPTION"===t.key.type?"book":"notification")("nzTheme",t.key.seen?"outline":"twotone")}}function xe(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",33),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).markAsUnread(c.key.id)}),e._UZ(2,"i",34),e.qZA(),e.BQk()}}function Ze(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"button",35),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).markAsRead(c.key.id)}),e._UZ(1,"i",19),e.qZA()}}function be(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",36),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).unsubscribe(c.key.subscription.subscribable.id,c.key.subscription.subscribable.__typename)}),e._UZ(2,"i",20),e.qZA(),e.BQk()}if(2&o){const t=e.oxw().$implicit;e.xp6(1),e.MGl("nzTooltipTitle","You received this notification because you are subscribed to ",t.key.subscription.subscribable.name,". Click to unsubscribe.")}}function re(o,l){1&o&&(e.TgZ(0,"button",37),e._UZ(1,"i",20),e.qZA())}function Ue(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"nz-timeline-item",23),e.YNc(2,Te,1,2,"ng-template",null,24,e.W1O),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",25),e._UZ(6,"cvc-event-timeline-item",26),e.qZA(),e.TgZ(7,"nz-col",27),e.YNc(8,xe,3,0,"ng-container",28),e.YNc(9,Ze,2,0,"ng-template",null,29,e.W1O),e.qZA(),e.TgZ(11,"nz-col",27),e.YNc(12,be,3,1,"ng-container",28),e.YNc(13,re,2,0,"ng-template",null,30,e.W1O),e.TgZ(15,"label",31),e.NdJ("ngModelChange",function(c){return e.CHM(t).$implicit.value.checked=c})("nzCheckedChange",function(c){const x=e.CHM(t).$implicit;return e.oxw(3).onNotificationCheckBoxClicked(x.key.id,c)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&o){const t=l.$implicit,r=e.MAs(3),c=e.MAs(10),g=e.MAs(14);e.xp6(1),e.Q6J("nzDot",r)("nzColor",t.key.seen?"gray":"blue"),e.xp6(5),e.Q6J("event",t.key.event),e.xp6(2),e.Q6J("ngIf",t.key.seen)("ngIfElse",c),e.xp6(4),e.Q6J("ngIf",t.key.subscription)("ngIfElse",g),e.xp6(3),e.Q6J("ngModel",t.value.checked)}}function ye(o,l){if(1&o&&(e.TgZ(0,"nz-timeline"),e.YNc(1,Ue,16,8,"ng-container",22),e.ALo(2,"keyvalue"),e.qZA()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,t))}}function Me(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",39),e.TgZ(1,"button",40),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().ngIf;return e.oxw(2).fetchMore(c.endCursor)}),e._uU(2,"Load More "),e.qZA(),e.qZA()}}function Ae(o,l){if(1&o&&(e.ynx(0),e.YNc(1,Me,3,0,"div",38),e.BQk()),2&o){const t=l.ngIf;e.xp6(1),e.Q6J("ngIf",t.hasNextPage)}}function Ne(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"nz-row",2),e.TgZ(2,"nz-col",3),e.TgZ(3,"nz-row"),e.TgZ(4,"nz-button-group",4),e.TgZ(5,"button",5),e.NdJ("click",function(){return e.CHM(t),e.oxw().setIncludeRead(!1)}),e._uU(6,"Unread"),e.qZA(),e.TgZ(7,"button",5),e.NdJ("click",function(){return e.CHM(t),e.oxw().setIncludeRead(!0)}),e._uU(8,"All"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"nz-row"),e.TgZ(10,"nz-col",6),e.TgZ(11,"cvc-participant-list",7),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onNotificationReasonSelected(c)}),e.YNc(12,he,3,2,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(14,"cvc-participant-list",9),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onActionSelected(c)}),e.ALo(15,"ngrxPush"),e.YNc(16,ze,2,4,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(18,"cvc-participant-list",10),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onNotificationSubjectSelected(c)}),e.ALo(19,"ngrxPush"),e.YNc(20,De,4,5,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(22,"cvc-participant-list",11),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onOriginatingUserSelected(c)}),e.ALo(23,"ngrxPush"),e.YNc(24,Re,2,1,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(26,"cvc-participant-list",12),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onOrganizationSelected(c)}),e.ALo(27,"ngrxPush"),e.YNc(28,Ce,2,1,"ng-template",null,8,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"nz-col",13),e.TgZ(31,"nz-card",14),e.YNc(32,ve,11,5,"ng-template",null,15,e.W1O),e.TgZ(34,"nz-row",2),e.TgZ(35,"nz-col",16),e.YNc(36,ye,3,3,"nz-timeline",1),e.YNc(37,Ae,2,1,"ng-container",1),e.ALo(38,"ngrxPush"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&o){const t=l.ngIf,r=e.MAs(33),c=e.oxw();e.xp6(1),e.Q6J("nzGutter",25),e.xp6(4),e.Q6J("nzType",c.includeReadInput?"default":"primary"),e.xp6(2),e.Q6J("nzType",c.includeReadInput?"primary":"default"),e.xp6(4),e.Q6J("participantList",c.notificationTypes),e.xp6(3),e.Q6J("participantList",e.lcZ(15,12,c.actions$)),e.xp6(4),e.Q6J("participantList",e.lcZ(19,14,c.notificationSubjects$)),e.xp6(4),e.Q6J("participantList",e.lcZ(23,16,c.originatingUsers$)),e.xp6(4),e.Q6J("participantList",e.lcZ(27,18,c.organizations$)),e.xp6(5),e.Q6J("nzExtra",r),e.xp6(3),e.Q6J("nzGutter",16),e.xp6(2),e.Q6J("ngIf",t.size>0),e.xp6(1),e.Q6J("ngIf",e.lcZ(38,20,c.pageInfo$))}}let Ie=(()=>{class o{constructor(t,r,c,g,x){this.route=t,this.gql=r,this.networkErrorService=c,this.updateNotificationStatusMuation=g,this.unsubscribeMutation=x,this.notificationState=new Map,this.includeReadInput=!1,this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1,this.notificationTypes=[{id:1,type:C.fow.Mention,iconName:"notification",displayName:"Mentioned"},{id:2,type:C.fow.Subscription,iconName:"book",displayName:"Subscribed"}],this.userId=+this.route.snapshot.params.userId,this.updateNotificationStatusMutator=new y.U(c),this.unsubscribeMutator=new y.U(c)}ngOnInit(){this.initialQueryVars={includeRead:this.includeReadInput},this.queryRef=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,A.U)(({data:t})=>t.notifications.pageInfo)),this.notificationStateObservable$=this.results$.pipe((0,A.U)(({data:t})=>{let r=new Map;return t.notifications.edges.forEach(c=>{if(c.node){let g={checked:!1};r.set(c.node,g),this.notificationState.set(c.node,g)}}),r})),this.notificationSubjects$=this.results$.pipe((0,A.U)(({data:t})=>t.notifications.notificationSubjects.map(r=>{var c,g;return{id:`${null===(c=r.subject)||void 0===c?void 0:c.__typename}:${null===(g=r.subject)||void 0===g?void 0:g.id}`,subjectWithCount:r}}))),this.originatingUsers$=this.results$.pipe((0,A.U)(({data:t})=>t.notifications.originatingUsers)),this.actions$=this.results$.pipe((0,A.U)(({data:t})=>t.notifications.eventTypes.map(r=>({id:r})))),this.organizations$=this.results$.pipe((0,A.U)(({data:t})=>t.notifications.organizations)),this.isLoading$=this.results$.pipe((0,A.U)(({loading:t})=>t),(0,W.O)(!0))}fetchMore(t){this.queryRef.fetchMore({variables:{after:t}})}setIncludeRead(t){this.includeReadInput=t,this.queryRef.refetch({includeRead:this.includeReadInput})}onNotificationReasonSelected(t){this.queryRef.refetch({notificationReason:t?t.type:void 0})}onNotificationSubjectSelected(t){var r;let c;if(void 0!==t){let g=null===(r=t.subjectWithCount.subject)||void 0===r?void 0:r.__typename;c={id:t.subjectWithCount.subject.id,entityType:C.o71[g]}}this.queryRef.refetch({originatingObject:c})}onOriginatingUserSelected(t){this.queryRef.refetch({originatingUserId:null==t?void 0:t.id})}onActionSelected(t){this.queryRef.refetch({eventType:t?t.id:void 0})}onOrganizationSelected(t){this.queryRef.refetch({organizationId:null==t?void 0:t.id})}markAsRead(t){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[t],newStatus:C.NQC.Read}})}markAsUnread(t){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[t],newStatus:C.NQC.Unread}})}unsubscribe(t,r){this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[{id:t,entityType:C.o71[r]}]}})}onNotificationCheckBoxClicked(t,r){let c=Array.from(this.notificationState.keys()).find(g=>g.id===t);if(c){let g=this.notificationState.get(c);g&&(g.checked=r)}r?(this.bulkMarkEnabled=!0,Array.from(this.notificationState.values()).every(g=>g.checked)?(this.allChecked=!0,this.someChecked=!1):this.someChecked=!0):Array.from(this.notificationState.values()).some(g=>g.checked)?(this.bulkMarkEnabled=!0,this.allChecked=!1,this.someChecked=!Array.from(this.notificationState.values()).every(g=>!g.checked)):(this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1)}onCheckAllCheckBoxClicked(t){t?this.checkAll():this.uncheckAll()}getCheckedIds(){let t=[];return this.notificationState.forEach((r,c)=>{r.checked&&t.push(c.id)}),t}checkAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((t,r)=>{t.checked=!0})}),this.allChecked=!0,this.someChecked=!1,this.bulkMarkEnabled=!0}uncheckAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((t,r)=>{t.checked=!1})}),this.allChecked=!1,this.someChecked=!1,this.bulkMarkEnabled=!1}bulkMarkRead(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:C.NQC.Read}}),this.uncheckAll()}bulkMarkUnread(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:C.NQC.Unread}}),this.uncheckAll()}bulkUnsubscribe(){let t=[];this.notificationState.forEach((r,c)=>{r.checked&&c.subscription&&t.push({id:c.subscription.subscribable.id,entityType:C.o71[c.subscription.subscribable.__typename]})}),this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:t}}).submitSuccess$.subscribe(r=>{r&&this.queryRef.refetch()}),this.uncheckAll()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(z.gz),e.Y36(C.yqR),e.Y36(ie.Y),e.Y36(C.LiH),e.Y36(C.m$d))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-notifications"]],decls:4,vars:6,consts:[[3,"nzSpinning"],[4,"ngIf"],[3,"nzGutter"],["nzSpan","4"],["nzSize","small"],["nz-button","","nzShape","round",3,"nzType","click"],["nzSpan","24"],["listTitle","Notification Reason",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Action",3,"participantList","participantSelectedEvent"],["listTitle","Subject",3,"participantList","participantSelectedEvent"],["listTitle","User",3,"participantList","participantSelectedEvent"],["listTitle","Organization",3,"participantList","participantSelectedEvent"],["nzSpan","20"],["nzTitle","Notifications","id","card-content",3,"nzExtra"],["bulkOperations",""],["nzSpan","24",1,"timeline"],["nz-icon","",3,"nzType"],["nz-button","","nzSize","small",3,"disabled","click"],["nz-icon","","nzType","check"],["nz-icon","","nzType","bell"],["nz-checkbox","",3,"ngModel","nzIndeterminate","ngModelChange","nzCheckedChange"],[4,"ngFor","ngForOf"],[3,"nzDot","nzColor"],["timelineDotTemplate",""],["nzFlex","auto"],[3,"event"],["nzFlex","50px"],[4,"ngIf","ngIfElse"],["unread",""],["noSubscriptionButton",""],["nz-checkbox","",3,"ngModel","ngModelChange","nzCheckedChange"],["nz-icon","",1,"item-icon",3,"nzType","nzTheme"],["nz-tooltip","","nzTooltipTitle","Mark as unread.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-icon","","nzType","undo"],["nz-tooltip","","nzTooltipTitle","Mark as read.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-tooltip","","nz-button","","nzType","default","nzShape","circle",3,"nzTooltipTitle","click"],["nz-tooltip","","nzTooltipTitle","You are no longer subscribed to the entity that triggered this notification.","nz-button","","nzType","default","nzShape","circle","disabled",""],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"]],template:function(t,r){1&t&&(e.TgZ(0,"nz-spin",0),e.ALo(1,"ngrxPush"),e.YNc(2,Ne,39,22,"ng-container",1),e.ALo(3,"async"),e.qZA()),2&t&&(e.Q6J("nzSpinning",e.lcZ(1,2,r.isLoading$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,4,r.notificationStateObservable$)))},directives:[B.W,i.O5,P.SK,P.t3,Z.fY,V.w,Z.ix,ae.dQ,ge.l,m.Ls,F.bd,ue.Ie,v.JJ,v.On,se.PD,i.sg,se.Zv,de.t,_e.SY],pipes:[Y.fM,i.Ov,me.R,fe.j,i.Nd],styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}.read-notification[_ngcontent-%COMP%]{background-color:gray}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]}),o})();var Se=a(9814);let Pe=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(z.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-source-suggestions"]],decls:1,vars:1,consts:[["cvcTitle","User Source Suggestions",3,"submitterId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-source-suggestions-table",0),2&t&&e.Q6J("submitterId",r.userId)},directives:[Se.O],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var ce=a(373),le=a(591),Oe=a(9350),Je=a(8992),Qe=a(7881),pe=a(3618),Ee=a(520);let ke=(()=>{class o{constructor(t){this.http=t,this.uploadComplete=new e.vpe}processProfileImage(t){if(t&&t[0]){let r=new FormData;r.append("image",t[0],t[0].name),this.uploadSubscription=this.http.post("/api/upload_profile_image",r).subscribe(c=>this.uploadComplete.emit(!0),c=>this.uploadComplete.emit(!1))}}ngOnDestroy(){var t;null===(t=this.uploadSubscription)||void 0===t||t.unsubscribe()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Ee.eN))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-avatar-uploader"]],outputs:{uploadComplete:"uploadComplete"},decls:4,vars:0,consts:[["type","file","accept","image/*",2,"display","none",3,"change"],["profileImage",""],["nz-button","","nzSize","small","nzType","link",3,"click"]],template:function(t,r){if(1&t){const c=e.EpF();e.TgZ(0,"input",0,1),e.NdJ("change",function(){e.CHM(c);const x=e.MAs(1);return r.processProfileImage(x.files)}),e.qZA(),e.TgZ(2,"button",2),e.NdJ("click",function(){return e.CHM(c),e.MAs(1).click()}),e._uU(3,"Upload Image\n"),e.qZA()}},directives:[Z.ix,V.w],styles:[""]}),o})();var Ye=a(5749),Fe=a(7893),qe=a(2233),E=a(6738),Le=a(8929),s=a(7625),d=a(822);function p(o,l){1&o&&e._UZ(0,"nz-alert",13)}function f(o,l){if(1&o&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",14),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("errors",t.errorMessages)}}function N(o,l){if(1&o&&e._UZ(0,"nz-option",15),2&o){const t=l.$implicit;e.Q6J("nzLabel",t.name)("nzValue",t.id)}}let I=(()=>{class o{constructor(t,r,c){this.updateProfileGql=t,this.profileUpdatedEvent=new e.vpe,this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new Le.xQ,this.updateProfileMutator=new y.U(c),this.countries$=r.fetch().pipe((0,A.U)(({data:g})=>g.countries))}ngOnInit(){if(!this.user)throw new Error("Must pass a user into the Profile Update Form");this.setInitialFormFields()}updateProfile(){if(this.username&&this.email){this.errorMessages=[];let t={username:this.username,email:this.email,name:(0,E.xt)(this.name),areaOfExpertise:(0,E.uP)(this.areaOfExpertise),orcid:(0,E.xt)(this.orcid),url:(0,E.xt)(this.url),bio:(0,E.xt)(this.bio),countryId:(0,E.uP)(this.countryId),twitterHandle:(0,E.xt)(this.twitterHandle),facebookProfile:(0,E.xt)(this.facebookProfile),linkedinProfile:(0,E.xt)(this.linkedinProfile)},r=this.updateProfileMutator.mutate(this.updateProfileGql,{input:t});r.submitSuccess$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{c&&(this.setInitialFormFields(),this.success=!0,this.profileUpdatedEvent.emit())}),r.submitError$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),r.isSubmitting$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}setInitialFormFields(){var t;this.name=this.user.name,this.username=this.user.username,this.email=this.user.email,this.areaOfExpertise=this.user.areaOfExpertise,this.orcid=this.user.orcid,this.url=this.user.url,this.bio=this.user.bio,this.twitterHandle=this.user.twitterHandle,this.facebookProfile=this.user.facebookProfile,this.linkedinProfile=this.user.linkedinProfile,this.countryId=null===(t=this.user.country)||void 0===t?void 0:t.id}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.wbP),e.Y36(C.l4w),e.Y36(ie.Y))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-user-profile-form"]],inputs:{user:"user"},outputs:{profileUpdatedEvent:"profileUpdatedEvent"},decls:56,vars:18,consts:[["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],["nzRequired",""],["nz-input","",2,"width","100%",3,"ngModel","ngModelChange"],["nz-input","","rows","5",2,"width","100%",3,"ngModel","ngModelChange"],["nzAllowClear","","nzShowSearch","",3,"ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzAllowClear","",3,"ngModel","ngModelChange"],["nzLabel","Patient Advocate","nzValue","PATIENT_ADVOCATE"],["nzLabel","Clinical Scientist","nzValue","CLINICAL_SCIENTIST"],["nzLabel","Research Scientist","nzValue","RESEARCH_SCIENTIST"],["type","submit","nz-button","","nzType","primary","nzSize","small",2,"width","100%",3,"disabled","click"],["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable",""],[3,"errors"],[3,"nzLabel","nzValue"]],template:function(t,r){1&t&&(e.TgZ(0,"nz-card"),e.YNc(1,p,1,0,"nz-alert",0),e.YNc(2,f,2,1,"nz-form-item",1),e.TgZ(3,"nz-spin",2),e.TgZ(4,"nz-form-item"),e.TgZ(5,"nz-form-label",3),e._uU(6,"Username"),e.qZA(),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(g){return r.username=g}),e.qZA(),e.qZA(),e.TgZ(8,"nz-form-item"),e.TgZ(9,"nz-form-label"),e._uU(10,"Name"),e.qZA(),e.TgZ(11,"input",4),e.NdJ("ngModelChange",function(g){return r.name=g}),e.qZA(),e.qZA(),e.TgZ(12,"nz-form-item"),e.TgZ(13,"nz-form-label",3),e._uU(14,"Email"),e.qZA(),e.TgZ(15,"input",4),e.NdJ("ngModelChange",function(g){return r.email=g}),e.qZA(),e.qZA(),e.TgZ(16,"nz-form-item"),e.TgZ(17,"nz-form-label"),e._uU(18,"User Bio"),e.qZA(),e.TgZ(19,"textarea",5),e.NdJ("ngModelChange",function(g){return r.bio=g}),e.qZA(),e.qZA(),e.TgZ(20,"nz-form-item"),e.TgZ(21,"nz-form-label"),e._uU(22,"Country"),e.qZA(),e.TgZ(23,"nz-select",6),e.NdJ("ngModelChange",function(g){return r.countryId=g}),e.YNc(24,N,1,2,"nz-option",7),e.ALo(25,"ngrxPush"),e.qZA(),e.qZA(),e.TgZ(26,"nz-form-item"),e.TgZ(27,"nz-form-label"),e._uU(28,"Area of Expertise"),e.qZA(),e.TgZ(29,"nz-select",8),e.NdJ("ngModelChange",function(g){return r.areaOfExpertise=g}),e._UZ(30,"nz-option",9),e._UZ(31,"nz-option",10),e._UZ(32,"nz-option",11),e.qZA(),e.qZA(),e.TgZ(33,"nz-form-item"),e.TgZ(34,"nz-form-label"),e._uU(35,"ORCID Identifier"),e.qZA(),e.TgZ(36,"input",4),e.NdJ("ngModelChange",function(g){return r.orcid=g}),e.qZA(),e.qZA(),e.TgZ(37,"nz-form-item"),e.TgZ(38,"nz-form-label"),e._uU(39,"Personal Website"),e.qZA(),e.TgZ(40,"input",4),e.NdJ("ngModelChange",function(g){return r.url=g}),e.qZA(),e.qZA(),e.TgZ(41,"nz-form-item"),e.TgZ(42,"nz-form-label"),e._uU(43,"Twitter Handle"),e.qZA(),e.TgZ(44,"input",4),e.NdJ("ngModelChange",function(g){return r.twitterHandle=g}),e.qZA(),e.qZA(),e.TgZ(45,"nz-form-item"),e.TgZ(46,"nz-form-label"),e._uU(47,"Facebook Profile"),e.qZA(),e.TgZ(48,"input",4),e.NdJ("ngModelChange",function(g){return r.facebookProfile=g}),e.qZA(),e.qZA(),e.TgZ(49,"nz-form-item"),e.TgZ(50,"nz-form-label"),e._uU(51,"LinkedIn Profile"),e.qZA(),e.TgZ(52,"input",4),e.NdJ("ngModelChange",function(g){return r.linkedinProfile=g}),e.qZA(),e.qZA(),e.TgZ(53,"nz-form-item"),e.TgZ(54,"button",12),e.NdJ("click",function(){return r.updateProfile()}),e._uU(55," Update Profile "),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",r.success),e.xp6(1),e.Q6J("ngIf",r.errorMessages.length>0),e.xp6(1),e.Q6J("nzSpinning",r.loading),e.xp6(4),e.Q6J("ngModel",r.username),e.xp6(4),e.Q6J("ngModel",r.name),e.xp6(4),e.Q6J("ngModel",r.email),e.xp6(4),e.Q6J("ngModel",r.bio),e.xp6(4),e.Q6J("ngModel",r.countryId),e.xp6(1),e.Q6J("ngForOf",e.lcZ(25,16,r.countries$)),e.xp6(5),e.Q6J("ngModel",r.areaOfExpertise),e.xp6(7),e.Q6J("ngModel",r.orcid),e.xp6(4),e.Q6J("ngModel",r.url),e.xp6(4),e.Q6J("ngModel",r.twitterHandle),e.xp6(4),e.Q6J("ngModel",r.facebookProfile),e.xp6(4),e.Q6J("ngModel",r.linkedinProfile),e.xp6(2),e.Q6J("disabled",r.loading||!r.username||!r.email))},directives:[F.bd,i.O5,k.r,P.SK,w.Nx,d.V,B.W,P.t3,w.iK,v.Fj,v.JJ,v.On,j.Vq,i.sg,j.Ip,Z.ix,ae.dQ,V.w],pipes:[Y.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),o})();var $e=a(8785),Be=a(1243);function je(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"nz-alert",35),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(2).uploadError=!1}),e.qZA()}}function He(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"nz-alert",36),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(2).updateSuccess=!1}),e.qZA()}}function We(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"cvc-avatar-uploader",37),e.NdJ("uploadComplete",function(c){return e.CHM(t),e.oxw(2).profileUploadComplete(c)}),e.qZA(),e.BQk()}}function Ve(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",40),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://twitter.com/",t.twitterHandle,"",e.LSH)}}function Ge(o,l){1&o&&(e.ynx(0),e.YNc(1,Ve,2,1,"a",38),e.BQk())}function Xe(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",41),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://facebook.com/",t.facebookProfile,"",e.LSH)}}function Ke(o,l){1&o&&(e.ynx(0),e.YNc(1,Xe,2,1,"a",38),e.BQk())}function en(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",42),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://linkedin.com/in/",t.linkedinProfile,"",e.LSH)}}function nn(o,l){1&o&&(e.ynx(0),e.YNc(1,en,2,1,"a",38),e.BQk())}function tn(o,l){if(1&o&&(e.TgZ(0,"a",39),e.TgZ(1,"span"),e._uU(2,"ID"),e.qZA(),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","https://orcid.org/",t.orcid,"",e.LSH)}}function on(o,l){1&o&&(e.ynx(0),e.YNc(1,tn,3,1,"a",38),e.BQk())}function an(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",43),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).updateProfileModalVisible=!0}),e._uU(2," Edit Profile "),e.qZA(),e.BQk()}}function sn(o,l){if(1&o&&(e.YNc(0,an,3,0,"ng-container",0),e.ALo(1,"ngrxPush")),2&o){const t=e.oxw(2);e.Q6J("ngIf",e.lcZ(1,1,t.ownProfile$))}}function rn(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.ALo(2,"enumToTitle"),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.areaOfExpertise)," ")}}function cn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"Unspecified"),e.qZA(),e.qZA(),e.BQk())}function ln(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",null==t.country?null:t.country.name," ")}}function pn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"Unspecified"),e.qZA(),e.qZA(),e.BQk())}function gn(o,l){1&o&&e._UZ(0,"cvc-organization-tag",46),2&o&&e.Q6J("org",l.$implicit)}function un(o,l){if(1&o&&(e.ynx(0),e.YNc(1,gn,1,1,"cvc-organization-tag",45),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.organizations)}}function dn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"User is not a member of any Organizations."),e.qZA(),e.qZA(),e.BQk())}function _n(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",t.bio," ")}}function mn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"User has not provided a bio."),e.qZA(),e.qZA(),e.BQk())}function fn(o,l){1&o&&e._uU(0," Editor Conflict of Interest Statement ")}function hn(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",50),e.NdJ("click",function(){return e.CHM(t),e.oxw(4).updateCoiModalVisible=!0}),e._uU(2," Update COI "),e.qZA(),e.BQk()}}function zn(o,l){if(1&o&&(e.YNc(0,hn,3,0,"ng-container",0),e.ALo(1,"ngrxPush")),2&o){const t=e.oxw(3);e.Q6J("ngIf",e.lcZ(1,1,t.ownProfile$))}}function Cn(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw(3).ngIf;e.xp6(1),e.hij(" ",t.mostRecentConflictOfInterestStatement.coiStatement," ")}}function vn(o,l){1&o&&e._uU(0," I do not have any potential conflicts of interest. ")}function Tn(o,l){if(1&o&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",51),e._uU(2),e.ALo(3,"enumToTitle"),e.qZA(),e.TgZ(4,"nz-descriptions-item",52),e._uU(5),e.ALo(6,"date"),e.qZA(),e.TgZ(7,"nz-descriptions-item",53),e._uU(8),e.ALo(9,"date"),e.qZA(),e.TgZ(10,"nz-descriptions-item",54),e.YNc(11,Cn,2,1,"ng-container",55),e.YNc(12,vn,1,0,"ng-template",null,56,e.W1O),e.qZA(),e.BQk()),2&o){const t=e.MAs(13),r=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.lcZ(3,9,r.mostRecentConflictOfInterestStatement.coiStatus)," "),e.xp6(2),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.xi3(6,11,r.mostRecentConflictOfInterestStatement.createdAt,"shortDate")," "),e.xp6(2),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.xi3(9,14,r.mostRecentConflictOfInterestStatement.expiresAt,"shortDate")," "),e.xp6(2),e.Q6J("nzSpan",3),e.xp6(1),e.Q6J("ngIf",r.mostRecentConflictOfInterestStatement.coiPresent)("ngIfElse",t)}}function xn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",51),e._uU(2,"None on file."),e.qZA(),e.BQk()),2&o&&(e.xp6(1),e.Q6J("nzSpan",3))}function Zn(o,l){if(1&o&&(e.TgZ(0,"nz-descriptions",47),e.YNc(1,fn,1,0,"ng-template",null,48,e.W1O),e.YNc(3,zn,2,3,"ng-template",null,49,e.W1O),e.YNc(5,Tn,14,17,"ng-container",0),e.YNc(6,xn,3,1,"ng-container",0),e.qZA()),2&o){const t=e.MAs(2),r=e.MAs(4),c=e.oxw().ngIf;e.Q6J("nzTitle",t)("nzExtra",r)("nzColumn",3),e.xp6(5),e.Q6J("ngIf",c.mostRecentConflictOfInterestStatement),e.xp6(1),e.Q6J("ngIf",!c.mostRecentConflictOfInterestStatement)}}function bn(o,l){1&o&&(e.TgZ(0,"span"),e._uU(1,"Edit Profile"),e.qZA())}function Un(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"cvc-user-profile-form",57),e.NdJ("profileUpdatedEvent",function(){return e.CHM(t),e.oxw(2).profileUpdated()}),e.qZA()}if(2&o){const t=e.oxw().ngIf;e.Q6J("user",t)}}function yn(o,l){if(1&o){const t=e.EpF();e.ynx(0),e._UZ(1,"cvc-section-navigation",4),e.TgZ(2,"nz-page-header",5),e.TgZ(3,"nz-page-header-content"),e.YNc(4,je,1,0,"nz-alert",6),e.YNc(5,He,1,0,"nz-alert",7),e.TgZ(6,"div",8),e.TgZ(7,"nz-row",9),e.TgZ(8,"nz-col",10),e.TgZ(9,"div",11),e._UZ(10,"cvc-user-avatar",12),e.qZA(),e.TgZ(11,"div",13),e.TgZ(12,"span",14),e.TgZ(13,"strong"),e._uU(14),e.qZA(),e.qZA(),e.YNc(15,We,2,0,"ng-container",0),e.ALo(16,"ngrxPush"),e.qZA(),e.TgZ(17,"div",15),e.TgZ(18,"nz-space",16),e.YNc(19,Ge,2,0,"ng-container",0),e.YNc(20,Ke,2,0,"ng-container",0),e.YNc(21,nn,2,0,"ng-container",0),e.YNc(22,on,2,0,"ng-container",0),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"nz-col",10),e.TgZ(24,"nz-card",17),e.YNc(25,sn,2,3,"ng-template",null,18,e.W1O),e.TgZ(27,"nz-descriptions",19),e.TgZ(28,"nz-descriptions-item",20),e._uU(29),e.qZA(),e.TgZ(30,"nz-descriptions-item",21),e._uU(31),e.qZA(),e.TgZ(32,"nz-descriptions-item",22),e._uU(33),e.ALo(34,"enumToTitle"),e.qZA(),e.TgZ(35,"nz-descriptions-item",23),e.YNc(36,rn,3,3,"ng-container",0),e.YNc(37,cn,4,0,"ng-container",0),e.qZA(),e.TgZ(38,"nz-descriptions-item",24),e.YNc(39,ln,2,1,"ng-container",0),e.YNc(40,pn,4,0,"ng-container",0),e.qZA(),e.TgZ(41,"nz-descriptions-item",25),e.YNc(42,un,2,1,"ng-container",0),e.YNc(43,dn,4,0,"ng-container",0),e.qZA(),e.qZA(),e.TgZ(44,"nz-descriptions",26),e.TgZ(45,"nz-descriptions-item",27),e.YNc(46,_n,2,1,"ng-container",0),e.YNc(47,mn,4,0,"ng-container",0),e.qZA(),e.qZA(),e.YNc(48,Zn,7,5,"nz-descriptions",28),e.qZA(),e.qZA(),e.TgZ(49,"nz-col",10),e.TgZ(50,"nz-card",29),e._UZ(51,"cvc-stats-card",30),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(52,"cvc-tab-navigation",31),e.ALo(53,"ngrxPush"),e.TgZ(54,"div",32),e._UZ(55,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(56,"nz-modal",1),e.NdJ("nzVisibleChange",function(c){return e.CHM(t),e.oxw().updateProfileModalVisible=c})("nzOnCancel",function(){return e.CHM(t),e.oxw().handleProfileModalCancel()}),e.YNc(57,bn,2,0,"ng-template",null,33,e.W1O),e.YNc(59,Un,1,1,"ng-template",null,34,e.W1O),e.qZA(),e.BQk()}if(2&o){const t=l.ngIf,r=e.MAs(26),c=e.MAs(58),g=e.MAs(60),x=e.oxw();e.xp6(1),e.Q6J("displayName",t.displayName),e.xp6(3),e.Q6J("ngIf",x.uploadError),e.xp6(1),e.Q6J("ngIf",x.updateSuccess),e.xp6(2),e.Q6J("nzGutter",16),e.xp6(1),e.Q6J("nzSpan",3),e.xp6(2),e.Q6J("user",t)("size",128),e.xp6(4),e.Oqu(t.name),e.xp6(1),e.Q6J("ngIf",e.lcZ(16,42,x.ownProfile$)),e.xp6(4),e.Q6J("ngIf",t.twitterHandle),e.xp6(1),e.Q6J("ngIf",t.facebookProfile),e.xp6(1),e.Q6J("ngIf",t.linkedinProfile),e.xp6(1),e.Q6J("ngIf",t.orcid),e.xp6(1),e.Q6J("nzSpan",13),e.xp6(1),e.Q6J("nzExtra",r),e.xp6(3),e.Q6J("nzColumn",7),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.hij(" ",t.name," "),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.hij(" ",t.username," "),e.xp6(1),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.lcZ(34,44,t.role)," "),e.xp6(2),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",t.areaOfExpertise),e.xp6(1),e.Q6J("ngIf",!t.areaOfExpertise),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",t.country),e.xp6(1),e.Q6J("ngIf",!t.country),e.xp6(1),e.Q6J("nzSpan",5),e.xp6(1),e.Q6J("ngIf",t.organizations.length>0),e.xp6(1),e.Q6J("ngIf",0===t.organizations.length),e.xp6(2),e.Q6J("nzSpan",4),e.xp6(1),e.Q6J("ngIf",t.bio),e.xp6(1),e.Q6J("ngIf",!t.bio),e.xp6(1),e.Q6J("ngIf","EDITOR"===t.role||"ADMIN"===t.role),e.xp6(1),e.Q6J("nzSpan",8),e.xp6(2),e.Q6J("stats",t.statsHash),e.xp6(1),e.Q6J("tabs",e.lcZ(53,46,x.tabs$)),e.xp6(4),e.Q6J("nzVisible",x.updateProfileModalVisible)("nzContent",g)("nzTitle",c)("nzFooter",null)}}function Mn(o,l){1&o&&(e.TgZ(0,"span"),e._uU(1,"Update your Conflict of Interest Statement"),e.qZA())}function An(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"cvc-user-coi-form",58),e.NdJ("coiUpdatedEvent",function(){return e.CHM(t),e.oxw().coiUpdated()}),e.qZA()}}const Nn=[{path:"",component:(()=>{class o{constructor(t,r,c){this.gql=t,this.viewerService=r,this.route=c,this.ownProfile$=new le.X(!1),this.uploadError=!1,this.updateSuccess=!1,this.updateCoiModalVisible=!1,this.updateProfileModalVisible=!1,this.defaultTabs=[{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"},{routeName:"source-suggestions",tabLabel:"Source Suggestions",iconName:"file-add"}],this.tabs$=new le.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(g=>{this.queryRef=this.gql.watch({userId:+g.userId});let x=this.queryRef.valueChanges;this.loading$=x.pipe((0,ce.j)("loading"),(0,W.O)(!0)),this.user$=x.pipe((0,ce.j)("data","user")),this.viewerSub=this.viewerService.viewer$.subscribe(we=>{we.id===+g.userId&&(this.tabs$.next([...this.defaultTabs,{routeName:"notifications",tabLabel:"Notifications",iconName:"bell"}]),this.ownProfile$.next(!0))})})}ngOnDestroy(){var t;this.routeSub.unsubscribe(),null===(t=this.viewerSub)||void 0===t||t.unsubscribe()}profileUploadComplete(t){var r;t?(null===(r=this.queryRef)||void 0===r||r.refetch(),this.updateSuccess=!0):this.uploadError=!0}coiUpdated(){var t;this.updateCoiModalVisible=!1,null===(t=this.queryRef)||void 0===t||t.refetch()}profileUpdated(){var t;this.updateProfileModalVisible=!1,null===(t=this.queryRef)||void 0===t||t.refetch()}handleCoiModalCancel(){this.updateCoiModalVisible=!1}handleProfileModalCancel(){this.updateProfileModalVisible=!1}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.sLD),e.Y36(Oe.a),e.Y36(z.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["users-detail"]],decls:7,vars:7,consts:[[4,"ngIf"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["coiModalTitle",""],["coiModalContent",""],[3,"displayName"],[1,"site-page-header"],["nzType","error","nzCloseable","","nzMessage","There was an error updating your profile image.",3,"nzOnClose",4,"ngIf"],["nzType","success","nzCloseable","","nzMessage","Profile image successfully updated.",3,"nzOnClose",4,"ngIf"],[1,"profile-content"],[3,"nzGutter"],[3,"nzSpan"],[1,"user-avatar"],[3,"user","size"],[1,"user-name"],["nz-typography",""],[1,"user-socials"],["nzAlign","center"],["nzTitle","Profile","nzSize","small",1,"user-profile",3,"nzExtra"],["updateProfile",""],["nzBordered","","nzLayout","vertical","nzSize","small",3,"nzColumn"],["nzTitle","Name",3,"nzSpan"],["nzTitle","User Name",3,"nzSpan"],["nzTitle","Role",3,"nzSpan"],["nzTitle","Area of Expertise",3,"nzSpan"],["nzTitle","Country",3,"nzSpan"],["nzTitle","Organizations",3,"nzSpan"],["nzBordered","","nzLayout","vertical","nzSize","small",1,"user-bio"],["nzTitle","Bio",3,"nzSpan"],["nzBordered","","class","user-coi","nzSize","small",3,"nzTitle","nzExtra","nzColumn",4,"ngIf"],["nzSize","small","nzTitle","Curation Stats"],["header","User Statistics",3,"stats"],[3,"tabs"],[1,"content"],["profileModalTitle",""],["profileModalContent",""],["nzType","error","nzCloseable","","nzMessage","There was an error updating your profile image.",3,"nzOnClose"],["nzType","success","nzCloseable","","nzMessage","Profile image successfully updated.",3,"nzOnClose"],[3,"uploadComplete"],["target","_blank",3,"href",4,"nzSpaceItem"],["target","_blank",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["nz-icon","","nzType","facebook","nzTheme","outline"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["nz-button","","nzSize","small","nzType","link",3,"click"],["nz-typography","","nzType","secondary"],[3,"org",4,"ngFor","ngForOf"],[3,"org"],["nzBordered","","nzSize","small",1,"user-coi",3,"nzTitle","nzExtra","nzColumn"],["coiTitle",""],["updateCoi",""],["nz-button","","nzType","link","nzSize","small",3,"click"],["nzTitle","Status",3,"nzSpan"],["nzTitle","Updated",3,"nzSpan"],["nzTitle","Expires",3,"nzSpan"],["nzTitle","Statement",3,"nzSpan"],[4,"ngIf","ngIfElse"],["noStatement",""],[3,"user","profileUpdatedEvent"],[3,"coiUpdatedEvent"]],template:function(t,r){if(1&t&&(e.YNc(0,yn,61,48,"ng-container",0),e.ALo(1,"ngrxPush"),e.TgZ(2,"nz-modal",1),e.NdJ("nzVisibleChange",function(g){return r.updateCoiModalVisible=g})("nzOnCancel",function(){return r.handleCoiModalCancel()}),e.YNc(3,Mn,2,0,"ng-template",null,2,e.W1O),e.YNc(5,An,1,0,"ng-template",null,3,e.W1O),e.qZA()),2&t){const c=e.MAs(4),g=e.MAs(6);e.Q6J("ngIf",e.lcZ(1,5,r.user$)),e.xp6(2),e.Q6J("nzVisible",r.updateCoiModalVisible)("nzContent",g)("nzTitle",c)("nzFooter",null)}},directives:[i.O5,Je.I,n.$O,n.u5,k.r,P.SK,P.t3,Qe.L,pe.ZU,ke,T.NU,T.$1,m.Ls,V.w,F.bd,Z.ix,U.R7,U.uj,i.sg,Ye.m,Fe.z,qe.P,z.lC,D.du,I,$e.t],pipes:[Y.fM,Be.I,i.uU],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}[_nghost-%COMP%] .user-profile .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .user-profile .ant-descriptions-view{border:none}[_nghost-%COMP%] .user-profile nz-descriptions.is-editor .ant-descriptions-view{border-bottom:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-bio .ant-descriptions-view{border-top:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-header{margin:0;padding:0 12px;border-top:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-header .ant-descriptions-title{padding:6px 0;font-weight:400;font-size:12px;font-weight:500}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-view{border-top:1px solid #f0f0f0}[_nghost-%COMP%] .profile-content{margin-top:8px;margin-bottom:16px}[_nghost-%COMP%] .content{margin-bottom:8px}[_nghost-%COMP%] .user-avatar{text-align:center}[_nghost-%COMP%] .user-socials{text-align:center}[_nghost-%COMP%] .user-name{text-align:center;font-size:120%}"]}),o})(),data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",pathMatch:"full",redirectTo:"activity"},{path:"evidence",component:_,data:{breadcrumb:"Evidence"}},{path:"assertions",component:H,data:{breadcrumb:"Assertions"}},{path:"activity",component:u,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:Pe,data:{breadcrumb:"Source Suggestions"}},{path:"notifications",component:Ie,data:{breadcrumb:"Notifications"}}]}];let In=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[z.Bz.forChild(Nn)],z.Bz]}),o})(),Sn=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,z.Bz,In,Y.WG,k.L,P.Jb,n.KJ,T.zf,U.q6,F.vh,X.S,D.Qp,G.A2,m.PV,pe.ZJ,Z.sL,q.e,K,L.s,M.D,J.c,S.H,b,Q.L,ee.C]]}),o})()},3218:(oe,O,a)=>{a.r(O),a.d(O,{UsersModule:()=>Le});var i=a(9808),M=a(325),n=a(5e3),z=a(8992),J=a(1945),T=a(1894),S=a(647),Z=a(2683),m=a(3618),e=a(8144),b=a(6042),U=a(712),Q=a(3154),P=a(8929),L=a(373),Y=a(1059),F=a(4850),G=a(2986),X=a(13),D=a(7484),v=a(1132),k=a(404),w=a(2166),$=a(8054),R=a(4182),B=a(125),j=a(6715),K=a(5749),q=a(6949),ee=a(2643),ne=a(1243),H=a(8625);function C(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.BQk()),2&s){const p=n.oxw().$implicit;n.xp6(1),n.hij(" ",p.name," ")}}function te(s,d){1&s&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function u(s,d){if(1&s&&(n.TgZ(0,"span"),n._UZ(1,"cvc-organization-tag",25),n.qZA()),2&s){const p=d.$implicit;n.xp6(1),n.Q6J("org",p)}}function h(s,d){if(1&s&&(n.TgZ(0,"div"),n.TgZ(1,"cvc-tag-list"),n.YNc(2,u,2,1,"span",17),n.qZA(),n.qZA()),2&s){const p=n.oxw().$implicit;n.xp6(2),n.Q6J("ngForOf",p.organizations)}}function _(s,d){1&s&&(n.TgZ(0,"i"),n._uU(1,"--"),n.qZA())}function y(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&s){const p=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,p.mostRecentActionTimestamp)," ")}}function A(s,d){1&s&&n._uU(0," -- ")}function W(s,d){if(1&s&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-user-tag",20),n.qZA(),n.TgZ(3,"td"),n.YNc(4,C,2,1,"ng-container",21),n.YNc(5,te,2,0,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(7,"td"),n.YNc(8,h,3,1,"div",21),n.YNc(9,_,2,0,"ng-template",null,23,n.W1O),n.qZA(),n.TgZ(11,"td"),n._uU(12),n.ALo(13,"enumToTitle"),n.qZA(),n.TgZ(14,"td"),n._uU(15),n.qZA(),n.TgZ(16,"td"),n._uU(17),n.qZA(),n.TgZ(18,"td"),n.YNc(19,y,3,3,"ng-container",21),n.YNc(20,A,1,0,"ng-template",null,24,n.W1O),n.qZA(),n.qZA()),2&s){const p=d.$implicit,f=n.MAs(6),N=n.MAs(10),I=n.MAs(21);n.xp6(2),n.Q6J("user",p),n.xp6(2),n.Q6J("ngIf",p.name)("ngIfElse",f),n.xp6(4),n.Q6J("ngIf",p.organizations.length>0)("ngIfElse",N),n.xp6(4),n.hij(" ",n.lcZ(13,10,p.role)," "),n.xp6(3),n.hij(" ",p.statsHash.submittedEvidenceItems," "),n.xp6(2),n.hij(" ",p.statsHash.revisions," "),n.xp6(2),n.Q6J("ngIf",p.mostRecentActionTimestamp)("ngIfElse",I)}}function ie(s,d){if(1&s){const p=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(p);const N=n.oxw(2).ngrxLet;return n.oxw().loadMore(N.endCursor)}),n._uU(1),n.qZA()}if(2&s){const p=n.oxw(3);n.xp6(1),n.hij("Load ",p.initialPageSize," More")}}function V(s,d){if(1&s&&(n.TgZ(0,"tr"),n.TgZ(1,"td",27),n.YNc(2,ie,2,1,"button",28),n.qZA(),n.qZA()),2&s){const p=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",p.hasNextPage)}}function ae(s,d){if(1&s&&(n.ynx(0),n.YNc(1,V,3,1,"tr",26),n.BQk()),2&s){const p=d.ngrxLet;n.xp6(1),n.Q6J("ngIf",p.hasNextPage)}}function ge(s,d){}function ue(s,d){if(1&s&&(n.ynx(0),n.YNc(1,ge,0,0,"ng-template",33),n.BQk()),2&s){const p=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",p.cvcTitleTemplate)}}function se(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.BQk()),2&s){const p=n.oxw(2);n.xp6(1),n.hij(" ",p.cvcTitle," ")}}function de(s,d){if(1&s&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&s){const p=n.oxw().ngIf;n.xp6(1),n.hij(" of ",p," filtered")}}function _e(s,d){if(1&s&&(n.TgZ(0,"span",34),n._uU(1),n.YNc(2,de,2,1,"span",26),n._uU(3,") "),n.qZA()),2&s){const p=d.ngIf,f=n.oxw(2);n.xp6(1),n.AsE(" (",f.totalCount," total, showing ",f.visibleCount,""),n.xp6(1),n.Q6J("ngIf",f.totalCount&&p{class s{constructor(p){this.gql=p,this.debouncedQuery=new P.xQ,this.initialPageSize=25,this.fetchMorePageSize=25,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.sortColumns=U.IRu}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sortBy:{column:U.IRu.LastAction,direction:U.SrV.Desc}});let p=this.queryRef.valueChanges;this.isLoading$=p.pipe((0,L.j)("loading"),(0,Y.O)(!0)),this.users$=p.pipe((0,L.j)("data","users","edges"),(0,F.U)(f=>f.map(N=>N.node))),this.filteredCount$=p.pipe((0,L.j)("data","users","totalCount")),this.filteredCount$.pipe((0,G.q)(1)).subscribe(f=>this.totalCount=f),this.filteredCount$.subscribe(f=>{ff&&(this.visibleCount=f))}),this.pageInfo$=p.pipe((0,L.j)("data","users","pageInfo")),this.debouncedQuery.pipe((0,X.b)(500)).subscribe(f=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){this.loadedPages=1,this.queryRef.refetch({userName:this.nameInput?this.nameInput:void 0,orgName:this.orgNameInput?{name:this.orgNameInput}:void 0,userRole:this.roleInput?this.roleInput:void 0})}onModelChanged(){this.debouncedQuery.next()}onSortChanged(p){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,Q._)(p)})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(p){this.queryRef.fetchMore({variables:{first:this.fetchMorePageSize,after:p}}),this.loadedPages+=1}}return s.\u0275fac=function(p){return new(p||s)(n.Y36(U.tJ6))},s.\u0275cmp=n.Xpm({type:s,selectors:[["cvc-users-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:40,vars:23,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["userTable",""],[3,"nzSortOrderChange"],["nzWidth","5%"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],[3,"nzColumnKey","nzSortFn"],["nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count"],["nz-icon","","nzType","civic:evidence"],["nzRight","","nz-tooltip","","nzTooltipTitle","Revision Count"],["nz-icon","","nzType","civic:revision"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Orgs",3,"inputModel","onInputChanged","inputModelChange"],["nzAllowClear","","nzPlaceHolder","All",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","ADMIN","nzLabel","ADMIN"],["nzValue","CURATOR","nzLabel","CURATOR"],["nzValue","EDITOR","nzLabel","EDITOR"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"user"],[4,"ngIf","ngIfElse"],["nameElse",""],["orgElse",""],["eventElse",""],[3,"org"],[4,"ngIf"],["colspan","20"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:user"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(p,f){if(1&p&&(n.TgZ(0,"nz-card",0),n.TgZ(1,"nz-table",1,2),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",3),n.NdJ("nzSortOrderChange",function(I){return f.onSortChanged(I)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," Username "),n.qZA(),n.TgZ(9,"th",5),n._uU(10," Name "),n.qZA(),n.TgZ(11,"th"),n._uU(12," Organizations "),n.qZA(),n.TgZ(13,"th",6),n._uU(14," Role "),n.qZA(),n.TgZ(15,"th",7),n._UZ(16,"i",8),n.qZA(),n.TgZ(17,"th",9),n._UZ(18,"i",10),n.qZA(),n.TgZ(19,"th",6),n._uU(20," Last Action "),n.qZA(),n.qZA(),n.TgZ(21,"tr"),n._UZ(22,"th"),n.TgZ(23,"th"),n.TgZ(24,"cvc-clearable-input-filter",11),n.NdJ("inputModelChange",function(I){return f.nameInput=I}),n.qZA(),n.qZA(),n.TgZ(25,"th"),n.TgZ(26,"cvc-clearable-input-filter",12),n.NdJ("inputModelChange",function(I){return f.orgNameInput=I}),n.qZA(),n.qZA(),n.TgZ(27,"th"),n.TgZ(28,"nz-select",13),n.NdJ("ngModelChange",function(){return f.onModelChanged()})("ngModelChange",function(I){return f.roleInput=I}),n._UZ(29,"nz-option",14),n._UZ(30,"nz-option",15),n._UZ(31,"nz-option",16),n.qZA(),n.qZA(),n._UZ(32,"th"),n._UZ(33,"th"),n._UZ(34,"th"),n.qZA(),n.qZA(),n.TgZ(35,"tbody"),n.YNc(36,W,22,12,"tr",17),n.YNc(37,ae,2,1,"ng-container",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(38,fe,7,6,"ng-template",null,19,n.W1O)),2&p){const N=n.MAs(2),I=n.MAs(39);n.Q6J("nzTitle",I),n.xp6(1),n.Q6J("nzData",n.lcZ(3,19,f.users$))("nzLoading",n.lcZ(4,21,f.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(8),n.Q6J("nzColumnKey",f.sortColumns.Name)("nzSortFn",!0),n.xp6(4),n.Q6J("nzColumnKey",f.sortColumns.Role)("nzSortFn",!0),n.xp6(6),n.Q6J("nzColumnKey",f.sortColumns.LastAction)("nzSortFn",!0),n.xp6(5),n.Q6J("inputModel",f.nameInput)("onInputChanged",f.textInputCallback),n.xp6(2),n.Q6J("inputModel",f.orgNameInput)("onInputChanged",f.textInputCallback),n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",f.roleInput),n.xp6(8),n.Q6J("ngForOf",N.data),n.xp6(1),n.Q6J("ngrxLet",f.pageInfo$)}},directives:[D.bd,v.N8,v.Om,v.$Z,v.Uo,v._C,v.qD,v.qn,k.SY,S.Ls,Z.w,w.p,$.Vq,R.JJ,R.On,$.Ip,v.p0,i.sg,B.I,i.O5,j.$,K.m,q.eJ,b.ix,ee.dQ,i.tP,m.ZU],pipes:[q.fM,ne.I,H.wr],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),s})();function ze(s,d){1&s&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Contributor Docs "),n.qZA())}const Ce=[{path:"",component:(()=>{class s{constructor(){}}return s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=n.Xpm({type:s,selectors:[["app-users"]],decls:1,vars:0,template:function(p,f){1&p&&n._UZ(0,"router-outlet")},directives:[M.lC],styles:[""]}),s})(),data:{displayName:"Contributors"},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=n.Xpm({type:s,selectors:[["users-home"]],decls:18,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:user"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Contributors"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(p,f){1&p&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0),n.TgZ(2,"nz-page-header-content"),n.TgZ(3,"nz-row",1),n.TgZ(4,"nz-col",2),n._UZ(5,"i",3),n.qZA(),n.TgZ(6,"nz-col",4),n.TgZ(7,"h2"),n._uU(8,"Contributors"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"CIViC depends on its users to add to its knowledgebase and curate its content. Anyone may join CIViC as a Curator and begin contributing."),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,ze,3,0,"a",8),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",9),n.TgZ(15,"div",10),n.TgZ(16,"div",11),n._UZ(17,"cvc-users-table",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&p&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(6),n.Q6J("nzSpan",24))},directives:[z.I,J.$O,J.u5,T.SK,T.t3,S.Ls,Z.w,m.ZU,e.NU,e.$1,b.ix,he],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),s})(),data:{displayName:"Home"}},{path:":userId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.resolve().then(a.bind(a,7600)).then(s=>s.UsersDetailModule)}]}]}];let ve=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[M.Bz.forChild(Ce)],M.Bz]}),s})();var Te=a(4125),xe=a(3630),Ze=a(7345),be=a(9476),re=a(9444),Ue=a(7026),ye=a(897);let Me=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,R.u5,q.WG,S.PV,b.sL,k.cg,v.HQ,$.LV,D.vh,m.ZJ,ye.$,Te.k,xe.X,Ze.W,re.s,H.$L.forChild({formatter:{useClass:Ue.x,provide:H.KP}}),be.L]]}),s})();var Ae=a(5630);let Ne=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,J.KJ,S.PV,T.Jb,b.sL,e.zf,m.ZJ,Ae.D,Me]]}),s})();var Ie=a(9441);let Se=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,S.PV,Ie.s]]}),s})();var Pe=a(7600),ce=a(4292);let le=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,ce.t]]}),s})();var Oe=a(767);let Je=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,Oe.Q]]}),s})();var Qe=a(2832);let pe=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,Qe.W]]}),s})();var Ee=a(7525),ke=a(1150),Ye=a(6114),Fe=a(2712),qe=a(3212);let E=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,R.u5,q.WG,k.cg,Ee.j,T.Jb,b.sL,D.vh,S.PV,Ye.Wr,Fe.FT,qe.E,re.s,ke.N]]}),s})(),Le=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,M.Bz,q.WG,ve,Ne,Se,Pe.UsersDetailModule,le,Je,pe,E]]}),s})()}}]); \ No newline at end of file diff --git a/server/public/3218.c3517fe66324250b.js b/server/public/3218.c3517fe66324250b.js deleted file mode 100644 index 4c16824a6..000000000 --- a/server/public/3218.c3517fe66324250b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3218],{5749:(oe,S,a)=>{a.d(S,{m:()=>te});var i=a(5e3),U=a(9808),n=a(325),C=a(8481),O=a(3610),x=a(4850),N=a(712),m=a(7484),h=a(7881),e=a(1894),I=a(3098),Q=a(6550),V=a(6949);const P=function(u,z){return{displayName:u,profileImagePath:z}};function F(u,z){if(1&u&&(i._UZ(0,"cvc-user-avatar",12),i.TgZ(1,"span",13),i._uU(2),i.qZA()),2&u){const _=i.oxw().ngIf;i.Q6J("user",i.WLB(2,P,_.name,_.profileImagePath)),i.xp6(2),i.Oqu(_.name)}}function k(u,z){if(1&u&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&u){const _=z.ngIf;i.xp6(1),i.Oqu(_)}}function Y(u,z){if(1&u&&(i.ynx(0),i.TgZ(1,"cvc-link-tag",14),i._uU(2),i.qZA(),i.BQk()),2&u){const _=i.oxw().ngIf;i.xp6(1),i.Q6J("href",_.url),i.xp6(1),i.hij(" ",_.name," ")}}function G(u,z){if(1&u&&(i.ynx(0),i.TgZ(1,"nz-card",4),i.YNc(2,F,3,5,"ng-template",null,5,i.W1O),i.TgZ(4,"nz-row"),i.TgZ(5,"nz-col",6),i.TgZ(6,"div",7),i.TgZ(7,"p",8),i.YNc(8,k,2,1,"span",9),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"nz-descriptions",10),i.TgZ(10,"nz-descriptions-item",11),i.YNc(11,Y,3,2,"ng-container",9),i.qZA(),i.qZA(),i.qZA(),i.BQk()),2&u){const _=z.ngIf,b=i.MAs(3);i.oxw();const y=i.MAs(4),H=i.MAs(6);i.xp6(1),i.Q6J("nzTitle",b),i.xp6(7),i.Q6J("ngIf",_.description)("ngIfElse",y),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(2),i.Q6J("ngIf",_.url)("ngIfElse",H)}}function X(u,z){1&u&&i._uU(0," Organization has not provided a description.\n")}function L(u,z){1&u&&i._uU(0," --\n")}let T=(()=>{class u{constructor(_){this.gql=_}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,x.U)(({data:_})=>_.organization))}}return u.\u0275fac=function(_){return new(_||u)(i.Y36(N.X5f))},u.\u0275cmp=i.Xpm({type:u,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noDesc",""],["noHomepage",""],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(_,b){1&_&&(i.TgZ(0,"div",0),i.YNc(1,G,12,6,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA(),i.YNc(3,X,1,0,"ng-template",null,2,i.W1O),i.YNc(5,L,1,0,"ng-template",null,3,i.W1O)),2&_&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,b.org$)))},directives:[U.O5,m.bd,h.L,e.SK,e.t3,I.R7,I.uj,Q.l],pipes:[V.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),u})();var E=a(647);function R(u,z){}function w(u,z){if(1&u&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,R,0,0,"ng-template",6),i.qZA(),i.BQk()),2&u){const _=i.oxw(),b=i.MAs(2);i.xp6(1),i.MGl("routerLink","/organizations/",_.org.id,""),i.xp6(1),i.Q6J("ngTemplateOutlet",b)}}function D(u,z){}function $(u,z){if(1&u&&i._UZ(0,"cvc-organization-popover",10),2&u){const _=i.oxw(3);i.Q6J("orgId",_.org.id)}}function B(u,z){if(1&u&&i.YNc(0,$,1,1,"cvc-organization-popover",9),2&u){const _=i.oxw(2);i.Q6J("ngIf",_.enablePopover)}}function K(u,z){if(1&u&&(i.TgZ(0,"nz-tag",7),i.YNc(1,D,0,0,"ng-template",6),i.qZA(),i.YNc(2,B,1,1,"ng-template",null,8,i.W1O)),2&u){const _=i.MAs(3);i.oxw();const b=i.MAs(8);i.Q6J("nzPopoverContent",_),i.xp6(1),i.Q6J("ngTemplateOutlet",b)}}function q(u,z){}function ee(u,z){if(1&u&&(i.TgZ(0,"nz-tag"),i.YNc(1,q,0,0,"ng-template",6),i.qZA()),2&u){i.oxw();const _=i.MAs(8);i.xp6(1),i.Q6J("ngTemplateOutlet",_)}}function ne(u,z){}function j(u,z){if(1&u&&i.YNc(0,ne,0,0,"ng-template",6),2&u){i.oxw();const _=i.MAs(2);i.Q6J("ngTemplateOutlet",_)}}function v(u,z){if(1&u&&(i._UZ(0,"i",11),i._uU(1)),2&u){const _=i.oxw();i.xp6(1),i.hij(" ",_.org.name,"\n")}}let te=(()=>{class u{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}}return u.\u0275fac=function(_){return new(_||u)},u.\u0275cmp=i.Xpm({type:u,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],["orgPopover",""],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(_,b){if(1&_&&(i.YNc(0,w,3,2,"ng-container",0),i.YNc(1,K,4,2,"ng-template",null,1,i.W1O),i.YNc(3,ee,2,1,"ng-template",null,2,i.W1O),i.YNc(5,j,1,1,"ng-template",null,3,i.W1O),i.YNc(7,v,2,1,"ng-template",null,4,i.W1O)),2&_){const y=i.MAs(6);i.Q6J("ngIf",b.linked)("ngIfElse",y)}},directives:[U.O5,n.yS,U.tP,C.j,O.lU,T,E.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),u})()},9058:(oe,S,a)=>{a.d(S,{j:()=>n});var i=a(712),U=a(5e3);let n=(()=>{class C{transform(x){switch(x){case"ASSERTION":case"Assertion":case i.o71.Assertion:return"civic:assertion";case"EVIDENCE_ITEM":case"EvidenceItem":case i.o71.EvidenceItem:return"civic:evidence";case"GENE":case"Gene":case i.o71.Gene:return"civic:gene";case i.o71.Revision:case"REVISION":case"Revision":return"civic:revision";case i.o71.Variant:case"VARIANT":case"Variant":return"civic:variant";case i.o71.VariantGroup:case"VARIANT_GROUP":case"VariantGrou":return"civic:variant-group";default:return console.log("String No icon name found for "+x),"border-outer"}}}return C.\u0275fac=function(x){return new(x||C)},C.\u0275pipe=U.Yjl({name:"iconNameForSubscribableEntity",type:C,pure:!0}),C})()},6738:(oe,S,a)=>{function i(m){let h={value:void 0,unset:void 0};return m&&m.trim().length>0?h.value=m.trim():h.unset=!0,h}function U(m){let h={value:void 0,unset:void 0};return void 0!==m?h.value=m:h.unset=!0,h}function n(m){let h,e;return m&&m.includes("N/A")?(m=void 0,e=void 0,h=!0):m||(m=void 0,h=void 0,e=!0),{ids:m?m.map(I=>+I):void 0,noneFound:e,notApplicable:h}}function C(m){return{chromosome:x(m.chromosome),representativeTranscript:x(m.representativeTranscript),start:m.start?+m.start:void 0,stop:m.stop?+m.stop:void 0}}function O(m){let h={value:void 0,unset:void 0};return m?h.value=m:h.unset=!0,h}function x(m){let h;return h=m&&m.length>0?m:void 0,h}a.d(S,{aP:()=>N,Zg:()=>n,_$:()=>C,uP:()=>U,dh:()=>O,xt:()=>i});const N=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7600:(oe,S,a)=>{a.r(S),a.d(S,{UsersDetailModule:()=>Sn});var i=a(9808),U=a(5630),n=a(1945),C=a(325),O=a(8762),x=a(8144),N=a(5473),m=a(6042),h=a(647),e=a(5e3);let I=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,m.sL,h.PV]]}),o})();var Q=a(3098),V=a(9476),P=a(1894),F=a(9444),k=a(6949),Y=a(7484),G=a(5249),X=a(5737),L=a(3640),T=a(4182),E=a(2359),R=a(4546),w=a(7008),D=a(3868),$=a(7525),B=a(8054);let K=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,T.u5,R.U5,T.UX,k.WG,Y.vh,E.L,D.aF,m.sL,$.j,B.LV,w.B]]}),o})();var q=a(330),ee=a(5013),ne=a(3756);let j=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-assertions"]],decls:1,vars:1,consts:[["cvcTitle","User Assertions",3,"userId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-assertions-table",0),2&t&&e.Q6J("userId",r.userId)},directives:[ne.x],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var v=a(712),te=a(2011);let u=(()=>{class o{constructor(t){this.route=t,this.mode=v.wJ2.User,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-events"]],decls:1,vars:2,consts:[["tagDisplay","hideUser",3,"userId","mode"]],template:function(t,r){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("userId",r.userId)("mode",r.mode)},directives:[te.o],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var z=a(8965);let _=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-evidence"]],decls:1,vars:1,consts:[["cvcTitle","User Evidence",3,"userId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-evidence-table",0),2&t&&e.Q6J("userId",r.userId)},directives:[z.a],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var b=a(6123),y=a(4850),H=a(1059),ie=a(9169),W=a(2683),ae=a(2643),ge=a(8747),ue=a(6114),se=a(2712),de=a(2347),_e=a(404),me=a(2937),fe=a(9058);function he(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.Q6J("nzType",t.iconName),e.xp6(1),e.hij(" ",t.displayName," ")}}function ze(o,l){1&o&&(e._uU(0),e.ALo(1,"eventVerbiage")),2&o&&e.hij(" ",e.xi3(1,1,l.$implicit.id,"action-filter")," ")}function De(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._UZ(1,"i",17),e.ALo(2,"iconNameForSubscribableEntity"),e._uU(3),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.Q6J("nzType",e.lcZ(2,3,t.subjectWithCount.subject.__typename)),e.xp6(2),e.AsE(" ",t.subjectWithCount.subject.name," (",t.subjectWithCount.occuranceCount,") ")}}function Re(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._uU(1),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.hij(" ",t.displayName," ")}}function Ce(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._uU(1),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function ve(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkMarkRead()}),e._UZ(1,"i",19),e._uU(2,"Mark as read "),e.qZA(),e.TgZ(3,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkMarkUnread()}),e._UZ(4,"i",19),e._uU(5,"Mark as unread "),e.qZA(),e.TgZ(6,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkUnsubscribe()}),e._UZ(7,"i",20),e._uU(8,"Unsubscribe "),e.qZA(),e._uU(9," Check all "),e.TgZ(10,"label",21),e.NdJ("ngModelChange",function(c){return e.CHM(t),e.oxw(2).allChecked=c})("nzCheckedChange",function(c){return e.CHM(t),e.oxw(2).onCheckAllCheckBoxClicked(c)}),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(3),e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(3),e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(4),e.Q6J("ngModel",t.allChecked)("nzIndeterminate",t.someChecked)}}function Te(o,l){if(1&o&&e._UZ(0,"i",32),2&o){const t=e.oxw().$implicit;e.Q6J("nzType","SUBSCRIPTION"===t.key.type?"book":"notification")("nzTheme",t.key.seen?"outline":"twotone")}}function xe(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",33),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).markAsUnread(c.key.id)}),e._UZ(2,"i",34),e.qZA(),e.BQk()}}function Ze(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"button",35),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).markAsRead(c.key.id)}),e._UZ(1,"i",19),e.qZA()}}function be(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",36),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).unsubscribe(c.key.subscription.subscribable.id,c.key.subscription.subscribable.__typename)}),e._UZ(2,"i",20),e.qZA(),e.BQk()}if(2&o){const t=e.oxw().$implicit;e.xp6(1),e.MGl("nzTooltipTitle","You received this notification because you are subscribed to ",t.key.subscription.subscribable.name,". Click to unsubscribe.")}}function re(o,l){1&o&&(e.TgZ(0,"button",37),e._UZ(1,"i",20),e.qZA())}function Ue(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"nz-timeline-item",23),e.YNc(2,Te,1,2,"ng-template",null,24,e.W1O),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",25),e._UZ(6,"cvc-event-timeline-item",26),e.qZA(),e.TgZ(7,"nz-col",27),e.YNc(8,xe,3,0,"ng-container",28),e.YNc(9,Ze,2,0,"ng-template",null,29,e.W1O),e.qZA(),e.TgZ(11,"nz-col",27),e.YNc(12,be,3,1,"ng-container",28),e.YNc(13,re,2,0,"ng-template",null,30,e.W1O),e.TgZ(15,"label",31),e.NdJ("ngModelChange",function(c){return e.CHM(t).$implicit.value.checked=c})("nzCheckedChange",function(c){const Z=e.CHM(t).$implicit;return e.oxw(3).onNotificationCheckBoxClicked(Z.key.id,c)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&o){const t=l.$implicit,r=e.MAs(3),c=e.MAs(10),g=e.MAs(14);e.xp6(1),e.Q6J("nzDot",r)("nzColor",t.key.seen?"gray":"blue"),e.xp6(5),e.Q6J("event",t.key.event),e.xp6(2),e.Q6J("ngIf",t.key.seen)("ngIfElse",c),e.xp6(4),e.Q6J("ngIf",t.key.subscription)("ngIfElse",g),e.xp6(3),e.Q6J("ngModel",t.value.checked)}}function ye(o,l){if(1&o&&(e.TgZ(0,"nz-timeline"),e.YNc(1,Ue,16,8,"ng-container",22),e.ALo(2,"keyvalue"),e.qZA()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,t))}}function Me(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",39),e.TgZ(1,"button",40),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().ngIf;return e.oxw(2).fetchMore(c.endCursor)}),e._uU(2,"Load More "),e.qZA(),e.qZA()}}function Ae(o,l){if(1&o&&(e.ynx(0),e.YNc(1,Me,3,0,"div",38),e.BQk()),2&o){const t=l.ngIf;e.xp6(1),e.Q6J("ngIf",t.hasNextPage)}}function Ne(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"nz-row",2),e.TgZ(2,"nz-col",3),e.TgZ(3,"nz-row"),e.TgZ(4,"nz-button-group",4),e.TgZ(5,"button",5),e.NdJ("click",function(){return e.CHM(t),e.oxw().setIncludeRead(!1)}),e._uU(6,"Unread"),e.qZA(),e.TgZ(7,"button",5),e.NdJ("click",function(){return e.CHM(t),e.oxw().setIncludeRead(!0)}),e._uU(8,"All"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"nz-row"),e.TgZ(10,"nz-col",6),e.TgZ(11,"cvc-participant-list",7),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onNotificationReasonSelected(c)}),e.YNc(12,he,3,2,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(14,"cvc-participant-list",9),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onActionSelected(c)}),e.ALo(15,"ngrxPush"),e.YNc(16,ze,2,4,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(18,"cvc-participant-list",10),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onNotificationSubjectSelected(c)}),e.ALo(19,"ngrxPush"),e.YNc(20,De,4,5,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(22,"cvc-participant-list",11),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onOriginatingUserSelected(c)}),e.ALo(23,"ngrxPush"),e.YNc(24,Re,2,1,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(26,"cvc-participant-list",12),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onOrganizationSelected(c)}),e.ALo(27,"ngrxPush"),e.YNc(28,Ce,2,1,"ng-template",null,8,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"nz-col",13),e.TgZ(31,"nz-card",14),e.YNc(32,ve,11,5,"ng-template",null,15,e.W1O),e.TgZ(34,"nz-row",2),e.TgZ(35,"nz-col",16),e.YNc(36,ye,3,3,"nz-timeline",1),e.YNc(37,Ae,2,1,"ng-container",1),e.ALo(38,"ngrxPush"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&o){const t=l.ngIf,r=e.MAs(33),c=e.oxw();e.xp6(1),e.Q6J("nzGutter",25),e.xp6(4),e.Q6J("nzType",c.includeReadInput?"default":"primary"),e.xp6(2),e.Q6J("nzType",c.includeReadInput?"primary":"default"),e.xp6(4),e.Q6J("participantList",c.notificationTypes),e.xp6(3),e.Q6J("participantList",e.lcZ(15,12,c.actions$)),e.xp6(4),e.Q6J("participantList",e.lcZ(19,14,c.notificationSubjects$)),e.xp6(4),e.Q6J("participantList",e.lcZ(23,16,c.originatingUsers$)),e.xp6(4),e.Q6J("participantList",e.lcZ(27,18,c.organizations$)),e.xp6(5),e.Q6J("nzExtra",r),e.xp6(3),e.Q6J("nzGutter",16),e.xp6(2),e.Q6J("ngIf",t.size>0),e.xp6(1),e.Q6J("ngIf",e.lcZ(38,20,c.pageInfo$))}}let Ie=(()=>{class o{constructor(t,r,c,g,Z){this.route=t,this.gql=r,this.networkErrorService=c,this.updateNotificationStatusMuation=g,this.unsubscribeMutation=Z,this.notificationState=new Map,this.includeReadInput=!1,this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1,this.notificationTypes=[{id:1,type:v.fow.Mention,iconName:"notification",displayName:"Mentioned"},{id:2,type:v.fow.Subscription,iconName:"book",displayName:"Subscribed"}],this.userId=+this.route.snapshot.params.userId,this.updateNotificationStatusMutator=new b.U(c),this.unsubscribeMutator=new b.U(c)}ngOnInit(){this.initialQueryVars={includeRead:this.includeReadInput},this.queryRef=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,y.U)(({data:t})=>t.notifications.pageInfo)),this.notificationStateObservable$=this.results$.pipe((0,y.U)(({data:t})=>{let r=new Map;return t.notifications.edges.forEach(c=>{if(c.node){let g={checked:!1};r.set(c.node,g),this.notificationState.set(c.node,g)}}),r})),this.notificationSubjects$=this.results$.pipe((0,y.U)(({data:t})=>t.notifications.notificationSubjects.map(r=>{var c,g;return{id:`${null===(c=r.subject)||void 0===c?void 0:c.__typename}:${null===(g=r.subject)||void 0===g?void 0:g.id}`,subjectWithCount:r}}))),this.originatingUsers$=this.results$.pipe((0,y.U)(({data:t})=>t.notifications.originatingUsers)),this.actions$=this.results$.pipe((0,y.U)(({data:t})=>t.notifications.eventTypes.map(r=>({id:r})))),this.organizations$=this.results$.pipe((0,y.U)(({data:t})=>t.notifications.organizations)),this.isLoading$=this.results$.pipe((0,y.U)(({loading:t})=>t),(0,H.O)(!0))}fetchMore(t){this.queryRef.fetchMore({variables:{after:t}})}setIncludeRead(t){this.includeReadInput=t,this.queryRef.refetch({includeRead:this.includeReadInput})}onNotificationReasonSelected(t){this.queryRef.refetch({notificationReason:t?t.type:void 0})}onNotificationSubjectSelected(t){var r;let c;if(void 0!==t){let g=null===(r=t.subjectWithCount.subject)||void 0===r?void 0:r.__typename;c={id:t.subjectWithCount.subject.id,entityType:v.o71[g]}}this.queryRef.refetch({originatingObject:c})}onOriginatingUserSelected(t){this.queryRef.refetch({originatingUserId:null==t?void 0:t.id})}onActionSelected(t){this.queryRef.refetch({eventType:t?t.id:void 0})}onOrganizationSelected(t){this.queryRef.refetch({organizationId:null==t?void 0:t.id})}markAsRead(t){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[t],newStatus:v.NQC.Read}})}markAsUnread(t){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[t],newStatus:v.NQC.Unread}})}unsubscribe(t,r){this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[{id:t,entityType:v.o71[r]}]}})}onNotificationCheckBoxClicked(t,r){let c=Array.from(this.notificationState.keys()).find(g=>g.id===t);if(c){let g=this.notificationState.get(c);g&&(g.checked=r)}r?(this.bulkMarkEnabled=!0,Array.from(this.notificationState.values()).every(g=>g.checked)?(this.allChecked=!0,this.someChecked=!1):this.someChecked=!0):Array.from(this.notificationState.values()).some(g=>g.checked)?(this.bulkMarkEnabled=!0,this.allChecked=!1,this.someChecked=!Array.from(this.notificationState.values()).every(g=>!g.checked)):(this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1)}onCheckAllCheckBoxClicked(t){t?this.checkAll():this.uncheckAll()}getCheckedIds(){let t=[];return this.notificationState.forEach((r,c)=>{r.checked&&t.push(c.id)}),t}checkAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((t,r)=>{t.checked=!0})}),this.allChecked=!0,this.someChecked=!1,this.bulkMarkEnabled=!0}uncheckAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((t,r)=>{t.checked=!1})}),this.allChecked=!1,this.someChecked=!1,this.bulkMarkEnabled=!1}bulkMarkRead(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:v.NQC.Read}}),this.uncheckAll()}bulkMarkUnread(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:v.NQC.Unread}}),this.uncheckAll()}bulkUnsubscribe(){let t=[];this.notificationState.forEach((r,c)=>{r.checked&&c.subscription&&t.push({id:c.subscription.subscribable.id,entityType:v.o71[c.subscription.subscribable.__typename]})}),this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:t}}).submitSuccess$.subscribe(r=>{r&&this.queryRef.refetch()}),this.uncheckAll()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.gz),e.Y36(v.yqR),e.Y36(ie.Y),e.Y36(v.LiH),e.Y36(v.m$d))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-notifications"]],decls:4,vars:6,consts:[[3,"nzSpinning"],[4,"ngIf"],[3,"nzGutter"],["nzSpan","4"],["nzSize","small"],["nz-button","","nzShape","round",3,"nzType","click"],["nzSpan","24"],["listTitle","Notification Reason",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Action",3,"participantList","participantSelectedEvent"],["listTitle","Subject",3,"participantList","participantSelectedEvent"],["listTitle","User",3,"participantList","participantSelectedEvent"],["listTitle","Organization",3,"participantList","participantSelectedEvent"],["nzSpan","20"],["nzTitle","Notifications","id","card-content",3,"nzExtra"],["bulkOperations",""],["nzSpan","24",1,"timeline"],["nz-icon","",3,"nzType"],["nz-button","","nzSize","small",3,"disabled","click"],["nz-icon","","nzType","check"],["nz-icon","","nzType","bell"],["nz-checkbox","",3,"ngModel","nzIndeterminate","ngModelChange","nzCheckedChange"],[4,"ngFor","ngForOf"],[3,"nzDot","nzColor"],["timelineDotTemplate",""],["nzFlex","auto"],[3,"event"],["nzFlex","50px"],[4,"ngIf","ngIfElse"],["unread",""],["noSubscriptionButton",""],["nz-checkbox","",3,"ngModel","ngModelChange","nzCheckedChange"],["nz-icon","",1,"item-icon",3,"nzType","nzTheme"],["nz-tooltip","","nzTooltipTitle","Mark as unread.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-icon","","nzType","undo"],["nz-tooltip","","nzTooltipTitle","Mark as read.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-tooltip","","nz-button","","nzType","default","nzShape","circle",3,"nzTooltipTitle","click"],["nz-tooltip","","nzTooltipTitle","You are no longer subscribed to the entity that triggered this notification.","nz-button","","nzType","default","nzShape","circle","disabled",""],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"]],template:function(t,r){1&t&&(e.TgZ(0,"nz-spin",0),e.ALo(1,"ngrxPush"),e.YNc(2,Ne,39,22,"ng-container",1),e.ALo(3,"async"),e.qZA()),2&t&&(e.Q6J("nzSpinning",e.lcZ(1,2,r.isLoading$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,4,r.notificationStateObservable$)))},directives:[$.W,i.O5,P.SK,P.t3,m.fY,W.w,m.ix,ae.dQ,ge.l,h.Ls,Y.bd,ue.Ie,T.JJ,T.On,se.PD,i.sg,se.Zv,de.t,_e.SY],pipes:[k.fM,i.Ov,me.R,fe.j,i.Nd],styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}.read-notification[_ngcontent-%COMP%]{background-color:gray}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]}),o})();var Se=a(9814);let Oe=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-source-suggestions"]],decls:1,vars:1,consts:[["cvcTitle","User Source Suggestions",3,"submitterId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-source-suggestions-table",0),2&t&&e.Q6J("submitterId",r.userId)},directives:[Se.O],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var ce=a(373),le=a(591),Pe=a(9350),Je=a(8992),Qe=a(7881),pe=a(3618),Ee=a(520);let ke=(()=>{class o{constructor(t){this.http=t,this.uploadComplete=new e.vpe}processProfileImage(t){if(t&&t[0]){let r=new FormData;r.append("image",t[0],t[0].name),this.uploadSubscription=this.http.post("/api/upload_profile_image",r).subscribe(c=>this.uploadComplete.emit(!0),c=>this.uploadComplete.emit(!1))}}ngOnDestroy(){var t;null===(t=this.uploadSubscription)||void 0===t||t.unsubscribe()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Ee.eN))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-avatar-uploader"]],outputs:{uploadComplete:"uploadComplete"},decls:4,vars:0,consts:[["type","file","accept","image/*",2,"display","none",3,"change"],["profileImage",""],["nz-button","","nzSize","small","nzType","link",3,"click"]],template:function(t,r){if(1&t){const c=e.EpF();e.TgZ(0,"input",0,1),e.NdJ("change",function(){e.CHM(c);const Z=e.MAs(1);return r.processProfileImage(Z.files)}),e.qZA(),e.TgZ(2,"button",2),e.NdJ("click",function(){return e.CHM(c),e.MAs(1).click()}),e._uU(3,"Upload Image\n"),e.qZA()}},directives:[m.ix,W.w],styles:[""]}),o})();var Ye=a(5749),qe=a(7893),Fe=a(2233),J=a(6738),Le=a(8929),s=a(7625),d=a(822);function p(o,l){1&o&&e._UZ(0,"nz-alert",13)}function f(o,l){if(1&o&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",14),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("errors",t.errorMessages)}}function M(o,l){if(1&o&&e._UZ(0,"nz-option",15),2&o){const t=l.$implicit;e.Q6J("nzLabel",t.name)("nzValue",t.id)}}let A=(()=>{class o{constructor(t,r,c){this.updateProfileGql=t,this.profileUpdatedEvent=new e.vpe,this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new Le.xQ,this.updateProfileMutator=new b.U(c),this.countries$=r.fetch().pipe((0,y.U)(({data:g})=>g.countries))}ngOnInit(){if(!this.user)throw new Error("Must pass a user into the Profile Update Form");this.setInitialFormFields()}updateProfile(){if(this.username&&this.email){this.errorMessages=[];let t={username:this.username,email:this.email,name:(0,J.xt)(this.name),areaOfExpertise:(0,J.uP)(this.areaOfExpertise),orcid:(0,J.xt)(this.orcid),url:(0,J.xt)(this.url),bio:(0,J.xt)(this.bio),countryId:(0,J.uP)(this.countryId),twitterHandle:(0,J.xt)(this.twitterHandle),facebookProfile:(0,J.xt)(this.facebookProfile),linkedinProfile:(0,J.xt)(this.linkedinProfile)},r=this.updateProfileMutator.mutate(this.updateProfileGql,{input:t});r.submitSuccess$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{c&&(this.setInitialFormFields(),this.success=!0,this.profileUpdatedEvent.emit())}),r.submitError$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),r.isSubmitting$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}setInitialFormFields(){var t;this.name=this.user.name,this.username=this.user.username,this.email=this.user.email,this.areaOfExpertise=this.user.areaOfExpertise,this.orcid=this.user.orcid,this.url=this.user.url,this.bio=this.user.bio,this.twitterHandle=this.user.twitterHandle,this.facebookProfile=this.user.facebookProfile,this.linkedinProfile=this.user.linkedinProfile,this.countryId=null===(t=this.user.country)||void 0===t?void 0:t.id}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(v.wbP),e.Y36(v.l4w),e.Y36(ie.Y))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-user-profile-form"]],inputs:{user:"user"},outputs:{profileUpdatedEvent:"profileUpdatedEvent"},decls:56,vars:18,consts:[["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],["nzRequired",""],["nz-input","",2,"width","100%",3,"ngModel","ngModelChange"],["nz-input","","rows","5",2,"width","100%",3,"ngModel","ngModelChange"],["nzAllowClear","","nzShowSearch","",3,"ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzAllowClear","",3,"ngModel","ngModelChange"],["nzLabel","Patient Advocate","nzValue","PATIENT_ADVOCATE"],["nzLabel","Clinical Scientist","nzValue","CLINICAL_SCIENTIST"],["nzLabel","Research Scientist","nzValue","RESEARCH_SCIENTIST"],["type","submit","nz-button","","nzType","primary","nzSize","small",2,"width","100%",3,"disabled","click"],["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable",""],[3,"errors"],[3,"nzLabel","nzValue"]],template:function(t,r){1&t&&(e.TgZ(0,"nz-card"),e.YNc(1,p,1,0,"nz-alert",0),e.YNc(2,f,2,1,"nz-form-item",1),e.TgZ(3,"nz-spin",2),e.TgZ(4,"nz-form-item"),e.TgZ(5,"nz-form-label",3),e._uU(6,"Username"),e.qZA(),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(g){return r.username=g}),e.qZA(),e.qZA(),e.TgZ(8,"nz-form-item"),e.TgZ(9,"nz-form-label"),e._uU(10,"Name"),e.qZA(),e.TgZ(11,"input",4),e.NdJ("ngModelChange",function(g){return r.name=g}),e.qZA(),e.qZA(),e.TgZ(12,"nz-form-item"),e.TgZ(13,"nz-form-label",3),e._uU(14,"Email"),e.qZA(),e.TgZ(15,"input",4),e.NdJ("ngModelChange",function(g){return r.email=g}),e.qZA(),e.qZA(),e.TgZ(16,"nz-form-item"),e.TgZ(17,"nz-form-label"),e._uU(18,"User Bio"),e.qZA(),e.TgZ(19,"textarea",5),e.NdJ("ngModelChange",function(g){return r.bio=g}),e.qZA(),e.qZA(),e.TgZ(20,"nz-form-item"),e.TgZ(21,"nz-form-label"),e._uU(22,"Country"),e.qZA(),e.TgZ(23,"nz-select",6),e.NdJ("ngModelChange",function(g){return r.countryId=g}),e.YNc(24,M,1,2,"nz-option",7),e.ALo(25,"ngrxPush"),e.qZA(),e.qZA(),e.TgZ(26,"nz-form-item"),e.TgZ(27,"nz-form-label"),e._uU(28,"Area of Expertise"),e.qZA(),e.TgZ(29,"nz-select",8),e.NdJ("ngModelChange",function(g){return r.areaOfExpertise=g}),e._UZ(30,"nz-option",9),e._UZ(31,"nz-option",10),e._UZ(32,"nz-option",11),e.qZA(),e.qZA(),e.TgZ(33,"nz-form-item"),e.TgZ(34,"nz-form-label"),e._uU(35,"ORCID Identifier"),e.qZA(),e.TgZ(36,"input",4),e.NdJ("ngModelChange",function(g){return r.orcid=g}),e.qZA(),e.qZA(),e.TgZ(37,"nz-form-item"),e.TgZ(38,"nz-form-label"),e._uU(39,"Personal Website"),e.qZA(),e.TgZ(40,"input",4),e.NdJ("ngModelChange",function(g){return r.url=g}),e.qZA(),e.qZA(),e.TgZ(41,"nz-form-item"),e.TgZ(42,"nz-form-label"),e._uU(43,"Twitter Handle"),e.qZA(),e.TgZ(44,"input",4),e.NdJ("ngModelChange",function(g){return r.twitterHandle=g}),e.qZA(),e.qZA(),e.TgZ(45,"nz-form-item"),e.TgZ(46,"nz-form-label"),e._uU(47,"Facebook Profile"),e.qZA(),e.TgZ(48,"input",4),e.NdJ("ngModelChange",function(g){return r.facebookProfile=g}),e.qZA(),e.qZA(),e.TgZ(49,"nz-form-item"),e.TgZ(50,"nz-form-label"),e._uU(51,"LinkedIn Profile"),e.qZA(),e.TgZ(52,"input",4),e.NdJ("ngModelChange",function(g){return r.linkedinProfile=g}),e.qZA(),e.qZA(),e.TgZ(53,"nz-form-item"),e.TgZ(54,"button",12),e.NdJ("click",function(){return r.updateProfile()}),e._uU(55," Update Profile "),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",r.success),e.xp6(1),e.Q6J("ngIf",r.errorMessages.length>0),e.xp6(1),e.Q6J("nzSpinning",r.loading),e.xp6(4),e.Q6J("ngModel",r.username),e.xp6(4),e.Q6J("ngModel",r.name),e.xp6(4),e.Q6J("ngModel",r.email),e.xp6(4),e.Q6J("ngModel",r.bio),e.xp6(4),e.Q6J("ngModel",r.countryId),e.xp6(1),e.Q6J("ngForOf",e.lcZ(25,16,r.countries$)),e.xp6(5),e.Q6J("ngModel",r.areaOfExpertise),e.xp6(7),e.Q6J("ngModel",r.orcid),e.xp6(4),e.Q6J("ngModel",r.url),e.xp6(4),e.Q6J("ngModel",r.twitterHandle),e.xp6(4),e.Q6J("ngModel",r.facebookProfile),e.xp6(4),e.Q6J("ngModel",r.linkedinProfile),e.xp6(2),e.Q6J("disabled",r.loading||!r.username||!r.email))},directives:[Y.bd,i.O5,E.r,P.SK,R.Nx,d.V,$.W,P.t3,R.iK,T.Fj,T.JJ,T.On,B.Vq,i.sg,B.Ip,m.ix,ae.dQ,W.w],pipes:[k.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),o})();var $e=a(8785),Be=a(1243);function je(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"nz-alert",35),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(2).uploadError=!1}),e.qZA()}}function He(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"nz-alert",36),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(2).updateSuccess=!1}),e.qZA()}}function We(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"cvc-avatar-uploader",37),e.NdJ("uploadComplete",function(c){return e.CHM(t),e.oxw(2).profileUploadComplete(c)}),e.qZA(),e.BQk()}}function Ve(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",40),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://twitter.com/",t.twitterHandle,"",e.LSH)}}function Ge(o,l){1&o&&(e.ynx(0),e.YNc(1,Ve,2,1,"a",38),e.BQk())}function Xe(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",41),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://facebook.com/",t.facebookProfile,"",e.LSH)}}function Ke(o,l){1&o&&(e.ynx(0),e.YNc(1,Xe,2,1,"a",38),e.BQk())}function en(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",42),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://linkedin.com/in/",t.linkedinProfile,"",e.LSH)}}function nn(o,l){1&o&&(e.ynx(0),e.YNc(1,en,2,1,"a",38),e.BQk())}function tn(o,l){if(1&o&&(e.TgZ(0,"a",39),e.TgZ(1,"span"),e._uU(2,"ID"),e.qZA(),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","https://orcid.org/",t.orcid,"",e.LSH)}}function on(o,l){1&o&&(e.ynx(0),e.YNc(1,tn,3,1,"a",38),e.BQk())}function an(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",43),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).updateProfileModalVisible=!0}),e._uU(2," Edit Profile "),e.qZA(),e.BQk()}}function sn(o,l){if(1&o&&(e.YNc(0,an,3,0,"ng-container",0),e.ALo(1,"ngrxPush")),2&o){const t=e.oxw(2);e.Q6J("ngIf",e.lcZ(1,1,t.ownProfile$))}}function rn(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.ALo(2,"enumToTitle"),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.areaOfExpertise)," ")}}function cn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"Unspecified"),e.qZA(),e.qZA(),e.BQk())}function ln(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",null==t.country?null:t.country.name," ")}}function pn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"Unspecified"),e.qZA(),e.qZA(),e.BQk())}function gn(o,l){1&o&&e._UZ(0,"cvc-organization-tag",46),2&o&&e.Q6J("org",l.$implicit)}function un(o,l){if(1&o&&(e.ynx(0),e.YNc(1,gn,1,1,"cvc-organization-tag",45),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.organizations)}}function dn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"User is not a member of any Organizations."),e.qZA(),e.qZA(),e.BQk())}function _n(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",t.bio," ")}}function mn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"User has not provided a bio."),e.qZA(),e.qZA(),e.BQk())}function fn(o,l){1&o&&e._uU(0," Editor Conflict of Interest Statement ")}function hn(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",50),e.NdJ("click",function(){return e.CHM(t),e.oxw(4).updateCoiModalVisible=!0}),e._uU(2," Update COI "),e.qZA(),e.BQk()}}function zn(o,l){if(1&o&&(e.YNc(0,hn,3,0,"ng-container",0),e.ALo(1,"ngrxPush")),2&o){const t=e.oxw(3);e.Q6J("ngIf",e.lcZ(1,1,t.ownProfile$))}}function Cn(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw(3).ngIf;e.xp6(1),e.hij(" ",t.mostRecentConflictOfInterestStatement.coiStatement," ")}}function vn(o,l){1&o&&e._uU(0," I do not have any potential conflicts of interest. ")}function Tn(o,l){if(1&o&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",51),e._uU(2),e.ALo(3,"enumToTitle"),e.qZA(),e.TgZ(4,"nz-descriptions-item",52),e._uU(5),e.ALo(6,"date"),e.qZA(),e.TgZ(7,"nz-descriptions-item",53),e._uU(8),e.ALo(9,"date"),e.qZA(),e.TgZ(10,"nz-descriptions-item",54),e.YNc(11,Cn,2,1,"ng-container",55),e.YNc(12,vn,1,0,"ng-template",null,56,e.W1O),e.qZA(),e.BQk()),2&o){const t=e.MAs(13),r=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.lcZ(3,9,r.mostRecentConflictOfInterestStatement.coiStatus)," "),e.xp6(2),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.xi3(6,11,r.mostRecentConflictOfInterestStatement.createdAt,"shortDate")," "),e.xp6(2),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.xi3(9,14,r.mostRecentConflictOfInterestStatement.expiresAt,"shortDate")," "),e.xp6(2),e.Q6J("nzSpan",3),e.xp6(1),e.Q6J("ngIf",r.mostRecentConflictOfInterestStatement.coiPresent)("ngIfElse",t)}}function xn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",51),e._uU(2,"None on file."),e.qZA(),e.BQk()),2&o&&(e.xp6(1),e.Q6J("nzSpan",3))}function Zn(o,l){if(1&o&&(e.TgZ(0,"nz-descriptions",47),e.YNc(1,fn,1,0,"ng-template",null,48,e.W1O),e.YNc(3,zn,2,3,"ng-template",null,49,e.W1O),e.YNc(5,Tn,14,17,"ng-container",0),e.YNc(6,xn,3,1,"ng-container",0),e.qZA()),2&o){const t=e.MAs(2),r=e.MAs(4),c=e.oxw().ngIf;e.Q6J("nzTitle",t)("nzExtra",r)("nzColumn",3),e.xp6(5),e.Q6J("ngIf",c.mostRecentConflictOfInterestStatement),e.xp6(1),e.Q6J("ngIf",!c.mostRecentConflictOfInterestStatement)}}function bn(o,l){1&o&&(e.TgZ(0,"span"),e._uU(1,"Edit Profile"),e.qZA())}function Un(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"cvc-user-profile-form",57),e.NdJ("profileUpdatedEvent",function(){return e.CHM(t),e.oxw(2).profileUpdated()}),e.qZA()}if(2&o){const t=e.oxw().ngIf;e.Q6J("user",t)}}function yn(o,l){if(1&o){const t=e.EpF();e.ynx(0),e._UZ(1,"cvc-section-navigation",4),e.TgZ(2,"nz-page-header",5),e.TgZ(3,"nz-page-header-content"),e.YNc(4,je,1,0,"nz-alert",6),e.YNc(5,He,1,0,"nz-alert",7),e.TgZ(6,"div",8),e.TgZ(7,"nz-row",9),e.TgZ(8,"nz-col",10),e.TgZ(9,"div",11),e._UZ(10,"cvc-user-avatar",12),e.qZA(),e.TgZ(11,"div",13),e.TgZ(12,"span",14),e.TgZ(13,"strong"),e._uU(14),e.qZA(),e.qZA(),e.YNc(15,We,2,0,"ng-container",0),e.ALo(16,"ngrxPush"),e.qZA(),e.TgZ(17,"div",15),e.TgZ(18,"nz-space",16),e.YNc(19,Ge,2,0,"ng-container",0),e.YNc(20,Ke,2,0,"ng-container",0),e.YNc(21,nn,2,0,"ng-container",0),e.YNc(22,on,2,0,"ng-container",0),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"nz-col",10),e.TgZ(24,"nz-card",17),e.YNc(25,sn,2,3,"ng-template",null,18,e.W1O),e.TgZ(27,"nz-descriptions",19),e.TgZ(28,"nz-descriptions-item",20),e._uU(29),e.qZA(),e.TgZ(30,"nz-descriptions-item",21),e._uU(31),e.qZA(),e.TgZ(32,"nz-descriptions-item",22),e._uU(33),e.ALo(34,"enumToTitle"),e.qZA(),e.TgZ(35,"nz-descriptions-item",23),e.YNc(36,rn,3,3,"ng-container",0),e.YNc(37,cn,4,0,"ng-container",0),e.qZA(),e.TgZ(38,"nz-descriptions-item",24),e.YNc(39,ln,2,1,"ng-container",0),e.YNc(40,pn,4,0,"ng-container",0),e.qZA(),e.TgZ(41,"nz-descriptions-item",25),e.YNc(42,un,2,1,"ng-container",0),e.YNc(43,dn,4,0,"ng-container",0),e.qZA(),e.qZA(),e.TgZ(44,"nz-descriptions",26),e.TgZ(45,"nz-descriptions-item",27),e.YNc(46,_n,2,1,"ng-container",0),e.YNc(47,mn,4,0,"ng-container",0),e.qZA(),e.qZA(),e.YNc(48,Zn,7,5,"nz-descriptions",28),e.qZA(),e.qZA(),e.TgZ(49,"nz-col",10),e.TgZ(50,"nz-card",29),e._UZ(51,"cvc-stats-card",30),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(52,"cvc-tab-navigation",31),e.ALo(53,"ngrxPush"),e.TgZ(54,"div",32),e._UZ(55,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(56,"nz-modal",1),e.NdJ("nzVisibleChange",function(c){return e.CHM(t),e.oxw().updateProfileModalVisible=c})("nzOnCancel",function(){return e.CHM(t),e.oxw().handleProfileModalCancel()}),e.YNc(57,bn,2,0,"ng-template",null,33,e.W1O),e.YNc(59,Un,1,1,"ng-template",null,34,e.W1O),e.qZA(),e.BQk()}if(2&o){const t=l.ngIf,r=e.MAs(26),c=e.MAs(58),g=e.MAs(60),Z=e.oxw();e.xp6(1),e.Q6J("displayName",t.displayName),e.xp6(3),e.Q6J("ngIf",Z.uploadError),e.xp6(1),e.Q6J("ngIf",Z.updateSuccess),e.xp6(2),e.Q6J("nzGutter",16),e.xp6(1),e.Q6J("nzSpan",3),e.xp6(2),e.Q6J("user",t)("size",128),e.xp6(4),e.Oqu(t.name),e.xp6(1),e.Q6J("ngIf",e.lcZ(16,42,Z.ownProfile$)),e.xp6(4),e.Q6J("ngIf",t.twitterHandle),e.xp6(1),e.Q6J("ngIf",t.facebookProfile),e.xp6(1),e.Q6J("ngIf",t.linkedinProfile),e.xp6(1),e.Q6J("ngIf",t.orcid),e.xp6(1),e.Q6J("nzSpan",13),e.xp6(1),e.Q6J("nzExtra",r),e.xp6(3),e.Q6J("nzColumn",7),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.hij(" ",t.name," "),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.hij(" ",t.username," "),e.xp6(1),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.lcZ(34,44,t.role)," "),e.xp6(2),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",t.areaOfExpertise),e.xp6(1),e.Q6J("ngIf",!t.areaOfExpertise),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",t.country),e.xp6(1),e.Q6J("ngIf",!t.country),e.xp6(1),e.Q6J("nzSpan",5),e.xp6(1),e.Q6J("ngIf",t.organizations.length>0),e.xp6(1),e.Q6J("ngIf",0===t.organizations.length),e.xp6(2),e.Q6J("nzSpan",4),e.xp6(1),e.Q6J("ngIf",t.bio),e.xp6(1),e.Q6J("ngIf",!t.bio),e.xp6(1),e.Q6J("ngIf","EDITOR"===t.role||"ADMIN"===t.role),e.xp6(1),e.Q6J("nzSpan",8),e.xp6(2),e.Q6J("stats",t.statsHash),e.xp6(1),e.Q6J("tabs",e.lcZ(53,46,Z.tabs$)),e.xp6(4),e.Q6J("nzVisible",Z.updateProfileModalVisible)("nzContent",g)("nzTitle",c)("nzFooter",null)}}function Mn(o,l){1&o&&(e.TgZ(0,"span"),e._uU(1,"Update your Conflict of Interest Statement"),e.qZA())}function An(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"cvc-user-coi-form",58),e.NdJ("coiUpdatedEvent",function(){return e.CHM(t),e.oxw().coiUpdated()}),e.qZA()}}const Nn=[{path:"",component:(()=>{class o{constructor(t,r,c){this.gql=t,this.viewerService=r,this.route=c,this.ownProfile$=new le.X(!1),this.uploadError=!1,this.updateSuccess=!1,this.updateCoiModalVisible=!1,this.updateProfileModalVisible=!1,this.defaultTabs=[{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"},{routeName:"source-suggestions",tabLabel:"Source Suggestions",iconName:"file-add"}],this.tabs$=new le.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(g=>{this.queryRef=this.gql.watch({userId:+g.userId});let Z=this.queryRef.valueChanges;this.loading$=Z.pipe((0,ce.j)("loading"),(0,H.O)(!0)),this.user$=Z.pipe((0,ce.j)("data","user")),this.viewerSub=this.viewerService.viewer$.subscribe(we=>{we.id===+g.userId&&(this.tabs$.next([...this.defaultTabs,{routeName:"notifications",tabLabel:"Notifications",iconName:"bell"}]),this.ownProfile$.next(!0))})})}ngOnDestroy(){var t;this.routeSub.unsubscribe(),null===(t=this.viewerSub)||void 0===t||t.unsubscribe()}profileUploadComplete(t){var r;t?(null===(r=this.queryRef)||void 0===r||r.refetch(),this.updateSuccess=!0):this.uploadError=!0}coiUpdated(){var t;this.updateCoiModalVisible=!1,null===(t=this.queryRef)||void 0===t||t.refetch()}profileUpdated(){var t;this.updateProfileModalVisible=!1,null===(t=this.queryRef)||void 0===t||t.refetch()}handleCoiModalCancel(){this.updateCoiModalVisible=!1}handleProfileModalCancel(){this.updateProfileModalVisible=!1}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(v.sLD),e.Y36(Pe.a),e.Y36(C.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["users-detail"]],decls:7,vars:7,consts:[[4,"ngIf"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["coiModalTitle",""],["coiModalContent",""],[3,"displayName"],[1,"site-page-header"],["nzType","error","nzCloseable","","nzMessage","There was an error updating your profile image.",3,"nzOnClose",4,"ngIf"],["nzType","success","nzCloseable","","nzMessage","Profile image successfully updated.",3,"nzOnClose",4,"ngIf"],[1,"profile-content"],[3,"nzGutter"],[3,"nzSpan"],[1,"user-avatar"],[3,"user","size"],[1,"user-name"],["nz-typography",""],[1,"user-socials"],["nzAlign","center"],["nzTitle","Profile","nzSize","small",1,"user-profile",3,"nzExtra"],["updateProfile",""],["nzBordered","","nzLayout","vertical","nzSize","small",3,"nzColumn"],["nzTitle","Name",3,"nzSpan"],["nzTitle","User Name",3,"nzSpan"],["nzTitle","Role",3,"nzSpan"],["nzTitle","Area of Expertise",3,"nzSpan"],["nzTitle","Country",3,"nzSpan"],["nzTitle","Organizations",3,"nzSpan"],["nzBordered","","nzLayout","vertical","nzSize","small",1,"user-bio"],["nzTitle","Bio",3,"nzSpan"],["nzBordered","","class","user-coi","nzSize","small",3,"nzTitle","nzExtra","nzColumn",4,"ngIf"],["nzSize","small","nzTitle","Curation Stats"],["header","User Statistics",3,"stats"],[3,"tabs"],[1,"content"],["profileModalTitle",""],["profileModalContent",""],["nzType","error","nzCloseable","","nzMessage","There was an error updating your profile image.",3,"nzOnClose"],["nzType","success","nzCloseable","","nzMessage","Profile image successfully updated.",3,"nzOnClose"],[3,"uploadComplete"],["target","_blank",3,"href",4,"nzSpaceItem"],["target","_blank",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["nz-icon","","nzType","facebook","nzTheme","outline"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["nz-button","","nzSize","small","nzType","link",3,"click"],["nz-typography","","nzType","secondary"],[3,"org",4,"ngFor","ngForOf"],[3,"org"],["nzBordered","","nzSize","small",1,"user-coi",3,"nzTitle","nzExtra","nzColumn"],["coiTitle",""],["updateCoi",""],["nz-button","","nzType","link","nzSize","small",3,"click"],["nzTitle","Status",3,"nzSpan"],["nzTitle","Updated",3,"nzSpan"],["nzTitle","Expires",3,"nzSpan"],["nzTitle","Statement",3,"nzSpan"],[4,"ngIf","ngIfElse"],["noStatement",""],[3,"user","profileUpdatedEvent"],[3,"coiUpdatedEvent"]],template:function(t,r){if(1&t&&(e.YNc(0,yn,61,48,"ng-container",0),e.ALo(1,"ngrxPush"),e.TgZ(2,"nz-modal",1),e.NdJ("nzVisibleChange",function(g){return r.updateCoiModalVisible=g})("nzOnCancel",function(){return r.handleCoiModalCancel()}),e.YNc(3,Mn,2,0,"ng-template",null,2,e.W1O),e.YNc(5,An,1,0,"ng-template",null,3,e.W1O),e.qZA()),2&t){const c=e.MAs(4),g=e.MAs(6);e.Q6J("ngIf",e.lcZ(1,5,r.user$)),e.xp6(2),e.Q6J("nzVisible",r.updateCoiModalVisible)("nzContent",g)("nzTitle",c)("nzFooter",null)}},directives:[i.O5,Je.I,n.$O,n.u5,E.r,P.SK,P.t3,Qe.L,pe.ZU,ke,x.NU,x.$1,h.Ls,W.w,Y.bd,m.ix,Q.R7,Q.uj,i.sg,Ye.m,qe.z,Fe.P,C.lC,L.du,A,$e.t],pipes:[k.fM,Be.I,i.uU],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}[_nghost-%COMP%] .user-profile .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .user-profile .ant-descriptions-view{border:none}[_nghost-%COMP%] .user-profile nz-descriptions.is-editor .ant-descriptions-view{border-bottom:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-bio .ant-descriptions-view{border-top:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-header{margin:0;padding:0 12px;border-top:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-header .ant-descriptions-title{padding:6px 0;font-weight:400;font-size:12px;font-weight:500}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-view{border-top:1px solid #f0f0f0}[_nghost-%COMP%] .profile-content{margin-top:8px;margin-bottom:16px}[_nghost-%COMP%] .content{margin-bottom:8px}[_nghost-%COMP%] .user-avatar{text-align:center}[_nghost-%COMP%] .user-socials{text-align:center}[_nghost-%COMP%] .user-name{text-align:center;font-size:120%}"]}),o})(),data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",pathMatch:"full",redirectTo:"activity"},{path:"evidence",component:_,data:{breadcrumb:"Evidence"}},{path:"assertions",component:j,data:{breadcrumb:"Assertions"}},{path:"activity",component:u,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:Oe,data:{breadcrumb:"Source Suggestions"}},{path:"notifications",component:Ie,data:{breadcrumb:"Notifications"}}]}];let In=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[C.Bz.forChild(Nn)],C.Bz]}),o})(),Sn=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,C.Bz,In,k.WG,E.L,P.Jb,n.KJ,x.zf,Q.q6,Y.vh,X.S,L.Qp,G.A2,h.PV,pe.ZJ,m.sL,q.e,K,F.s,U.D,O.c,N.H,I,V.L,ee.C]]}),o})()},3218:(oe,S,a)=>{a.r(S),a.d(S,{UsersModule:()=>Le});var i=a(9808),U=a(325),n=a(5e3),C=a(8992),O=a(1945),x=a(1894),N=a(647),m=a(2683),h=a(3618),e=a(8144),I=a(6042),Q=a(712),V=a(3154),P=a(8929),F=a(373),k=a(1059),Y=a(4850),G=a(2986),X=a(13),L=a(7484),T=a(1132),E=a(404),R=a(2166),w=a(8054),D=a(4182),$=a(125),B=a(6715),K=a(5749),q=a(6949),ee=a(2643),ne=a(1243),j=a(8625);function v(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.BQk()),2&s){const p=n.oxw().$implicit;n.xp6(1),n.hij(" ",p.name," ")}}function te(s,d){1&s&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function u(s,d){if(1&s&&(n.TgZ(0,"span"),n._UZ(1,"cvc-organization-tag",25),n.qZA()),2&s){const p=d.$implicit;n.xp6(1),n.Q6J("org",p)}}function z(s,d){if(1&s&&(n.TgZ(0,"div"),n.TgZ(1,"cvc-tag-list"),n.YNc(2,u,2,1,"span",17),n.qZA(),n.qZA()),2&s){const p=n.oxw().$implicit;n.xp6(2),n.Q6J("ngForOf",p.organizations)}}function _(s,d){1&s&&(n.TgZ(0,"i"),n._uU(1,"--"),n.qZA())}function b(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&s){const p=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,p.mostRecentActionTimestamp)," ")}}function y(s,d){1&s&&n._uU(0," -- ")}function H(s,d){if(1&s&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-user-tag",20),n.qZA(),n.TgZ(3,"td"),n.YNc(4,v,2,1,"ng-container",21),n.YNc(5,te,2,0,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(7,"td"),n.YNc(8,z,3,1,"div",21),n.YNc(9,_,2,0,"ng-template",null,23,n.W1O),n.qZA(),n.TgZ(11,"td"),n._uU(12),n.ALo(13,"enumToTitle"),n.qZA(),n.TgZ(14,"td"),n._uU(15),n.qZA(),n.TgZ(16,"td"),n._uU(17),n.qZA(),n.TgZ(18,"td"),n.YNc(19,b,3,3,"ng-container",21),n.YNc(20,y,1,0,"ng-template",null,24,n.W1O),n.qZA(),n.qZA()),2&s){const p=d.$implicit,f=n.MAs(6),M=n.MAs(10),A=n.MAs(21);n.xp6(2),n.Q6J("user",p),n.xp6(2),n.Q6J("ngIf",p.name)("ngIfElse",f),n.xp6(4),n.Q6J("ngIf",p.organizations.length>0)("ngIfElse",M),n.xp6(4),n.hij(" ",n.lcZ(13,10,p.role)," "),n.xp6(3),n.hij(" ",p.statsHash.submittedEvidenceItems," "),n.xp6(2),n.hij(" ",p.statsHash.revisions," "),n.xp6(2),n.Q6J("ngIf",p.mostRecentActionTimestamp)("ngIfElse",A)}}function ie(s,d){if(1&s){const p=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(p);const M=n.oxw(2).ngrxLet;return n.oxw().loadMore(M.endCursor)}),n._uU(1),n.qZA()}if(2&s){const p=n.oxw(3);n.xp6(1),n.hij("Load ",p.initialPageSize," More")}}function W(s,d){if(1&s&&(n.TgZ(0,"tr"),n.TgZ(1,"td",27),n.YNc(2,ie,2,1,"button",28),n.qZA(),n.qZA()),2&s){const p=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",p.hasNextPage)}}function ae(s,d){if(1&s&&(n.ynx(0),n.YNc(1,W,3,1,"tr",26),n.BQk()),2&s){const p=d.ngrxLet;n.xp6(1),n.Q6J("ngIf",p.hasNextPage)}}function ge(s,d){}function ue(s,d){if(1&s&&(n.ynx(0),n.YNc(1,ge,0,0,"ng-template",33),n.BQk()),2&s){const p=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",p.cvcTitleTemplate)}}function se(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.BQk()),2&s){const p=n.oxw(2);n.xp6(1),n.hij(" ",p.cvcTitle," ")}}function de(s,d){if(1&s&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&s){const p=n.oxw().ngIf;n.xp6(1),n.hij(" of ",p," filtered")}}function _e(s,d){if(1&s&&(n.TgZ(0,"span",34),n._uU(1),n.YNc(2,de,2,1,"span",26),n._uU(3,") "),n.qZA()),2&s){const p=d.ngIf,f=n.oxw(2);n.xp6(1),n.AsE(" (",f.totalCount," total, showing ",f.visibleCount,""),n.xp6(1),n.Q6J("ngIf",f.totalCount&&p{class s{constructor(p){this.gql=p,this.debouncedQuery=new P.xQ,this.initialPageSize=25,this.fetchMorePageSize=25,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.sortColumns=Q.IRu}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sortBy:{column:Q.IRu.LastAction,direction:Q.SrV.Desc}});let p=this.queryRef.valueChanges;this.isLoading$=p.pipe((0,F.j)("loading"),(0,k.O)(!0)),this.users$=p.pipe((0,F.j)("data","users","edges"),(0,Y.U)(f=>f.map(M=>M.node))),this.filteredCount$=p.pipe((0,F.j)("data","users","totalCount")),this.filteredCount$.pipe((0,G.q)(1)).subscribe(f=>this.totalCount=f),this.filteredCount$.subscribe(f=>{ff&&(this.visibleCount=f))}),this.pageInfo$=p.pipe((0,F.j)("data","users","pageInfo")),this.debouncedQuery.pipe((0,X.b)(500)).subscribe(f=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){this.loadedPages=1,this.queryRef.refetch({userName:this.nameInput?this.nameInput:void 0,orgName:this.orgNameInput?{name:this.orgNameInput}:void 0,userRole:this.roleInput?this.roleInput:void 0})}onModelChanged(){this.debouncedQuery.next()}onSortChanged(p){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,V._)(p)})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(p){this.queryRef.fetchMore({variables:{first:this.fetchMorePageSize,after:p}}),this.loadedPages+=1}}return s.\u0275fac=function(p){return new(p||s)(n.Y36(Q.tJ6))},s.\u0275cmp=n.Xpm({type:s,selectors:[["cvc-users-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:40,vars:23,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["userTable",""],[3,"nzSortOrderChange"],["nzWidth","5%"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],[3,"nzColumnKey","nzSortFn"],["nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count"],["nz-icon","","nzType","civic:evidence"],["nzRight","","nz-tooltip","","nzTooltipTitle","Revision Count"],["nz-icon","","nzType","civic:revision"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Orgs",3,"inputModel","onInputChanged","inputModelChange"],["nzAllowClear","","nzPlaceHolder","All",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","ADMIN","nzLabel","ADMIN"],["nzValue","CURATOR","nzLabel","CURATOR"],["nzValue","EDITOR","nzLabel","EDITOR"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"user"],[4,"ngIf","ngIfElse"],["nameElse",""],["orgElse",""],["eventElse",""],[3,"org"],[4,"ngIf"],["colspan","20"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:user"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(p,f){if(1&p&&(n.TgZ(0,"nz-card",0),n.TgZ(1,"nz-table",1,2),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",3),n.NdJ("nzSortOrderChange",function(A){return f.onSortChanged(A)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," Username "),n.qZA(),n.TgZ(9,"th",5),n._uU(10," Name "),n.qZA(),n.TgZ(11,"th"),n._uU(12," Organizations "),n.qZA(),n.TgZ(13,"th",6),n._uU(14," Role "),n.qZA(),n.TgZ(15,"th",7),n._UZ(16,"i",8),n.qZA(),n.TgZ(17,"th",9),n._UZ(18,"i",10),n.qZA(),n.TgZ(19,"th",6),n._uU(20," Last Action "),n.qZA(),n.qZA(),n.TgZ(21,"tr"),n._UZ(22,"th"),n.TgZ(23,"th"),n.TgZ(24,"cvc-clearable-input-filter",11),n.NdJ("inputModelChange",function(A){return f.nameInput=A}),n.qZA(),n.qZA(),n.TgZ(25,"th"),n.TgZ(26,"cvc-clearable-input-filter",12),n.NdJ("inputModelChange",function(A){return f.orgNameInput=A}),n.qZA(),n.qZA(),n.TgZ(27,"th"),n.TgZ(28,"nz-select",13),n.NdJ("ngModelChange",function(){return f.onModelChanged()})("ngModelChange",function(A){return f.roleInput=A}),n._UZ(29,"nz-option",14),n._UZ(30,"nz-option",15),n._UZ(31,"nz-option",16),n.qZA(),n.qZA(),n._UZ(32,"th"),n._UZ(33,"th"),n._UZ(34,"th"),n.qZA(),n.qZA(),n.TgZ(35,"tbody"),n.YNc(36,H,22,12,"tr",17),n.YNc(37,ae,2,1,"ng-container",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(38,fe,7,6,"ng-template",null,19,n.W1O)),2&p){const M=n.MAs(2),A=n.MAs(39);n.Q6J("nzTitle",A),n.xp6(1),n.Q6J("nzData",n.lcZ(3,19,f.users$))("nzLoading",n.lcZ(4,21,f.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(8),n.Q6J("nzColumnKey",f.sortColumns.Name)("nzSortFn",!0),n.xp6(4),n.Q6J("nzColumnKey",f.sortColumns.Role)("nzSortFn",!0),n.xp6(6),n.Q6J("nzColumnKey",f.sortColumns.LastAction)("nzSortFn",!0),n.xp6(5),n.Q6J("inputModel",f.nameInput)("onInputChanged",f.textInputCallback),n.xp6(2),n.Q6J("inputModel",f.orgNameInput)("onInputChanged",f.textInputCallback),n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",f.roleInput),n.xp6(8),n.Q6J("ngForOf",M.data),n.xp6(1),n.Q6J("ngrxLet",f.pageInfo$)}},directives:[L.bd,T.N8,T.Om,T.$Z,T.Uo,T._C,T.qD,T.qn,E.SY,N.Ls,m.w,R.p,w.Vq,D.JJ,D.On,w.Ip,T.p0,i.sg,$.I,i.O5,B.$,K.m,q.eJ,I.ix,ee.dQ,i.tP,h.ZU],pipes:[q.fM,ne.I,j.wr],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),s})();function ze(s,d){1&s&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Contributor Docs "),n.qZA())}const Ce=[{path:"",component:(()=>{class s{constructor(){}}return s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=n.Xpm({type:s,selectors:[["app-users"]],decls:1,vars:0,template:function(p,f){1&p&&n._UZ(0,"router-outlet")},directives:[U.lC],styles:[""]}),s})(),data:{displayName:"Contributors"},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=n.Xpm({type:s,selectors:[["users-home"]],decls:18,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:user"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Contributors"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(p,f){1&p&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0),n.TgZ(2,"nz-page-header-content"),n.TgZ(3,"nz-row",1),n.TgZ(4,"nz-col",2),n._UZ(5,"i",3),n.qZA(),n.TgZ(6,"nz-col",4),n.TgZ(7,"h2"),n._uU(8,"Contributors"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"CIViC depends on its users to add to its knowledgebase and curate its content. Anyone may join CIViC as a Curator and begin contributing."),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,ze,3,0,"a",8),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",9),n.TgZ(15,"div",10),n.TgZ(16,"div",11),n._UZ(17,"cvc-users-table",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&p&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(6),n.Q6J("nzSpan",24))},directives:[C.I,O.$O,O.u5,x.SK,x.t3,N.Ls,m.w,h.ZU,e.NU,e.$1,I.ix,he],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),s})(),data:{displayName:"Home"}},{path:":userId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.resolve().then(a.bind(a,7600)).then(s=>s.UsersDetailModule)}]}]}];let ve=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[U.Bz.forChild(Ce)],U.Bz]}),s})();var Te=a(4125),xe=a(3630),Ze=a(7345),be=a(9476),re=a(9444),Ue=a(7026),ye=a(897);let Me=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,D.u5,q.WG,N.PV,I.sL,E.cg,T.HQ,w.LV,L.vh,h.ZJ,ye.$,Te.k,xe.X,Ze.W,re.s,j.$L.forChild({formatter:{useClass:Ue.x,provide:j.KP}}),be.L]]}),s})();var Ae=a(5630);let Ne=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,O.KJ,N.PV,x.Jb,I.sL,e.zf,h.ZJ,Ae.D,Me]]}),s})();var Ie=a(9441);let Se=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,N.PV,Ie.s]]}),s})();var Oe=a(7600),ce=a(4292);let le=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,ce.t]]}),s})();var Pe=a(767);let Je=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,Pe.Q]]}),s})();var Qe=a(2832);let pe=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,Qe.W]]}),s})();var Ee=a(7525),ke=a(1150),Ye=a(6114),qe=a(2712),Fe=a(3212);let J=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,D.u5,q.WG,E.cg,Ee.j,x.Jb,I.sL,L.vh,N.PV,Ye.Wr,qe.FT,Fe.E,re.s,ke.N]]}),s})(),Le=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,U.Bz,q.WG,ve,Ne,Se,Oe.UsersDetailModule,le,Je,pe,J]]}),s})()}}]); \ No newline at end of file diff --git a/server/public/3482.0effe2652c710328.js b/server/public/3482.0effe2652c710328.js deleted file mode 100644 index f3f19bb54..000000000 --- a/server/public/3482.0effe2652c710328.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3482],{7036:(H,N,i)=>{i.d(N,{L:()=>gt});var _=i(712),a=i(373),u=i(4850),t=i(5e3),n=i(9808),m=i(1894),C=i(8144),T=i(8929),y=i(7625),M=i(9350),I=i(2359),$=i(7484),h=i(7948),Q=i(5737),Y=i(6123),w=i(9169),x=i(6949),Z=i(404),R=i(6042),L=i(2643),b=i(2683),J=i(3610),V=i(647),K=i(4182),W=i(4546),z=i(9383),E=i(7525),A=i(9180),B=i(8227),G=i(1793);function f(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",4),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function P(c,p){}function O(c,p){1&c&&t.YNc(0,P,0,0,"ng-template")}function j(c,p){if(1&c&&(t.ynx(0),t.YNc(1,O,1,0,void 0,9),t.BQk()),2&c){t.oxw(2);const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function k(c,p){if(1&c&&(t.ynx(0),t.YNc(1,j,2,1,"ng-container",5),t.BQk()),2&c){const s=t.oxw().ngrxLet,g=t.MAs(5),v=t.oxw();t.xp6(1),t.Q6J("ngIf",s.isEditor||s.isAdmin||v.flag.flaggingUser.id===s.id)("ngIfElse",g)}}function en(c,p){}function sn(c,p){1&c&&t.YNc(0,en,0,0,"ng-template")}function cn(c,p){if(1&c&&(t.TgZ(0,"span",10),t.YNc(1,sn,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function on(c,p){}function ln(c,p){1&c&&t.YNc(0,on,0,0,"ng-template")}function U(c,p){if(1&c&&(t.TgZ(0,"span",11),t.YNc(1,ln,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function X(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",13),t.NdJ("nzPopoverVisibleChange",function(v){return t.CHM(s),t.oxw(3).flagResolvePopoverVisible=v})("click",function(){t.CHM(s);const v=t.oxw(3);return v.flagResolvePopoverVisible=!v.flagResolvePopoverVisible}),t._uU(1," Resolve Flag "),t._UZ(2,"i",14),t.qZA()}if(2&c){const s=t.oxw(2).ngrxLet,g=t.oxw(),v=t.MAs(3),D=t.MAs(5);t.Q6J("nzPopoverTitle",v)("nzPopoverVisible",g.flagResolvePopoverVisible)("nzPopoverContent",D)("nzPopoverTrigger",void 0)("disabled",!s.signedIn||s.isCurator&&g.flag.flaggingUser.id!=s.id)}}function q(c,p){if(1&c&&t.YNc(0,X,3,5,"button",12),2&c){const s=t.oxw(2);t.Q6J("ngIf",!s.success)}}function S(c,p){if(1&c&&(t.ynx(0),t.YNc(1,k,2,2,"ng-container",5),t.YNc(2,cn,2,1,"ng-template",null,6,t.W1O),t.YNc(4,U,2,1,"ng-template",null,7,t.W1O),t.YNc(6,q,1,1,"ng-template",null,8,t.W1O),t.BQk()),2&c){const s=p.ngrxLet,g=t.MAs(3);t.xp6(1),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}const nn=function(){return{float:"right"}};function tn(c,p){if(1&c){const s=t.EpF();t._uU(0," Resolve Flag "),t.TgZ(1,"span",15),t.TgZ(2,"i",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw();return v.flagResolvePopoverVisible=!1,v.errorMessages=[]}),t.qZA(),t.qZA()}2&c&&(t.xp6(1),t.Q6J("ngStyle",t.DdM(1,nn)))}function fn(c,p){if(1&c&&t._UZ(0,"nz-alert",25),2&c){t.oxw();const s=t.MAs(2);t.Q6J("nzDescription",s)}}function un(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function zn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,un,2,1,"li",26),t.qZA()),2&c){const s=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Cn(c,p){if(1&c){const s=t.EpF();t.YNc(0,fn,1,1,"nz-alert",17),t.YNc(1,zn,2,1,"ng-template",null,18,t.W1O),t.TgZ(3,"nz-card",19),t.TgZ(4,"form",20),t.NdJ("ngSubmit",function(){return t.CHM(s),t.oxw().resolveFlag()}),t.TgZ(5,"cvc-comment-input-form",21),t.NdJ("commentChange",function(v){return t.CHM(s),t.oxw().comment=v}),t.qZA(),t.TgZ(6,"nz-spin",22),t.TgZ(7,"nz-form-item"),t.TgZ(8,"nz-form-control"),t.TgZ(9,"cvc-form-buttons"),t.TgZ(10,"cvc-org-selector-btn-group",23),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.TgZ(11,"button",24),t._uU(12," Resolve "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&c){const s=t.oxw();t.Q6J("ngIf",s.errorMessages.length>0),t.xp6(5),t.Q6J("comment",s.comment),t.xp6(1),t.Q6J("nzSpinning",s.loading),t.xp6(5),t.Q6J("disabled",!(void 0!==s.comment&&s.comment.length>=10))}}let _n=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.destroy$=new T.xQ,this.resolveFlagMutator=new Y.U(v)}ngOnInit(){if(void 0===this.flag)throw new Error("Must pass a Flag in to resolve component.");this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg})}onOrgSelected(s){this.selectedOrg=s}resolveFlag(){var s;if(this.comment){this.errorMessages=[];let g=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id}});g.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(v=>{v&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),g.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.success=!1,this.errorMessages=v)}),g.isSubmitting$.pipe((0,y.R)(this.destroy$)).subscribe(v=>{this.loading=v})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.EwB),t.Y36(M.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-resolve-form"]],inputs:{flag:"flag",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:2,consts:[["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[4,"ngrxLet"],["flagResolvePopoverTitleTemplate",""],["flagResolvePopoverContentTemplate",""],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["noPermissions",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to resolve flag."],["nz-tooltip","","nzTooltipTitle","If you are not an editor, you can only resolve flags you opened."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click",4,"ngIf"],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nzType","inner",2,"width","300px"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription"],[4,"ngFor","ngForOf"]],template:function(s,g){1&s&&(t.YNc(0,f,1,0,"nz-alert",0),t.YNc(1,S,8,2,"ng-container",1),t.YNc(2,tn,3,2,"ng-template",null,2,t.W1O),t.YNc(4,Cn,13,4,"ng-template",null,3,t.W1O)),2&s&&(t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngrxLet",g.viewer$))},directives:[n.O5,I.r,x.eJ,n.tP,Z.SY,R.ix,L.dQ,b.w,J.lU,V.Ls,n.PC,n.sg,$.bd,K._Y,K.JL,K.F,W.Lr,z.b,E.W,m.SK,W.Nx,m.t3,W.Fd,A.Z,B.q,G.m],styles:[""]}),c})();var gn=i(3618),Tn=i(125),xn=i(4590),pn=i(685),hn=i(8625);function yn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",5),t.NdJ("nzOnClose",function(){const D=t.CHM(s).$implicit;return t.oxw().onErrorBannerClose(D)}),t.qZA()}2&c&&t.Q6J("nzMessage",p.$implicit)}function mn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",6),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}if(2&c){const s=t.oxw();t.MGl("nzMessage","Revision(s) successfully ",s.success,".")}}function dn(c,p){if(1&c&&t._UZ(0,"cvc-comment-body",15),2&c){const s=t.oxw(2).$implicit;t.Q6J("commentBodySegments",s.openComment.parsedComment)}}function Zn(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-flag-resolve-form",16),t.BQk()),2&c){const s=t.oxw(2).$implicit,g=t.oxw(2);t.xp6(1),t.Q6J("flag",s)("flagResolvedCallback",g.flagResolvedCallback)}}function An(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-comment-body",15),t.BQk()),2&c){const s=t.oxw(3).$implicit;t.xp6(1),t.Q6J("commentBodySegments",s.resolutionComment.parsedComment)}}function On(c,p){if(1&c&&t._UZ(0,"cvc-user-tag",21),2&c){const s=t.oxw(3).$implicit;t.Q6J("user",s.resolvingUser)}}function vn(c,p){if(1&c&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",17),t.YNc(2,An,2,1,"ng-container",18),t.qZA(),t.TgZ(3,"nz-col",19),t._uU(4," Resolved By "),t.YNc(5,On,1,1,"cvc-user-tag",20),t._uU(6),t.ALo(7,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngIf",s.resolutionComment),t.xp6(3),t.Q6J("ngIf",void 0!==s.resolvingUser),t.xp6(1),t.hij(" ",t.lcZ(7,3,s.resolvedAt)," ")}}function Rn(c,p){if(1&c&&(t._UZ(0,"i",22),t._uU(1)),2&c){const s=t.oxw(2).$implicit;t.xp6(1),t.hij(" FID",s.id," ")}}function Fn(c,p){if(1&c&&(t.TgZ(0,"span"),t.TgZ(1,"span",26),t._uU(2,"Flagged By"),t.qZA(),t._UZ(3,"cvc-user-tag",21),t.TgZ(4,"span",26),t._uU(5),t.ALo(6,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(3).$implicit;t.xp6(3),t.Q6J("user",s.flaggingUser),t.xp6(2),t.Oqu(t.lcZ(6,2,s.createdAt))}}function Ln(c,p){if(1&c&&t._UZ(0,"cvc-status-tag",27),2&c){const s=t.oxw(3).$implicit;t.Q6J("status",s.state)}}function Mn(c,p){1&c&&(t.TgZ(0,"nz-space",23),t.YNc(1,Fn,7,4,"span",24),t.YNc(2,Ln,1,1,"cvc-status-tag",25),t.qZA())}function bn(c,p){if(1&c&&(t.TgZ(0,"nz-card",10),t.YNc(1,dn,1,1,"cvc-comment-body",11),t._UZ(2,"nz-divider"),t.YNc(3,Zn,2,2,"ng-container",3),t.YNc(4,vn,8,5,"ng-template",null,12,t.W1O),t.YNc(6,Rn,2,1,"ng-template",null,13,t.W1O),t.YNc(8,Mn,3,0,"ng-template",null,14,t.W1O),t.qZA()),2&c){const s=t.MAs(5),g=t.MAs(7),v=t.MAs(9),D=t.oxw().$implicit;t.Q6J("nzTitle",g)("nzExtra",v),t.xp6(1),t.Q6J("ngIf",D.openComment),t.xp6(2),t.Q6J("ngIf","OPEN"==D.state)("ngIfElse",s)}}function En(c,p){1&c&&(t.ynx(0),t.YNc(1,bn,10,5,"nz-card",9),t.BQk())}function an(c,p){if(1&c&&(t.ynx(0),t.TgZ(1,"nz-space",7),t.YNc(2,En,2,0,"ng-container",8),t.qZA(),t.BQk()),2&c){const s=t.oxw();t.xp6(2),t.Q6J("ngForOf",s.flags)}}function Sn(c,p){1&c&&t._UZ(0,"nz-empty",28)}let Nn=(()=>{class c{constructor(s){this.viewerService=s,this.isLoading=!1,this.success=!1,this.destroy$=new T.xQ}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.mostRecentOrg=s.mostRecentOrg})}setupMutationResultHandlers(s,g){s.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(v=>{v&&(this.isLoading=!1,this.errors=void 0,this.success=g)}),s.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.isLoading=!1,this.success=!1,this.errors=v)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(s){var g;this.errors=null===(g=this.errors)||void 0===g?void 0:g.filter(v=>v!=s)}onSuccessBannerClose(){this.success=!1}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(M.a))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list"]],inputs:{flags:"flags",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:4,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzTitle","Flags",1,"card-list"],[4,"ngIf","ngIfElse"],["noFlags",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzDirection","vertical"],[4,"ngFor","ngForOf"],["nzType","inner",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzType","inner",3,"nzTitle","nzExtra"],[3,"commentBodySegments",4,"ngIf"],["flagResolved",""],["flagCardHeaderTitle",""],["flagCardHeaderExtra",""],[3,"commentBodySegments"],[3,"flag","flagResolvedCallback"],["nzSpan","16"],[4,"ngIf"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"user"],["nz-icon","","nzType","civic:flag"],["nzSize","small"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],[3,"status"],["nzNotFoundImage","simple","nzNotFoundContent","No Flags matching filters"]],template:function(s,g){if(1&s&&(t.YNc(0,yn,1,1,"nz-alert",0),t.YNc(1,mn,1,1,"nz-alert",1),t.TgZ(2,"nz-card",2),t.YNc(3,an,3,1,"ng-container",3),t.YNc(4,Sn,1,0,"ng-template",null,4,t.W1O),t.qZA()),2&s){const v=t.MAs(5);t.Q6J("ngForOf",g.errors),t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(2),t.Q6J("ngIf",g.flags&&g.flags.length>0)("ngIfElse",v)}},directives:[n.sg,I.r,n.O5,$.bd,C.NU,C.$1,h.m,Q.g,_n,m.SK,m.t3,gn.ZU,Tn.I,V.Ls,b.w,xn.h,pn.p9],pipes:[hn.wr],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})();var Pn=i(1243);function In(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",8),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function Qn(c,p){if(1&c&&t._UZ(0,"nz-alert",9),2&c){t.oxw();const s=t.MAs(4);t.Q6J("nzDescription",s)}}function Jn(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function Yn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,Jn,2,1,"li",10),t.qZA()),2&c){const s=t.oxw();t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Un(c,p){}function Dn(c,p){1&c&&t.YNc(0,Un,0,0,"ng-template")}function $n(c,p){if(1&c&&(t.ynx(0),t.YNc(1,Dn,1,0,void 0,15),t.BQk()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function Bn(c,p){}function wn(c,p){1&c&&t.YNc(0,Bn,0,0,"ng-template")}function jn(c,p){if(1&c&&(t.TgZ(0,"span",16),t.YNc(1,wn,1,0,void 0,15),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function Wn(c,p){if(1&c&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"enumToTitle"),t.qZA()),2&c){const s=t.oxw().ngrxLet,g=t.oxw();t.Q6J("disabled",!(void 0!==g.comment&&g.comment.length>=10&&s.signedIn)),t.xp6(1),t.hij(" Flag ",t.lcZ(2,2,g.flaggable.entityType)," ")}}function Vn(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"cvc-form-buttons"),t.TgZ(2,"cvc-org-selector-btn-group",11),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.YNc(3,$n,2,1,"ng-container",12),t.YNc(4,jn,2,1,"ng-template",null,13,t.W1O),t.YNc(6,Wn,3,4,"ng-template",null,14,t.W1O),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=p.ngrxLet,g=t.MAs(5);t.xp6(3),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}let Kn=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.destroy$=new T.xQ,this.addFlagMutator=new Y.U(v)}ngOnInit(){if(this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg}),void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(s){this.selectedOrg=s}submitFlag(){var s;this.errorMessages=[];let g={comment:this.comment,subject:this.flaggable,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id},v=this.addFlagMutator.mutate(this.gql,{input:g});v.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(D=>{D&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),v.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(D=>{D.length>0&&(this.errorMessages=D)}),v.isSubmitting$.pipe((0,y.R)(this.destroy$)).subscribe(D=>{this.loading=D})}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.B0s),t.Y36(M.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-add-form"]],inputs:{flaggable:"flaggable",flagAddedCallback:"flagAddedCallback"},decls:11,vars:5,consts:[["nzType","inner"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription"],[4,"ngFor","ngForOf"],[3,"selectedOrgChange"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to flag entity."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"]],template:function(s,g){1&s&&(t.TgZ(0,"nz-card",0),t.YNc(1,In,1,0,"nz-alert",1),t.YNc(2,Qn,1,1,"nz-alert",2),t.YNc(3,Yn,2,1,"ng-template",null,3,t.W1O),t.TgZ(5,"form",4),t.NdJ("ngSubmit",function(){return g.submitFlag()}),t.TgZ(6,"cvc-comment-input-form",5),t.NdJ("commentChange",function(D){return g.comment=D}),t.qZA(),t.TgZ(7,"nz-spin",6),t.TgZ(8,"nz-form-item"),t.TgZ(9,"nz-form-control"),t.YNc(10,Vn,8,2,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngIf",g.errorMessages.length>0),t.xp6(4),t.Q6J("comment",g.comment),t.xp6(1),t.Q6J("nzSpinning",g.loading),t.xp6(3),t.Q6J("ngrxLet",g.viewer$))},directives:[$.bd,n.O5,I.r,n.sg,K._Y,K.JL,K.F,W.Lr,z.b,E.W,m.SK,W.Nx,m.t3,W.Fd,x.eJ,A.Z,B.q,n.tP,Z.SY,R.ix,L.dQ,G.m,b.w],pipes:[Pn.I],styles:[""]}),c})();var Hn=i(8747),Gn=i(6699);function kn(c,p){if(1&c&&(t._UZ(0,"cvc-flag-list",13),t.ALo(1,"ngrxPush")),2&c){const s=t.oxw(2);t.Q6J("flags",t.lcZ(1,2,s.flags$))("flagResolvedCallback",s.refresh)}}function Xn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw(2).ngrxLet;return t.oxw(2).loadMore(null==v?null:v.endCursor)}),t._uU(1,"Load More"),t.qZA()}}function qn(c,p){1&c&&(t.ynx(0),t.YNc(1,Xn,2,0,"button",15),t.BQk())}function nt(c,p){if(1&c&&(t.ynx(0),t.YNc(1,qn,2,0,"ng-container",14),t.BQk()),2&c){const s=p.ngrxLet;t.xp6(1),t.Q6J("ngIf",null==s?null:s.hasNextPage)}}function tt(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw(2);t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}function et(c,p){if(1&c&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.Oqu(s.displayName)}}function ot(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function it(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function at(c,p){if(1&c&&(t.YNc(0,ot,1,1,"nz-avatar",18),t.YNc(1,it,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function st(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function ct(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function lt(c,p){if(1&c&&(t.YNc(0,st,1,1,"nz-avatar",18),t.YNc(1,ct,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function rt(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",3),t.TgZ(3,"nz-space",4),t.YNc(4,kn,2,4,"cvc-flag-list",5),t.YNc(5,nt,2,1,"ng-container",6),t.YNc(6,tt,1,2,"cvc-flag-add-form",7),t.qZA(),t.qZA(),t.TgZ(7,"nz-col",8),t.TgZ(8,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onStateSelected(v)}),t.YNc(9,et,2,1,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(11,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onFlaggingUsersSelected(v)}),t.ALo(12,"ngrxPush"),t.YNc(13,at,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(15,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onResolvingUsersSelected(v)}),t.ALo(16,"ngrxPush"),t.YNc(17,lt,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(4),t.Q6J("ngrxLet",s.pageInfo$),t.xp6(3),t.Q6J("preselectedOption",s.selectableStates[0])("participantList",s.selectableStates),t.xp6(3),t.Q6J("participantList",t.lcZ(12,6,s.uniqueFlaggingUsers$)),t.xp6(4),t.Q6J("participantList",t.lcZ(16,8,s.uniqueResolvingUsers$))}}function _t(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw();t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}let gt=(()=>{class c{constructor(s){this.gql=s,this.defaultPageSize=5,this.selectableStates=[{id:1,displayName:"Open",value:_.BQZ.Open},{id:2,displayName:"Resolved",value:_.BQZ.Resolved}]}ngOnInit(){if(null==this.flaggable)throw new Error("Must pass a flaggable into flag list");this.queryRef=this.gql.watch({first:this.defaultPageSize,flaggable:this.flaggable,state:_.BQZ.Open}),this.refresh=()=>{this.queryRef.refetch()},this.results$=this.queryRef.valueChanges,this.flags$=this.results$.pipe((0,a.j)("data","flags","edges"),(0,u.U)(s=>s.map(g=>g.node))),this.pageInfo$=this.results$.pipe((0,a.j)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,a.j)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,u.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueFlaggingUsers})),this.uniqueResolvingUsers$=this.results$.pipe((0,u.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueResolvingUsers}))}onFlaggingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},flaggingUserId:s?s.id:void 0})}onResolvingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},resolvingUserId:s?s.id:void 0})}onStateSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},state:s?s.value:void 0})}loadMore(s){var g;null===(g=this.queryRef)||void 0===g||g.fetchMore({variables:{first:this.defaultPageSize,after:s}})}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.rzy))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list-and-filter"]],inputs:{flaggable:"flaggable"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noFlags",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"flags","flagResolvedCallback",4,"nzSpaceItem"],[4,"ngrxLet"],[3,"flaggable","flagAddedCallback",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Flag State",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Flagging Users",3,"participantList","participantSelectedEvent"],["listTitle","Resolving Users",3,"participantList","participantSelectedEvent"],[3,"flags","flagResolvedCallback"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[3,"flaggable","flagAddedCallback"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"]],template:function(s,g){if(1&s&&(t.YNc(0,rt,19,10,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,_t,1,2,"ng-template",null,1,t.W1O)),2&s){const v=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,g.unfilteredCount$))("ngIfElse",v)}},directives:[n.O5,m.SK,m.t3,C.NU,C.$1,Nn,x.eJ,R.ix,L.dQ,b.w,Kn,Hn.l,Gn.Dz],pipes:[x.fM,n.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})()},4271:(H,N,i)=>{i.d(N,{M:()=>q});var _=i(9808),a=i(6949),u=i(3868),t=i(7345),n=i(7484),m=i(4546),C=i(3762),T=i(8625),y=i(4182),M=i(1825),I=i(6042),$=i(4375),h=i(2359),Q=i(404),Y=i(9444),w=i(4509),x=i(7525),Z=i(5e3);let R=(()=>{class S{}return S.\u0275fac=function(tn){return new(tn||S)},S.\u0275mod=Z.oAB({type:S}),S.\u0275inj=Z.cJS({imports:[[_.ez,y.u5,y.UX,a.WG,m.U5,I.sL,n.vh,h.L,Q.cg,x.j,M.A,$.R,Y.s,w.w]]}),S})();var L=i(9779),b=i(8144),J=i(1894),V=i(8481),K=i(3618),W=i(6699),z=i(3580),E=i(8018),A=i(6286),B=i(4867),G=i(8645),f=i(685),P=i(592),O=i(6114),j=i(5737),k=i(647),en=i(3610),sn=i(1047);let cn=(()=>{class S{}return S.\u0275fac=function(tn){return new(tn||S)},S.\u0275mod=Z.oAB({type:S}),S.\u0275inj=Z.cJS({imports:[[_.ez,y.UX,a.WG,I.sL,m.U5,y.u5,h.L,n.vh,en.$6,k.PV,Q.cg,x.j,w.w,$.R,M.A]]}),S})();var on=i(7026),ln=i(8909);let U=(()=>{class S{}return S.\u0275fac=function(tn){return new(tn||S)},S.\u0275mod=Z.oAB({type:S}),S.\u0275inj=Z.cJS({imports:[[_.ez,J.Jb,C.Ph,n.vh,b.zf,V.X,K.ZJ,W.Rt,f.Xo,O.Wr,j.S,Q.cg,C.Ph,en.$6,k.PV,sn.o7,y.u5,T.$L.forChild({formatter:{useClass:on.x,provide:T.KP}}),M.A,L.s,t.W,z.Q,E.e,A.y,B.Q,G.M,P.x,I.sL,h.L,a.WG,cn,j.S,ln.m]]}),S})();var X=i(1150);let q=(()=>{class S{}return S.\u0275fac=function(tn){return new(tn||S)},S.\u0275mod=Z.oAB({type:S}),S.\u0275inj=Z.cJS({imports:[[_.ez,y.u5,a.WG,T.$L.forChild({formatter:{useClass:on.x,provide:T.KP}}),I.sL,m.U5,u.aF,I.sL,t.W,C.Ph,n.vh,R,U,f.Xo,X.N,W.Rt,b.zf]]}),S})()},8168:(H,N,i)=>{i.d(N,{Y:()=>a});var _=i(5e3);let a=(()=>{class u{constructor(){}}return u.\u0275fac=function(n){return new(n||u)},u.\u0275dir=_.lG2({type:u,selectors:[["","cvcFlaggableOptions",""]]}),u})()},5623:(H,N,i)=>{i.d(N,{o:()=>w});var _=i(5e3),a=i(8168),u=i(9808),t=i(4401),n=i(647),m=i(404);const C=["cvcFlaggable",""];function T(x,Z){1&x&&_.Hsn(0)}function y(x,Z){1&x&&_.GkF(0)}function M(x,Z){if(1&x&&(_.ynx(0),_.YNc(1,y,1,0,"ng-container",2),_.BQk()),2&x){_.oxw();const R=_.MAs(1);_.xp6(1),_.Q6J("ngTemplateOutlet",R)}}function I(x,Z){if(1&x&&(_.TgZ(0,"a",6),_._UZ(1,"i",7),_.qZA()),2&x){_.oxw();const R=_.MAs(5);_.xp6(1),_.Q6J("nzTooltipTitle",R)}}function $(x,Z){if(1&x&&_._uU(0),2&x){const R=_.oxw(2);_.hij(" ",R.flags," open flags ")}}function h(x,Z){1&x&&_.GkF(0)}function Q(x,Z){if(1&x&&(_.ynx(0),_.TgZ(1,"nz-ribbon",3),_.YNc(2,I,2,1,"ng-template",null,4,_.W1O),_.YNc(4,$,1,1,"ng-template",null,5,_.W1O),_.YNc(6,h,1,0,"ng-container",2),_.qZA(),_.BQk()),2&x){const R=_.MAs(3);_.oxw();const L=_.MAs(1);_.xp6(1),_.Q6J("nzText",R),_.xp6(5),_.Q6J("ngTemplateOutlet",L)}}const Y=["*"];let w=(()=>{class x{constructor(R){this.renderer=R}ngOnChanges(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}ngAfterViewInit(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}addFlagged(){this.flaggedChild&&this.renderer.addClass(this.flaggedChild.nativeElement,"flaggedChild")}removeFlagged(){this.flaggedChild&&this.renderer.removeClass(this.flaggedChild.nativeElement,"flaggedChild")}}return x.\u0275fac=function(R){return new(R||x)(_.Y36(_.Qsj))},x.\u0275cmp=_.Xpm({type:x,selectors:[["","cvcFlaggable",""]],contentQueries:function(R,L,b){if(1&R&&_.Suo(b,a.Y,5,_.SBq),2&R){let J;_.iGM(J=_.CRH())&&(L.flaggedChild=J.first)}},inputs:{flags:"flags",entity:"entity"},features:[_.TTD],attrs:C,ngContentSelectors:Y,decls:4,vars:2,consts:[["flaggedContent",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["nzPlacement","start","nzColor","#ff3333",3,"nzText"],["flaggedText",""],["flaggedTooltip",""],["routerLink","flags",2,"color","#FFF"],["nz-icon","","nzType","flag","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top","nzTooltipColor","#FF3333",3,"nzTooltipTitle"]],template:function(R,L){1&R&&(_.F$t(),_.YNc(0,T,1,0,"ng-template",null,0,_.W1O),_.YNc(2,M,2,1,"ng-container",1),_.YNc(3,Q,7,2,"ng-container",1)),2&R&&(_.xp6(2),_.Q6J("ngIf",0===L.flags),_.xp6(1),_.Q6J("ngIf",L.flags))},directives:[u.O5,u.tP,t.F9,n.Ls,m.SY],styles:[""]}),x})()},4682:(H,N,i)=>{i.d(N,{m:()=>C});var _=i(9808),a=i(404),u=i(3618),t=i(4401),n=i(647),m=i(5e3);let C=(()=>{class T{}return T.\u0275fac=function(M){return new(M||T)},T.\u0275mod=m.oAB({type:T}),T.\u0275inj=m.cJS({imports:[[_.ez,n.PV,t.mS,a.cg,u.ZJ]]}),T})()},1835:(H,N,i)=>{i.d(N,{i:()=>ln});var _=i(9808),a=i(7484),u=i(3762),t=i(1894),n=i(5e3);let m=(()=>{class U{}return U.\u0275fac=function(q){return new(q||U)},U.\u0275mod=n.oAB({type:U}),U.\u0275inj=n.cJS({imports:[[_.ez,t.Jb]]}),U})();var C=i(8144);let T=(()=>{class U{}return U.\u0275fac=function(q){return new(q||U)},U.\u0275mod=n.oAB({type:U}),U.\u0275inj=n.cJS({imports:[[_.ez,a.vh,u.Ph,t.Jb,C.zf]]}),U})();var y=i(9779),M=i(1825),I=i(8481),$=i(3618),h=i(6699),Q=i(8625),Y=i(7345),w=i(3580),x=i(8018),Z=i(6286),R=i(4867),L=i(8645),b=i(5482),J=i(685),V=i(592),K=i(6114),W=i(5737),z=i(404),E=i(6042),A=i(2359),B=i(6949),G=i(647),f=i(3610),P=i(1047),O=i(4182),j=i(9444),k=i(3098),en=i(7026),sn=i(4509),cn=i(8909),on=i(209);let ln=(()=>{class U{}return U.\u0275fac=function(q){return new(q||U)},U.\u0275mod=n.oAB({type:U}),U.\u0275inj=n.cJS({imports:[[_.ez,t.Jb,u.Ph,a.vh,C.zf,I.X,$.ZJ,h.Rt,J.Xo,K.Wr,W.S,z.cg,u.Ph,f.$6,G.PV,P.o7,k.q6,W.S,O.u5,Q.$L.forChild({formatter:{useClass:en.x,provide:Q.KP}}),M.A,T,y.s,m,Y.W,w.Q,x.e,Z.y,R.Q,on.i,L.M,V.x,sn.w,j.s,cn.m,b.cD,E.sL,A.L,B.WG]]}),U})()},8291:(H,N,i)=>{i.d(N,{a:()=>xe});var _=i(712),a=i(373),u=i(4850),t=i(1059),n=i(5e3),m=i(325),C=i(9808),T=i(1894),y=i(8144),M=i(8929),I=i(6123),$=i(7625),h=i(9350),Q=i(9169),Y=i(2359),w=i(6949),x=i(7484),Z=i(5482),R=i(3762);const L=["itemTemplate"],b=function(e){return{$implicit:e}};function J(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",9),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,b,o))}}function V(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}function K(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",14),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,b,o))}}function W(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Removed")}}function z(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,K,3,4,"nz-list-item",13),n.YNc(2,W,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Removed ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.removedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.removedObjects.length)}}function E(e,l){1&e&&(n.ynx(0),n.YNc(1,z,3,3,"nz-list",7),n.BQk())}function A(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",16),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(2);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,b,o))}}function B(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(2);n.MGl("nzNoResult","No ",o.entityType," Added")}}function G(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,A,3,4,"nz-list-item",15),n.YNc(2,B,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw();n.MGl("nzHeader","Added ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.addedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.addedObjects.length)}}function f(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",18),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,b,o))}}function P(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Kept")}}function O(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,f,3,4,"nz-list-item",17),n.YNc(2,P,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Kept ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.keptObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.keptObjects.length)}}function j(e,l){1&e&&(n.ynx(0),n.YNc(1,O,3,3,"nz-list",7),n.BQk())}function k(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",19),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,b,o))}}function en(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}let sn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.diffObject)throw new Error("Must specify a diffObject.");if(void 0===this.entityType)throw new Error("Must specify an entityType.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(o,r,d){if(1&o&&n.Suo(d,L,5),2&o){let F;n.iGM(F=n.CRH())&&(r.itemTemplateRef=F.first)}},inputs:{diffObject:"diffObject",entityType:"entityType"},decls:14,vars:12,consts:[[3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader"],["ngClass","current",4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nzDirection","vertical"],[4,"ngIf"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader",4,"nzSpaceItem"],["ngClass","suggested",4,"ngFor","ngForOf"],["ngClass","current"],["nz-typography",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzNoResult"],["ngClass","removed",4,"ngFor","ngForOf"],["ngClass","removed"],["ngClass","added",4,"ngFor","ngForOf"],["ngClass","added"],["ngClass","kept",4,"ngFor","ngForOf"],["ngClass","kept"],["ngClass","suggested"]],template:function(o,r){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"nz-list",2),n.YNc(3,J,3,4,"nz-list-item",3),n.YNc(4,V,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"nz-space",5),n.YNc(7,E,2,0,"ng-container",6),n.YNc(8,G,3,3,"nz-list",7),n.YNc(9,j,2,0,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(10,"nz-col",1),n.TgZ(11,"nz-list",2),n.YNc(12,k,3,4,"nz-list-item",8),n.YNc(13,en,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Original ",r.entityType," List"),n.xp6(1),n.Q6J("ngForOf",r.diffObject.currentObjects),n.xp6(1),n.Q6J("ngIf",0===r.diffObject.currentObjects.length),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.Q6J("ngIf",r.diffObject.currentObjects.length>0),n.xp6(2),n.Q6J("ngIf",r.diffObject.currentObjects.length>0),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Revised ",r.entityType," List"),n.xp6(1),n.Q6J("ngForOf",r.diffObject.suggestedObjects),n.xp6(1),n.Q6J("ngIf",0===r.diffObject.suggestedObjects.length))},directives:[T.SK,T.t3,R.n_,C.sg,R.AA,C.mk,C.tP,C.O5,R.I2,y.NU,y.$1],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})();var cn=i(6906),on=i(4022),ln=i(7469),U=i(8481),X=i(7701),q=i(7956),S=i(8664),nn=i(9001);let tn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.left)throw new Error("Must provide a left side of the diff.");if(void 0===this.right)throw new Error("Must provide a right side of the diff.");if(void 0===this.entityType)throw new Error("Must provide a diff.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-value-diff"]],inputs:{currentValue:"currentValue",suggestedValue:"suggestedValue",left:"left",right:"right",entityType:"entityType"},decls:15,vars:10,consts:[[3,"nzGutter"],[3,"nzSpan"],[3,"innerHtml"],[1,"diff","suggested"],[1,"background"]],template:function(o,r){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"h4"),n._uU(3),n.qZA(),n._UZ(4,"div",2),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"h4"),n._uU(7),n.qZA(),n._UZ(8,"div",2),n.qZA(),n.TgZ(9,"nz-col",1),n.TgZ(10,"h4"),n._uU(11),n.qZA(),n.TgZ(12,"div",3),n.TgZ(13,"div",4),n._uU(14),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Original ",r.entityType,""),n.xp6(1),n.Q6J("innerHtml",r.left,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("",r.entityType," Diff"),n.xp6(1),n.Q6J("innerHtml",r.right,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Revised ",r.entityType,""),n.xp6(3),n.hij(" ",r.suggestedValue," "))},directives:[T.SK,T.t3],styles:[":host{display:block}.diff{overflow:auto;width:100%}.diff .background{padding:4px 8px}.diff.insertions .background{background:#f6ffed;color:#237804}.diff.deletions .background{background:#fff1f0;color:#a8071a}.diff.suggested .background,.diff.original .background{background:#f0f5ff;color:#10239e}.diff del,.diff ins{text-decoration:none}.diff del strong{font-weight:400;background:#fcc}.diff ins strong{font-weight:400;background:#9f9}.diff .del{font-weight:400;background:#fee;color:#b00}.diff .ins{font-weight:400;background:#dfd;color:#080}ul{list-style:none}\n"],encapsulation:2}),e})();var fn=i(5737),un=i(7948),zn=i(3618),Cn=i(125),_n=i(647),gn=i(2683),Tn=i(3610),xn=i(4590),pn=i(6042),hn=i(6114),yn=i(404),mn=i(685),dn=i(2643),Zn=i(9383),An=i(8227),On=i(1793),vn=i(3098),Rn=i(1243),Fn=i(8625);function Ln(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",4),n.NdJ("nzOnClose",function(){const F=n.CHM(o).$implicit;return n.oxw().onErrorBannerClose(F)}),n.qZA()}2&e&&n.Q6J("nzMessage",l.$implicit)}function Mn(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",5),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw().onSuccessBannerClose()}),n.qZA()}if(2&e){const o=n.oxw();n.MGl("nzMessage","Revision(s) successfully ",o.success,".")}}function bn(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function En(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",18),n.YNc(2,bn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const an=function(e,l,o){return{id:e,name:l,link:o}};function Sn(e,l){if(1&e&&n._UZ(0,"cvc-disease-tag",22),2&e){const o=l.$implicit;n.Q6J("disease",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Nn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",21),n.YNc(2,Sn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Pn(e,l){if(1&e&&n._UZ(0,"cvc-drug-tag",24),2&e){const o=l.$implicit;n.Q6J("drug",n.kEZ(1,an,o.id,o.displayName,o.link))}}function In(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",23),n.YNc(2,Pn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Qn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Jn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",25),n.YNc(2,Qn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Yn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Un(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",26),n.YNc(2,Yn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Dn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function $n(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",27),n.YNc(2,Dn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Bn(e,l){if(1&e&&n._UZ(0,"cvc-variant-type-tag",29),2&e){const o=l.$implicit;n.Q6J("variantType",n.kEZ(1,an,o.id,o.displayName,o.link))}}function wn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",28),n.YNc(2,Bn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function jn(e,l){if(1&e&&n._UZ(0,"cvc-phenotype-tag",31),2&e){const o=l.$implicit;n.Q6J("phenotype",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Wn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",30),n.YNc(2,jn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Vn(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Kn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",32),n.YNc(2,Vn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Hn(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Gn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",34),n.YNc(2,Hn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function kn(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function Xn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",35),n.YNc(2,kn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const qn=function(e,l,o,r){return{id:e,name:l,link:o,status:r}};function nt(e,l){if(1&e&&n._UZ(0,"cvc-evidence-tag",37),2&e){const o=l.$implicit;n.Q6J("evidence",n.l5B(1,qn,o.id,o.displayName,o.link,o.status))}}function tt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",36),n.YNc(2,nt,1,6,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function et(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-revision-value-diff",38),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("currentValue",o.currentValue)("suggestedValue",o.suggestedValue)("left",o.linkoutData.diffValue.left)("right",o.linkoutData.diffValue.right)("entityType",o.linkoutData.name)}}function ot(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-comment-body",42),n.BQk()),2&e){const o=n.oxw(2).$implicit;n.xp6(1),n.Q6J("commentBodySegments",o.resolutionComment.parsedComment)}}function it(e,l){if(1&e&&n._UZ(0,"cvc-user-tag",43),2&e){const o=n.oxw(2).$implicit;n.Q6J("user",o.resolver)}}function at(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"nz-divider"),n.TgZ(2,"nz-row"),n.TgZ(3,"nz-col",39),n.YNc(4,ot,2,1,"ng-container",15),n.qZA(),n.TgZ(5,"nz-col",40),n._uU(6),n.ALo(7,"enumToTitle"),n.YNc(8,it,1,1,"cvc-user-tag",41),n._uU(9),n.ALo(10,"timeago"),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(4),n.Q6J("ngIf",o.resolutionComment),n.xp6(2),n.hij(" ",n.lcZ(7,4,o.status)," By "),n.xp6(2),n.Q6J("ngIf",void 0!==o.resolver),n.xp6(1),n.hij(" ",n.lcZ(10,6,o.resolvedAt)," ")}}function st(e,l){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"i",45),n._uU(2),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.qZA()),2&e){const o=n.oxw(2).$implicit;n.xp6(2),n.hij(" RID",o.id," "),n.xp6(2),n.hij("",o.linkoutData.name," Updated")}}function ct(e,l){if(1&e&&n._UZ(0,"i",48),2&e){n.oxw();const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function lt(e,l){if(1&e&&n._UZ(0,"cvc-comment-body",42),2&e){const o=n.oxw(3).$implicit;n.Q6J("commentBodySegments",o.creationComment.parsedComment)}}function rt(e,l){1&e&&(n.ynx(0),n.YNc(1,ct,1,1,"i",46),n.YNc(2,lt,1,1,"ng-template",null,47,n.W1O),n.BQk())}function _t(e,l){if(1&e&&(n.TgZ(0,"nz-space"),n.YNc(1,st,5,2,"span",44),n.YNc(2,rt,4,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(2),n.Q6J("ngIf",o.creationComment)}}function gt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",55),n._uU(2,"Submitted By"),n.qZA(),n._UZ(3,"cvc-user-tag",43),n.BQk()),2&e){const o=n.oxw(3).$implicit;n.xp6(3),n.Q6J("user",o.revisor)}}function c(e,l){1&e&&(n.TgZ(0,"span",55),n._uU(1,"Submitted"),n.qZA())}function p(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,gt,4,1,"ng-container",53),n.YNc(2,c,2,0,"ng-template",null,54,n.W1O),n.TgZ(4,"span",55),n._uU(5),n.ALo(6,"timeago"),n.qZA(),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",r.revisor)("ngIfElse",o),n.xp6(4),n.Oqu(n.lcZ(6,3,r.createdAt))}}function s(e,l){if(1&e&&n._UZ(0,"cvc-status-tag",56),2&e){const o=n.oxw(2).$implicit;n.Q6J("status",o.status)}}function g(e,l){1&e&&n._UZ(0,"nz-divider",57)}function v(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"a",58),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).$implicit;return n.oxw(3).onChangesetSelected(d.revisionsetId)}),n._uU(1,"Show Group"),n.qZA()}}function D(e,l){1&e&&n._UZ(0,"nz-divider",57)}function pt(e,l){1&e&&n._UZ(0,"label",61),2&e&&n.Q6J("nzDisabled",!0)}function mt(e,l){1&e&&n._UZ(0,"label",64),2&e&&n.Q6J("nzDisabled",!0)}function dt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"label",65),n.NdJ("nzCheckedChange",function(d){n.CHM(o);const F=n.oxw(5).$implicit;return n.oxw(3).onRevisionCheckboxClicked(d,F.id)}),n.qZA()}}function vt(e,l){if(1&e&&(n.YNc(0,mt,1,1,"label",62),n.YNc(1,dt,1,0,"ng-template",null,63,n.W1O)),2&e){const o=n.MAs(2),r=n.oxw(4).$implicit,d=n.oxw(2).ngrxLet;n.Q6J("ngIf",d.isCurator&&d.id!=(null==r.revisor?null:r.revisor.id))("ngIfElse",o)}}function ft(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,pt,1,1,"label",59),n.YNc(2,vt,3,2,"ng-template",null,60,n.W1O),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw(5).ngrxLet;n.xp6(1),n.Q6J("ngIf",!r.signedIn)("ngIfElse",o)}}function ut(e,l){1&e&&(n.ynx(0),n.YNc(1,D,1,0,"nz-divider",51),n.YNc(2,ft,4,2,"span",44),n.BQk())}function zt(e,l){if(1&e&&(n.TgZ(0,"nz-space",49),n.NdJ("click",function(r){return r.stopPropagation()}),n.YNc(1,p,7,5,"span",44),n.YNc(2,s,1,1,"cvc-status-tag",50),n.YNc(3,g,1,0,"nz-divider",51),n.YNc(4,v,2,0,"a",52),n.YNc(5,ut,3,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(5),n.Q6J("ngIf","NEW"===o.status)}}function Ct(e,l){if(1&e&&(n.TgZ(0,"nz-collapse-panel",11),n.ynx(1,12),n.YNc(2,En,4,1,"ng-container",13),n.YNc(3,Nn,4,1,"ng-container",13),n.YNc(4,In,4,1,"ng-container",13),n.YNc(5,Jn,4,1,"ng-container",13),n.YNc(6,Un,4,1,"ng-container",13),n.YNc(7,$n,4,1,"ng-container",13),n.YNc(8,wn,4,1,"ng-container",13),n.YNc(9,Wn,4,1,"ng-container",13),n.YNc(10,Kn,4,1,"ng-container",13),n.YNc(11,Gn,4,1,"ng-container",13),n.YNc(12,Xn,4,1,"ng-container",13),n.YNc(13,tt,4,1,"ng-container",13),n.YNc(14,et,2,5,"ng-container",14),n.BQk(),n.YNc(15,at,11,8,"ng-container",15),n.YNc(16,_t,3,1,"ng-template",null,16,n.W1O),n.YNc(18,zt,6,1,"ng-template",null,17,n.W1O),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(17),d=n.MAs(19);n.Q6J("nzHeader",r)("nzExtra",d)("nzActive",!0),n.xp6(1),n.Q6J("ngSwitch",o.fieldName),n.xp6(1),n.Q6J("ngSwitchCase","source_ids"),n.xp6(1),n.Q6J("ngSwitchCase","disease_id"),n.xp6(1),n.Q6J("ngSwitchCase","drug_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_alias_ids"),n.xp6(1),n.Q6J("ngSwitchCase","clinvar_entry_ids"),n.xp6(1),n.Q6J("ngSwitchCase","hgvs_expression_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_type_ids"),n.xp6(1),n.Q6J("ngSwitchCase","phenotype_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_id"),n.xp6(1),n.Q6J("ngSwitchCase","variant_ids"),n.xp6(1),n.Q6J("ngSwitchCase","source_id"),n.xp6(1),n.Q6J("ngSwitchCase","evidence_item_ids"),n.xp6(2),n.Q6J("ngIf","NEW"!==o.status)}}function Tt(e,l){if(1&e&&(n.TgZ(0,"nz-collapse",9),n.YNc(1,Ct,20,17,"nz-collapse-panel",10),n.qZA()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",o.untypedRevisons)}}function xt(e,l){1&e&&n._UZ(0,"nz-empty",66)}function ht(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",6),n.YNc(2,Tt,2,1,"nz-collapse",7),n.YNc(3,xt,1,0,"ng-template",null,8,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.MAs(4),r=n.oxw(),d=n.MAs(4);n.xp6(1),n.Q6J("nzExtra",d),n.xp6(1),n.Q6J("ngIf",r.revisions&&r.revisions.length>0)("ngIfElse",o)}}function yt(e,l){}function Zt(e,l){1&e&&n.YNc(0,yt,0,0,"ng-template")}function At(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Zt,1,0,void 0,75),n.BQk()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Ot(e,l){}function Rt(e,l){1&e&&n.YNc(0,Ot,0,0,"ng-template")}function Ft(e,l){if(1&e&&(n.TgZ(0,"span",76),n.YNc(1,Rt,1,0,void 0,75),n.qZA()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Lt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",77),n.NdJ("nzPopoverVisibleChange",function(d){return n.CHM(o),n.oxw(7).validationPopoverVisible=d})("click",function(){n.CHM(o);const d=n.oxw(7);return d.validationPopoverVisible=!d.validationPopoverVisible}),n._uU(1," Review Selected Revisions "),n._UZ(2,"i",78),n.qZA()}if(2&e){const o=n.oxw(2).ngrxLet,r=n.MAs(7),d=n.MAs(9),F=n.oxw(5);n.Q6J("nzPopoverTitle",r)("nzPopoverVisible",F.validationPopoverVisible)("nzPopoverContent",d)("nzPopoverTrigger",void 0)("disabled",0===F.selectedRevisionIds.length||!o.signedIn)}}function Mt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,At,2,1,"ng-container",53),n.YNc(2,Ft,2,1,"ng-template",null,73,n.W1O),n.YNc(4,Lt,3,5,"ng-template",null,74,n.W1O),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)("ngIfElse",o)}}function bt(e,l){if(1&e&&n._UZ(0,"i",80),2&e){n.oxw(4);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function Et(e,l){1&e&&(n.ynx(0),n.YNc(1,bt,1,1,"i",79),n.BQk())}const St=function(){return{float:"right"}};function Nt(e,l){if(1&e){const o=n.EpF();n._uU(0," Review Selected Revisions "),n.TgZ(1,"span",81),n.TgZ(2,"i",82),n.NdJ("click",function(){return n.CHM(o),n.oxw(6).validationPopoverVisible=!1}),n.qZA(),n.qZA()}2&e&&(n.xp6(1),n.Q6J("ngStyle",n.DdM(1,St)))}function Pt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-comment-input-form",85),n.NdJ("commentChange",function(d){return n.CHM(o),n.oxw(7).revisionComment=d}),n.qZA()}if(2&e){const o=n.oxw(7);n.Q6J("comment",o.revisionComment)}}function It(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",87),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onRejectRevisionsClicked()}),n._uU(3," Reject Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(8);n.xp6(1),n.Q6J("selectedOrg",o.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",o.isLoading)("disabled",void 0===o.revisionComment||o.revisionComment.length<10)}}function Qt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",88),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onAcceptRevisionClicked()}),n._uU(3," Accept Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(4).ngrxLet,r=n.oxw(4);n.xp6(1),n.Q6J("selectedOrg",r.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",r.isLoading)("disabled",!(0==o&&(void 0===r.revisionComment||""===r.revisionComment||r.revisionComment.length>=10)))}}function Jt(e,l){if(1&e&&n._UZ(0,"i",90),2&e){n.oxw(6);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function Yt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Jt,1,1,"i",89),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(1),n.Q6J("ngIf",o>0)}}function Ut(e,l){1&e&&(n.TgZ(0,"span"),n.TgZ(1,"nz-space"),n.YNc(2,It,4,3,"span",44),n.YNc(3,Qt,4,3,"span",44),n.YNc(4,Yt,2,1,"span",44),n.qZA(),n.qZA())}function Dt(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,Pt,1,1,"cvc-comment-input-form",84),n.YNc(2,Ut,5,0,"span",44),n.qZA())}function $t(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"div",68),n.TgZ(2,"div",69),n.TgZ(3,"nz-space",70),n.YNc(4,Mt,6,2,"span",44),n.YNc(5,Et,2,0,"ng-container",15),n.qZA(),n.YNc(6,Nt,3,2,"ng-template",null,71,n.W1O),n.YNc(8,Dt,3,0,"ng-template",null,72,n.W1O),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().ngrxLet;n.xp6(5),n.Q6J("ngIf",o>0)}}function Bt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,$t,10,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(4);n.xp6(1),n.Q6J("ngrxLet",o.viewer$)}}function wt(e,l){if(1&e&&(n.TgZ(0,"nz-list-item"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o)}}function jt(e,l){if(1&e&&(n.TgZ(0,"nz-card",92),n.TgZ(1,"nz-list",93),n.YNc(2,wt,2,1,"nz-list-item",94),n.qZA(),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function Wt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,jt,3,1,"nz-card",91),n.qZA()),2&e){const o=n.oxw(2).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function Vt(e,l){if(1&e&&(n.TgZ(0,"nz-descriptions-item",99),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.Q6J("nzTitle",o.fieldName),n.xp6(1),n.Oqu(o.error)}}function Kt(e,l){if(1&e&&(n.TgZ(0,"nz-card",96),n.TgZ(1,"nz-descriptions",97),n.YNc(2,Vt,2,2,"nz-descriptions-item",98),n.qZA(),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function Ht(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Kt,3,1,"nz-card",95),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function Gt(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,Wt,2,1,"span",44),n.YNc(2,Ht,2,1,"span",44),n.qZA())}function kt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Bt,2,1,"ng-container",2),n.YNc(2,Gt,3,0,"ng-template",null,67,n.W1O),n.BQk()),2&e){const o=n.oxw(3);n.xp6(1),n.Q6J("ngrxLet",o.totalErrorCount$)}}function Xt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,kt,4,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",o.genericErrors$)}}function qt(e,l){if(1&e&&n.YNc(0,Xt,2,1,"ng-container",2),2&e){const o=n.oxw();n.Q6J("ngrxLet",o.validationErrors$)}}let ne=(()=>{class e{constructor(o,r,d,F,rn){this.viewerService=o,this.networkErrorService=r,this.acceptRevisionsGql=d,this.rejectRevisionsGql=F,this.validationGql=rn,this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new M.xQ,this.revisionSetSelectedEvent=new n.vpe,this.revisionMutationCompleted=new n.vpe,this.acceptRevisionsMutator=new I.U(r),this.rejectRevisionsMutator=new I.U(r)}ngOnChanges(o){this.untypedRevisons=this.revisions,this.selectedRevisionIds=[],this.queryRef&&this.queryRef.refetch({ids:this.selectedRevisionIds})}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(o=>{this.mostRecentOrg=o.mostRecentOrg}),this.queryRef=this.validationGql.watch({ids:[]}),this.genericErrors$=this.queryRef.valueChanges.pipe((0,u.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors)),this.validationErrors$=this.queryRef.valueChanges.pipe((0,u.U)(({data:o})=>o.validateRevisionsForAcceptance.validationErrors)),this.totalErrorCount$=this.queryRef.valueChanges.pipe((0,u.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors.length+o.validateRevisionsForAcceptance.validationErrors.length),(0,t.O)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(o){this.revisionSetSelectedEvent.emit(o)}onRevisionCheckboxClicked(o,r){o?this.selectedRevisionIds.push(r):this.selectedRevisionIds=this.selectedRevisionIds.filter(d=>d!=r),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(o,r){o.submitSuccess$.pipe((0,$.R)(this.destroy$)).subscribe(d=>{d&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=r,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])}),o.submitError$.pipe((0,$.R)(this.destroy$)).subscribe(d=>{d.length>0&&(this.isLoading=!1,this.success=!1,this.errors=d,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])})}onRejectRevisionsClicked(){var o;if(this.revisionComment&&""!==this.revisionComment){this.isLoading=!0;let r=this.rejectRevisionsMutator.mutate(this.rejectRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:this.revisionComment}});this.setupMutationResultHandlers(r,"rejected")}}onAcceptRevisionClicked(){var o;this.isLoading=!0;let r=this.acceptRevisionsMutator.mutate(this.acceptRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:""===this.revisionComment?void 0:this.revisionComment}});this.setupMutationResultHandlers(r,"accepted")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(o){var r;this.errors=null===(r=this.errors)||void 0===r?void 0:r.filter(d=>d!=o)}onSuccessBannerClose(){this.success=!1}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(h.a),n.Y36(Q.Y),n.Y36(_.ti),n.Y36(_.VZq),n.Y36(_.Qzn))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions"},outputs:{revisionSetSelectedEvent:"revisionSetSelectedEvent",revisionMutationCompleted:"revisionMutationCompleted"},features:[n.TTD],decls:5,vars:3,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],[4,"ngrxLet"],["moderationButtons",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzTitle","Revisions",1,"card-list",3,"nzExtra"],["class","revision-list",4,"ngIf","ngIfElse"],["noRevisions",""],[1,"revision-list"],[3,"nzHeader","nzExtra","nzActive",4,"ngFor","ngForOf"],[3,"nzHeader","nzExtra","nzActive"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],["revCardHeaderTitle",""],["revCardHeaderExtra",""],["entityType","Sources",3,"diffObject"],["itemTemplate",""],[3,"source"],["entityType","Disease",3,"diffObject"],[3,"disease"],["entityType","Drugs",3,"diffObject"],[3,"drug"],["entityType","Variant Aliases",3,"diffObject"],["entityType","ClinVar Entries",3,"diffObject"],["entityType","HGVS Expressions",3,"diffObject"],["entityType","Variant Types",3,"diffObject"],[3,"variantType"],["entityType","Phenotypes",3,"diffObject"],[3,"phenotype"],["entityType","Variant",3,"diffObject"],[3,"variant"],["entityType","Variants",3,"diffObject"],["entityType","Source",3,"diffObject"],["entityType","Evidence",3,"diffObject"],[3,"evidence"],[3,"currentValue","suggestedValue","left","right","entityType"],["nzSpan","16"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"commentBodySegments"],[3,"user"],[4,"nzSpaceItem"],["nz-icon","","nzType","civic:revision"],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent",4,"nzSpaceItem"],["creationCommentTemplate",""],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent"],["nzSize","small",3,"click"],[3,"status",4,"nzSpaceItem"],["nzType","vertical",4,"nzSpaceItem"],["nz-button","","nzType","link",3,"click",4,"nzSpaceItem"],[4,"ngIf","ngIfElse"],["noRevisor",""],["nz-typography","","nzType","secondary"],[3,"status"],["nzType","vertical"],["nz-button","","nzType","link",3,"click"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["loggedIn",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["canRevise",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Select Revision for Acceptance/Rejection",3,"nzCheckedChange"],["nzNotFoundImage","simple","nzNotFoundContent","No Revisions matching filters"],["validationErrorTemplate",""],["nz-row","",2,"margin-top","1em"],["nz-col","","nzSpan","24",2,"text-align","right"],["nzDirection","horizontal"],["validationPopoverTitleTemplate",""],["validationPopoverContentTemplate",""],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"nzSpaceItem"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzDirection","vertical"],[3,"comment","commentChange",4,"nzSpaceItem"],[3,"comment","commentChange"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nzDanger","",3,"nzLoading","disabled","click"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small",3,"nzLoading","disabled","click"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"ngIf"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],["nzTitle","Errors",4,"ngIf"],["nzTitle","Errors"],["nzSize","small"],[4,"ngFor","ngForOf"],["nzTitle","Validation Errors",4,"ngIf"],["nzTitle","Validation Errors"],["nzBordered",""],[3,"nzTitle",4,"ngFor","ngForOf"],[3,"nzTitle"]],template:function(o,r){1&o&&(n.YNc(0,Ln,1,1,"nz-alert",0),n.YNc(1,Mn,1,1,"nz-alert",1),n.YNc(2,ht,5,3,"ng-container",2),n.YNc(3,qt,1,1,"ng-template",null,3,n.W1O)),2&o&&(n.Q6J("ngForOf",r.errors),n.xp6(1),n.Q6J("ngIf",r.success),n.xp6(1),n.Q6J("ngrxLet",r.viewer$))},directives:[C.sg,Y.r,C.O5,w.eJ,x.bd,Z.yH,Z.Zv,C.RF,C.n9,sn,cn.T,on.n,ln.u,U.j,X.j,q.i,S.I,nn.O,C.ED,tn,fn.g,T.SK,T.t3,un.m,zn.ZU,Cn.I,y.NU,y.$1,_n.Ls,gn.w,Tn.lU,xn.h,pn.ix,hn.Ie,yn.SY,mn.p9,C.tP,dn.dQ,C.PC,Zn.b,An.q,On.m,R.n_,R.AA,vn.R7,vn.uj],pipes:[Rn.I,Fn.wr],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}"]}),e})();var te=i(8747),ee=i(6699);function oe(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-revision-list",14),n.NdJ("revisionSetSelectedEvent",function(d){return n.CHM(o),n.oxw(2).onRevisionSetSelected(d)})("revisionMutationCompleted",function(){return n.CHM(o),n.oxw(2).refresh()}),n.ALo(1,"ngrxPush"),n.qZA()}if(2&e){const o=n.oxw(2);n.Q6J("revisions",n.lcZ(1,1,o.revisions$))}}function ie(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(null==d?null:d.endCursor)}),n._uU(1,"Load More"),n.qZA()}}function ae(e,l){1&e&&(n.ynx(0),n.YNc(1,ie,2,0,"button",16),n.BQk())}function se(e,l){if(1&e&&(n.ynx(0),n.YNc(1,ae,2,0,"ng-container",15),n.BQk()),2&e){const o=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",null==o?null:o.hasNextPage)}}function ce(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-row"),n.TgZ(1,"nz-tag",19),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw(3).onSetFilterClearClicked()}),n._uU(2),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(3);n.xp6(2),n.hij("Group: ",o.filteredSet,"")}}function le(e,l){1&e&&(n.TgZ(0,"nz-space",4),n.YNc(1,ce,3,1,"nz-row",18),n.qZA())}function re(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function _e(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function ge(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function pe(e,l){if(1&e&&(n.YNc(0,_e,1,1,"nz-avatar",20),n.YNc(1,ge,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(o.username)}}function me(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function de(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function ve(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function fe(e,l){if(1&e&&(n.YNc(0,de,1,1,"nz-avatar",20),n.YNc(1,ve,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(o.username)}}function ue(e,l){if(1&e){const o=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2),n.TgZ(2,"nz-col",3),n.TgZ(3,"nz-space",4),n.YNc(4,oe,2,3,"cvc-revision-list",5),n.YNc(5,se,2,1,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",7),n.YNc(7,le,2,0,"nz-space",8),n.TgZ(8,"cvc-participant-list",9),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onStatusSelected(d)}),n.YNc(9,re,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onRevisorSelected(d)}),n.ALo(12,"ngrxPush"),n.YNc(13,pe,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onFieldNameSelected(d)}),n.ALo(16,"ngrxPush"),n.YNc(17,me,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",13),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onResolverSelected(d)}),n.ALo(20,"ngrxPush"),n.YNc(21,fe,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&e){const o=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(4),n.Q6J("ngrxLet",o.pageInfo$),n.xp6(2),n.Q6J("ngIf",o.filteredSet),n.xp6(1),n.Q6J("preselectedOption",o.selectableStatuses[0])("participantList",o.selectableStatuses),n.xp6(3),n.Q6J("participantList",n.lcZ(12,8,o.uniqueRevisors$)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,10,o.revisionFields$)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,12,o.uniqueResolvers$))}}function ze(e,l){1&e&&(n.ynx(0),n.TgZ(1,"nz-row",25),n._UZ(2,"i",26),n.qZA(),n.BQk())}function Ce(e,l){1&e&&n._UZ(0,"nz-empty",27)}function Te(e,l){if(1&e&&(n.YNc(0,ze,3,0,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Ce,1,0,"ng-template",null,24,n.W1O)),2&e){const o=n.MAs(3),r=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,r.isLoading$))("ngIfElse",o)}}let xe=(()=>{class e{constructor(o,r){this.gql=o,this.route=r,this.filteredSet=void 0,this.selectableStatuses=[{id:4,displayName:"New",value:_.FJi.New},{id:1,displayName:"Accepted",value:_.FJi.Accepted},{id:2,displayName:"Rejected",value:_.FJi.Rejected},{id:3,displayName:"Superseded",value:_.FJi.Superseded}],this.defaultPageSize=10}ngOnInit(){this.routeSub=this.route.params.subscribe(o=>{this.queryRef=this.gql.watch({first:this.defaultPageSize,subject:{id:this.id,entityType:this.entityType},status:_.FJi.New});let r=this.queryRef.valueChanges;this.revisions$=r.pipe((0,a.j)("data","revisions","edges"),(0,u.U)(d=>d.map(F=>F.node))),this.isLoading$=r.pipe((0,u.U)(d=>d.loading),(0,t.O)(!0)),this.pageInfo$=r.pipe((0,a.j)("data","revisions","pageInfo")),this.uniqueRevisors$=r.pipe((0,u.U)(({data:d})=>{var F;return null===(F=d.revisions)||void 0===F?void 0:F.uniqueRevisors})),this.uniqueResolvers$=r.pipe((0,u.U)(({data:d})=>{var F;return null===(F=d.revisions)||void 0===F?void 0:F.uniqueResolvers})),this.revisionFields$=r.pipe((0,u.U)(({data:d})=>{var F;return null===(F=d.revisions)||void 0===F?void 0:F.revisedFieldNames.map((rn,he)=>Object.assign(Object.assign({},rn),{id:he}))})),this.unfilteredCount$=r.pipe((0,a.j)("data","revisions","unfilteredCountForSubject"))})}ngOnDestroy(){var o;null===(o=this.routeSub)||void 0===o||o.unsubscribe()}onFieldNameSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},fieldName:o?o.name:void 0})}onRevisorSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},originatingUserId:o?o.id:void 0})}onResolverSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},resolvingUserId:o?o.id:void 0})}onStatusSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},status:o?o.value:void 0})}onRevisionSetSelected(o){this.filteredSet=o,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:o||void 0})}onSetFilterClearClicked(){this.filteredSet=void 0,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:void 0})}refresh(){this.queryRef.refetch()}loadMore(o){var r;null===(r=this.queryRef)||void 0===r||r.fetchMore({variables:{first:this.defaultPageSize,after:o}})}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(_.L5n),n.Y36(m.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revisions-list-and-filter"]],inputs:{id:"id",entityType:"entityType"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noRevisions",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"revisions","revisionSetSelectedEvent","revisionMutationCompleted",4,"nzSpaceItem"],[4,"ngrxLet"],["nzSpan","6"],["nzDirection","vertical",4,"ngIf"],["listTitle","Revision Status",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Revisors",3,"participantList","participantSelectedEvent"],["listTitle","Fields Revised",3,"participantList","participantSelectedEvent"],["listTitle","Resolvers",3,"participantList","participantSelectedEvent"],[3,"revisions","revisionSetSelectedEvent","revisionMutationCompleted"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[4,"nzSpaceItem"],["nzMode","closeable",3,"nzOnClose"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["noneFound",""],["nzJustify","center"],["nz-icon","","nzType","loading",2,"font-size","32px"],["nzNotFoundImage","simple","nzNotFoundContent","Entity has no Revisions"]],template:function(o,r){if(1&o&&(n.YNc(0,ue,23,14,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Te,4,4,"ng-template",null,1,n.W1O)),2&o){const d=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,r.unfilteredCount$))("ngIfElse",d)}},directives:[C.O5,T.SK,T.t3,y.NU,y.$1,ne,w.eJ,pn.ix,dn.dQ,gn.w,U.j,te.l,ee.Dz,_n.Ls,mn.p9],pipes:[w.fM,C.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})()},2914:(H,N,i)=>{i.d(N,{A:()=>w});var _=i(9808),a=i(6949),u=i(1894),t=i(3762),n=i(7484),m=i(8144),C=i(8481),T=i(3618),y=i(1150),M=i(6699),I=i(1835),$=i(685),h=i(6042),Q=i(647),Y=i(5e3);let w=(()=>{class x{}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=Y.oAB({type:x}),x.\u0275inj=Y.cJS({imports:[[_.ez,a.WG,u.Jb,t.Ph,n.vh,m.zf,C.X,T.ZJ,M.Rt,$.Xo,h.sL,Q.PV,y.N,I.i]]}),x})()},759:(H,N,i)=>{i.d(N,{N:()=>W});var _=i(373),a=i(5e3),u=i(712),t=i(3618),n=i(9808),m=i(325),C=i(6699),T=i(3610),y=i(6265),M=i(3098),I=i(2937);function $(z,E){1&z&&(a.ynx(0),a._uU(1,", "),a.BQk())}function h(z,E){if(1&z&&(a.ynx(0),a._uU(1),a.ALo(2,"eventVerbiage"),a.YNc(3,$,2,0,"ng-container",12),a.BQk()),2&z){const A=E.$implicit,B=E.last;a.xp6(1),a.hij(" ",a.Dn7(2,2,A.action,"contributor-card",A.count),""),a.xp6(2),a.Q6J("ngIf",!B)}}function Q(z,E){if(1&z&&(a.TgZ(0,"nz-descriptions",8),a.TgZ(1,"nz-descriptions-item",9),a.YNc(2,h,4,6,"ng-container",10),a.qZA(),a.TgZ(3,"nz-descriptions-item",11),a._uU(4),a.ALo(5,"date"),a.qZA(),a.qZA()),2&z){const A=a.oxw(2).$implicit;a.Q6J("nzColumn",1),a.xp6(2),a.Q6J("ngForOf",A.uniqueActions),a.xp6(2),a.hij(" ",a.lcZ(5,3,A.lastActionDate)," ")}}function Y(z,E){if(1&z&&(a.TgZ(0,"cvc-user-popover",6),a.YNc(1,Q,6,5,"ng-template",null,7,a.W1O),a.qZA()),2&z){const A=a.oxw().$implicit;a.Q6J("userId",A.user.id)}}function w(z,E){if(1&z&&(a.TgZ(0,"a",3),a._UZ(1,"nz-avatar",4),a.YNc(2,Y,3,1,"ng-template",null,5,a.W1O),a.qZA()),2&z){const A=E.$implicit,B=a.MAs(3);a.MGl("routerLink","/users/",A.user.id,""),a.xp6(1),a.Q6J("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",B)("nzSrc",A.user.profileImagePath)}}function x(z,E){if(1&z&&(a.ynx(0),a.YNc(1,w,4,5,"a",2),a.BQk()),2&z){const A=a.oxw();a.xp6(1),a.Q6J("ngForOf",A.sortedContributors)}}function Z(z,E){1&z&&a._uU(0," None\n")}let R=(()=>{class z{ngOnInit(){if(void 0===this.contributors)throw new Error("Must pass a list of contributors into the contributor stack");this.sortedContributors=this.contributors.slice(),this.sortedContributors.sort((A,B)=>B.totalActionCount-A.totalActionCount)}}return z.\u0275fac=function(A){return new(A||z)},z.\u0275cmp=a.Xpm({type:z,selectors:[["cvc-contributor-stack"]],inputs:{contributors:"contributors"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noContributors",""],["class","avatar",3,"routerLink",4,"ngFor","ngForOf"],[1,"avatar",3,"routerLink"],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","bottomRight","nzIcon","user","nzSize","small",3,"nzSize","nzPopoverMouseEnterDelay","nzPopoverContent","nzSrc"],["curatorPopover",""],[3,"userId"],["additionalMetadata",""],["nzBordered","","nzTitle","Activity","nzSize","small",3,"nzColumn"],["nzTitle","Contributions"],[4,"ngFor","ngForOf"],["nzTitle","Last Contribution"],[4,"ngIf"]],template:function(A,B){if(1&A&&(a.YNc(0,x,2,1,"ng-container",0),a.YNc(1,Z,1,0,"ng-template",null,1,a.W1O)),2&A){const G=a.MAs(2);a.Q6J("ngIf",B.sortedContributors&&B.sortedContributors.length>0)("ngIfElse",G)}},directives:[n.O5,n.sg,m.yS,C.Dz,T.lU,y.q,M.R7,M.uj],pipes:[I.R,n.uU],styles:[""]}),z})();var L=i(6949);function b(z,E){if(1&z&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&z){const A=E.ngIf;a.xp6(1),a.Q6J("contributors",A)}}function J(z,E){1&z&&a._uU(0," None ")}function V(z,E){if(1&z&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&z){const A=E.ngIf;a.xp6(1),a.Q6J("contributors",A)}}function K(z,E){1&z&&a._uU(0," None ")}let W=(()=>{class z{constructor(A){this.gql=A}ngOnInit(){if(void 0===this.subscribable)throw new Error("Must pass a subscribable into ContributorAvatars component.");let A=this.gql.watch({subscribable:this.subscribable}).valueChanges;this.curators$=A.pipe((0,_.j)("data","contributors","curators")),this.editors$=A.pipe((0,_.j)("data","contributors","editors"))}}return z.\u0275fac=function(A){return new(A||z)(a.Y36(u.kQf))},z.\u0275cmp=a.Xpm({type:z,selectors:[["cvc-contributor-avatars"]],inputs:{subscribable:"subscribable"},decls:14,vars:8,consts:[["nz-typography","","nzType","secondary",1,"role-group-label"],[1,"role-group"],[4,"ngIf","ngIfElse"],["noCurators",""],["noEditors",""],[3,"contributors"]],template:function(A,B){if(1&A&&(a.TgZ(0,"span",0),a._uU(1,"Curators:"),a.qZA(),a.TgZ(2,"div",1),a.YNc(3,b,2,1,"ng-container",2),a.ALo(4,"ngrxPush"),a.YNc(5,J,1,0,"ng-template",null,3,a.W1O),a.qZA(),a.TgZ(7,"span",0),a._uU(8,"Editors:"),a.qZA(),a.TgZ(9,"div",1),a.YNc(10,V,2,1,"ng-container",2),a.ALo(11,"ngrxPush"),a.YNc(12,K,1,0,"ng-template",null,4,a.W1O),a.qZA()),2&A){const G=a.MAs(6),f=a.MAs(13);a.xp6(3),a.Q6J("ngIf",a.lcZ(4,4,B.curators$))("ngIfElse",G),a.xp6(7),a.Q6J("ngIf",a.lcZ(11,6,B.editors$))("ngIfElse",f)}},directives:[t.ZU,n.O5,R],pipes:[L.fM],styles:["[_nghost-%COMP%]{display:inline-block}.role-group-label[_ngcontent-%COMP%]{margin-left:12px}.role-group[_ngcontent-%COMP%]{display:inline-block}.role-group[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{display:inline-block;margin-left:2px}"]}),z})()},5750:(H,N,i)=>{i.d(N,{Z:()=>$});var _=i(9808),a=i(6949),u=i(3618),t=i(325),n=i(6699),m=i(3610),C=i(9444),T=i(6081),y=i(3098),M=i(5e3);let I=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=M.oAB({type:h}),h.\u0275inj=M.cJS({imports:[[_.ez,t.Bz,n.Rt,m.$6,y.q6,C.s,T.J]]}),h})(),$=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=M.oAB({type:h}),h.\u0275inj=M.cJS({imports:[[_.ez,a.WG,u.ZJ,I]]}),h})()},9077:(H,N,i)=>{i.d(N,{Q:()=>x});var _=i(6123),a=i(712),u=i(8929),t=i(4850),n=i(7625),m=i(5e3),C=i(9169),T=i(9808),y=i(6042),M=i(2643),I=i(2683),$=i(404),h=i(647),Q=i(6949);function Y(Z,R){if(1&Z){const L=m.EpF();m.ynx(0),m.TgZ(1,"button",2),m.NdJ("click",function(){return m.CHM(L),m.oxw().unsubscribe()}),m._UZ(2,"i",3),m.qZA(),m.BQk()}if(2&Z){const L=m.oxw();m.xp6(1),m.Q6J("nzLoading",L.isSubmitting)}}function w(Z,R){if(1&Z){const L=m.EpF();m.TgZ(0,"button",4),m.NdJ("click",function(){return m.CHM(L),m.oxw().subscribe()}),m._UZ(1,"i",5),m.qZA()}if(2&Z){const L=m.oxw();m.Q6J("nzLoading",L.isSubmitting)}}let x=(()=>{class Z{constructor(L,b,J,V){this.isSubscribedGQL=L,this.unsubscribeMutation=b,this.subscribeMutation=J,this.networkErrorService=V,this.isSubmitting=!1,this.destroy$=new u.xQ,this.unsubscribeMutator=new _.U(V),this.subscribeMutator=new _.U(V)}ngOnInit(){if(void 0===this.viewer)throw new Error("Must pass in a viewer to the CvcEntitySubscriptionButtonComponent");if(void 0===this.typename)throw new Error("Must pass in a typename to the CvcEntitySubscriptionButtonComponent");if(void 0===this.subscribableId)throw new Error("Must pass in a subscribableId to the CvcEntitySubscriptionButtonComponent");this.subscribable={id:this.subscribableId,entityType:a.o71[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,t.U)(({data:b})=>b.subscriptionForEntity))}subscribe(){this.subscribable&&(this.isSubmitting=!0,this.subscribeMutator.mutate(this.subscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(b=>{var J;b&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}unsubscribe(){this.subscribable&&(this.isSubmitting=!0,this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(b=>{var J;b&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Z.\u0275fac=function(L){return new(L||Z)(m.Y36(a.A4J),m.Y36(a.m$d),m.Y36(a.jMx),m.Y36(C.Y))},Z.\u0275cmp=m.Xpm({type:Z,selectors:[["cvc-entity-subscription-button"]],inputs:{viewer:"viewer",typename:"typename",subscribableId:"subscribableId"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noSub",""],["nz-button","","nz-tooltip","Unsubscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","fill"],["nz-button","","nz-tooltip","Subscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","outline"]],template:function(L,b){if(1&L&&(m.YNc(0,Y,3,1,"ng-container",0),m.ALo(1,"ngrxPush"),m.YNc(2,w,2,1,"ng-template",null,1,m.W1O)),2&L){const J=m.MAs(3);m.Q6J("ngIf",m.lcZ(1,2,b.existingSubscription$))("ngIfElse",J)}},directives:[T.O5,y.ix,M.dQ,I.w,$.SY,h.Ls],pipes:[Q.fM],styles:["[_nghost-%COMP%]{display:block}"]}),Z})()},4609:(H,N,i)=>{i.d(N,{g:()=>C});var _=i(9808),a=i(6042),u=i(6949),t=i(647),n=i(404),m=i(5e3);let C=(()=>{class T{}return T.\u0275fac=function(M){return new(M||T)},T.\u0275mod=m.oAB({type:T}),T.\u0275inj=m.cJS({imports:[[_.ez,a.sL,t.PV,n.cg,u.WG]]}),T})()},7701:(H,N,i)=>{i.d(N,{j:()=>G});var _=i(6654),a=i(5e3),u=i(9808),t=i(325),n=i(8481),m=i(3610),C=i(4850),T=i(712),y=i(7484),M=i(647),I=i(6550),$=i(3098),h=i(6949);function Q(f,P){if(1&f&&(a._UZ(0,"i",7),a._uU(1)),2&f){const O=a.oxw().ngIf;a.xp6(1),a.hij(" ",O.name," ")}}function Y(f,P){if(1&f&&(a.TgZ(0,"cvc-link-tag",9),a._uU(1),a.qZA()),2&f){const O=a.oxw(2).ngIf;a.Q6J("href",O.url),a.xp6(1),a.hij(" ",O.soid," ")}}function w(f,P){if(1&f&&a.YNc(0,Y,2,2,"cvc-link-tag",8),2&f){const O=a.oxw().ngIf;a.Q6J("ngIf","N/A"!=O.soid)}}function x(f,P){if(1&f&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,Q,2,1,"ng-template",null,3,a.W1O),a.YNc(4,w,1,1,"ng-template",null,4,a.W1O),a.TgZ(6,"nz-descriptions",5),a.TgZ(7,"nz-descriptions-item",6),a._uU(8),a.qZA(),a.qZA(),a.qZA(),a.BQk()),2&f){const O=P.ngIf,j=a.MAs(3),k=a.MAs(5);a.xp6(1),a.Q6J("nzTitle",j)("nzExtra",k),a.xp6(5),a.Q6J("nzColumn",2),a.xp6(2),a.hij(" ",O.variantCount," ")}}let Z=(()=>{class f{constructor(O){this.gql=O}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,C.U)(({data:O})=>O.variantTypePopover))}}return f.\u0275fac=function(O){return new(O||f)(a.Y36(T.tw_))},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(O,j){1&O&&(a.TgZ(0,"div",0),a.YNc(1,x,9,4,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&O&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,j.variantType$)))},directives:[u.O5,y.bd,M.Ls,I.l,$.R7,$.uj],pipes:[h.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),f})();function R(f,P){}function L(f,P){if(1&f&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,R,0,0,"ng-template",6),a.qZA(),a.BQk()),2&f){const O=a.oxw(),j=a.MAs(2);a.xp6(1),a.Q6J("routerLink",O.variantType.link),a.xp6(1),a.Q6J("ngTemplateOutlet",j)}}function b(f,P){}function J(f,P){if(1&f&&(a.TgZ(0,"nz-tag",9),a.YNc(1,b,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const O=a.MAs(2);a.oxw();const j=a.MAs(8);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",O),a.xp6(1),a.Q6J("ngTemplateOutlet",j)}}function V(f,P){if(1&f&&a._UZ(0,"cvc-variant-type-popover",10),2&f){const O=a.oxw(2);a.Q6J("variantTypeId",O.variantType.id)}}function K(f,P){if(1&f&&(a.YNc(0,J,2,3,"nz-tag",7),a.YNc(1,V,1,1,"ng-template",null,8,a.W1O)),2&f){const O=a.oxw(),j=a.MAs(6);a.Q6J("ngIf",O.enablePopover)("ngIfElse",j)}}function W(f,P){}function z(f,P){if(1&f&&a.YNc(0,W,0,0,"ng-template",6),2&f){a.oxw();const O=a.MAs(2);a.Q6J("ngTemplateOutlet",O)}}function E(f,P){}function A(f,P){if(1&f&&(a.TgZ(0,"nz-tag"),a.YNc(1,E,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const O=a.MAs(8);a.xp6(1),a.Q6J("ngTemplateOutlet",O)}}function B(f,P){if(1&f&&(a._UZ(0,"i",11),a._uU(1)),2&f){const O=a.oxw();a.xp6(1),a.hij(" ",O.variantType.name,"\n")}}let G=(()=>{class f extends _.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return f.\u0275fac=function(O){return new(O||f)},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[a.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(O,j){if(1&O&&(a.YNc(0,L,3,2,"ng-container",0),a.YNc(1,K,3,2,"ng-template",null,1,a.W1O),a.YNc(3,z,1,1,"ng-template",null,2,a.W1O),a.YNc(5,A,2,1,"ng-template",null,3,a.W1O),a.YNc(7,B,2,1,"ng-template",null,4,a.W1O)),2&O){const k=a.MAs(4);a.Q6J("ngIf",j.linked)("ngIfElse",k)}},directives:[u.O5,t.yS,u.tP,n.j,m.lU,Z,M.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),f})()},8645:(H,N,i)=>{i.d(N,{M:()=>$});var _=i(9808),a=i(325),u=i(8481),t=i(7484),n=i(3630),m=i(3098),C=i(6949),T=i(647),y=i(5e3);let M=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=y.oAB({type:h}),h.\u0275inj=y.cJS({imports:[[_.ez,C.WG,T.PV,t.vh,m.q6,n.X]]}),h})();var I=i(3610);let $=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=y.oAB({type:h}),h.\u0275inj=y.cJS({imports:[[_.ez,a.Bz,T.PV,u.X,I.$6,M]]}),h})()},1243:(H,N,i)=>{i.d(N,{I:()=>a});var _=i(5e3);let a=(()=>{class u{transform(n){if(n){let C=n.toLowerCase().replace(/_/g," ").split(" ");for(var m=0;m{i.d(P,{L:()=>gt});var _=i(712),a=i(373),z=i(4850),t=i(5e3),n=i(9808),m=i(1894),T=i(8144),O=i(8929),x=i(7625),L=i(9350),S=i(2359),D=i(7484),y=i(7948),I=i(5737),Q=i(6123),w=i(9169),B=i(6949),u=i(404),M=i(6042),h=i(2643),F=i(2683),J=i(3610),W=i(647),K=i(4182),V=i(4546),C=i(9383),b=i(7525),Z=i(9180),$=i(8227),G=i(1793);function f(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",4),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function N(c,p){}function A(c,p){1&c&&t.YNc(0,N,0,0,"ng-template")}function j(c,p){if(1&c&&(t.ynx(0),t.YNc(1,A,1,0,void 0,9),t.BQk()),2&c){t.oxw(2);const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function k(c,p){if(1&c&&(t.ynx(0),t.YNc(1,j,2,1,"ng-container",5),t.BQk()),2&c){const s=t.oxw().ngrxLet,g=t.MAs(5),v=t.oxw();t.xp6(1),t.Q6J("ngIf",s.isEditor||s.isAdmin||v.flag.flaggingUser.id===s.id)("ngIfElse",g)}}function en(c,p){}function sn(c,p){1&c&&t.YNc(0,en,0,0,"ng-template")}function cn(c,p){if(1&c&&(t.TgZ(0,"span",10),t.YNc(1,sn,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function on(c,p){}function ln(c,p){1&c&&t.YNc(0,on,0,0,"ng-template")}function Y(c,p){if(1&c&&(t.TgZ(0,"span",11),t.YNc(1,ln,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function X(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",13),t.NdJ("nzPopoverVisibleChange",function(v){return t.CHM(s),t.oxw(3).flagResolvePopoverVisible=v})("click",function(){t.CHM(s);const v=t.oxw(3);return v.flagResolvePopoverVisible=!v.flagResolvePopoverVisible}),t._uU(1," Resolve Flag "),t._UZ(2,"i",14),t.qZA()}if(2&c){const s=t.oxw(2).ngrxLet,g=t.oxw(),v=t.MAs(3),U=t.MAs(5);t.Q6J("nzPopoverTitle",v)("nzPopoverVisible",g.flagResolvePopoverVisible)("nzPopoverContent",U)("nzPopoverTrigger",void 0)("disabled",!s.signedIn||s.isCurator&&g.flag.flaggingUser.id!=s.id)}}function q(c,p){if(1&c&&t.YNc(0,X,3,5,"button",12),2&c){const s=t.oxw(2);t.Q6J("ngIf",!s.success)}}function E(c,p){if(1&c&&(t.ynx(0),t.YNc(1,k,2,2,"ng-container",5),t.YNc(2,cn,2,1,"ng-template",null,6,t.W1O),t.YNc(4,Y,2,1,"ng-template",null,7,t.W1O),t.YNc(6,q,1,1,"ng-template",null,8,t.W1O),t.BQk()),2&c){const s=p.ngrxLet,g=t.MAs(3);t.xp6(1),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}const nn=function(){return{float:"right"}};function tn(c,p){if(1&c){const s=t.EpF();t._uU(0," Resolve Flag "),t.TgZ(1,"span",15),t.TgZ(2,"i",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw();return v.flagResolvePopoverVisible=!1,v.errorMessages=[]}),t.qZA(),t.qZA()}2&c&&(t.xp6(1),t.Q6J("ngStyle",t.DdM(1,nn)))}function fn(c,p){if(1&c&&t._UZ(0,"nz-alert",25),2&c){t.oxw();const s=t.MAs(2);t.Q6J("nzDescription",s)}}function un(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function zn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,un,2,1,"li",26),t.qZA()),2&c){const s=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Cn(c,p){if(1&c){const s=t.EpF();t.YNc(0,fn,1,1,"nz-alert",17),t.YNc(1,zn,2,1,"ng-template",null,18,t.W1O),t.TgZ(3,"nz-card",19),t.TgZ(4,"form",20),t.NdJ("ngSubmit",function(){return t.CHM(s),t.oxw().resolveFlag()}),t.TgZ(5,"cvc-comment-input-form",21),t.NdJ("commentChange",function(v){return t.CHM(s),t.oxw().comment=v}),t.qZA(),t.TgZ(6,"nz-spin",22),t.TgZ(7,"nz-form-item"),t.TgZ(8,"nz-form-control"),t.TgZ(9,"cvc-form-buttons"),t.TgZ(10,"cvc-org-selector-btn-group",23),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.TgZ(11,"button",24),t._uU(12," Resolve "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&c){const s=t.oxw();t.Q6J("ngIf",s.errorMessages.length>0),t.xp6(5),t.Q6J("comment",s.comment),t.xp6(1),t.Q6J("nzSpinning",s.loading),t.xp6(5),t.Q6J("disabled",!(void 0!==s.comment&&s.comment.length>=10))}}let _n=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.destroy$=new O.xQ,this.resolveFlagMutator=new Q.U(v)}ngOnInit(){if(void 0===this.flag)throw new Error("Must pass a Flag in to resolve component.");this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg})}onOrgSelected(s){this.selectedOrg=s}resolveFlag(){var s;if(this.comment){this.errorMessages=[];let g=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id}});g.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),g.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.success=!1,this.errorMessages=v)}),g.isSubmitting$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{this.loading=v})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.EwB),t.Y36(L.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-resolve-form"]],inputs:{flag:"flag",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:2,consts:[["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[4,"ngrxLet"],["flagResolvePopoverTitleTemplate",""],["flagResolvePopoverContentTemplate",""],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["noPermissions",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to resolve flag."],["nz-tooltip","","nzTooltipTitle","If you are not an editor, you can only resolve flags you opened."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click",4,"ngIf"],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nzType","inner",2,"width","300px"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription"],[4,"ngFor","ngForOf"]],template:function(s,g){1&s&&(t.YNc(0,f,1,0,"nz-alert",0),t.YNc(1,E,8,2,"ng-container",1),t.YNc(2,tn,3,2,"ng-template",null,2,t.W1O),t.YNc(4,Cn,13,4,"ng-template",null,3,t.W1O)),2&s&&(t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngrxLet",g.viewer$))},directives:[n.O5,S.r,B.eJ,n.tP,u.SY,M.ix,h.dQ,F.w,J.lU,W.Ls,n.PC,n.sg,D.bd,K._Y,K.JL,K.F,V.Lr,C.b,b.W,m.SK,V.Nx,m.t3,V.Fd,Z.Z,$.q,G.m],styles:[""]}),c})();var gn=i(3618),Tn=i(125),xn=i(4590),pn=i(685),hn=i(8625);function yn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",5),t.NdJ("nzOnClose",function(){const U=t.CHM(s).$implicit;return t.oxw().onErrorBannerClose(U)}),t.qZA()}2&c&&t.Q6J("nzMessage",p.$implicit)}function mn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",6),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}if(2&c){const s=t.oxw();t.MGl("nzMessage","Revision(s) successfully ",s.success,".")}}function dn(c,p){if(1&c&&t._UZ(0,"cvc-comment-body",15),2&c){const s=t.oxw(2).$implicit;t.Q6J("commentBodySegments",s.openComment.parsedComment)}}function Zn(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-flag-resolve-form",16),t.BQk()),2&c){const s=t.oxw(2).$implicit,g=t.oxw(2);t.xp6(1),t.Q6J("flag",s)("flagResolvedCallback",g.flagResolvedCallback)}}function An(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-comment-body",15),t.BQk()),2&c){const s=t.oxw(3).$implicit;t.xp6(1),t.Q6J("commentBodySegments",s.resolutionComment.parsedComment)}}function On(c,p){if(1&c&&t._UZ(0,"cvc-user-tag",21),2&c){const s=t.oxw(3).$implicit;t.Q6J("user",s.resolvingUser)}}function vn(c,p){if(1&c&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",17),t.YNc(2,An,2,1,"ng-container",18),t.qZA(),t.TgZ(3,"nz-col",19),t._uU(4," Resolved By "),t.YNc(5,On,1,1,"cvc-user-tag",20),t._uU(6),t.ALo(7,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngIf",s.resolutionComment),t.xp6(3),t.Q6J("ngIf",void 0!==s.resolvingUser),t.xp6(1),t.hij(" ",t.lcZ(7,3,s.resolvedAt)," ")}}function Rn(c,p){if(1&c&&(t._UZ(0,"i",22),t._uU(1)),2&c){const s=t.oxw(2).$implicit;t.xp6(1),t.hij(" FID",s.id," ")}}function Fn(c,p){if(1&c&&(t.TgZ(0,"span"),t.TgZ(1,"span",26),t._uU(2,"Flagged By"),t.qZA(),t._UZ(3,"cvc-user-tag",21),t.TgZ(4,"span",26),t._uU(5),t.ALo(6,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(3).$implicit;t.xp6(3),t.Q6J("user",s.flaggingUser),t.xp6(2),t.Oqu(t.lcZ(6,2,s.createdAt))}}function Mn(c,p){if(1&c&&t._UZ(0,"cvc-status-tag",27),2&c){const s=t.oxw(3).$implicit;t.Q6J("status",s.state)}}function Ln(c,p){1&c&&(t.TgZ(0,"nz-space",23),t.YNc(1,Fn,7,4,"span",24),t.YNc(2,Mn,1,1,"cvc-status-tag",25),t.qZA())}function bn(c,p){if(1&c&&(t.TgZ(0,"nz-card",10),t.YNc(1,dn,1,1,"cvc-comment-body",11),t._UZ(2,"nz-divider"),t.YNc(3,Zn,2,2,"ng-container",3),t.YNc(4,vn,8,5,"ng-template",null,12,t.W1O),t.YNc(6,Rn,2,1,"ng-template",null,13,t.W1O),t.YNc(8,Ln,3,0,"ng-template",null,14,t.W1O),t.qZA()),2&c){const s=t.MAs(5),g=t.MAs(7),v=t.MAs(9),U=t.oxw().$implicit;t.Q6J("nzTitle",g)("nzExtra",v),t.xp6(1),t.Q6J("ngIf",U.openComment),t.xp6(2),t.Q6J("ngIf","OPEN"==U.state)("ngIfElse",s)}}function En(c,p){1&c&&(t.ynx(0),t.YNc(1,bn,10,5,"nz-card",9),t.BQk())}function an(c,p){if(1&c&&(t.ynx(0),t.TgZ(1,"nz-space",7),t.YNc(2,En,2,0,"ng-container",8),t.qZA(),t.BQk()),2&c){const s=t.oxw();t.xp6(2),t.Q6J("ngForOf",s.flags)}}function Sn(c,p){1&c&&t._UZ(0,"nz-empty",28)}let Pn=(()=>{class c{constructor(s){this.viewerService=s,this.isLoading=!1,this.success=!1,this.destroy$=new O.xQ}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.mostRecentOrg=s.mostRecentOrg})}setupMutationResultHandlers(s,g){s.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v&&(this.isLoading=!1,this.errors=void 0,this.success=g)}),s.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.isLoading=!1,this.success=!1,this.errors=v)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(s){var g;this.errors=null===(g=this.errors)||void 0===g?void 0:g.filter(v=>v!=s)}onSuccessBannerClose(){this.success=!1}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(L.a))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list"]],inputs:{flags:"flags",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:4,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzTitle","Flags",1,"card-list"],[4,"ngIf","ngIfElse"],["noFlags",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzDirection","vertical"],[4,"ngFor","ngForOf"],["nzType","inner",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzType","inner",3,"nzTitle","nzExtra"],[3,"commentBodySegments",4,"ngIf"],["flagResolved",""],["flagCardHeaderTitle",""],["flagCardHeaderExtra",""],[3,"commentBodySegments"],[3,"flag","flagResolvedCallback"],["nzSpan","16"],[4,"ngIf"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"user"],["nz-icon","","nzType","civic:flag"],["nzSize","small"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],[3,"status"],["nzNotFoundImage","simple","nzNotFoundContent","No Flags matching filters"]],template:function(s,g){if(1&s&&(t.YNc(0,yn,1,1,"nz-alert",0),t.YNc(1,mn,1,1,"nz-alert",1),t.TgZ(2,"nz-card",2),t.YNc(3,an,3,1,"ng-container",3),t.YNc(4,Sn,1,0,"ng-template",null,4,t.W1O),t.qZA()),2&s){const v=t.MAs(5);t.Q6J("ngForOf",g.errors),t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(2),t.Q6J("ngIf",g.flags&&g.flags.length>0)("ngIfElse",v)}},directives:[n.sg,S.r,n.O5,D.bd,T.NU,T.$1,y.m,I.g,_n,m.SK,m.t3,gn.ZU,Tn.I,W.Ls,F.w,xn.h,pn.p9],pipes:[hn.wr],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})();var Nn=i(1243);function In(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",8),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function Qn(c,p){if(1&c&&t._UZ(0,"nz-alert",9),2&c){t.oxw();const s=t.MAs(4);t.Q6J("nzDescription",s)}}function Jn(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function Yn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,Jn,2,1,"li",10),t.qZA()),2&c){const s=t.oxw();t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Un(c,p){}function Dn(c,p){1&c&&t.YNc(0,Un,0,0,"ng-template")}function Bn(c,p){if(1&c&&(t.ynx(0),t.YNc(1,Dn,1,0,void 0,15),t.BQk()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function $n(c,p){}function wn(c,p){1&c&&t.YNc(0,$n,0,0,"ng-template")}function jn(c,p){if(1&c&&(t.TgZ(0,"span",16),t.YNc(1,wn,1,0,void 0,15),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function Wn(c,p){if(1&c&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"enumToTitle"),t.qZA()),2&c){const s=t.oxw().ngrxLet,g=t.oxw();t.Q6J("disabled",!(void 0!==g.comment&&g.comment.length>=10&&s.signedIn)),t.xp6(1),t.hij(" Flag ",t.lcZ(2,2,g.flaggable.entityType)," ")}}function Vn(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"cvc-form-buttons"),t.TgZ(2,"cvc-org-selector-btn-group",11),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.YNc(3,Bn,2,1,"ng-container",12),t.YNc(4,jn,2,1,"ng-template",null,13,t.W1O),t.YNc(6,Wn,3,4,"ng-template",null,14,t.W1O),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=p.ngrxLet,g=t.MAs(5);t.xp6(3),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}let Kn=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.destroy$=new O.xQ,this.addFlagMutator=new Q.U(v)}ngOnInit(){if(this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg}),void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(s){this.selectedOrg=s}submitFlag(){var s;this.errorMessages=[];let g={comment:this.comment,subject:this.flaggable,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id},v=this.addFlagMutator.mutate(this.gql,{input:g});v.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(U=>{U&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),v.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(U=>{U.length>0&&(this.errorMessages=U)}),v.isSubmitting$.pipe((0,x.R)(this.destroy$)).subscribe(U=>{this.loading=U})}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.B0s),t.Y36(L.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-add-form"]],inputs:{flaggable:"flaggable",flagAddedCallback:"flagAddedCallback"},decls:11,vars:5,consts:[["nzType","inner"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription"],[4,"ngFor","ngForOf"],[3,"selectedOrgChange"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to flag entity."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"]],template:function(s,g){1&s&&(t.TgZ(0,"nz-card",0),t.YNc(1,In,1,0,"nz-alert",1),t.YNc(2,Qn,1,1,"nz-alert",2),t.YNc(3,Yn,2,1,"ng-template",null,3,t.W1O),t.TgZ(5,"form",4),t.NdJ("ngSubmit",function(){return g.submitFlag()}),t.TgZ(6,"cvc-comment-input-form",5),t.NdJ("commentChange",function(U){return g.comment=U}),t.qZA(),t.TgZ(7,"nz-spin",6),t.TgZ(8,"nz-form-item"),t.TgZ(9,"nz-form-control"),t.YNc(10,Vn,8,2,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngIf",g.errorMessages.length>0),t.xp6(4),t.Q6J("comment",g.comment),t.xp6(1),t.Q6J("nzSpinning",g.loading),t.xp6(3),t.Q6J("ngrxLet",g.viewer$))},directives:[D.bd,n.O5,S.r,n.sg,K._Y,K.JL,K.F,V.Lr,C.b,b.W,m.SK,V.Nx,m.t3,V.Fd,B.eJ,Z.Z,$.q,n.tP,u.SY,M.ix,h.dQ,G.m,F.w],pipes:[Nn.I],styles:[""]}),c})();var Hn=i(8747),Gn=i(6699);function kn(c,p){if(1&c&&(t._UZ(0,"cvc-flag-list",13),t.ALo(1,"ngrxPush")),2&c){const s=t.oxw(2);t.Q6J("flags",t.lcZ(1,2,s.flags$))("flagResolvedCallback",s.refresh)}}function Xn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw(2).ngrxLet;return t.oxw(2).loadMore(null==v?null:v.endCursor)}),t._uU(1,"Load More"),t.qZA()}}function qn(c,p){1&c&&(t.ynx(0),t.YNc(1,Xn,2,0,"button",15),t.BQk())}function nt(c,p){if(1&c&&(t.ynx(0),t.YNc(1,qn,2,0,"ng-container",14),t.BQk()),2&c){const s=p.ngrxLet;t.xp6(1),t.Q6J("ngIf",null==s?null:s.hasNextPage)}}function tt(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw(2);t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}function et(c,p){if(1&c&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.Oqu(s.displayName)}}function ot(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function it(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function at(c,p){if(1&c&&(t.YNc(0,ot,1,1,"nz-avatar",18),t.YNc(1,it,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function st(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function ct(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function lt(c,p){if(1&c&&(t.YNc(0,st,1,1,"nz-avatar",18),t.YNc(1,ct,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function rt(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",3),t.TgZ(3,"nz-space",4),t.YNc(4,kn,2,4,"cvc-flag-list",5),t.YNc(5,nt,2,1,"ng-container",6),t.YNc(6,tt,1,2,"cvc-flag-add-form",7),t.qZA(),t.qZA(),t.TgZ(7,"nz-col",8),t.TgZ(8,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onStateSelected(v)}),t.YNc(9,et,2,1,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(11,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onFlaggingUsersSelected(v)}),t.ALo(12,"ngrxPush"),t.YNc(13,at,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(15,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onResolvingUsersSelected(v)}),t.ALo(16,"ngrxPush"),t.YNc(17,lt,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(4),t.Q6J("ngrxLet",s.pageInfo$),t.xp6(3),t.Q6J("preselectedOption",s.selectableStates[0])("participantList",s.selectableStates),t.xp6(3),t.Q6J("participantList",t.lcZ(12,6,s.uniqueFlaggingUsers$)),t.xp6(4),t.Q6J("participantList",t.lcZ(16,8,s.uniqueResolvingUsers$))}}function _t(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw();t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}let gt=(()=>{class c{constructor(s){this.gql=s,this.defaultPageSize=5,this.selectableStates=[{id:1,displayName:"Open",value:_.BQZ.Open},{id:2,displayName:"Resolved",value:_.BQZ.Resolved}]}ngOnInit(){if(null==this.flaggable)throw new Error("Must pass a flaggable into flag list");this.queryRef=this.gql.watch({first:this.defaultPageSize,flaggable:this.flaggable,state:_.BQZ.Open}),this.refresh=()=>{this.queryRef.refetch()},this.results$=this.queryRef.valueChanges,this.flags$=this.results$.pipe((0,a.j)("data","flags","edges"),(0,z.U)(s=>s.map(g=>g.node))),this.pageInfo$=this.results$.pipe((0,a.j)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,a.j)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,z.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueFlaggingUsers})),this.uniqueResolvingUsers$=this.results$.pipe((0,z.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueResolvingUsers}))}onFlaggingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},flaggingUserId:s?s.id:void 0})}onResolvingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},resolvingUserId:s?s.id:void 0})}onStateSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},state:s?s.value:void 0})}loadMore(s){var g;null===(g=this.queryRef)||void 0===g||g.fetchMore({variables:{first:this.defaultPageSize,after:s}})}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.rzy))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list-and-filter"]],inputs:{flaggable:"flaggable"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noFlags",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"flags","flagResolvedCallback",4,"nzSpaceItem"],[4,"ngrxLet"],[3,"flaggable","flagAddedCallback",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Flag State",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Flagging Users",3,"participantList","participantSelectedEvent"],["listTitle","Resolving Users",3,"participantList","participantSelectedEvent"],[3,"flags","flagResolvedCallback"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[3,"flaggable","flagAddedCallback"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"]],template:function(s,g){if(1&s&&(t.YNc(0,rt,19,10,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,_t,1,2,"ng-template",null,1,t.W1O)),2&s){const v=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,g.unfilteredCount$))("ngIfElse",v)}},directives:[n.O5,m.SK,m.t3,T.NU,T.$1,Pn,B.eJ,M.ix,h.dQ,F.w,Kn,Hn.l,Gn.Dz],pipes:[B.fM,n.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})()},4271:(H,P,i)=>{i.d(P,{M:()=>q});var _=i(9808),a=i(6949),z=i(3868),t=i(7345),n=i(7484),m=i(4546),T=i(3762),O=i(8625),x=i(4182),L=i(1825),S=i(6042),D=i(4375),y=i(2359),I=i(404),Q=i(9444),w=i(4509),B=i(7525),u=i(5e3);let M=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,x.u5,x.UX,a.WG,m.U5,S.sL,n.vh,y.L,I.cg,B.j,L.A,D.R,Q.s,w.w]]}),E})();var h=i(9779),F=i(8144),J=i(1894),W=i(8481),K=i(3618),V=i(6699),C=i(3580),b=i(8018),Z=i(6286),$=i(4867),G=i(8645),f=i(685),N=i(592),A=i(6114),j=i(5737),k=i(647),en=i(3610),sn=i(1047);let cn=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,x.UX,a.WG,S.sL,m.U5,x.u5,y.L,n.vh,en.$6,k.PV,I.cg,B.j,w.w,D.R,L.A]]}),E})();var on=i(7026),ln=i(8909);let Y=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,J.Jb,T.Ph,n.vh,F.zf,W.X,K.ZJ,V.Rt,f.Xo,A.Wr,j.S,I.cg,T.Ph,en.$6,k.PV,sn.o7,x.u5,O.$L.forChild({formatter:{useClass:on.x,provide:O.KP}}),L.A,h.s,t.W,C.Q,b.e,Z.y,$.Q,G.M,N.x,S.sL,y.L,a.WG,cn,j.S,ln.m]]}),E})();var X=i(1150);let q=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,x.u5,a.WG,O.$L.forChild({formatter:{useClass:on.x,provide:O.KP}}),S.sL,m.U5,z.aF,S.sL,t.W,T.Ph,n.vh,M,Y,f.Xo,X.N,V.Rt,F.zf]]}),E})()},8168:(H,P,i)=>{i.d(P,{Y:()=>a});var _=i(5e3);let a=(()=>{class z{constructor(){}}return z.\u0275fac=function(n){return new(n||z)},z.\u0275dir=_.lG2({type:z,selectors:[["","cvcFlaggableOptions",""]]}),z})()},5623:(H,P,i)=>{i.d(P,{o:()=>B});var _=i(5e3),a=i(8168),z=i(9808),t=i(4401),n=i(325),m=i(647),T=i(404);const O=["cvcFlaggable",""];function x(u,M){1&u&&_.Hsn(0)}function L(u,M){1&u&&_.GkF(0)}function S(u,M){if(1&u&&(_.ynx(0),_.YNc(1,L,1,0,"ng-container",2),_.BQk()),2&u){_.oxw();const h=_.MAs(1);_.xp6(1),_.Q6J("ngTemplateOutlet",h)}}function D(u,M){if(1&u&&(_.TgZ(0,"a",6),_._UZ(1,"i",7),_.qZA()),2&u){_.oxw();const h=_.MAs(5);_.xp6(1),_.Q6J("nzTooltipTitle",h)}}function y(u,M){if(1&u&&_._uU(0),2&u){const h=_.oxw(2);_.hij(" ",h.flags," open flags ")}}function I(u,M){1&u&&_.GkF(0)}function Q(u,M){if(1&u&&(_.ynx(0),_.TgZ(1,"nz-ribbon",3),_.YNc(2,D,2,1,"ng-template",null,4,_.W1O),_.YNc(4,y,1,1,"ng-template",null,5,_.W1O),_.YNc(6,I,1,0,"ng-container",2),_.qZA(),_.BQk()),2&u){const h=_.MAs(3);_.oxw();const F=_.MAs(1);_.xp6(1),_.Q6J("nzText",h),_.xp6(5),_.Q6J("ngTemplateOutlet",F)}}const w=["*"];let B=(()=>{class u{constructor(h){this.renderer=h}ngOnChanges(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}ngAfterViewInit(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}addFlagged(){this.flaggedChild&&this.renderer.addClass(this.flaggedChild.nativeElement,"flaggedChild")}removeFlagged(){this.flaggedChild&&this.renderer.removeClass(this.flaggedChild.nativeElement,"flaggedChild")}}return u.\u0275fac=function(h){return new(h||u)(_.Y36(_.Qsj))},u.\u0275cmp=_.Xpm({type:u,selectors:[["","cvcFlaggable",""]],contentQueries:function(h,F,J){if(1&h&&_.Suo(J,a.Y,5,_.SBq),2&h){let W;_.iGM(W=_.CRH())&&(F.flaggedChild=W.first)}},inputs:{flags:"flags",entity:"entity"},features:[_.TTD],attrs:O,ngContentSelectors:w,decls:4,vars:2,consts:[["flaggedContent",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["nzPlacement","start","nzColor","#ff3333",3,"nzText"],["flaggedText",""],["flaggedTooltip",""],["routerLink","flags",2,"color","#FFF"],["nz-icon","","nzType","flag","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top","nzTooltipColor","#FF3333",3,"nzTooltipTitle"]],template:function(h,F){1&h&&(_.F$t(),_.YNc(0,x,1,0,"ng-template",null,0,_.W1O),_.YNc(2,S,2,1,"ng-container",1),_.YNc(3,Q,7,2,"ng-container",1)),2&h&&(_.xp6(2),_.Q6J("ngIf",0===F.flags),_.xp6(1),_.Q6J("ngIf",F.flags))},directives:[z.O5,z.tP,t.F9,n.yS,m.Ls,T.SY],styles:[""]}),u})()},4682:(H,P,i)=>{i.d(P,{m:()=>O});var _=i(9808),a=i(404),z=i(3618),t=i(4401),n=i(647),m=i(325),T=i(5e3);let O=(()=>{class x{}return x.\u0275fac=function(S){return new(S||x)},x.\u0275mod=T.oAB({type:x}),x.\u0275inj=T.cJS({imports:[[_.ez,m.Bz,n.PV,t.mS,a.cg,z.ZJ]]}),x})()},1835:(H,P,i)=>{i.d(P,{i:()=>ln});var _=i(9808),a=i(7484),z=i(3762),t=i(1894),n=i(5e3);let m=(()=>{class Y{}return Y.\u0275fac=function(q){return new(q||Y)},Y.\u0275mod=n.oAB({type:Y}),Y.\u0275inj=n.cJS({imports:[[_.ez,t.Jb]]}),Y})();var T=i(8144);let O=(()=>{class Y{}return Y.\u0275fac=function(q){return new(q||Y)},Y.\u0275mod=n.oAB({type:Y}),Y.\u0275inj=n.cJS({imports:[[_.ez,a.vh,z.Ph,t.Jb,T.zf]]}),Y})();var x=i(9779),L=i(1825),S=i(8481),D=i(3618),y=i(6699),I=i(8625),Q=i(7345),w=i(3580),B=i(8018),u=i(6286),M=i(4867),h=i(8645),F=i(5482),J=i(685),W=i(592),K=i(6114),V=i(5737),C=i(404),b=i(6042),Z=i(2359),$=i(6949),G=i(647),f=i(3610),N=i(1047),A=i(4182),j=i(9444),k=i(3098),en=i(7026),sn=i(4509),cn=i(8909),on=i(209);let ln=(()=>{class Y{}return Y.\u0275fac=function(q){return new(q||Y)},Y.\u0275mod=n.oAB({type:Y}),Y.\u0275inj=n.cJS({imports:[[_.ez,t.Jb,z.Ph,a.vh,T.zf,S.X,D.ZJ,y.Rt,J.Xo,K.Wr,V.S,C.cg,z.Ph,f.$6,G.PV,N.o7,k.q6,V.S,A.u5,I.$L.forChild({formatter:{useClass:en.x,provide:I.KP}}),L.A,O,x.s,m,Q.W,w.Q,B.e,u.y,M.Q,on.i,h.M,W.x,sn.w,j.s,cn.m,F.cD,b.sL,Z.L,$.WG]]}),Y})()},8291:(H,P,i)=>{i.d(P,{a:()=>xe});var _=i(712),a=i(373),z=i(4850),t=i(1059),n=i(5e3),m=i(325),T=i(9808),O=i(1894),x=i(8144),L=i(8929),S=i(6123),D=i(7625),y=i(9350),I=i(9169),Q=i(2359),w=i(6949),B=i(7484),u=i(5482),M=i(3762);const h=["itemTemplate"],F=function(e){return{$implicit:e}};function J(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",9),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function W(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}function K(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",14),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function V(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Removed")}}function C(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,K,3,4,"nz-list-item",13),n.YNc(2,V,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Removed ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.removedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.removedObjects.length)}}function b(e,l){1&e&&(n.ynx(0),n.YNc(1,C,3,3,"nz-list",7),n.BQk())}function Z(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",16),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(2);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function $(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(2);n.MGl("nzNoResult","No ",o.entityType," Added")}}function G(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,Z,3,4,"nz-list-item",15),n.YNc(2,$,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw();n.MGl("nzHeader","Added ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.addedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.addedObjects.length)}}function f(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",18),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function N(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Kept")}}function A(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,f,3,4,"nz-list-item",17),n.YNc(2,N,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Kept ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.keptObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.keptObjects.length)}}function j(e,l){1&e&&(n.ynx(0),n.YNc(1,A,3,3,"nz-list",7),n.BQk())}function k(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",19),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function en(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}let sn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.diffObject)throw new Error("Must specify a diffObject.");if(void 0===this.entityType)throw new Error("Must specify an entityType.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(o,r,d){if(1&o&&n.Suo(d,h,5),2&o){let R;n.iGM(R=n.CRH())&&(r.itemTemplateRef=R.first)}},inputs:{diffObject:"diffObject",entityType:"entityType"},decls:14,vars:12,consts:[[3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader"],["ngClass","current",4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nzDirection","vertical"],[4,"ngIf"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader",4,"nzSpaceItem"],["ngClass","suggested",4,"ngFor","ngForOf"],["ngClass","current"],["nz-typography",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzNoResult"],["ngClass","removed",4,"ngFor","ngForOf"],["ngClass","removed"],["ngClass","added",4,"ngFor","ngForOf"],["ngClass","added"],["ngClass","kept",4,"ngFor","ngForOf"],["ngClass","kept"],["ngClass","suggested"]],template:function(o,r){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"nz-list",2),n.YNc(3,J,3,4,"nz-list-item",3),n.YNc(4,W,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"nz-space",5),n.YNc(7,b,2,0,"ng-container",6),n.YNc(8,G,3,3,"nz-list",7),n.YNc(9,j,2,0,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(10,"nz-col",1),n.TgZ(11,"nz-list",2),n.YNc(12,k,3,4,"nz-list-item",8),n.YNc(13,en,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Original ",r.entityType," List"),n.xp6(1),n.Q6J("ngForOf",r.diffObject.currentObjects),n.xp6(1),n.Q6J("ngIf",0===r.diffObject.currentObjects.length),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.Q6J("ngIf",r.diffObject.currentObjects.length>0),n.xp6(2),n.Q6J("ngIf",r.diffObject.currentObjects.length>0),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Revised ",r.entityType," List"),n.xp6(1),n.Q6J("ngForOf",r.diffObject.suggestedObjects),n.xp6(1),n.Q6J("ngIf",0===r.diffObject.suggestedObjects.length))},directives:[O.SK,O.t3,M.n_,T.sg,M.AA,T.mk,T.tP,T.O5,M.I2,x.NU,x.$1],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})();var cn=i(6906),on=i(4022),ln=i(7469),Y=i(8481),X=i(7701),q=i(7956),E=i(8664),nn=i(9001);let tn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.left)throw new Error("Must provide a left side of the diff.");if(void 0===this.right)throw new Error("Must provide a right side of the diff.");if(void 0===this.entityType)throw new Error("Must provide a diff.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-value-diff"]],inputs:{currentValue:"currentValue",suggestedValue:"suggestedValue",left:"left",right:"right",entityType:"entityType"},decls:15,vars:10,consts:[[3,"nzGutter"],[3,"nzSpan"],[3,"innerHtml"],[1,"diff","suggested"],[1,"background"]],template:function(o,r){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"h4"),n._uU(3),n.qZA(),n._UZ(4,"div",2),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"h4"),n._uU(7),n.qZA(),n._UZ(8,"div",2),n.qZA(),n.TgZ(9,"nz-col",1),n.TgZ(10,"h4"),n._uU(11),n.qZA(),n.TgZ(12,"div",3),n.TgZ(13,"div",4),n._uU(14),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Original ",r.entityType,""),n.xp6(1),n.Q6J("innerHtml",r.left,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("",r.entityType," Diff"),n.xp6(1),n.Q6J("innerHtml",r.right,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Revised ",r.entityType,""),n.xp6(3),n.hij(" ",r.suggestedValue," "))},directives:[O.SK,O.t3],styles:[":host{display:block}.diff{overflow:auto;width:100%}.diff .background{padding:4px 8px}.diff.insertions .background{background:#f6ffed;color:#237804}.diff.deletions .background{background:#fff1f0;color:#a8071a}.diff.suggested .background,.diff.original .background{background:#f0f5ff;color:#10239e}.diff del,.diff ins{text-decoration:none}.diff del strong{font-weight:400;background:#fcc}.diff ins strong{font-weight:400;background:#9f9}.diff .del{font-weight:400;background:#fee;color:#b00}.diff .ins{font-weight:400;background:#dfd;color:#080}ul{list-style:none}\n"],encapsulation:2}),e})();var fn=i(5737),un=i(7948),zn=i(3618),Cn=i(125),_n=i(647),gn=i(2683),Tn=i(3610),xn=i(4590),pn=i(6042),hn=i(6114),yn=i(404),mn=i(685),dn=i(2643),Zn=i(9383),An=i(8227),On=i(1793),vn=i(3098),Rn=i(1243),Fn=i(8625);function Mn(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",4),n.NdJ("nzOnClose",function(){const R=n.CHM(o).$implicit;return n.oxw().onErrorBannerClose(R)}),n.qZA()}2&e&&n.Q6J("nzMessage",l.$implicit)}function Ln(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",5),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw().onSuccessBannerClose()}),n.qZA()}if(2&e){const o=n.oxw();n.MGl("nzMessage","Revision(s) successfully ",o.success,".")}}function bn(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function En(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",18),n.YNc(2,bn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const an=function(e,l,o){return{id:e,name:l,link:o}};function Sn(e,l){if(1&e&&n._UZ(0,"cvc-disease-tag",22),2&e){const o=l.$implicit;n.Q6J("disease",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Pn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",21),n.YNc(2,Sn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Nn(e,l){if(1&e&&n._UZ(0,"cvc-drug-tag",24),2&e){const o=l.$implicit;n.Q6J("drug",n.kEZ(1,an,o.id,o.displayName,o.link))}}function In(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",23),n.YNc(2,Nn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Qn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Jn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",25),n.YNc(2,Qn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Yn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Un(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",26),n.YNc(2,Yn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Dn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Bn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",27),n.YNc(2,Dn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function $n(e,l){if(1&e&&n._UZ(0,"cvc-variant-type-tag",29),2&e){const o=l.$implicit;n.Q6J("variantType",n.kEZ(1,an,o.id,o.displayName,o.link))}}function wn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",28),n.YNc(2,$n,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function jn(e,l){if(1&e&&n._UZ(0,"cvc-phenotype-tag",31),2&e){const o=l.$implicit;n.Q6J("phenotype",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Wn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",30),n.YNc(2,jn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Vn(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Kn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",32),n.YNc(2,Vn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Hn(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Gn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",34),n.YNc(2,Hn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function kn(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function Xn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",35),n.YNc(2,kn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const qn=function(e,l,o,r){return{id:e,name:l,link:o,status:r}};function nt(e,l){if(1&e&&n._UZ(0,"cvc-evidence-tag",37),2&e){const o=l.$implicit;n.Q6J("evidence",n.l5B(1,qn,o.id,o.displayName,o.link,o.status))}}function tt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",36),n.YNc(2,nt,1,6,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function et(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-revision-value-diff",38),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("currentValue",o.currentValue)("suggestedValue",o.suggestedValue)("left",o.linkoutData.diffValue.left)("right",o.linkoutData.diffValue.right)("entityType",o.linkoutData.name)}}function ot(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-comment-body",42),n.BQk()),2&e){const o=n.oxw(2).$implicit;n.xp6(1),n.Q6J("commentBodySegments",o.resolutionComment.parsedComment)}}function it(e,l){if(1&e&&n._UZ(0,"cvc-user-tag",43),2&e){const o=n.oxw(2).$implicit;n.Q6J("user",o.resolver)}}function at(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"nz-divider"),n.TgZ(2,"nz-row"),n.TgZ(3,"nz-col",39),n.YNc(4,ot,2,1,"ng-container",15),n.qZA(),n.TgZ(5,"nz-col",40),n._uU(6),n.ALo(7,"enumToTitle"),n.YNc(8,it,1,1,"cvc-user-tag",41),n._uU(9),n.ALo(10,"timeago"),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(4),n.Q6J("ngIf",o.resolutionComment),n.xp6(2),n.hij(" ",n.lcZ(7,4,o.status)," By "),n.xp6(2),n.Q6J("ngIf",void 0!==o.resolver),n.xp6(1),n.hij(" ",n.lcZ(10,6,o.resolvedAt)," ")}}function st(e,l){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"i",45),n._uU(2),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.qZA()),2&e){const o=n.oxw(2).$implicit;n.xp6(2),n.hij(" RID",o.id," "),n.xp6(2),n.hij("",o.linkoutData.name," Updated")}}function ct(e,l){if(1&e&&n._UZ(0,"i",48),2&e){n.oxw();const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function lt(e,l){if(1&e&&n._UZ(0,"cvc-comment-body",42),2&e){const o=n.oxw(3).$implicit;n.Q6J("commentBodySegments",o.creationComment.parsedComment)}}function rt(e,l){1&e&&(n.ynx(0),n.YNc(1,ct,1,1,"i",46),n.YNc(2,lt,1,1,"ng-template",null,47,n.W1O),n.BQk())}function _t(e,l){if(1&e&&(n.TgZ(0,"nz-space"),n.YNc(1,st,5,2,"span",44),n.YNc(2,rt,4,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(2),n.Q6J("ngIf",o.creationComment)}}function gt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",55),n._uU(2,"Submitted By"),n.qZA(),n._UZ(3,"cvc-user-tag",43),n.BQk()),2&e){const o=n.oxw(3).$implicit;n.xp6(3),n.Q6J("user",o.revisor)}}function c(e,l){1&e&&(n.TgZ(0,"span",55),n._uU(1,"Submitted"),n.qZA())}function p(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,gt,4,1,"ng-container",53),n.YNc(2,c,2,0,"ng-template",null,54,n.W1O),n.TgZ(4,"span",55),n._uU(5),n.ALo(6,"timeago"),n.qZA(),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",r.revisor)("ngIfElse",o),n.xp6(4),n.Oqu(n.lcZ(6,3,r.createdAt))}}function s(e,l){if(1&e&&n._UZ(0,"cvc-status-tag",56),2&e){const o=n.oxw(2).$implicit;n.Q6J("status",o.status)}}function g(e,l){1&e&&n._UZ(0,"nz-divider",57)}function v(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"a",58),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).$implicit;return n.oxw(3).onChangesetSelected(d.revisionsetId)}),n._uU(1,"Show Group"),n.qZA()}}function U(e,l){1&e&&n._UZ(0,"nz-divider",57)}function pt(e,l){1&e&&n._UZ(0,"label",61),2&e&&n.Q6J("nzDisabled",!0)}function mt(e,l){1&e&&n._UZ(0,"label",64),2&e&&n.Q6J("nzDisabled",!0)}function dt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"label",65),n.NdJ("nzCheckedChange",function(d){n.CHM(o);const R=n.oxw(5).$implicit;return n.oxw(3).onRevisionCheckboxClicked(d,R.id)}),n.qZA()}}function vt(e,l){if(1&e&&(n.YNc(0,mt,1,1,"label",62),n.YNc(1,dt,1,0,"ng-template",null,63,n.W1O)),2&e){const o=n.MAs(2),r=n.oxw(4).$implicit,d=n.oxw(2).ngrxLet;n.Q6J("ngIf",d.isCurator&&d.id!=(null==r.revisor?null:r.revisor.id))("ngIfElse",o)}}function ft(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,pt,1,1,"label",59),n.YNc(2,vt,3,2,"ng-template",null,60,n.W1O),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw(5).ngrxLet;n.xp6(1),n.Q6J("ngIf",!r.signedIn)("ngIfElse",o)}}function ut(e,l){1&e&&(n.ynx(0),n.YNc(1,U,1,0,"nz-divider",51),n.YNc(2,ft,4,2,"span",44),n.BQk())}function zt(e,l){if(1&e&&(n.TgZ(0,"nz-space",49),n.NdJ("click",function(r){return r.stopPropagation()}),n.YNc(1,p,7,5,"span",44),n.YNc(2,s,1,1,"cvc-status-tag",50),n.YNc(3,g,1,0,"nz-divider",51),n.YNc(4,v,2,0,"a",52),n.YNc(5,ut,3,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(5),n.Q6J("ngIf","NEW"===o.status)}}function Ct(e,l){if(1&e&&(n.TgZ(0,"nz-collapse-panel",11),n.ynx(1,12),n.YNc(2,En,4,1,"ng-container",13),n.YNc(3,Pn,4,1,"ng-container",13),n.YNc(4,In,4,1,"ng-container",13),n.YNc(5,Jn,4,1,"ng-container",13),n.YNc(6,Un,4,1,"ng-container",13),n.YNc(7,Bn,4,1,"ng-container",13),n.YNc(8,wn,4,1,"ng-container",13),n.YNc(9,Wn,4,1,"ng-container",13),n.YNc(10,Kn,4,1,"ng-container",13),n.YNc(11,Gn,4,1,"ng-container",13),n.YNc(12,Xn,4,1,"ng-container",13),n.YNc(13,tt,4,1,"ng-container",13),n.YNc(14,et,2,5,"ng-container",14),n.BQk(),n.YNc(15,at,11,8,"ng-container",15),n.YNc(16,_t,3,1,"ng-template",null,16,n.W1O),n.YNc(18,zt,6,1,"ng-template",null,17,n.W1O),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(17),d=n.MAs(19);n.Q6J("nzHeader",r)("nzExtra",d)("nzActive",!0),n.xp6(1),n.Q6J("ngSwitch",o.fieldName),n.xp6(1),n.Q6J("ngSwitchCase","source_ids"),n.xp6(1),n.Q6J("ngSwitchCase","disease_id"),n.xp6(1),n.Q6J("ngSwitchCase","drug_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_alias_ids"),n.xp6(1),n.Q6J("ngSwitchCase","clinvar_entry_ids"),n.xp6(1),n.Q6J("ngSwitchCase","hgvs_expression_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_type_ids"),n.xp6(1),n.Q6J("ngSwitchCase","phenotype_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_id"),n.xp6(1),n.Q6J("ngSwitchCase","variant_ids"),n.xp6(1),n.Q6J("ngSwitchCase","source_id"),n.xp6(1),n.Q6J("ngSwitchCase","evidence_item_ids"),n.xp6(2),n.Q6J("ngIf","NEW"!==o.status)}}function Tt(e,l){if(1&e&&(n.TgZ(0,"nz-collapse",9),n.YNc(1,Ct,20,17,"nz-collapse-panel",10),n.qZA()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",o.untypedRevisons)}}function xt(e,l){1&e&&n._UZ(0,"nz-empty",66)}function ht(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",6),n.YNc(2,Tt,2,1,"nz-collapse",7),n.YNc(3,xt,1,0,"ng-template",null,8,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.MAs(4),r=n.oxw(),d=n.MAs(4);n.xp6(1),n.Q6J("nzExtra",d),n.xp6(1),n.Q6J("ngIf",r.revisions&&r.revisions.length>0)("ngIfElse",o)}}function yt(e,l){}function Zt(e,l){1&e&&n.YNc(0,yt,0,0,"ng-template")}function At(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Zt,1,0,void 0,75),n.BQk()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Ot(e,l){}function Rt(e,l){1&e&&n.YNc(0,Ot,0,0,"ng-template")}function Ft(e,l){if(1&e&&(n.TgZ(0,"span",76),n.YNc(1,Rt,1,0,void 0,75),n.qZA()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Mt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",77),n.NdJ("nzPopoverVisibleChange",function(d){return n.CHM(o),n.oxw(7).validationPopoverVisible=d})("click",function(){n.CHM(o);const d=n.oxw(7);return d.validationPopoverVisible=!d.validationPopoverVisible}),n._uU(1," Review Selected Revisions "),n._UZ(2,"i",78),n.qZA()}if(2&e){const o=n.oxw(2).ngrxLet,r=n.MAs(7),d=n.MAs(9),R=n.oxw(5);n.Q6J("nzPopoverTitle",r)("nzPopoverVisible",R.validationPopoverVisible)("nzPopoverContent",d)("nzPopoverTrigger",void 0)("disabled",0===R.selectedRevisionIds.length||!o.signedIn)}}function Lt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,At,2,1,"ng-container",53),n.YNc(2,Ft,2,1,"ng-template",null,73,n.W1O),n.YNc(4,Mt,3,5,"ng-template",null,74,n.W1O),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)("ngIfElse",o)}}function bt(e,l){if(1&e&&n._UZ(0,"i",80),2&e){n.oxw(4);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function Et(e,l){1&e&&(n.ynx(0),n.YNc(1,bt,1,1,"i",79),n.BQk())}const St=function(){return{float:"right"}};function Pt(e,l){if(1&e){const o=n.EpF();n._uU(0," Review Selected Revisions "),n.TgZ(1,"span",81),n.TgZ(2,"i",82),n.NdJ("click",function(){return n.CHM(o),n.oxw(6).validationPopoverVisible=!1}),n.qZA(),n.qZA()}2&e&&(n.xp6(1),n.Q6J("ngStyle",n.DdM(1,St)))}function Nt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-comment-input-form",85),n.NdJ("commentChange",function(d){return n.CHM(o),n.oxw(7).revisionComment=d}),n.qZA()}if(2&e){const o=n.oxw(7);n.Q6J("comment",o.revisionComment)}}function It(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",87),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onRejectRevisionsClicked()}),n._uU(3," Reject Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(8);n.xp6(1),n.Q6J("selectedOrg",o.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",o.isLoading)("disabled",void 0===o.revisionComment||o.revisionComment.length<10)}}function Qt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",88),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onAcceptRevisionClicked()}),n._uU(3," Accept Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(4).ngrxLet,r=n.oxw(4);n.xp6(1),n.Q6J("selectedOrg",r.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",r.isLoading)("disabled",!(0==o&&(void 0===r.revisionComment||""===r.revisionComment||r.revisionComment.length>=10)))}}function Jt(e,l){if(1&e&&n._UZ(0,"i",90),2&e){n.oxw(6);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function Yt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Jt,1,1,"i",89),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(1),n.Q6J("ngIf",o>0)}}function Ut(e,l){1&e&&(n.TgZ(0,"span"),n.TgZ(1,"nz-space"),n.YNc(2,It,4,3,"span",44),n.YNc(3,Qt,4,3,"span",44),n.YNc(4,Yt,2,1,"span",44),n.qZA(),n.qZA())}function Dt(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,Nt,1,1,"cvc-comment-input-form",84),n.YNc(2,Ut,5,0,"span",44),n.qZA())}function Bt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"div",68),n.TgZ(2,"div",69),n.TgZ(3,"nz-space",70),n.YNc(4,Lt,6,2,"span",44),n.YNc(5,Et,2,0,"ng-container",15),n.qZA(),n.YNc(6,Pt,3,2,"ng-template",null,71,n.W1O),n.YNc(8,Dt,3,0,"ng-template",null,72,n.W1O),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().ngrxLet;n.xp6(5),n.Q6J("ngIf",o>0)}}function $t(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Bt,10,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(4);n.xp6(1),n.Q6J("ngrxLet",o.viewer$)}}function wt(e,l){if(1&e&&(n.TgZ(0,"nz-list-item"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o)}}function jt(e,l){if(1&e&&(n.TgZ(0,"nz-card",92),n.TgZ(1,"nz-list",93),n.YNc(2,wt,2,1,"nz-list-item",94),n.qZA(),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function Wt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,jt,3,1,"nz-card",91),n.qZA()),2&e){const o=n.oxw(2).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function Vt(e,l){if(1&e&&(n.TgZ(0,"nz-descriptions-item",99),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.Q6J("nzTitle",o.fieldName),n.xp6(1),n.Oqu(o.error)}}function Kt(e,l){if(1&e&&(n.TgZ(0,"nz-card",96),n.TgZ(1,"nz-descriptions",97),n.YNc(2,Vt,2,2,"nz-descriptions-item",98),n.qZA(),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function Ht(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Kt,3,1,"nz-card",95),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function Gt(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,Wt,2,1,"span",44),n.YNc(2,Ht,2,1,"span",44),n.qZA())}function kt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,$t,2,1,"ng-container",2),n.YNc(2,Gt,3,0,"ng-template",null,67,n.W1O),n.BQk()),2&e){const o=n.oxw(3);n.xp6(1),n.Q6J("ngrxLet",o.totalErrorCount$)}}function Xt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,kt,4,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",o.genericErrors$)}}function qt(e,l){if(1&e&&n.YNc(0,Xt,2,1,"ng-container",2),2&e){const o=n.oxw();n.Q6J("ngrxLet",o.validationErrors$)}}let ne=(()=>{class e{constructor(o,r,d,R,rn){this.viewerService=o,this.networkErrorService=r,this.acceptRevisionsGql=d,this.rejectRevisionsGql=R,this.validationGql=rn,this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new L.xQ,this.revisionSetSelectedEvent=new n.vpe,this.revisionMutationCompleted=new n.vpe,this.acceptRevisionsMutator=new S.U(r),this.rejectRevisionsMutator=new S.U(r)}ngOnChanges(o){this.untypedRevisons=this.revisions,this.selectedRevisionIds=[],this.queryRef&&this.queryRef.refetch({ids:this.selectedRevisionIds})}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(o=>{this.mostRecentOrg=o.mostRecentOrg}),this.queryRef=this.validationGql.watch({ids:[]}),this.genericErrors$=this.queryRef.valueChanges.pipe((0,z.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors)),this.validationErrors$=this.queryRef.valueChanges.pipe((0,z.U)(({data:o})=>o.validateRevisionsForAcceptance.validationErrors)),this.totalErrorCount$=this.queryRef.valueChanges.pipe((0,z.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors.length+o.validateRevisionsForAcceptance.validationErrors.length),(0,t.O)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(o){this.revisionSetSelectedEvent.emit(o)}onRevisionCheckboxClicked(o,r){o?this.selectedRevisionIds.push(r):this.selectedRevisionIds=this.selectedRevisionIds.filter(d=>d!=r),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(o,r){o.submitSuccess$.pipe((0,D.R)(this.destroy$)).subscribe(d=>{d&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=r,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])}),o.submitError$.pipe((0,D.R)(this.destroy$)).subscribe(d=>{d.length>0&&(this.isLoading=!1,this.success=!1,this.errors=d,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])})}onRejectRevisionsClicked(){var o;if(this.revisionComment&&""!==this.revisionComment){this.isLoading=!0;let r=this.rejectRevisionsMutator.mutate(this.rejectRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:this.revisionComment}});this.setupMutationResultHandlers(r,"rejected")}}onAcceptRevisionClicked(){var o;this.isLoading=!0;let r=this.acceptRevisionsMutator.mutate(this.acceptRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:""===this.revisionComment?void 0:this.revisionComment}});this.setupMutationResultHandlers(r,"accepted")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(o){var r;this.errors=null===(r=this.errors)||void 0===r?void 0:r.filter(d=>d!=o)}onSuccessBannerClose(){this.success=!1}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(y.a),n.Y36(I.Y),n.Y36(_.ti),n.Y36(_.VZq),n.Y36(_.Qzn))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions"},outputs:{revisionSetSelectedEvent:"revisionSetSelectedEvent",revisionMutationCompleted:"revisionMutationCompleted"},features:[n.TTD],decls:5,vars:3,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],[4,"ngrxLet"],["moderationButtons",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzTitle","Revisions",1,"card-list",3,"nzExtra"],["class","revision-list",4,"ngIf","ngIfElse"],["noRevisions",""],[1,"revision-list"],[3,"nzHeader","nzExtra","nzActive",4,"ngFor","ngForOf"],[3,"nzHeader","nzExtra","nzActive"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],["revCardHeaderTitle",""],["revCardHeaderExtra",""],["entityType","Sources",3,"diffObject"],["itemTemplate",""],[3,"source"],["entityType","Disease",3,"diffObject"],[3,"disease"],["entityType","Drugs",3,"diffObject"],[3,"drug"],["entityType","Variant Aliases",3,"diffObject"],["entityType","ClinVar Entries",3,"diffObject"],["entityType","HGVS Expressions",3,"diffObject"],["entityType","Variant Types",3,"diffObject"],[3,"variantType"],["entityType","Phenotypes",3,"diffObject"],[3,"phenotype"],["entityType","Variant",3,"diffObject"],[3,"variant"],["entityType","Variants",3,"diffObject"],["entityType","Source",3,"diffObject"],["entityType","Evidence",3,"diffObject"],[3,"evidence"],[3,"currentValue","suggestedValue","left","right","entityType"],["nzSpan","16"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"commentBodySegments"],[3,"user"],[4,"nzSpaceItem"],["nz-icon","","nzType","civic:revision"],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent",4,"nzSpaceItem"],["creationCommentTemplate",""],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent"],["nzSize","small",3,"click"],[3,"status",4,"nzSpaceItem"],["nzType","vertical",4,"nzSpaceItem"],["nz-button","","nzType","link",3,"click",4,"nzSpaceItem"],[4,"ngIf","ngIfElse"],["noRevisor",""],["nz-typography","","nzType","secondary"],[3,"status"],["nzType","vertical"],["nz-button","","nzType","link",3,"click"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["loggedIn",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["canRevise",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Select Revision for Acceptance/Rejection",3,"nzCheckedChange"],["nzNotFoundImage","simple","nzNotFoundContent","No Revisions matching filters"],["validationErrorTemplate",""],["nz-row","",2,"margin-top","1em"],["nz-col","","nzSpan","24",2,"text-align","right"],["nzDirection","horizontal"],["validationPopoverTitleTemplate",""],["validationPopoverContentTemplate",""],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"nzSpaceItem"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzDirection","vertical"],[3,"comment","commentChange",4,"nzSpaceItem"],[3,"comment","commentChange"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nzDanger","",3,"nzLoading","disabled","click"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small",3,"nzLoading","disabled","click"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"ngIf"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],["nzTitle","Errors",4,"ngIf"],["nzTitle","Errors"],["nzSize","small"],[4,"ngFor","ngForOf"],["nzTitle","Validation Errors",4,"ngIf"],["nzTitle","Validation Errors"],["nzBordered",""],[3,"nzTitle",4,"ngFor","ngForOf"],[3,"nzTitle"]],template:function(o,r){1&o&&(n.YNc(0,Mn,1,1,"nz-alert",0),n.YNc(1,Ln,1,1,"nz-alert",1),n.YNc(2,ht,5,3,"ng-container",2),n.YNc(3,qt,1,1,"ng-template",null,3,n.W1O)),2&o&&(n.Q6J("ngForOf",r.errors),n.xp6(1),n.Q6J("ngIf",r.success),n.xp6(1),n.Q6J("ngrxLet",r.viewer$))},directives:[T.sg,Q.r,T.O5,w.eJ,B.bd,u.yH,u.Zv,T.RF,T.n9,sn,cn.T,on.n,ln.u,Y.j,X.j,q.i,E.I,nn.O,T.ED,tn,fn.g,O.SK,O.t3,un.m,zn.ZU,Cn.I,x.NU,x.$1,_n.Ls,gn.w,Tn.lU,xn.h,pn.ix,hn.Ie,yn.SY,mn.p9,T.tP,dn.dQ,T.PC,Zn.b,An.q,On.m,M.n_,M.AA,vn.R7,vn.uj],pipes:[Rn.I,Fn.wr],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}"]}),e})();var te=i(8747),ee=i(6699);function oe(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-revision-list",14),n.NdJ("revisionSetSelectedEvent",function(d){return n.CHM(o),n.oxw(2).onRevisionSetSelected(d)})("revisionMutationCompleted",function(){return n.CHM(o),n.oxw(2).refresh()}),n.ALo(1,"ngrxPush"),n.qZA()}if(2&e){const o=n.oxw(2);n.Q6J("revisions",n.lcZ(1,1,o.revisions$))}}function ie(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(null==d?null:d.endCursor)}),n._uU(1,"Load More"),n.qZA()}}function ae(e,l){1&e&&(n.ynx(0),n.YNc(1,ie,2,0,"button",16),n.BQk())}function se(e,l){if(1&e&&(n.ynx(0),n.YNc(1,ae,2,0,"ng-container",15),n.BQk()),2&e){const o=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",null==o?null:o.hasNextPage)}}function ce(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-row"),n.TgZ(1,"nz-tag",19),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw(3).onSetFilterClearClicked()}),n._uU(2),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(3);n.xp6(2),n.hij("Group: ",o.filteredSet,"")}}function le(e,l){1&e&&(n.TgZ(0,"nz-space",4),n.YNc(1,ce,3,1,"nz-row",18),n.qZA())}function re(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function _e(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function ge(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function pe(e,l){if(1&e&&(n.YNc(0,_e,1,1,"nz-avatar",20),n.YNc(1,ge,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(o.username)}}function me(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function de(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function ve(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function fe(e,l){if(1&e&&(n.YNc(0,de,1,1,"nz-avatar",20),n.YNc(1,ve,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(o.username)}}function ue(e,l){if(1&e){const o=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2),n.TgZ(2,"nz-col",3),n.TgZ(3,"nz-space",4),n.YNc(4,oe,2,3,"cvc-revision-list",5),n.YNc(5,se,2,1,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",7),n.YNc(7,le,2,0,"nz-space",8),n.TgZ(8,"cvc-participant-list",9),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onStatusSelected(d)}),n.YNc(9,re,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onRevisorSelected(d)}),n.ALo(12,"ngrxPush"),n.YNc(13,pe,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onFieldNameSelected(d)}),n.ALo(16,"ngrxPush"),n.YNc(17,me,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",13),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onResolverSelected(d)}),n.ALo(20,"ngrxPush"),n.YNc(21,fe,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&e){const o=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(4),n.Q6J("ngrxLet",o.pageInfo$),n.xp6(2),n.Q6J("ngIf",o.filteredSet),n.xp6(1),n.Q6J("preselectedOption",o.selectableStatuses[0])("participantList",o.selectableStatuses),n.xp6(3),n.Q6J("participantList",n.lcZ(12,8,o.uniqueRevisors$)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,10,o.revisionFields$)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,12,o.uniqueResolvers$))}}function ze(e,l){1&e&&(n.ynx(0),n.TgZ(1,"nz-row",25),n._UZ(2,"i",26),n.qZA(),n.BQk())}function Ce(e,l){1&e&&n._UZ(0,"nz-empty",27)}function Te(e,l){if(1&e&&(n.YNc(0,ze,3,0,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Ce,1,0,"ng-template",null,24,n.W1O)),2&e){const o=n.MAs(3),r=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,r.isLoading$))("ngIfElse",o)}}let xe=(()=>{class e{constructor(o,r){this.gql=o,this.route=r,this.filteredSet=void 0,this.selectableStatuses=[{id:4,displayName:"New",value:_.FJi.New},{id:1,displayName:"Accepted",value:_.FJi.Accepted},{id:2,displayName:"Rejected",value:_.FJi.Rejected},{id:3,displayName:"Superseded",value:_.FJi.Superseded}],this.defaultPageSize=10}ngOnInit(){this.routeSub=this.route.params.subscribe(o=>{this.queryRef=this.gql.watch({first:this.defaultPageSize,subject:{id:this.id,entityType:this.entityType},status:_.FJi.New});let r=this.queryRef.valueChanges;this.revisions$=r.pipe((0,a.j)("data","revisions","edges"),(0,z.U)(d=>d.map(R=>R.node))),this.isLoading$=r.pipe((0,z.U)(d=>d.loading),(0,t.O)(!0)),this.pageInfo$=r.pipe((0,a.j)("data","revisions","pageInfo")),this.uniqueRevisors$=r.pipe((0,z.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.uniqueRevisors})),this.uniqueResolvers$=r.pipe((0,z.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.uniqueResolvers})),this.revisionFields$=r.pipe((0,z.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.revisedFieldNames.map((rn,he)=>Object.assign(Object.assign({},rn),{id:he}))})),this.unfilteredCount$=r.pipe((0,a.j)("data","revisions","unfilteredCountForSubject"))})}ngOnDestroy(){var o;null===(o=this.routeSub)||void 0===o||o.unsubscribe()}onFieldNameSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},fieldName:o?o.name:void 0})}onRevisorSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},originatingUserId:o?o.id:void 0})}onResolverSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},resolvingUserId:o?o.id:void 0})}onStatusSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},status:o?o.value:void 0})}onRevisionSetSelected(o){this.filteredSet=o,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:o||void 0})}onSetFilterClearClicked(){this.filteredSet=void 0,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:void 0})}refresh(){this.queryRef.refetch()}loadMore(o){var r;null===(r=this.queryRef)||void 0===r||r.fetchMore({variables:{first:this.defaultPageSize,after:o}})}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(_.L5n),n.Y36(m.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revisions-list-and-filter"]],inputs:{id:"id",entityType:"entityType"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noRevisions",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"revisions","revisionSetSelectedEvent","revisionMutationCompleted",4,"nzSpaceItem"],[4,"ngrxLet"],["nzSpan","6"],["nzDirection","vertical",4,"ngIf"],["listTitle","Revision Status",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Revisors",3,"participantList","participantSelectedEvent"],["listTitle","Fields Revised",3,"participantList","participantSelectedEvent"],["listTitle","Resolvers",3,"participantList","participantSelectedEvent"],[3,"revisions","revisionSetSelectedEvent","revisionMutationCompleted"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[4,"nzSpaceItem"],["nzMode","closeable",3,"nzOnClose"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["noneFound",""],["nzJustify","center"],["nz-icon","","nzType","loading",2,"font-size","32px"],["nzNotFoundImage","simple","nzNotFoundContent","Entity has no Revisions"]],template:function(o,r){if(1&o&&(n.YNc(0,ue,23,14,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Te,4,4,"ng-template",null,1,n.W1O)),2&o){const d=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,r.unfilteredCount$))("ngIfElse",d)}},directives:[T.O5,O.SK,O.t3,x.NU,x.$1,ne,w.eJ,pn.ix,dn.dQ,gn.w,Y.j,te.l,ee.Dz,_n.Ls,mn.p9],pipes:[w.fM,T.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})()},2914:(H,P,i)=>{i.d(P,{A:()=>w});var _=i(9808),a=i(6949),z=i(1894),t=i(3762),n=i(7484),m=i(8144),T=i(8481),O=i(3618),x=i(1150),L=i(6699),S=i(1835),D=i(685),y=i(6042),I=i(647),Q=i(5e3);let w=(()=>{class B{}return B.\u0275fac=function(M){return new(M||B)},B.\u0275mod=Q.oAB({type:B}),B.\u0275inj=Q.cJS({imports:[[_.ez,a.WG,z.Jb,t.Ph,n.vh,m.zf,T.X,O.ZJ,L.Rt,D.Xo,y.sL,I.PV,x.N,S.i]]}),B})()},759:(H,P,i)=>{i.d(P,{N:()=>V});var _=i(373),a=i(5e3),z=i(712),t=i(3618),n=i(9808),m=i(325),T=i(6699),O=i(3610),x=i(6265),L=i(3098),S=i(2937);function D(C,b){1&C&&(a.ynx(0),a._uU(1,", "),a.BQk())}function y(C,b){if(1&C&&(a.ynx(0),a._uU(1),a.ALo(2,"eventVerbiage"),a.YNc(3,D,2,0,"ng-container",12),a.BQk()),2&C){const Z=b.$implicit,$=b.last;a.xp6(1),a.hij(" ",a.Dn7(2,2,Z.action,"contributor-card",Z.count),""),a.xp6(2),a.Q6J("ngIf",!$)}}function I(C,b){if(1&C&&(a.TgZ(0,"nz-descriptions",8),a.TgZ(1,"nz-descriptions-item",9),a.YNc(2,y,4,6,"ng-container",10),a.qZA(),a.TgZ(3,"nz-descriptions-item",11),a._uU(4),a.ALo(5,"date"),a.qZA(),a.qZA()),2&C){const Z=a.oxw(2).$implicit;a.Q6J("nzColumn",1),a.xp6(2),a.Q6J("ngForOf",Z.uniqueActions),a.xp6(2),a.hij(" ",a.lcZ(5,3,Z.lastActionDate)," ")}}function Q(C,b){if(1&C&&(a.TgZ(0,"cvc-user-popover",6),a.YNc(1,I,6,5,"ng-template",null,7,a.W1O),a.qZA()),2&C){const Z=a.oxw().$implicit;a.Q6J("userId",Z.user.id)}}function w(C,b){if(1&C&&(a.TgZ(0,"a",3),a._UZ(1,"nz-avatar",4),a.YNc(2,Q,3,1,"ng-template",null,5,a.W1O),a.qZA()),2&C){const Z=b.$implicit,$=a.MAs(3);a.MGl("routerLink","/users/",Z.user.id,""),a.xp6(1),a.Q6J("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",$)("nzSrc",Z.user.profileImagePath)}}function B(C,b){if(1&C&&(a.ynx(0),a.YNc(1,w,4,5,"a",2),a.BQk()),2&C){const Z=a.oxw();a.xp6(1),a.Q6J("ngForOf",Z.sortedContributors)}}function u(C,b){1&C&&a._uU(0," None\n")}let M=(()=>{class C{ngOnInit(){if(void 0===this.contributors)throw new Error("Must pass a list of contributors into the contributor stack");this.sortedContributors=this.contributors.slice(),this.sortedContributors.sort((Z,$)=>$.totalActionCount-Z.totalActionCount)}}return C.\u0275fac=function(Z){return new(Z||C)},C.\u0275cmp=a.Xpm({type:C,selectors:[["cvc-contributor-stack"]],inputs:{contributors:"contributors"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noContributors",""],["class","avatar",3,"routerLink",4,"ngFor","ngForOf"],[1,"avatar",3,"routerLink"],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","bottomRight","nzIcon","user","nzSize","small",3,"nzSize","nzPopoverMouseEnterDelay","nzPopoverContent","nzSrc"],["curatorPopover",""],[3,"userId"],["additionalMetadata",""],["nzBordered","","nzTitle","Activity","nzSize","small",3,"nzColumn"],["nzTitle","Contributions"],[4,"ngFor","ngForOf"],["nzTitle","Last Contribution"],[4,"ngIf"]],template:function(Z,$){if(1&Z&&(a.YNc(0,B,2,1,"ng-container",0),a.YNc(1,u,1,0,"ng-template",null,1,a.W1O)),2&Z){const G=a.MAs(2);a.Q6J("ngIf",$.sortedContributors&&$.sortedContributors.length>0)("ngIfElse",G)}},directives:[n.O5,n.sg,m.yS,T.Dz,O.lU,x.q,L.R7,L.uj],pipes:[S.R,n.uU],styles:[""]}),C})();var h=i(6949);function F(C,b){if(1&C&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&C){const Z=b.ngIf;a.xp6(1),a.Q6J("contributors",Z)}}function J(C,b){1&C&&a._uU(0," None ")}function W(C,b){if(1&C&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&C){const Z=b.ngIf;a.xp6(1),a.Q6J("contributors",Z)}}function K(C,b){1&C&&a._uU(0," None ")}let V=(()=>{class C{constructor(Z){this.gql=Z}ngOnInit(){if(void 0===this.subscribable)throw new Error("Must pass a subscribable into ContributorAvatars component.");let Z=this.gql.watch({subscribable:this.subscribable}).valueChanges;this.curators$=Z.pipe((0,_.j)("data","contributors","curators")),this.editors$=Z.pipe((0,_.j)("data","contributors","editors"))}}return C.\u0275fac=function(Z){return new(Z||C)(a.Y36(z.kQf))},C.\u0275cmp=a.Xpm({type:C,selectors:[["cvc-contributor-avatars"]],inputs:{subscribable:"subscribable"},decls:14,vars:8,consts:[["nz-typography","","nzType","secondary",1,"role-group-label"],[1,"role-group"],[4,"ngIf","ngIfElse"],["noCurators",""],["noEditors",""],[3,"contributors"]],template:function(Z,$){if(1&Z&&(a.TgZ(0,"span",0),a._uU(1,"Curators:"),a.qZA(),a.TgZ(2,"div",1),a.YNc(3,F,2,1,"ng-container",2),a.ALo(4,"ngrxPush"),a.YNc(5,J,1,0,"ng-template",null,3,a.W1O),a.qZA(),a.TgZ(7,"span",0),a._uU(8,"Editors:"),a.qZA(),a.TgZ(9,"div",1),a.YNc(10,W,2,1,"ng-container",2),a.ALo(11,"ngrxPush"),a.YNc(12,K,1,0,"ng-template",null,4,a.W1O),a.qZA()),2&Z){const G=a.MAs(6),f=a.MAs(13);a.xp6(3),a.Q6J("ngIf",a.lcZ(4,4,$.curators$))("ngIfElse",G),a.xp6(7),a.Q6J("ngIf",a.lcZ(11,6,$.editors$))("ngIfElse",f)}},directives:[t.ZU,n.O5,M],pipes:[h.fM],styles:["[_nghost-%COMP%]{display:inline-block}.role-group-label[_ngcontent-%COMP%]{margin-left:12px}.role-group[_ngcontent-%COMP%]{display:inline-block}.role-group[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{display:inline-block;margin-left:2px}"]}),C})()},5750:(H,P,i)=>{i.d(P,{Z:()=>D});var _=i(9808),a=i(6949),z=i(3618),t=i(325),n=i(6699),m=i(3610),T=i(9444),O=i(6081),x=i(3098),L=i(5e3);let S=(()=>{class y{}return y.\u0275fac=function(Q){return new(Q||y)},y.\u0275mod=L.oAB({type:y}),y.\u0275inj=L.cJS({imports:[[_.ez,t.Bz,n.Rt,m.$6,x.q6,T.s,O.J]]}),y})(),D=(()=>{class y{}return y.\u0275fac=function(Q){return new(Q||y)},y.\u0275mod=L.oAB({type:y}),y.\u0275inj=L.cJS({imports:[[_.ez,a.WG,z.ZJ,S]]}),y})()},9077:(H,P,i)=>{i.d(P,{Q:()=>B});var _=i(6123),a=i(712),z=i(8929),t=i(4850),n=i(7625),m=i(5e3),T=i(9169),O=i(9808),x=i(6042),L=i(2643),S=i(2683),D=i(404),y=i(647),I=i(6949);function Q(u,M){if(1&u){const h=m.EpF();m.ynx(0),m.TgZ(1,"button",2),m.NdJ("click",function(){return m.CHM(h),m.oxw().unsubscribe()}),m._UZ(2,"i",3),m.qZA(),m.BQk()}if(2&u){const h=m.oxw();m.xp6(1),m.Q6J("nzLoading",h.isSubmitting)}}function w(u,M){if(1&u){const h=m.EpF();m.TgZ(0,"button",4),m.NdJ("click",function(){return m.CHM(h),m.oxw().subscribe()}),m._UZ(1,"i",5),m.qZA()}if(2&u){const h=m.oxw();m.Q6J("nzLoading",h.isSubmitting)}}let B=(()=>{class u{constructor(h,F,J,W){this.isSubscribedGQL=h,this.unsubscribeMutation=F,this.subscribeMutation=J,this.networkErrorService=W,this.isSubmitting=!1,this.destroy$=new z.xQ,this.unsubscribeMutator=new _.U(W),this.subscribeMutator=new _.U(W)}ngOnInit(){if(void 0===this.viewer)throw new Error("Must pass in a viewer to the CvcEntitySubscriptionButtonComponent");if(void 0===this.typename)throw new Error("Must pass in a typename to the CvcEntitySubscriptionButtonComponent");if(void 0===this.subscribableId)throw new Error("Must pass in a subscribableId to the CvcEntitySubscriptionButtonComponent");this.subscribable={id:this.subscribableId,entityType:a.o71[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,t.U)(({data:F})=>F.subscriptionForEntity))}subscribe(){this.subscribable&&(this.isSubmitting=!0,this.subscribeMutator.mutate(this.subscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(F=>{var J;F&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}unsubscribe(){this.subscribable&&(this.isSubmitting=!0,this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(F=>{var J;F&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(h){return new(h||u)(m.Y36(a.A4J),m.Y36(a.m$d),m.Y36(a.jMx),m.Y36(T.Y))},u.\u0275cmp=m.Xpm({type:u,selectors:[["cvc-entity-subscription-button"]],inputs:{viewer:"viewer",typename:"typename",subscribableId:"subscribableId"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noSub",""],["nz-button","","nz-tooltip","Unsubscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","fill"],["nz-button","","nz-tooltip","Subscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","outline"]],template:function(h,F){if(1&h&&(m.YNc(0,Q,3,1,"ng-container",0),m.ALo(1,"ngrxPush"),m.YNc(2,w,2,1,"ng-template",null,1,m.W1O)),2&h){const J=m.MAs(3);m.Q6J("ngIf",m.lcZ(1,2,F.existingSubscription$))("ngIfElse",J)}},directives:[O.O5,x.ix,L.dQ,S.w,D.SY,y.Ls],pipes:[I.fM],styles:["[_nghost-%COMP%]{display:block}"]}),u})()},4609:(H,P,i)=>{i.d(P,{g:()=>T});var _=i(9808),a=i(6042),z=i(6949),t=i(647),n=i(404),m=i(5e3);let T=(()=>{class O{}return O.\u0275fac=function(L){return new(L||O)},O.\u0275mod=m.oAB({type:O}),O.\u0275inj=m.cJS({imports:[[_.ez,a.sL,t.PV,n.cg,z.WG]]}),O})()},7701:(H,P,i)=>{i.d(P,{j:()=>G});var _=i(6654),a=i(5e3),z=i(9808),t=i(325),n=i(8481),m=i(3610),T=i(4850),O=i(712),x=i(7484),L=i(647),S=i(6550),D=i(3098),y=i(6949);function I(f,N){if(1&f&&(a._UZ(0,"i",7),a._uU(1)),2&f){const A=a.oxw().ngIf;a.xp6(1),a.hij(" ",A.name," ")}}function Q(f,N){if(1&f&&(a.TgZ(0,"cvc-link-tag",9),a._uU(1),a.qZA()),2&f){const A=a.oxw(2).ngIf;a.Q6J("href",A.url),a.xp6(1),a.hij(" ",A.soid," ")}}function w(f,N){if(1&f&&a.YNc(0,Q,2,2,"cvc-link-tag",8),2&f){const A=a.oxw().ngIf;a.Q6J("ngIf","N/A"!=A.soid)}}function B(f,N){if(1&f&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,I,2,1,"ng-template",null,3,a.W1O),a.YNc(4,w,1,1,"ng-template",null,4,a.W1O),a.TgZ(6,"nz-descriptions",5),a.TgZ(7,"nz-descriptions-item",6),a._uU(8),a.qZA(),a.qZA(),a.qZA(),a.BQk()),2&f){const A=N.ngIf,j=a.MAs(3),k=a.MAs(5);a.xp6(1),a.Q6J("nzTitle",j)("nzExtra",k),a.xp6(5),a.Q6J("nzColumn",2),a.xp6(2),a.hij(" ",A.variantCount," ")}}let u=(()=>{class f{constructor(A){this.gql=A}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,T.U)(({data:A})=>A.variantTypePopover))}}return f.\u0275fac=function(A){return new(A||f)(a.Y36(O.tw_))},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(A,j){1&A&&(a.TgZ(0,"div",0),a.YNc(1,B,9,4,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&A&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,j.variantType$)))},directives:[z.O5,x.bd,L.Ls,S.l,D.R7,D.uj],pipes:[y.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),f})();function M(f,N){}function h(f,N){if(1&f&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,M,0,0,"ng-template",6),a.qZA(),a.BQk()),2&f){const A=a.oxw(),j=a.MAs(2);a.xp6(1),a.Q6J("routerLink",A.variantType.link),a.xp6(1),a.Q6J("ngTemplateOutlet",j)}}function F(f,N){}function J(f,N){if(1&f&&(a.TgZ(0,"nz-tag",9),a.YNc(1,F,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const A=a.MAs(2);a.oxw();const j=a.MAs(8);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",A),a.xp6(1),a.Q6J("ngTemplateOutlet",j)}}function W(f,N){if(1&f&&a._UZ(0,"cvc-variant-type-popover",10),2&f){const A=a.oxw(2);a.Q6J("variantTypeId",A.variantType.id)}}function K(f,N){if(1&f&&(a.YNc(0,J,2,3,"nz-tag",7),a.YNc(1,W,1,1,"ng-template",null,8,a.W1O)),2&f){const A=a.oxw(),j=a.MAs(6);a.Q6J("ngIf",A.enablePopover)("ngIfElse",j)}}function V(f,N){}function C(f,N){if(1&f&&a.YNc(0,V,0,0,"ng-template",6),2&f){a.oxw();const A=a.MAs(2);a.Q6J("ngTemplateOutlet",A)}}function b(f,N){}function Z(f,N){if(1&f&&(a.TgZ(0,"nz-tag"),a.YNc(1,b,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const A=a.MAs(8);a.xp6(1),a.Q6J("ngTemplateOutlet",A)}}function $(f,N){if(1&f&&(a._UZ(0,"i",11),a._uU(1)),2&f){const A=a.oxw();a.xp6(1),a.hij(" ",A.variantType.name,"\n")}}let G=(()=>{class f extends _.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return f.\u0275fac=function(A){return new(A||f)},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[a.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(A,j){if(1&A&&(a.YNc(0,h,3,2,"ng-container",0),a.YNc(1,K,3,2,"ng-template",null,1,a.W1O),a.YNc(3,C,1,1,"ng-template",null,2,a.W1O),a.YNc(5,Z,2,1,"ng-template",null,3,a.W1O),a.YNc(7,$,2,1,"ng-template",null,4,a.W1O)),2&A){const k=a.MAs(4);a.Q6J("ngIf",j.linked)("ngIfElse",k)}},directives:[z.O5,t.yS,z.tP,n.j,m.lU,u,L.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),f})()},8645:(H,P,i)=>{i.d(P,{M:()=>D});var _=i(9808),a=i(325),z=i(8481),t=i(7484),n=i(3630),m=i(3098),T=i(6949),O=i(647),x=i(5e3);let L=(()=>{class y{}return y.\u0275fac=function(Q){return new(Q||y)},y.\u0275mod=x.oAB({type:y}),y.\u0275inj=x.cJS({imports:[[_.ez,T.WG,O.PV,t.vh,m.q6,n.X]]}),y})();var S=i(3610);let D=(()=>{class y{}return y.\u0275fac=function(Q){return new(Q||y)},y.\u0275mod=x.oAB({type:y}),y.\u0275inj=x.cJS({imports:[[_.ez,a.Bz,O.PV,z.X,S.$6,L]]}),y})()},1243:(H,P,i)=>{i.d(P,{I:()=>a});var _=i(5e3);let a=(()=>{class z{transform(n){if(n){let T=n.toLowerCase().replace(/_/g," ").split(" ");for(var m=0;m{t.d(x,{u:()=>e});var p=t(5e3),g=t(685),o=t(1912),h=t(3618),m=t(647);function r(n,a){1&n&&(p.TgZ(0,"span"),p._uU(1," You must be logged in to view this page. "),p.qZA())}function O(n,a){1&n&&p._UZ(0,"cvc-login-button")}function T(n,a){1&n&&(p.TgZ(0,"nz-typography",4),p._UZ(1,"i",5),p.qZA())}let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=p.Xpm({type:n,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(i,u){if(1&i&&(p.TgZ(0,"nz-empty",0),p.YNc(1,r,2,0,"ng-template",null,1,p.W1O),p.YNc(3,O,1,0,"ng-template",null,2,p.W1O),p.qZA(),p.YNc(5,T,2,0,"ng-template",null,3,p.W1O)),2&i){const s=p.MAs(2),C=p.MAs(4),E=p.MAs(6);p.Q6J("nzNotFoundImage",E)("nzNotFoundContent",s)("nzNotFoundFooter",C)}},directives:[g.p9,o.s,h.ZU,m.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),n})()},9386:(b,x,t)=>{t.d(x,{a:()=>O});var p=t(9808),g=t(1844),o=t(685),h=t(647),m=t(3618),r=t(5e3);let O=(()=>{class T{}return T.\u0275fac=function(n){return new(n||T)},T.\u0275mod=r.oAB({type:T}),T.\u0275inj=r.cJS({imports:[[p.ez,g.B,o.Xo,h.PV,m.ZJ]]}),T})()},7905:(b,x,t)=>{t.d(x,{yQ:()=>h,nT:()=>r});var p=t(915),g=t(712),o=t(444),h=(()=>{return(O=h||(h={})).EVIDENCE="Evidence",O.ASSERTION="Assertion",h;var O})();class r{constructor(T){this.validStates=new Map,this.getTypeOptions=()=>this.entityName==h.ASSERTION?(0,o.o6)(g.uBv).map(e=>e):(0,o.o6)(g.kqt).map(e=>e),this.getSignificanceOptions=e=>{const n=this.validStates.get(e);return(null==n?void 0:n.clinicalSignificance)||[]},this.isValidSignificanceOption=(e,n)=>{const a=this.validStates.get(e);return!a||a.clinicalSignificance.includes(n)},this.getDirectionOptions=e=>{const n=this.validStates.get(e);return(null==n?void 0:n.entityDirection)||[]},this.isValidDirectionOption=(e,n)=>{const a=this.validStates.get(e);return!a||a.entityDirection.includes(n)},this.requiresDrug=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresDrug},this.requiresDisease=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresDisease},this.requiresAcmgCodes=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresAcmgCodes},this.requiresAmpLevel=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresAmpLevel},this.allowsFdaApproval=e=>{const n=this.validStates.get(e);return void 0===n||n.allowsFdaApproval},this.getOptionsFromEnums=e=>0===e.length?[]:e.map(n=>({value:n,label:(0,p.E)(n)})),this.entityName=T,this.pluralNames=new Map,this.pluralNames.set(h.ASSERTION,"Assertions"),this.pluralNames.set(h.EVIDENCE,"Evidence")}}},1135:(b,x,t)=>{t.d(x,{C:()=>u});var p=t(9808),g=t(4182),o=t(8776),h=t(3793),m=t(304),r=t(8054),O=t(915);const T={Evidence:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{NA:"Clinical Significance is not applicable."},FUNCTIONAL:{GAIN_OF_FUNCTION:"Sequence variant confers an increase in normal gene function",LOSS_OF_FUNCTION:"Sequence variant confers a diminished or abolished function",UNALTERED_FUNCTION:"Gene product of sequence variant is unchanged",NEOMORPHIC:"Sequence variant creates a novel function",DOMINANT_NEGATIVE:"Sequence variant abrogates function of wildtype allele gene product",UNKNOWN:"Sequence variant that cannot be precisely defined by the other listed categories"},ONCOGENIC:{NA:"Clinical Significance is not applicable."}},Assertion:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{PATHOGENIC:"Very strong evidence the variant is pathogenic",LIKELY_PATHOGENIC:"Strong evidence (>90% certainty) the variant is pathogenic.",BENIGN:"Very strong evidence the variant is benign",LIKELY_BENIGN:"Not expected to have a major effect on disease",UNCERTAIN_SIGNIFICANCE:"Does not fullfill the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"}}},e={name:"clinical-significance-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Clinical Signficance",helpText:"The impact of the variant for predictive, prognostic, diagnostic, or functional evidence types. For predisposing and oncogenic evidence, impact is only applied at the assertion level and N/A should be selected here.",placeholder:"None specified",options:[]},validators:{validation:["cs-option"]},hooks:{onInit:s=>{var C;const E=s.templateOptions,D=null===(C=null==s?void 0:s.options)||void 0===C?void 0:C.formState;if(!D)return;const F=(null==s?void 0:s.form)?s.form.get("evidenceType"):null;!F||(E.options=D.getOptionsFromEnums(D.getSignificanceOptions(F.value)),E.vcSub=F.valueChanges.subscribe(U=>{E.options=D.getOptionsFromEnums(D.getSignificanceOptions(U)),s.formControl.updateValueAndValidity()}))},onDestroy:s=>{s.templateOptions.vcSub.unsubscribe()}},expressionProperties:{"templateOptions.optionText":(s,C,E)=>{if(C.entityName&&s.evidenceType&&s.clinicalSignificance)return T[C.entityName][s.evidenceType][s.clinicalSignificance]}}}},n={name:"cs-option",validation:(s,C,E)=>{var D,F,U;const J=null===(D=C.options)||void 0===D?void 0:D.formState,Z=s.value;if(!Z||!J)return null;const B=null===(U=null===(F=s.parent)||void 0===F?void 0:F.get("evidenceType"))||void 0===U?void 0:U.value;return B?J.isValidSignificanceOption(B,Z)?null:{"cs-option":B}:null}},a={name:"cs-option",message:(s,C)=>{var E;const D=C.options.formState;return`'${(0,O.E)(null===(E=C.formControl)||void 0===E?void 0:E.value)}' is not a valid Clinical Significance for ${(0,O.E)(s)} ${D.pluralNames.get(D.entityName)}.`}};var i=t(5e3);let u=(()=>{class s{}return s.\u0275fac=function(E){return new(E||s)},s.\u0275mod=i.oAB({type:s}),s.\u0275inj=i.cJS({imports:[[p.ez,g.u5,g.UX,r.LV,m.F,h.F,o.X0.forChild({types:[e],validators:[n],validationMessages:[a]})]]}),s})()},5452:(b,x,t)=>{t.d(x,{C:()=>X});var p=t(9808),g=t(8776),o=t(7625),h=t(373),m=t(4850),r=t(8929),O=t(591),T=t(6123),e=t(5e3),n=t(712),a=t(9169),i=t(8054),u=t(4182),s=t(6949),C=t(8144),E=t(3618),D=t(7469),F=t(822),U=t(6042),J=t(2643),Z=t(2683),B=t(8926);function I(y,P){if(1&y&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&y){const f=e.oxw().$implicit,S=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,f.label,S.to.searchString),e.oJD)}}function V(y,P){if(1&y&&(e.TgZ(0,"div"),e._UZ(1,"span",12),e.ALo(2,"highlightTypeahead"),e.qZA()),2&y){const f=e.oxw(2).$implicit,S=e.oxw(3);e.xp6(1),e.Q6J("innerHtml",e.xi3(2,1,f.drug.drugAliases.join(", "),S.to.searchString),e.oJD)}}function l(y,P){1&y&&(e.ynx(0),e.YNc(1,V,3,4,"div",11),e.BQk())}function z(y,P){if(1&y&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,I,2,4,"span",8),e.YNc(3,l,2,0,"ng-container",9),e.qZA(),e.qZA()),2&y){const f=P.$implicit;e.Q6J("nzLabel",f.tooltip)("nzValue",f.drug),e.xp6(3),e.Q6J("ngIf",f.drug.drugAliases.length>0)}}function A(y,P){if(1&y&&(e.ynx(0),e.YNc(1,z,4,3,"nz-option",6),e.BQk()),2&y){const f=P.ngrxLet;e.xp6(1),e.Q6J("ngForOf",f)}}function L(y,P){1&y&&e._uU(0," No drug found in CIViC that matches the string provided. ")}function Q(y,P){if(1&y){const f=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(N){return e.CHM(f),e.oxw().to.onSearch(N)}),e.YNc(2,A,2,1,"ng-container",4),e.qZA(),e.YNc(3,L,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&y){const f=e.MAs(4),S=e.oxw(),N=e.MAs(4);e.xp6(1),e.Q6J("formControl",S.formControl)("formlyAttributes",S.field)("nzPlaceHolder",S.to.placeholder?S.to.placeholder:null)("nzNotFoundContent",f)("nzDropdownRender",S.to.allowCreate?N:null)("nzShowArrow",S.to.showArrow)("nzFilterOption",S.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",S.drugs$)}}function v(y,P){if(1&y&&e._UZ(0,"cvc-drug-tag",13),2&y){const f=e.oxw();e.Q6J("drug",f.formControl.value)}}function M(y,P){if(1&y&&e._UZ(0,"cvc-form-errors-alert",16),2&y){const f=e.oxw(4);e.Q6J("errors",f.errorMessages)}}function c(y,P){if(1&y){const f=e.EpF();e.TgZ(0,"button",17),e.NdJ("click",function(){e.CHM(f);const N=e.oxw(4);return N.addDrug(N.to.searchString)}),e._UZ(1,"i",18),e._uU(2,"No Existing CIViC Drug\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Drug? "),e.qZA()}if(2&y){const f=e.oxw(4);e.Q6J("nzLoading",f.loading),e.xp6(4),e.Oqu(f.to.searchString)}}function d(y,P){if(1&y&&(e.ynx(0),e.YNc(1,M,1,1,"cvc-form-errors-alert",14),e.YNc(2,c,6,2,"button",15),e.BQk()),2&y){const f=e.oxw(3);e.xp6(1),e.Q6J("ngIf",f.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",0==f.errorMessages.length)}}function _(y,P){if(1&y&&(e.ynx(0),e.YNc(1,d,3,2,"ng-container",9),e.BQk()),2&y){const f=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==f.to.searchString&&f.to.searchString.length>=5)}}function R(y,P){if(1&y&&(e.YNc(0,_,2,1,"ng-container",9),e.ALo(1,"ngrxPush")),2&y){const f=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,f.displayAdd$))}}const $={name:"drug-input",component:(()=>{class y extends g.fS{constructor(f,S,N){super(),this.drugTypeaheadQuery=f,this.networkErrorService=S,this.addDrugGQL=N,this.destroy$=new r.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new O.X(!1),this.addDrugMutator=new T.U(S),this.defaultOptions={templateOptions:{placeholder:"Search Drugs",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.drugTypeaheadQuery.watch({name:"zzzzz"}),this.drugs$=this.queryRef.valueChanges.pipe((0,o.R)(this.destroy$),(0,h.j)("data","drugTypeahead"),(0,m.U)(f=>f.map(S=>{let N=S.ncitId?`${S.ncitId}`:"no NCIt ID",H=S.drugAliases.length>0?`Aliases: ${S.drugAliases.join(", ")}`:"";return{value:S.id,tooltip:`${S.name} (${N}) ${H}`,label:`${S.name} (${N})`,drug:S}})))}ngAfterViewInit(){this.to.onSearch=f=>{f.length{let N=0==S.data.drugTypeahead.filter(H=>H.name.toUpperCase()==f.toUpperCase()).length;this.displayAdd$.next(N)}))}}addDrug(f){if(f&&""!=f){let S=this.addDrugMutator.mutate(this.addDrugGQL,{name:f},N=>{var H;null===(H=this.field.formControl)||void 0===H||H.setValue({id:N.addDrug.drug.id,name:N.addDrug.drug.name}),this.to.searchString="",this.to.searchLength=0});S.submitSuccess$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{N&&(this.success=!0)}),S.submitError$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{N&&(this.errorMessages=N,this.success=!1)}),S.isSubmitting$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{this.loading=N})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return y.\u0275fac=function(f){return new(f||y)(e.Y36(n.vRc),e.Y36(a.Y),e.Y36(n.T97))},y.\u0275cmp=e.Xpm({type:y,selectors:[["cvc-drug-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["addDrugTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzDropdownRender","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],[4,"ngIf"],[3,"innerHtml"],[4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"drug"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(f,S){if(1&f&&(e.YNc(0,Q,5,8,"ng-container",0),e.YNc(1,v,1,1,"ng-template",null,1,e.W1O),e.YNc(3,R,2,3,"ng-template",null,2,e.W1O)),2&f){const N=e.MAs(2);e.Q6J("ngIf",!(null!=S.formControl.value&&S.formControl.value.id))("ngIfElse",N)}},directives:[p.O5,i.Vq,u.JJ,u.oH,g.VQ,s.eJ,p.sg,i.Ip,C.NU,C.$1,E.ZU,D.u,F.V,U.ix,J.dQ,Z.w],pipes:[B.A,s.fM],styles:[""]}),y})()};var Y=t(8018),G=t(7008),W=t(1047),j=t(9444);let X=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[[p.ez,u.u5,u.UX,s.WG,g.X0.forChild({types:[$]}),i.LV,C.zf,E.ZJ,U.sL,W.o7,Y.e,G.B,j.s]]}),y})()},4581:(b,x,t)=>{t.d(x,{e:()=>a});var p=t(9808),g=t(4182),o=t(3793),h=t(8776),m=t(712),r=t(444);const T={COMBINATION:"The drugs listed were used as part of a combination therapy approach",SEQUENTIAL:"The drugs listed were used at separate timepoints in the same treatment plan",SUBSTITUTES:"The drugs listed are often considered to be of the same family, or behave similarly in a treatment setting"},e={name:"drug-interaction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug Interaction Type",helpText:"Indicate whether the drugs specified above are substitutes, or are used in sequential or combination treatments.",required:!1,placeholder:"Not specified",options:(0,r.o6)(m.Zyn).map((i,u)=>({value:i,label:u}))},validation:{messages:{required:(i,u)=>"Evidence with more than one drug must specify an interaction type."}},hideExpression:(i,u,s)=>!(!i.drugs||i.drugs.length>1),expressionProperties:{"templateOptions.required":(i,u,s)=>!!i.drugs&&i.drugs.length>1,"templateOptions.optionText":(i,u,s)=>T[i.drugInteractionType]}}};var n=t(5e3);let a=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[p.ez,g.UX,o.F,h.X0.forChild({types:[e]})]]}),i})()},2480:(b,x,t)=>{t.d(x,{r:()=>e});var p=t(9808),g=t(8776),o=t(5452),h=t(8390),m=t(915);const O={name:"drug-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug",helpText:"Please enter a drug name. If you are unable to locate the drug in the dropdown, please check the 'Could not find drug' checkbox below and enter the drug in the field that appears.",required:!1,addText:"Add a Drug"},fieldArray:{type:"drug-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(n,a,i)=>{var u,s;const C=null===(s=null===(u=null==i?void 0:i.parent)||void 0===u?void 0:u.templateOptions)||void 0===s?void 0:s.allowCreate;return void 0===C||C}}},defaultValue:[],validation:{messages:{required:(n,a)=>{const i=(null==a?void 0:a.form)?a.form.get("evidenceType"):null;return i?`${(0,m.E)(i.value)} Evidence requires at least one drug to be specified.`:"Drug is required."}}},hooks:{onInit:n=>{var a;const i=n.templateOptions,u=null===(a=null==n?void 0:n.options)||void 0===a?void 0:a.formState,s=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;!s||(i.vcSub=s.valueChanges.subscribe(C=>{u.requiresDrug(C)?(i.hidden=!1,i.required=!0):(i.hidden=!0,i.required=!1,n.model.length>0&&(n.model.splice(1),i.remove(0)))}))},onDestroy:n=>{n.templateOptions.vcSub.unsubscribe()}}}};var T=t(5e3);let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=T.oAB({type:n}),n.\u0275inj=T.cJS({imports:[[p.ez,g.X0.forChild({types:[O]}),o.C,h.N]]}),n})()},5932:(b,x,t)=>{t.d(x,{A:()=>e});var p=t(9808),g=t(8776),o=t(915);const h={Evidence:{PREDICTIVE:{SUPPORTS:"The experiment or study supports this variant's response to a drug",DOES_NOT_SUPPORT:"The experiment or study does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The experiment or study does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The experiment or study does not support a prognostic association between variant and outcome"},PREDISPOSING:{NA:"Evidence Direction is Not Applicable."},FUNCTIONAL:{SUPPORTS:"The experiment or study supports this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The experiment or study does not support this variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{NA:"Evidence Direction is Not Applicable for Oncogenic Evidence Type."}},Assertion:{PREDICTIVE:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's response to a drug",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"The Assertion and associated Evidence Items support a variant's impact on predisposing outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a predisposing association between variant and outcome"},FUNCTIONAL:{SUPPORTS:"The Assertion and associated Evidence Items support this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant causing alteration or non-alteration of the gene product function"}}},m={name:"evidence-direction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Direction",placeholder:"None specified",options:[]},expressionProperties:{"templateOptions.optionText":(n,a,i)=>{if(a.entityName&&n.evidenceType&&n.evidenceDirection)return h[a.entityName][n.evidenceType][n.evidenceDirection]}},validators:{validation:["ed-option"]},hooks:{onInit:n=>{var a;const i=n.templateOptions,u=null===(a=null==n?void 0:n.options)||void 0===a?void 0:a.formState;if(u){i.label=`${u.entityName} Direction`,i.helpText=`An indicator of whether the ${u.entityName} statement supports or refutes the clinical significance of an event. For predisposing and oncogenic ${u.pluralNames.get(u.entityName)}, directionality is only applied at the assertion level and N/A should be selected here.`;const s=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;if(!s)return;i.options=u.getOptionsFromEnums(u.getDirectionOptions(s.value)),n.formControl.updateValueAndValidity(),i.vcSubscription=s.valueChanges.subscribe(C=>{i.options=u.getOptionsFromEnums(u.getDirectionOptions(s.value)),n.formControl.updateValueAndValidity()})}},onDestroy:n=>{n.templateOptions.vcSubscription.unsubscribe()}}}},r={name:"ed-option",validation:(n,a,i)=>{var u,s,C;const E=null===(u=a.options)||void 0===u?void 0:u.formState,D=n.value;if(!D||!E)return null;const F=null===(C=null===(s=n.parent)||void 0===s?void 0:s.get("evidenceType"))||void 0===C?void 0:C.value;return F?E.isValidDirectionOption(F,D)?null:{"ed-option":F}:null}},O={name:"ed-option",message:(n,a)=>{var i;return`'${(0,o.E)(null===(i=a.formControl)||void 0===i?void 0:i.value)}' is not a valid Clinical Significance for ${(0,o.E)(n)} Evidence.`}};var T=t(5e3);let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=T.oAB({type:n}),n.\u0275inj=T.cJS({imports:[[p.ez,g.X0.forChild({types:[m],validators:[r],validationMessages:[O]})]]}),n})()},2789:(b,x,t)=>{t.d(x,{o:()=>a});var p=t(9808),g=t(4182),o=t(8776),h=t(3793),m=t(712),r=t(444);const O=new Map([[m.Sx0.A,"A - Validated association"],[m.Sx0.B,"B - Clinical evidence"],[m.Sx0.C,"C - Case study"],[m.Sx0.D,"D - Preclinical evidence"],[m.Sx0.E,"E - Inferential association"]]),T=new Map([[m.Sx0.A,"Evidence shows consensus association in human medicine"],[m.Sx0.B,"Evidence supports association using clinical trial or other primary patient data"],[m.Sx0.C,"Evidence supports association using individual case reports from clinical journals"],[m.Sx0.D,"Evidence supports association using in vivo or in vitro models"],[m.Sx0.E,"Evidential association is inferential or indirect"]]),e={name:"evidence-level-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Level",placeholder:"None specified",helpText:"Type of study performed to produce the evidence statement",options:(0,r.o6)(m.Sx0).map(i=>({value:i,label:O.get(i)})),labels:O,descriptions:T},expressionProperties:{"templateOptions.optionText":(i,u,s)=>T.get(i.evidenceLevel)}}};var n=t(5e3);let a=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[p.ez,g.UX,h.F,o.X0.forChild({types:[e]})]]}),i})()},3643:(b,x,t)=>{t.d(x,{q:()=>T});var p=t(9808),g=t(4182),o=t(3793),h=t(8776);const m={DIAGNOSTIC:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",PREDICTIVE:"Evidence pertains to a variant's effect on therapeutic response",PROGNOSTIC:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival",PREDISPOSING:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",ONCOGENIC:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",FUNCTIONAL:"Evidence pertains to a variant that alters biological function from the reference state"},r={name:"evidence-type-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Entity Type",placeholder:"Not specified",options:[]},hooks:{onInit:e=>{var n;const a=e.templateOptions,i=null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.formState;i?(a.label=`${i.entityName} Type`,a.helpText=`Type of clinical outcome associated with the ${i.entityName} statement.`,a.options=i.getOptionsFromEnums(i.getTypeOptions())):console.warn("entity-type-select requires a formState to populate select options.")}},expressionProperties:{"templateOptions.optionText":(e,n,a)=>m[e.evidenceType]}}};var O=t(5e3);let T=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=O.oAB({type:e}),e.\u0275inj=O.cJS({imports:[[p.ez,g.UX,o.F,h.X0.forChild({types:[r]})]]}),e})()},5457:(b,x,t)=>{t.d(x,{$:()=>B});var p=t(9808),g=t(8776),o=t(8929),h=t(7625),m=t(373),r=t(5e3),O=t(712),T=t(8054),e=t(4182),n=t(6949),a=t(7956),i=t(8926);function u(I,V){if(1&I&&(r.TgZ(0,"nz-option",6),r._UZ(1,"span",7),r.ALo(2,"highlightTypeahead"),r._uU(3),r.qZA()),2&I){const l=V.$implicit,z=r.oxw(3);r.hYB("nzLabel","",l.name," (",l.hpoId,")"),r.Q6J("nzValue",l),r.xp6(1),r.Q6J("innerHtml",r.xi3(2,5,l.name,z.to.searchString),r.oJD),r.xp6(2),r.hij(" - (",l.hpoId,") ")}}function s(I,V){if(1&I&&(r.ynx(0),r.YNc(1,u,4,8,"nz-option",5),r.BQk()),2&I){const l=V.ngrxLet;r.xp6(1),r.Q6J("ngForOf",l)}}function C(I,V){1&I&&r._uU(0," No phenotype found in CIViC that matches the string provided. ")}function E(I,V){if(1&I){const l=r.EpF();r.ynx(0),r.TgZ(1,"nz-select",2),r.NdJ("nzOnSearch",function(A){return r.CHM(l),r.oxw().to.onSearch(A)}),r.YNc(2,s,2,1,"ng-container",3),r.qZA(),r.YNc(3,C,1,0,"ng-template",null,4,r.W1O),r.BQk()}if(2&I){const l=r.MAs(4),z=r.oxw();r.xp6(1),r.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzNotFoundContent",l)("nzShowArrow",z.to.showArrow)("nzFilterOption",z.to.filterOption),r.xp6(1),r.Q6J("ngrxLet",z.phenotypes$)}}function D(I,V){if(1&I&&r._UZ(0,"cvc-phenotype-tag",8),2&I){const l=r.oxw();r.Q6J("phenotype",l.formControl.value)}}const U={name:"phenotype-input",component:(()=>{class I extends g.fS{constructor(l){super(),this.phenotypeTypeaheadQuery=l,this.destroy$=new o.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Phenotypes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.phenotypeTypeaheadQuery.watch({name:""}),this.phenotypes$=this.queryRef.valueChanges.pipe((0,h.R)(this.destroy$),(0,m.j)("data","phenotypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=l=>{var z;this.to.fieldValue=l,this.to.fieldLength=l.length,!(l.length{class I{}return I.\u0275fac=function(l){return new(l||I)},I.\u0275mod=r.oAB({type:I}),I.\u0275inj=r.cJS({imports:[[p.ez,e.UX,n.WG,g.X0.forChild({types:[U]}),T.LV,J.y,Z.s]]}),I})()},1830:(b,x,t)=>{t.d(x,{S:()=>u});var p=t(9808),g=t(4182),o=t(8776),h=t(3793),m=t(304),r=t(8054),O=t(5457),T=t(8390),e=t(915);const a={name:"phenotype-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Phenotype",helpText:'Please provide any HPO phenotypes.',required:!1,addText:"Add a Phenotype"},fieldArray:{type:"phenotype-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:(s,C)=>{const E=(null==C?void 0:C.form)?C.form.get("evidenceType"):null;return E?`${(0,e.E)(E.value)} Evidence requires at least one phenotype to be specified.`:"Phenotype is required."}}}}};var i=t(5e3);let u=(()=>{class s{}return s.\u0275fac=function(E){return new(E||s)},s.\u0275mod=i.oAB({type:s}),s.\u0275inj=i.cJS({imports:[[p.ez,g.u5,g.UX,r.LV,m.F,h.F,o.X0.forChild({types:[a]}),O.$,T.N]]}),s})()},5743:(b,x,t)=>{t.d(x,{W:()=>Q});var p=t(9808),g=t(8776),o=t(5e3),h=t(4182),m=t(655),r=t(1159),O=t(3753),T=t(7625),e=t(9439),n=t(4090),a=t(1721),i=t(226),u=t(647),s=t(404);const C=["nz-rate-item",""];function E(v,M){}function D(v,M){}function F(v,M){1&v&&o._UZ(0,"i",4)}const U=function(v){return{$implicit:v}},J=["ulElement"];function Z(v,M){if(1&v){const c=o.EpF();o.TgZ(0,"li",3),o.TgZ(1,"div",4),o.NdJ("itemHover",function(_){const w=o.CHM(c).index;return o.oxw().onItemHover(w,_)})("itemClick",function(_){const w=o.CHM(c).index;return o.oxw().onItemClick(w,_)}),o.qZA(),o.qZA()}if(2&v){const c=M.index,d=o.oxw();o.Q6J("ngClass",d.starStyleArray[c]||"")("nzTooltipTitle",d.nzTooltips[c]),o.xp6(1),o.Q6J("allowHalf",d.nzAllowHalf)("character",d.nzCharacter)("index",c)}}let B=(()=>{class v{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new o.vpe,this.itemClick=new o.vpe}hoverRate(c){this.itemHover.next(c&&this.allowHalf)}clickRate(c){this.itemClick.next(c&&this.allowHalf)}}return v.\u0275fac=function(c){return new(c||v)},v.\u0275cmp=o.Xpm({type:v,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:"allowHalf"},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],attrs:C,decls:6,vars:8,consts:[[1,"ant-rate-star-second",3,"mouseover","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-rate-star-first",3,"mouseover","click"],["defaultCharacter",""],["nz-icon","","nzType","star","nzTheme","fill"]],template:function(c,d){if(1&c&&(o.TgZ(0,"div",0),o.NdJ("mouseover",function(R){return d.hoverRate(!1),R.stopPropagation()})("click",function(){return d.clickRate(!1)}),o.YNc(1,E,0,0,"ng-template",1),o.qZA(),o.TgZ(2,"div",2),o.NdJ("mouseover",function(R){return d.hoverRate(!0),R.stopPropagation()})("click",function(){return d.clickRate(!0)}),o.YNc(3,D,0,0,"ng-template",1),o.qZA(),o.YNc(4,F,1,0,"ng-template",null,3,o.W1O)),2&c){const _=o.MAs(5);o.xp6(1),o.Q6J("ngTemplateOutlet",d.character||_)("ngTemplateOutletContext",o.VKq(4,U,d.index)),o.xp6(2),o.Q6J("ngTemplateOutlet",d.character||_)("ngTemplateOutletContext",o.VKq(6,U,d.index))}},directives:[p.tP,u.Ls],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,a.yF)()],v.prototype,"allowHalf",void 0),v})();const I="rate";let V=(()=>{class v{constructor(c,d,_,R,w,$){this.nzConfigService=c,this.ngZone=d,this.renderer=_,this.cdr=R,this.directionality=w,this.destroy$=$,this._nzModuleName=I,this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new o.vpe,this.nzOnFocus=new o.vpe,this.nzOnHoverChange=new o.vpe,this.nzOnKeyDown=new o.vpe,this.classMap={},this.starArray=[],this.starStyleArray=[],this.dir="ltr",this.hasHalf=!1,this.hoverValue=0,this.isFocused=!1,this._value=0,this.onChange=()=>null,this.onTouched=()=>null}get nzValue(){return this._value}set nzValue(c){this._value!==c&&(this._value=c,this.hasHalf=!Number.isInteger(c),this.hoverValue=Math.ceil(c))}ngOnChanges(c){const{nzAutoFocus:d,nzCount:_,nzValue:R}=c;if(d&&!d.isFirstChange()){const w=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(w,"autofocus","autofocus"):this.renderer.removeAttribute(w,"autofocus")}_&&this.updateStarArray(),R&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent(I).pipe((0,T.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,T.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,O.R)(this.ulElement.nativeElement,"focus").pipe((0,T.R)(this.destroy$)).subscribe(c=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(c))}),(0,O.R)(this.ulElement.nativeElement,"blur").pipe((0,T.R)(this.destroy$)).subscribe(c=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(c))})})}onItemClick(c,d){if(this.nzDisabled)return;this.hoverValue=c+1;const _=d?c+.5:c+1;this.nzValue===_?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=_,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(c,d){this.nzDisabled||this.hoverValue===c+1&&d===this.hasHalf||(this.hoverValue=c+1,this.hasHalf=d,this.nzOnHoverChange.emit(this.hoverValue),this.updateStarStyle())}onRateLeave(){this.hasHalf=!Number.isInteger(this.nzValue),this.hoverValue=Math.ceil(this.nzValue),this.updateStarStyle()}focus(){this.ulElement.nativeElement.focus()}blur(){this.ulElement.nativeElement.blur()}onKeyDown(c){const d=this.nzValue;c.keyCode===r.SV&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),d!==this.nzValue&&(this.onChange(this.nzValue),this.nzOnKeyDown.emit(c),this.updateStarStyle(),this.cdr.markForCheck())}updateStarArray(){this.starArray=Array(this.nzCount).fill(0).map((c,d)=>d),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(c=>{const d="ant-rate-star",_=c+1;return{[`${d}-full`]:_this.hoverValue,[`${d}-focused`]:this.hasHalf&&_===this.hoverValue&&this.isFocused}})}writeValue(c){this.nzValue=c||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(c){this.nzDisabled=c}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}}return v.\u0275fac=function(c){return new(c||v)(o.Y36(e.jY),o.Y36(o.R0b),o.Y36(o.Qsj),o.Y36(o.sBO),o.Y36(i.Is,8),o.Y36(n.kn))},v.\u0275cmp=o.Xpm({type:v,selectors:[["nz-rate"]],viewQuery:function(c,d){if(1&c&&o.Gf(J,7),2&c){let _;o.iGM(_=o.CRH())&&(d.ulElement=_.first)}},inputs:{nzAllowClear:"nzAllowClear",nzAllowHalf:"nzAllowHalf",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzCharacter:"nzCharacter",nzCount:"nzCount",nzTooltips:"nzTooltips"},outputs:{nzOnBlur:"nzOnBlur",nzOnFocus:"nzOnFocus",nzOnHoverChange:"nzOnHoverChange",nzOnKeyDown:"nzOnKeyDown"},exportAs:["nzRate"],features:[o._Bn([n.kn,{provide:h.JU,useExisting:(0,o.Gpc)(()=>v),multi:!0}]),o.TTD],decls:3,vars:7,consts:[[1,"ant-rate",3,"ngClass","tabindex","keydown","mouseleave"],["ulElement",""],["class","ant-rate-star","nz-tooltip","",3,"ngClass","nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",1,"ant-rate-star",3,"ngClass","nzTooltipTitle"],["nz-rate-item","",3,"allowHalf","character","index","itemHover","itemClick"]],template:function(c,d){1&c&&(o.TgZ(0,"ul",0,1),o.NdJ("keydown",function(R){return d.onKeyDown(R),R.preventDefault()})("mouseleave",function(R){return d.onRateLeave(),R.stopPropagation()}),o.YNc(2,Z,2,5,"li",2),o.qZA()),2&c&&(o.ekj("ant-rate-disabled",d.nzDisabled)("ant-rate-rtl","rtl"===d.dir),o.Q6J("ngClass",d.classMap)("tabindex",d.nzDisabled?-1:1),o.xp6(2),o.Q6J("ngForOf",d.starArray))},directives:[B,p.mk,p.sg,s.SY],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,e.oS)(),(0,a.yF)()],v.prototype,"nzAllowClear",void 0),(0,m.gn)([(0,e.oS)(),(0,a.yF)()],v.prototype,"nzAllowHalf",void 0),(0,m.gn)([(0,a.yF)()],v.prototype,"nzDisabled",void 0),(0,m.gn)([(0,a.yF)()],v.prototype,"nzAutoFocus",void 0),(0,m.gn)([(0,a.Rn)()],v.prototype,"nzCount",void 0),v})(),l=(()=>{class v{}return v.\u0275fac=function(c){return new(c||v)},v.\u0275mod=o.oAB({type:v}),v.\u0275inj=o.cJS({imports:[[i.vT,p.ez,u.PV,s.cg]]}),v})();const z={1:"Poor - Claim is not supported well by experimental evidence. Results are not reproducible, or have very small sample size. No follow-up is done to validate novel claims.",2:"Adequate - Evidence is not well supported by experimental data, and little follow-up data is available. Experiments may lack proper controls, have small sample size, or are not statistically convincing.",3:"Average - Evidence is convincing, but not supported by a breadth of experiments. May be smaller scale projects, or novel results without many follow-up experiments. Discrepancies from expected results are explained and not concerning.",4:"Strong - Well supported evidence. Experiments are well controlled, and results are convincing. Any discrepancies from expected results are well-explained and not concerning.",5:"Excellent - Solid, well supported evidence from a lab or journal with respected academic standing. Experiments are well controlled, and results are clean and reproducible across multiple replicates. Evidence confirmed using separate methods."},L={name:"rating-input",component:(()=>{class v extends g.fS{constructor(){super(),this.defaultOptions={}}updateField(c){this.field.formControl.setValue(c);let d=this.field.templateOptions;d&&(d.optionText=z[c])}}return v.\u0275fac=function(c){return new(c||v)},v.\u0275cmp=o.Xpm({type:v,selectors:[["cvc-rating-input-type"]],features:[o.qOj],decls:2,vars:4,consts:[["type","hidden",3,"formControl","formlyAttributes"],[3,"ngModel","formlyAttributes","ngModelChange"]],template:function(c,d){1&c&&(o._UZ(0,"input",0),o.TgZ(1,"nz-rate",1),o.NdJ("ngModelChange",function(R){return d.updateField(R)}),o.qZA()),2&c&&(o.Q6J("formControl",d.formControl)("formlyAttributes",d.field),o.xp6(1),o.Q6J("ngModel",d.formControl.value)("formlyAttributes",d.field))},directives:[h.Fj,h.JJ,h.oH,g.VQ,V,h.On],styles:[""]}),v})(),wrappers:["form-field"]};let Q=(()=>{class v{}return v.\u0275fac=function(c){return new(c||v)},v.\u0275mod=o.oAB({type:v}),v.\u0275inj=o.cJS({imports:[[p.ez,h.UX,h.u5,g.X0.forChild({types:[L]}),l]]}),v})()},7462:(b,x,t)=>{t.d(x,{o:()=>T});var p=t(9808),g=t(8776),o=t(5e3),h=t(1047),m=t(4182);const O={name:"cvc-textarea",component:(()=>{class e extends g.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=o.n5z(e)))(i||e)}}(),e.\u0275cmp=o.Xpm({type:e,selectors:[["cvc-textarea-base-type"]],features:[o.qOj],decls:1,vars:4,consts:[["nz-input","",3,"formControl","formlyAttributes","nzAutosize","placeholder"]],template:function(a,i){1&a&&o._UZ(0,"textarea",0),2&a&&o.Q6J("formControl",i.formControl)("formlyAttributes",i.field)("nzAutosize",i.to.autosize)("placeholder",i.to.placeholder)},directives:[h.Zp,m.Fj,h.rh,m.JJ,m.oH,g.VQ],styles:[""],changeDetection:0}),e})(),wrappers:["form-field"]};let T=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({imports:[[p.ez,m.u5,m.UX,g.X0.forChild({types:[O]}),h.o7]]}),e})()},3594:(b,x,t)=>{t.d(x,{q:()=>n});var p=t(9808),g=t(915),o=t(712);const h={SOMATIC:"Variant is a mutation, found only in tumor cells, having arisen in a specific tissue (non-germ cell), and is not expected to be inherited or passed to offspring.",RARE_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in less than 1% of the population relevant to this evidence item.",COMMON_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in at least 1% of the population relevant to this evidence item.",UNKNOWN:"The variant origin is uncertain based on the available evidence.",NA:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."},m={name:"variant-origin-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant Origin",placeholder:"None specified",helpText:"Origin of variant",options:[{value:o.huM.Somatic,label:(0,g.E)(o.huM.Somatic)},{value:o.huM.RareGermline,label:(0,g.E)(o.huM.RareGermline)},{value:o.huM.CommonGermline,label:(0,g.E)(o.huM.CommonGermline)},{value:o.huM.Unknown,label:(0,g.E)(o.huM.Unknown)},{value:o.huM.Na,label:(0,g.E)(o.huM.Na)}]},expressionProperties:{"templateOptions.optionText":(a,i,u)=>h[a.variantOrigin]}}};var r=t(4182),O=t(8776),T=t(3793),e=t(5e3);let n=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[p.ez,r.UX,T.F,O.X0.forChild({types:[m]})]]}),a})()},6738:(b,x,t)=>{function p(e){let n={value:void 0,unset:void 0};return e&&e.trim().length>0?n.value=e.trim():n.unset=!0,n}function g(e){let n={value:void 0,unset:void 0};return void 0!==e?n.value=e:n.unset=!0,n}t.d(x,{aP:()=>T,li:()=>o,Zg:()=>h,_$:()=>m,uP:()=>g,dh:()=>r,xt:()=>p});var o=(()=>{return(e=o||(o={}))[e.NotApplicable=0]="NotApplicable",e[e.NoneFound=1]="NoneFound",e[e.Found=2]="Found",o;var e})();function h(e,n){let a,i,u;return n==o.Found?(a=void 0,i=void 0,u=e):n==o.NoneFound?(i=!0,a=void 0,u=void 0):(a=!0,i=void 0,u=void 0),{ids:u?u.map(s=>+s):void 0,noneFound:i,notApplicable:a}}function m(e){return e?{chromosome:O(e.chromosome),representativeTranscript:O(e.representativeTranscript),start:e.start?+e.start:void 0,stop:e.stop?+e.stop:void 0}:{chromosome:void 0,representativeTranscript:void 0,start:void 0,stop:void 0}}function r(e){let n={value:void 0,unset:void 0};return e?n.value=e:n.unset=!0,n}function O(e){let n;return n=e&&e.length>0?e:void 0,n}const T=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7695:(b,x,t)=>{t.d(x,{C:()=>V});var p=t(9808),g=t(6949),o=t(8776),h=t(7484),m=t(5482),r=t(1894),O=t(5109),T=t(6789),e=t(5e3),n=t(19),a=t(647),i=t(404);function u(l,z){1&l&&e._UZ(0,"div",9),2&l&&e.Q6J("innerHtml",z.ngIf,e.oJD)}function s(l,z){1&l&&(e.TgZ(0,"div",10),e._uU(1,"Help not available for this field."),e.qZA())}function C(l,z){if(1&l&&(e.TgZ(0,"nz-collapse-panel",6),e.YNc(1,u,1,1,"div",7),e.YNc(2,s,2,0,"ng-template",null,8,e.W1O),e.qZA()),2&l){const A=z.ngIf,L=e.MAs(3),Q=e.oxw().$implicit,v=e.MAs(3);e.Q6J("nzHeader",A)("nzActive",Q.templateOptions.hasFocus)("nzExtra",v),e.xp6(1),e.Q6J("ngIf",null==Q.templateOptions?null:Q.templateOptions.helpText)("ngIfElse",L)}}function E(l,z){if(1&l&&e._UZ(0,"formly-validation-message",14),2&l){const A=e.oxw(4).$implicit;e.Q6J("field",A)}}function D(l,z){if(1&l&&(e.ynx(0),e._UZ(1,"i",12),e.YNc(2,E,1,1,"ng-template",null,13,e.W1O),e.BQk()),2&l){const A=e.MAs(3);e.xp6(1),e.Q6J("nzTooltipTitle",A)}}function F(l,z){if(1&l&&(e.ynx(0),e.YNc(1,D,4,1,"ng-container",11),e.BQk()),2&l){const A=z.ngIf;e.xp6(1),e.Q6J("ngIf","INVALID"===A)}}function U(l,z){if(1&l&&(e.YNc(0,F,2,1,"ng-container",11),e.ALo(1,"ngrxPush")),2&l){const A=e.oxw().$implicit;e.Q6J("ngIf",e.lcZ(1,1,A.formControl.statusChanges))}}function J(l,z){if(1&l&&(e.ynx(0),e.YNc(1,C,4,5,"nz-collapse-panel",4),e.YNc(2,U,2,3,"ng-template",null,5,e.W1O),e.BQk()),2&l){const A=z.$implicit;e.xp6(1),e.Q6J("ngIf",null==A.templateOptions?null:A.templateOptions.label)}}let Z=(()=>{class l{constructor(){}ngOnInit(){}}return l.\u0275fac=function(A){return new(A||l)},l.\u0275cmp=e.Xpm({type:l,selectors:[["cvc-form-info-card"]],inputs:{fieldGroup:"fieldGroup",affixTo:"affixTo"},decls:4,vars:4,consts:[[3,"nzOffsetTop","nzTarget"],["nzTitle","Form Assistant","nzSize","default",1,"form-helper-card"],[3,"nzBordered"],[4,"ngFor","ngForOf"],[3,"nzHeader","nzActive","nzExtra",4,"ngIf"],["fieldStatus",""],[3,"nzHeader","nzActive","nzExtra"],["class","help-text",3,"innerHtml",4,"ngIf","ngIfElse"],["noHelpText",""],[1,"help-text",3,"innerHtml"],[1,"help-text"],[4,"ngIf"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","#f5222d","nz-tooltip","","nzTooltipColor","red",3,"nzTooltipTitle"],["errorTooltip",""],[3,"field"]],template:function(A,L){1&A&&(e.TgZ(0,"nz-affix",0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-collapse",2),e.YNc(3,J,4,1,"ng-container",3),e.qZA(),e.qZA(),e.qZA()),2&A&&(e.Q6J("nzOffsetTop",0)("nzTarget",L.affixTo),e.xp6(2),e.Q6J("nzBordered",!1),e.xp6(1),e.Q6J("ngForOf",L.fieldGroup))},directives:[n.$,h.bd,m.yH,p.sg,p.O5,m.Zv,a.Ls,i.SY,o.u_],pipes:[g.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}.help-text[_ngcontent-%COMP%]{padding:6px 8px;border:1px solid #EFEFEF;background:white;border-radius:6px}"]}),l})();const I={name:"form-info",component:(()=>{class l extends o.n2{}return l.\u0275fac=function(){let z;return function(L){return(z||(z=e.n5z(l)))(L||l)}}(),l.\u0275cmp=e.Xpm({type:l,selectors:[["cvc-form-info-wrapper"]],features:[e.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(A,L){if(1&A&&(e.TgZ(0,"nz-row",0),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",2),e.GkF(3,null,3),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",null,4),e._UZ(8,"cvc-form-info-card",5),e.qZA(),e.qZA(),e.qZA()),2&A){const Q=e.MAs(7);e.xp6(1),e.Q6J("nzSpan",16),e.xp6(1),e.Q6J("nzTitle",L.to.label),e.xp6(3),e.Q6J("nzSpan",8),e.xp6(3),e.Q6J("fieldGroup",L.field.fieldGroup)("affixTo",Q)}},directives:[r.SK,r.t3,h.bd,Z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),l})()};let V=(()=>{class l{}return l.\u0275fac=function(A){return new(A||l)},l.\u0275mod=e.oAB({type:l}),l.\u0275inj=e.cJS({imports:[[p.ez,g.WG,o.X0.forChild({wrappers:[I]}),r.Jb,h.vh,m.cD,T._,O.s]]}),l})()}}]); \ No newline at end of file diff --git a/server/public/3730.ac4e30b97f660758.js b/server/public/3730.ac4e30b97f660758.js deleted file mode 100644 index 858bf45d5..000000000 --- a/server/public/3730.ac4e30b97f660758.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3730],{8616:(b,x,t)=>{t.d(x,{u:()=>e});var u=t(5e3),h=t(685),o=t(1912),y=t(3618),m=t(647);function a(n,r){1&n&&(u.TgZ(0,"span"),u._uU(1," You must be logged in to view this page. "),u.qZA())}function O(n,r){1&n&&u._UZ(0,"cvc-login-button")}function c(n,r){1&n&&(u.TgZ(0,"nz-typography",4),u._UZ(1,"i",5),u.qZA())}let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=u.Xpm({type:n,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(i,g){if(1&i&&(u.TgZ(0,"nz-empty",0),u.YNc(1,a,2,0,"ng-template",null,1,u.W1O),u.YNc(3,O,1,0,"ng-template",null,2,u.W1O),u.qZA(),u.YNc(5,c,2,0,"ng-template",null,3,u.W1O)),2&i){const p=u.MAs(2),C=u.MAs(4),E=u.MAs(6);u.Q6J("nzNotFoundImage",E)("nzNotFoundContent",p)("nzNotFoundFooter",C)}},directives:[h.p9,o.s,y.ZU,m.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),n})()},9386:(b,x,t)=>{t.d(x,{a:()=>O});var u=t(9808),h=t(1844),o=t(685),y=t(647),m=t(3618),a=t(5e3);let O=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=a.oAB({type:c}),c.\u0275inj=a.cJS({imports:[[u.ez,h.B,o.Xo,y.PV,m.ZJ]]}),c})()},7905:(b,x,t)=>{t.d(x,{yQ:()=>y,nT:()=>a});var u=t(915),h=t(712),o=t(444),y=(()=>{return(O=y||(y={})).EVIDENCE="Evidence",O.ASSERTION="Assertion",y;var O})();class a{constructor(c){this.validStates=new Map,this.getTypeOptions=()=>this.entityName==y.ASSERTION?(0,o.o6)(h.uBv).map(e=>e):(0,o.o6)(h.kqt).map(e=>e),this.getSignificanceOptions=e=>{const n=this.validStates.get(e);return(null==n?void 0:n.clinicalSignificance)||[]},this.isValidSignificanceOption=(e,n)=>{const r=this.validStates.get(e);return!r||r.clinicalSignificance.includes(n)},this.getDirectionOptions=e=>{const n=this.validStates.get(e);return(null==n?void 0:n.entityDirection)||[]},this.isValidDirectionOption=(e,n)=>{const r=this.validStates.get(e);return!r||r.entityDirection.includes(n)},this.requiresDrug=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresDrug},this.requiresDisease=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresDisease},this.requiresAcmgCodes=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresAcmgCodes},this.requiresAmpLevel=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresAmpLevel},this.allowsFdaApproval=e=>{const n=this.validStates.get(e);return void 0===n||n.allowsFdaApproval},this.getOptionsFromEnums=e=>0===e.length?[]:e.map(n=>({value:n,label:(0,u.E)(n)})),this.entityName=c,this.pluralNames=new Map,this.pluralNames.set(y.ASSERTION,"Assertions"),this.pluralNames.set(y.EVIDENCE,"Evidence")}}},1135:(b,x,t)=>{t.d(x,{C:()=>g});var u=t(9808),h=t(4182),o=t(8776),y=t(3793),m=t(304),a=t(8054),O=t(915);const c={Evidence:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{NA:"Clinical Significance is not applicable."},FUNCTIONAL:{GAIN_OF_FUNCTION:"Sequence variant confers an increase in normal gene function",LOSS_OF_FUNCTION:"Sequence variant confers a diminished or abolished function",UNALTERED_FUNCTION:"Gene product of sequence variant is unchanged",NEOMORPHIC:"Sequence variant creates a novel function",DOMINANT_NEGATIVE:"Sequence variant abrogates function of wildtype allele gene product",UNKNOWN:"Sequence variant that cannot be precisely defined by the other listed categories"},ONCOGENIC:{NA:"Clinical Significance is not applicable."}},Assertion:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{PATHOGENIC:"Very strong evidence the variant is pathogenic",LIKELY_PATHOGENIC:"Strong evidence (>90% certainty) the variant is pathogenic.",BENIGN:"Very strong evidence the variant is benign",LIKELY_BENIGN:"Not expected to have a major effect on disease",UNCERTAIN_SIGNIFICANCE:"Does not fullfill the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"}}},e={name:"clinical-significance-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Clinical Signficance",helpText:"The impact of the variant for predictive, prognostic, diagnostic, or functional evidence types. For predisposing and oncogenic evidence, impact is only applied at the assertion level and N/A should be selected here.",placeholder:"None specified",options:[]},validators:{validation:["cs-option"]},hooks:{onInit:p=>{var C;const E=p.templateOptions,D=null===(C=null==p?void 0:p.options)||void 0===C?void 0:C.formState;if(!D)return;const F=(null==p?void 0:p.form)?p.form.get("evidenceType"):null;!F||(E.options=D.getOptionsFromEnums(D.getSignificanceOptions(F.value)),E.vcSub=F.valueChanges.subscribe(U=>{E.options=D.getOptionsFromEnums(D.getSignificanceOptions(U)),p.formControl.updateValueAndValidity()}))},onDestroy:p=>{p.templateOptions.vcSub.unsubscribe()}},expressionProperties:{"templateOptions.optionText":(p,C,E)=>{if(C.entityName&&p.evidenceType&&p.clinicalSignificance)return c[C.entityName][p.evidenceType][p.clinicalSignificance]}}}},n={name:"cs-option",validation:(p,C,E)=>{var D,F,U;const J=null===(D=C.options)||void 0===D?void 0:D.formState,Z=p.value;if(!Z||!J)return null;const B=null===(U=null===(F=p.parent)||void 0===F?void 0:F.get("evidenceType"))||void 0===U?void 0:U.value;return B?J.isValidSignificanceOption(B,Z)?null:{"cs-option":B}:null}},r={name:"cs-option",message:(p,C)=>{var E;const D=C.options.formState;return`'${(0,O.E)(null===(E=C.formControl)||void 0===E?void 0:E.value)}' is not a valid Clinical Significance for ${(0,O.E)(p)} ${D.pluralNames.get(D.entityName)}.`}};var i=t(5e3);let g=(()=>{class p{}return p.\u0275fac=function(E){return new(E||p)},p.\u0275mod=i.oAB({type:p}),p.\u0275inj=i.cJS({imports:[[u.ez,h.u5,h.UX,a.LV,m.F,y.F,o.X0.forChild({types:[e],validators:[n],validationMessages:[r]})]]}),p})()},5452:(b,x,t)=>{t.d(x,{C:()=>X});var u=t(9808),h=t(8776),o=t(7625),y=t(373),m=t(4850),a=t(8929),O=t(591),c=t(6123),e=t(5e3),n=t(712),r=t(9169),i=t(8054),g=t(4182),p=t(6949),C=t(8144),E=t(3618),D=t(7469),F=t(822),U=t(6042),J=t(2643),Z=t(2683),B=t(8926);function I(T,P){if(1&T&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&T){const f=e.oxw().$implicit,S=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,f.label,S.to.searchString),e.oJD)}}function V(T,P){if(1&T&&(e.TgZ(0,"div"),e._UZ(1,"span",12),e.ALo(2,"highlightTypeahead"),e.qZA()),2&T){const f=e.oxw(2).$implicit,S=e.oxw(3);e.xp6(1),e.Q6J("innerHtml",e.xi3(2,1,f.drug.drugAliases.join(", "),S.to.searchString),e.oJD)}}function s(T,P){1&T&&(e.ynx(0),e.YNc(1,V,3,4,"div",11),e.BQk())}function z(T,P){if(1&T&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,I,2,4,"span",8),e.YNc(3,s,2,0,"ng-container",9),e.qZA(),e.qZA()),2&T){const f=P.$implicit;e.Q6J("nzLabel",f.tooltip)("nzValue",f.drug),e.xp6(3),e.Q6J("ngIf",f.drug.drugAliases.length>0)}}function A(T,P){if(1&T&&(e.ynx(0),e.YNc(1,z,4,3,"nz-option",6),e.BQk()),2&T){const f=P.ngrxLet;e.xp6(1),e.Q6J("ngForOf",f)}}function L(T,P){1&T&&e._uU(0," No drug found in CIViC that matches the string provided. ")}function Q(T,P){if(1&T){const f=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(N){return e.CHM(f),e.oxw().to.onSearch(N)}),e.YNc(2,A,2,1,"ng-container",4),e.qZA(),e.YNc(3,L,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&T){const f=e.MAs(4),S=e.oxw(),N=e.MAs(4);e.xp6(1),e.Q6J("formControl",S.formControl)("formlyAttributes",S.field)("nzPlaceHolder",S.to.placeholder?S.to.placeholder:null)("nzNotFoundContent",f)("nzDropdownRender",S.to.allowCreate?N:null)("nzShowArrow",S.to.showArrow)("nzFilterOption",S.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",S.drugs$)}}function v(T,P){if(1&T&&e._UZ(0,"cvc-drug-tag",13),2&T){const f=e.oxw();e.Q6J("drug",f.formControl.value)}}function M(T,P){if(1&T&&e._UZ(0,"cvc-form-errors-alert",16),2&T){const f=e.oxw(4);e.Q6J("errors",f.errorMessages)}}function l(T,P){if(1&T){const f=e.EpF();e.TgZ(0,"button",17),e.NdJ("click",function(){e.CHM(f);const N=e.oxw(4);return N.addDrug(N.to.searchString)}),e._UZ(1,"i",18),e._uU(2,"No Existing CIViC Drug\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Drug? "),e.qZA()}if(2&T){const f=e.oxw(4);e.Q6J("nzLoading",f.loading),e.xp6(4),e.Oqu(f.to.searchString)}}function d(T,P){if(1&T&&(e.ynx(0),e.YNc(1,M,1,1,"cvc-form-errors-alert",14),e.YNc(2,l,6,2,"button",15),e.BQk()),2&T){const f=e.oxw(3);e.xp6(1),e.Q6J("ngIf",f.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",0==f.errorMessages.length)}}function _(T,P){if(1&T&&(e.ynx(0),e.YNc(1,d,3,2,"ng-container",9),e.BQk()),2&T){const f=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==f.to.searchString&&f.to.searchString.length>=5)}}function R(T,P){if(1&T&&(e.YNc(0,_,2,1,"ng-container",9),e.ALo(1,"ngrxPush")),2&T){const f=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,f.displayAdd$))}}const $={name:"drug-input",component:(()=>{class T extends h.fS{constructor(f,S,N){super(),this.drugTypeaheadQuery=f,this.networkErrorService=S,this.addDrugGQL=N,this.destroy$=new a.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new O.X(!1),this.addDrugMutator=new c.U(S),this.defaultOptions={templateOptions:{placeholder:"Search Drugs",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.drugTypeaheadQuery.watch({name:"zzzzz"}),this.drugs$=this.queryRef.valueChanges.pipe((0,o.R)(this.destroy$),(0,y.j)("data","drugTypeahead"),(0,m.U)(f=>f.map(S=>{let N=S.ncitId?`${S.ncitId}`:"no NCIt ID",H=S.drugAliases.length>0?`Aliases: ${S.drugAliases.join(", ")}`:"";return{value:S.id,tooltip:`${S.name} (${N}) ${H}`,label:`${S.name} (${N})`,drug:S}})))}ngAfterViewInit(){this.to.onSearch=f=>{f.length{let N=0==S.data.drugTypeahead.filter(H=>H.name.toUpperCase()==f.toUpperCase()).length;this.displayAdd$.next(N)}))}}addDrug(f){if(f&&""!=f){let S=this.addDrugMutator.mutate(this.addDrugGQL,{name:f},N=>{var H;null===(H=this.field.formControl)||void 0===H||H.setValue({id:N.addDrug.drug.id,name:N.addDrug.drug.name}),this.to.searchString="",this.to.searchLength=0});S.submitSuccess$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{N&&(this.success=!0)}),S.submitError$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{N&&(this.errorMessages=N,this.success=!1)}),S.isSubmitting$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{this.loading=N})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return T.\u0275fac=function(f){return new(f||T)(e.Y36(n.vRc),e.Y36(r.Y),e.Y36(n.T97))},T.\u0275cmp=e.Xpm({type:T,selectors:[["cvc-drug-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["addDrugTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzDropdownRender","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],[4,"ngIf"],[3,"innerHtml"],[4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"drug"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(f,S){if(1&f&&(e.YNc(0,Q,5,8,"ng-container",0),e.YNc(1,v,1,1,"ng-template",null,1,e.W1O),e.YNc(3,R,2,3,"ng-template",null,2,e.W1O)),2&f){const N=e.MAs(2);e.Q6J("ngIf",!(null!=S.formControl.value&&S.formControl.value.id))("ngIfElse",N)}},directives:[u.O5,i.Vq,g.JJ,g.oH,h.VQ,p.eJ,u.sg,i.Ip,C.NU,C.$1,E.ZU,D.u,F.V,U.ix,J.dQ,Z.w],pipes:[B.A,p.fM],styles:[""]}),T})()};var Y=t(8018),G=t(7008),W=t(1047),j=t(9444);let X=(()=>{class T{}return T.\u0275fac=function(f){return new(f||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({imports:[[u.ez,g.u5,g.UX,p.WG,h.X0.forChild({types:[$]}),i.LV,C.zf,E.ZJ,U.sL,W.o7,Y.e,G.B,j.s]]}),T})()},4581:(b,x,t)=>{t.d(x,{e:()=>r});var u=t(9808),h=t(4182),o=t(3793),y=t(8776),m=t(712),a=t(444);const c={COMBINATION:"The drugs listed were used as part of a combination therapy approach",SEQUENTIAL:"The drugs listed were used at separate timepoints in the same treatment plan",SUBSTITUTES:"The drugs listed are often considered to be of the same family, or behave similarly in a treatment setting"},e={name:"drug-interaction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug Interaction Type",helpText:"Indicate whether the drugs specified above are substitutes, or are used in sequential or combination treatments.",required:!1,placeholder:"Not specified",options:(0,a.o6)(m.Zyn).map((i,g)=>({value:i,label:g}))},validation:{messages:{required:(i,g)=>"Evidence with more than one drug must specify an interaction type."}},hideExpression:(i,g,p)=>!(!i.drugs||i.drugs.length>1),expressionProperties:{"templateOptions.required":(i,g,p)=>!!i.drugs&&i.drugs.length>1,"templateOptions.optionText":(i,g,p)=>c[i.drugInteractionType]}}};var n=t(5e3);let r=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[u.ez,h.UX,o.F,y.X0.forChild({types:[e]})]]}),i})()},2480:(b,x,t)=>{t.d(x,{r:()=>e});var u=t(9808),h=t(8776),o=t(5452),y=t(8390),m=t(915);const O={name:"drug-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug",helpText:"Please enter a drug name. If you are unable to locate the drug in the dropdown, please check the 'Could not find drug' checkbox below and enter the drug in the field that appears.",required:!1,addText:"Add a Drug"},fieldArray:{type:"drug-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(n,r,i)=>{var g,p;const C=null===(p=null===(g=null==i?void 0:i.parent)||void 0===g?void 0:g.templateOptions)||void 0===p?void 0:p.allowCreate;return void 0===C||C}}},defaultValue:[],validation:{messages:{required:(n,r)=>{const i=(null==r?void 0:r.form)?r.form.get("evidenceType"):null;return i?`${(0,m.E)(i.value)} Evidence requires at least one drug to be specified.`:"Drug is required."}}},hooks:{onInit:n=>{var r;const i=n.templateOptions,g=null===(r=null==n?void 0:n.options)||void 0===r?void 0:r.formState,p=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;!p||(i.vcSub=p.valueChanges.subscribe(C=>{g.requiresDrug(C)?(i.hidden=!1,i.required=!0):(i.hidden=!0,i.required=!1,n.model.length>0&&(n.model.splice(1),i.remove(0)))}))},onDestroy:n=>{n.templateOptions.vcSub.unsubscribe()}}}};var c=t(5e3);let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=c.oAB({type:n}),n.\u0275inj=c.cJS({imports:[[u.ez,h.X0.forChild({types:[O]}),o.C,y.N]]}),n})()},5932:(b,x,t)=>{t.d(x,{A:()=>e});var u=t(9808),h=t(8776),o=t(915);const y={Evidence:{PREDICTIVE:{SUPPORTS:"The experiment or study supports this variant's response to a drug",DOES_NOT_SUPPORT:"The experiment or study does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The experiment or study does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The experiment or study does not support a prognostic association between variant and outcome"},PREDISPOSING:{NA:"Evidence Direction is Not Applicable."},FUNCTIONAL:{SUPPORTS:"The experiment or study supports this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The experiment or study does not support this variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{NA:"Evidence Direction is Not Applicable for Oncogenic Evidence Type."}},Assertion:{PREDICTIVE:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's response to a drug",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"The Assertion and associated Evidence Items support a variant's impact on predisposing outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a predisposing association between variant and outcome"},FUNCTIONAL:{SUPPORTS:"The Assertion and associated Evidence Items support this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant causing alteration or non-alteration of the gene product function"}}},m={name:"evidence-direction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Direction",placeholder:"None specified",options:[]},expressionProperties:{"templateOptions.optionText":(n,r,i)=>{if(r.entityName&&n.evidenceType&&n.evidenceDirection)return y[r.entityName][n.evidenceType][n.evidenceDirection]}},validators:{validation:["ed-option"]},hooks:{onInit:n=>{var r;const i=n.templateOptions,g=null===(r=null==n?void 0:n.options)||void 0===r?void 0:r.formState;if(g){i.label=`${g.entityName} Direction`,i.helpText=`An indicator of whether the ${g.entityName} statement supports or refutes the clinical significance of an event. For predisposing and oncogenic ${g.pluralNames.get(g.entityName)}, directionality is only applied at the assertion level and N/A should be selected here.`;const p=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;if(!p)return;i.options=g.getOptionsFromEnums(g.getDirectionOptions(p.value)),n.formControl.updateValueAndValidity(),i.vcSubscription=p.valueChanges.subscribe(C=>{i.options=g.getOptionsFromEnums(g.getDirectionOptions(p.value)),n.formControl.updateValueAndValidity()})}},onDestroy:n=>{n.templateOptions.vcSubscription.unsubscribe()}}}},a={name:"ed-option",validation:(n,r,i)=>{var g,p,C;const E=null===(g=r.options)||void 0===g?void 0:g.formState,D=n.value;if(!D||!E)return null;const F=null===(C=null===(p=n.parent)||void 0===p?void 0:p.get("evidenceType"))||void 0===C?void 0:C.value;return F?E.isValidDirectionOption(F,D)?null:{"ed-option":F}:null}},O={name:"ed-option",message:(n,r)=>{var i;return`'${(0,o.E)(null===(i=r.formControl)||void 0===i?void 0:i.value)}' is not a valid Clinical Significance for ${(0,o.E)(n)} Evidence.`}};var c=t(5e3);let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=c.oAB({type:n}),n.\u0275inj=c.cJS({imports:[[u.ez,h.X0.forChild({types:[m],validators:[a],validationMessages:[O]})]]}),n})()},2789:(b,x,t)=>{t.d(x,{o:()=>r});var u=t(9808),h=t(4182),o=t(8776),y=t(3793),m=t(712),a=t(444);const O=new Map([[m.Sx0.A,"A - Validated association"],[m.Sx0.B,"B - Clinical evidence"],[m.Sx0.C,"C - Case study"],[m.Sx0.D,"D - Preclinical evidence"],[m.Sx0.E,"E - Inferential association"]]),c=new Map([[m.Sx0.A,"Evidence shows consensus association in human medicine"],[m.Sx0.B,"Evidence supports association using clinical trial or other primary patient data"],[m.Sx0.C,"Evidence supports association using individual case reports from clinical journals"],[m.Sx0.D,"Evidence supports association using in vivo or in vitro models"],[m.Sx0.E,"Evidential association is inferential or indirect"]]),e={name:"evidence-level-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Level",placeholder:"None specified",helpText:"Type of study performed to produce the evidence statement",options:(0,a.o6)(m.Sx0).map(i=>({value:i,label:O.get(i)})),labels:O,descriptions:c},expressionProperties:{"templateOptions.optionText":(i,g,p)=>c.get(i.evidenceLevel)}}};var n=t(5e3);let r=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[u.ez,h.UX,y.F,o.X0.forChild({types:[e]})]]}),i})()},3643:(b,x,t)=>{t.d(x,{q:()=>c});var u=t(9808),h=t(4182),o=t(3793),y=t(8776);const m={DIAGNOSTIC:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",PREDICTIVE:"Evidence pertains to a variant's effect on therapeutic response",PROGNOSTIC:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival",PREDISPOSING:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",ONCOGENIC:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",FUNCTIONAL:"Evidence pertains to a variant that alters biological function from the reference state"},a={name:"evidence-type-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Entity Type",placeholder:"Not specified",options:[]},hooks:{onInit:e=>{var n;const r=e.templateOptions,i=null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.formState;i?(r.label=`${i.entityName} Type`,r.helpText=`Type of clinical outcome associated with the ${i.entityName} statement.`,r.options=i.getOptionsFromEnums(i.getTypeOptions())):console.warn("entity-type-select requires a formState to populate select options.")}},expressionProperties:{"templateOptions.optionText":(e,n,r)=>m[e.evidenceType]}}};var O=t(5e3);let c=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=O.oAB({type:e}),e.\u0275inj=O.cJS({imports:[[u.ez,h.UX,o.F,y.X0.forChild({types:[a]})]]}),e})()},5457:(b,x,t)=>{t.d(x,{$:()=>B});var u=t(9808),h=t(8776),o=t(8929),y=t(7625),m=t(373),a=t(5e3),O=t(712),c=t(8054),e=t(4182),n=t(6949),r=t(7956),i=t(8926);function g(I,V){if(1&I&&(a.TgZ(0,"nz-option",6),a._UZ(1,"span",7),a.ALo(2,"highlightTypeahead"),a._uU(3),a.qZA()),2&I){const s=V.$implicit,z=a.oxw(3);a.hYB("nzLabel","",s.name," (",s.hpoId,")"),a.Q6J("nzValue",s),a.xp6(1),a.Q6J("innerHtml",a.xi3(2,5,s.name,z.to.searchString),a.oJD),a.xp6(2),a.hij(" - (",s.hpoId,") ")}}function p(I,V){if(1&I&&(a.ynx(0),a.YNc(1,g,4,8,"nz-option",5),a.BQk()),2&I){const s=V.ngrxLet;a.xp6(1),a.Q6J("ngForOf",s)}}function C(I,V){1&I&&a._uU(0," No phenotype found in CIViC that matches the string provided. ")}function E(I,V){if(1&I){const s=a.EpF();a.ynx(0),a.TgZ(1,"nz-select",2),a.NdJ("nzOnSearch",function(A){return a.CHM(s),a.oxw().to.onSearch(A)}),a.YNc(2,p,2,1,"ng-container",3),a.qZA(),a.YNc(3,C,1,0,"ng-template",null,4,a.W1O),a.BQk()}if(2&I){const s=a.MAs(4),z=a.oxw();a.xp6(1),a.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzNotFoundContent",s)("nzShowArrow",z.to.showArrow)("nzFilterOption",z.to.filterOption),a.xp6(1),a.Q6J("ngrxLet",z.phenotypes$)}}function D(I,V){if(1&I&&a._UZ(0,"cvc-phenotype-tag",8),2&I){const s=a.oxw();a.Q6J("phenotype",s.formControl.value)}}const U={name:"phenotype-input",component:(()=>{class I extends h.fS{constructor(s){super(),this.phenotypeTypeaheadQuery=s,this.destroy$=new o.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Phenotypes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.phenotypeTypeaheadQuery.watch({name:""}),this.phenotypes$=this.queryRef.valueChanges.pipe((0,y.R)(this.destroy$),(0,m.j)("data","phenotypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=s=>{var z;this.to.fieldValue=s,this.to.fieldLength=s.length,!(s.length{class I{}return I.\u0275fac=function(s){return new(s||I)},I.\u0275mod=a.oAB({type:I}),I.\u0275inj=a.cJS({imports:[[u.ez,e.UX,n.WG,h.X0.forChild({types:[U]}),c.LV,J.y,Z.s]]}),I})()},1830:(b,x,t)=>{t.d(x,{S:()=>g});var u=t(9808),h=t(4182),o=t(8776),y=t(3793),m=t(304),a=t(8054),O=t(5457),c=t(8390),e=t(915);const r={name:"phenotype-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Phenotype",helpText:'Please provide any HPO phenotypes.',required:!1,addText:"Add a Phenotype"},fieldArray:{type:"phenotype-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:(p,C)=>{const E=(null==C?void 0:C.form)?C.form.get("evidenceType"):null;return E?`${(0,e.E)(E.value)} Evidence requires at least one phenotype to be specified.`:"Phenotype is required."}}}}};var i=t(5e3);let g=(()=>{class p{}return p.\u0275fac=function(E){return new(E||p)},p.\u0275mod=i.oAB({type:p}),p.\u0275inj=i.cJS({imports:[[u.ez,h.u5,h.UX,a.LV,m.F,y.F,o.X0.forChild({types:[r]}),O.$,c.N]]}),p})()},5743:(b,x,t)=>{t.d(x,{W:()=>Q});var u=t(9808),h=t(8776),o=t(5e3),y=t(4182),m=t(655),a=t(1159),O=t(3753),c=t(7625),e=t(9439),n=t(4090),r=t(1721),i=t(226),g=t(647),p=t(404);const C=["nz-rate-item",""];function E(v,M){}function D(v,M){}function F(v,M){1&v&&o._UZ(0,"i",4)}const U=function(v){return{$implicit:v}},J=["ulElement"];function Z(v,M){if(1&v){const l=o.EpF();o.TgZ(0,"li",3),o.TgZ(1,"div",4),o.NdJ("itemHover",function(_){const w=o.CHM(l).index;return o.oxw().onItemHover(w,_)})("itemClick",function(_){const w=o.CHM(l).index;return o.oxw().onItemClick(w,_)}),o.qZA(),o.qZA()}if(2&v){const l=M.index,d=o.oxw();o.Q6J("ngClass",d.starStyleArray[l]||"")("nzTooltipTitle",d.nzTooltips[l]),o.xp6(1),o.Q6J("allowHalf",d.nzAllowHalf)("character",d.nzCharacter)("index",l)}}let B=(()=>{class v{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new o.vpe,this.itemClick=new o.vpe}hoverRate(l){this.itemHover.next(l&&this.allowHalf)}clickRate(l){this.itemClick.next(l&&this.allowHalf)}}return v.\u0275fac=function(l){return new(l||v)},v.\u0275cmp=o.Xpm({type:v,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:"allowHalf"},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],attrs:C,decls:6,vars:8,consts:[[1,"ant-rate-star-second",3,"mouseover","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-rate-star-first",3,"mouseover","click"],["defaultCharacter",""],["nz-icon","","nzType","star","nzTheme","fill"]],template:function(l,d){if(1&l&&(o.TgZ(0,"div",0),o.NdJ("mouseover",function(R){return d.hoverRate(!1),R.stopPropagation()})("click",function(){return d.clickRate(!1)}),o.YNc(1,E,0,0,"ng-template",1),o.qZA(),o.TgZ(2,"div",2),o.NdJ("mouseover",function(R){return d.hoverRate(!0),R.stopPropagation()})("click",function(){return d.clickRate(!0)}),o.YNc(3,D,0,0,"ng-template",1),o.qZA(),o.YNc(4,F,1,0,"ng-template",null,3,o.W1O)),2&l){const _=o.MAs(5);o.xp6(1),o.Q6J("ngTemplateOutlet",d.character||_)("ngTemplateOutletContext",o.VKq(4,U,d.index)),o.xp6(2),o.Q6J("ngTemplateOutlet",d.character||_)("ngTemplateOutletContext",o.VKq(6,U,d.index))}},directives:[u.tP,g.Ls],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,r.yF)()],v.prototype,"allowHalf",void 0),v})();const I="rate";let V=(()=>{class v{constructor(l,d,_,R,w,$){this.nzConfigService=l,this.ngZone=d,this.renderer=_,this.cdr=R,this.directionality=w,this.destroy$=$,this._nzModuleName=I,this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new o.vpe,this.nzOnFocus=new o.vpe,this.nzOnHoverChange=new o.vpe,this.nzOnKeyDown=new o.vpe,this.classMap={},this.starArray=[],this.starStyleArray=[],this.dir="ltr",this.hasHalf=!1,this.hoverValue=0,this.isFocused=!1,this._value=0,this.onChange=()=>null,this.onTouched=()=>null}get nzValue(){return this._value}set nzValue(l){this._value!==l&&(this._value=l,this.hasHalf=!Number.isInteger(l),this.hoverValue=Math.ceil(l))}ngOnChanges(l){const{nzAutoFocus:d,nzCount:_,nzValue:R}=l;if(d&&!d.isFirstChange()){const w=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(w,"autofocus","autofocus"):this.renderer.removeAttribute(w,"autofocus")}_&&this.updateStarArray(),R&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent(I).pipe((0,c.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,c.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,O.R)(this.ulElement.nativeElement,"focus").pipe((0,c.R)(this.destroy$)).subscribe(l=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(l))}),(0,O.R)(this.ulElement.nativeElement,"blur").pipe((0,c.R)(this.destroy$)).subscribe(l=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(l))})})}onItemClick(l,d){if(this.nzDisabled)return;this.hoverValue=l+1;const _=d?l+.5:l+1;this.nzValue===_?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=_,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(l,d){this.nzDisabled||this.hoverValue===l+1&&d===this.hasHalf||(this.hoverValue=l+1,this.hasHalf=d,this.nzOnHoverChange.emit(this.hoverValue),this.updateStarStyle())}onRateLeave(){this.hasHalf=!Number.isInteger(this.nzValue),this.hoverValue=Math.ceil(this.nzValue),this.updateStarStyle()}focus(){this.ulElement.nativeElement.focus()}blur(){this.ulElement.nativeElement.blur()}onKeyDown(l){const d=this.nzValue;l.keyCode===a.SV&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),d!==this.nzValue&&(this.onChange(this.nzValue),this.nzOnKeyDown.emit(l),this.updateStarStyle(),this.cdr.markForCheck())}updateStarArray(){this.starArray=Array(this.nzCount).fill(0).map((l,d)=>d),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(l=>{const d="ant-rate-star",_=l+1;return{[`${d}-full`]:_this.hoverValue,[`${d}-focused`]:this.hasHalf&&_===this.hoverValue&&this.isFocused}})}writeValue(l){this.nzValue=l||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(l){this.nzDisabled=l}registerOnChange(l){this.onChange=l}registerOnTouched(l){this.onTouched=l}}return v.\u0275fac=function(l){return new(l||v)(o.Y36(e.jY),o.Y36(o.R0b),o.Y36(o.Qsj),o.Y36(o.sBO),o.Y36(i.Is,8),o.Y36(n.kn))},v.\u0275cmp=o.Xpm({type:v,selectors:[["nz-rate"]],viewQuery:function(l,d){if(1&l&&o.Gf(J,7),2&l){let _;o.iGM(_=o.CRH())&&(d.ulElement=_.first)}},inputs:{nzAllowClear:"nzAllowClear",nzAllowHalf:"nzAllowHalf",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzCharacter:"nzCharacter",nzCount:"nzCount",nzTooltips:"nzTooltips"},outputs:{nzOnBlur:"nzOnBlur",nzOnFocus:"nzOnFocus",nzOnHoverChange:"nzOnHoverChange",nzOnKeyDown:"nzOnKeyDown"},exportAs:["nzRate"],features:[o._Bn([n.kn,{provide:y.JU,useExisting:(0,o.Gpc)(()=>v),multi:!0}]),o.TTD],decls:3,vars:7,consts:[[1,"ant-rate",3,"ngClass","tabindex","keydown","mouseleave"],["ulElement",""],["class","ant-rate-star","nz-tooltip","",3,"ngClass","nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",1,"ant-rate-star",3,"ngClass","nzTooltipTitle"],["nz-rate-item","",3,"allowHalf","character","index","itemHover","itemClick"]],template:function(l,d){1&l&&(o.TgZ(0,"ul",0,1),o.NdJ("keydown",function(R){return d.onKeyDown(R),R.preventDefault()})("mouseleave",function(R){return d.onRateLeave(),R.stopPropagation()}),o.YNc(2,Z,2,5,"li",2),o.qZA()),2&l&&(o.ekj("ant-rate-disabled",d.nzDisabled)("ant-rate-rtl","rtl"===d.dir),o.Q6J("ngClass",d.classMap)("tabindex",d.nzDisabled?-1:1),o.xp6(2),o.Q6J("ngForOf",d.starArray))},directives:[B,u.mk,u.sg,p.SY],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,e.oS)(),(0,r.yF)()],v.prototype,"nzAllowClear",void 0),(0,m.gn)([(0,e.oS)(),(0,r.yF)()],v.prototype,"nzAllowHalf",void 0),(0,m.gn)([(0,r.yF)()],v.prototype,"nzDisabled",void 0),(0,m.gn)([(0,r.yF)()],v.prototype,"nzAutoFocus",void 0),(0,m.gn)([(0,r.Rn)()],v.prototype,"nzCount",void 0),v})(),s=(()=>{class v{}return v.\u0275fac=function(l){return new(l||v)},v.\u0275mod=o.oAB({type:v}),v.\u0275inj=o.cJS({imports:[[i.vT,u.ez,g.PV,p.cg]]}),v})();const z={1:"Poor - Claim is not supported well by experimental evidence. Results are not reproducible, or have very small sample size. No follow-up is done to validate novel claims.",2:"Adequate - Evidence is not well supported by experimental data, and little follow-up data is available. Experiments may lack proper controls, have small sample size, or are not statistically convincing.",3:"Average - Evidence is convincing, but not supported by a breadth of experiments. May be smaller scale projects, or novel results without many follow-up experiments. Discrepancies from expected results are explained and not concerning.",4:"Strong - Well supported evidence. Experiments are well controlled, and results are convincing. Any discrepancies from expected results are well-explained and not concerning.",5:"Excellent - Solid, well supported evidence from a lab or journal with respected academic standing. Experiments are well controlled, and results are clean and reproducible across multiple replicates. Evidence confirmed using separate methods."},L={name:"rating-input",component:(()=>{class v extends h.fS{constructor(){super(),this.defaultOptions={}}updateField(l){this.field.formControl.setValue(l);let d=this.field.templateOptions;d&&(d.optionText=z[l])}}return v.\u0275fac=function(l){return new(l||v)},v.\u0275cmp=o.Xpm({type:v,selectors:[["cvc-rating-input-type"]],features:[o.qOj],decls:2,vars:4,consts:[["type","hidden",3,"formControl","formlyAttributes"],[3,"ngModel","formlyAttributes","ngModelChange"]],template:function(l,d){1&l&&(o._UZ(0,"input",0),o.TgZ(1,"nz-rate",1),o.NdJ("ngModelChange",function(R){return d.updateField(R)}),o.qZA()),2&l&&(o.Q6J("formControl",d.formControl)("formlyAttributes",d.field),o.xp6(1),o.Q6J("ngModel",d.formControl.value)("formlyAttributes",d.field))},directives:[y.Fj,y.JJ,y.oH,h.VQ,V,y.On],styles:[""]}),v})(),wrappers:["form-field"]};let Q=(()=>{class v{}return v.\u0275fac=function(l){return new(l||v)},v.\u0275mod=o.oAB({type:v}),v.\u0275inj=o.cJS({imports:[[u.ez,y.UX,y.u5,h.X0.forChild({types:[L]}),s]]}),v})()},7462:(b,x,t)=>{t.d(x,{o:()=>c});var u=t(9808),h=t(8776),o=t(5e3),y=t(1047),m=t(4182);const O={name:"cvc-textarea",component:(()=>{class e extends h.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=o.n5z(e)))(i||e)}}(),e.\u0275cmp=o.Xpm({type:e,selectors:[["cvc-textarea-base-type"]],features:[o.qOj],decls:1,vars:3,consts:[["nz-input","",3,"nzAutosize","formControl","formlyAttributes"]],template:function(r,i){1&r&&o._UZ(0,"textarea",0),2&r&&o.Q6J("nzAutosize",i.to.autosize)("formControl",i.formControl)("formlyAttributes",i.field)},directives:[y.Zp,y.rh,m.Fj,m.JJ,m.oH,h.VQ],styles:[""],changeDetection:0}),e})(),wrappers:["form-field"]};let c=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({imports:[[u.ez,m.u5,m.UX,h.X0.forChild({types:[O]}),y.o7]]}),e})()},3594:(b,x,t)=>{t.d(x,{q:()=>n});var u=t(9808),h=t(915),o=t(712);const y={SOMATIC:"Variant is a mutation, found only in tumor cells, having arisen in a specific tissue (non-germ cell), and is not expected to be inherited or passed to offspring.",RARE_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in less than 1% of the population relevant to this evidence item.",COMMON_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in at least 1% of the population relevant to this evidence item.",UNKNOWN:"The variant origin is uncertain based on the available evidence.",NA:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."},m={name:"variant-origin-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant Origin",placeholder:"None specified",helpText:"Origin of variant",options:[{value:o.huM.Somatic,label:(0,h.E)(o.huM.Somatic)},{value:o.huM.RareGermline,label:(0,h.E)(o.huM.RareGermline)},{value:o.huM.CommonGermline,label:(0,h.E)(o.huM.CommonGermline)},{value:o.huM.Unknown,label:(0,h.E)(o.huM.Unknown)},{value:o.huM.Na,label:(0,h.E)(o.huM.Na)}]},expressionProperties:{"templateOptions.optionText":(r,i,g)=>y[r.variantOrigin]}}};var a=t(4182),O=t(8776),c=t(3793),e=t(5e3);let n=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[u.ez,a.UX,c.F,O.X0.forChild({types:[m]})]]}),r})()},6738:(b,x,t)=>{function u(c){let e={value:void 0,unset:void 0};return c&&c.trim().length>0?e.value=c.trim():e.unset=!0,e}function h(c){let e={value:void 0,unset:void 0};return void 0!==c?e.value=c:e.unset=!0,e}function o(c){let e,n;return c&&c.includes("N/A")?(c=void 0,n=void 0,e=!0):c||(c=void 0,e=void 0,n=!0),{ids:c?c.map(r=>+r):void 0,noneFound:n,notApplicable:e}}function y(c){return{chromosome:a(c.chromosome),representativeTranscript:a(c.representativeTranscript),start:c.start?+c.start:void 0,stop:c.stop?+c.stop:void 0}}function m(c){let e={value:void 0,unset:void 0};return c?e.value=c:e.unset=!0,e}function a(c){let e;return e=c&&c.length>0?c:void 0,e}t.d(x,{aP:()=>O,Zg:()=>o,_$:()=>y,uP:()=>h,dh:()=>m,xt:()=>u});const O=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7695:(b,x,t)=>{t.d(x,{C:()=>V});var u=t(9808),h=t(6949),o=t(8776),y=t(7484),m=t(5482),a=t(1894),O=t(5109),c=t(6789),e=t(5e3),n=t(19),r=t(647),i=t(404);function g(s,z){1&s&&e._UZ(0,"div",9),2&s&&e.Q6J("innerHtml",z.ngIf,e.oJD)}function p(s,z){1&s&&(e.TgZ(0,"div",10),e._uU(1,"Help not available for this field."),e.qZA())}function C(s,z){if(1&s&&(e.TgZ(0,"nz-collapse-panel",6),e.YNc(1,g,1,1,"div",7),e.YNc(2,p,2,0,"ng-template",null,8,e.W1O),e.qZA()),2&s){const A=z.ngIf,L=e.MAs(3),Q=e.oxw().$implicit,v=e.MAs(3);e.Q6J("nzHeader",A)("nzActive",Q.templateOptions.hasFocus)("nzExtra",v),e.xp6(1),e.Q6J("ngIf",null==Q.templateOptions?null:Q.templateOptions.helpText)("ngIfElse",L)}}function E(s,z){if(1&s&&e._UZ(0,"formly-validation-message",14),2&s){const A=e.oxw(4).$implicit;e.Q6J("field",A)}}function D(s,z){if(1&s&&(e.ynx(0),e._UZ(1,"i",12),e.YNc(2,E,1,1,"ng-template",null,13,e.W1O),e.BQk()),2&s){const A=e.MAs(3);e.xp6(1),e.Q6J("nzTooltipTitle",A)}}function F(s,z){if(1&s&&(e.ynx(0),e.YNc(1,D,4,1,"ng-container",11),e.BQk()),2&s){const A=z.ngIf;e.xp6(1),e.Q6J("ngIf","INVALID"===A)}}function U(s,z){if(1&s&&(e.YNc(0,F,2,1,"ng-container",11),e.ALo(1,"ngrxPush")),2&s){const A=e.oxw().$implicit;e.Q6J("ngIf",e.lcZ(1,1,A.formControl.statusChanges))}}function J(s,z){if(1&s&&(e.ynx(0),e.YNc(1,C,4,5,"nz-collapse-panel",4),e.YNc(2,U,2,3,"ng-template",null,5,e.W1O),e.BQk()),2&s){const A=z.$implicit;e.xp6(1),e.Q6J("ngIf",null==A.templateOptions?null:A.templateOptions.label)}}let Z=(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(A){return new(A||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-form-info-card"]],inputs:{fieldGroup:"fieldGroup",affixTo:"affixTo"},decls:4,vars:4,consts:[[3,"nzOffsetTop","nzTarget"],["nzTitle","Form Assistant","nzSize","default",1,"form-helper-card"],[3,"nzBordered"],[4,"ngFor","ngForOf"],[3,"nzHeader","nzActive","nzExtra",4,"ngIf"],["fieldStatus",""],[3,"nzHeader","nzActive","nzExtra"],["class","help-text",3,"innerHtml",4,"ngIf","ngIfElse"],["noHelpText",""],[1,"help-text",3,"innerHtml"],[1,"help-text"],[4,"ngIf"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","#f5222d","nz-tooltip","","nzTooltipColor","red",3,"nzTooltipTitle"],["errorTooltip",""],[3,"field"]],template:function(A,L){1&A&&(e.TgZ(0,"nz-affix",0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-collapse",2),e.YNc(3,J,4,1,"ng-container",3),e.qZA(),e.qZA(),e.qZA()),2&A&&(e.Q6J("nzOffsetTop",0)("nzTarget",L.affixTo),e.xp6(2),e.Q6J("nzBordered",!1),e.xp6(1),e.Q6J("ngForOf",L.fieldGroup))},directives:[n.$,y.bd,m.yH,u.sg,u.O5,m.Zv,r.Ls,i.SY,o.u_],pipes:[h.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}.help-text[_ngcontent-%COMP%]{padding:6px 8px;border:1px solid #EFEFEF;background:white;border-radius:6px}"]}),s})();const I={name:"form-info",component:(()=>{class s extends o.n2{}return s.\u0275fac=function(){let z;return function(L){return(z||(z=e.n5z(s)))(L||s)}}(),s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-form-info-wrapper"]],features:[e.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(A,L){if(1&A&&(e.TgZ(0,"nz-row",0),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",2),e.GkF(3,null,3),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",null,4),e._UZ(8,"cvc-form-info-card",5),e.qZA(),e.qZA(),e.qZA()),2&A){const Q=e.MAs(7);e.xp6(1),e.Q6J("nzSpan",16),e.xp6(1),e.Q6J("nzTitle",L.to.label),e.xp6(3),e.Q6J("nzSpan",8),e.xp6(3),e.Q6J("fieldGroup",L.field.fieldGroup)("affixTo",Q)}},directives:[a.SK,a.t3,y.bd,Z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),s})()};let V=(()=>{class s{}return s.\u0275fac=function(A){return new(A||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[u.ez,h.WG,o.X0.forChild({wrappers:[I]}),a.Jb,y.vh,m.cD,c._,O.s]]}),s})()}}]); \ No newline at end of file diff --git a/server/public/4024.9ef20c158d4b219e.js b/server/public/4024.5e7368279f79aeb4.js similarity index 56% rename from server/public/4024.9ef20c158d4b219e.js rename to server/public/4024.5e7368279f79aeb4.js index 9619b376d..e0b55a23e 100644 --- a/server/public/4024.9ef20c158d4b219e.js +++ b/server/public/4024.5e7368279f79aeb4.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4024],{1912:(De,se,r)=>{r.d(se,{s:()=>le});var o=r(5e3),i=r(6042),t=r(2643),D=r(2683),F=r(3640),B=r(2160),q=r(3762),A=r(647);let L=(()=>{class te{constructor(oe){this.cookies=oe,this.location=function Z(te){return encodeURIComponent(te).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}(window.location.href),this.xsrfToken=this.cookies.get("XSRF-TOKEN")}ngOnInit(){}}return te.\u0275fac=function(oe){return new(oe||te)(o.Y36(B.N))},te.\u0275cmp=o.Xpm({type:te,selectors:[["cvc-auth-options-list"]],decls:18,vars:6,consts:[["nzBordered","false","nzSplit","false"],["method","post",3,"action"],["type","hidden","name","authenticity_token",3,"value"],["type","submit","nz-button","","nzBlock","","nzType","default","nzSize","large","nzShape","round"],["nz-icon","","nzType","google"],["nz-icon","","nzType","github"]],template:function(oe,V){1&oe&&(o.TgZ(0,"nz-list",0),o.TgZ(1,"nz-list-item"),o.TgZ(2,"form",1),o._UZ(3,"input",2),o.TgZ(4,"button",3),o._UZ(5,"i",4),o._uU(6," Sign In with a Google Account "),o.qZA(),o.qZA(),o.qZA(),o.TgZ(7,"nz-list-item"),o.TgZ(8,"form",1),o._UZ(9,"input",2),o.TgZ(10,"button",3),o._uU(11," Sign In with an ORCID Account "),o.qZA(),o.qZA(),o.qZA(),o.TgZ(12,"nz-list-item"),o.TgZ(13,"form",1),o._UZ(14,"input",2),o.TgZ(15,"button",3),o._UZ(16,"i",5),o._uU(17," Sign In with a Github Account "),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&oe&&(o.xp6(2),o.MGl("action","/api/auth/google_oauth2?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken),o.xp6(5),o.MGl("action","/api/auth/orcid?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken),o.xp6(4),o.MGl("action","/api/auth/github?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken))},directives:[q.n_,q.AA,i.ix,t.dQ,D.w,A.Ls],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}"]}),te})();function P(te,ae){1&te&&(o.ynx(0),o.TgZ(1,"p",5),o._uU(2,"Click on one of the OAuth providers below to sign into CIViC. If you do not not have a CIViC account, one will be created for you based upon the account information your OAuth provider provides."),o.qZA(),o._UZ(3,"cvc-auth-options-list"),o.BQk())}function K(te,ae){1&te&&o._uU(0," Sign In / Sign Up\n")}function H(te,ae){if(1&te){const oe=o.EpF();o.TgZ(0,"button",0),o.NdJ("click",function(){return o.CHM(oe),o.oxw().handleCancel()}),o._uU(1,"Cancel"),o.qZA()}}let le=(()=>{class te{constructor(){this.authVisible=!1}ngOnInit(){}showAuth(){this.authVisible=!0}handleCancel(){this.authVisible=!1}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275cmp=o.Xpm({type:te,selectors:[["cvc-login-button"]],decls:9,vars:3,consts:[["nz-button","","nzType","primary","nzValue","small",3,"click"],[3,"nzVisible","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],[4,"nzModalContent"],["loginModalTitle",""],["loginModalFooter",""],["nzType","secondary"]],template:function(oe,V){if(1&oe&&(o.TgZ(0,"button",0),o.NdJ("click",function(){return V.showAuth()}),o.TgZ(1,"span"),o._uU(2,"Sign In / Sign Up"),o.qZA(),o.qZA(),o.TgZ(3,"nz-modal",1),o.NdJ("nzVisibleChange",function(I){return V.authVisible=I})("nzOnCancel",function(){return V.handleCancel()}),o.YNc(4,P,4,0,"ng-container",2),o.qZA(),o.YNc(5,K,1,0,"ng-template",null,3,o.W1O),o.YNc(7,H,2,0,"ng-template",null,4,o.W1O)),2&oe){const b=o.MAs(6),I=o.MAs(8);o.xp6(3),o.Q6J("nzVisible",V.authVisible)("nzTitle",b)("nzFooter",I)}},directives:[i.ix,t.dQ,D.w,F.du,F.Hf,L],styles:["[_nghost-%COMP%]{display:inline-block}"]}),te})()},1844:(De,se,r)=>{r.d(se,{B:()=>q});var o=r(9808),i=r(6042),t=r(3640),D=r(3762),F=r(647),Z=r(5e3);let B=(()=>{class A{}return A.\u0275fac=function(P){return new(P||A)},A.\u0275mod=Z.oAB({type:A}),A.\u0275inj=Z.cJS({imports:[[o.ez,F.PV,D.Ph,i.sL]]}),A})(),q=(()=>{class A{}return A.\u0275fac=function(P){return new(P||A)},A.\u0275mod=Z.oAB({type:A}),A.\u0275inj=Z.cJS({imports:[[o.ez,i.sL,t.Qp,B]]}),A})()},7881:(De,se,r)=>{r.d(se,{L:()=>Z});var o=r(5e3),i=r(9808),t=r(6699);function D(B,q){if(1&B&&o._UZ(0,"nz-avatar",2),2&B){const A=o.oxw();o.Q6J("nzSrc",A.user.profileImagePath)("nzShape",A.shape?A.shape:"circle")("nzSize",A.size)}}function F(B,q){if(1&B&&(o._UZ(0,"nz-avatar",3),o.ALo(1,"uppercase")),2&B){const A=o.oxw();o.Q6J("nzSize",A.size)("nzText",o.lcZ(1,2,A.user.displayName.charAt(0)))}}let Z=(()=>{class B{ngOnInit(){if(void 0===this.user)throw new Error("Must supply a user to use this component");void 0===this.size&&(this.size="default")}}return B.\u0275fac=function(A){return new(A||B)},B.\u0275cmp=o.Xpm({type:B,selectors:[["cvc-user-avatar"]],inputs:{user:"user",size:"size",shape:"shape"},decls:3,vars:2,consts:[["nz-comment-avatar","",3,"nzSrc","nzShape","nzSize",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc","nzShape","nzSize"],["nz-comment-avatar","",3,"nzSize","nzText"]],template:function(A,L){if(1&A&&(o.YNc(0,D,1,3,"nz-avatar",0),o.YNc(1,F,2,4,"ng-template",null,1,o.W1O)),2&A){const P=o.MAs(2);o.Q6J("ngIf",L.user.profileImagePath)("ngIfElse",P)}},directives:[i.O5,t.Dz],pipes:[i.gd],styles:["[_nghost-%COMP%]{display:inline-block}"]}),B})()},5473:(De,se,r)=>{r.d(se,{H:()=>D});var o=r(9808),i=r(6699),t=r(5e3);let D=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[[o.ez,i.Rt]]}),F})()},9350:(De,se,r)=>{r.d(se,{a:()=>A});var o=r(4850),i=r(5154),t=r(373),D=r(1059),F=r(712),Z=r(5e3),B=r(520);const q={mostRecentOrg:void 0,signedIn:!1,isAdmin:!1,isEditor:!1,isCurator:!1,canCurate:!1,canModerate:!1,invalidCoi:!0};let A=(()=>{class L{constructor(K,H){function le(I){return!(!I||I.role!==F.i44.Admin)}function te(I){return!(!I||I.role!==F.i44.Editor&&I.role!==F.i44.Admin)}function ae(I){return!(!I||I.role!==F.i44.Curator)}function oe(I){return!(!I||I.role!==F.i44.Curator&&I.role!==F.i44.Editor&&I.role!==F.i44.Admin)}function V(I){var $,ne;return!(!I||I.role!==F.i44.Editor&&I.role!==F.i44.Admin||!I.mostRecentConflictOfInterestStatement||(null===($=I.mostRecentConflictOfInterestStatement)||void 0===$?void 0:$.coiStatus)!=F.Mgx.Conflict&&(null===(ne=I.mostRecentConflictOfInterestStatement)||void 0===ne?void 0:ne.coiStatus)!=F.Mgx.Valid)}function b(I){if(I.mostRecentOrganizationId)return I.organizations.find($=>$.id===I.mostRecentOrganizationId)}this.viewerBaseGQL=K,this.http=H,this.queryRef=this.viewerBaseGQL.watch(),this.data$=this.queryRef.valueChanges.pipe((0,o.U)(I=>({data:I.data,loading:I.loading,networkStatus:I.networkStatus})),(0,i.d)(1)),this.isLoading$=this.data$.pipe((0,t.j)("loading"),(0,D.O)(!0)),this.viewer$=this.data$.pipe((0,t.j)("data","viewer"),(0,o.U)(I=>Object.assign(Object.assign({},I),{signedIn:null!==I,signedOut:null===I,canCurate:oe(I),canModerate:V(I),isAdmin:le(I),isEditor:te(I),isCurator:ae(I),organizations:null===I?[]:I.organizations,mostRecentOrg:null===I?void 0:b(I),invalidCoi:te(I)&&(!I.mostRecentConflictOfInterestStatement||I.mostRecentConflictOfInterestStatement.coiStatus===F.Mgx.Expired||I.mostRecentConflictOfInterestStatement.coiStatus===F.Mgx.Missing)})),(0,D.O)(q),(0,i.d)(1)),this.signedIn$=this.viewer$.pipe((0,o.U)(I=>I.signedIn)),this.signedOut$=this.viewer$.pipe((0,o.U)(I=>I.signedOut)),this.isAdmin$=this.viewer$.pipe((0,o.U)(I=>le(I))),this.isEditor$=this.viewer$.pipe((0,o.U)(I=>te(I))),this.isCurator$=this.viewer$.pipe((0,o.U)(I=>ae(I))),this.canCurate$=this.viewer$.pipe((0,o.U)(I=>oe(I))),this.canModerate$=this.viewer$.pipe((0,o.U)(I=>V(I)))}signOut(){this.http.get("/api/sign_out").subscribe(K=>{this.refetch()})}refetch(){this.queryRef.refetch()}ngOnDestroy(){}}return L.\u0275fac=function(K){return new(K||L)(Z.LFG(F.Tt7),Z.LFG(B.eN))},L.\u0275prov=Z.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},6123:(De,se,r)=>{r.d(se,{U:()=>F});var o=r(8929),i=r(591),t=r(7625),D=r(537);class F{constructor(B){this.networkErrorService=B}mutate(B,q,A){let L=new o.xQ,P={isSubmitting$:new i.X(!1),submitSuccess$:new i.X(!1),submitError$:new i.X([]),cleanup:()=>{L.next(),L.complete()}};return P.isSubmitting$.next(!0),B.mutate(q).pipe((0,t.R)(L),(0,D.x)(()=>{P.isSubmitting$.next(!1)})).subscribe({next:K=>{K.data&&A&&A(K.data)},error:K=>{K.graphQLErrors.length>0?P.submitError$.next(K.graphQLErrors.map(H=>H.message)):K.networkError&&this.networkErrorService.networkError$.next(K.networkError),P.cleanup()},complete:()=>{P.submitError$.next([]),P.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),P.cleanup()}}),P}}},822:(De,se,r)=>{r.d(se,{V:()=>q});var o=r(5e3),i=r(9808),t=r(2359);function D(A,L){if(1&A&&o._UZ(0,"nz-alert",4),2&A){const P=o.oxw();o.Q6J("nzDescription",P.errors[0])}}function F(A,L){if(1&A&&o._UZ(0,"nz-alert",5),2&A){o.oxw();const P=o.MAs(3);o.Q6J("nzDescription",P)}}function Z(A,L){if(1&A&&(o.TgZ(0,"li"),o._uU(1),o.qZA()),2&A){const P=L.$implicit;o.xp6(1),o.Oqu(P)}}function B(A,L){if(1&A&&(o.TgZ(0,"ul",6),o.YNc(1,Z,2,1,"li",7),o.qZA()),2&A){const P=o.oxw();o.xp6(1),o.Q6J("ngForOf",P.errors)}}let q=(()=>{class A{constructor(){}ngOnInit(){}}return A.\u0275fac=function(P){return new(P||A)},A.\u0275cmp=o.Xpm({type:A,selectors:[["cvc-form-errors-alert"]],inputs:{errors:"errors"},decls:4,vars:2,consts:[["nzType","error","nzShowIcon","",3,"nzDescription",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occured",3,"nzDescription",4,"ngIf"],["nzSize","small"],["errorList",""],["nzType","error","nzShowIcon","",3,"nzDescription"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occured",3,"nzDescription"],[1,"error-list"],[4,"ngFor","ngForOf"]],template:function(P,K){1&P&&(o.YNc(0,D,1,1,"nz-alert",0),o.YNc(1,F,1,1,"nz-alert",1),o.YNc(2,B,2,1,"ng-template",2,3,o.W1O)),2&P&&(o.Q6J("ngIf",1===K.errors.length),o.xp6(1),o.Q6J("ngIf",K.errors.length>1))},directives:[i.O5,t.r,i.sg],styles:["[_nghost-%COMP%]{display:block}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"]}),A})()},7008:(De,se,r)=>{r.d(se,{B:()=>D});var o=r(9808),i=r(2359),t=r(5e3);let D=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[[o.ez,i.L]]}),F})()},8785:(De,se,r)=>{r.d(se,{t:()=>ne});var o=r(5e3),i=r(6123),t=r(8929),D=r(7625),F=r(712),Z=r(9169),B=r(7484),q=r(9808),A=r(2359),L=r(1894),P=r(4546),K=r(822),H=r(7525),le=r(3868),te=r(4182),ae=r(6042),oe=r(2643),V=r(2683);function b(X,de){1&X&&o._UZ(0,"nz-alert",7)}function I(X,de){if(1&X&&(o.TgZ(0,"nz-form-item"),o._UZ(1,"cvc-form-errors-alert",8),o.qZA()),2&X){const fe=o.oxw();o.xp6(1),o.Q6J("errors",fe.errorMessages)}}function $(X,de){if(1&X){const fe=o.EpF();o.TgZ(0,"nz-form-item"),o.TgZ(1,"textarea",9),o.NdJ("ngModelChange",function(ue){return o.CHM(fe),o.oxw().coiText=ue}),o.qZA(),o.qZA()}if(2&X){const fe=o.oxw();o.xp6(1),o.Q6J("ngModel",fe.coiText)}}let ne=(()=>{class X{constructor(fe,pe){this.updateCoiGql=fe,this.coiUpdatedEvent=new o.vpe,this.coiText=void 0,this.coiStatus="noCoi",this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new t.xQ,this.updateCoiMutator=new i.U(pe)}updateCoi(){if("coiPresent"===this.coiStatus&&this.coiText||"noCoi"===this.coiStatus){this.errorMessages=[];let pe=this.updateCoiMutator.mutate(this.updateCoiGql,{input:{coiPresent:"coiPresent"===this.coiStatus,statement:this.coiText}});pe.submitSuccess$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{ue&&(this.resetForm(),this.success=!0,this.coiUpdatedEvent.emit())}),pe.submitError$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{ue&&(this.errorMessages=ue,this.success=!1)}),pe.isSubmitting$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{this.loading=ue})}}resetForm(){this.coiStatus="noCoi",this.coiText=void 0}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return X.\u0275fac=function(fe){return new(fe||X)(o.Y36(F.IP1),o.Y36(Z.Y))},X.\u0275cmp=o.Xpm({type:X,selectors:[["cvc-user-coi-form"]],outputs:{coiUpdatedEvent:"coiUpdatedEvent"},decls:14,vars:6,consts:[["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],[3,"ngModel","ngModelChange"],["nz-radio","","nzValue","noCoi"],["nz-radio","","nzValue","coiPresent"],["type","submit","nz-button","","nzType","primary","nzSize","small",3,"disabled","click"],["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable",""],[3,"errors"],["nz-input","","rows","5","placeholder","Provide a concise description of any potential or actual conflicts of interest that you may have in curating CIViC",2,"width","100%",3,"ngModel","ngModelChange"]],template:function(fe,pe){1&fe&&(o.TgZ(0,"nz-card"),o.YNc(1,b,1,0,"nz-alert",0),o.YNc(2,I,2,1,"nz-form-item",1),o.TgZ(3,"nz-spin",2),o.TgZ(4,"nz-form-item"),o.TgZ(5,"nz-radio-group",3),o.NdJ("ngModelChange",function(W){return pe.coiStatus=W}),o.TgZ(6,"label",4),o._uU(7,"I do not have any potential conflicts of interest."),o.qZA(),o.TgZ(8,"label",5),o._uU(9,"I do have a potential conflict of interest."),o.qZA(),o.qZA(),o.qZA(),o.YNc(10,$,2,1,"nz-form-item",1),o.TgZ(11,"nz-form-item"),o.TgZ(12,"button",6),o.NdJ("click",function(){return pe.updateCoi()}),o._uU(13," Save Conflict of Interest Statement "),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&fe&&(o.xp6(1),o.Q6J("ngIf",pe.success),o.xp6(1),o.Q6J("ngIf",pe.errorMessages.length>0),o.xp6(1),o.Q6J("nzSpinning",pe.loading),o.xp6(2),o.Q6J("ngModel",pe.coiStatus),o.xp6(5),o.Q6J("ngIf","coiPresent"===pe.coiStatus),o.xp6(2),o.Q6J("disabled",pe.loading||"coiPresent"===pe.coiStatus&&(void 0===pe.coiText||pe.coiText.length<10)))},directives:[B.bd,q.O5,A.r,L.SK,P.Nx,K.V,H.W,le.Dg,te.JJ,te.On,le.Of,te.Fj,ae.ix,oe.dQ,V.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),X})()},330:(De,se,r)=>{r.d(se,{e:()=>K});var o=r(9808),i=r(4182),t=r(6949),D=r(7484),F=r(2359),Z=r(4546),B=r(7008),q=r(3868),A=r(7525),L=r(6042),P=r(5e3);let K=(()=>{class H{}return H.\u0275fac=function(te){return new(te||H)},H.\u0275mod=P.oAB({type:H}),H.\u0275inj=P.cJS({imports:[[o.ez,i.u5,Z.U5,i.UX,t.WG,D.vh,F.L,q.aF,L.sL,A.j,B.B]]}),H})()},712:(De,se,r)=>{r.d(se,{ti:()=>ji,$G1:()=>nr,iGM:()=>Jo,KNk:()=>sr,T97:()=>ur,RMv:()=>Ar,LUc:()=>br,iwm:()=>j,Vr2:()=>l,A94:()=>zs,mdl:()=>k,Gbq:()=>ai,bgg:()=>Qo,u4i:()=>ie,ejK:()=>Cs,uBv:()=>ze,td:()=>li,Tq1:()=>Ii,q8c:()=>Pi,WRV:()=>go,IZ6:()=>zo,qf4:()=>Eo,Rdc:()=>$o,gtM:()=>Er,fpJ:()=>Tr,k2T:()=>Cr,UWf:()=>po,cMj:()=>Ts,UIR:()=>di,E8d:()=>Te,P_b:()=>mi,Mgx:()=>$e,iST:()=>fi,Kk:()=>vi,OfU:()=>we,kQf:()=>io,l4w:()=>ss,JQ3:()=>Sr,db2:()=>Zs,h01:()=>Ye,wg3:()=>Ss,k7O:()=>yi,kv3:()=>or,R8w:()=>je,GB2:()=>Es,Zyn:()=>He,dUU:()=>_i,kq9:()=>We,vRc:()=>cr,Ud2:()=>Di,GYx:()=>er,AO2:()=>Je,BTF:()=>Ni,wJ2:()=>Xe,eY8:()=>Li,_Aq:()=>tt,pHu:()=>As,tI1:()=>nt,Q_P:()=>Gr,Sx0:()=>f,Ybm:()=>Oi,Cp0:()=>E,RTy:()=>C,sBY:()=>Ms,kqt:()=>R,Zhw:()=>pr,B0s:()=>Zr,rzy:()=>Fi,BQZ:()=>ce,sfv:()=>he,TNk:()=>xs,rJ8:()=>Ri,FOU:()=>Jr,Q4m:()=>gr,Fvz:()=>pt,cCu:()=>bs,_jb:()=>lo,MYm:()=>ao,oRL:()=>mt,lfy:()=>hr,fow:()=>gt,X5f:()=>Ui,WOS:()=>$s,Lr0:()=>Gs,Del:()=>Bs,xlL:()=>ft,io:()=>Vi,WGV:()=>Qs,OHm:()=>ki,lYz:()=>ht,FKQ:()=>zr,B97:()=>Wi,mII:()=>Ko,ghc:()=>wi,NQC:()=>vt,JDX:()=>zt,VZq:()=>Hi,EwB:()=>Yr,FJi:()=>yt,L5n:()=>to,rZD:()=>Ct,SrV:()=>It,Bk6:()=>Ys,TiL:()=>ho,yic:()=>Tt,SJD:()=>Kt,F3s:()=>_t,jw9:()=>St,g0X:()=>Js,iXf:()=>Mn,NbY:()=>Mr,kQl:()=>Dt,LLl:()=>Yo,WFw:()=>Qr,tji:()=>ps,o71:()=>wt,jMx:()=>oa,A4J:()=>ro,c$m:()=>Zo,Vj7:()=>Br,D9L:()=>Kr,SWk:()=>Xr,aw3:()=>cs,Xft:()=>hs,mpB:()=>Et,m$d:()=>na,IP1:()=>ns,LiH:()=>ea,wRZ:()=>es,wbP:()=>os,sLD:()=>Ks,yqR:()=>Xs,cEv:()=>Co,i44:()=>Nt,vMt:()=>Xo,tJ6:()=>To,IRu:()=>At,Qzn:()=>qi,iJT:()=>pa,qP7:()=>Ot,Qtd:()=>sa,Zo2:()=>So,ROj:()=>us,FB1:()=>Mt,q1D:()=>ca,d4o:()=>Lt,huM:()=>xt,ZYZ:()=>xo,nnL:()=>gs,Bo4:()=>ga,ubO:()=>ua,tw_:()=>Ao,wpb:()=>Ft,BnY:()=>$r,_eC:()=>xr,fwG:()=>Mo,zwS:()=>bo,pP7:()=>bt,Tt7:()=>Go,Kmw:()=>Bo});var o=r(655);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}var D=r(9245);function F(e,s){for(var y,n=/\r\n|[\n\r]/g,d=1,z=s+1;(y=n.exec(e.body))&&y.index120){for(var Rt=Math.floor(x/80),Bt=x%80,ke=[],Be=0;Be",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),G=r(6261),O=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),Q=r(2032),ye=function(){function e(n){var d=new Y.WU(g.SOF,0,0,0,0,null);this.source=n,this.lastToken=d,this.token=d,this.line=1,this.lineStart=0}var s=e.prototype;return s.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},s.lookahead=function(){var d=this.token;if(d.kind!==g.EOF)do{var z;d=null!==(z=d.next)&&void 0!==z?z:d.next=Ee(this,d)}while(d.kind===g.COMMENT);return d},e}();function Se(e){return isNaN(e)?g.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Ee(e,s){for(var n=e.source,d=n.body,z=d.length,y=s.end;y31||9===T));return new Y.WU(g.COMMENT,s,S,n,d,z,y.slice(s+1,S))}function Ve(e,s,n,d,z,y){var T=e.body,S=n,x=s,me=!1;if(45===S&&(S=T.charCodeAt(++x)),48===S){if((S=T.charCodeAt(++x))>=48&&S<=57)throw ue(e,x,"Invalid number, unexpected digit after 0: ".concat(Se(S),"."))}else x=Pe(e,x,S),S=T.charCodeAt(x);if(46===S&&(me=!0,S=T.charCodeAt(++x),x=Pe(e,x,S),S=T.charCodeAt(x)),(69===S||101===S)&&(me=!0,(43===(S=T.charCodeAt(++x))||45===S)&&(S=T.charCodeAt(++x)),x=Pe(e,x,S),S=T.charCodeAt(x)),46===S||function ge(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(S))throw ue(e,x,"Invalid number, expected digit but got: ".concat(Se(S),"."));return new Y.WU(me?g.FLOAT:g.INT,s,x,d,z,y,T.slice(s,x))}function Pe(e,s,n){var d=e.body,z=s,y=n;if(y>=48&&y<=57){do{y=d.charCodeAt(++z)}while(y>=48&&y<=57);return z}throw ue(e,z,"Invalid number, expected digit but got: ".concat(Se(y),"."))}function N(e,s,n,d,z){for(var y=e.body,T=s+1,S=T,x=0,me="";T=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function U(e,s,n,d,z){for(var y=e.body,T=y.length,S=s+1,x=0;S!==T&&!isNaN(x=y.charCodeAt(S))&&(95===x||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122);)++S;return new Y.WU(g.NAME,s,S,n,d,z,y.slice(s,S))}var Ie=function(){function e(n,d){var z=(0,G.T)(n)?n:new G.H(n);this._lexer=new ye(z),this._options=d}var s=e.prototype;return s.parseName=function(){var d=this.expectToken(g.NAME);return{kind:W.NAME,value:d.value,loc:this.loc(d)}},s.parseDocument=function(){var d=this._lexer.token;return{kind:W.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF),loc:this.loc(d)}},s.parseDefinition=function(){if(this.peek(g.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(g.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},s.parseOperationDefinition=function(){var d=this._lexer.token;if(this.peek(g.BRACE_L))return{kind:W.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(d)};var y,z=this.parseOperationType();return this.peek(g.NAME)&&(y=this.parseName()),{kind:W.OPERATION_DEFINITION,operation:z,name:y,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(d)}},s.parseOperationType=function(){var d=this.expectToken(g.NAME);switch(d.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(d)},s.parseVariableDefinitions=function(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)},s.parseVariableDefinition=function(){var d=this._lexer.token;return{kind:W.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(d)}},s.parseVariable=function(){var d=this._lexer.token;return this.expectToken(g.DOLLAR),{kind:W.VARIABLE,name:this.parseName(),loc:this.loc(d)}},s.parseSelectionSet=function(){var d=this._lexer.token;return{kind:W.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R),loc:this.loc(d)}},s.parseSelection=function(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()},s.parseField=function(){var y,T,d=this._lexer.token,z=this.parseName();return this.expectOptionalToken(g.COLON)?(y=z,T=this.parseName()):T=z,{kind:W.FIELD,alias:y,name:T,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(d)}},s.parseArguments=function(d){return this.optionalMany(g.PAREN_L,d?this.parseConstArgument:this.parseArgument,g.PAREN_R)},s.parseArgument=function(){var d=this._lexer.token,z=this.parseName();return this.expectToken(g.COLON),{kind:W.ARGUMENT,name:z,value:this.parseValueLiteral(!1),loc:this.loc(d)}},s.parseConstArgument=function(){var d=this._lexer.token;return{kind:W.ARGUMENT,name:this.parseName(),value:(this.expectToken(g.COLON),this.parseValueLiteral(!0)),loc:this.loc(d)}},s.parseFragment=function(){var d=this._lexer.token;this.expectToken(g.SPREAD);var z=this.expectOptionalKeyword("on");return!z&&this.peek(g.NAME)?{kind:W.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(d)}:{kind:W.INLINE_FRAGMENT,typeCondition:z?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(d)}},s.parseFragmentDefinition=function(){var d,z=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(d=this._options)||void 0===d?void 0:d.experimentalFragmentVariables)?{kind:W.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(z)}:{kind:W.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(z)}},s.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},s.parseValueLiteral=function(d){var z=this._lexer.token;switch(z.kind){case g.BRACKET_L:return this.parseList(d);case g.BRACE_L:return this.parseObject(d);case g.INT:return this._lexer.advance(),{kind:W.INT,value:z.value,loc:this.loc(z)};case g.FLOAT:return this._lexer.advance(),{kind:W.FLOAT,value:z.value,loc:this.loc(z)};case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:switch(this._lexer.advance(),z.value){case"true":return{kind:W.BOOLEAN,value:!0,loc:this.loc(z)};case"false":return{kind:W.BOOLEAN,value:!1,loc:this.loc(z)};case"null":return{kind:W.NULL,loc:this.loc(z)};default:return{kind:W.ENUM,value:z.value,loc:this.loc(z)}}case g.DOLLAR:if(!d)return this.parseVariable()}throw this.unexpected()},s.parseStringLiteral=function(){var d=this._lexer.token;return this._lexer.advance(),{kind:W.STRING,value:d.value,block:d.kind===g.BLOCK_STRING,loc:this.loc(d)}},s.parseList=function(d){var z=this,y=this._lexer.token;return{kind:W.LIST,values:this.any(g.BRACKET_L,function(){return z.parseValueLiteral(d)},g.BRACKET_R),loc:this.loc(y)}},s.parseObject=function(d){var z=this,y=this._lexer.token;return{kind:W.OBJECT,fields:this.any(g.BRACE_L,function(){return z.parseObjectField(d)},g.BRACE_R),loc:this.loc(y)}},s.parseObjectField=function(d){var z=this._lexer.token,y=this.parseName();return this.expectToken(g.COLON),{kind:W.OBJECT_FIELD,name:y,value:this.parseValueLiteral(d),loc:this.loc(z)}},s.parseDirectives=function(d){for(var z=[];this.peek(g.AT);)z.push(this.parseDirective(d));return z},s.parseDirective=function(d){var z=this._lexer.token;return this.expectToken(g.AT),{kind:W.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(d),loc:this.loc(z)}},s.parseTypeReference=function(){var z,d=this._lexer.token;return this.expectOptionalToken(g.BRACKET_L)?(z=this.parseTypeReference(),this.expectToken(g.BRACKET_R),z={kind:W.LIST_TYPE,type:z,loc:this.loc(d)}):z=this.parseNamedType(),this.expectOptionalToken(g.BANG)?{kind:W.NON_NULL_TYPE,type:z,loc:this.loc(d)}:z},s.parseNamedType=function(){var d=this._lexer.token;return{kind:W.NAMED_TYPE,name:this.parseName(),loc:this.loc(d)}},s.parseTypeSystemDefinition=function(){var d=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(d.kind===g.NAME)switch(d.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(d)},s.peekDescription=function(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)},s.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},s.parseSchemaDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("schema");var y=this.parseDirectives(!0),T=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return{kind:W.SCHEMA_DEFINITION,description:z,directives:y,operationTypes:T,loc:this.loc(d)}},s.parseOperationTypeDefinition=function(){var d=this._lexer.token,z=this.parseOperationType();this.expectToken(g.COLON);var y=this.parseNamedType();return{kind:W.OPERATION_TYPE_DEFINITION,operation:z,type:y,loc:this.loc(d)}},s.parseScalarTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("scalar");var y=this.parseName(),T=this.parseDirectives(!0);return{kind:W.SCALAR_TYPE_DEFINITION,description:z,name:y,directives:T,loc:this.loc(d)}},s.parseObjectTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("type");var y=this.parseName(),T=this.parseImplementsInterfaces(),S=this.parseDirectives(!0),x=this.parseFieldsDefinition();return{kind:W.OBJECT_TYPE_DEFINITION,description:z,name:y,interfaces:T,directives:S,fields:x,loc:this.loc(d)}},s.parseImplementsInterfaces=function(){var d;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(d=this._options)||void 0===d?void 0:d.allowLegacySDLImplementsInterfaces)){var z=[];this.expectOptionalToken(g.AMP);do{z.push(this.parseNamedType())}while(this.expectOptionalToken(g.AMP)||this.peek(g.NAME));return z}return this.delimitedMany(g.AMP,this.parseNamedType)},s.parseFieldsDefinition=function(){var d;return!0===(null===(d=this._options)||void 0===d?void 0:d.allowLegacySDLEmptyFields)&&this.peek(g.BRACE_L)&&this._lexer.lookahead().kind===g.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)},s.parseFieldDefinition=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName(),T=this.parseArgumentDefs();this.expectToken(g.COLON);var S=this.parseTypeReference(),x=this.parseDirectives(!0);return{kind:W.FIELD_DEFINITION,description:z,name:y,arguments:T,type:S,directives:x,loc:this.loc(d)}},s.parseArgumentDefs=function(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)},s.parseInputValueDef=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName();this.expectToken(g.COLON);var S,T=this.parseTypeReference();this.expectOptionalToken(g.EQUALS)&&(S=this.parseValueLiteral(!0));var x=this.parseDirectives(!0);return{kind:W.INPUT_VALUE_DEFINITION,description:z,name:y,type:T,defaultValue:S,directives:x,loc:this.loc(d)}},s.parseInterfaceTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("interface");var y=this.parseName(),T=this.parseImplementsInterfaces(),S=this.parseDirectives(!0),x=this.parseFieldsDefinition();return{kind:W.INTERFACE_TYPE_DEFINITION,description:z,name:y,interfaces:T,directives:S,fields:x,loc:this.loc(d)}},s.parseUnionTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("union");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseUnionMemberTypes();return{kind:W.UNION_TYPE_DEFINITION,description:z,name:y,directives:T,types:S,loc:this.loc(d)}},s.parseUnionMemberTypes=function(){return this.expectOptionalToken(g.EQUALS)?this.delimitedMany(g.PIPE,this.parseNamedType):[]},s.parseEnumTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("enum");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseEnumValuesDefinition();return{kind:W.ENUM_TYPE_DEFINITION,description:z,name:y,directives:T,values:S,loc:this.loc(d)}},s.parseEnumValuesDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)},s.parseEnumValueDefinition=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName(),T=this.parseDirectives(!0);return{kind:W.ENUM_VALUE_DEFINITION,description:z,name:y,directives:T,loc:this.loc(d)}},s.parseInputObjectTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("input");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseInputFieldsDefinition();return{kind:W.INPUT_OBJECT_TYPE_DEFINITION,description:z,name:y,directives:T,fields:S,loc:this.loc(d)}},s.parseInputFieldsDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)},s.parseTypeSystemExtension=function(){var d=this._lexer.lookahead();if(d.kind===g.NAME)switch(d.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(d)},s.parseSchemaExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var z=this.parseDirectives(!0),y=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===z.length&&0===y.length)throw this.unexpected();return{kind:W.SCHEMA_EXTENSION,directives:z,operationTypes:y,loc:this.loc(d)}},s.parseScalarTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var z=this.parseName(),y=this.parseDirectives(!0);if(0===y.length)throw this.unexpected();return{kind:W.SCALAR_TYPE_EXTENSION,name:z,directives:y,loc:this.loc(d)}},s.parseObjectTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var z=this.parseName(),y=this.parseImplementsInterfaces(),T=this.parseDirectives(!0),S=this.parseFieldsDefinition();if(0===y.length&&0===T.length&&0===S.length)throw this.unexpected();return{kind:W.OBJECT_TYPE_EXTENSION,name:z,interfaces:y,directives:T,fields:S,loc:this.loc(d)}},s.parseInterfaceTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var z=this.parseName(),y=this.parseImplementsInterfaces(),T=this.parseDirectives(!0),S=this.parseFieldsDefinition();if(0===y.length&&0===T.length&&0===S.length)throw this.unexpected();return{kind:W.INTERFACE_TYPE_EXTENSION,name:z,interfaces:y,directives:T,fields:S,loc:this.loc(d)}},s.parseUnionTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseUnionMemberTypes();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.UNION_TYPE_EXTENSION,name:z,directives:y,types:T,loc:this.loc(d)}},s.parseEnumTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseEnumValuesDefinition();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.ENUM_TYPE_EXTENSION,name:z,directives:y,values:T,loc:this.loc(d)}},s.parseInputObjectTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseInputFieldsDefinition();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.INPUT_OBJECT_TYPE_EXTENSION,name:z,directives:y,fields:T,loc:this.loc(d)}},s.parseDirectiveDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);var y=this.parseName(),T=this.parseArgumentDefs(),S=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var x=this.parseDirectiveLocations();return{kind:W.DIRECTIVE_DEFINITION,description:z,name:y,arguments:T,repeatable:S,locations:x,loc:this.loc(d)}},s.parseDirectiveLocations=function(){return this.delimitedMany(g.PIPE,this.parseDirectiveLocation)},s.parseDirectiveLocation=function(){var d=this._lexer.token,z=this.parseName();if(void 0!==O[z.value])return z;throw this.unexpected(d)},s.loc=function(d){var z;if(!0!==(null===(z=this._options)||void 0===z?void 0:z.noLocation))return new Y.Ye(d,this._lexer.lastToken,this._lexer.source)},s.peek=function(d){return this._lexer.token.kind===d},s.expectToken=function(d){var z=this._lexer.token;if(z.kind===d)return this._lexer.advance(),z;throw ue(this._lexer.source,z.start,"Expected ".concat(Ne(d),", found ").concat(Le(z),"."))},s.expectOptionalToken=function(d){var z=this._lexer.token;if(z.kind===d)return this._lexer.advance(),z},s.expectKeyword=function(d){var z=this._lexer.token;if(z.kind!==g.NAME||z.value!==d)throw ue(this._lexer.source,z.start,'Expected "'.concat(d,'", found ').concat(Le(z),"."));this._lexer.advance()},s.expectOptionalKeyword=function(d){var z=this._lexer.token;return z.kind===g.NAME&&z.value===d&&(this._lexer.advance(),!0)},s.unexpected=function(d){var z=null!=d?d:this._lexer.token;return ue(this._lexer.source,z.start,"Unexpected ".concat(Le(z),"."))},s.any=function(d,z,y){this.expectToken(d);for(var T=[];!this.expectOptionalToken(y);)T.push(z.call(this));return T},s.optionalMany=function(d,z,y){if(this.expectOptionalToken(d)){var T=[];do{T.push(z.call(this))}while(!this.expectOptionalToken(y));return T}return[]},s.many=function(d,z,y){this.expectToken(d);var T=[];do{T.push(z.call(this))}while(!this.expectOptionalToken(y));return T},s.delimitedMany=function(d,z){this.expectOptionalToken(d);var y=[];do{y.push(z.call(this))}while(this.expectOptionalToken(d));return y},e}();function Le(e){var s=e.value;return Ne(e.kind)+(null!=s?' "'.concat(s,'"'):"")}function Ne(e){return function _e(e){return e===g.BANG||e===g.DOLLAR||e===g.AMP||e===g.PAREN_L||e===g.PAREN_R||e===g.SPREAD||e===g.COLON||e===g.EQUALS||e===g.AT||e===g.BRACKET_L||e===g.BRACKET_R||e===g.BRACE_L||e===g.PIPE||e===g.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ue=new Map,ve=new Map,Qe=!0,xe=!1;function Re(e){return e.replace(/[\s,]+/g," ").trim()}function rt(e){var s=Re(e);if(!Ue.has(s)){var n=function Ce(e,s){return new Ie(e,s).parseDocument()}(e,{experimentalFragmentVariables:xe,allowLegacyFragmentVariables:xe});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Ue.set(s,function et(e){var s=new Set(e.definitions);s.forEach(function(d){d.loc&&delete d.loc,Object.keys(d).forEach(function(z){var y=d[z];y&&"object"==typeof y&&s.add(y)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function ot(e){var s=new Set,n=[];return e.definitions.forEach(function(d){if("FragmentDefinition"===d.kind){var z=d.name.value,y=function it(e){return Re(e.source.body.substring(e.start,e.end))}(d.loc),T=ve.get(z);T&&!T.has(y)?Qe&&console.warn("Warning: fragment with name "+z+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):T||ve.set(z,T=new Set),T.add(y),s.has(y)||(s.add(y),n.push(d))}else n.push(d)}),(0,o.pi)((0,o.pi)({},e),{definitions:n})}(n)))}return Ue.get(s)}function h(e){for(var s=[],n=1;n(function(e){e.Na="NA",e.TierIii="TIER_III",e.TierIiLevelC="TIER_II_LEVEL_C",e.TierIiLevelD="TIER_II_LEVEL_D",e.TierIv="TIER_IV",e.TierILevelA="TIER_I_LEVEL_A",e.TierILevelB="TIER_I_LEVEL_B"}(j||(j={})),j))(),l=(()=>(function(e){e.AdverseResponse="ADVERSE_RESPONSE",e.Benign="BENIGN",e.BetterOutcome="BETTER_OUTCOME",e.LikelyBenign="LIKELY_BENIGN",e.LikelyPathogenic="LIKELY_PATHOGENIC",e.Na="NA",e.Negative="NEGATIVE",e.Pathogenic="PATHOGENIC",e.PoorOutcome="POOR_OUTCOME",e.Positive="POSITIVE",e.ReducedSensitivity="REDUCED_SENSITIVITY",e.Resistance="RESISTANCE",e.Sensitivityresponse="SENSITIVITYRESPONSE",e.UncertainSignificance="UNCERTAIN_SIGNIFICANCE"}(l||(l={})),l))(),k=(()=>(function(e){e.DoesNotSupport="DOES_NOT_SUPPORT",e.Supports="SUPPORTS"}(k||(k={})),k))(),ie=(()=>(function(e){e.AmpLevel="AMP_LEVEL",e.AssertionDirection="ASSERTION_DIRECTION",e.AssertionType="ASSERTION_TYPE",e.ClinicalSignificance="CLINICAL_SIGNIFICANCE",e.DiseaseName="DISEASE_NAME",e.DrugName="DRUG_NAME",e.EvidenceItemsCount="EVIDENCE_ITEMS_COUNT",e.GeneName="GENE_NAME",e.Id="ID",e.Status="STATUS",e.Summary="SUMMARY",e.VariantName="VARIANT_NAME"}(ie||(ie={})),ie))(),ze=(()=>(function(e){e.Diagnostic="DIAGNOSTIC",e.Predictive="PREDICTIVE",e.Predisposing="PREDISPOSING",e.Prognostic="PROGNOSTIC"}(ze||(ze={})),ze))(),Te=(()=>(function(e){e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.Name="NAME",e.NctId="NCT_ID",e.SourceCount="SOURCE_COUNT"}(Te||(Te={})),Te))(),$e=(()=>(function(e){e.Conflict="CONFLICT",e.Expired="EXPIRED",e.Missing="MISSING",e.Valid="VALID"}($e||($e={})),$e))(),we=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Source="SOURCE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(we||(we={})),we))(),Ye=(()=>(function(e){e.Created="CREATED",e.LastModified="LAST_MODIFIED"}(Ye||(Ye={})),Ye))(),je=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.Doid="DOID",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.GeneCount="GENE_COUNT",e.Name="NAME",e.VariantCount="VARIANT_COUNT"}(je||(je={})),je))(),He=(()=>(function(e){e.Combination="COMBINATION",e.Sequential="SEQUENTIAL",e.Substitutes="SUBSTITUTES"}(He||(He={})),He))(),We=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.Name="NAME",e.NcitId="NCIT_ID"}(We||(We={})),We))(),Je=(()=>(function(e){e.Accepted="ACCEPTED",e.AssertionAccepted="ASSERTION_ACCEPTED",e.AssertionRejected="ASSERTION_REJECTED",e.AssertionReverted="ASSERTION_REVERTED",e.AssertionSubmitted="ASSERTION_SUBMITTED",e.Commented="COMMENTED",e.CuratedSourceSuggestion="CURATED_SOURCE_SUGGESTION",e.Flagged="FLAGGED",e.FlagResolved="FLAG_RESOLVED",e.PublicationSuggested="PUBLICATION_SUGGESTED",e.Rejected="REJECTED",e.RejectedSourceSuggestion="REJECTED_SOURCE_SUGGESTION",e.RequeuedSourceSuggestion="REQUEUED_SOURCE_SUGGESTION",e.Reverted="REVERTED",e.RevisionAccepted="REVISION_ACCEPTED",e.RevisionRejected="REVISION_REJECTED",e.RevisionSuggested="REVISION_SUGGESTED",e.RevisionSuperseded="REVISION_SUPERSEDED",e.Submitted="SUBMITTED"}(Je||(Je={})),Je))(),Xe=(()=>(function(e){e.Organization="ORGANIZATION",e.Subject="SUBJECT",e.Unscoped="UNSCOPED",e.User="USER"}(Xe||(Xe={})),Xe))(),tt=(()=>(function(e){e.AdverseResponse="ADVERSE_RESPONSE",e.Benign="BENIGN",e.BetterOutcome="BETTER_OUTCOME",e.DominantNegative="DOMINANT_NEGATIVE",e.GainOfFunction="GAIN_OF_FUNCTION",e.LikelyBenign="LIKELY_BENIGN",e.LikelyPathogenic="LIKELY_PATHOGENIC",e.LossOfFunction="LOSS_OF_FUNCTION",e.Na="NA",e.Negative="NEGATIVE",e.Neomorphic="NEOMORPHIC",e.Pathogenic="PATHOGENIC",e.PoorOutcome="POOR_OUTCOME",e.Positive="POSITIVE",e.ReducedSensitivity="REDUCED_SENSITIVITY",e.Resistance="RESISTANCE",e.Sensitivityresponse="SENSITIVITYRESPONSE",e.UnalteredFunction="UNALTERED_FUNCTION",e.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",e.Unknown="UNKNOWN"}(tt||(tt={})),tt))(),nt=(()=>(function(e){e.DoesNotSupport="DOES_NOT_SUPPORT",e.Na="NA",e.Supports="SUPPORTS"}(nt||(nt={})),nt))(),f=(()=>(function(e){e.A="A",e.B="B",e.C="C",e.D="D",e.E="E"}(f||(f={})),f))(),E=(()=>(function(e){e.ClinicalSignificance="CLINICAL_SIGNIFICANCE",e.Description="DESCRIPTION",e.DiseaseName="DISEASE_NAME",e.DrugName="DRUG_NAME",e.EvidenceDirection="EVIDENCE_DIRECTION",e.EvidenceLevel="EVIDENCE_LEVEL",e.EvidenceRating="EVIDENCE_RATING",e.EvidenceType="EVIDENCE_TYPE",e.GeneSymbol="GENE_SYMBOL",e.Id="ID",e.Status="STATUS",e.VariantName="VARIANT_NAME",e.VariantOrigin="VARIANT_ORIGIN"}(E||(E={})),E))(),C=(()=>(function(e){e.Accepted="ACCEPTED",e.Rejected="REJECTED",e.Submitted="SUBMITTED"}(C||(C={})),C))(),R=(()=>(function(e){e.Diagnostic="DIAGNOSTIC",e.Functional="FUNCTIONAL",e.Oncogenic="ONCOGENIC",e.Predictive="PREDICTIVE",e.Predisposing="PREDISPOSING",e.Prognostic="PROGNOSTIC"}(R||(R={})),R))(),ce=(()=>(function(e){e.Open="OPEN",e.Resolved="RESOLVED"}(ce||(ce={})),ce))(),he=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(he||(he={})),he))(),pt=(()=>(function(e){e.AssertionCount="assertionCount",e.DiseaseName="diseaseName",e.DrugName="drugName",e.EntrezSymbol="entrezSymbol",e.EvidenceItemCount="evidenceItemCount",e.GeneAlias="geneAlias",e.VariantCount="variantCount"}(pt||(pt={})),pt))(),mt=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(mt||(mt={})),mt))(),gt=(()=>(function(e){e.Mention="MENTION",e.Subscription="SUBSCRIPTION"}(gt||(gt={})),gt))(),ft=(()=>(function(e){e.Id="ID",e.Name="NAME"}(ft||(ft={})),ft))(),ht=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.HpoId="HPO_ID",e.Name="NAME"}(ht||(ht={})),ht))(),vt=(()=>(function(e){e.Read="READ",e.Unread="UNREAD"}(vt||(vt={})),vt))(),zt=(()=>(function(e){e.Grch37="GRCH37",e.Grch38="GRCH38",e.Ncbi36="NCBI36"}(zt||(zt={})),zt))(),yt=(()=>(function(e){e.Accepted="ACCEPTED",e.New="NEW",e.Rejected="REJECTED",e.Superseded="SUPERSEDED"}(yt||(yt={})),yt))(),Ct=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(Ct||(Ct={})),Ct))(),It=(()=>(function(e){e.Asc="ASC",e.Desc="DESC"}(It||(It={})),It))(),Tt=(()=>(function(e){e.Asco="ASCO",e.Pubmed="PUBMED"}(Tt||(Tt={})),Tt))(),_t=(()=>(function(e){e.Curated="CURATED",e.New="NEW",e.Rejected="REJECTED"}(_t||(_t={})),_t))(),St=(()=>(function(e){e.Citation="CITATION",e.CitationId="CITATION_ID",e.DiseaseName="DISEASE_NAME",e.GeneName="GENE_NAME",e.SourceType="SOURCE_TYPE",e.Submitter="SUBMITTER",e.VariantName="VARIANT_NAME"}(St||(St={})),St))(),Dt=(()=>(function(e){e.Authors="AUTHORS",e.CitationId="CITATION_ID",e.EvidenceCount="EVIDENCE_COUNT",e.Journal="JOURNAL",e.Name="NAME",e.SourceType="SOURCE_TYPE",e.Year="YEAR"}(Dt||(Dt={})),Dt))(),wt=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.SourceSuggestion="SOURCE_SUGGESTION",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(wt||(wt={})),wt))(),Et=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.Role="ROLE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(Et||(Et={})),Et))(),Nt=(()=>(function(e){e.Admin="ADMIN",e.Curator="CURATOR",e.Editor="EDITOR"}(Nt||(Nt={})),Nt))(),At=(()=>(function(e){e.Id="ID",e.LastAction="LAST_ACTION",e.Name="NAME",e.Role="ROLE"}(At||(At={})),At))(),Ot=(()=>(function(e){e.All="ALL",e.WithAccepted="WITH_ACCEPTED",e.WithAcceptedOrSubmitted="WITH_ACCEPTED_OR_SUBMITTED",e.WithSubmitted="WITH_SUBMITTED"}(Ot||(Ot={})),Ot))(),Mt=(()=>(function(e){e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.GeneNames="GENE_NAMES",e.Name="NAME",e.VariantCount="VARIANT_COUNT",e.VariantNames="VARIANT_NAMES"}(Mt||(Mt={})),Mt))(),Lt=(()=>(function(e){e.CoordinateEnd="COORDINATE_END",e.CoordinateStart="COORDINATE_START",e.Name="NAME"}(Lt||(Lt={})),Lt))(),xt=(()=>(function(e){e.CommonGermline="COMMON_GERMLINE",e.Na="NA",e.RareGermline="RARE_GERMLINE",e.Somatic="SOMATIC",e.Unknown="UNKNOWN"}(xt||(xt={})),xt))(),Ft=(()=>(function(e){e.Name="NAME",e.Soid="SOID",e.VariantCount="VARIANT_COUNT"}(Ft||(Ft={})),Ft))(),bt=(()=>(function(e){e.AssertionCount="assertionCount",e.DiseaseName="diseaseName",e.DrugName="drugName",e.EntrezSymbol="entrezSymbol",e.EvidenceItemCount="evidenceItemCount",e.EvidenceScore="evidenceScore",e.VariantName="variantName"}(bt||(bt={})),bt))();const Zt=h` +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4024],{1912:(De,re,r)=>{r.d(re,{s:()=>le});var o=r(5e3),i=r(6042),t=r(2643),D=r(2683),F=r(3640),B=r(2160),q=r(3762),A=r(647);let L=(()=>{class te{constructor(oe){this.cookies=oe,this.location=function Z(te){return encodeURIComponent(te).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}(window.location.href),this.xsrfToken=this.cookies.get("XSRF-TOKEN")}ngOnInit(){}}return te.\u0275fac=function(oe){return new(oe||te)(o.Y36(B.N))},te.\u0275cmp=o.Xpm({type:te,selectors:[["cvc-auth-options-list"]],decls:18,vars:6,consts:[["nzBordered","false","nzSplit","false"],["method","post",3,"action"],["type","hidden","name","authenticity_token",3,"value"],["type","submit","nz-button","","nzBlock","","nzType","default","nzSize","large","nzShape","round"],["nz-icon","","nzType","google"],["nz-icon","","nzType","github"]],template:function(oe,V){1&oe&&(o.TgZ(0,"nz-list",0),o.TgZ(1,"nz-list-item"),o.TgZ(2,"form",1),o._UZ(3,"input",2),o.TgZ(4,"button",3),o._UZ(5,"i",4),o._uU(6," Sign In with a Google Account "),o.qZA(),o.qZA(),o.qZA(),o.TgZ(7,"nz-list-item"),o.TgZ(8,"form",1),o._UZ(9,"input",2),o.TgZ(10,"button",3),o._uU(11," Sign In with an ORCID Account "),o.qZA(),o.qZA(),o.qZA(),o.TgZ(12,"nz-list-item"),o.TgZ(13,"form",1),o._UZ(14,"input",2),o.TgZ(15,"button",3),o._UZ(16,"i",5),o._uU(17," Sign In with a Github Account "),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&oe&&(o.xp6(2),o.MGl("action","/api/auth/google_oauth2?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken),o.xp6(5),o.MGl("action","/api/auth/orcid?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken),o.xp6(4),o.MGl("action","/api/auth/github?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken))},directives:[q.n_,q.AA,i.ix,t.dQ,D.w,A.Ls],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}"]}),te})();function G(te,se){1&te&&(o.ynx(0),o.TgZ(1,"p",5),o._uU(2,"Click on one of the OAuth providers below to sign into CIViC. If you do not not have a CIViC account, one will be created for you based upon the account information your OAuth provider provides."),o.qZA(),o._UZ(3,"cvc-auth-options-list"),o.BQk())}function K(te,se){1&te&&o._uU(0," Sign In / Sign Up\n")}function H(te,se){if(1&te){const oe=o.EpF();o.TgZ(0,"button",0),o.NdJ("click",function(){return o.CHM(oe),o.oxw().handleCancel()}),o._uU(1,"Cancel"),o.qZA()}}let le=(()=>{class te{constructor(){this.authVisible=!1}ngOnInit(){}showAuth(){this.authVisible=!0}handleCancel(){this.authVisible=!1}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275cmp=o.Xpm({type:te,selectors:[["cvc-login-button"]],decls:9,vars:3,consts:[["nz-button","","nzType","primary","nzValue","small",3,"click"],[3,"nzVisible","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],[4,"nzModalContent"],["loginModalTitle",""],["loginModalFooter",""],["nzType","secondary"]],template:function(oe,V){if(1&oe&&(o.TgZ(0,"button",0),o.NdJ("click",function(){return V.showAuth()}),o.TgZ(1,"span"),o._uU(2,"Sign In / Sign Up"),o.qZA(),o.qZA(),o.TgZ(3,"nz-modal",1),o.NdJ("nzVisibleChange",function(I){return V.authVisible=I})("nzOnCancel",function(){return V.handleCancel()}),o.YNc(4,G,4,0,"ng-container",2),o.qZA(),o.YNc(5,K,1,0,"ng-template",null,3,o.W1O),o.YNc(7,H,2,0,"ng-template",null,4,o.W1O)),2&oe){const b=o.MAs(6),I=o.MAs(8);o.xp6(3),o.Q6J("nzVisible",V.authVisible)("nzTitle",b)("nzFooter",I)}},directives:[i.ix,t.dQ,D.w,F.du,F.Hf,L],styles:["[_nghost-%COMP%]{display:inline-block}"]}),te})()},1844:(De,re,r)=>{r.d(re,{B:()=>q});var o=r(9808),i=r(6042),t=r(3640),D=r(3762),F=r(647),Z=r(5e3);let B=(()=>{class A{}return A.\u0275fac=function(G){return new(G||A)},A.\u0275mod=Z.oAB({type:A}),A.\u0275inj=Z.cJS({imports:[[o.ez,F.PV,D.Ph,i.sL]]}),A})(),q=(()=>{class A{}return A.\u0275fac=function(G){return new(G||A)},A.\u0275mod=Z.oAB({type:A}),A.\u0275inj=Z.cJS({imports:[[o.ez,i.sL,t.Qp,B]]}),A})()},7881:(De,re,r)=>{r.d(re,{L:()=>Z});var o=r(5e3),i=r(9808),t=r(6699);function D(B,q){if(1&B&&o._UZ(0,"nz-avatar",2),2&B){const A=o.oxw();o.Q6J("nzSrc",A.user.profileImagePath)("nzShape",A.shape?A.shape:"circle")("nzSize",A.size)}}function F(B,q){if(1&B&&(o._UZ(0,"nz-avatar",3),o.ALo(1,"uppercase")),2&B){const A=o.oxw();o.Q6J("nzSize",A.size)("nzText",o.lcZ(1,2,A.user.displayName.charAt(0)))}}let Z=(()=>{class B{ngOnInit(){if(void 0===this.user)throw new Error("Must supply a user to use this component");void 0===this.size&&(this.size="default")}}return B.\u0275fac=function(A){return new(A||B)},B.\u0275cmp=o.Xpm({type:B,selectors:[["cvc-user-avatar"]],inputs:{user:"user",size:"size",shape:"shape"},decls:3,vars:2,consts:[["nz-comment-avatar","",3,"nzSrc","nzShape","nzSize",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc","nzShape","nzSize"],["nz-comment-avatar","",3,"nzSize","nzText"]],template:function(A,L){if(1&A&&(o.YNc(0,D,1,3,"nz-avatar",0),o.YNc(1,F,2,4,"ng-template",null,1,o.W1O)),2&A){const G=o.MAs(2);o.Q6J("ngIf",L.user.profileImagePath)("ngIfElse",G)}},directives:[i.O5,t.Dz],pipes:[i.gd],styles:["[_nghost-%COMP%]{display:inline-block}"]}),B})()},5473:(De,re,r)=>{r.d(re,{H:()=>D});var o=r(9808),i=r(6699),t=r(5e3);let D=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[[o.ez,i.Rt]]}),F})()},9350:(De,re,r)=>{r.d(re,{a:()=>A});var o=r(4850),i=r(5154),t=r(373),D=r(1059),F=r(712),Z=r(5e3),B=r(520);const q={mostRecentOrg:void 0,signedIn:!1,isAdmin:!1,isEditor:!1,isCurator:!1,canCurate:!1,canModerate:!1,invalidCoi:!0};let A=(()=>{class L{constructor(K,H){function le(I){return!(!I||I.role!==F.i44.Admin)}function te(I){return!(!I||I.role!==F.i44.Editor&&I.role!==F.i44.Admin)}function se(I){return!(!I||I.role!==F.i44.Curator)}function oe(I){return!(!I||I.role!==F.i44.Curator&&I.role!==F.i44.Editor&&I.role!==F.i44.Admin)}function V(I){var $,ne;return!(!I||I.role!==F.i44.Editor&&I.role!==F.i44.Admin||!I.mostRecentConflictOfInterestStatement||(null===($=I.mostRecentConflictOfInterestStatement)||void 0===$?void 0:$.coiStatus)!=F.Mgx.Conflict&&(null===(ne=I.mostRecentConflictOfInterestStatement)||void 0===ne?void 0:ne.coiStatus)!=F.Mgx.Valid)}function b(I){if(I.mostRecentOrganizationId)return I.organizations.find($=>$.id===I.mostRecentOrganizationId)}this.viewerBaseGQL=K,this.http=H,this.queryRef=this.viewerBaseGQL.watch(),this.data$=this.queryRef.valueChanges.pipe((0,o.U)(I=>({data:I.data,loading:I.loading,networkStatus:I.networkStatus})),(0,i.d)(1)),this.isLoading$=this.data$.pipe((0,t.j)("loading"),(0,D.O)(!0)),this.viewer$=this.data$.pipe((0,t.j)("data","viewer"),(0,o.U)(I=>Object.assign(Object.assign({},I),{signedIn:null!==I,signedOut:null===I,canCurate:oe(I),canModerate:V(I),isAdmin:le(I),isEditor:te(I),isCurator:se(I),organizations:null===I?[]:I.organizations,mostRecentOrg:null===I?void 0:b(I),invalidCoi:te(I)&&(!I.mostRecentConflictOfInterestStatement||I.mostRecentConflictOfInterestStatement.coiStatus===F.Mgx.Expired||I.mostRecentConflictOfInterestStatement.coiStatus===F.Mgx.Missing)})),(0,D.O)(q),(0,i.d)(1)),this.signedIn$=this.viewer$.pipe((0,o.U)(I=>I.signedIn)),this.signedOut$=this.viewer$.pipe((0,o.U)(I=>I.signedOut)),this.isAdmin$=this.viewer$.pipe((0,o.U)(I=>le(I))),this.isEditor$=this.viewer$.pipe((0,o.U)(I=>te(I))),this.isCurator$=this.viewer$.pipe((0,o.U)(I=>se(I))),this.canCurate$=this.viewer$.pipe((0,o.U)(I=>oe(I))),this.canModerate$=this.viewer$.pipe((0,o.U)(I=>V(I)))}signOut(){this.http.get("/api/sign_out").subscribe(K=>{this.refetch()})}refetch(){this.queryRef.refetch()}ngOnDestroy(){}}return L.\u0275fac=function(K){return new(K||L)(Z.LFG(F.Tt7),Z.LFG(B.eN))},L.\u0275prov=Z.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},6123:(De,re,r)=>{r.d(re,{U:()=>F});var o=r(8929),i=r(591),t=r(7625),D=r(537);class F{constructor(B){this.networkErrorService=B}mutate(B,q,A){let L=new o.xQ,G={isSubmitting$:new i.X(!1),submitSuccess$:new i.X(!1),submitError$:new i.X([]),cleanup:()=>{L.next(),L.complete()}};return G.isSubmitting$.next(!0),B.mutate(q).pipe((0,t.R)(L),(0,D.x)(()=>{G.isSubmitting$.next(!1)})).subscribe({next:K=>{K.data&&A&&A(K.data)},error:K=>{K.graphQLErrors.length>0?G.submitError$.next(K.graphQLErrors.map(H=>H.message)):K.networkError&&this.networkErrorService.networkError$.next(K.networkError),G.cleanup()},complete:()=>{G.submitError$.next([]),G.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),G.cleanup()}}),G}}},822:(De,re,r)=>{r.d(re,{V:()=>q});var o=r(5e3),i=r(9808),t=r(2359);function D(A,L){if(1&A&&o._UZ(0,"nz-alert",4),2&A){const G=o.oxw();o.Q6J("nzDescription",G.errors[0])}}function F(A,L){if(1&A&&o._UZ(0,"nz-alert",5),2&A){o.oxw();const G=o.MAs(3);o.Q6J("nzDescription",G)}}function Z(A,L){if(1&A&&(o.TgZ(0,"li"),o._uU(1),o.qZA()),2&A){const G=L.$implicit;o.xp6(1),o.Oqu(G)}}function B(A,L){if(1&A&&(o.TgZ(0,"ul",6),o.YNc(1,Z,2,1,"li",7),o.qZA()),2&A){const G=o.oxw();o.xp6(1),o.Q6J("ngForOf",G.errors)}}let q=(()=>{class A{constructor(){}ngOnInit(){}}return A.\u0275fac=function(G){return new(G||A)},A.\u0275cmp=o.Xpm({type:A,selectors:[["cvc-form-errors-alert"]],inputs:{errors:"errors"},decls:4,vars:2,consts:[["nzType","error","nzShowIcon","",3,"nzDescription",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occured",3,"nzDescription",4,"ngIf"],["nzSize","small"],["errorList",""],["nzType","error","nzShowIcon","",3,"nzDescription"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occured",3,"nzDescription"],[1,"error-list"],[4,"ngFor","ngForOf"]],template:function(G,K){1&G&&(o.YNc(0,D,1,1,"nz-alert",0),o.YNc(1,F,1,1,"nz-alert",1),o.YNc(2,B,2,1,"ng-template",2,3,o.W1O)),2&G&&(o.Q6J("ngIf",1===K.errors.length),o.xp6(1),o.Q6J("ngIf",K.errors.length>1))},directives:[i.O5,t.r,i.sg],styles:["[_nghost-%COMP%]{display:block}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"]}),A})()},7008:(De,re,r)=>{r.d(re,{B:()=>D});var o=r(9808),i=r(2359),t=r(5e3);let D=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[[o.ez,i.L]]}),F})()},8785:(De,re,r)=>{r.d(re,{t:()=>ne});var o=r(5e3),i=r(6123),t=r(8929),D=r(7625),F=r(712),Z=r(9169),B=r(7484),q=r(9808),A=r(2359),L=r(1894),G=r(4546),K=r(822),H=r(7525),le=r(3868),te=r(4182),se=r(6042),oe=r(2643),V=r(2683);function b(X,de){1&X&&o._UZ(0,"nz-alert",7)}function I(X,de){if(1&X&&(o.TgZ(0,"nz-form-item"),o._UZ(1,"cvc-form-errors-alert",8),o.qZA()),2&X){const fe=o.oxw();o.xp6(1),o.Q6J("errors",fe.errorMessages)}}function $(X,de){if(1&X){const fe=o.EpF();o.TgZ(0,"nz-form-item"),o.TgZ(1,"textarea",9),o.NdJ("ngModelChange",function(ue){return o.CHM(fe),o.oxw().coiText=ue}),o.qZA(),o.qZA()}if(2&X){const fe=o.oxw();o.xp6(1),o.Q6J("ngModel",fe.coiText)}}let ne=(()=>{class X{constructor(fe,pe){this.updateCoiGql=fe,this.coiUpdatedEvent=new o.vpe,this.coiText=void 0,this.coiStatus="noCoi",this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new t.xQ,this.updateCoiMutator=new i.U(pe)}updateCoi(){if("coiPresent"===this.coiStatus&&this.coiText||"noCoi"===this.coiStatus){this.errorMessages=[];let pe=this.updateCoiMutator.mutate(this.updateCoiGql,{input:{coiPresent:"coiPresent"===this.coiStatus,statement:this.coiText}});pe.submitSuccess$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{ue&&(this.resetForm(),this.success=!0,this.coiUpdatedEvent.emit())}),pe.submitError$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{ue&&(this.errorMessages=ue,this.success=!1)}),pe.isSubmitting$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{this.loading=ue})}}resetForm(){this.coiStatus="noCoi",this.coiText=void 0}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return X.\u0275fac=function(fe){return new(fe||X)(o.Y36(F.IP1),o.Y36(Z.Y))},X.\u0275cmp=o.Xpm({type:X,selectors:[["cvc-user-coi-form"]],outputs:{coiUpdatedEvent:"coiUpdatedEvent"},decls:14,vars:6,consts:[["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],[3,"ngModel","ngModelChange"],["nz-radio","","nzValue","noCoi"],["nz-radio","","nzValue","coiPresent"],["type","submit","nz-button","","nzType","primary","nzSize","small",3,"disabled","click"],["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable",""],[3,"errors"],["nz-input","","rows","5","placeholder","Provide a concise description of any potential or actual conflicts of interest that you may have in curating CIViC",2,"width","100%",3,"ngModel","ngModelChange"]],template:function(fe,pe){1&fe&&(o.TgZ(0,"nz-card"),o.YNc(1,b,1,0,"nz-alert",0),o.YNc(2,I,2,1,"nz-form-item",1),o.TgZ(3,"nz-spin",2),o.TgZ(4,"nz-form-item"),o.TgZ(5,"nz-radio-group",3),o.NdJ("ngModelChange",function(W){return pe.coiStatus=W}),o.TgZ(6,"label",4),o._uU(7,"I do not have any potential conflicts of interest."),o.qZA(),o.TgZ(8,"label",5),o._uU(9,"I do have a potential conflict of interest."),o.qZA(),o.qZA(),o.qZA(),o.YNc(10,$,2,1,"nz-form-item",1),o.TgZ(11,"nz-form-item"),o.TgZ(12,"button",6),o.NdJ("click",function(){return pe.updateCoi()}),o._uU(13," Save Conflict of Interest Statement "),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&fe&&(o.xp6(1),o.Q6J("ngIf",pe.success),o.xp6(1),o.Q6J("ngIf",pe.errorMessages.length>0),o.xp6(1),o.Q6J("nzSpinning",pe.loading),o.xp6(2),o.Q6J("ngModel",pe.coiStatus),o.xp6(5),o.Q6J("ngIf","coiPresent"===pe.coiStatus),o.xp6(2),o.Q6J("disabled",pe.loading||"coiPresent"===pe.coiStatus&&(void 0===pe.coiText||pe.coiText.length<10)))},directives:[B.bd,q.O5,A.r,L.SK,G.Nx,K.V,H.W,le.Dg,te.JJ,te.On,le.Of,te.Fj,se.ix,oe.dQ,V.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),X})()},330:(De,re,r)=>{r.d(re,{e:()=>K});var o=r(9808),i=r(4182),t=r(6949),D=r(7484),F=r(2359),Z=r(4546),B=r(7008),q=r(3868),A=r(7525),L=r(6042),G=r(5e3);let K=(()=>{class H{}return H.\u0275fac=function(te){return new(te||H)},H.\u0275mod=G.oAB({type:H}),H.\u0275inj=G.cJS({imports:[[o.ez,i.u5,Z.U5,i.UX,t.WG,D.vh,F.L,q.aF,L.sL,A.j,B.B]]}),H})()},712:(De,re,r)=>{r.d(re,{ti:()=>ji,$G1:()=>nr,iGM:()=>Jo,KNk:()=>sr,T97:()=>ur,RMv:()=>Ar,LUc:()=>br,iwm:()=>j,Vr2:()=>l,A94:()=>zs,mdl:()=>k,Gbq:()=>ai,bgg:()=>Qo,u4i:()=>ie,ejK:()=>Cs,uBv:()=>ze,td:()=>li,Tq1:()=>Ii,q8c:()=>Pi,WRV:()=>go,IZ6:()=>zo,qf4:()=>Eo,Rdc:()=>$o,gtM:()=>Er,fpJ:()=>Tr,k2T:()=>Cr,UWf:()=>po,cMj:()=>Ts,UIR:()=>di,E8d:()=>Te,P_b:()=>mi,Mgx:()=>Fe,iST:()=>fi,Kk:()=>vi,OfU:()=>ke,kQf:()=>io,l4w:()=>ss,JQ3:()=>Sr,db2:()=>Zs,h01:()=>Ye,wg3:()=>Ss,k7O:()=>yi,kv3:()=>or,R8w:()=>Je,GB2:()=>Es,Zyn:()=>He,dUU:()=>_i,kq9:()=>nt,vRc:()=>cr,Ud2:()=>Di,GYx:()=>er,AO2:()=>Qe,BTF:()=>Ni,wJ2:()=>je,eY8:()=>Li,_Aq:()=>ut,pHu:()=>As,tI1:()=>Xe,Q_P:()=>Gr,Sx0:()=>f,Ybm:()=>Oi,Cp0:()=>E,RTy:()=>C,sBY:()=>Ms,kqt:()=>R,Zhw:()=>pr,B0s:()=>Zr,rzy:()=>Fi,BQZ:()=>ce,sfv:()=>he,TNk:()=>xs,rJ8:()=>Ri,FOU:()=>Jr,Q4m:()=>gr,Fvz:()=>mt,cCu:()=>bs,_jb:()=>lo,MYm:()=>ao,oRL:()=>gt,lfy:()=>hr,fow:()=>ft,X5f:()=>Ui,WOS:()=>$s,Lr0:()=>Gs,Del:()=>Bs,xlL:()=>ht,io:()=>Vi,WGV:()=>Qs,OHm:()=>ki,lYz:()=>vt,FKQ:()=>zr,B97:()=>Wi,mII:()=>Ko,ghc:()=>wi,NQC:()=>zt,JDX:()=>yt,VZq:()=>Hi,EwB:()=>Yr,FJi:()=>Ct,L5n:()=>to,rZD:()=>It,SrV:()=>Tt,Bk6:()=>Ys,TiL:()=>ho,yic:()=>_t,SJD:()=>Ht,F3s:()=>St,jw9:()=>Dt,g0X:()=>Js,iXf:()=>Mn,NbY:()=>Mr,kQl:()=>Et,LLl:()=>Yo,WFw:()=>Qr,tji:()=>ps,o71:()=>qe,jMx:()=>oa,A4J:()=>ro,c$m:()=>Zo,Vj7:()=>Br,D9L:()=>Kr,SWk:()=>Xr,aw3:()=>cs,Xft:()=>hs,mpB:()=>Gt,m$d:()=>na,IP1:()=>ns,LiH:()=>ea,wRZ:()=>es,wbP:()=>os,sLD:()=>Ks,yqR:()=>Xs,cEv:()=>Co,i44:()=>Nt,vMt:()=>Xo,tJ6:()=>To,IRu:()=>At,Qzn:()=>qi,iJT:()=>pa,qP7:()=>Ot,Qtd:()=>sa,Zo2:()=>So,ROj:()=>us,FB1:()=>Mt,q1D:()=>ca,d4o:()=>Lt,huM:()=>xt,ZYZ:()=>xo,nnL:()=>gs,Bo4:()=>ga,ubO:()=>ua,tw_:()=>Ao,wpb:()=>Ft,BnY:()=>$r,_eC:()=>xr,fwG:()=>Mo,zwS:()=>bo,pP7:()=>bt,Tt7:()=>Go,Kmw:()=>Bo});var o=r(655);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}var D=r(9245);function F(e,s){for(var y,n=/\r\n|[\n\r]/g,d=1,z=s+1;(y=n.exec(e.body))&&y.index120){for(var Rt=Math.floor(x/80),wt=x%80,We=[],we=0;we",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),w=r(6261),O=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),Q=r(2032),ye=function(){function e(n){var d=new Y.WU(g.SOF,0,0,0,0,null);this.source=n,this.lastToken=d,this.token=d,this.line=1,this.lineStart=0}var s=e.prototype;return s.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},s.lookahead=function(){var d=this.token;if(d.kind!==g.EOF)do{var z;d=null!==(z=d.next)&&void 0!==z?z:d.next=Ee(this,d)}while(d.kind===g.COMMENT);return d},e}();function Se(e){return isNaN(e)?g.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Ee(e,s){for(var n=e.source,d=n.body,z=d.length,y=s.end;y31||9===T));return new Y.WU(g.COMMENT,s,S,n,d,z,y.slice(s+1,S))}function Ve(e,s,n,d,z,y){var T=e.body,S=n,x=s,me=!1;if(45===S&&(S=T.charCodeAt(++x)),48===S){if((S=T.charCodeAt(++x))>=48&&S<=57)throw ue(e,x,"Invalid number, unexpected digit after 0: ".concat(Se(S),"."))}else x=Pe(e,x,S),S=T.charCodeAt(x);if(46===S&&(me=!0,S=T.charCodeAt(++x),x=Pe(e,x,S),S=T.charCodeAt(x)),(69===S||101===S)&&(me=!0,(43===(S=T.charCodeAt(++x))||45===S)&&(S=T.charCodeAt(++x)),x=Pe(e,x,S),S=T.charCodeAt(x)),46===S||function ge(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(S))throw ue(e,x,"Invalid number, expected digit but got: ".concat(Se(S),"."));return new Y.WU(me?g.FLOAT:g.INT,s,x,d,z,y,T.slice(s,x))}function Pe(e,s,n){var d=e.body,z=s,y=n;if(y>=48&&y<=57){do{y=d.charCodeAt(++z)}while(y>=48&&y<=57);return z}throw ue(e,z,"Invalid number, expected digit but got: ".concat(Se(y),"."))}function N(e,s,n,d,z){for(var y=e.body,T=s+1,S=T,x=0,me="";T=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function U(e,s,n,d,z){for(var y=e.body,T=y.length,S=s+1,x=0;S!==T&&!isNaN(x=y.charCodeAt(S))&&(95===x||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122);)++S;return new Y.WU(g.NAME,s,S,n,d,z,y.slice(s,S))}var Ie=function(){function e(n,d){var z=(0,w.T)(n)?n:new w.H(n);this._lexer=new ye(z),this._options=d}var s=e.prototype;return s.parseName=function(){var d=this.expectToken(g.NAME);return{kind:W.NAME,value:d.value,loc:this.loc(d)}},s.parseDocument=function(){var d=this._lexer.token;return{kind:W.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF),loc:this.loc(d)}},s.parseDefinition=function(){if(this.peek(g.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(g.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},s.parseOperationDefinition=function(){var d=this._lexer.token;if(this.peek(g.BRACE_L))return{kind:W.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(d)};var y,z=this.parseOperationType();return this.peek(g.NAME)&&(y=this.parseName()),{kind:W.OPERATION_DEFINITION,operation:z,name:y,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(d)}},s.parseOperationType=function(){var d=this.expectToken(g.NAME);switch(d.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(d)},s.parseVariableDefinitions=function(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)},s.parseVariableDefinition=function(){var d=this._lexer.token;return{kind:W.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(d)}},s.parseVariable=function(){var d=this._lexer.token;return this.expectToken(g.DOLLAR),{kind:W.VARIABLE,name:this.parseName(),loc:this.loc(d)}},s.parseSelectionSet=function(){var d=this._lexer.token;return{kind:W.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R),loc:this.loc(d)}},s.parseSelection=function(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()},s.parseField=function(){var y,T,d=this._lexer.token,z=this.parseName();return this.expectOptionalToken(g.COLON)?(y=z,T=this.parseName()):T=z,{kind:W.FIELD,alias:y,name:T,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(d)}},s.parseArguments=function(d){return this.optionalMany(g.PAREN_L,d?this.parseConstArgument:this.parseArgument,g.PAREN_R)},s.parseArgument=function(){var d=this._lexer.token,z=this.parseName();return this.expectToken(g.COLON),{kind:W.ARGUMENT,name:z,value:this.parseValueLiteral(!1),loc:this.loc(d)}},s.parseConstArgument=function(){var d=this._lexer.token;return{kind:W.ARGUMENT,name:this.parseName(),value:(this.expectToken(g.COLON),this.parseValueLiteral(!0)),loc:this.loc(d)}},s.parseFragment=function(){var d=this._lexer.token;this.expectToken(g.SPREAD);var z=this.expectOptionalKeyword("on");return!z&&this.peek(g.NAME)?{kind:W.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(d)}:{kind:W.INLINE_FRAGMENT,typeCondition:z?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(d)}},s.parseFragmentDefinition=function(){var d,z=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(d=this._options)||void 0===d?void 0:d.experimentalFragmentVariables)?{kind:W.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(z)}:{kind:W.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(z)}},s.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},s.parseValueLiteral=function(d){var z=this._lexer.token;switch(z.kind){case g.BRACKET_L:return this.parseList(d);case g.BRACE_L:return this.parseObject(d);case g.INT:return this._lexer.advance(),{kind:W.INT,value:z.value,loc:this.loc(z)};case g.FLOAT:return this._lexer.advance(),{kind:W.FLOAT,value:z.value,loc:this.loc(z)};case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:switch(this._lexer.advance(),z.value){case"true":return{kind:W.BOOLEAN,value:!0,loc:this.loc(z)};case"false":return{kind:W.BOOLEAN,value:!1,loc:this.loc(z)};case"null":return{kind:W.NULL,loc:this.loc(z)};default:return{kind:W.ENUM,value:z.value,loc:this.loc(z)}}case g.DOLLAR:if(!d)return this.parseVariable()}throw this.unexpected()},s.parseStringLiteral=function(){var d=this._lexer.token;return this._lexer.advance(),{kind:W.STRING,value:d.value,block:d.kind===g.BLOCK_STRING,loc:this.loc(d)}},s.parseList=function(d){var z=this,y=this._lexer.token;return{kind:W.LIST,values:this.any(g.BRACKET_L,function(){return z.parseValueLiteral(d)},g.BRACKET_R),loc:this.loc(y)}},s.parseObject=function(d){var z=this,y=this._lexer.token;return{kind:W.OBJECT,fields:this.any(g.BRACE_L,function(){return z.parseObjectField(d)},g.BRACE_R),loc:this.loc(y)}},s.parseObjectField=function(d){var z=this._lexer.token,y=this.parseName();return this.expectToken(g.COLON),{kind:W.OBJECT_FIELD,name:y,value:this.parseValueLiteral(d),loc:this.loc(z)}},s.parseDirectives=function(d){for(var z=[];this.peek(g.AT);)z.push(this.parseDirective(d));return z},s.parseDirective=function(d){var z=this._lexer.token;return this.expectToken(g.AT),{kind:W.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(d),loc:this.loc(z)}},s.parseTypeReference=function(){var z,d=this._lexer.token;return this.expectOptionalToken(g.BRACKET_L)?(z=this.parseTypeReference(),this.expectToken(g.BRACKET_R),z={kind:W.LIST_TYPE,type:z,loc:this.loc(d)}):z=this.parseNamedType(),this.expectOptionalToken(g.BANG)?{kind:W.NON_NULL_TYPE,type:z,loc:this.loc(d)}:z},s.parseNamedType=function(){var d=this._lexer.token;return{kind:W.NAMED_TYPE,name:this.parseName(),loc:this.loc(d)}},s.parseTypeSystemDefinition=function(){var d=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(d.kind===g.NAME)switch(d.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(d)},s.peekDescription=function(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)},s.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},s.parseSchemaDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("schema");var y=this.parseDirectives(!0),T=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return{kind:W.SCHEMA_DEFINITION,description:z,directives:y,operationTypes:T,loc:this.loc(d)}},s.parseOperationTypeDefinition=function(){var d=this._lexer.token,z=this.parseOperationType();this.expectToken(g.COLON);var y=this.parseNamedType();return{kind:W.OPERATION_TYPE_DEFINITION,operation:z,type:y,loc:this.loc(d)}},s.parseScalarTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("scalar");var y=this.parseName(),T=this.parseDirectives(!0);return{kind:W.SCALAR_TYPE_DEFINITION,description:z,name:y,directives:T,loc:this.loc(d)}},s.parseObjectTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("type");var y=this.parseName(),T=this.parseImplementsInterfaces(),S=this.parseDirectives(!0),x=this.parseFieldsDefinition();return{kind:W.OBJECT_TYPE_DEFINITION,description:z,name:y,interfaces:T,directives:S,fields:x,loc:this.loc(d)}},s.parseImplementsInterfaces=function(){var d;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(d=this._options)||void 0===d?void 0:d.allowLegacySDLImplementsInterfaces)){var z=[];this.expectOptionalToken(g.AMP);do{z.push(this.parseNamedType())}while(this.expectOptionalToken(g.AMP)||this.peek(g.NAME));return z}return this.delimitedMany(g.AMP,this.parseNamedType)},s.parseFieldsDefinition=function(){var d;return!0===(null===(d=this._options)||void 0===d?void 0:d.allowLegacySDLEmptyFields)&&this.peek(g.BRACE_L)&&this._lexer.lookahead().kind===g.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)},s.parseFieldDefinition=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName(),T=this.parseArgumentDefs();this.expectToken(g.COLON);var S=this.parseTypeReference(),x=this.parseDirectives(!0);return{kind:W.FIELD_DEFINITION,description:z,name:y,arguments:T,type:S,directives:x,loc:this.loc(d)}},s.parseArgumentDefs=function(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)},s.parseInputValueDef=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName();this.expectToken(g.COLON);var S,T=this.parseTypeReference();this.expectOptionalToken(g.EQUALS)&&(S=this.parseValueLiteral(!0));var x=this.parseDirectives(!0);return{kind:W.INPUT_VALUE_DEFINITION,description:z,name:y,type:T,defaultValue:S,directives:x,loc:this.loc(d)}},s.parseInterfaceTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("interface");var y=this.parseName(),T=this.parseImplementsInterfaces(),S=this.parseDirectives(!0),x=this.parseFieldsDefinition();return{kind:W.INTERFACE_TYPE_DEFINITION,description:z,name:y,interfaces:T,directives:S,fields:x,loc:this.loc(d)}},s.parseUnionTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("union");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseUnionMemberTypes();return{kind:W.UNION_TYPE_DEFINITION,description:z,name:y,directives:T,types:S,loc:this.loc(d)}},s.parseUnionMemberTypes=function(){return this.expectOptionalToken(g.EQUALS)?this.delimitedMany(g.PIPE,this.parseNamedType):[]},s.parseEnumTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("enum");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseEnumValuesDefinition();return{kind:W.ENUM_TYPE_DEFINITION,description:z,name:y,directives:T,values:S,loc:this.loc(d)}},s.parseEnumValuesDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)},s.parseEnumValueDefinition=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName(),T=this.parseDirectives(!0);return{kind:W.ENUM_VALUE_DEFINITION,description:z,name:y,directives:T,loc:this.loc(d)}},s.parseInputObjectTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("input");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseInputFieldsDefinition();return{kind:W.INPUT_OBJECT_TYPE_DEFINITION,description:z,name:y,directives:T,fields:S,loc:this.loc(d)}},s.parseInputFieldsDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)},s.parseTypeSystemExtension=function(){var d=this._lexer.lookahead();if(d.kind===g.NAME)switch(d.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(d)},s.parseSchemaExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var z=this.parseDirectives(!0),y=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===z.length&&0===y.length)throw this.unexpected();return{kind:W.SCHEMA_EXTENSION,directives:z,operationTypes:y,loc:this.loc(d)}},s.parseScalarTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var z=this.parseName(),y=this.parseDirectives(!0);if(0===y.length)throw this.unexpected();return{kind:W.SCALAR_TYPE_EXTENSION,name:z,directives:y,loc:this.loc(d)}},s.parseObjectTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var z=this.parseName(),y=this.parseImplementsInterfaces(),T=this.parseDirectives(!0),S=this.parseFieldsDefinition();if(0===y.length&&0===T.length&&0===S.length)throw this.unexpected();return{kind:W.OBJECT_TYPE_EXTENSION,name:z,interfaces:y,directives:T,fields:S,loc:this.loc(d)}},s.parseInterfaceTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var z=this.parseName(),y=this.parseImplementsInterfaces(),T=this.parseDirectives(!0),S=this.parseFieldsDefinition();if(0===y.length&&0===T.length&&0===S.length)throw this.unexpected();return{kind:W.INTERFACE_TYPE_EXTENSION,name:z,interfaces:y,directives:T,fields:S,loc:this.loc(d)}},s.parseUnionTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseUnionMemberTypes();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.UNION_TYPE_EXTENSION,name:z,directives:y,types:T,loc:this.loc(d)}},s.parseEnumTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseEnumValuesDefinition();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.ENUM_TYPE_EXTENSION,name:z,directives:y,values:T,loc:this.loc(d)}},s.parseInputObjectTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseInputFieldsDefinition();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.INPUT_OBJECT_TYPE_EXTENSION,name:z,directives:y,fields:T,loc:this.loc(d)}},s.parseDirectiveDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);var y=this.parseName(),T=this.parseArgumentDefs(),S=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var x=this.parseDirectiveLocations();return{kind:W.DIRECTIVE_DEFINITION,description:z,name:y,arguments:T,repeatable:S,locations:x,loc:this.loc(d)}},s.parseDirectiveLocations=function(){return this.delimitedMany(g.PIPE,this.parseDirectiveLocation)},s.parseDirectiveLocation=function(){var d=this._lexer.token,z=this.parseName();if(void 0!==O[z.value])return z;throw this.unexpected(d)},s.loc=function(d){var z;if(!0!==(null===(z=this._options)||void 0===z?void 0:z.noLocation))return new Y.Ye(d,this._lexer.lastToken,this._lexer.source)},s.peek=function(d){return this._lexer.token.kind===d},s.expectToken=function(d){var z=this._lexer.token;if(z.kind===d)return this._lexer.advance(),z;throw ue(this._lexer.source,z.start,"Expected ".concat(Ne(d),", found ").concat(Le(z),"."))},s.expectOptionalToken=function(d){var z=this._lexer.token;if(z.kind===d)return this._lexer.advance(),z},s.expectKeyword=function(d){var z=this._lexer.token;if(z.kind!==g.NAME||z.value!==d)throw ue(this._lexer.source,z.start,'Expected "'.concat(d,'", found ').concat(Le(z),"."));this._lexer.advance()},s.expectOptionalKeyword=function(d){var z=this._lexer.token;return z.kind===g.NAME&&z.value===d&&(this._lexer.advance(),!0)},s.unexpected=function(d){var z=null!=d?d:this._lexer.token;return ue(this._lexer.source,z.start,"Unexpected ".concat(Le(z),"."))},s.any=function(d,z,y){this.expectToken(d);for(var T=[];!this.expectOptionalToken(y);)T.push(z.call(this));return T},s.optionalMany=function(d,z,y){if(this.expectOptionalToken(d)){var T=[];do{T.push(z.call(this))}while(!this.expectOptionalToken(y));return T}return[]},s.many=function(d,z,y){this.expectToken(d);var T=[];do{T.push(z.call(this))}while(!this.expectOptionalToken(y));return T},s.delimitedMany=function(d,z){this.expectOptionalToken(d);var y=[];do{y.push(z.call(this))}while(this.expectOptionalToken(d));return y},e}();function Le(e){var s=e.value;return Ne(e.kind)+(null!=s?' "'.concat(s,'"'):"")}function Ne(e){return function _e(e){return e===g.BANG||e===g.DOLLAR||e===g.AMP||e===g.PAREN_L||e===g.PAREN_R||e===g.SPREAD||e===g.COLON||e===g.EQUALS||e===g.AT||e===g.BRACKET_L||e===g.BRACKET_R||e===g.BRACE_L||e===g.PIPE||e===g.BRACE_R}(e)?'"'.concat(e,'"'):e}var Be=new Map,ve=new Map,Ue=!0,xe=!1;function $e(e){return e.replace(/[\s,]+/g," ").trim()}function rt(e){var s=$e(e);if(!Be.has(s)){var n=function Ce(e,s){return new Ie(e,s).parseDocument()}(e,{experimentalFragmentVariables:xe,allowLegacyFragmentVariables:xe});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Be.set(s,function tt(e){var s=new Set(e.definitions);s.forEach(function(d){d.loc&&delete d.loc,Object.keys(d).forEach(function(z){var y=d[z];y&&"object"==typeof y&&s.add(y)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function ot(e){var s=new Set,n=[];return e.definitions.forEach(function(d){if("FragmentDefinition"===d.kind){var z=d.name.value,y=function it(e){return $e(e.source.body.substring(e.start,e.end))}(d.loc),T=ve.get(z);T&&!T.has(y)?Ue&&console.warn("Warning: fragment with name "+z+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):T||ve.set(z,T=new Set),T.add(y),s.has(y)||(s.add(y),n.push(d))}else n.push(d)}),(0,o.pi)((0,o.pi)({},e),{definitions:n})}(n)))}return Be.get(s)}function h(e){for(var s=[],n=1;n(function(e){e.Na="NA",e.TierIii="TIER_III",e.TierIiLevelC="TIER_II_LEVEL_C",e.TierIiLevelD="TIER_II_LEVEL_D",e.TierIv="TIER_IV",e.TierILevelA="TIER_I_LEVEL_A",e.TierILevelB="TIER_I_LEVEL_B"}(j||(j={})),j))(),l=(()=>(function(e){e.AdverseResponse="ADVERSE_RESPONSE",e.Benign="BENIGN",e.BetterOutcome="BETTER_OUTCOME",e.LikelyBenign="LIKELY_BENIGN",e.LikelyPathogenic="LIKELY_PATHOGENIC",e.Na="NA",e.Negative="NEGATIVE",e.Pathogenic="PATHOGENIC",e.PoorOutcome="POOR_OUTCOME",e.Positive="POSITIVE",e.ReducedSensitivity="REDUCED_SENSITIVITY",e.Resistance="RESISTANCE",e.Sensitivityresponse="SENSITIVITYRESPONSE",e.UncertainSignificance="UNCERTAIN_SIGNIFICANCE"}(l||(l={})),l))(),k=(()=>(function(e){e.DoesNotSupport="DOES_NOT_SUPPORT",e.Supports="SUPPORTS"}(k||(k={})),k))(),ie=(()=>(function(e){e.AmpLevel="AMP_LEVEL",e.AssertionDirection="ASSERTION_DIRECTION",e.AssertionType="ASSERTION_TYPE",e.ClinicalSignificance="CLINICAL_SIGNIFICANCE",e.DiseaseName="DISEASE_NAME",e.DrugName="DRUG_NAME",e.EvidenceItemsCount="EVIDENCE_ITEMS_COUNT",e.GeneName="GENE_NAME",e.Id="ID",e.Status="STATUS",e.Summary="SUMMARY",e.VariantName="VARIANT_NAME"}(ie||(ie={})),ie))(),ze=(()=>(function(e){e.Diagnostic="DIAGNOSTIC",e.Predictive="PREDICTIVE",e.Predisposing="PREDISPOSING",e.Prognostic="PROGNOSTIC"}(ze||(ze={})),ze))(),Te=(()=>(function(e){e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.Name="NAME",e.NctId="NCT_ID",e.SourceCount="SOURCE_COUNT"}(Te||(Te={})),Te))(),Fe=(()=>(function(e){e.Conflict="CONFLICT",e.Expired="EXPIRED",e.Missing="MISSING",e.Valid="VALID"}(Fe||(Fe={})),Fe))(),ke=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Source="SOURCE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(ke||(ke={})),ke))(),Ye=(()=>(function(e){e.Created="CREATED",e.LastModified="LAST_MODIFIED"}(Ye||(Ye={})),Ye))(),Je=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.Doid="DOID",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.GeneCount="GENE_COUNT",e.Name="NAME",e.VariantCount="VARIANT_COUNT"}(Je||(Je={})),Je))(),He=(()=>(function(e){e.Combination="COMBINATION",e.Sequential="SEQUENTIAL",e.Substitutes="SUBSTITUTES"}(He||(He={})),He))(),nt=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.Name="NAME",e.NcitId="NCIT_ID"}(nt||(nt={})),nt))(),Qe=(()=>(function(e){e.Accepted="ACCEPTED",e.AssertionAccepted="ASSERTION_ACCEPTED",e.AssertionRejected="ASSERTION_REJECTED",e.AssertionReverted="ASSERTION_REVERTED",e.AssertionSubmitted="ASSERTION_SUBMITTED",e.Commented="COMMENTED",e.CuratedSourceSuggestion="CURATED_SOURCE_SUGGESTION",e.Flagged="FLAGGED",e.FlagResolved="FLAG_RESOLVED",e.PublicationSuggested="PUBLICATION_SUGGESTED",e.Rejected="REJECTED",e.RejectedSourceSuggestion="REJECTED_SOURCE_SUGGESTION",e.RequeuedSourceSuggestion="REQUEUED_SOURCE_SUGGESTION",e.Reverted="REVERTED",e.RevisionAccepted="REVISION_ACCEPTED",e.RevisionRejected="REVISION_REJECTED",e.RevisionSuggested="REVISION_SUGGESTED",e.RevisionSuperseded="REVISION_SUPERSEDED",e.Submitted="SUBMITTED"}(Qe||(Qe={})),Qe))(),je=(()=>(function(e){e.Organization="ORGANIZATION",e.Subject="SUBJECT",e.Unscoped="UNSCOPED",e.User="USER"}(je||(je={})),je))(),ut=(()=>(function(e){e.AdverseResponse="ADVERSE_RESPONSE",e.Benign="BENIGN",e.BetterOutcome="BETTER_OUTCOME",e.DominantNegative="DOMINANT_NEGATIVE",e.GainOfFunction="GAIN_OF_FUNCTION",e.LikelyBenign="LIKELY_BENIGN",e.LikelyPathogenic="LIKELY_PATHOGENIC",e.LossOfFunction="LOSS_OF_FUNCTION",e.Na="NA",e.Negative="NEGATIVE",e.Neomorphic="NEOMORPHIC",e.Pathogenic="PATHOGENIC",e.PoorOutcome="POOR_OUTCOME",e.Positive="POSITIVE",e.ReducedSensitivity="REDUCED_SENSITIVITY",e.Resistance="RESISTANCE",e.Sensitivityresponse="SENSITIVITYRESPONSE",e.UnalteredFunction="UNALTERED_FUNCTION",e.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",e.Unknown="UNKNOWN"}(ut||(ut={})),ut))(),Xe=(()=>(function(e){e.DoesNotSupport="DOES_NOT_SUPPORT",e.Na="NA",e.Supports="SUPPORTS"}(Xe||(Xe={})),Xe))(),f=(()=>(function(e){e.A="A",e.B="B",e.C="C",e.D="D",e.E="E"}(f||(f={})),f))(),E=(()=>(function(e){e.ClinicalSignificance="CLINICAL_SIGNIFICANCE",e.Description="DESCRIPTION",e.DiseaseName="DISEASE_NAME",e.DrugName="DRUG_NAME",e.EvidenceDirection="EVIDENCE_DIRECTION",e.EvidenceLevel="EVIDENCE_LEVEL",e.EvidenceRating="EVIDENCE_RATING",e.EvidenceType="EVIDENCE_TYPE",e.GeneSymbol="GENE_SYMBOL",e.Id="ID",e.Status="STATUS",e.VariantName="VARIANT_NAME",e.VariantOrigin="VARIANT_ORIGIN"}(E||(E={})),E))(),C=(()=>(function(e){e.Accepted="ACCEPTED",e.Rejected="REJECTED",e.Submitted="SUBMITTED"}(C||(C={})),C))(),R=(()=>(function(e){e.Diagnostic="DIAGNOSTIC",e.Functional="FUNCTIONAL",e.Oncogenic="ONCOGENIC",e.Predictive="PREDICTIVE",e.Predisposing="PREDISPOSING",e.Prognostic="PROGNOSTIC"}(R||(R={})),R))(),ce=(()=>(function(e){e.Open="OPEN",e.Resolved="RESOLVED"}(ce||(ce={})),ce))(),he=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(he||(he={})),he))(),mt=(()=>(function(e){e.AssertionCount="assertionCount",e.DiseaseName="diseaseName",e.DrugName="drugName",e.EntrezSymbol="entrezSymbol",e.EvidenceItemCount="evidenceItemCount",e.GeneAlias="geneAlias",e.VariantCount="variantCount"}(mt||(mt={})),mt))(),gt=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(gt||(gt={})),gt))(),ft=(()=>(function(e){e.Mention="MENTION",e.Subscription="SUBSCRIPTION"}(ft||(ft={})),ft))(),ht=(()=>(function(e){e.Id="ID",e.Name="NAME"}(ht||(ht={})),ht))(),vt=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.HpoId="HPO_ID",e.Name="NAME"}(vt||(vt={})),vt))(),zt=(()=>(function(e){e.Read="READ",e.Unread="UNREAD"}(zt||(zt={})),zt))(),yt=(()=>(function(e){e.Grch37="GRCH37",e.Grch38="GRCH38",e.Ncbi36="NCBI36"}(yt||(yt={})),yt))(),Ct=(()=>(function(e){e.Accepted="ACCEPTED",e.New="NEW",e.Rejected="REJECTED",e.Superseded="SUPERSEDED"}(Ct||(Ct={})),Ct))(),It=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(It||(It={})),It))(),Tt=(()=>(function(e){e.Asc="ASC",e.Desc="DESC"}(Tt||(Tt={})),Tt))(),_t=(()=>(function(e){e.Asco="ASCO",e.Pubmed="PUBMED"}(_t||(_t={})),_t))(),St=(()=>(function(e){e.Curated="CURATED",e.New="NEW",e.Rejected="REJECTED"}(St||(St={})),St))(),Dt=(()=>(function(e){e.Citation="CITATION",e.CitationId="CITATION_ID",e.DiseaseName="DISEASE_NAME",e.GeneName="GENE_NAME",e.SourceType="SOURCE_TYPE",e.Submitter="SUBMITTER",e.VariantName="VARIANT_NAME"}(Dt||(Dt={})),Dt))(),Et=(()=>(function(e){e.Authors="AUTHORS",e.CitationId="CITATION_ID",e.EvidenceCount="EVIDENCE_COUNT",e.Journal="JOURNAL",e.Name="NAME",e.SourceType="SOURCE_TYPE",e.Year="YEAR"}(Et||(Et={})),Et))(),qe=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.SourceSuggestion="SOURCE_SUGGESTION",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(qe||(qe={})),qe))(),Gt=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.Role="ROLE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(Gt||(Gt={})),Gt))(),Nt=(()=>(function(e){e.Admin="ADMIN",e.Curator="CURATOR",e.Editor="EDITOR"}(Nt||(Nt={})),Nt))(),At=(()=>(function(e){e.Id="ID",e.LastAction="LAST_ACTION",e.Name="NAME",e.Role="ROLE"}(At||(At={})),At))(),Ot=(()=>(function(e){e.All="ALL",e.WithAccepted="WITH_ACCEPTED",e.WithAcceptedOrSubmitted="WITH_ACCEPTED_OR_SUBMITTED",e.WithSubmitted="WITH_SUBMITTED"}(Ot||(Ot={})),Ot))(),Mt=(()=>(function(e){e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.GeneNames="GENE_NAMES",e.Name="NAME",e.VariantCount="VARIANT_COUNT",e.VariantNames="VARIANT_NAMES"}(Mt||(Mt={})),Mt))(),Lt=(()=>(function(e){e.CoordinateEnd="COORDINATE_END",e.CoordinateStart="COORDINATE_START",e.Name="NAME"}(Lt||(Lt={})),Lt))(),xt=(()=>(function(e){e.CommonGermline="COMMON_GERMLINE",e.Na="NA",e.RareGermline="RARE_GERMLINE",e.Somatic="SOMATIC",e.Unknown="UNKNOWN"}(xt||(xt={})),xt))(),Ft=(()=>(function(e){e.Name="NAME",e.Soid="SOID",e.VariantCount="VARIANT_COUNT"}(Ft||(Ft={})),Ft))(),bt=(()=>(function(e){e.AssertionCount="assertionCount",e.DiseaseName="diseaseName",e.DrugName="drugName",e.EntrezSymbol="entrezSymbol",e.EvidenceItemCount="evidenceItemCount",e.EvidenceScore="evidenceScore",e.VariantName="variantName"}(bt||(bt={})),bt))();const Vt=h` fragment assertionPopover on Assertion { id name @@ -56,7 +56,7 @@ totalCount } } - `,kt=h` + `,Zt=h` fragment AssertionBrowseTableRowFields on Assertion { id name @@ -106,7 +106,7 @@ evidenceItemsCount status } - `,u=h` + `,kt=h` fragment clinicalTrialPopover on BrowseClinicalTrial { id name @@ -115,7 +115,7 @@ sourceCount evidenceCount } - `,M=h` + `,u=h` fragment commentListNode on Comment { id title @@ -154,7 +154,7 @@ } } } - `,c=h` + `,M=h` fragment commentPopover on Comment { id name @@ -174,7 +174,7 @@ __typename } } - `,v=h` + `,c=h` fragment BrowseDiseaseRowFields on BrowseDisease { id name @@ -187,7 +187,7 @@ geneCount link } - `,w=h` + `,v=h` fragment DrugBrowseTableRowFields on BrowseDrug { id name @@ -197,7 +197,7 @@ evidenceCount link } - `,re=h` + `,P=h` fragment eventFeedNode on Event { id action @@ -246,7 +246,7 @@ } } } - `,qe=h` + `,ae=h` fragment eventFeed on EventConnection { pageInfo { startCursor @@ -274,7 +274,7 @@ } } } - ${re}`,Yt=h` + ${P}`,et=h` fragment evidencePopover on EvidenceItem { id name @@ -329,7 +329,7 @@ totalCount } } - `,en=h` + `,Yt=h` fragment EvidenceGridFields on EvidenceItem { id name @@ -962,7 +962,7 @@ geneAliases entrezId } - `,jt=h` + `,Kt=h` fragment SourceTypeaheadResult on Source { id name @@ -970,7 +970,7 @@ citationId sourceType } - `,Kt=h` + `,Ht=h` fragment SourceStubFields on SourceStub { id citationId @@ -984,7 +984,7 @@ citationId sourceType } - `,Ht=h` + `,Xt=h` fragment VariantTypeaheadFields on Variant { id name @@ -1643,7 +1643,7 @@ } occuranceCount } - `,Xt=h` + `,qt=h` fragment notificationNode on Notification { id type @@ -1660,7 +1660,7 @@ } } } - ${re}`,ei=h` + ${P}`,ei=h` fragment subscribable on Subscribable { id entityType @@ -1870,7 +1870,7 @@ ...assertionPopover } } - ${Zt}`;let ai=(()=>{class e extends p.AE{constructor(n){super(n),this.document=si}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ci=h` + ${Vt}`;let ai=(()=>{class e extends p.AE{constructor(n){super(n),this.document=si}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ci=h` query AssertionsBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $drugName: String, $id: Int, $summary: String, $assertionDirection: EvidenceDirection, $clinicalSignificance: EvidenceClinicalSignificance, $assertionType: EvidenceType, $variantId: Int, $evidenceId: Int, $geneName: String, $variantName: String, $sortBy: AssertionSort, $ampLevel: AmpLevel, $organizationId: Int, $userId: Int, $phenotypeId: Int, $diseaseId: Int, $drugId: Int, $status: EvidenceStatus, $cardView: Boolean!) { assertions( first: $first @@ -1912,7 +1912,7 @@ } } } - ${kt}`;let li=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ci}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ui=h` + ${Zt}`;let li=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ci}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ui=h` query ClinicalTrialPopover($clinicalTrialId: Int!) { clinicalTrials(id: $clinicalTrialId) { edges { @@ -1922,7 +1922,7 @@ } } } - ${u}`;let di=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ui}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const pi=h` + ${kt}`;let di=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ui}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const pi=h` query ClinicalTrialsBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $nctId: String, $sortBy: ClinicalTrialSort) { clinicalTrials( first: $first @@ -2008,13 +2008,13 @@ } } } - ${M}`;let fi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=gi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const hi=h` + ${u}`;let fi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=gi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const hi=h` query CommentPopover($commentId: Int!) { comment(id: $commentId) { ...commentPopover } } - ${c}`;let vi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=hi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const zi=h` + ${M}`;let vi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=hi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const zi=h` query DiseasePopover($diseaseId: Int!) { diseasePopover(id: $diseaseId) { id @@ -2058,7 +2058,7 @@ } } } - ${v}`;let Ii=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ci}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ti=h` + ${c}`;let Ii=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ci}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ti=h` query DrugPopover($drugId: Int!) { drugPopover(id: $drugId) { id @@ -2098,7 +2098,7 @@ } } } - ${w}`;let Di=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Si}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ei=h` + ${v}`;let Di=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Si}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ei=h` query EventFeed($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $mode: EventFeedMode, $showFilters: Boolean!) { events( subject: $subject @@ -2114,13 +2114,13 @@ ...eventFeed } } - ${qe}`;let Ni=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ei}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ai=h` + ${ae}`;let Ni=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ei}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ai=h` query EvidencePopover($evidenceId: Int!) { evidenceItem(id: $evidenceId) { ...evidencePopover } } - ${Yt}`;let Oi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ai}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Mi=h` + ${et}`;let Oi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ai}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Mi=h` query EvidenceBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $drugName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $clinicalSignificance: EvidenceClinicalSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $drugId: Int, $sourceId: Int, $clinicalTrialId: Int, $geneSymbol: String, $variantName: String, $status: EvidenceStatus, $cardView: Boolean!) { evidenceItems( first: $first @@ -2166,7 +2166,7 @@ } } } - ${en}`;let Li=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Mi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const xi=h` + ${Yt}`;let Li=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Mi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const xi=h` query FlagList($flaggable: FlaggableInput, $flaggingUserId: Int, $resolvingUserId: Int, $state: FlagState, $sortBy: DateSort, $first: Int, $last: Int, $before: String, $after: String) { flags( flaggable: $flaggable @@ -2781,7 +2781,7 @@ } } } - ${M}`;let Jo=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Wo}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const jo=h` + ${u}`;let Jo=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Wo}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const jo=h` query previewComment($commentText: String!) { previewCommentText(commentText: $commentText) { ...previewComment @@ -2875,7 +2875,7 @@ ...SourceTypeaheadResult } } - ${jt}`;let Cr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=yr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ir=h` + ${Kt}`;let Cr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=yr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ir=h` query CitationExistenceCheck($sourceType: SourceSource!, $citationId: Int!) { remoteCitation(sourceType: $sourceType, citationId: $citationId) } @@ -2901,13 +2901,13 @@ } } } - ${Kt}`;let Ar=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Nr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Or=h` + ${Ht}`;let Ar=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Nr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Or=h` query SourceTypeahead($partialCitationId: Int!, $sourceType: SourceSource!) { sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { ...SourceTypeaheadResult } } - ${jt}`;let Mr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Or}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Lr=h` + ${Kt}`;let Mr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Or}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Lr=h` query VariantTypeahead($name: String!, $geneId: Int) { variants(name: $name, geneId: $geneId, first: 20) { nodes { @@ -2915,7 +2915,7 @@ } } } - ${Ht}`;let xr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Lr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Fr=h` + ${Xt}`;let xr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Lr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Fr=h` mutation AddVariant($name: String!, $geneId: Int!) { addVariant(input: {name: $name, geneId: $geneId}) { ...AddVariantFields @@ -2929,7 +2929,7 @@ } } } - ${Ht}`;const Rr=h` + ${Xt}`;const Rr=h` query VariantTypeTypeahead($name: String!) { variantTypeTypeahead(queryTerm: $name) { name @@ -2949,57 +2949,6 @@ clientMutationId evidenceItem { id - revisions { - totalCount - edges { - node { - id - revisionsetId - createdAt - fieldName - currentValue - suggestedValue - linkoutData { - name - diffValue { - ... on ObjectFieldDiff { - addedObjects { - id - displayName - displayType - entityType - } - removedObjects { - id - displayName - displayType - entityType - } - keptObjects { - id - displayName - displayType - entityType - } - } - ... on ScalarFieldDiff { - left - right - } - } - } - revisor { - id - name - } - status - } - } - } - } - results { - id - fieldName } } } @@ -3420,7 +3369,7 @@ ${qn} ${Xn} ${Hn} -${Xt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Hs}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const qs=h` +${qt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Hs}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const qs=h` mutation UpdateNotificationStatus($input: UpdateNotificationStatusInput!) { updateNotificationStatus(input: $input) { notifications { @@ -3428,7 +3377,7 @@ ${Xt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=H } } } - ${Xt}`;let ea=(()=>{class e extends p.mm{constructor(n){super(n),this.document=qs}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ta=h` + ${qt}`;let ea=(()=>{class e extends p.mm{constructor(n){super(n),this.document=qs}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ta=h` mutation Unsubscribe($input: UnsubscribeInput!) { unsubscribe(input: $input) { unsubscribedEntities { @@ -3548,4 +3497,4 @@ ${Xt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=H ...VariantSummaryFields } } - ${ri}`;let ga=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ma}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},4024:(De,se,r)=>{r.r(se),r.d(se,{LayoutModule:()=>kt});var o=r(9808),i=r(325),t=r(5e3),D=r(9350),F=r(8929),Z=r(7625),B=r(655),q=r(4090),A=r(1721),L=r(4219),P=r(925),K=r(647),H=r(226),le=r(5113);const te=["*"],ae=["nz-sider-trigger",""];function oe(u,M){}function V(u,M){if(1&u&&(t.ynx(0),t.YNc(1,oe,0,0,"ng-template",3),t.BQk()),2&u){const c=t.oxw(),v=t.MAs(5);t.xp6(1),t.Q6J("ngTemplateOutlet",c.nzZeroTrigger||v)}}function b(u,M){}function I(u,M){if(1&u&&(t.ynx(0),t.YNc(1,b,0,0,"ng-template",3),t.BQk()),2&u){const c=t.oxw(),v=t.MAs(3);t.xp6(1),t.Q6J("ngTemplateOutlet",c.nzTrigger||v)}}function $(u,M){if(1&u&&t._UZ(0,"i",5),2&u){const c=t.oxw(2);t.Q6J("nzType",c.nzCollapsed?"right":"left")}}function ne(u,M){if(1&u&&t._UZ(0,"i",5),2&u){const c=t.oxw(2);t.Q6J("nzType",c.nzCollapsed?"left":"right")}}function X(u,M){if(1&u&&(t.YNc(0,$,1,1,"i",4),t.YNc(1,ne,1,1,"i",4)),2&u){const c=t.oxw();t.Q6J("ngIf",!c.nzReverseArrow),t.xp6(1),t.Q6J("ngIf",c.nzReverseArrow)}}function de(u,M){1&u&&t._UZ(0,"i",6)}function fe(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(c);const w=t.oxw();return w.setCollapsed(!w.nzCollapsed)}),t.qZA()}if(2&u){const c=t.oxw();t.Q6J("matchBreakPoint",c.matchBreakPoint)("nzCollapsedWidth",c.nzCollapsedWidth)("nzCollapsed",c.nzCollapsed)("nzBreakpoint",c.nzBreakpoint)("nzReverseArrow",c.nzReverseArrow)("nzTrigger",c.nzTrigger)("nzZeroTrigger",c.nzZeroTrigger)("siderWidth",c.widthSetting)}}let pe=(()=>{class u{constructor(c,v){this.elementRef=c,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(t.Qsj))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),W=(()=>{class u{constructor(c,v){this.elementRef=c,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(t.Qsj))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),Y=(()=>{class u{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(c,v){2&c&&(t.Udp("width",v.isNormalTrigger?v.siderWidth:null),t.ekj("ant-layout-sider-trigger",v.isNormalTrigger)("ant-layout-sider-zero-width-trigger",v.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",v.isZeroTrigger&&v.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",v.isZeroTrigger&&!v.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[t.TTD],attrs:ae,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(c,v){1&c&&(t.YNc(0,V,2,1,"ng-container",0),t.YNc(1,I,2,1,"ng-container",0),t.YNc(2,X,2,2,"ng-template",null,1,t.W1O),t.YNc(4,de,1,0,"ng-template",null,2,t.W1O)),2&c&&(t.Q6J("ngIf",v.isZeroTrigger),t.xp6(1),t.Q6J("ngIf",v.isNormalTrigger))},directives:[o.O5,o.tP,K.Ls],encapsulation:2,changeDetection:0}),u})(),g=(()=>{class u{constructor(c,v,w){this.platform=c,this.cdr=v,this.breakpointService=w,this.destroy$=new F.xQ,this.nzMenuDirective=null,this.nzCollapsedChange=new t.vpe,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,A.WX)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(c){c!==this.nzCollapsed&&(this.nzCollapsed=c,this.nzCollapsedChange.emit(c),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(q.ow,!0).pipe((0,Z.R)(this.destroy$)).subscribe(c=>{const v=this.nzBreakpoint;v&&(0,A.ov)().subscribe(()=>{this.matchBreakPoint=!c[v],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(c){const{nzCollapsed:v,nzCollapsedWidth:w,nzWidth:re}=c;(v||w||re)&&this.updateStyleMap(),v&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(P.t4),t.Y36(t.sBO),t.Y36(q.r3))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-sider"]],contentQueries:function(c,v,w){if(1&c&&t.Suo(w,L.wO,5),2&c){let re;t.iGM(re=t.CRH())&&(v.nzMenuDirective=re.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(c,v){2&c&&(t.Udp("flex",v.flexSetting)("max-width",v.widthSetting)("min-width",v.widthSetting)("width",v.widthSetting),t.ekj("ant-layout-sider-zero-width",v.nzCollapsed&&0===v.nzCollapsedWidth)("ant-layout-sider-light","light"===v.nzTheme)("ant-layout-sider-dark","dark"===v.nzTheme)("ant-layout-sider-collapsed",v.nzCollapsed)("ant-layout-sider-has-trigger",v.nzCollapsible&&null!==v.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[t.TTD],ngContentSelectors:te,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(c,v){1&c&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA(),t.YNc(2,fe,1,8,"div",1)),2&c&&(t.xp6(2),t.Q6J("ngIf",v.nzCollapsible&&null!==v.nzTrigger))},directives:[Y,o.O5],encapsulation:2,changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzReverseArrow",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzCollapsible",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzCollapsed",void 0),u})(),G=(()=>{class u{constructor(c){this.directionality=c,this.dir="ltr",this.destroy$=new F.xQ}ngOnInit(){var c;this.dir=this.directionality.value,null===(c=this.directionality.change)||void 0===c||c.pipe((0,Z.R)(this.destroy$)).subscribe(v=>{this.dir=v})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(H.Is,8))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-layout"]],contentQueries:function(c,v,w){if(1&c&&t.Suo(w,g,4),2&c){let re;t.iGM(re=t.CRH())&&(v.listOfNzSiderComponent=re)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(c,v){2&c&&t.ekj("ant-layout-rtl","rtl"===v.dir)("ant-layout-has-sider",v.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),O=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[H.vT,o.ez,K.PV,le.xu,P.ud]]}),u})();var Q=r(404),ye=r(1894),_e=r(712),Se=r(373),Ee=r(1047),Oe=r(4182),be=r(2845),Ve=r(4832),Pe=r(969),N=r(3753),ee=r(2654),_=r(8514),J=r(6787),U=r(2198),ge=r(2868),Ce=r(6792),Ae=r(2986),Me=r(7545),Ie=r(1159),Le=r(7429),Ne=r(8076);function Ue(u,M){if(1&u&&(t.ynx(0),t._uU(1),t.BQk()),2&u){const c=t.oxw();t.xp6(1),t.Oqu(c.nzLabel)}}const ve=[[["nz-auto-option"]]],Qe=["nz-auto-option"],xe=["*"],Re=["panel"],it=["content"];function ot(u,M){}function et(u,M){1&u&&t.YNc(0,ot,0,0,"ng-template")}function rt(u,M){1&u&&t.Hsn(0)}function h(u,M){if(1&u&&(t.TgZ(0,"nz-auto-option",8),t._uU(1),t.qZA()),2&u){const c=M.$implicit;t.Q6J("nzValue",c)("nzLabel",c&&c.label?c.label:c),t.xp6(1),t.hij(" ",c&&c.label?c.label:c," ")}}function st(u,M){if(1&u&&t.YNc(0,h,2,3,"nz-auto-option",7),2&u){const c=t.oxw(2);t.Q6J("ngForOf",c.nzDataSource)}}function at(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"div",0,1),t.NdJ("@slideMotion.done",function(w){return t.CHM(c),t.oxw().onAnimationEvent(w)}),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.YNc(4,et,1,0,void 0,4),t.qZA(),t.qZA(),t.qZA(),t.YNc(5,rt,1,0,"ng-template",null,5,t.W1O),t.YNc(7,st,1,1,"ng-template",null,6,t.W1O)}if(2&u){const c=t.MAs(6),v=t.MAs(8),w=t.oxw();t.ekj("ant-select-dropdown-hidden",!w.showPanel)("ant-select-dropdown-rtl","rtl"===w.dir),t.Q6J("ngClass",w.nzOverlayClassName)("ngStyle",w.nzOverlayStyle)("nzNoAnimation",null==w.noAnimation?null:w.noAnimation.nzNoAnimation)("@slideMotion",void 0)("@.disabled",null==w.noAnimation?null:w.noAnimation.nzNoAnimation),t.xp6(4),t.Q6J("ngTemplateOutlet",w.nzDataSource?v:c)}}let ct=(()=>{class u{constructor(){}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],ngContentSelectors:Qe,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(c,v){1&c&&(t.F$t(ve),t.TgZ(0,"div",0),t.YNc(1,Ue,2,1,"ng-container",1),t.qZA(),t.Hsn(2)),2&c&&(t.xp6(1),t.Q6J("nzStringTemplateOutlet",v.nzLabel))},directives:[Pe.f],encapsulation:2,changeDetection:0}),u})();class lt{constructor(M,c=!1){this.source=M,this.isUserInput=c}}let Ge=(()=>{class u{constructor(c,v,w,re){this.ngZone=c,this.changeDetectorRef=v,this.element=w,this.nzAutocompleteOptgroupComponent=re,this.nzDisabled=!1,this.selectionChange=new t.vpe,this.mouseEntered=new t.vpe,this.active=!1,this.selected=!1,this.destroy$=new F.xQ}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,N.R)(this.element.nativeElement,"mouseenter").pipe((0,U.h)(()=>this.mouseEntered.observers.length>0),(0,Z.R)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>this.mouseEntered.emit(this))}),(0,N.R)(this.element.nativeElement,"mousedown").pipe((0,Z.R)(this.destroy$)).subscribe(c=>c.preventDefault())})}ngOnDestroy(){this.destroy$.next()}select(c=!0){this.selected=!0,this.changeDetectorRef.markForCheck(),c&&this.emitSelectionChangeEvent()}deselect(){this.selected=!1,this.changeDetectorRef.markForCheck(),this.emitSelectionChangeEvent()}getLabel(){return this.nzLabel||this.nzValue.toString()}setActiveStyles(){this.active||(this.active=!0,this.changeDetectorRef.markForCheck())}setInactiveStyles(){this.active&&(this.active=!1,this.changeDetectorRef.markForCheck())}scrollIntoViewIfNeeded(){(0,A.zT)(this.element.nativeElement)}selectViaInteraction(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())}emitSelectionChangeEvent(c=!1){this.selectionChange.emit(new lt(this,c))}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(ct,8))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-auto-option"]],hostAttrs:["role","menuitem",1,"ant-select-item","ant-select-item-option"],hostVars:10,hostBindings:function(c,v){1&c&&t.NdJ("click",function(){return v.selectViaInteraction()}),2&c&&(t.uIk("aria-selected",v.selected.toString())("aria-disabled",v.nzDisabled.toString()),t.ekj("ant-select-item-option-grouped",v.nzAutocompleteOptgroupComponent)("ant-select-item-option-selected",v.selected)("ant-select-item-option-active",v.active)("ant-select-item-option-disabled",v.nzDisabled))},inputs:{nzValue:"nzValue",nzLabel:"nzLabel",nzDisabled:"nzDisabled"},outputs:{selectionChange:"selectionChange",mouseEntered:"mouseEntered"},exportAs:["nzAutoOption"],ngContentSelectors:xe,decls:2,vars:0,consts:[[1,"ant-select-item-option-content"]],template:function(c,v){1&c&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},encapsulation:2,changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzDisabled",void 0),u})();const dt={provide:Oe.JU,useExisting:(0,t.Gpc)(()=>a),multi:!0};let a=(()=>{class u{constructor(c,v,w,re,qe){this.elementRef=c,this.overlay=v,this.viewContainerRef=w,this.nzInputGroupWhitSuffixOrPrefixDirective=re,this.document=qe,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new F.xQ,this.overlayRef=null,this.portal=null,this.previousValue=null}get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe((0,Z.R)(this.destroy$)).subscribe(c=>{"void"===c.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(c){Promise.resolve(null).then(()=>this.setTriggerValue(c))}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.elementRef.nativeElement.disabled=c,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.portal=null))}handleKeydown(c){const v=c.keyCode,w=v===Ie.LH||v===Ie.JH;v===Ie.hY&&c.preventDefault(),!this.panelOpen||v!==Ie.hY&&v!==Ie.Mf?this.panelOpen&&v===Ie.K5?this.nzAutocomplete.showPanel&&(c.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&w&&this.nzAutocomplete.showPanel&&(c.stopPropagation(),c.preventDefault(),v===Ie.LH?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill()):(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel())}handleInput(c){const v=c.target,w=this.document;let re=v.value;"number"===v.type&&(re=""===re?null:parseFloat(re)),this.previousValue!==re&&(this.previousValue=re,this.onChange(re),this.canOpen()&&w.activeElement===c.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,ge.b)(()=>this.positionStrategy.reapplyLastPosition()),(0,Ce.g)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(c=>{this.setValueAndClose(c)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,U.h)(c=>!this.elementRef.nativeElement.contains(c.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function p(){return Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}();!this.portal&&this.nzAutocomplete.template&&(this.portal=new Le.UE(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.closePanel()})),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getOverlayConfig(){return new be.X_({positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})}getConnectedElement(){return this.nzInputGroupWhitSuffixOrPrefixDirective?this.nzInputGroupWhitSuffixOrPrefixDirective.elementRef:this.elementRef}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}getOverlayPosition(){const c=[new be.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new be.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(c).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const c=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==c?(this.nzAutocomplete.setActiveItem(c),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(c){const v=c.nzValue;this.setTriggerValue(c.getLabel()),this.onChange(v),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(c){const v=this.nzAutocomplete.getOption(c),w=v?v.getLabel():c;this.elementRef.nativeElement.value=null!=w?w:"",this.nzAutocomplete.nzBackfill||(this.previousValue=w)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const c=this.elementRef.nativeElement;return!c.readOnly&&!c.disabled}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(be.aV),t.Y36(t.s_b),t.Y36(Ee.ke,8),t.Y36(o.K0,8))},u.\u0275dir=t.lG2({type:u,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(c,v){1&c&&t.NdJ("focusin",function(){return v.handleFocus()})("blur",function(){return v.handleBlur()})("input",function(re){return v.handleInput(re)})("keydown",function(re){return v.handleKeydown(re)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[t._Bn([dt])]}),u})(),j=(()=>{class u{constructor(c,v,w,re){this.changeDetectorRef=c,this.ngZone=v,this.directionality=w,this.noAnimation=re,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzDefaultActiveFirstOption=!0,this.nzBackfill=!1,this.compareWith=(qe,Yt)=>qe===Yt,this.selectionChange=new t.vpe,this.showPanel=!0,this.isOpen=!1,this.activeItem=null,this.dir="ltr",this.destroy$=new F.xQ,this.animationStateChange=new t.vpe,this.activeItemIndex=-1,this.selectionChangeSubscription=ee.w.EMPTY,this.optionMouseEnterSubscription=ee.w.EMPTY,this.dataSourceChangeSubscription=ee.w.EMPTY,this.optionSelectionChanges=(0,_.P)(()=>this.options?(0,J.T)(...this.options.map(qe=>qe.selectionChange)):this.ngZone.onStable.asObservable().pipe((0,Ae.q)(1),(0,Me.w)(()=>this.optionSelectionChanges))),this.optionMouseEnter=(0,_.P)(()=>this.options?(0,J.T)(...this.options.map(qe=>qe.mouseEntered)):this.ngZone.onStable.asObservable().pipe((0,Ae.q)(1),(0,Me.w)(()=>this.optionMouseEnter)))}get options(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions}ngOnInit(){var c;null===(c=this.directionality.change)||void 0===c||c.pipe((0,Z.R)(this.destroy$)).subscribe(v=>{this.dir=v,this.changeDetectorRef.detectChanges()}),this.dir=this.directionality.value}onAnimationEvent(c){this.animationStateChange.emit(c)}ngAfterContentInit(){this.nzDataSource||this.optionsInit()}ngAfterViewInit(){this.nzDataSource&&this.optionsInit()}ngOnDestroy(){this.dataSourceChangeSubscription.unsubscribe(),this.selectionChangeSubscription.unsubscribe(),this.optionMouseEnterSubscription.unsubscribe(),this.dataSourceChangeSubscription=this.selectionChangeSubscription=this.optionMouseEnterSubscription=null,this.destroy$.next(),this.destroy$.complete()}setVisibility(){this.showPanel=!!this.options.length,this.changeDetectorRef.markForCheck()}setActiveItem(c){const v=this.options.get(c);v&&!v.active?(this.activeItem=v,this.activeItemIndex=c,this.clearSelectedOptions(this.activeItem),this.activeItem.setActiveStyles()):(this.activeItem=null,this.activeItemIndex=-1,this.clearSelectedOptions()),this.changeDetectorRef.markForCheck()}setNextItemActive(){this.setActiveItem(this.activeItemIndex+1<=this.options.length-1?this.activeItemIndex+1:0)}setPreviousItemActive(){this.setActiveItem(this.activeItemIndex-1<0?this.options.length-1:this.activeItemIndex-1)}getOptionIndex(c){return this.options.reduce((v,w,re)=>-1===v?this.compareWith(c,w.nzValue)?re:-1:v,-1)}getOption(c){return this.options.find(v=>this.compareWith(c,v.nzValue))||null}optionsInit(){this.setVisibility(),this.subscribeOptionChanges(),this.dataSourceChangeSubscription=(this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes).subscribe(v=>{!v.dirty&&this.isOpen&&setTimeout(()=>this.setVisibility()),this.subscribeOptionChanges()})}clearSelectedOptions(c,v=!1){this.options.forEach(w=>{w!==c&&(v&&w.deselect(),w.setInactiveStyles())})}subscribeOptionChanges(){this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe((0,U.h)(c=>c.isUserInput)).subscribe(c=>{c.source.select(),c.source.setActiveStyles(),this.activeItem=c.source,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(c.source,!0),this.selectionChange.emit(c.source)}),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe(c=>{c.setActiveStyles(),this.activeItem=c,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(c)})}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(H.Is,8),t.Y36(Ve.P,9))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-autocomplete"]],contentQueries:function(c,v,w){if(1&c&&t.Suo(w,Ge,5),2&c){let re;t.iGM(re=t.CRH())&&(v.fromContentOptions=re)}},viewQuery:function(c,v){if(1&c&&(t.Gf(t.Rgc,5),t.Gf(Re,5),t.Gf(it,5),t.Gf(Ge,5)),2&c){let w;t.iGM(w=t.CRH())&&(v.template=w.first),t.iGM(w=t.CRH())&&(v.panel=w.first),t.iGM(w=t.CRH())&&(v.content=w.first),t.iGM(w=t.CRH())&&(v.fromDataSourceOptions=w)}},inputs:{nzWidth:"nzWidth",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzDefaultActiveFirstOption:"nzDefaultActiveFirstOption",nzBackfill:"nzBackfill",compareWith:"compareWith",nzDataSource:"nzDataSource"},outputs:{selectionChange:"selectionChange"},exportAs:["nzAutocomplete"],ngContentSelectors:xe,decls:1,vars:0,consts:[[1,"ant-select-dropdown","ant-select-dropdown-placement-bottomLeft",3,"ngClass","ngStyle","nzNoAnimation"],["panel",""],[2,"max-height","256px","overflow-y","auto","overflow-anchor","none"],[2,"display","flex","flex-direction","column"],[4,"ngTemplateOutlet"],["contentTemplate",""],["optionsTemplate",""],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"]],template:function(c,v){1&c&&(t.F$t(),t.YNc(0,at,9,10,"ng-template"))},directives:[Ge,o.mk,o.PC,Ve.P,o.tP,o.sg],encapsulation:2,data:{animation:[Ne.mF]},changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzDefaultActiveFirstOption",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzBackfill",void 0),u})(),m=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[H.vT,o.ez,be.U8,Oe.u5,Pe.T,Ve.g,Ee.o7]]}),u})();var l=r(6949);function k(u,M){1&u&&t._UZ(0,"i",5)}function ie(u,M){if(1&u){const c=t.EpF();t.ynx(0),t.TgZ(1,"a",6),t.TgZ(2,"nz-auto-option",7),t.NdJ("click",function(){t.CHM(c);const w=t.oxw();return w.searchQuery="",w.refresh()}),t.TgZ(3,"span"),t._UZ(4,"i",8),t._uU(5," \xa0 "),t._UZ(6,"span",9),t._UZ(7,"br"),t._UZ(8,"span",9),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&u){const c=M.$implicit,v=t.oxw();t.xp6(1),t.Q6J("routerLink",v.urlForResult(c)),t.xp6(1),t.Q6J("nzValue",v.urlForResult(c)),t.xp6(2),t.Q6J("nzType",v.iconNameForResult(c)),t.xp6(2),t.s9C("innerHTML",c.name,t.oJD),t.xp6(2),t.s9C("innerHTML",c.matchingText,t.oJD)}}let ze=(()=>{class u{constructor(c,v){this.gql=c,this.router=v,this.searchQuery=""}ngOnInit(){this.queryRef=this.gql.watch({query:this.searchQuery}),this.searchResults$=this.queryRef.valueChanges.pipe((0,Se.j)("data","search"))}refresh(){this.queryRef.refetch({query:this.searchQuery})}iconNameForResult(c){switch(c.resultType){case _e.rZD.EvidenceItem:return"civic:evidence";case _e.rZD.VariantGroup:return"civic:variantgroup";default:return`civic:${c.resultType.toLowerCase()}`}}urlForResult(c){let v;switch(c.resultType){case _e.rZD.VariantGroup:v="variant-groups";break;case _e.rZD.EvidenceItem:v="evidence";break;default:v=`${c.resultType.toLowerCase()}s`}return`/${v}/${c.id}/summary`}quicksearchSelected(c){let v=c.target.value;this.searchQuery="",this.router.navigate([v])}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(_e.ghc),t.Y36(i.F0))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-quicksearch"]],decls:8,vars:6,consts:[["nzSize","large",3,"nzSuffix"],["placeholder","Quicksearch","nz-input","",3,"ngModel","nzAutocomplete","ngModelChange","keyup.enter"],["suffixIcon",""],["auto",""],[4,"ngFor","ngForOf"],["nz-icon","","nzType","search"],[3,"routerLink"],[3,"nzValue","click"],["nz-icon","",3,"nzType"],[3,"innerHTML"]],template:function(c,v){if(1&c&&(t.TgZ(0,"nz-input-group",0),t.TgZ(1,"input",1),t.NdJ("ngModelChange",function(re){return v.searchQuery=re})("ngModelChange",function(){return v.refresh()})("keyup.enter",function(re){return v.quicksearchSelected(re)}),t.qZA(),t.qZA(),t.YNc(2,k,1,0,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-autocomplete",null,3),t.YNc(6,ie,9,5,"ng-container",4),t.ALo(7,"ngrxPush"),t.qZA()),2&c){const w=t.MAs(3),re=t.MAs(5);t.Q6J("nzSuffix",w),t.xp6(1),t.Q6J("ngModel",v.searchQuery)("nzAutocomplete",re),t.xp6(5),t.Q6J("ngForOf",t.lcZ(7,4,v.searchResults$))}},directives:[Ee.gB,Ee.ke,Ee.Zp,Oe.Fj,a,Oe.JJ,Oe.On,K.Ls,j,o.sg,i.yS,Ge],pipes:[l.fM],styles:[""]}),u})();var Ze=r(1912),Te=r(4850),$e=r(1059),we=r(8144),Ye=r(6042),je=r(2643),He=r(2683),We=r(3677),Je=r(4401),Xe=r(7881),tt=r(3640),nt=r(8785);function f(u,M){if(1&u&&(t.TgZ(0,"button",23),t._uU(1," Add "),t._UZ(2,"i",24),t.qZA()),2&u){t.oxw(2);const c=t.MAs(14);t.Q6J("nzDropdownMenu",c)}}const E=function(){return{backgroundColor:"#096dd9",color:"#fff1f0",boxShadow:"0 0 0 1px #1890ff inset"}};function C(u,M){if(1&u&&(t.TgZ(0,"nz-badge",25),t.TgZ(1,"button",26),t._UZ(2,"i",27),t.qZA(),t.qZA()),2&u){const c=t.oxw().ngrxLet,v=t.oxw().ngIf;t.Q6J("nzCount",c)("nzOverflowCount",999)("nzStyle",t.DdM(4,E)),t.xp6(1),t.MGl("routerLink","/users/",v.id,"/notifications")}}const R=function(u){return{"update-coi":u}};function ce(u,M){if(1&u&&t._UZ(0,"cvc-user-avatar",33),2&u){const c=t.oxw(3).ngIf;t.Q6J("user",c)("size",22)("ngClass",t.VKq(3,R,c.invalidCoi))}}function he(u,M){if(1&u&&(t.TgZ(0,"div",34),t._uU(1),t.qZA()),2&u){const c=t.oxw(3).ngIf;t.xp6(1),t.Oqu(c.username)}}function pt(u,M){1&u&&t._UZ(0,"i",24)}function Jt(u,M){if(1&u&&(t.TgZ(0,"button",28),t.TgZ(1,"nz-space",29),t.YNc(2,ce,1,5,"cvc-user-avatar",30),t.YNc(3,he,2,1,"div",31),t.YNc(4,pt,1,0,"i",32),t.qZA(),t.qZA()),2&u){t.oxw(2);const c=t.MAs(3);t.Q6J("nzDropdownMenu",c)}}function mt(u,M){1&u&&(t.TgZ(0,"nz-space",19),t.YNc(1,f,3,1,"button",20),t.YNc(2,C,3,5,"nz-badge",21),t.YNc(3,Jt,5,1,"button",22),t.qZA())}function gt(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"li",14),t.TgZ(1,"button",35),t.NdJ("click",function(){return t.CHM(c),t.oxw(2).coiUpdateModalVisible=!0}),t._UZ(2,"i",36),t._uU(3," Please update COI statement "),t.qZA(),t.qZA()}}function ft(u,M){1&u&&t._UZ(0,"li",11)}function ht(u,M){1&u&&(t.TgZ(0,"li",37),t.TgZ(1,"a",38),t._uU(2," Admin Console "),t.qZA(),t.qZA())}const vt=function(u){return["/users",u]};function zt(u,M){if(1&u){const c=t.EpF();t.ynx(0),t.YNc(1,mt,4,0,"nz-space",4),t.TgZ(2,"nz-dropdown-menu",null,5),t.TgZ(4,"ul",6),t.YNc(5,gt,4,0,"li",7),t.YNc(6,ft,1,0,"li",8),t.TgZ(7,"li",9),t._uU(8," Your Profile "),t.qZA(),t.YNc(9,ht,3,0,"li",10),t._UZ(10,"li",11),t.TgZ(11,"li",12),t.NdJ("click",function(){return t.CHM(c),t.oxw().signOut()}),t._uU(12,"Sign Out"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(13,"nz-dropdown-menu",null,13),t.TgZ(15,"ul",6),t.TgZ(16,"li",14),t.TgZ(17,"a",15),t._uU(18," Evidence Item "),t.qZA(),t.qZA(),t.TgZ(19,"li",14),t.TgZ(20,"a",16),t._uU(21," Assertion "),t.qZA(),t.qZA(),t.TgZ(22,"li",14),t.TgZ(23,"a",17),t._uU(24," Source Suggestion "),t.qZA(),t.qZA(),t.TgZ(25,"li",14),t.TgZ(26,"a",18),t._uU(27," Variant Group "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&u){const c=M.ngIf,v=t.oxw();t.xp6(1),t.Q6J("ngrxLet",v.unreadCount$),t.xp6(4),t.Q6J("ngIf",c.invalidCoi),t.xp6(1),t.Q6J("ngIf",c.invalidCoi),t.xp6(1),t.Q6J("routerLink",t.VKq(5,vt,c.id)),t.xp6(2),t.Q6J("ngIf",c.isAdmin)}}function yt(u,M){1&u&&(t.TgZ(0,"span"),t._uU(1,"Update your Conflict of Interest Statement"),t.qZA())}function Ct(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"cvc-user-coi-form",39),t.NdJ("coiUpdatedEvent",function(){return t.CHM(c),t.oxw().coiUpdated()}),t.qZA()}}let It=(()=>{class u{constructor(c,v){this.queryService=c,this.unreadCountGql=v,this.coiUpdateModalVisible=!1,this.viewer$=this.queryService.viewer$,this.unreadCount$=this.unreadCountGql.watch(void 0).valueChanges.pipe((0,Te.U)(({data:w})=>w.notifications.unreadCount),(0,$e.O)(0))}signOut(){this.queryService.signOut()}coiUpdated(){this.coiUpdateModalVisible=!1,this.queryService.refetch()}handleCoiModalCancel(){this.coiUpdateModalVisible=!1}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(D.a),t.Y36(_e.Kmw))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-viewer-button"]],decls:7,vars:7,consts:[[4,"ngIf"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["coiModalTitle",""],["coiModalContent",""],["nzDirection","horizontal","nzSize","middle",4,"ngrxLet"],["userMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",4,"ngIf"],["nz-menu-divider","",4,"ngIf"],["nz-menu-item","",3,"routerLink"],["nz-menu-item","","href","/admin",4,"ngIf"],["nz-menu-divider",""],["nz-menu-item","",3,"click"],["addMenu","nzDropdownMenu"],["nz-menu-item",""],["routerLink","/evidence/add/submit"],["routerLink","/assertions/add/submit"],["routerLink","/sources/add"],["routerLink","/variant-groups/add/submit"],["nzDirection","horizontal","nzSize","middle"],["class","add-btn","nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],["nzShowZero","",3,"nzCount","nzOverflowCount","nzStyle",4,"nzSpaceItem"],["class","viewer-btn","nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],["nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"add-btn",3,"nzDropdownMenu"],["nz-icon","","nzType","caret-down","nzTheme","outline"],["nzShowZero","",3,"nzCount","nzOverflowCount","nzStyle"],["nz-button","","nzSize","large","nzShape","circle","nzType","link",1,"notification-btn",3,"routerLink"],["nz-icon","","nzType","bell","nzTheme","outline"],["nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"viewer-btn",3,"nzDropdownMenu"],["nzDirection","horizontal","nzSize","small"],["shape","circle",3,"user","size","ngClass",4,"nzSpaceItem"],["class","viewer-name",4,"nzSpaceItem"],["nz-icon","","nzType","caret-down","nzTheme","outline",4,"nzSpaceItem"],["shape","circle",3,"user","size","ngClass"],[1,"viewer-name"],["nz-button","","nzType","primary","nzShape","round","nzSize","small","nzDanger","","nzBlock","",3,"click"],["nz-icon","","nzType","exclamation-circle"],["nz-menu-item","","href","/admin"],["href","/admin"],[3,"coiUpdatedEvent"]],template:function(c,v){if(1&c&&(t.YNc(0,zt,28,7,"ng-container",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-modal",1),t.NdJ("nzVisibleChange",function(re){return v.coiUpdateModalVisible=re})("nzOnCancel",function(){return v.handleCoiModalCancel()}),t.YNc(3,yt,2,0,"ng-template",null,2,t.W1O),t.YNc(5,Ct,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&c){const w=t.MAs(4),re=t.MAs(6);t.Q6J("ngIf",t.lcZ(1,5,v.viewer$)),t.xp6(2),t.Q6J("nzVisible",v.coiUpdateModalVisible)("nzContent",re)("nzTitle",w)("nzFooter",null)}},directives:[o.O5,l.eJ,we.NU,we.$1,Ye.ix,je.dQ,He.w,We.wA,We.cm,K.Ls,Je.x7,i.rH,Xe.L,o.mk,We.RR,L.wO,L.r9,L.YV,i.yS,tt.du,nt.t],pipes:[l.fM],styles:["[_nghost-%COMP%]{display:inline-block}.topMenuIcon[_ngcontent-%COMP%]:hover{cursor:pointer}.topMenuIcon[_ngcontent-%COMP%]{font-size:16px}.topMenuIcon[_ngcontent-%COMP%] .topBarBadge[_ngcontent-%COMP%]{margin-right:-10px;margin-top:-16px}.topMenuIcon[_ngcontent-%COMP%] .topMenuSecondary[_ngcontent-%COMP%]{font-size:10px;margin-left:2px}.add-btn[_ngcontent-%COMP%]{margin-right:0;background-color:#001529;border:none;color:#ccc}.notification-btn[_ngcontent-%COMP%]{background-color:#001529;border:1px solid #096dd9}.viewer-btn[_ngcontent-%COMP%]{background-color:#0050b3;border:none;color:#ccc;padding-left:5px;padding-right:10px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%]{position:relative;top:-1px;left:1px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%] .ant-avatar>img{border-width:1.5px;border-style:solid;border-color:#096dd9;border-radius:22px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar.update-coi[_ngcontent-%COMP%] .ant-avatar>img{border-color:#f5222d}"]}),u})();function Tt(u,M){1&u&&t._UZ(0,"img",58)}function _t(u,M){1&u&&t._UZ(0,"img",59)}function St(u,M){1&u&&t._UZ(0,"cvc-login-button")}function Dt(u,M){1&u&&t._UZ(0,"cvc-viewer-button")}const Gt=function(u){return{"is-collapsed":u}},Et=[{path:"",pathMatch:"full",redirectTo:"/welcome"},{path:"",component:(()=>{class u{constructor(c){this.viewerService=c,this.isCollapsed=!1}ngOnInit(){this.data$=this.viewerService.data$,this.viewer$=this.viewerService.viewer$,this.signedIn$=this.viewerService.signedIn$,this.signedOut$=this.viewerService.signedOut$,this.canCurate$=this.viewerService.canCurate$,this.canModerate$=this.viewerService.canModerate$}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(D.a))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-layout"]],decls:124,vars:46,consts:[[1,"app-layout"],["nzCollapsible","","nzBreakpoint","md",1,"app-sider",3,"nzWidth","nzCollapsedWidth","nzCollapsed","nzTrigger","nzCollapsedChange"],["routerLink","/"],[1,"sidebar-logo",3,"ngClass"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["nz-menu","","nzTheme","dark","nzMode","inline",1,"sidebar-menu",3,"ngClass","nzInlineCollapsed"],["nz-menu-group","",3,"nzTitle"],["nz-menu-item","","nz-tooltip","","nzTooltipPlacement","right","nzSelected","","nzMatchRouter","",3,"nzTooltipTitle"],["nz-icon","","nzType","civic-assertion"],["routerLink","/assertions"],["nz-icon","","nzType","civic-evidence"],["routerLink","/evidence"],["nz-icon","","nzType","civic-gene"],["routerLink","/genes"],["nz-icon","","nzType","civic-variant"],["routerLink","/variants"],["nz-icon","","nzType","civic-variantgroup"],["routerLink","/variant-groups"],["nz-icon","","nzType","audit"],["routerLink","/clinical-trials"],["nz-icon","","nzType","civic-disease"],["routerLink","/diseases"],["nz-icon","","nzType","civic-intervention"],["routerLink","/drugs"],["nz-icon","","nzType","civic-phenotype"],["routerLink","/phenotypes"],["nz-icon","","nzType","civic-source"],["routerLink","/sources"],["nz-icon","","nzType","civic-varianttype"],["routerLink","/variant-types"],["nz-icon","","nzType","civic-event"],["routerLink","/curation/activity"],["nz-icon","","nzType","file-add"],["routerLink","/curation/queues"],["nz-icon","","nzType","civic-curator"],["routerLink","/users","id","main-users"],["nz-icon","","nzType","civic-organization"],["routerLink","/organizations","id","main-organization"],["nz-icon","","nzType","download"],["routerLink","/releases","id","releases"],["nz-tooltip","","nzTooltipPlacement","rightTop","nzTooltipTitle","By marking the work with a CC0 public domain dedication, the creator is giving up their copyright and allowing reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes.",1,"cc-notice",3,"ngClass"],["src","assets/images/CC0-notice-glyph.svg","alt","CC0 1.0 Universal",1,"cc-glyph"],["src","assets/images/CC0-notice-txt.svg","alt","This work has been marked as dedicated to the public domain.",1,"cc-txt"],[1,"right-layout",3,"ngClass"],["nz-row",""],["nz-col","","nzFlex","40px"],[1,"header-trigger",3,"click"],["nz-icon","",1,"trigger",3,"nzType"],["nz-col","","nzFlex","300px","id","header-search"],["nz-col","","nzFlex","300px","id","header-menu"],["nz-menu","","nzMode","horizontal","nzTheme","dark"],["nz-menu-item","","nzSelected","","nzMatchRouter",""],["routerLink","/welcome"],["routerLink","/pages/about"],["routerLink","/pages/help"],["nz-col","","nzFlex","auto","id","header-viewer"],[4,"ngIf"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"]],template:function(c,v){1&c&&(t.TgZ(0,"nz-layout",0),t.TgZ(1,"nz-sider",1),t.NdJ("nzCollapsedChange",function(re){return v.isCollapsed=re}),t.TgZ(2,"a",2),t.TgZ(3,"div",3),t.YNc(4,Tt,1,0,"img",4),t.YNc(5,_t,1,0,"img",5),t.qZA(),t.qZA(),t.TgZ(6,"ul",6),t.TgZ(7,"li",7),t.TgZ(8,"ul"),t.TgZ(9,"li",8),t._UZ(10,"i",9),t.TgZ(11,"span"),t.TgZ(12,"a",10),t._uU(13,"Assertions"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"li",8),t._UZ(15,"i",11),t.TgZ(16,"span"),t.TgZ(17,"a",12),t._uU(18,"Evidence"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(19,"li",8),t._UZ(20,"i",13),t.TgZ(21,"span"),t.TgZ(22,"a",14),t._uU(23,"Genes"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"li",8),t._UZ(25,"i",15),t.TgZ(26,"span"),t.TgZ(27,"a",16),t._uU(28,"Variants"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"li",8),t._UZ(30,"i",17),t.TgZ(31,"span"),t.TgZ(32,"a",18),t._uU(33,"Variant Groups"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(34,"li",8),t._UZ(35,"i",19),t.TgZ(36,"span"),t.TgZ(37,"a",20),t._uU(38,"Clinical Trials"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(39,"li",8),t._UZ(40,"i",21),t.TgZ(41,"span"),t.TgZ(42,"a",22),t._uU(43,"Diseases"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(44,"li",8),t._UZ(45,"i",23),t.TgZ(46,"span"),t.TgZ(47,"a",24),t._uU(48,"Drugs"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(49,"li",8),t._UZ(50,"i",25),t.TgZ(51,"span"),t.TgZ(52,"a",26),t._uU(53,"Phenotypes"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(54,"li",8),t._UZ(55,"i",27),t.TgZ(56,"span"),t.TgZ(57,"a",28),t._uU(58,"Sources"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(59,"li",8),t._UZ(60,"i",29),t.TgZ(61,"span"),t.TgZ(62,"a",30),t._uU(63,"Variant Types"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(64,"li",7),t.TgZ(65,"ul"),t.TgZ(66,"li",8),t._UZ(67,"i",31),t.TgZ(68,"span"),t.TgZ(69,"a",32),t._uU(70," Activity "),t.qZA(),t.qZA(),t.qZA(),t.TgZ(71,"li",8),t._UZ(72,"i",33),t.TgZ(73,"span"),t.TgZ(74,"a",34),t._uU(75,"Queues"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(76,"li",7),t.TgZ(77,"ul"),t.TgZ(78,"li",8),t._UZ(79,"i",35),t.TgZ(80,"span"),t.TgZ(81,"a",36),t._uU(82,"Contributors"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(83,"li",8),t._UZ(84,"i",37),t.TgZ(85,"span"),t.TgZ(86,"a",38),t._uU(87,"Organizations"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(88,"li",7),t.TgZ(89,"ul"),t.TgZ(90,"li",8),t._UZ(91,"i",39),t.TgZ(92,"span"),t.TgZ(93,"a",40),t._uU(94,"Data Releases"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(95,"div",41),t._UZ(96,"img",42),t._UZ(97,"img",43),t.qZA(),t.qZA(),t.TgZ(98,"nz-layout",44),t.TgZ(99,"nz-header"),t.TgZ(100,"div",45),t.TgZ(101,"div",46),t.TgZ(102,"span",47),t.NdJ("click",function(){return v.isCollapsed=!v.isCollapsed}),t._UZ(103,"i",48),t.qZA(),t.qZA(),t.TgZ(104,"div",49),t._UZ(105,"cvc-quicksearch"),t.qZA(),t.TgZ(106,"div",50),t.TgZ(107,"ul",51),t.TgZ(108,"li",52),t.TgZ(109,"a",53),t._uU(110,"Home"),t.qZA(),t.qZA(),t.TgZ(111,"li",52),t.TgZ(112,"a",54),t._uU(113,"About CIViC"),t.qZA(),t.qZA(),t.TgZ(114,"li",52),t.TgZ(115,"a",55),t._uU(116,"Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(117,"div",56),t.YNc(118,St,1,0,"cvc-login-button",57),t.ALo(119,"async"),t.YNc(120,Dt,1,0,"cvc-viewer-button",57),t.ALo(121,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(122,"nz-content"),t._UZ(123,"router-outlet"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.xp6(1),t.Q6J("nzWidth",170)("nzCollapsedWidth",80)("nzCollapsed",v.isCollapsed)("nzTrigger",null),t.xp6(2),t.Q6J("ngClass",t.VKq(38,Gt,v.isCollapsed)),t.xp6(1),t.Q6J("ngIf",!v.isCollapsed),t.xp6(1),t.Q6J("ngIf",v.isCollapsed),t.xp6(1),t.Q6J("ngClass",t.VKq(40,Gt,v.isCollapsed))("nzInlineCollapsed",v.isCollapsed),t.xp6(1),t.Q6J("nzTitle",v.isCollapsed?"KNOW":"KNOWLEDGEBASE"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Assertions":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Evidence":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Genes":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variants":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variant Groups":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Clinical Trials":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Diseases":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Drugs":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Phenotypes":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Sources":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variant Types":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"CURATE":"CURATION"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Activity":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Pending Queues":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"COMM":"COMMUNITY"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Users":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Organizations":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"RES":"RESOURCES"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Data Releases":""),t.xp6(5),t.Q6J("ngClass",t.VKq(42,Gt,v.isCollapsed)),t.xp6(3),t.Q6J("ngClass",t.VKq(44,Gt,v.isCollapsed)),t.xp6(5),t.Q6J("nzType",v.isCollapsed?"menu-unfold":"menu-fold"),t.xp6(15),t.Q6J("ngIf",t.lcZ(119,34,v.signedOut$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(121,36,v.signedIn$)))},directives:[G,g,i.yS,o.mk,o.O5,L.wO,L.uA,L.r9,Q.SY,K.Ls,W,ye.SK,ye.t3,ze,Ze.s,It,pe,i.lC],pipes:[o.Ov],styles:["[_nghost-%COMP%]{display:flex;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app-layout[_ngcontent-%COMP%]{min-height:100vh}nz-sider[_ngcontent-%COMP%]{width:170px;overflow:auto;height:100%;position:fixed;left:0}.right-layout[_ngcontent-%COMP%]{margin-left:170px;width:100%;position:relative;transition:all .2s,padding 0s;background-color:#001529}.right-layout.is-collapsed[_ngcontent-%COMP%]{margin-left:80px}.sidebar-menu[_ngcontent-%COMP%]{margin-top:-20px}.sidebar-menu[_ngcontent-%COMP%] .ant-menu-item-group-title{padding-bottom:0}.sidebar-menu.is-collapsed[_ngcontent-%COMP%]{margin-top:-8px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-item-group-title{text-align:center}.cc-notice[_ngcontent-%COMP%]{margin-top:5em;text-align:center;width:170px}.cc-notice[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:56px}.cc-notice[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{width:76px}.cc-notice.is-collapsed[_ngcontent-%COMP%]{width:80px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:35px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{display:none}.sidebar-logo[_ngcontent-%COMP%]{height:90px}.sidebar-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:133px;height:auto;margin:12px 16px;transition:all .2s}.sidebar-logo.is-collapsed[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:auto;margin:12px 20px;transition:all .2s}.ant-layout-header[_ngcontent-%COMP%]{height:64px;line-height:64px;padding:0;position:fixed;width:calc(100% - 170px);z-index:10;color:#d6e4ff}.header-trigger[_ngcontent-%COMP%]{height:64px;cursor:pointer;color:#d6e4ff;padding:1em 1em 1em 0}#header-menu[_ngcontent-%COMP%]{text-align:right;height:64px}#header-search[_ngcontent-%COMP%]{height:64px;padding-right:16px}#header-viewer[_ngcontent-%COMP%]{text-align:right;padding-right:1em}.header-quicksearch[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-menu[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-user[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#d6e4ff}nz-content[_ngcontent-%COMP%]{margin-top:64px;overflow:initial;position:relative;z-index:1;background-color:#273340;border-top:1px solid #3e5166;border-left:1px solid #3e5166;padding:12px;border-top-left-radius:16px}"]}),u})(),children:[{path:"assertions",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(1679),r.e(3883),r.e(3021),r.e(8776),r.e(4376),r.e(3730),r.e(8592),r.e(9020)]).then(r.bind(r,136)).then(u=>u.AssertionsModule),data:{breadcrumb:"Assertions"}},{path:"clinical-trials",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(305),r.e(7717),r.e(6519)]).then(r.bind(r,1838)).then(u=>u.ClinicalTrialsModule),data:{breadcrumb:"Clinical Trials"}},{path:"diseases",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(2395)]).then(r.bind(r,233)).then(u=>u.DiseasesModule),data:{breadcrumb:"Diseases"}},{path:"drugs",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(8422)]).then(r.bind(r,1592)).then(u=>u.DrugsModule),data:{breadcrumb:"Drugs"}},{path:"evidence",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(305),r.e(1457)]).then(r.bind(r,7727)).then(u=>u.EvidenceModule),data:{breadcrumb:"Evidence"}},{path:"genes",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(681)]).then(r.bind(r,681)).then(u=>u.GenesModule),data:{breadcrumb:"Genes"}},{path:"organizations",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(4292),r.e(3883),r.e(392),r.e(9484),r.e(376),r.e(3074),r.e(8592),r.e(3073)]).then(r.bind(r,3073)).then(u=>u.OrganizationsModule),data:{breadcrumb:"Organizations"}},{path:"phenotypes",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(4721)]).then(r.bind(r,1076)).then(u=>u.PhenotypesModule),data:{breadcrumb:"Phenotypes"}},{path:"sources",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(1679),r.e(2738),r.e(55),r.e(3021),r.e(8776),r.e(2043),r.e(9484),r.e(4376),r.e(7717),r.e(8592),r.e(3648)]).then(r.bind(r,359)).then(u=>u.SourcesModule),data:{breadcrumb:"Sources"}},{path:"curation",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(3883),r.e(9484),r.e(4276)]).then(r.bind(r,7563)).then(u=>u.CurationModule),data:{breadcrumb:"Curation"}},{path:"users",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(4292),r.e(3883),r.e(9484),r.e(376),r.e(3074),r.e(3218)]).then(r.bind(r,3218)).then(u=>u.UsersModule),data:{breadcrumb:"Contributors"}},{path:"variant-groups",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(9890),r.e(79)]).then(r.bind(r,79)).then(u=>u.VariantGroupsModule),data:{breadcrumb:"Variant Groups"}},{path:"variants",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(1750),r.e(4658)]).then(r.bind(r,9221)).then(u=>u.VariantsModule),data:{breadcrumb:"Variants"}},{path:"variant-types",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(1750),r.e(4729)]).then(r.bind(r,1875)).then(u=>u.VariantTypesModule),data:{breadcrumb:"Variant Types"}},{path:"welcome",loadChildren:()=>Promise.all([r.e(6256),r.e(3501),r.e(5193),r.e(9001),r.e(2826),r.e(2738),r.e(4292),r.e(376),r.e(6303)]).then(r.bind(r,6528)).then(u=>u.WelcomeModule),data:{breadcrumb:"Welcome to CIViC"}},{path:"releases",loadChildren:()=>Promise.all([r.e(7064),r.e(9890),r.e(4579)]).then(r.bind(r,4579)).then(u=>u.ReleasesModule),data:{breadcrumb:"Releases"}},{path:"pages",loadChildren:()=>Promise.all([r.e(7064),r.e(4038)]).then(r.bind(r,4038)).then(u=>u.PagesModule),data:{breadcrumb:"Pages"}}]}];let Nt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[i.Bz.forChild(Et)],i.Bz]}),u})();var At=r(3618),Ot=r(5109),Mt=r(4546);let Lt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,Oe.u5,i.Bz,l.WG,Ee.o7,Mt.U5,K.PV,m]]}),u})();var xt=r(1844),Ft=r(5473),bt=r(330);let Zt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,l.WG,We.b1,i.Bz,Ye.sL,we.zf,K.PV,Je.mS,Q.cg,tt.Qp,Ft.H,bt.e]]}),u})(),kt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,Nt,K.PV,ye.Jb,O,L.ip,Q.cg,At.ZJ,Ot.s,xt.B,Zt,Lt]]}),u})()},6792:(De,se,r)=>{r.d(se,{g:()=>F});var o=r(353),t=r(3489),D=r(9312);function F(A,L=o.P){const K=function i(A){return A instanceof Date&&!isNaN(+A)}(A)?+A-L.now():Math.abs(A);return H=>H.lift(new Z(K,L))}class Z{constructor(L,P){this.delay=L,this.scheduler=P}call(L,P){return P.subscribe(new B(L,this.delay,this.scheduler))}}class B extends t.L{constructor(L,P,K){super(L),this.delay=P,this.scheduler=K,this.queue=[],this.active=!1,this.errored=!1}static dispatch(L){const P=L.source,K=P.queue,H=L.scheduler,le=L.destination;for(;K.length>0&&K[0].time-H.now()<=0;)K.shift().notification.observe(le);if(K.length>0){const te=Math.max(0,K[0].time-H.now());this.schedule(L,te)}else this.unsubscribe(),P.active=!1}_schedule(L){this.active=!0,this.destination.add(L.schedule(B.dispatch,this.delay,{source:this,destination:this.destination,scheduler:L}))}scheduleNotification(L){if(!0===this.errored)return;const P=this.scheduler,K=new q(P.now()+this.delay,L);this.queue.push(K),!1===this.active&&this._schedule(P)}_next(L){this.scheduleNotification(D.P.createNext(L))}_error(L){this.errored=!0,this.queue=[],this.destination.error(L),this.unsubscribe()}_complete(){this.scheduleNotification(D.P.createComplete()),this.unsubscribe()}}class q{constructor(L,P){this.time=L,this.notification=P}}},373:(De,se,r)=>{r.d(se,{j:()=>i});var o=r(4850);function i(...D){const F=D.length;if(0===F)throw new Error("list of properties cannot be empty.");return Z=>(0,o.U)(function t(D,F){return B=>{let q=B;for(let A=0;A{r.d(se,{Dz:()=>te,Rt:()=>oe});var o=r(655),i=r(5e3),t=r(9439),D=r(1721),F=r(925),Z=r(9808),B=r(647),q=r(226);const A=["textEl"];function L(V,b){if(1&V&&i._UZ(0,"i",3),2&V){const I=i.oxw();i.Q6J("nzType",I.nzIcon)}}function P(V,b){if(1&V){const I=i.EpF();i.TgZ(0,"img",4),i.NdJ("error",function(ne){return i.CHM(I),i.oxw().imgError(ne)}),i.qZA()}if(2&V){const I=i.oxw();i.Q6J("src",I.nzSrc,i.LSH),i.uIk("srcset",I.nzSrcSet,i.LSH)("alt",I.nzAlt)}}function K(V,b){if(1&V&&(i.TgZ(0,"span",5,6),i._uU(2),i.qZA()),2&V){const I=i.oxw();i.Q6J("ngStyle",I.textStyles),i.xp6(2),i.Oqu(I.nzText)}}let te=(()=>{class V{constructor(I,$,ne,X){this.nzConfigService=I,this.elementRef=$,this.cdr=ne,this.platform=X,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new i.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(I){this.nzError.emit(I),I.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;const I=this.textEl.nativeElement.offsetWidth,$=this.el.getBoundingClientRect().width,ne=2*this.nzGap<$?2*this.nzGap:8;this.textStyles={transform:`scale(${$-ne{this.calcStringSize()})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return V.\u0275fac=function(I){return new(I||V)(i.Y36(t.jY),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(F.t4))},V.\u0275cmp=i.Xpm({type:V,selectors:[["nz-avatar"]],viewQuery:function(I,$){if(1&I&&i.Gf(A,5),2&I){let ne;i.iGM(ne=i.CRH())&&($.textEl=ne.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(I,$){2&I&&(i.Udp("width",$.customSize)("height",$.customSize)("line-height",$.customSize)("font-size",$.hasIcon&&$.customSize?$.nzSize/2:null,"px"),i.ekj("ant-avatar-lg","large"===$.nzSize)("ant-avatar-sm","small"===$.nzSize)("ant-avatar-square","square"===$.nzShape)("ant-avatar-circle","circle"===$.nzShape)("ant-avatar-icon",$.nzIcon)("ant-avatar-image",$.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[i.TTD],decls:3,vars:3,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[3,"src","error",4,"ngIf"],["class","ant-avatar-string",3,"ngStyle",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string",3,"ngStyle"],["textEl",""]],template:function(I,$){1&I&&(i.YNc(0,L,1,1,"i",0),i.YNc(1,P,1,3,"img",1),i.YNc(2,K,3,2,"span",2)),2&I&&(i.Q6J("ngIf",$.nzIcon&&$.hasIcon),i.xp6(1),i.Q6J("ngIf",$.nzSrc&&$.hasSrc),i.xp6(1),i.Q6J("ngIf",$.nzText&&$.hasText))},directives:[Z.O5,B.Ls,Z.PC],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,t.oS)()],V.prototype,"nzShape",void 0),(0,o.gn)([(0,t.oS)()],V.prototype,"nzSize",void 0),(0,o.gn)([(0,t.oS)(),(0,D.Rn)()],V.prototype,"nzGap",void 0),V})(),oe=(()=>{class V{}return V.\u0275fac=function(I){return new(I||V)},V.\u0275mod=i.oAB({type:V}),V.\u0275inj=i.cJS({imports:[[q.vT,Z.ez,B.PV,F.ud]]}),V})()},4401:(De,se,r)=>{r.d(se,{x7:()=>ue,mS:()=>Y,F9:()=>W});var o=r(655),i=r(5e3),t=r(8929),D=r(7625),F=r(8076),Z=r(9439),B=r(1721),q=r(226),A=r(4832),L=r(9808),P=r(969),K=r(7144);function H(g,G){if(1&g&&(i.TgZ(0,"p",6),i._uU(1),i.qZA()),2&g){const O=G.$implicit,Q=i.oxw(2).index,ye=i.oxw(2);i.ekj("current",O===ye.countArray[Q]),i.xp6(1),i.hij(" ",O," ")}}function le(g,G){if(1&g&&(i.ynx(0),i.YNc(1,H,2,3,"p",5),i.BQk()),2&g){const O=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",O.countSingleArray)}}function te(g,G){if(1&g&&(i.TgZ(0,"span",3),i.YNc(1,le,2,1,"ng-container",4),i.qZA()),2&g){const O=G.index,Q=i.oxw(2);i.Udp("transform","translateY("+100*-Q.countArray[O]+"%)"),i.Q6J("nzNoAnimation",Q.noAnimation),i.xp6(1),i.Q6J("ngIf",!Q.nzDot&&void 0!==Q.countArray[O])}}function ae(g,G){if(1&g&&(i.ynx(0),i.YNc(1,te,2,4,"span",2),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Q6J("ngForOf",O.maxNumberArray)}}function oe(g,G){if(1&g&&i._uU(0),2&g){const O=i.oxw();i.hij("",O.nzOverflowCount,"+")}}function V(g,G){if(1&g&&(i.ynx(0),i._uU(1),i.BQk()),2&g){const O=i.oxw(2);i.xp6(1),i.Oqu(O.nzText)}}function b(g,G){if(1&g&&(i.ynx(0),i._UZ(1,"span",2),i.TgZ(2,"span",3),i.YNc(3,V,2,1,"ng-container",1),i.qZA(),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Gre("ant-badge-status-dot ant-badge-status-",O.nzStatus||O.presetColor,""),i.Udp("background",!O.presetColor&&O.nzColor),i.Q6J("ngStyle",O.nzStyle),i.xp6(2),i.Q6J("nzStringTemplateOutlet",O.nzText)}}function I(g,G){if(1&g&&i._UZ(0,"nz-badge-sup",5),2&g){const O=i.oxw(2);i.Q6J("nzOffset",O.nzOffset)("nzTitle",O.nzTitle)("nzStyle",O.nzStyle)("nzDot",O.nzDot)("nzOverflowCount",O.nzOverflowCount)("disableAnimation",!!(O.nzStandalone||O.nzStatus||O.nzColor||null!=O.noAnimation&&O.noAnimation.nzNoAnimation))("nzCount",O.nzCount)("noAnimation",!(null==O.noAnimation||!O.noAnimation.nzNoAnimation))}}function $(g,G){if(1&g&&(i.ynx(0),i.YNc(1,I,1,8,"nz-badge-sup",4),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Q6J("ngIf",O.showSup)}}const ne=["*"];function X(g,G){if(1&g&&(i.ynx(0),i._uU(1),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Oqu(O.nzText)}}const de=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let fe=(()=>{class g{constructor(){this.nzStyle=null,this.nzDot=!1,this.nzOverflowCount=99,this.disableAnimation=!1,this.noAnimation=!1,this.maxNumberArray=[],this.countArray=[],this.count=0,this.countSingleArray=[0,1,2,3,4,5,6,7,8,9]}generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("")}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(O){const{nzOverflowCount:Q,nzCount:ye}=O;ye&&"number"==typeof ye.currentValue&&(this.count=Math.max(0,ye.currentValue),this.countArray=this.count.toString().split("").map(_e=>+_e)),Q&&this.generateMaxNumberArray()}}return g.\u0275fac=function(O){return new(O||g)},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:15,hostBindings:function(O,Q){2&O&&(i.uIk("title",null===Q.nzTitle?"":Q.nzTitle||Q.nzCount),i.d8E("@.disabled",Q.disableAnimation)("@zoomBadgeMotion",void 0),i.Akn(Q.nzStyle),i.Udp("right",Q.nzOffset&&Q.nzOffset[0]?-Q.nzOffset[0]:null,"px")("margin-top",Q.nzOffset&&Q.nzOffset[1]?Q.nzOffset[1]:null,"px"),i.ekj("ant-badge-count",!Q.nzDot)("ant-badge-dot",Q.nzDot)("ant-badge-multiple-words",Q.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation"},exportAs:["nzBadgeSup"],features:[i.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["overflowTemplate",""],["class","ant-scroll-number-only",3,"nzNoAnimation","transform",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[4,"ngIf"],["class","ant-scroll-number-only-unit",3,"current",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only-unit"]],template:function(O,Q){if(1&O&&(i.YNc(0,ae,2,1,"ng-container",0),i.YNc(1,oe,1,1,"ng-template",null,1,i.W1O)),2&O){const ye=i.MAs(2);i.Q6J("ngIf",Q.count<=Q.nzOverflowCount)("ngIfElse",ye)}},directives:[L.O5,L.sg,A.P],encapsulation:2,data:{animation:[F.Ev]},changeDetection:0}),g})(),ue=(()=>{class g{constructor(O,Q,ye,_e,Se,Ee){this.nzConfigService=O,this.renderer=Q,this.cdr=ye,this.elementRef=_e,this.directionality=Se,this.noAnimation=Ee,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new t.xQ,this.nzShowZero=!1,this.nzShowDot=!0,this.nzStandalone=!1,this.nzDot=!1,this.nzOverflowCount=99,this.nzColor=void 0,this.nzStyle=null,this.nzText=null}ngOnInit(){var O;null===(O=this.directionality.change)||void 0===O||O.pipe((0,D.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(O){const{nzColor:Q,nzShowDot:ye,nzDot:_e,nzCount:Se,nzShowZero:Ee}=O;Q&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null),(ye||_e||Se||Ee)&&(this.showSup=this.nzShowDot&&this.nzDot||this.nzCount>0||this.nzCount<=0&&this.nzShowZero)}prepareBadgeForRtl(){this.isRtlLayout?this.renderer.addClass(this.elementRef.nativeElement,"ant-badge-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-badge-rtl")}get isRtlLayout(){return"rtl"===this.dir}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return g.\u0275fac=function(O){return new(O||g)(i.Y36(Z.jY),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(q.Is,8),i.Y36(A.P,9))},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(O,Q){2&O&&i.ekj("ant-badge-status",Q.nzStatus)("ant-badge-not-a-wrapper",!!(Q.nzStandalone||Q.nzStatus||Q.nzColor))},inputs:{nzShowZero:"nzShowZero",nzShowDot:"nzShowDot",nzStandalone:"nzStandalone",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset"},exportAs:["nzBadge"],features:[i.TTD],ngContentSelectors:ne,decls:3,vars:2,consts:[[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation",4,"ngIf"],[3,"nzOffset","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(O,Q){1&O&&(i.F$t(),i.YNc(0,b,4,7,"ng-container",0),i.Hsn(1),i.YNc(2,$,2,1,"ng-container",1)),2&O&&(i.Q6J("ngIf",Q.nzStatus||Q.nzColor),i.xp6(2),i.Q6J("nzStringTemplateOutlet",Q.nzCount))},directives:[fe,L.O5,L.PC,P.f],encapsulation:2,data:{animation:[F.Ev]},changeDetection:0}),(0,o.gn)([(0,B.yF)()],g.prototype,"nzShowZero",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzShowDot",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzStandalone",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzDot",void 0),(0,o.gn)([(0,Z.oS)()],g.prototype,"nzOverflowCount",void 0),(0,o.gn)([(0,Z.oS)()],g.prototype,"nzColor",void 0),g})(),W=(()=>{class g{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(O){const{nzColor:Q}=O;Q&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null)}}return g.\u0275fac=function(O){return new(O||g)},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],features:[i.TTD],ngContentSelectors:ne,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"]],template:function(O,Q){1&O&&(i.F$t(),i.Hsn(0),i.TgZ(1,"div",0),i.YNc(2,X,2,1,"ng-container",1),i._UZ(3,"div",2),i.qZA()),2&O&&(i.xp6(1),i.Tol(Q.presetColor&&"ant-ribbon-color-"+Q.presetColor),i.Udp("background-color",!Q.presetColor&&Q.nzColor),i.ekj("ant-ribbon-placement-end","end"===Q.nzPlacement)("ant-ribbon-placement-start","start"===Q.nzPlacement),i.xp6(1),i.Q6J("nzStringTemplateOutlet",Q.nzText),i.xp6(1),i.Udp("color",!Q.presetColor&&Q.nzColor))},directives:[P.f],encapsulation:2,changeDetection:0}),g})(),Y=(()=>{class g{}return g.\u0275fac=function(O){return new(O||g)},g.\u0275mod=i.oAB({type:g}),g.\u0275inj=i.cJS({imports:[[q.vT,L.ez,K.Q8,P.T,A.g]]}),g})()},7484:(De,se,r)=>{r.d(se,{bd:()=>be,vh:()=>Pe,_i:()=>Se});var o=r(655),i=r(5e3),t=r(1721),D=r(8929),F=r(7625),Z=r(9439),B=r(226),q=r(9808),A=r(969);function L(N,ee){1&N&&i.Hsn(0)}const P=["*"];function K(N,ee){1&N&&(i.TgZ(0,"div",4),i._UZ(1,"div",5),i.qZA()),2&N&&i.Q6J("ngClass",ee.$implicit)}function H(N,ee){if(1&N&&(i.TgZ(0,"div",2),i.YNc(1,K,2,1,"div",3),i.qZA()),2&N){const _=ee.$implicit;i.xp6(1),i.Q6J("ngForOf",_)}}function le(N,ee){if(1&N&&(i.ynx(0),i._uU(1),i.BQk()),2&N){const _=i.oxw(3);i.xp6(1),i.Oqu(_.nzTitle)}}function te(N,ee){if(1&N&&(i.TgZ(0,"div",11),i.YNc(1,le,2,1,"ng-container",12),i.qZA()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function ae(N,ee){if(1&N&&(i.ynx(0),i._uU(1),i.BQk()),2&N){const _=i.oxw(3);i.xp6(1),i.Oqu(_.nzExtra)}}function oe(N,ee){if(1&N&&(i.TgZ(0,"div",13),i.YNc(1,ae,2,1,"ng-container",12),i.qZA()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",_.nzExtra)}}function V(N,ee){}function b(N,ee){if(1&N&&(i.ynx(0),i.YNc(1,V,0,0,"ng-template",14),i.BQk()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",_.listOfNzCardTabComponent.template)}}function I(N,ee){if(1&N&&(i.TgZ(0,"div",6),i.TgZ(1,"div",7),i.YNc(2,te,2,1,"div",8),i.YNc(3,oe,2,1,"div",9),i.qZA(),i.YNc(4,b,2,1,"ng-container",10),i.qZA()),2&N){const _=i.oxw();i.xp6(2),i.Q6J("ngIf",_.nzTitle),i.xp6(1),i.Q6J("ngIf",_.nzExtra),i.xp6(1),i.Q6J("ngIf",_.listOfNzCardTabComponent)}}function $(N,ee){}function ne(N,ee){if(1&N&&(i.TgZ(0,"div",15),i.YNc(1,$,0,0,"ng-template",14),i.qZA()),2&N){const _=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",_.nzCover)}}function X(N,ee){1&N&&(i.ynx(0),i.Hsn(1),i.BQk())}function de(N,ee){1&N&&i._UZ(0,"nz-card-loading")}function fe(N,ee){}function pe(N,ee){if(1&N&&(i.TgZ(0,"li"),i.TgZ(1,"span"),i.YNc(2,fe,0,0,"ng-template",14),i.qZA(),i.qZA()),2&N){const _=ee.$implicit,J=i.oxw(2);i.Udp("width",100/J.nzActions.length,"%"),i.xp6(2),i.Q6J("ngTemplateOutlet",_)}}function ue(N,ee){if(1&N&&(i.TgZ(0,"ul",16),i.YNc(1,pe,3,3,"li",17),i.qZA()),2&N){const _=i.oxw();i.xp6(1),i.Q6J("ngForOf",_.nzActions)}}let _e=(()=>{class N{constructor(){this.nzHoverable=!0}}return N.\u0275fac=function(_){return new(_||N)},N.\u0275dir=i.lG2({type:N,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(_,J){2&_&&i.ekj("ant-card-hoverable",J.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,o.gn)([(0,t.yF)()],N.prototype,"nzHoverable",void 0),N})(),Se=(()=>{class N{}return N.\u0275fac=function(_){return new(_||N)},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card-tab"]],viewQuery:function(_,J){if(1&_&&i.Gf(i.Rgc,7),2&_){let U;i.iGM(U=i.CRH())&&(J.template=U.first)}},exportAs:["nzCardTab"],ngContentSelectors:P,decls:1,vars:0,template:function(_,J){1&_&&(i.F$t(),i.YNc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),N})(),Ee=(()=>{class N{constructor(){this.listOfLoading=[["ant-col-22"],["ant-col-8","ant-col-15"],["ant-col-6","ant-col-18"],["ant-col-13","ant-col-9"],["ant-col-4","ant-col-3","ant-col-16"],["ant-col-8","ant-col-6","ant-col-8"]]}}return N.\u0275fac=function(_){return new(_||N)},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card-loading"]],hostAttrs:[1,"ant-card-loading-content"],exportAs:["nzCardLoading"],decls:2,vars:1,consts:[[1,"ant-card-loading-content"],["class","ant-row","style","margin-left: -4px; margin-right: -4px;",4,"ngFor","ngForOf"],[1,"ant-row",2,"margin-left","-4px","margin-right","-4px"],["style","padding-left: 4px; padding-right: 4px;",3,"ngClass",4,"ngFor","ngForOf"],[2,"padding-left","4px","padding-right","4px",3,"ngClass"],[1,"ant-card-loading-block"]],template:function(_,J){1&_&&(i.TgZ(0,"div",0),i.YNc(1,H,2,1,"div",1),i.qZA()),2&_&&(i.xp6(1),i.Q6J("ngForOf",J.listOfLoading))},directives:[q.sg,q.mk],encapsulation:2,changeDetection:0}),N})(),be=(()=>{class N{constructor(_,J,U){this.nzConfigService=_,this.cdr=J,this.directionality=U,this._nzModuleName="card",this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new D.xQ,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,F.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var _;null===(_=this.directionality.change)||void 0===_||_.pipe((0,F.R)(this.destroy$)).subscribe(J=>{this.dir=J,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return N.\u0275fac=function(_){return new(_||N)(i.Y36(Z.jY),i.Y36(i.sBO),i.Y36(B.Is,8))},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card"]],contentQueries:function(_,J,U){if(1&_&&(i.Suo(U,Se,5),i.Suo(U,_e,4)),2&_){let ge;i.iGM(ge=i.CRH())&&(J.listOfNzCardTabComponent=ge.first),i.iGM(ge=i.CRH())&&(J.listOfNzCardGridDirective=ge)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(_,J){2&_&&i.ekj("ant-card-loading",J.nzLoading)("ant-card-bordered",!1===J.nzBorderless&&J.nzBordered)("ant-card-hoverable",J.nzHoverable)("ant-card-small","small"===J.nzSize)("ant-card-contain-grid",J.listOfNzCardGridDirective&&J.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===J.nzType)("ant-card-contain-tabs",!!J.listOfNzCardTabComponent)("ant-card-rtl","rtl"===J.dir)},inputs:{nzBordered:"nzBordered",nzBorderless:"nzBorderless",nzLoading:"nzLoading",nzHoverable:"nzHoverable",nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:P,decls:7,vars:6,consts:[["class","ant-card-head",4,"ngIf"],["class","ant-card-cover",4,"ngIf"],[1,"ant-card-body",3,"ngStyle"],[4,"ngIf","ngIfElse"],["loadingTemplate",""],["class","ant-card-actions",4,"ngIf"],[1,"ant-card-head"],[1,"ant-card-head-wrapper"],["class","ant-card-head-title",4,"ngIf"],["class","ant-card-extra",4,"ngIf"],[4,"ngIf"],[1,"ant-card-head-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[1,"ant-card-cover"],[1,"ant-card-actions"],[3,"width",4,"ngFor","ngForOf"]],template:function(_,J){if(1&_&&(i.F$t(),i.YNc(0,I,5,3,"div",0),i.YNc(1,ne,2,1,"div",1),i.TgZ(2,"div",2),i.YNc(3,X,2,0,"ng-container",3),i.YNc(4,de,1,0,"ng-template",null,4,i.W1O),i.qZA(),i.YNc(6,ue,2,1,"ul",5)),2&_){const U=i.MAs(5);i.Q6J("ngIf",J.nzTitle||J.nzExtra||J.listOfNzCardTabComponent),i.xp6(1),i.Q6J("ngIf",J.nzCover),i.xp6(1),i.Q6J("ngStyle",J.nzBodyStyle),i.xp6(1),i.Q6J("ngIf",!J.nzLoading)("ngIfElse",U),i.xp6(3),i.Q6J("ngIf",J.nzActions.length)}},directives:[Ee,q.O5,A.f,q.tP,q.PC,q.sg],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzBordered",void 0),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzBorderless",void 0),(0,o.gn)([(0,t.yF)()],N.prototype,"nzLoading",void 0),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzHoverable",void 0),(0,o.gn)([(0,Z.oS)()],N.prototype,"nzSize",void 0),N})(),Pe=(()=>{class N{}return N.\u0275fac=function(_){return new(_||N)},N.\u0275mod=i.oAB({type:N}),N.\u0275inj=i.cJS({imports:[[q.ez,A.T],B.vT]}),N})()},3677:(De,se,r)=>{r.d(se,{cm:()=>Se,b1:()=>Pe,wA:()=>be,RR:()=>Ve});var o=r(655),i=r(1159),t=r(7429),D=r(5e3),F=r(8929),Z=r(591),B=r(6787),q=r(3753),A=r(8896),L=r(3426),P=r(7604),K=r(4850),H=r(7545),le=r(2198),te=r(7138),ae=r(5778),oe=r(7625),V=r(9439),b=r(6950),I=r(1721),$=r(2845),ne=r(925),X=r(226),de=r(9808),fe=r(4182),pe=r(6042),ue=r(4832),W=r(969),Y=r(647),g=r(4219),G=r(8076);function O(_,J){if(1&_){const U=D.EpF();D.TgZ(0,"div",0),D.NdJ("@slideMotion.done",function(Ce){return D.CHM(U),D.oxw().onAnimationEvent(Ce)})("mouseenter",function(){return D.CHM(U),D.oxw().setMouseState(!0)})("mouseleave",function(){return D.CHM(U),D.oxw().setMouseState(!1)}),D.Hsn(1),D.qZA()}if(2&_){const U=D.oxw();D.ekj("ant-dropdown-rtl","rtl"===U.dir),D.Q6J("ngClass",U.nzOverlayClassName)("ngStyle",U.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)("nzNoAnimation",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)}}const Q=["*"],_e=[b.yW.bottomLeft,b.yW.bottomRight,b.yW.topRight,b.yW.topLeft];let Se=(()=>{class _{constructor(U,ge,Ce,Ae,Me,Ie){this.nzConfigService=U,this.elementRef=ge,this.overlay=Ce,this.renderer=Ae,this.viewContainerRef=Me,this.platform=Ie,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new F.xQ,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new Z.X(!1),this.nzTrigger$=new Z.X("hover"),this.overlayClose$=new F.xQ,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new D.vpe}setDropdownMenuValue(U,ge){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(U,ge)}ngAfterViewInit(){if(this.nzDropdownMenu){const U=this.elementRef.nativeElement,ge=(0,B.T)((0,q.R)(U,"mouseenter").pipe((0,P.h)(!0)),(0,q.R)(U,"mouseleave").pipe((0,P.h)(!1))),Ae=(0,B.T)(this.nzDropdownMenu.mouseState$,ge),Me=(0,q.R)(U,"click").pipe((0,K.U)(()=>!this.nzVisible)),Ie=this.nzTrigger$.pipe((0,H.w)(ve=>"hover"===ve?Ae:"click"===ve?Me:A.E)),Le=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,le.h)(()=>this.nzClickHide),(0,P.h)(!1)),Ne=(0,B.T)(Ie,Le,this.overlayClose$).pipe((0,le.h)(()=>!this.nzDisabled)),Ue=(0,B.T)(this.inputVisible$,Ne);(0,L.aj)([Ue,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,K.U)(([ve,Qe])=>ve||Qe),(0,te.e)(150),(0,ae.x)(),(0,le.h)(()=>this.platform.isBrowser),(0,oe.R)(this.destroy$)).subscribe(ve=>{const xe=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:U).getBoundingClientRect().width;this.nzVisible!==ve&&this.nzVisibleChange.emit(ve),this.nzVisible=ve,ve?(this.overlayRef?this.overlayRef.getConfig().minWidth=xe:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:xe,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,B.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,le.h)(Re=>!this.elementRef.nativeElement.contains(Re.target))),this.overlayRef.keydownEvents().pipe((0,le.h)(Re=>Re.keyCode===i.hY&&!(0,i.Vb)(Re)))).pipe((0,oe.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([b.yW[this.nzPlacement],..._e]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new t.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,oe.R)(this.destroy$)).subscribe(ve=>{"void"===ve.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(U){const{nzVisible:ge,nzDisabled:Ce,nzOverlayClassName:Ae,nzOverlayStyle:Me,nzTrigger:Ie}=U;if(Ie&&this.nzTrigger$.next(this.nzTrigger),ge&&this.inputVisible$.next(this.nzVisible),Ce){const Le=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Le,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Le,"disabled")}Ae&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),Me&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(V.jY),D.Y36(D.SBq),D.Y36($.aV),D.Y36(D.Qsj),D.Y36(D.s_b),D.Y36(ne.t4))},_.\u0275dir=D.lG2({type:_,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[D.TTD]}),(0,o.gn)([(0,V.oS)(),(0,I.yF)()],_.prototype,"nzBackdrop",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzClickHide",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzDisabled",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzVisible",void 0),_})(),Ee=(()=>{class _{}return _.\u0275fac=function(U){return new(U||_)},_.\u0275mod=D.oAB({type:_}),_.\u0275inj=D.cJS({}),_})(),be=(()=>{class _{constructor(U,ge,Ce){this.renderer=U,this.nzButtonGroupComponent=ge,this.elementRef=Ce}ngAfterViewInit(){const U=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&U&&this.renderer.addClass(U,"ant-dropdown-button")}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(D.Qsj),D.Y36(pe.fY,9),D.Y36(D.SBq))},_.\u0275dir=D.lG2({type:_,selectors:[["","nz-button","","nz-dropdown",""]]}),_})(),Ve=(()=>{class _{constructor(U,ge,Ce,Ae,Me,Ie,Le){this.cdr=U,this.elementRef=ge,this.renderer=Ce,this.viewContainerRef=Ae,this.nzMenuService=Me,this.directionality=Ie,this.noAnimation=Le,this.mouseState$=new Z.X(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new D.vpe,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new F.xQ}onAnimationEvent(U){this.animationStateChange$.emit(U)}setMouseState(U){this.mouseState$.next(U)}setValue(U,ge){this[U]=ge,this.cdr.markForCheck()}ngOnInit(){var U;null===(U=this.directionality.change)||void 0===U||U.pipe((0,oe.R)(this.destroy$)).subscribe(ge=>{this.dir=ge,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(D.sBO),D.Y36(D.SBq),D.Y36(D.Qsj),D.Y36(D.s_b),D.Y36(g.hl),D.Y36(X.Is,8),D.Y36(ue.P,9))},_.\u0275cmp=D.Xpm({type:_,selectors:[["nz-dropdown-menu"]],viewQuery:function(U,ge){if(1&U&&D.Gf(D.Rgc,7),2&U){let Ce;D.iGM(Ce=D.CRH())&&(ge.templateRef=Ce.first)}},exportAs:["nzDropdownMenu"],features:[D._Bn([g.hl,{provide:g.Cc,useValue:!0}])],ngContentSelectors:Q,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(U,ge){1&U&&(D.F$t(),D.YNc(0,O,2,7,"ng-template"))},directives:[de.mk,de.PC,ue.P],encapsulation:2,data:{animation:[G.mF]},changeDetection:0}),_})(),Pe=(()=>{class _{}return _.\u0275fac=function(U){return new(U||_)},_.\u0275mod=D.oAB({type:_}),_.\u0275inj=D.cJS({imports:[[X.vT,de.ez,$.U8,fe.u5,pe.sL,g.ip,Y.PV,ue.g,ne.ud,b.e4,Ee,W.T],g.ip]}),_})();new $.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new $.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new $.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new $.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},3762:(De,se,r)=>{r.d(se,{n_:()=>Je,I2:()=>$e,t4:()=>we,AA:()=>Xe,yw:()=>ze,yi:()=>ie,IO:()=>m,Ph:()=>nt});var o=r(5e3),i=r(6699),t=r(9808),D=r(969),F=r(655),Z=r(1721),B=r(8929),q=r(8514),A=r(1086),L=r(6787),P=r(591),K=r(2986),H=r(7545),le=r(7625),te=r(685),ae=r(226),oe=r(7525),V=r(1894);const b=["*"];function I(f,E){if(1&f&&o._UZ(0,"nz-avatar",3),2&f){const C=o.oxw();o.Q6J("nzSrc",C.nzSrc)}}function $(f,E){1&f&&o.Hsn(0,0,["*ngIf","!nzSrc"])}function ne(f,E){if(1&f&&o._UZ(0,"nz-list-item-meta-avatar",3),2&f){const C=o.oxw();o.Q6J("nzSrc",C.avatarStr)}}function X(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-avatar"),o.GkF(1,4),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",C.avatarTpl)}}function de(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzTitle)}}function fe(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-title"),o.YNc(1,de,2,1,"ng-container",6),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzTitle)}}function pe(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzDescription)}}function ue(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-description"),o.YNc(1,pe,2,1,"ng-container",6),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzDescription)}}function W(f,E){if(1&f&&(o.TgZ(0,"div",5),o.YNc(1,fe,2,1,"nz-list-item-meta-title",1),o.YNc(2,ue,2,1,"nz-list-item-meta-description",1),o.Hsn(3,1),o.Hsn(4,2),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngIf",C.nzTitle&&!C.titleComponent),o.xp6(1),o.Q6J("ngIf",C.nzDescription&&!C.descriptionComponent)}}const Y=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],g=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function G(f,E){1&f&&o.Hsn(0)}const O=["nz-list-item-actions",""];function Q(f,E){}function ye(f,E){1&f&&o._UZ(0,"em",3)}function _e(f,E){if(1&f&&(o.TgZ(0,"li"),o.YNc(1,Q,0,0,"ng-template",1),o.YNc(2,ye,1,0,"em",2),o.qZA()),2&f){const C=E.$implicit,R=E.last;o.xp6(1),o.Q6J("ngTemplateOutlet",C),o.xp6(1),o.Q6J("ngIf",!R)}}function Se(f,E){}const Ee=function(f,E){return{$implicit:f,index:E}};function Oe(f,E){if(1&f&&(o.ynx(0),o.YNc(1,Se,0,0,"ng-template",9),o.BQk()),2&f){const C=E.$implicit,R=E.index,ce=o.oxw(2);o.xp6(1),o.Q6J("ngTemplateOutlet",ce.nzRenderItem)("ngTemplateOutletContext",o.WLB(2,Ee,C,R))}}function be(f,E){if(1&f&&(o.TgZ(0,"div",7),o.YNc(1,Oe,2,5,"ng-container",8),o.Hsn(2,4),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngForOf",C.nzDataSource)}}function Ve(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Oqu(C.nzHeader)}}function Pe(f,E){if(1&f&&(o.TgZ(0,"nz-list-header"),o.YNc(1,Ve,2,1,"ng-container",10),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzHeader)}}function N(f,E){1&f&&o._UZ(0,"div"),2&f&&o.Udp("min-height",53,"px")}function ee(f,E){}function _(f,E){if(1&f&&(o.TgZ(0,"div",13),o.YNc(1,ee,0,0,"ng-template",9),o.qZA()),2&f){const C=E.$implicit,R=E.index,ce=o.oxw(2);o.Q6J("nzSpan",ce.nzGrid.span||null)("nzXs",ce.nzGrid.xs||null)("nzSm",ce.nzGrid.sm||null)("nzMd",ce.nzGrid.md||null)("nzLg",ce.nzGrid.lg||null)("nzXl",ce.nzGrid.xl||null)("nzXXl",ce.nzGrid.xxl||null),o.xp6(1),o.Q6J("ngTemplateOutlet",ce.nzRenderItem)("ngTemplateOutletContext",o.WLB(9,Ee,C,R))}}function J(f,E){if(1&f&&(o.TgZ(0,"div",11),o.YNc(1,_,2,12,"div",12),o.qZA()),2&f){const C=o.oxw();o.Q6J("nzGutter",C.nzGrid.gutter||null),o.xp6(1),o.Q6J("ngForOf",C.nzDataSource)}}function U(f,E){if(1&f&&o._UZ(0,"nz-list-empty",14),2&f){const C=o.oxw();o.Q6J("nzNoResult",C.nzNoResult)}}function ge(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Oqu(C.nzFooter)}}function Ce(f,E){if(1&f&&(o.TgZ(0,"nz-list-footer"),o.YNc(1,ge,2,1,"ng-container",10),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzFooter)}}function Ae(f,E){}function Me(f,E){}function Ie(f,E){if(1&f&&(o.TgZ(0,"nz-list-pagination"),o.YNc(1,Me,0,0,"ng-template",6),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzPagination)}}const Le=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],Ne=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function Ue(f,E){if(1&f&&o._UZ(0,"ul",6),2&f){const C=o.oxw(2);o.Q6J("nzActions",C.nzActions)}}function ve(f,E){if(1&f&&(o.YNc(0,Ue,1,1,"ul",5),o.Hsn(1)),2&f){const C=o.oxw();o.Q6J("ngIf",C.nzActions&&C.nzActions.length>0)}}function Qe(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzContent)}}function xe(f,E){if(1&f&&(o.ynx(0),o.YNc(1,Qe,2,1,"ng-container",8),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzContent)}}function Re(f,E){if(1&f&&(o.Hsn(0,1),o.Hsn(1,2),o.YNc(2,xe,2,1,"ng-container",7)),2&f){const C=o.oxw();o.xp6(2),o.Q6J("ngIf",C.nzContent)}}function it(f,E){1&f&&o.Hsn(0,3)}function ot(f,E){}function et(f,E){}function rt(f,E){}function h(f,E){}function st(f,E){if(1&f&&(o.YNc(0,ot,0,0,"ng-template",9),o.YNc(1,et,0,0,"ng-template",9),o.YNc(2,rt,0,0,"ng-template",9),o.YNc(3,h,0,0,"ng-template",9)),2&f){const C=o.oxw(),R=o.MAs(3),ce=o.MAs(5),he=o.MAs(1);o.Q6J("ngTemplateOutlet",R),o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzExtra),o.xp6(1),o.Q6J("ngTemplateOutlet",ce),o.xp6(1),o.Q6J("ngTemplateOutlet",he)}}function at(f,E){}function ct(f,E){}function lt(f,E){}function Ge(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-extra"),o.YNc(1,lt,0,0,"ng-template",9),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzExtra)}}function dt(f,E){}function p(f,E){if(1&f&&(o.ynx(0),o.TgZ(1,"div",10),o.YNc(2,at,0,0,"ng-template",9),o.YNc(3,ct,0,0,"ng-template",9),o.qZA(),o.YNc(4,Ge,2,1,"nz-list-item-extra",7),o.YNc(5,dt,0,0,"ng-template",9),o.BQk()),2&f){const C=o.oxw(),R=o.MAs(3),ce=o.MAs(1),he=o.MAs(5);o.xp6(2),o.Q6J("ngTemplateOutlet",R),o.xp6(1),o.Q6J("ngTemplateOutlet",ce),o.xp6(1),o.Q6J("ngIf",C.nzExtra),o.xp6(1),o.Q6J("ngTemplateOutlet",he)}}const a=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],j=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];let m=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],ngContentSelectors:b,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"h4",0),o.Hsn(1),o.qZA())},encapsulation:2,changeDetection:0}),f})(),l=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],ngContentSelectors:b,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},encapsulation:2,changeDetection:0}),f})(),k=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],ngContentSelectors:b,decls:3,vars:2,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc",4,"ngIf"],[4,"ngIf"],[3,"nzSrc"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"div",0),o.YNc(1,I,1,1,"nz-avatar",1),o.YNc(2,$,1,0,"ng-content",2),o.qZA()),2&C&&(o.xp6(1),o.Q6J("ngIf",R.nzSrc),o.xp6(1),o.Q6J("ngIf",!R.nzSrc))},directives:[i.Dz,t.O5],encapsulation:2,changeDetection:0}),f})(),ie=(()=>{class f{constructor(C,R){this.elementRef=C,this.renderer=R,this.avatarStr="",this.renderer.addClass(C.nativeElement,"ant-list-item-meta")}set nzAvatar(C){C instanceof o.Rgc?(this.avatarStr="",this.avatarTpl=C):this.avatarStr=C}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.SBq),o.Y36(o.Qsj))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(C,R,ce){if(1&C&&(o.Suo(ce,l,5),o.Suo(ce,m,5)),2&C){let he;o.iGM(he=o.CRH())&&(R.descriptionComponent=he.first),o.iGM(he=o.CRH())&&(R.titleComponent=he.first)}},inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],ngContentSelectors:g,decls:4,vars:3,consts:[[3,"nzSrc",4,"ngIf"],[4,"ngIf"],["class","ant-list-item-meta-content",4,"ngIf"],[3,"nzSrc"],[3,"ngTemplateOutlet"],[1,"ant-list-item-meta-content"],[4,"nzStringTemplateOutlet"]],template:function(C,R){1&C&&(o.F$t(Y),o.YNc(0,ne,1,1,"nz-list-item-meta-avatar",0),o.YNc(1,X,2,1,"nz-list-item-meta-avatar",1),o.Hsn(2),o.YNc(3,W,5,2,"div",2)),2&C&&(o.Q6J("ngIf",R.avatarStr),o.xp6(1),o.Q6J("ngIf",R.avatarTpl),o.xp6(2),o.Q6J("ngIf",R.nzTitle||R.nzDescription||R.descriptionComponent||R.titleComponent))},directives:[k,m,l,t.O5,t.tP,D.f],encapsulation:2,changeDetection:0}),f})(),ze=(()=>{class f{constructor(){}}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),Ze=(()=>{class f{constructor(){}}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-action"]],viewQuery:function(C,R){if(1&C&&o.Gf(o.Rgc,5),2&C){let ce;o.iGM(ce=o.CRH())&&(R.templateRef=ce.first)}},exportAs:["nzListItemAction"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.YNc(0,G,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),f})(),Te=(()=>{class f{constructor(C,R){this.ngZone=C,this.cdr=R,this.nzActions=[],this.actions=[],this.destroy$=new B.xQ,this.inputActionChanges$=new B.xQ,this.contentChildrenChanges$=(0,q.P)(()=>this.nzListItemActions?(0,A.of)(null):this.ngZone.onStable.asObservable().pipe((0,K.q)(1),(0,H.w)(()=>this.contentChildrenChanges$))),(0,L.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,le.R)(this.destroy$)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(ce=>ce.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.R0b),o.Y36(o.sBO))},f.\u0275cmp=o.Xpm({type:f,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(C,R,ce){if(1&C&&o.Suo(ce,Ze,4),2&C){let he;o.iGM(he=o.CRH())&&(R.nzListItemActions=he)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[o.TTD],attrs:O,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(C,R){1&C&&o.YNc(0,_e,3,2,"li",0),2&C&&o.Q6J("ngForOf",R.actions)},directives:[t.sg,t.tP,t.O5],encapsulation:2,changeDetection:0}),f})(),$e=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(C,R){1&C&&o._UZ(0,"nz-embed-empty",0),2&C&&o.Q6J("nzComponentName","list")("specificContent",R.nzNoResult)},directives:[te.gB],encapsulation:2,changeDetection:0}),f})(),we=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),Ye=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),je=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),He=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275dir=o.lG2({type:f,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),f})(),Je=(()=>{class f{constructor(C){this.directionality=C,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new P.X(this.nzItemLayout),this.destroy$=new B.xQ}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var C;this.dir=this.directionality.value,null===(C=this.directionality.change)||void 0===C||C.pipe((0,le.R)(this.destroy$)).subscribe(R=>{this.dir=R})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(C){C.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(ae.Is,8))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(C,R,ce){if(1&C&&(o.Suo(ce,Ye,5),o.Suo(ce,je,5),o.Suo(ce,He,5)),2&C){let he;o.iGM(he=o.CRH())&&(R.nzListFooterComponent=he.first),o.iGM(he=o.CRH())&&(R.nzListPaginationComponent=he.first),o.iGM(he=o.CRH())&&(R.nzListLoadMoreDirective=he.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(C,R){2&C&&o.ekj("ant-list-rtl","rtl"===R.dir)("ant-list-vertical","vertical"===R.nzItemLayout)("ant-list-lg","large"===R.nzSize)("ant-list-sm","small"===R.nzSize)("ant-list-split",R.nzSplit)("ant-list-bordered",R.nzBordered)("ant-list-loading",R.nzLoading)("ant-list-something-after-last-item",R.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:"nzBordered",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:"nzSplit",nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[o.TTD],ngContentSelectors:Ne,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(C,R){if(1&C&&(o.F$t(Le),o.YNc(0,be,3,1,"ng-template",null,0,o.W1O),o.YNc(2,Pe,2,1,"nz-list-header",1),o.Hsn(3),o.TgZ(4,"nz-spin",2),o.ynx(5),o.YNc(6,N,1,2,"div",3),o.YNc(7,J,2,2,"div",4),o.YNc(8,U,1,1,"nz-list-empty",5),o.BQk(),o.qZA(),o.YNc(9,Ce,2,1,"nz-list-footer",1),o.Hsn(10,1),o.YNc(11,Ae,0,0,"ng-template",6),o.Hsn(12,2),o.YNc(13,Ie,2,1,"nz-list-pagination",1),o.Hsn(14,3)),2&C){const ce=o.MAs(1);o.xp6(2),o.Q6J("ngIf",R.nzHeader),o.xp6(2),o.Q6J("nzSpinning",R.nzLoading),o.xp6(2),o.Q6J("ngIf",R.nzLoading&&R.nzDataSource&&0===R.nzDataSource.length),o.xp6(1),o.Q6J("ngIf",R.nzGrid&&R.nzDataSource)("ngIfElse",ce),o.xp6(1),o.Q6J("ngIf",!R.nzLoading&&R.nzDataSource&&0===R.nzDataSource.length),o.xp6(1),o.Q6J("ngIf",R.nzFooter),o.xp6(2),o.Q6J("ngTemplateOutlet",R.nzLoadMore),o.xp6(2),o.Q6J("ngIf",R.nzPagination)}},directives:[we,oe.W,$e,Ye,je,t.sg,t.tP,t.O5,D.f,V.SK,V.t3],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzBordered",void 0),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzLoading",void 0),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzSplit",void 0),f})(),Xe=(()=>{class f{constructor(C,R,ce,he){this.parentComp=ce,this.cdr=he,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,R.addClass(C.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(C=>{this.itemLayout=C,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(Je),o.Y36(o.sBO))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(C,R,ce){if(1&C&&o.Suo(ce,ze,5),2&C){let he;o.iGM(he=o.CRH())&&(R.listItemExtraDirective=he.first)}},hostVars:2,hostBindings:function(C,R){2&C&&o.ekj("ant-list-item-no-flex",R.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:j,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(C,R){if(1&C&&(o.F$t(a),o.YNc(0,ve,2,1,"ng-template",null,0,o.W1O),o.YNc(2,Re,3,1,"ng-template",null,1,o.W1O),o.YNc(4,it,1,0,"ng-template",null,2,o.W1O),o.YNc(6,st,4,4,"ng-template",null,3,o.W1O),o.YNc(8,p,6,4,"ng-container",4)),2&C){const ce=o.MAs(7);o.xp6(8),o.Q6J("ngIf",R.isVerticalAndExtra)("ngIfElse",ce)}},directives:[Te,ze,t.O5,D.f,t.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzNoFlex",void 0),f})(),nt=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275mod=o.oAB({type:f}),f.\u0275inj=o.cJS({imports:[[ae.vT,t.ez,oe.j,V.Jb,i.Rt,D.T,te.Xo]]}),f})()},4219:(De,se,r)=>{r.d(se,{hl:()=>ve,Cc:()=>Ne,wO:()=>ct,YV:()=>dt,uA:()=>Ge,r9:()=>xe,ip:()=>p});var o=r(655),i=r(5e3),t=r(8929),D=r(591),F=r(6787),Z=r(3426),B=r(4850),q=r(1709),A=r(2198),L=r(7604),P=r(7138),K=r(5778),H=r(7625),le=r(1059),te=r(7545),ae=r(1721),oe=r(325),V=r(226),b=r(2845),I=r(6950),$=r(925),ne=r(4832),X=r(9808),de=r(647),fe=r(969),pe=r(8076);const ue=["nz-submenu-title",""];function W(a,j){if(1&a&&i._UZ(0,"i",4),2&a){const m=i.oxw();i.Q6J("nzType",m.nzIcon)}}function Y(a,j){if(1&a&&(i.ynx(0),i.TgZ(1,"span"),i._uU(2),i.qZA(),i.BQk()),2&a){const m=i.oxw();i.xp6(2),i.Oqu(m.nzTitle)}}function g(a,j){1&a&&i._UZ(0,"i",8)}function G(a,j){1&a&&i._UZ(0,"i",9)}function O(a,j){if(1&a&&(i.TgZ(0,"span",5),i.YNc(1,g,1,0,"i",6),i.YNc(2,G,1,0,"i",7),i.qZA()),2&a){const m=i.oxw();i.Q6J("ngSwitch",m.dir),i.xp6(1),i.Q6J("ngSwitchCase","rtl")}}function Q(a,j){1&a&&i._UZ(0,"i",10)}const ye=["*"],_e=["nz-submenu-inline-child",""];function Se(a,j){}const Ee=["nz-submenu-none-inline-child",""];function Oe(a,j){}const be=["nz-submenu",""];function Ve(a,j){1&a&&i.Hsn(0,0,["*ngIf","!nzTitle"])}function Pe(a,j){if(1&a&&i._UZ(0,"div",6),2&a){const m=i.oxw(),l=i.MAs(7);i.Q6J("mode",m.mode)("nzOpen",m.nzOpen)("@.disabled",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("nzNoAnimation",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("menuClass",m.nzMenuClassName)("templateOutlet",l)}}function N(a,j){if(1&a){const m=i.EpF();i.TgZ(0,"div",8),i.NdJ("subMenuMouseState",function(k){return i.CHM(m),i.oxw(2).setMouseEnterState(k)}),i.qZA()}if(2&a){const m=i.oxw(2),l=i.MAs(7);i.Q6J("theme",m.theme)("mode",m.mode)("nzOpen",m.nzOpen)("position",m.position)("nzDisabled",m.nzDisabled)("isMenuInsideDropDown",m.isMenuInsideDropDown)("templateOutlet",l)("menuClass",m.nzMenuClassName)("@.disabled",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("nzNoAnimation",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)}}function ee(a,j){if(1&a){const m=i.EpF();i.YNc(0,N,1,10,"ng-template",7),i.NdJ("positionChange",function(k){return i.CHM(m),i.oxw().onPositionChange(k)})}if(2&a){const m=i.oxw(),l=i.MAs(1);i.Q6J("cdkConnectedOverlayPositions",m.overlayPositions)("cdkConnectedOverlayOrigin",l)("cdkConnectedOverlayWidth",m.triggerWidth)("cdkConnectedOverlayOpen",m.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function _(a,j){1&a&&i.Hsn(0,1)}const J=[[["","title",""]],"*"],U=["[title]","*"],ge=["titleElement"],Ce=["nz-menu-group",""];function Ae(a,j){if(1&a&&(i.ynx(0),i._uU(1),i.BQk()),2&a){const m=i.oxw();i.xp6(1),i.Oqu(m.nzTitle)}}function Me(a,j){1&a&&i.Hsn(0,1,["*ngIf","!nzTitle"])}const Ie=["*",[["","title",""]]],Le=["*","[title]"],Ne=new i.OlP("NzIsInDropDownMenuToken"),Ue=new i.OlP("NzMenuServiceLocalToken");let ve=(()=>{class a{constructor(){this.descendantMenuItemClick$=new t.xQ,this.childMenuItemClick$=new t.xQ,this.theme$=new D.X("light"),this.mode$=new D.X("vertical"),this.inlineIndent$=new D.X(24),this.isChildSubMenuOpen$=new D.X(!1)}onDescendantMenuItemClick(m){this.descendantMenuItemClick$.next(m)}onChildMenuItemClick(m){this.childMenuItemClick$.next(m)}setMode(m){this.mode$.next(m)}setTheme(m){this.theme$.next(m)}setInlineIndent(m){this.inlineIndent$.next(m)}}return a.\u0275fac=function(m){return new(m||a)},a.\u0275prov=i.Yz7({token:a,factory:a.\u0275fac}),a})(),Qe=(()=>{class a{constructor(m,l,k){this.nzHostSubmenuService=m,this.nzMenuService=l,this.isMenuInsideDropDown=k,this.mode$=this.nzMenuService.mode$.pipe((0,B.U)(Te=>"inline"===Te?"inline":"vertical"===Te||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new D.X(!1),this.isChildSubMenuOpen$=new D.X(!1),this.isMouseEnterTitleOrOverlay$=new t.xQ,this.childMenuItemClick$=new t.xQ,this.destroy$=new t.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const ie=this.childMenuItemClick$.pipe((0,q.zg)(()=>this.mode$),(0,A.h)(Te=>"inline"!==Te||this.isMenuInsideDropDown),(0,L.h)(!1)),ze=(0,F.T)(this.isMouseEnterTitleOrOverlay$,ie);(0,Z.aj)([this.isChildSubMenuOpen$,ze]).pipe((0,B.U)(([Te,$e])=>Te||$e),(0,P.e)(150),(0,K.x)(),(0,H.R)(this.destroy$)).pipe((0,K.x)()).subscribe(Te=>{this.setOpenStateWithoutDebounce(Te),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(Te):this.nzMenuService.isChildSubMenuOpen$.next(Te)})}onChildMenuItemClick(m){this.childMenuItemClick$.next(m)}setOpenStateWithoutDebounce(m){this.isCurrentSubMenuOpen$.next(m)}setMouseEnterTitleOrOverlayState(m){this.isMouseEnterTitleOrOverlay$.next(m)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.LFG(a,12),i.LFG(ve),i.LFG(Ne))},a.\u0275prov=i.Yz7({token:a,factory:a.\u0275fac}),a})(),xe=(()=>{class a{constructor(m,l,k,ie,ze,Ze,Te,$e){this.nzMenuService=m,this.cdr=l,this.nzSubmenuService=k,this.isMenuInsideDropDown=ie,this.directionality=ze,this.routerLink=Ze,this.routerLinkWithHref=Te,this.router=$e,this.destroy$=new t.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new t.xQ,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,$e&&this.router.events.pipe((0,H.R)(this.destroy$),(0,A.h)(we=>we instanceof oe.m2)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(m){this.nzDisabled?(m.preventDefault(),m.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(m){this.nzSelected=m,this.selected$.next(m)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const m=this.hasActiveLinks();this.nzSelected!==m&&(this.nzSelected=m,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const m=this.isLinkActive(this.router);return this.routerLink&&m(this.routerLink)||this.routerLinkWithHref&&m(this.routerLinkWithHref)||this.listOfRouterLink.some(m)||this.listOfRouterLinkWithHref.some(m)}isLinkActive(m){return l=>m.isActive(l.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}ngOnInit(){var m;(0,Z.aj)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.inlinePaddingLeft="inline"===l?this.level*k:null}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,H.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,H.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(m){m.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(i.sBO),i.Y36(Qe,8),i.Y36(Ne),i.Y36(V.Is,8),i.Y36(oe.rH,8),i.Y36(oe.yS,8),i.Y36(oe.F0,8))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu-item",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,oe.rH,5),i.Suo(k,oe.yS,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfRouterLink=ie),i.iGM(ie=i.CRH())&&(l.listOfRouterLinkWithHref=ie)}},hostVars:20,hostBindings:function(m,l){1&m&&i.NdJ("click",function(ie){return l.clickMenuItem(ie)}),2&m&&(i.Udp("padding-left","rtl"===l.dir?null:l.nzPaddingLeft||l.inlinePaddingLeft,"px")("padding-right","rtl"===l.dir?l.nzPaddingLeft||l.inlinePaddingLeft:null,"px"),i.ekj("ant-dropdown-menu-item",l.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",l.isMenuInsideDropDown&&l.nzSelected)("ant-dropdown-menu-item-danger",l.isMenuInsideDropDown&&l.nzDanger)("ant-dropdown-menu-item-disabled",l.isMenuInsideDropDown&&l.nzDisabled)("ant-menu-item",!l.isMenuInsideDropDown)("ant-menu-item-selected",!l.isMenuInsideDropDown&&l.nzSelected)("ant-menu-item-danger",!l.isMenuInsideDropDown&&l.nzDanger)("ant-menu-item-disabled",!l.isMenuInsideDropDown&&l.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[i.TTD]}),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzDisabled",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzSelected",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzDanger",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzMatchRouterExact",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzMatchRouter",void 0),a})(),Re=(()=>{class a{constructor(m,l){this.cdr=m,this.directionality=l,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new i.vpe,this.subMenuMouseState=new i.vpe,this.dir="ltr",this.destroy$=new t.xQ}ngOnInit(){var m;this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(m){this.nzDisabled||this.subMenuMouseState.next(m)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.sBO),i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(m,l){1&m&&i.NdJ("click",function(){return l.clickTitle()})("mouseenter",function(){return l.setMouseState(!0)})("mouseleave",function(){return l.setMouseState(!1)}),2&m&&(i.Udp("padding-left","rtl"===l.dir?null:l.paddingLeft,"px")("padding-right","rtl"===l.dir?l.paddingLeft:null,"px"),i.ekj("ant-dropdown-menu-submenu-title",l.isMenuInsideDropDown)("ant-menu-submenu-title",!l.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:ue,ngContentSelectors:ye,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(m,l){if(1&m&&(i.F$t(),i.YNc(0,W,1,1,"i",0),i.YNc(1,Y,3,1,"ng-container",1),i.Hsn(2),i.YNc(3,O,3,2,"span",2),i.YNc(4,Q,1,0,"ng-template",null,3,i.W1O)),2&m){const k=i.MAs(5);i.Q6J("ngIf",l.nzIcon),i.xp6(1),i.Q6J("nzStringTemplateOutlet",l.nzTitle),i.xp6(2),i.Q6J("ngIf",l.isMenuInsideDropDown)("ngIfElse",k)}},directives:[X.O5,de.Ls,fe.f,X.RF,X.n9,X.ED],encapsulation:2,changeDetection:0}),a})(),it=(()=>{class a{constructor(m,l,k){this.elementRef=m,this.renderer=l,this.directionality=k,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new t.xQ}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var m;this.calcMotionState(),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngOnChanges(m){const{mode:l,nzOpen:k,menuClass:ie}=m;(l||k)&&this.calcMotionState(),ie&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(ze=>!!ze).forEach(ze=>{this.renderer.removeClass(this.elementRef.nativeElement,ze)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(ze=>!!ze).forEach(ze=>{this.renderer.addClass(this.elementRef.nativeElement,ze)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(m,l){2&m&&(i.d8E("@collapseMotion",l.expandState),i.ekj("ant-menu-rtl","rtl"===l.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[i.TTD],attrs:_e,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(m,l){1&m&&i.YNc(0,Se,0,0,"ng-template",0),2&m&&i.Q6J("ngTemplateOutlet",l.templateOutlet)},directives:[X.tP],encapsulation:2,data:{animation:[pe.J_]},changeDetection:0}),a})(),ot=(()=>{class a{constructor(m){this.directionality=m,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new i.vpe,this.expandState="collapsed",this.dir="ltr",this.destroy$=new t.xQ}setMouseState(m){this.nzDisabled||this.subMenuMouseState.next(m)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var m;this.calcMotionState(),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngOnChanges(m){const{mode:l,nzOpen:k}=m;(l||k)&&this.calcMotionState()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(m,l){1&m&&i.NdJ("mouseenter",function(){return l.setMouseState(!0)})("mouseleave",function(){return l.setMouseState(!1)}),2&m&&(i.d8E("@slideMotion",l.expandState)("@zoomBigMotion",l.expandState),i.ekj("ant-menu-light","light"===l.theme)("ant-menu-dark","dark"===l.theme)("ant-menu-submenu-placement-bottom","horizontal"===l.mode)("ant-menu-submenu-placement-right","vertical"===l.mode&&"right"===l.position)("ant-menu-submenu-placement-left","vertical"===l.mode&&"left"===l.position)("ant-menu-submenu-rtl","rtl"===l.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[i.TTD],attrs:Ee,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(m,l){1&m&&(i.TgZ(0,"div",0),i.YNc(1,Oe,0,0,"ng-template",1),i.qZA()),2&m&&(i.ekj("ant-dropdown-menu",l.isMenuInsideDropDown)("ant-menu",!l.isMenuInsideDropDown)("ant-dropdown-menu-vertical",l.isMenuInsideDropDown)("ant-menu-vertical",!l.isMenuInsideDropDown)("ant-dropdown-menu-sub",l.isMenuInsideDropDown)("ant-menu-sub",!l.isMenuInsideDropDown)("ant-menu-rtl","rtl"===l.dir),i.Q6J("ngClass",l.menuClass),i.xp6(1),i.Q6J("ngTemplateOutlet",l.templateOutlet))},directives:[X.mk,X.tP],encapsulation:2,data:{animation:[pe.$C,pe.mF]},changeDetection:0}),a})();const et=[I.yW.rightTop,I.yW.right,I.yW.rightBottom,I.yW.leftTop,I.yW.left,I.yW.leftBottom],rt=[I.yW.bottomLeft];let h=(()=>{class a{constructor(m,l,k,ie,ze,Ze,Te){this.nzMenuService=m,this.cdr=l,this.nzSubmenuService=k,this.platform=ie,this.isMenuInsideDropDown=ze,this.directionality=Ze,this.noAnimation=Te,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new i.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new t.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=et,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(m){this.nzSubmenuService.setOpenStateWithoutDebounce(m)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(m){this.isActive=m,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(m)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(m){const l=(0,I.d_)(m);"rightTop"===l||"rightBottom"===l||"right"===l?this.position="right":("leftTop"===l||"leftBottom"===l||"left"===l)&&(this.position="left")}ngOnInit(){var m;this.nzMenuService.theme$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.theme=l,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.mode=l,"horizontal"===l?this.overlayPositions=rt:"vertical"===l&&(this.overlayPositions=et),this.cdr.markForCheck()}),(0,Z.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.inlinePaddingLeft="inline"===l?this.level*k:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.isActive=l,l!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=l,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const m=this.listOfNzMenuItemDirective,l=m.changes,k=(0,F.T)(l,...m.map(ie=>ie.selected$));l.pipe((0,le.O)(m),(0,te.w)(()=>k),(0,le.O)(!0),(0,B.U)(()=>m.some(ie=>ie.nzSelected)),(0,H.R)(this.destroy$)).subscribe(ie=>{this.isSelected=ie,this.cdr.markForCheck()})}ngOnChanges(m){const{nzOpen:l}=m;l&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(i.sBO),i.Y36(Qe),i.Y36($.t4),i.Y36(Ne),i.Y36(V.Is,8),i.Y36(ne.P,9))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,a,5),i.Suo(k,xe,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfNzSubMenuComponent=ie),i.iGM(ie=i.CRH())&&(l.listOfNzMenuItemDirective=ie)}},viewQuery:function(m,l){if(1&m&&i.Gf(b.xu,7,i.SBq),2&m){let k;i.iGM(k=i.CRH())&&(l.cdkOverlayOrigin=k.first)}},hostVars:34,hostBindings:function(m,l){2&m&&i.ekj("ant-dropdown-menu-submenu",l.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",l.isMenuInsideDropDown&&l.nzDisabled)("ant-dropdown-menu-submenu-open",l.isMenuInsideDropDown&&l.nzOpen)("ant-dropdown-menu-submenu-selected",l.isMenuInsideDropDown&&l.isSelected)("ant-dropdown-menu-submenu-vertical",l.isMenuInsideDropDown&&"vertical"===l.mode)("ant-dropdown-menu-submenu-horizontal",l.isMenuInsideDropDown&&"horizontal"===l.mode)("ant-dropdown-menu-submenu-inline",l.isMenuInsideDropDown&&"inline"===l.mode)("ant-dropdown-menu-submenu-active",l.isMenuInsideDropDown&&l.isActive)("ant-menu-submenu",!l.isMenuInsideDropDown)("ant-menu-submenu-disabled",!l.isMenuInsideDropDown&&l.nzDisabled)("ant-menu-submenu-open",!l.isMenuInsideDropDown&&l.nzOpen)("ant-menu-submenu-selected",!l.isMenuInsideDropDown&&l.isSelected)("ant-menu-submenu-vertical",!l.isMenuInsideDropDown&&"vertical"===l.mode)("ant-menu-submenu-horizontal",!l.isMenuInsideDropDown&&"horizontal"===l.mode)("ant-menu-submenu-inline",!l.isMenuInsideDropDown&&"inline"===l.mode)("ant-menu-submenu-active",!l.isMenuInsideDropDown&&l.isActive)("ant-menu-submenu-rtl","rtl"===l.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[i._Bn([Qe]),i.TTD],attrs:be,ngContentSelectors:U,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(m,l){if(1&m&&(i.F$t(J),i.TgZ(0,"div",0,1),i.NdJ("subMenuMouseState",function(ie){return l.setMouseEnterState(ie)})("toggleSubMenu",function(){return l.toggleSubMenu()}),i.YNc(2,Ve,1,0,"ng-content",2),i.qZA(),i.YNc(3,Pe,1,6,"div",3),i.YNc(4,ee,1,5,"ng-template",null,4,i.W1O),i.YNc(6,_,1,0,"ng-template",null,5,i.W1O)),2&m){const k=i.MAs(5);i.Q6J("nzIcon",l.nzIcon)("nzTitle",l.nzTitle)("mode",l.mode)("nzDisabled",l.nzDisabled)("isMenuInsideDropDown",l.isMenuInsideDropDown)("paddingLeft",l.nzPaddingLeft||l.inlinePaddingLeft),i.xp6(2),i.Q6J("ngIf",!l.nzTitle),i.xp6(1),i.Q6J("ngIf","inline"===l.mode)("ngIfElse",k)}},directives:[Re,it,ot,b.xu,X.O5,ne.P,b.pI],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzOpen",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzDisabled",void 0),a})();function st(a,j){return a||j}function at(a){return a||!1}let ct=(()=>{class a{constructor(m,l,k,ie){this.nzMenuService=m,this.isMenuInsideDropDown=l,this.cdr=k,this.directionality=ie,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new i.vpe,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new D.X(this.nzInlineCollapsed),this.mode$=new D.X(this.nzMode),this.destroy$=new t.xQ,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(m){this.nzInlineCollapsed=m,this.inlineCollapsed$.next(m)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(m=>m.nzOpen),this.listOfNzSubMenuComponent.forEach(m=>m.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(m=>m.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var m;(0,Z.aj)([this.inlineCollapsed$,this.mode$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.actualMode=l?"vertical":k,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.nzClick.emit(l),this.nzSelectable&&!l.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(k=>k.setSelectedState(k===l))}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(m){const{nzInlineCollapsed:l,nzInlineIndent:k,nzTheme:ie,nzMode:ze}=m;l&&this.inlineCollapsed$.next(this.nzInlineCollapsed),k&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),ie&&this.nzMenuService.setTheme(this.nzTheme),ze&&(this.mode$.next(this.nzMode),!m.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(Ze=>Ze.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(Ne),i.Y36(i.sBO),i.Y36(V.Is,8))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,xe,5),i.Suo(k,h,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfNzMenuItemDirective=ie),i.iGM(ie=i.CRH())&&(l.listOfNzSubMenuComponent=ie)}},hostVars:34,hostBindings:function(m,l){2&m&&i.ekj("ant-dropdown-menu",l.isMenuInsideDropDown)("ant-dropdown-menu-root",l.isMenuInsideDropDown)("ant-dropdown-menu-light",l.isMenuInsideDropDown&&"light"===l.nzTheme)("ant-dropdown-menu-dark",l.isMenuInsideDropDown&&"dark"===l.nzTheme)("ant-dropdown-menu-vertical",l.isMenuInsideDropDown&&"vertical"===l.actualMode)("ant-dropdown-menu-horizontal",l.isMenuInsideDropDown&&"horizontal"===l.actualMode)("ant-dropdown-menu-inline",l.isMenuInsideDropDown&&"inline"===l.actualMode)("ant-dropdown-menu-inline-collapsed",l.isMenuInsideDropDown&&l.nzInlineCollapsed)("ant-menu",!l.isMenuInsideDropDown)("ant-menu-root",!l.isMenuInsideDropDown)("ant-menu-light",!l.isMenuInsideDropDown&&"light"===l.nzTheme)("ant-menu-dark",!l.isMenuInsideDropDown&&"dark"===l.nzTheme)("ant-menu-vertical",!l.isMenuInsideDropDown&&"vertical"===l.actualMode)("ant-menu-horizontal",!l.isMenuInsideDropDown&&"horizontal"===l.actualMode)("ant-menu-inline",!l.isMenuInsideDropDown&&"inline"===l.actualMode)("ant-menu-inline-collapsed",!l.isMenuInsideDropDown&&l.nzInlineCollapsed)("ant-menu-rtl","rtl"===l.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[i._Bn([{provide:Ue,useClass:ve},{provide:ve,useFactory:st,deps:[[new i.tp0,new i.FiY,ve],Ue]},{provide:Ne,useFactory:at,deps:[[new i.tp0,new i.FiY,Ne]]}]),i.TTD]}),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzInlineCollapsed",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzSelectable",void 0),a})();function lt(a){return a||!1}let Ge=(()=>{class a{constructor(m,l,k){this.elementRef=m,this.renderer=l,this.isMenuInsideDropDown=k,this.renderer.addClass(m.nativeElement,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group")}ngAfterViewInit(){const m=this.titleElement.nativeElement.nextElementSibling;m&&this.renderer.addClass(m,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list")}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(Ne))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-menu-group",""]],viewQuery:function(m,l){if(1&m&&i.Gf(ge,5),2&m){let k;i.iGM(k=i.CRH())&&(l.titleElement=k.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],features:[i._Bn([{provide:Ne,useFactory:lt,deps:[[new i.tp0,new i.FiY,Ne]]}])],attrs:Ce,ngContentSelectors:Le,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"],[4,"ngIf"]],template:function(m,l){1&m&&(i.F$t(Ie),i.TgZ(0,"div",null,0),i.YNc(2,Ae,2,1,"ng-container",1),i.YNc(3,Me,1,0,"ng-content",2),i.qZA(),i.Hsn(4)),2&m&&(i.ekj("ant-menu-item-group-title",!l.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",l.isMenuInsideDropDown),i.xp6(2),i.Q6J("nzStringTemplateOutlet",l.nzTitle),i.xp6(1),i.Q6J("ngIf",!l.nzTitle))},directives:[fe.f,X.O5],encapsulation:2,changeDetection:0}),a})(),dt=(()=>{class a{constructor(m,l){this.elementRef=m,this.renderer=l,this.renderer.addClass(m.nativeElement,"ant-dropdown-menu-item-divider")}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),a})(),p=(()=>{class a{}return a.\u0275fac=function(m){return new(m||a)},a.\u0275mod=i.oAB({type:a}),a.\u0275inj=i.cJS({imports:[[V.vT,X.ez,$.ud,b.U8,de.PV,ne.g,fe.T]]}),a})()},8144:(De,se,r)=>{r.d(se,{NU:()=>oe,$1:()=>le,zf:()=>V});var o=r(226),i=r(9808),t=r(5e3),D=r(655),F=r(8929),Z=r(7625),B=r(9439),q=r(1721);function A(b,I){}const L=function(b){return{$implicit:b}};function P(b,I){if(1&b&&(t.TgZ(0,"span",4),t.YNc(1,A,0,0,"ng-template",5),t.qZA()),2&b){const $=t.oxw(),ne=$.last,X=$.index,de=t.oxw();t.Udp("margin-bottom","vertical"===de.nzDirection?ne?null:de.spaceSize:null,"px")("margin-right","horizontal"===de.nzDirection?ne?null:de.spaceSize:null,"px"),t.xp6(1),t.Q6J("ngTemplateOutlet",de.nzSplit)("ngTemplateOutletContext",t.VKq(6,L,X))}}function K(b,I){if(1&b&&(t.TgZ(0,"div",1),t.GkF(1,2),t.qZA(),t.YNc(2,P,2,8,"span",3)),2&b){const $=I.$implicit,ne=I.last,X=t.oxw();t.Udp("margin-bottom","vertical"===X.nzDirection?ne?null:X.spaceSize:null,"px")("margin-right","horizontal"===X.nzDirection?ne?null:X.spaceSize:null,"px"),t.xp6(1),t.Q6J("ngTemplateOutlet",$),t.xp6(1),t.Q6J("ngIf",X.nzSplit&&!ne)}}const H=["*"];let le=(()=>{class b{constructor(){}}return b.\u0275fac=function($){return new($||b)},b.\u0275dir=t.lG2({type:b,selectors:[["","nzSpaceItem",""]]}),b})();const ae={small:8,middle:16,large:24};let oe=(()=>{class b{constructor($,ne){this.nzConfigService=$,this.cdr=ne,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=ae.small,this.destroy$=new F.xQ}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?ae[this.nzSize]:this.nzSize)/(this.nzSplit?2:1),this.cdr.markForCheck()}ngOnChanges(){this.updateSpaceItems(),this.mergedAlign=void 0===this.nzAlign&&"horizontal"===this.nzDirection?"center":this.nzAlign}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.updateSpaceItems(),this.items.changes.pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}}return b.\u0275fac=function($){return new($||b)(t.Y36(B.jY),t.Y36(t.sBO))},b.\u0275cmp=t.Xpm({type:b,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function($,ne,X){if(1&$&&t.Suo(X,le,4,t.Rgc),2&$){let de;t.iGM(de=t.CRH())&&(ne.items=de)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function($,ne){2&$&&(t.Udp("flex-wrap",ne.nzWrap?"wrap":null),t.ekj("ant-space-horizontal","horizontal"===ne.nzDirection)("ant-space-vertical","vertical"===ne.nzDirection)("ant-space-align-start","start"===ne.mergedAlign)("ant-space-align-end","end"===ne.mergedAlign)("ant-space-align-center","center"===ne.mergedAlign)("ant-space-align-baseline","baseline"===ne.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:"nzWrap",nzSize:"nzSize"},exportAs:["NzSpace"],features:[t.TTD],ngContentSelectors:H,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],[1,"ant-space-item"],[3,"ngTemplateOutlet"],["class","ant-space-split",3,"margin-bottom","margin-right",4,"ngIf"],[1,"ant-space-split"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function($,ne){1&$&&(t.F$t(),t.Hsn(0),t.YNc(1,K,3,6,"ng-template",0)),2&$&&(t.xp6(1),t.Q6J("ngForOf",ne.items))},directives:[i.sg,i.tP,i.O5],encapsulation:2,changeDetection:0}),(0,D.gn)([(0,q.yF)()],b.prototype,"nzWrap",void 0),(0,D.gn)([(0,B.oS)()],b.prototype,"nzSize",void 0),b})(),V=(()=>{class b{}return b.\u0275fac=function($){return new($||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[[o.vT,i.ez]]}),b})()},7525:(De,se,r)=>{r.d(se,{W:()=>ue,j:()=>W});var o=r(655),i=r(5e3),t=r(8929),D=r(591),F=r(839),Z=r(8723),B=r(1177);class A{constructor(g){this.durationSelector=g}call(g,G){return G.subscribe(new L(g,this.durationSelector))}}class L extends B.Ds{constructor(g,G){super(g),this.durationSelector=G,this.hasValue=!1}_next(g){try{const G=this.durationSelector.call(this,g);G&&this._tryNext(g,G)}catch(G){this.destination.error(G)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(g,G){let O=this.durationSubscription;this.value=g,this.hasValue=!0,O&&(O.unsubscribe(),this.remove(O)),O=(0,B.ft)(G,new B.IY(this)),O&&!O.closed&&this.add(this.durationSubscription=O)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const g=this.value,G=this.durationSubscription;G&&(this.durationSubscription=void 0,G.unsubscribe(),this.remove(G)),this.value=void 0,this.hasValue=!1,super._next(g)}}}var P=r(1059),K=r(5778),H=r(7545),le=r(7625),te=r(9439),ae=r(1721),oe=r(226),V=r(9808),b=r(7144);function I(Y,g){1&Y&&(i.TgZ(0,"span",3),i._UZ(1,"i",4),i._UZ(2,"i",4),i._UZ(3,"i",4),i._UZ(4,"i",4),i.qZA())}function $(Y,g){}function ne(Y,g){if(1&Y&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&Y){const G=i.oxw(2);i.xp6(1),i.Oqu(G.nzTip)}}function X(Y,g){if(1&Y&&(i.TgZ(0,"div"),i.TgZ(1,"div",5),i.YNc(2,$,0,0,"ng-template",6),i.YNc(3,ne,2,1,"div",7),i.qZA(),i.qZA()),2&Y){const G=i.oxw(),O=i.MAs(1);i.xp6(1),i.ekj("ant-spin-rtl","rtl"===G.dir)("ant-spin-spinning",G.isLoading)("ant-spin-lg","large"===G.nzSize)("ant-spin-sm","small"===G.nzSize)("ant-spin-show-text",G.nzTip),i.xp6(1),i.Q6J("ngTemplateOutlet",G.nzIndicator||O),i.xp6(1),i.Q6J("ngIf",G.nzTip)}}function de(Y,g){if(1&Y&&(i.TgZ(0,"div",9),i.Hsn(1),i.qZA()),2&Y){const G=i.oxw();i.ekj("ant-spin-blur",G.isLoading)}}const fe=["*"];let ue=(()=>{class Y{constructor(G,O,Q){this.nzConfigService=G,this.cdr=O,this.directionality=Q,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new t.xQ,this.spinning$=new D.X(this.nzSpinning),this.delay$=new F.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var G;this.delay$.pipe((0,P.O)(this.nzDelay),(0,K.x)(),(0,H.w)(Q=>0===Q?this.spinning$:this.spinning$.pipe(function q(Y){return g=>g.lift(new A(Y))}(ye=>(0,Z.H)(ye?Q:0)))),(0,le.R)(this.destroy$)).subscribe(Q=>{this.isLoading=Q,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,le.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(G=this.directionality.change)||void 0===G||G.pipe((0,le.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(G){const{nzSpinning:O,nzDelay:Q}=G;O&&this.spinning$.next(this.nzSpinning),Q&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Y.\u0275fac=function(G){return new(G||Y)(i.Y36(te.jY),i.Y36(i.sBO),i.Y36(oe.Is,8))},Y.\u0275cmp=i.Xpm({type:Y,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(G,O){2&G&&i.ekj("ant-spin-nested-loading",!O.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[i.TTD],ngContentSelectors:fe,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(G,O){1&G&&(i.F$t(),i.YNc(0,I,5,0,"ng-template",null,0,i.W1O),i.YNc(2,X,4,12,"div",1),i.YNc(3,de,2,2,"div",2)),2&G&&(i.xp6(2),i.Q6J("ngIf",O.isLoading),i.xp6(1),i.Q6J("ngIf",!O.nzSimple))},directives:[V.O5,V.tP],encapsulation:2}),(0,o.gn)([(0,te.oS)()],Y.prototype,"nzIndicator",void 0),(0,o.gn)([(0,ae.Rn)()],Y.prototype,"nzDelay",void 0),(0,o.gn)([(0,ae.yF)()],Y.prototype,"nzSimple",void 0),(0,o.gn)([(0,ae.yF)()],Y.prototype,"nzSpinning",void 0),Y})(),W=(()=>{class Y{}return Y.\u0275fac=function(G){return new(G||Y)},Y.\u0275mod=i.oAB({type:Y}),Y.\u0275inj=i.cJS({imports:[[oe.vT,V.ez,b.Q8]]}),Y})()}}]); \ No newline at end of file + ${ri}`;let ga=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ma}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},4024:(De,re,r)=>{r.r(re),r.d(re,{LayoutModule:()=>kt});var o=r(9808),i=r(325),t=r(5e3),D=r(9350),F=r(8929),Z=r(7625),B=r(655),q=r(4090),A=r(1721),L=r(4219),G=r(925),K=r(647),H=r(226),le=r(5113);const te=["*"],se=["nz-sider-trigger",""];function oe(u,M){}function V(u,M){if(1&u&&(t.ynx(0),t.YNc(1,oe,0,0,"ng-template",3),t.BQk()),2&u){const c=t.oxw(),v=t.MAs(5);t.xp6(1),t.Q6J("ngTemplateOutlet",c.nzZeroTrigger||v)}}function b(u,M){}function I(u,M){if(1&u&&(t.ynx(0),t.YNc(1,b,0,0,"ng-template",3),t.BQk()),2&u){const c=t.oxw(),v=t.MAs(3);t.xp6(1),t.Q6J("ngTemplateOutlet",c.nzTrigger||v)}}function $(u,M){if(1&u&&t._UZ(0,"i",5),2&u){const c=t.oxw(2);t.Q6J("nzType",c.nzCollapsed?"right":"left")}}function ne(u,M){if(1&u&&t._UZ(0,"i",5),2&u){const c=t.oxw(2);t.Q6J("nzType",c.nzCollapsed?"left":"right")}}function X(u,M){if(1&u&&(t.YNc(0,$,1,1,"i",4),t.YNc(1,ne,1,1,"i",4)),2&u){const c=t.oxw();t.Q6J("ngIf",!c.nzReverseArrow),t.xp6(1),t.Q6J("ngIf",c.nzReverseArrow)}}function de(u,M){1&u&&t._UZ(0,"i",6)}function fe(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(c);const P=t.oxw();return P.setCollapsed(!P.nzCollapsed)}),t.qZA()}if(2&u){const c=t.oxw();t.Q6J("matchBreakPoint",c.matchBreakPoint)("nzCollapsedWidth",c.nzCollapsedWidth)("nzCollapsed",c.nzCollapsed)("nzBreakpoint",c.nzBreakpoint)("nzReverseArrow",c.nzReverseArrow)("nzTrigger",c.nzTrigger)("nzZeroTrigger",c.nzZeroTrigger)("siderWidth",c.widthSetting)}}let pe=(()=>{class u{constructor(c,v){this.elementRef=c,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(t.Qsj))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),W=(()=>{class u{constructor(c,v){this.elementRef=c,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(t.Qsj))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),Y=(()=>{class u{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(c,v){2&c&&(t.Udp("width",v.isNormalTrigger?v.siderWidth:null),t.ekj("ant-layout-sider-trigger",v.isNormalTrigger)("ant-layout-sider-zero-width-trigger",v.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",v.isZeroTrigger&&v.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",v.isZeroTrigger&&!v.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[t.TTD],attrs:se,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(c,v){1&c&&(t.YNc(0,V,2,1,"ng-container",0),t.YNc(1,I,2,1,"ng-container",0),t.YNc(2,X,2,2,"ng-template",null,1,t.W1O),t.YNc(4,de,1,0,"ng-template",null,2,t.W1O)),2&c&&(t.Q6J("ngIf",v.isZeroTrigger),t.xp6(1),t.Q6J("ngIf",v.isNormalTrigger))},directives:[o.O5,o.tP,K.Ls],encapsulation:2,changeDetection:0}),u})(),g=(()=>{class u{constructor(c,v,P){this.platform=c,this.cdr=v,this.breakpointService=P,this.destroy$=new F.xQ,this.nzMenuDirective=null,this.nzCollapsedChange=new t.vpe,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,A.WX)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(c){c!==this.nzCollapsed&&(this.nzCollapsed=c,this.nzCollapsedChange.emit(c),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(q.ow,!0).pipe((0,Z.R)(this.destroy$)).subscribe(c=>{const v=this.nzBreakpoint;v&&(0,A.ov)().subscribe(()=>{this.matchBreakPoint=!c[v],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(c){const{nzCollapsed:v,nzCollapsedWidth:P,nzWidth:ae}=c;(v||P||ae)&&this.updateStyleMap(),v&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(G.t4),t.Y36(t.sBO),t.Y36(q.r3))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-sider"]],contentQueries:function(c,v,P){if(1&c&&t.Suo(P,L.wO,5),2&c){let ae;t.iGM(ae=t.CRH())&&(v.nzMenuDirective=ae.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(c,v){2&c&&(t.Udp("flex",v.flexSetting)("max-width",v.widthSetting)("min-width",v.widthSetting)("width",v.widthSetting),t.ekj("ant-layout-sider-zero-width",v.nzCollapsed&&0===v.nzCollapsedWidth)("ant-layout-sider-light","light"===v.nzTheme)("ant-layout-sider-dark","dark"===v.nzTheme)("ant-layout-sider-collapsed",v.nzCollapsed)("ant-layout-sider-has-trigger",v.nzCollapsible&&null!==v.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[t.TTD],ngContentSelectors:te,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(c,v){1&c&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA(),t.YNc(2,fe,1,8,"div",1)),2&c&&(t.xp6(2),t.Q6J("ngIf",v.nzCollapsible&&null!==v.nzTrigger))},directives:[Y,o.O5],encapsulation:2,changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzReverseArrow",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzCollapsible",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzCollapsed",void 0),u})(),w=(()=>{class u{constructor(c){this.directionality=c,this.dir="ltr",this.destroy$=new F.xQ}ngOnInit(){var c;this.dir=this.directionality.value,null===(c=this.directionality.change)||void 0===c||c.pipe((0,Z.R)(this.destroy$)).subscribe(v=>{this.dir=v})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(H.Is,8))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-layout"]],contentQueries:function(c,v,P){if(1&c&&t.Suo(P,g,4),2&c){let ae;t.iGM(ae=t.CRH())&&(v.listOfNzSiderComponent=ae)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(c,v){2&c&&t.ekj("ant-layout-rtl","rtl"===v.dir)("ant-layout-has-sider",v.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),O=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[H.vT,o.ez,K.PV,le.xu,G.ud]]}),u})();var Q=r(404),ye=r(1894),_e=r(712),Se=r(373),Ee=r(1047),Oe=r(4182),Re=r(2845),Ve=r(4832),Pe=r(969),N=r(3753),ee=r(2654),_=r(8514),J=r(6787),U=r(2198),ge=r(2868),Ce=r(6792),Ae=r(2986),Me=r(7545),Ie=r(1159),Le=r(7429),Ne=r(8076);function Be(u,M){if(1&u&&(t.ynx(0),t._uU(1),t.BQk()),2&u){const c=t.oxw();t.xp6(1),t.Oqu(c.nzLabel)}}const ve=[[["nz-auto-option"]]],Ue=["nz-auto-option"],xe=["*"],$e=["panel"],it=["content"];function ot(u,M){}function tt(u,M){1&u&&t.YNc(0,ot,0,0,"ng-template")}function rt(u,M){1&u&&t.Hsn(0)}function h(u,M){if(1&u&&(t.TgZ(0,"nz-auto-option",8),t._uU(1),t.qZA()),2&u){const c=M.$implicit;t.Q6J("nzValue",c)("nzLabel",c&&c.label?c.label:c),t.xp6(1),t.hij(" ",c&&c.label?c.label:c," ")}}function st(u,M){if(1&u&&t.YNc(0,h,2,3,"nz-auto-option",7),2&u){const c=t.oxw(2);t.Q6J("ngForOf",c.nzDataSource)}}function at(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"div",0,1),t.NdJ("@slideMotion.done",function(P){return t.CHM(c),t.oxw().onAnimationEvent(P)}),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.YNc(4,tt,1,0,void 0,4),t.qZA(),t.qZA(),t.qZA(),t.YNc(5,rt,1,0,"ng-template",null,5,t.W1O),t.YNc(7,st,1,1,"ng-template",null,6,t.W1O)}if(2&u){const c=t.MAs(6),v=t.MAs(8),P=t.oxw();t.ekj("ant-select-dropdown-hidden",!P.showPanel)("ant-select-dropdown-rtl","rtl"===P.dir),t.Q6J("ngClass",P.nzOverlayClassName)("ngStyle",P.nzOverlayStyle)("nzNoAnimation",null==P.noAnimation?null:P.noAnimation.nzNoAnimation)("@slideMotion",void 0)("@.disabled",null==P.noAnimation?null:P.noAnimation.nzNoAnimation),t.xp6(4),t.Q6J("ngTemplateOutlet",P.nzDataSource?v:c)}}let ct=(()=>{class u{constructor(){}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],ngContentSelectors:Ue,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(c,v){1&c&&(t.F$t(ve),t.TgZ(0,"div",0),t.YNc(1,Be,2,1,"ng-container",1),t.qZA(),t.Hsn(2)),2&c&&(t.xp6(1),t.Q6J("nzStringTemplateOutlet",v.nzLabel))},directives:[Pe.f],encapsulation:2,changeDetection:0}),u})();class lt{constructor(M,c=!1){this.source=M,this.isUserInput=c}}let Ge=(()=>{class u{constructor(c,v,P,ae){this.ngZone=c,this.changeDetectorRef=v,this.element=P,this.nzAutocompleteOptgroupComponent=ae,this.nzDisabled=!1,this.selectionChange=new t.vpe,this.mouseEntered=new t.vpe,this.active=!1,this.selected=!1,this.destroy$=new F.xQ}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,N.R)(this.element.nativeElement,"mouseenter").pipe((0,U.h)(()=>this.mouseEntered.observers.length>0),(0,Z.R)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>this.mouseEntered.emit(this))}),(0,N.R)(this.element.nativeElement,"mousedown").pipe((0,Z.R)(this.destroy$)).subscribe(c=>c.preventDefault())})}ngOnDestroy(){this.destroy$.next()}select(c=!0){this.selected=!0,this.changeDetectorRef.markForCheck(),c&&this.emitSelectionChangeEvent()}deselect(){this.selected=!1,this.changeDetectorRef.markForCheck(),this.emitSelectionChangeEvent()}getLabel(){return this.nzLabel||this.nzValue.toString()}setActiveStyles(){this.active||(this.active=!0,this.changeDetectorRef.markForCheck())}setInactiveStyles(){this.active&&(this.active=!1,this.changeDetectorRef.markForCheck())}scrollIntoViewIfNeeded(){(0,A.zT)(this.element.nativeElement)}selectViaInteraction(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())}emitSelectionChangeEvent(c=!1){this.selectionChange.emit(new lt(this,c))}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(ct,8))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-auto-option"]],hostAttrs:["role","menuitem",1,"ant-select-item","ant-select-item-option"],hostVars:10,hostBindings:function(c,v){1&c&&t.NdJ("click",function(){return v.selectViaInteraction()}),2&c&&(t.uIk("aria-selected",v.selected.toString())("aria-disabled",v.nzDisabled.toString()),t.ekj("ant-select-item-option-grouped",v.nzAutocompleteOptgroupComponent)("ant-select-item-option-selected",v.selected)("ant-select-item-option-active",v.active)("ant-select-item-option-disabled",v.nzDisabled))},inputs:{nzValue:"nzValue",nzLabel:"nzLabel",nzDisabled:"nzDisabled"},outputs:{selectionChange:"selectionChange",mouseEntered:"mouseEntered"},exportAs:["nzAutoOption"],ngContentSelectors:xe,decls:2,vars:0,consts:[[1,"ant-select-item-option-content"]],template:function(c,v){1&c&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},encapsulation:2,changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzDisabled",void 0),u})();const pt={provide:Oe.JU,useExisting:(0,t.Gpc)(()=>a),multi:!0};let a=(()=>{class u{constructor(c,v,P,ae,et){this.elementRef=c,this.overlay=v,this.viewContainerRef=P,this.nzInputGroupWhitSuffixOrPrefixDirective=ae,this.document=et,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new F.xQ,this.overlayRef=null,this.portal=null,this.previousValue=null}get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe((0,Z.R)(this.destroy$)).subscribe(c=>{"void"===c.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(c){Promise.resolve(null).then(()=>this.setTriggerValue(c))}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.elementRef.nativeElement.disabled=c,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.portal=null))}handleKeydown(c){const v=c.keyCode,P=v===Ie.LH||v===Ie.JH;v===Ie.hY&&c.preventDefault(),!this.panelOpen||v!==Ie.hY&&v!==Ie.Mf?this.panelOpen&&v===Ie.K5?this.nzAutocomplete.showPanel&&(c.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&P&&this.nzAutocomplete.showPanel&&(c.stopPropagation(),c.preventDefault(),v===Ie.LH?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill()):(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel())}handleInput(c){const v=c.target,P=this.document;let ae=v.value;"number"===v.type&&(ae=""===ae?null:parseFloat(ae)),this.previousValue!==ae&&(this.previousValue=ae,this.onChange(ae),this.canOpen()&&P.activeElement===c.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,ge.b)(()=>this.positionStrategy.reapplyLastPosition()),(0,Ce.g)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(c=>{this.setValueAndClose(c)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,U.h)(c=>!this.elementRef.nativeElement.contains(c.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function p(){return Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}();!this.portal&&this.nzAutocomplete.template&&(this.portal=new Le.UE(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.closePanel()})),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getOverlayConfig(){return new Re.X_({positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})}getConnectedElement(){return this.nzInputGroupWhitSuffixOrPrefixDirective?this.nzInputGroupWhitSuffixOrPrefixDirective.elementRef:this.elementRef}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}getOverlayPosition(){const c=[new Re.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new Re.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(c).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const c=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==c?(this.nzAutocomplete.setActiveItem(c),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(c){const v=c.nzValue;this.setTriggerValue(c.getLabel()),this.onChange(v),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(c){const v=this.nzAutocomplete.getOption(c),P=v?v.getLabel():c;this.elementRef.nativeElement.value=null!=P?P:"",this.nzAutocomplete.nzBackfill||(this.previousValue=P)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const c=this.elementRef.nativeElement;return!c.readOnly&&!c.disabled}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(Re.aV),t.Y36(t.s_b),t.Y36(Ee.ke,8),t.Y36(o.K0,8))},u.\u0275dir=t.lG2({type:u,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(c,v){1&c&&t.NdJ("focusin",function(){return v.handleFocus()})("blur",function(){return v.handleBlur()})("input",function(ae){return v.handleInput(ae)})("keydown",function(ae){return v.handleKeydown(ae)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[t._Bn([pt])]}),u})(),j=(()=>{class u{constructor(c,v,P,ae){this.changeDetectorRef=c,this.ngZone=v,this.directionality=P,this.noAnimation=ae,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzDefaultActiveFirstOption=!0,this.nzBackfill=!1,this.compareWith=(et,Yt)=>et===Yt,this.selectionChange=new t.vpe,this.showPanel=!0,this.isOpen=!1,this.activeItem=null,this.dir="ltr",this.destroy$=new F.xQ,this.animationStateChange=new t.vpe,this.activeItemIndex=-1,this.selectionChangeSubscription=ee.w.EMPTY,this.optionMouseEnterSubscription=ee.w.EMPTY,this.dataSourceChangeSubscription=ee.w.EMPTY,this.optionSelectionChanges=(0,_.P)(()=>this.options?(0,J.T)(...this.options.map(et=>et.selectionChange)):this.ngZone.onStable.asObservable().pipe((0,Ae.q)(1),(0,Me.w)(()=>this.optionSelectionChanges))),this.optionMouseEnter=(0,_.P)(()=>this.options?(0,J.T)(...this.options.map(et=>et.mouseEntered)):this.ngZone.onStable.asObservable().pipe((0,Ae.q)(1),(0,Me.w)(()=>this.optionMouseEnter)))}get options(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions}ngOnInit(){var c;null===(c=this.directionality.change)||void 0===c||c.pipe((0,Z.R)(this.destroy$)).subscribe(v=>{this.dir=v,this.changeDetectorRef.detectChanges()}),this.dir=this.directionality.value}onAnimationEvent(c){this.animationStateChange.emit(c)}ngAfterContentInit(){this.nzDataSource||this.optionsInit()}ngAfterViewInit(){this.nzDataSource&&this.optionsInit()}ngOnDestroy(){this.dataSourceChangeSubscription.unsubscribe(),this.selectionChangeSubscription.unsubscribe(),this.optionMouseEnterSubscription.unsubscribe(),this.dataSourceChangeSubscription=this.selectionChangeSubscription=this.optionMouseEnterSubscription=null,this.destroy$.next(),this.destroy$.complete()}setVisibility(){this.showPanel=!!this.options.length,this.changeDetectorRef.markForCheck()}setActiveItem(c){const v=this.options.get(c);v&&!v.active?(this.activeItem=v,this.activeItemIndex=c,this.clearSelectedOptions(this.activeItem),this.activeItem.setActiveStyles()):(this.activeItem=null,this.activeItemIndex=-1,this.clearSelectedOptions()),this.changeDetectorRef.markForCheck()}setNextItemActive(){this.setActiveItem(this.activeItemIndex+1<=this.options.length-1?this.activeItemIndex+1:0)}setPreviousItemActive(){this.setActiveItem(this.activeItemIndex-1<0?this.options.length-1:this.activeItemIndex-1)}getOptionIndex(c){return this.options.reduce((v,P,ae)=>-1===v?this.compareWith(c,P.nzValue)?ae:-1:v,-1)}getOption(c){return this.options.find(v=>this.compareWith(c,v.nzValue))||null}optionsInit(){this.setVisibility(),this.subscribeOptionChanges(),this.dataSourceChangeSubscription=(this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes).subscribe(v=>{!v.dirty&&this.isOpen&&setTimeout(()=>this.setVisibility()),this.subscribeOptionChanges()})}clearSelectedOptions(c,v=!1){this.options.forEach(P=>{P!==c&&(v&&P.deselect(),P.setInactiveStyles())})}subscribeOptionChanges(){this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe((0,U.h)(c=>c.isUserInput)).subscribe(c=>{c.source.select(),c.source.setActiveStyles(),this.activeItem=c.source,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(c.source,!0),this.selectionChange.emit(c.source)}),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe(c=>{c.setActiveStyles(),this.activeItem=c,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(c)})}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(H.Is,8),t.Y36(Ve.P,9))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-autocomplete"]],contentQueries:function(c,v,P){if(1&c&&t.Suo(P,Ge,5),2&c){let ae;t.iGM(ae=t.CRH())&&(v.fromContentOptions=ae)}},viewQuery:function(c,v){if(1&c&&(t.Gf(t.Rgc,5),t.Gf($e,5),t.Gf(it,5),t.Gf(Ge,5)),2&c){let P;t.iGM(P=t.CRH())&&(v.template=P.first),t.iGM(P=t.CRH())&&(v.panel=P.first),t.iGM(P=t.CRH())&&(v.content=P.first),t.iGM(P=t.CRH())&&(v.fromDataSourceOptions=P)}},inputs:{nzWidth:"nzWidth",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzDefaultActiveFirstOption:"nzDefaultActiveFirstOption",nzBackfill:"nzBackfill",compareWith:"compareWith",nzDataSource:"nzDataSource"},outputs:{selectionChange:"selectionChange"},exportAs:["nzAutocomplete"],ngContentSelectors:xe,decls:1,vars:0,consts:[[1,"ant-select-dropdown","ant-select-dropdown-placement-bottomLeft",3,"ngClass","ngStyle","nzNoAnimation"],["panel",""],[2,"max-height","256px","overflow-y","auto","overflow-anchor","none"],[2,"display","flex","flex-direction","column"],[4,"ngTemplateOutlet"],["contentTemplate",""],["optionsTemplate",""],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"]],template:function(c,v){1&c&&(t.F$t(),t.YNc(0,at,9,10,"ng-template"))},directives:[Ge,o.mk,o.PC,Ve.P,o.tP,o.sg],encapsulation:2,data:{animation:[Ne.mF]},changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzDefaultActiveFirstOption",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzBackfill",void 0),u})(),m=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[H.vT,o.ez,Re.U8,Oe.u5,Pe.T,Ve.g,Ee.o7]]}),u})();var l=r(6949);function k(u,M){1&u&&t._UZ(0,"i",5)}function ie(u,M){if(1&u){const c=t.EpF();t.ynx(0),t.TgZ(1,"a",6),t.TgZ(2,"nz-auto-option",7),t.NdJ("click",function(){t.CHM(c);const P=t.oxw();return P.searchQuery="",P.refresh()}),t.TgZ(3,"span"),t._UZ(4,"i",8),t._uU(5," \xa0 "),t._UZ(6,"span",9),t._UZ(7,"br"),t._UZ(8,"span",9),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&u){const c=M.$implicit,v=t.oxw();t.xp6(1),t.Q6J("routerLink",v.urlForResult(c)),t.xp6(1),t.Q6J("nzValue",v.urlForResult(c)),t.xp6(2),t.Q6J("nzType",v.iconNameForResult(c)),t.xp6(2),t.s9C("innerHTML",c.name,t.oJD),t.xp6(2),t.s9C("innerHTML",c.matchingText,t.oJD)}}let ze=(()=>{class u{constructor(c,v){this.gql=c,this.router=v,this.searchQuery=""}ngOnInit(){this.queryRef=this.gql.watch({query:this.searchQuery}),this.searchResults$=this.queryRef.valueChanges.pipe((0,Se.j)("data","search"))}refresh(){this.queryRef.refetch({query:this.searchQuery})}iconNameForResult(c){switch(c.resultType){case _e.rZD.EvidenceItem:return"civic:evidence";case _e.rZD.VariantGroup:return"civic:variantgroup";default:return`civic:${c.resultType.toLowerCase()}`}}urlForResult(c){let v;switch(c.resultType){case _e.rZD.VariantGroup:v="variant-groups";break;case _e.rZD.EvidenceItem:v="evidence";break;default:v=`${c.resultType.toLowerCase()}s`}return`/${v}/${c.id}/summary`}quicksearchSelected(c){let v=c.target.value;this.searchQuery="",this.router.navigate([v])}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(_e.ghc),t.Y36(i.F0))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-quicksearch"]],decls:8,vars:6,consts:[["nzSize","large",3,"nzSuffix"],["placeholder","Quicksearch","nz-input","",3,"ngModel","nzAutocomplete","ngModelChange","keyup.enter"],["suffixIcon",""],["auto",""],[4,"ngFor","ngForOf"],["nz-icon","","nzType","search"],[3,"routerLink"],[3,"nzValue","click"],["nz-icon","",3,"nzType"],[3,"innerHTML"]],template:function(c,v){if(1&c&&(t.TgZ(0,"nz-input-group",0),t.TgZ(1,"input",1),t.NdJ("ngModelChange",function(ae){return v.searchQuery=ae})("ngModelChange",function(){return v.refresh()})("keyup.enter",function(ae){return v.quicksearchSelected(ae)}),t.qZA(),t.qZA(),t.YNc(2,k,1,0,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-autocomplete",null,3),t.YNc(6,ie,9,5,"ng-container",4),t.ALo(7,"ngrxPush"),t.qZA()),2&c){const P=t.MAs(3),ae=t.MAs(5);t.Q6J("nzSuffix",P),t.xp6(1),t.Q6J("ngModel",v.searchQuery)("nzAutocomplete",ae),t.xp6(5),t.Q6J("ngForOf",t.lcZ(7,4,v.searchResults$))}},directives:[Ee.gB,Ee.ke,Ee.Zp,Oe.Fj,a,Oe.JJ,Oe.On,K.Ls,j,o.sg,i.yS,Ge],pipes:[l.fM],styles:[""]}),u})();var Ze=r(1912),Te=r(4850),Fe=r(1059),ke=r(2340),Ye=r(8144),Je=r(6042),He=r(2643),nt=r(2683),Qe=r(3677),je=r(4401),ut=r(7881),Xe=r(3640),f=r(8785);function E(u,M){if(1&u&&(t.TgZ(0,"button",23),t._uU(1," Add "),t._UZ(2,"i",24),t.qZA()),2&u){t.oxw(2);const c=t.MAs(14);t.Q6J("nzDropdownMenu",c)}}const C=function(){return{backgroundColor:"#096dd9",color:"#fff1f0",boxShadow:"0 0 0 1px #1890ff inset"}};function R(u,M){if(1&u&&(t.TgZ(0,"nz-badge",25),t.TgZ(1,"button",26),t._UZ(2,"i",27),t.qZA(),t.qZA()),2&u){const c=t.oxw().ngrxLet,v=t.oxw().ngIf;t.Q6J("nzCount",c)("nzOverflowCount",999)("nzStyle",t.DdM(4,C)),t.xp6(1),t.MGl("routerLink","/users/",v.id,"/notifications")}}const ce=function(u){return{"update-coi":u}};function he(u,M){if(1&u&&t._UZ(0,"cvc-user-avatar",33),2&u){const c=t.oxw(3).ngIf;t.Q6J("user",c)("size",22)("ngClass",t.VKq(3,ce,c.invalidCoi))}}function mt(u,M){if(1&u&&(t.TgZ(0,"div",34),t._uU(1),t.qZA()),2&u){const c=t.oxw(3).ngIf;t.xp6(1),t.Oqu(c.username)}}function Jt(u,M){1&u&&t._UZ(0,"i",24)}function gt(u,M){if(1&u&&(t.TgZ(0,"button",28),t.TgZ(1,"nz-space",29),t.YNc(2,he,1,5,"cvc-user-avatar",30),t.YNc(3,mt,2,1,"div",31),t.YNc(4,Jt,1,0,"i",32),t.qZA(),t.qZA()),2&u){t.oxw(2);const c=t.MAs(3);t.Q6J("nzDropdownMenu",c)}}function ft(u,M){1&u&&(t.TgZ(0,"nz-space",19),t.YNc(1,E,3,1,"button",20),t.YNc(2,R,3,5,"nz-badge",21),t.YNc(3,gt,5,1,"button",22),t.qZA())}function ht(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"li",14),t.TgZ(1,"button",35),t.NdJ("click",function(){return t.CHM(c),t.oxw(2).coiUpdateModalVisible=!0}),t._UZ(2,"i",36),t._uU(3," Please update COI statement "),t.qZA(),t.qZA()}}function vt(u,M){1&u&&t._UZ(0,"li",11)}function zt(u,M){1&u&&(t.TgZ(0,"li",37),t.TgZ(1,"a",38),t._uU(2," Admin Console "),t.qZA(),t.qZA())}const yt=function(u){return["/users",u]};function Ct(u,M){if(1&u){const c=t.EpF();t.ynx(0),t.YNc(1,ft,4,0,"nz-space",4),t.TgZ(2,"nz-dropdown-menu",null,5),t.TgZ(4,"ul",6),t.YNc(5,ht,4,0,"li",7),t.YNc(6,vt,1,0,"li",8),t.TgZ(7,"li",9),t._uU(8," Your Profile "),t.qZA(),t.YNc(9,zt,3,0,"li",10),t._UZ(10,"li",11),t.TgZ(11,"li",12),t.NdJ("click",function(){return t.CHM(c),t.oxw().signOut()}),t._uU(12,"Sign Out"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(13,"nz-dropdown-menu",null,13),t.TgZ(15,"ul",6),t.TgZ(16,"li",14),t.TgZ(17,"a",15),t._uU(18," Evidence Item "),t.qZA(),t.qZA(),t.TgZ(19,"li",14),t.TgZ(20,"a",16),t._uU(21," Assertion "),t.qZA(),t.qZA(),t.TgZ(22,"li",14),t.TgZ(23,"a",17),t._uU(24," Source Suggestion "),t.qZA(),t.qZA(),t.TgZ(25,"li",14),t.TgZ(26,"a",18),t._uU(27," Variant Group "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&u){const c=M.ngIf,v=t.oxw();t.xp6(1),t.Q6J("ngrxLet",v.unreadCount$),t.xp6(4),t.Q6J("ngIf",c.invalidCoi),t.xp6(1),t.Q6J("ngIf",c.invalidCoi),t.xp6(1),t.Q6J("routerLink",t.VKq(5,yt,c.id)),t.xp6(2),t.Q6J("ngIf",c.isAdmin)}}function It(u,M){1&u&&(t.TgZ(0,"span"),t._uU(1,"Update your Conflict of Interest Statement"),t.qZA())}function Tt(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"cvc-user-coi-form",39),t.NdJ("coiUpdatedEvent",function(){return t.CHM(c),t.oxw().coiUpdated()}),t.qZA()}}let _t=(()=>{class u{constructor(c,v){this.queryService=c,this.unreadCountGql=v,this.coiUpdateModalVisible=!1,this.viewer$=this.queryService.viewer$,this.unreadCount$=ke.N.production?this.unreadCountGql.watch(void 0,{pollInterval:5e3}).valueChanges.pipe((0,Te.U)(({data:P})=>P.notifications.unreadCount),(0,Fe.O)(0)):this.unreadCountGql.watch(void 0).valueChanges.pipe((0,Te.U)(({data:P})=>P.notifications.unreadCount),(0,Fe.O)(0))}signOut(){this.queryService.signOut()}coiUpdated(){this.coiUpdateModalVisible=!1,this.queryService.refetch()}handleCoiModalCancel(){this.coiUpdateModalVisible=!1}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(D.a),t.Y36(_e.Kmw))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-viewer-button"]],decls:7,vars:7,consts:[[4,"ngIf"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["coiModalTitle",""],["coiModalContent",""],["nzDirection","horizontal","nzSize","middle",4,"ngrxLet"],["userMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",4,"ngIf"],["nz-menu-divider","",4,"ngIf"],["nz-menu-item","",3,"routerLink"],["nz-menu-item","","href","/admin",4,"ngIf"],["nz-menu-divider",""],["nz-menu-item","",3,"click"],["addMenu","nzDropdownMenu"],["nz-menu-item",""],["routerLink","/evidence/add/submit"],["routerLink","/assertions/add/submit"],["routerLink","/sources/add"],["routerLink","/variant-groups/add/submit"],["nzDirection","horizontal","nzSize","middle"],["class","add-btn","nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],[3,"nzCount","nzOverflowCount","nzStyle",4,"nzSpaceItem"],["class","viewer-btn","nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],["nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"add-btn",3,"nzDropdownMenu"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"nzCount","nzOverflowCount","nzStyle"],["nz-button","","nzSize","large","nzShape","circle","nzType","link",1,"notification-btn",3,"routerLink"],["nz-icon","","nzType","bell","nzTheme","outline"],["nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"viewer-btn",3,"nzDropdownMenu"],["nzDirection","horizontal","nzSize","small"],["shape","circle",3,"user","size","ngClass",4,"nzSpaceItem"],["class","viewer-name",4,"nzSpaceItem"],["nz-icon","","nzType","caret-down","nzTheme","outline",4,"nzSpaceItem"],["shape","circle",3,"user","size","ngClass"],[1,"viewer-name"],["nz-button","","nzType","primary","nzShape","round","nzSize","small","nzDanger","","nzBlock","",3,"click"],["nz-icon","","nzType","exclamation-circle"],["nz-menu-item","","href","/admin"],["href","/admin"],[3,"coiUpdatedEvent"]],template:function(c,v){if(1&c&&(t.YNc(0,Ct,28,7,"ng-container",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-modal",1),t.NdJ("nzVisibleChange",function(ae){return v.coiUpdateModalVisible=ae})("nzOnCancel",function(){return v.handleCoiModalCancel()}),t.YNc(3,It,2,0,"ng-template",null,2,t.W1O),t.YNc(5,Tt,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&c){const P=t.MAs(4),ae=t.MAs(6);t.Q6J("ngIf",t.lcZ(1,5,v.viewer$)),t.xp6(2),t.Q6J("nzVisible",v.coiUpdateModalVisible)("nzContent",ae)("nzTitle",P)("nzFooter",null)}},directives:[o.O5,l.eJ,Ye.NU,Ye.$1,Je.ix,He.dQ,nt.w,Qe.wA,Qe.cm,K.Ls,je.x7,i.rH,ut.L,o.mk,Qe.RR,L.wO,L.r9,L.YV,i.yS,Xe.du,f.t],pipes:[l.fM],styles:["[_nghost-%COMP%]{display:inline-block}.topMenuIcon[_ngcontent-%COMP%]:hover{cursor:pointer}.topMenuIcon[_ngcontent-%COMP%]{font-size:16px}.topMenuIcon[_ngcontent-%COMP%] .topBarBadge[_ngcontent-%COMP%]{margin-right:-10px;margin-top:-16px}.topMenuIcon[_ngcontent-%COMP%] .topMenuSecondary[_ngcontent-%COMP%]{font-size:10px;margin-left:2px}.add-btn[_ngcontent-%COMP%]{margin-right:0;background-color:#001529;border:none;color:#ccc}.notification-btn[_ngcontent-%COMP%]{background-color:#001529;border:1px solid #096dd9}.viewer-btn[_ngcontent-%COMP%]{background-color:#0050b3;border:none;color:#ccc;padding-left:5px;padding-right:10px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%]{position:relative;top:-1px;left:1px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%] .ant-avatar>img{border-width:1.5px;border-style:solid;border-color:#096dd9;border-radius:22px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar.update-coi[_ngcontent-%COMP%] .ant-avatar>img{border-color:#f5222d}"]}),u})();function St(u,M){1&u&&t._UZ(0,"img",58)}function Dt(u,M){1&u&&t._UZ(0,"img",59)}function Et(u,M){1&u&&t._UZ(0,"cvc-login-button")}function jt(u,M){1&u&&t._UZ(0,"cvc-viewer-button")}const qe=function(u){return{"is-collapsed":u}},Nt=[{path:"",pathMatch:"full",redirectTo:"/welcome"},{path:"",component:(()=>{class u{constructor(c){this.viewerService=c,this.isCollapsed=!1}ngOnInit(){this.data$=this.viewerService.data$,this.viewer$=this.viewerService.viewer$,this.signedIn$=this.viewerService.signedIn$,this.signedOut$=this.viewerService.signedOut$,this.canCurate$=this.viewerService.canCurate$,this.canModerate$=this.viewerService.canModerate$}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(D.a))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-layout"]],decls:124,vars:46,consts:[[1,"app-layout"],["nzCollapsible","","nzBreakpoint","md",1,"app-sider",3,"nzWidth","nzCollapsedWidth","nzCollapsed","nzTrigger","nzCollapsedChange"],["routerLink","/"],[1,"sidebar-logo",3,"ngClass"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["nz-menu","","nzTheme","dark","nzMode","inline",1,"sidebar-menu",3,"ngClass","nzInlineCollapsed"],["nz-menu-group","",3,"nzTitle"],["nz-menu-item","","nz-tooltip","","nzTooltipPlacement","right","nzSelected","","nzMatchRouter","",3,"nzTooltipTitle"],["nz-icon","","nzType","civic-assertion"],["routerLink","/assertions"],["nz-icon","","nzType","civic-evidence"],["routerLink","/evidence"],["nz-icon","","nzType","civic-gene"],["routerLink","/genes"],["nz-icon","","nzType","civic-variant"],["routerLink","/variants"],["nz-icon","","nzType","civic-variantgroup"],["routerLink","/variant-groups"],["nz-icon","","nzType","audit"],["routerLink","/clinical-trials"],["nz-icon","","nzType","civic-disease"],["routerLink","/diseases"],["nz-icon","","nzType","civic-intervention"],["routerLink","/drugs"],["nz-icon","","nzType","civic-phenotype"],["routerLink","/phenotypes"],["nz-icon","","nzType","civic-source"],["routerLink","/sources"],["nz-icon","","nzType","civic-varianttype"],["routerLink","/variant-types"],["nz-icon","","nzType","civic-event"],["routerLink","/curation/activity"],["nz-icon","","nzType","file-add"],["routerLink","/curation/queues"],["nz-icon","","nzType","civic-curator"],["routerLink","/users","id","main-users"],["nz-icon","","nzType","civic-organization"],["routerLink","/organizations","id","main-organization"],["nz-icon","","nzType","download"],["routerLink","/releases","id","releases"],["nz-tooltip","","nzTooltipPlacement","rightTop","nzTooltipTitle","By marking the work with a CC0 public domain dedication, the creator is giving up their copyright and allowing reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes.",1,"cc-notice",3,"ngClass"],["src","assets/images/CC0-notice-glyph.svg","alt","CC0 1.0 Universal",1,"cc-glyph"],["src","assets/images/CC0-notice-txt.svg","alt","This work has been marked as dedicated to the public domain.",1,"cc-txt"],[1,"right-layout",3,"ngClass"],["nz-row",""],["nz-col","","nzFlex","40px"],[1,"header-trigger",3,"click"],["nz-icon","",1,"trigger",3,"nzType"],["nz-col","","nzFlex","300px","id","header-search"],["nz-col","","nzFlex","300px","id","header-menu"],["nz-menu","","nzMode","horizontal","nzTheme","dark"],["nz-menu-item","","nzSelected","","nzMatchRouter",""],["routerLink","/welcome"],["routerLink","/pages/about"],["routerLink","/pages/help"],["nz-col","","nzFlex","auto","id","header-viewer"],[4,"ngIf"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"]],template:function(c,v){1&c&&(t.TgZ(0,"nz-layout",0),t.TgZ(1,"nz-sider",1),t.NdJ("nzCollapsedChange",function(ae){return v.isCollapsed=ae}),t.TgZ(2,"a",2),t.TgZ(3,"div",3),t.YNc(4,St,1,0,"img",4),t.YNc(5,Dt,1,0,"img",5),t.qZA(),t.qZA(),t.TgZ(6,"ul",6),t.TgZ(7,"li",7),t.TgZ(8,"ul"),t.TgZ(9,"li",8),t._UZ(10,"i",9),t.TgZ(11,"span"),t.TgZ(12,"a",10),t._uU(13,"Assertions"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"li",8),t._UZ(15,"i",11),t.TgZ(16,"span"),t.TgZ(17,"a",12),t._uU(18,"Evidence"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(19,"li",8),t._UZ(20,"i",13),t.TgZ(21,"span"),t.TgZ(22,"a",14),t._uU(23,"Genes"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"li",8),t._UZ(25,"i",15),t.TgZ(26,"span"),t.TgZ(27,"a",16),t._uU(28,"Variants"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"li",8),t._UZ(30,"i",17),t.TgZ(31,"span"),t.TgZ(32,"a",18),t._uU(33,"Variant Groups"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(34,"li",8),t._UZ(35,"i",19),t.TgZ(36,"span"),t.TgZ(37,"a",20),t._uU(38,"Clinical Trials"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(39,"li",8),t._UZ(40,"i",21),t.TgZ(41,"span"),t.TgZ(42,"a",22),t._uU(43,"Diseases"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(44,"li",8),t._UZ(45,"i",23),t.TgZ(46,"span"),t.TgZ(47,"a",24),t._uU(48,"Drugs"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(49,"li",8),t._UZ(50,"i",25),t.TgZ(51,"span"),t.TgZ(52,"a",26),t._uU(53,"Phenotypes"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(54,"li",8),t._UZ(55,"i",27),t.TgZ(56,"span"),t.TgZ(57,"a",28),t._uU(58,"Sources"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(59,"li",8),t._UZ(60,"i",29),t.TgZ(61,"span"),t.TgZ(62,"a",30),t._uU(63,"Variant Types"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(64,"li",7),t.TgZ(65,"ul"),t.TgZ(66,"li",8),t._UZ(67,"i",31),t.TgZ(68,"span"),t.TgZ(69,"a",32),t._uU(70," Activity "),t.qZA(),t.qZA(),t.qZA(),t.TgZ(71,"li",8),t._UZ(72,"i",33),t.TgZ(73,"span"),t.TgZ(74,"a",34),t._uU(75,"Queues"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(76,"li",7),t.TgZ(77,"ul"),t.TgZ(78,"li",8),t._UZ(79,"i",35),t.TgZ(80,"span"),t.TgZ(81,"a",36),t._uU(82,"Contributors"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(83,"li",8),t._UZ(84,"i",37),t.TgZ(85,"span"),t.TgZ(86,"a",38),t._uU(87,"Organizations"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(88,"li",7),t.TgZ(89,"ul"),t.TgZ(90,"li",8),t._UZ(91,"i",39),t.TgZ(92,"span"),t.TgZ(93,"a",40),t._uU(94,"Data Releases"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(95,"div",41),t._UZ(96,"img",42),t._UZ(97,"img",43),t.qZA(),t.qZA(),t.TgZ(98,"nz-layout",44),t.TgZ(99,"nz-header"),t.TgZ(100,"div",45),t.TgZ(101,"div",46),t.TgZ(102,"span",47),t.NdJ("click",function(){return v.isCollapsed=!v.isCollapsed}),t._UZ(103,"i",48),t.qZA(),t.qZA(),t.TgZ(104,"div",49),t._UZ(105,"cvc-quicksearch"),t.qZA(),t.TgZ(106,"div",50),t.TgZ(107,"ul",51),t.TgZ(108,"li",52),t.TgZ(109,"a",53),t._uU(110,"Home"),t.qZA(),t.qZA(),t.TgZ(111,"li",52),t.TgZ(112,"a",54),t._uU(113,"About CIViC"),t.qZA(),t.qZA(),t.TgZ(114,"li",52),t.TgZ(115,"a",55),t._uU(116,"Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(117,"div",56),t.YNc(118,Et,1,0,"cvc-login-button",57),t.ALo(119,"async"),t.YNc(120,jt,1,0,"cvc-viewer-button",57),t.ALo(121,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(122,"nz-content"),t._UZ(123,"router-outlet"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.xp6(1),t.Q6J("nzWidth",170)("nzCollapsedWidth",80)("nzCollapsed",v.isCollapsed)("nzTrigger",null),t.xp6(2),t.Q6J("ngClass",t.VKq(38,qe,v.isCollapsed)),t.xp6(1),t.Q6J("ngIf",!v.isCollapsed),t.xp6(1),t.Q6J("ngIf",v.isCollapsed),t.xp6(1),t.Q6J("ngClass",t.VKq(40,qe,v.isCollapsed))("nzInlineCollapsed",v.isCollapsed),t.xp6(1),t.Q6J("nzTitle",v.isCollapsed?"KNOW":"KNOWLEDGEBASE"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Assertions":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Evidence":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Genes":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variants":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variant Groups":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Clinical Trials":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Diseases":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Drugs":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Phenotypes":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Sources":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variant Types":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"CURATE":"CURATION"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Activity":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Pending Queues":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"COMM":"COMMUNITY"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Users":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Organizations":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"RES":"RESOURCES"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Data Releases":""),t.xp6(5),t.Q6J("ngClass",t.VKq(42,qe,v.isCollapsed)),t.xp6(3),t.Q6J("ngClass",t.VKq(44,qe,v.isCollapsed)),t.xp6(5),t.Q6J("nzType",v.isCollapsed?"menu-unfold":"menu-fold"),t.xp6(15),t.Q6J("ngIf",t.lcZ(119,34,v.signedOut$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(121,36,v.signedIn$)))},directives:[w,g,i.yS,o.mk,o.O5,L.wO,L.uA,L.r9,Q.SY,K.Ls,W,ye.SK,ye.t3,ze,Ze.s,_t,pe,i.lC],pipes:[o.Ov],styles:["[_nghost-%COMP%]{display:flex;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app-layout[_ngcontent-%COMP%]{min-height:100vh}nz-sider[_ngcontent-%COMP%]{width:170px;overflow:auto;height:100%;position:fixed;left:0}.right-layout[_ngcontent-%COMP%]{margin-left:170px;width:100%;position:relative;transition:all .2s,padding 0s;background-color:#001529}.right-layout.is-collapsed[_ngcontent-%COMP%]{margin-left:80px}.sidebar-menu[_ngcontent-%COMP%]{margin-top:-20px}.sidebar-menu[_ngcontent-%COMP%] .ant-menu-item-group-title{padding-bottom:0}.sidebar-menu.is-collapsed[_ngcontent-%COMP%]{margin-top:-8px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-item-group-title{text-align:center}.cc-notice[_ngcontent-%COMP%]{margin-top:5em;text-align:center;width:170px}.cc-notice[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:56px}.cc-notice[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{width:76px}.cc-notice.is-collapsed[_ngcontent-%COMP%]{width:80px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:35px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{display:none}.sidebar-logo[_ngcontent-%COMP%]{height:90px}.sidebar-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:133px;height:auto;margin:12px 16px;transition:all .2s}.sidebar-logo.is-collapsed[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:auto;margin:12px 20px;transition:all .2s}.ant-layout-header[_ngcontent-%COMP%]{height:64px;line-height:64px;padding:0;position:fixed;width:calc(100% - 170px);z-index:10;color:#d6e4ff}.header-trigger[_ngcontent-%COMP%]{height:64px;cursor:pointer;color:#d6e4ff;padding:1em 1em 1em 0}#header-menu[_ngcontent-%COMP%]{text-align:right;height:64px}#header-search[_ngcontent-%COMP%]{height:64px;padding-right:16px}#header-viewer[_ngcontent-%COMP%]{text-align:right;padding-right:1em}.header-quicksearch[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-menu[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-user[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#d6e4ff}nz-content[_ngcontent-%COMP%]{margin-top:64px;overflow:initial;position:relative;z-index:1;background-color:#273340;border-top:1px solid #3e5166;border-left:1px solid #3e5166;padding:12px;border-top-left-radius:16px}"]}),u})(),children:[{path:"assertions",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(1679),r.e(305),r.e(3883),r.e(6875),r.e(2033),r.e(3730),r.e(8592),r.e(9020)]).then(r.bind(r,136)).then(u=>u.AssertionsModule),data:{breadcrumb:"Assertions"}},{path:"clinical-trials",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(305),r.e(7717),r.e(6519)]).then(r.bind(r,1838)).then(u=>u.ClinicalTrialsModule),data:{breadcrumb:"Clinical Trials"}},{path:"diseases",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(2395)]).then(r.bind(r,233)).then(u=>u.DiseasesModule),data:{breadcrumb:"Diseases"}},{path:"drugs",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(8422)]).then(r.bind(r,1592)).then(u=>u.DrugsModule),data:{breadcrumb:"Drugs"}},{path:"evidence",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(305),r.e(1457)]).then(r.bind(r,7727)).then(u=>u.EvidenceModule),data:{breadcrumb:"Evidence"}},{path:"genes",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(681)]).then(r.bind(r,681)).then(u=>u.GenesModule),data:{breadcrumb:"Genes"}},{path:"organizations",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(4292),r.e(3883),r.e(392),r.e(9484),r.e(376),r.e(3074),r.e(8592),r.e(3073)]).then(r.bind(r,3073)).then(u=>u.OrganizationsModule),data:{breadcrumb:"Organizations"}},{path:"phenotypes",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(4721)]).then(r.bind(r,1076)).then(u=>u.PhenotypesModule),data:{breadcrumb:"Phenotypes"}},{path:"sources",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(1679),r.e(305),r.e(2738),r.e(55),r.e(6875),r.e(2043),r.e(9484),r.e(2033),r.e(7717),r.e(8592),r.e(3648)]).then(r.bind(r,359)).then(u=>u.SourcesModule),data:{breadcrumb:"Sources"}},{path:"curation",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(3883),r.e(9484),r.e(4276)]).then(r.bind(r,7563)).then(u=>u.CurationModule),data:{breadcrumb:"Curation"}},{path:"users",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(4292),r.e(3883),r.e(9484),r.e(376),r.e(3074),r.e(3218)]).then(r.bind(r,3218)).then(u=>u.UsersModule),data:{breadcrumb:"Contributors"}},{path:"variant-groups",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(9890),r.e(79)]).then(r.bind(r,79)).then(u=>u.VariantGroupsModule),data:{breadcrumb:"Variant Groups"}},{path:"variants",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(1750),r.e(4658)]).then(r.bind(r,9221)).then(u=>u.VariantsModule),data:{breadcrumb:"Variants"}},{path:"variant-types",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(1750),r.e(4729)]).then(r.bind(r,1875)).then(u=>u.VariantTypesModule),data:{breadcrumb:"Variant Types"}},{path:"welcome",loadChildren:()=>Promise.all([r.e(6256),r.e(3501),r.e(5193),r.e(9001),r.e(2826),r.e(2738),r.e(4292),r.e(376),r.e(6303)]).then(r.bind(r,6528)).then(u=>u.WelcomeModule),data:{breadcrumb:"Welcome to CIViC"}},{path:"releases",loadChildren:()=>Promise.all([r.e(7064),r.e(9890),r.e(4579)]).then(r.bind(r,4579)).then(u=>u.ReleasesModule),data:{breadcrumb:"Releases"}},{path:"pages",loadChildren:()=>Promise.all([r.e(7064),r.e(4038)]).then(r.bind(r,4038)).then(u=>u.PagesModule),data:{breadcrumb:"Pages"}}]}];let At=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[i.Bz.forChild(Nt)],i.Bz]}),u})();var Ot=r(3618),Mt=r(5109),Lt=r(4546);let xt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,Oe.u5,i.Bz,l.WG,Ee.o7,Lt.U5,K.PV,m]]}),u})();var Ft=r(1844),bt=r(5473),Vt=r(330);let Zt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,l.WG,Qe.b1,i.Bz,Je.sL,Ye.zf,K.PV,je.mS,Q.cg,Xe.Qp,bt.H,Vt.e]]}),u})(),kt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,At,K.PV,ye.Jb,O,L.ip,Q.cg,Ot.ZJ,Mt.s,Ft.B,Zt,xt]]}),u})()},6792:(De,re,r)=>{r.d(re,{g:()=>F});var o=r(353),t=r(3489),D=r(9312);function F(A,L=o.P){const K=function i(A){return A instanceof Date&&!isNaN(+A)}(A)?+A-L.now():Math.abs(A);return H=>H.lift(new Z(K,L))}class Z{constructor(L,G){this.delay=L,this.scheduler=G}call(L,G){return G.subscribe(new B(L,this.delay,this.scheduler))}}class B extends t.L{constructor(L,G,K){super(L),this.delay=G,this.scheduler=K,this.queue=[],this.active=!1,this.errored=!1}static dispatch(L){const G=L.source,K=G.queue,H=L.scheduler,le=L.destination;for(;K.length>0&&K[0].time-H.now()<=0;)K.shift().notification.observe(le);if(K.length>0){const te=Math.max(0,K[0].time-H.now());this.schedule(L,te)}else this.unsubscribe(),G.active=!1}_schedule(L){this.active=!0,this.destination.add(L.schedule(B.dispatch,this.delay,{source:this,destination:this.destination,scheduler:L}))}scheduleNotification(L){if(!0===this.errored)return;const G=this.scheduler,K=new q(G.now()+this.delay,L);this.queue.push(K),!1===this.active&&this._schedule(G)}_next(L){this.scheduleNotification(D.P.createNext(L))}_error(L){this.errored=!0,this.queue=[],this.destination.error(L),this.unsubscribe()}_complete(){this.scheduleNotification(D.P.createComplete()),this.unsubscribe()}}class q{constructor(L,G){this.time=L,this.notification=G}}},373:(De,re,r)=>{r.d(re,{j:()=>i});var o=r(4850);function i(...D){const F=D.length;if(0===F)throw new Error("list of properties cannot be empty.");return Z=>(0,o.U)(function t(D,F){return B=>{let q=B;for(let A=0;A{r.d(re,{Dz:()=>te,Rt:()=>oe});var o=r(655),i=r(5e3),t=r(9439),D=r(1721),F=r(925),Z=r(9808),B=r(647),q=r(226);const A=["textEl"];function L(V,b){if(1&V&&i._UZ(0,"i",3),2&V){const I=i.oxw();i.Q6J("nzType",I.nzIcon)}}function G(V,b){if(1&V){const I=i.EpF();i.TgZ(0,"img",4),i.NdJ("error",function(ne){return i.CHM(I),i.oxw().imgError(ne)}),i.qZA()}if(2&V){const I=i.oxw();i.Q6J("src",I.nzSrc,i.LSH),i.uIk("srcset",I.nzSrcSet,i.LSH)("alt",I.nzAlt)}}function K(V,b){if(1&V&&(i.TgZ(0,"span",5,6),i._uU(2),i.qZA()),2&V){const I=i.oxw();i.Q6J("ngStyle",I.textStyles),i.xp6(2),i.Oqu(I.nzText)}}let te=(()=>{class V{constructor(I,$,ne,X){this.nzConfigService=I,this.elementRef=$,this.cdr=ne,this.platform=X,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new i.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(I){this.nzError.emit(I),I.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;const I=this.textEl.nativeElement.offsetWidth,$=this.el.getBoundingClientRect().width,ne=2*this.nzGap<$?2*this.nzGap:8;this.textStyles={transform:`scale(${$-ne{this.calcStringSize()})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return V.\u0275fac=function(I){return new(I||V)(i.Y36(t.jY),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(F.t4))},V.\u0275cmp=i.Xpm({type:V,selectors:[["nz-avatar"]],viewQuery:function(I,$){if(1&I&&i.Gf(A,5),2&I){let ne;i.iGM(ne=i.CRH())&&($.textEl=ne.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(I,$){2&I&&(i.Udp("width",$.customSize)("height",$.customSize)("line-height",$.customSize)("font-size",$.hasIcon&&$.customSize?$.nzSize/2:null,"px"),i.ekj("ant-avatar-lg","large"===$.nzSize)("ant-avatar-sm","small"===$.nzSize)("ant-avatar-square","square"===$.nzShape)("ant-avatar-circle","circle"===$.nzShape)("ant-avatar-icon",$.nzIcon)("ant-avatar-image",$.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[i.TTD],decls:3,vars:3,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[3,"src","error",4,"ngIf"],["class","ant-avatar-string",3,"ngStyle",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string",3,"ngStyle"],["textEl",""]],template:function(I,$){1&I&&(i.YNc(0,L,1,1,"i",0),i.YNc(1,G,1,3,"img",1),i.YNc(2,K,3,2,"span",2)),2&I&&(i.Q6J("ngIf",$.nzIcon&&$.hasIcon),i.xp6(1),i.Q6J("ngIf",$.nzSrc&&$.hasSrc),i.xp6(1),i.Q6J("ngIf",$.nzText&&$.hasText))},directives:[Z.O5,B.Ls,Z.PC],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,t.oS)()],V.prototype,"nzShape",void 0),(0,o.gn)([(0,t.oS)()],V.prototype,"nzSize",void 0),(0,o.gn)([(0,t.oS)(),(0,D.Rn)()],V.prototype,"nzGap",void 0),V})(),oe=(()=>{class V{}return V.\u0275fac=function(I){return new(I||V)},V.\u0275mod=i.oAB({type:V}),V.\u0275inj=i.cJS({imports:[[q.vT,Z.ez,B.PV,F.ud]]}),V})()},4401:(De,re,r)=>{r.d(re,{x7:()=>ue,mS:()=>Y,F9:()=>W});var o=r(655),i=r(5e3),t=r(8929),D=r(7625),F=r(8076),Z=r(9439),B=r(1721),q=r(226),A=r(4832),L=r(9808),G=r(969),K=r(7144);function H(g,w){if(1&g&&(i.TgZ(0,"p",6),i._uU(1),i.qZA()),2&g){const O=w.$implicit,Q=i.oxw(2).index,ye=i.oxw(2);i.ekj("current",O===ye.countArray[Q]),i.xp6(1),i.hij(" ",O," ")}}function le(g,w){if(1&g&&(i.ynx(0),i.YNc(1,H,2,3,"p",5),i.BQk()),2&g){const O=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",O.countSingleArray)}}function te(g,w){if(1&g&&(i.TgZ(0,"span",3),i.YNc(1,le,2,1,"ng-container",4),i.qZA()),2&g){const O=w.index,Q=i.oxw(2);i.Udp("transform","translateY("+100*-Q.countArray[O]+"%)"),i.Q6J("nzNoAnimation",Q.noAnimation),i.xp6(1),i.Q6J("ngIf",!Q.nzDot&&void 0!==Q.countArray[O])}}function se(g,w){if(1&g&&(i.ynx(0),i.YNc(1,te,2,4,"span",2),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Q6J("ngForOf",O.maxNumberArray)}}function oe(g,w){if(1&g&&i._uU(0),2&g){const O=i.oxw();i.hij("",O.nzOverflowCount,"+")}}function V(g,w){if(1&g&&(i.ynx(0),i._uU(1),i.BQk()),2&g){const O=i.oxw(2);i.xp6(1),i.Oqu(O.nzText)}}function b(g,w){if(1&g&&(i.ynx(0),i._UZ(1,"span",2),i.TgZ(2,"span",3),i.YNc(3,V,2,1,"ng-container",1),i.qZA(),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Gre("ant-badge-status-dot ant-badge-status-",O.nzStatus||O.presetColor,""),i.Udp("background",!O.presetColor&&O.nzColor),i.Q6J("ngStyle",O.nzStyle),i.xp6(2),i.Q6J("nzStringTemplateOutlet",O.nzText)}}function I(g,w){if(1&g&&i._UZ(0,"nz-badge-sup",5),2&g){const O=i.oxw(2);i.Q6J("nzOffset",O.nzOffset)("nzTitle",O.nzTitle)("nzStyle",O.nzStyle)("nzDot",O.nzDot)("nzOverflowCount",O.nzOverflowCount)("disableAnimation",!!(O.nzStandalone||O.nzStatus||O.nzColor||null!=O.noAnimation&&O.noAnimation.nzNoAnimation))("nzCount",O.nzCount)("noAnimation",!(null==O.noAnimation||!O.noAnimation.nzNoAnimation))}}function $(g,w){if(1&g&&(i.ynx(0),i.YNc(1,I,1,8,"nz-badge-sup",4),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Q6J("ngIf",O.showSup)}}const ne=["*"];function X(g,w){if(1&g&&(i.ynx(0),i._uU(1),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Oqu(O.nzText)}}const de=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let fe=(()=>{class g{constructor(){this.nzStyle=null,this.nzDot=!1,this.nzOverflowCount=99,this.disableAnimation=!1,this.noAnimation=!1,this.maxNumberArray=[],this.countArray=[],this.count=0,this.countSingleArray=[0,1,2,3,4,5,6,7,8,9]}generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("")}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(O){const{nzOverflowCount:Q,nzCount:ye}=O;ye&&"number"==typeof ye.currentValue&&(this.count=Math.max(0,ye.currentValue),this.countArray=this.count.toString().split("").map(_e=>+_e)),Q&&this.generateMaxNumberArray()}}return g.\u0275fac=function(O){return new(O||g)},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:15,hostBindings:function(O,Q){2&O&&(i.uIk("title",null===Q.nzTitle?"":Q.nzTitle||Q.nzCount),i.d8E("@.disabled",Q.disableAnimation)("@zoomBadgeMotion",void 0),i.Akn(Q.nzStyle),i.Udp("right",Q.nzOffset&&Q.nzOffset[0]?-Q.nzOffset[0]:null,"px")("margin-top",Q.nzOffset&&Q.nzOffset[1]?Q.nzOffset[1]:null,"px"),i.ekj("ant-badge-count",!Q.nzDot)("ant-badge-dot",Q.nzDot)("ant-badge-multiple-words",Q.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation"},exportAs:["nzBadgeSup"],features:[i.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["overflowTemplate",""],["class","ant-scroll-number-only",3,"nzNoAnimation","transform",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[4,"ngIf"],["class","ant-scroll-number-only-unit",3,"current",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only-unit"]],template:function(O,Q){if(1&O&&(i.YNc(0,se,2,1,"ng-container",0),i.YNc(1,oe,1,1,"ng-template",null,1,i.W1O)),2&O){const ye=i.MAs(2);i.Q6J("ngIf",Q.count<=Q.nzOverflowCount)("ngIfElse",ye)}},directives:[L.O5,L.sg,A.P],encapsulation:2,data:{animation:[F.Ev]},changeDetection:0}),g})(),ue=(()=>{class g{constructor(O,Q,ye,_e,Se,Ee){this.nzConfigService=O,this.renderer=Q,this.cdr=ye,this.elementRef=_e,this.directionality=Se,this.noAnimation=Ee,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new t.xQ,this.nzShowZero=!1,this.nzShowDot=!0,this.nzStandalone=!1,this.nzDot=!1,this.nzOverflowCount=99,this.nzColor=void 0,this.nzStyle=null,this.nzText=null}ngOnInit(){var O;null===(O=this.directionality.change)||void 0===O||O.pipe((0,D.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(O){const{nzColor:Q,nzShowDot:ye,nzDot:_e,nzCount:Se,nzShowZero:Ee}=O;Q&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null),(ye||_e||Se||Ee)&&(this.showSup=this.nzShowDot&&this.nzDot||this.nzCount>0||this.nzCount<=0&&this.nzShowZero)}prepareBadgeForRtl(){this.isRtlLayout?this.renderer.addClass(this.elementRef.nativeElement,"ant-badge-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-badge-rtl")}get isRtlLayout(){return"rtl"===this.dir}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return g.\u0275fac=function(O){return new(O||g)(i.Y36(Z.jY),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(q.Is,8),i.Y36(A.P,9))},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(O,Q){2&O&&i.ekj("ant-badge-status",Q.nzStatus)("ant-badge-not-a-wrapper",!!(Q.nzStandalone||Q.nzStatus||Q.nzColor))},inputs:{nzShowZero:"nzShowZero",nzShowDot:"nzShowDot",nzStandalone:"nzStandalone",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset"},exportAs:["nzBadge"],features:[i.TTD],ngContentSelectors:ne,decls:3,vars:2,consts:[[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation",4,"ngIf"],[3,"nzOffset","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(O,Q){1&O&&(i.F$t(),i.YNc(0,b,4,7,"ng-container",0),i.Hsn(1),i.YNc(2,$,2,1,"ng-container",1)),2&O&&(i.Q6J("ngIf",Q.nzStatus||Q.nzColor),i.xp6(2),i.Q6J("nzStringTemplateOutlet",Q.nzCount))},directives:[fe,L.O5,L.PC,G.f],encapsulation:2,data:{animation:[F.Ev]},changeDetection:0}),(0,o.gn)([(0,B.yF)()],g.prototype,"nzShowZero",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzShowDot",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzStandalone",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzDot",void 0),(0,o.gn)([(0,Z.oS)()],g.prototype,"nzOverflowCount",void 0),(0,o.gn)([(0,Z.oS)()],g.prototype,"nzColor",void 0),g})(),W=(()=>{class g{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(O){const{nzColor:Q}=O;Q&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null)}}return g.\u0275fac=function(O){return new(O||g)},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],features:[i.TTD],ngContentSelectors:ne,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"]],template:function(O,Q){1&O&&(i.F$t(),i.Hsn(0),i.TgZ(1,"div",0),i.YNc(2,X,2,1,"ng-container",1),i._UZ(3,"div",2),i.qZA()),2&O&&(i.xp6(1),i.Tol(Q.presetColor&&"ant-ribbon-color-"+Q.presetColor),i.Udp("background-color",!Q.presetColor&&Q.nzColor),i.ekj("ant-ribbon-placement-end","end"===Q.nzPlacement)("ant-ribbon-placement-start","start"===Q.nzPlacement),i.xp6(1),i.Q6J("nzStringTemplateOutlet",Q.nzText),i.xp6(1),i.Udp("color",!Q.presetColor&&Q.nzColor))},directives:[G.f],encapsulation:2,changeDetection:0}),g})(),Y=(()=>{class g{}return g.\u0275fac=function(O){return new(O||g)},g.\u0275mod=i.oAB({type:g}),g.\u0275inj=i.cJS({imports:[[q.vT,L.ez,K.Q8,G.T,A.g]]}),g})()},7484:(De,re,r)=>{r.d(re,{bd:()=>Re,vh:()=>Pe,_i:()=>Se});var o=r(655),i=r(5e3),t=r(1721),D=r(8929),F=r(7625),Z=r(9439),B=r(226),q=r(9808),A=r(969);function L(N,ee){1&N&&i.Hsn(0)}const G=["*"];function K(N,ee){1&N&&(i.TgZ(0,"div",4),i._UZ(1,"div",5),i.qZA()),2&N&&i.Q6J("ngClass",ee.$implicit)}function H(N,ee){if(1&N&&(i.TgZ(0,"div",2),i.YNc(1,K,2,1,"div",3),i.qZA()),2&N){const _=ee.$implicit;i.xp6(1),i.Q6J("ngForOf",_)}}function le(N,ee){if(1&N&&(i.ynx(0),i._uU(1),i.BQk()),2&N){const _=i.oxw(3);i.xp6(1),i.Oqu(_.nzTitle)}}function te(N,ee){if(1&N&&(i.TgZ(0,"div",11),i.YNc(1,le,2,1,"ng-container",12),i.qZA()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function se(N,ee){if(1&N&&(i.ynx(0),i._uU(1),i.BQk()),2&N){const _=i.oxw(3);i.xp6(1),i.Oqu(_.nzExtra)}}function oe(N,ee){if(1&N&&(i.TgZ(0,"div",13),i.YNc(1,se,2,1,"ng-container",12),i.qZA()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",_.nzExtra)}}function V(N,ee){}function b(N,ee){if(1&N&&(i.ynx(0),i.YNc(1,V,0,0,"ng-template",14),i.BQk()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",_.listOfNzCardTabComponent.template)}}function I(N,ee){if(1&N&&(i.TgZ(0,"div",6),i.TgZ(1,"div",7),i.YNc(2,te,2,1,"div",8),i.YNc(3,oe,2,1,"div",9),i.qZA(),i.YNc(4,b,2,1,"ng-container",10),i.qZA()),2&N){const _=i.oxw();i.xp6(2),i.Q6J("ngIf",_.nzTitle),i.xp6(1),i.Q6J("ngIf",_.nzExtra),i.xp6(1),i.Q6J("ngIf",_.listOfNzCardTabComponent)}}function $(N,ee){}function ne(N,ee){if(1&N&&(i.TgZ(0,"div",15),i.YNc(1,$,0,0,"ng-template",14),i.qZA()),2&N){const _=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",_.nzCover)}}function X(N,ee){1&N&&(i.ynx(0),i.Hsn(1),i.BQk())}function de(N,ee){1&N&&i._UZ(0,"nz-card-loading")}function fe(N,ee){}function pe(N,ee){if(1&N&&(i.TgZ(0,"li"),i.TgZ(1,"span"),i.YNc(2,fe,0,0,"ng-template",14),i.qZA(),i.qZA()),2&N){const _=ee.$implicit,J=i.oxw(2);i.Udp("width",100/J.nzActions.length,"%"),i.xp6(2),i.Q6J("ngTemplateOutlet",_)}}function ue(N,ee){if(1&N&&(i.TgZ(0,"ul",16),i.YNc(1,pe,3,3,"li",17),i.qZA()),2&N){const _=i.oxw();i.xp6(1),i.Q6J("ngForOf",_.nzActions)}}let _e=(()=>{class N{constructor(){this.nzHoverable=!0}}return N.\u0275fac=function(_){return new(_||N)},N.\u0275dir=i.lG2({type:N,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(_,J){2&_&&i.ekj("ant-card-hoverable",J.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,o.gn)([(0,t.yF)()],N.prototype,"nzHoverable",void 0),N})(),Se=(()=>{class N{}return N.\u0275fac=function(_){return new(_||N)},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card-tab"]],viewQuery:function(_,J){if(1&_&&i.Gf(i.Rgc,7),2&_){let U;i.iGM(U=i.CRH())&&(J.template=U.first)}},exportAs:["nzCardTab"],ngContentSelectors:G,decls:1,vars:0,template:function(_,J){1&_&&(i.F$t(),i.YNc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),N})(),Ee=(()=>{class N{constructor(){this.listOfLoading=[["ant-col-22"],["ant-col-8","ant-col-15"],["ant-col-6","ant-col-18"],["ant-col-13","ant-col-9"],["ant-col-4","ant-col-3","ant-col-16"],["ant-col-8","ant-col-6","ant-col-8"]]}}return N.\u0275fac=function(_){return new(_||N)},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card-loading"]],hostAttrs:[1,"ant-card-loading-content"],exportAs:["nzCardLoading"],decls:2,vars:1,consts:[[1,"ant-card-loading-content"],["class","ant-row","style","margin-left: -4px; margin-right: -4px;",4,"ngFor","ngForOf"],[1,"ant-row",2,"margin-left","-4px","margin-right","-4px"],["style","padding-left: 4px; padding-right: 4px;",3,"ngClass",4,"ngFor","ngForOf"],[2,"padding-left","4px","padding-right","4px",3,"ngClass"],[1,"ant-card-loading-block"]],template:function(_,J){1&_&&(i.TgZ(0,"div",0),i.YNc(1,H,2,1,"div",1),i.qZA()),2&_&&(i.xp6(1),i.Q6J("ngForOf",J.listOfLoading))},directives:[q.sg,q.mk],encapsulation:2,changeDetection:0}),N})(),Re=(()=>{class N{constructor(_,J,U){this.nzConfigService=_,this.cdr=J,this.directionality=U,this._nzModuleName="card",this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new D.xQ,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,F.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var _;null===(_=this.directionality.change)||void 0===_||_.pipe((0,F.R)(this.destroy$)).subscribe(J=>{this.dir=J,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return N.\u0275fac=function(_){return new(_||N)(i.Y36(Z.jY),i.Y36(i.sBO),i.Y36(B.Is,8))},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card"]],contentQueries:function(_,J,U){if(1&_&&(i.Suo(U,Se,5),i.Suo(U,_e,4)),2&_){let ge;i.iGM(ge=i.CRH())&&(J.listOfNzCardTabComponent=ge.first),i.iGM(ge=i.CRH())&&(J.listOfNzCardGridDirective=ge)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(_,J){2&_&&i.ekj("ant-card-loading",J.nzLoading)("ant-card-bordered",!1===J.nzBorderless&&J.nzBordered)("ant-card-hoverable",J.nzHoverable)("ant-card-small","small"===J.nzSize)("ant-card-contain-grid",J.listOfNzCardGridDirective&&J.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===J.nzType)("ant-card-contain-tabs",!!J.listOfNzCardTabComponent)("ant-card-rtl","rtl"===J.dir)},inputs:{nzBordered:"nzBordered",nzBorderless:"nzBorderless",nzLoading:"nzLoading",nzHoverable:"nzHoverable",nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:G,decls:7,vars:6,consts:[["class","ant-card-head",4,"ngIf"],["class","ant-card-cover",4,"ngIf"],[1,"ant-card-body",3,"ngStyle"],[4,"ngIf","ngIfElse"],["loadingTemplate",""],["class","ant-card-actions",4,"ngIf"],[1,"ant-card-head"],[1,"ant-card-head-wrapper"],["class","ant-card-head-title",4,"ngIf"],["class","ant-card-extra",4,"ngIf"],[4,"ngIf"],[1,"ant-card-head-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[1,"ant-card-cover"],[1,"ant-card-actions"],[3,"width",4,"ngFor","ngForOf"]],template:function(_,J){if(1&_&&(i.F$t(),i.YNc(0,I,5,3,"div",0),i.YNc(1,ne,2,1,"div",1),i.TgZ(2,"div",2),i.YNc(3,X,2,0,"ng-container",3),i.YNc(4,de,1,0,"ng-template",null,4,i.W1O),i.qZA(),i.YNc(6,ue,2,1,"ul",5)),2&_){const U=i.MAs(5);i.Q6J("ngIf",J.nzTitle||J.nzExtra||J.listOfNzCardTabComponent),i.xp6(1),i.Q6J("ngIf",J.nzCover),i.xp6(1),i.Q6J("ngStyle",J.nzBodyStyle),i.xp6(1),i.Q6J("ngIf",!J.nzLoading)("ngIfElse",U),i.xp6(3),i.Q6J("ngIf",J.nzActions.length)}},directives:[Ee,q.O5,A.f,q.tP,q.PC,q.sg],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzBordered",void 0),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzBorderless",void 0),(0,o.gn)([(0,t.yF)()],N.prototype,"nzLoading",void 0),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzHoverable",void 0),(0,o.gn)([(0,Z.oS)()],N.prototype,"nzSize",void 0),N})(),Pe=(()=>{class N{}return N.\u0275fac=function(_){return new(_||N)},N.\u0275mod=i.oAB({type:N}),N.\u0275inj=i.cJS({imports:[[q.ez,A.T],B.vT]}),N})()},3677:(De,re,r)=>{r.d(re,{cm:()=>Se,b1:()=>Pe,wA:()=>Re,RR:()=>Ve});var o=r(655),i=r(1159),t=r(7429),D=r(5e3),F=r(8929),Z=r(591),B=r(6787),q=r(3753),A=r(8896),L=r(3426),G=r(7604),K=r(4850),H=r(7545),le=r(2198),te=r(7138),se=r(5778),oe=r(7625),V=r(9439),b=r(6950),I=r(1721),$=r(2845),ne=r(925),X=r(226),de=r(9808),fe=r(4182),pe=r(6042),ue=r(4832),W=r(969),Y=r(647),g=r(4219),w=r(8076);function O(_,J){if(1&_){const U=D.EpF();D.TgZ(0,"div",0),D.NdJ("@slideMotion.done",function(Ce){return D.CHM(U),D.oxw().onAnimationEvent(Ce)})("mouseenter",function(){return D.CHM(U),D.oxw().setMouseState(!0)})("mouseleave",function(){return D.CHM(U),D.oxw().setMouseState(!1)}),D.Hsn(1),D.qZA()}if(2&_){const U=D.oxw();D.ekj("ant-dropdown-rtl","rtl"===U.dir),D.Q6J("ngClass",U.nzOverlayClassName)("ngStyle",U.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)("nzNoAnimation",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)}}const Q=["*"],_e=[b.yW.bottomLeft,b.yW.bottomRight,b.yW.topRight,b.yW.topLeft];let Se=(()=>{class _{constructor(U,ge,Ce,Ae,Me,Ie){this.nzConfigService=U,this.elementRef=ge,this.overlay=Ce,this.renderer=Ae,this.viewContainerRef=Me,this.platform=Ie,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new F.xQ,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new Z.X(!1),this.nzTrigger$=new Z.X("hover"),this.overlayClose$=new F.xQ,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new D.vpe}setDropdownMenuValue(U,ge){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(U,ge)}ngAfterViewInit(){if(this.nzDropdownMenu){const U=this.elementRef.nativeElement,ge=(0,B.T)((0,q.R)(U,"mouseenter").pipe((0,G.h)(!0)),(0,q.R)(U,"mouseleave").pipe((0,G.h)(!1))),Ae=(0,B.T)(this.nzDropdownMenu.mouseState$,ge),Me=(0,q.R)(U,"click").pipe((0,K.U)(()=>!this.nzVisible)),Ie=this.nzTrigger$.pipe((0,H.w)(ve=>"hover"===ve?Ae:"click"===ve?Me:A.E)),Le=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,le.h)(()=>this.nzClickHide),(0,G.h)(!1)),Ne=(0,B.T)(Ie,Le,this.overlayClose$).pipe((0,le.h)(()=>!this.nzDisabled)),Be=(0,B.T)(this.inputVisible$,Ne);(0,L.aj)([Be,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,K.U)(([ve,Ue])=>ve||Ue),(0,te.e)(150),(0,se.x)(),(0,le.h)(()=>this.platform.isBrowser),(0,oe.R)(this.destroy$)).subscribe(ve=>{const xe=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:U).getBoundingClientRect().width;this.nzVisible!==ve&&this.nzVisibleChange.emit(ve),this.nzVisible=ve,ve?(this.overlayRef?this.overlayRef.getConfig().minWidth=xe:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:xe,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,B.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,le.h)($e=>!this.elementRef.nativeElement.contains($e.target))),this.overlayRef.keydownEvents().pipe((0,le.h)($e=>$e.keyCode===i.hY&&!(0,i.Vb)($e)))).pipe((0,oe.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([b.yW[this.nzPlacement],..._e]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new t.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,oe.R)(this.destroy$)).subscribe(ve=>{"void"===ve.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(U){const{nzVisible:ge,nzDisabled:Ce,nzOverlayClassName:Ae,nzOverlayStyle:Me,nzTrigger:Ie}=U;if(Ie&&this.nzTrigger$.next(this.nzTrigger),ge&&this.inputVisible$.next(this.nzVisible),Ce){const Le=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Le,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Le,"disabled")}Ae&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),Me&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(V.jY),D.Y36(D.SBq),D.Y36($.aV),D.Y36(D.Qsj),D.Y36(D.s_b),D.Y36(ne.t4))},_.\u0275dir=D.lG2({type:_,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[D.TTD]}),(0,o.gn)([(0,V.oS)(),(0,I.yF)()],_.prototype,"nzBackdrop",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzClickHide",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzDisabled",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzVisible",void 0),_})(),Ee=(()=>{class _{}return _.\u0275fac=function(U){return new(U||_)},_.\u0275mod=D.oAB({type:_}),_.\u0275inj=D.cJS({}),_})(),Re=(()=>{class _{constructor(U,ge,Ce){this.renderer=U,this.nzButtonGroupComponent=ge,this.elementRef=Ce}ngAfterViewInit(){const U=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&U&&this.renderer.addClass(U,"ant-dropdown-button")}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(D.Qsj),D.Y36(pe.fY,9),D.Y36(D.SBq))},_.\u0275dir=D.lG2({type:_,selectors:[["","nz-button","","nz-dropdown",""]]}),_})(),Ve=(()=>{class _{constructor(U,ge,Ce,Ae,Me,Ie,Le){this.cdr=U,this.elementRef=ge,this.renderer=Ce,this.viewContainerRef=Ae,this.nzMenuService=Me,this.directionality=Ie,this.noAnimation=Le,this.mouseState$=new Z.X(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new D.vpe,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new F.xQ}onAnimationEvent(U){this.animationStateChange$.emit(U)}setMouseState(U){this.mouseState$.next(U)}setValue(U,ge){this[U]=ge,this.cdr.markForCheck()}ngOnInit(){var U;null===(U=this.directionality.change)||void 0===U||U.pipe((0,oe.R)(this.destroy$)).subscribe(ge=>{this.dir=ge,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(D.sBO),D.Y36(D.SBq),D.Y36(D.Qsj),D.Y36(D.s_b),D.Y36(g.hl),D.Y36(X.Is,8),D.Y36(ue.P,9))},_.\u0275cmp=D.Xpm({type:_,selectors:[["nz-dropdown-menu"]],viewQuery:function(U,ge){if(1&U&&D.Gf(D.Rgc,7),2&U){let Ce;D.iGM(Ce=D.CRH())&&(ge.templateRef=Ce.first)}},exportAs:["nzDropdownMenu"],features:[D._Bn([g.hl,{provide:g.Cc,useValue:!0}])],ngContentSelectors:Q,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(U,ge){1&U&&(D.F$t(),D.YNc(0,O,2,7,"ng-template"))},directives:[de.mk,de.PC,ue.P],encapsulation:2,data:{animation:[w.mF]},changeDetection:0}),_})(),Pe=(()=>{class _{}return _.\u0275fac=function(U){return new(U||_)},_.\u0275mod=D.oAB({type:_}),_.\u0275inj=D.cJS({imports:[[X.vT,de.ez,$.U8,fe.u5,pe.sL,g.ip,Y.PV,ue.g,ne.ud,b.e4,Ee,W.T],g.ip]}),_})();new $.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new $.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new $.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new $.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},3762:(De,re,r)=>{r.d(re,{n_:()=>Qe,I2:()=>Fe,t4:()=>ke,AA:()=>je,yw:()=>ze,yi:()=>ie,IO:()=>m,Ph:()=>Xe});var o=r(5e3),i=r(6699),t=r(9808),D=r(969),F=r(655),Z=r(1721),B=r(8929),q=r(8514),A=r(1086),L=r(6787),G=r(591),K=r(2986),H=r(7545),le=r(7625),te=r(685),se=r(226),oe=r(7525),V=r(1894);const b=["*"];function I(f,E){if(1&f&&o._UZ(0,"nz-avatar",3),2&f){const C=o.oxw();o.Q6J("nzSrc",C.nzSrc)}}function $(f,E){1&f&&o.Hsn(0,0,["*ngIf","!nzSrc"])}function ne(f,E){if(1&f&&o._UZ(0,"nz-list-item-meta-avatar",3),2&f){const C=o.oxw();o.Q6J("nzSrc",C.avatarStr)}}function X(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-avatar"),o.GkF(1,4),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",C.avatarTpl)}}function de(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzTitle)}}function fe(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-title"),o.YNc(1,de,2,1,"ng-container",6),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzTitle)}}function pe(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzDescription)}}function ue(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-description"),o.YNc(1,pe,2,1,"ng-container",6),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzDescription)}}function W(f,E){if(1&f&&(o.TgZ(0,"div",5),o.YNc(1,fe,2,1,"nz-list-item-meta-title",1),o.YNc(2,ue,2,1,"nz-list-item-meta-description",1),o.Hsn(3,1),o.Hsn(4,2),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngIf",C.nzTitle&&!C.titleComponent),o.xp6(1),o.Q6J("ngIf",C.nzDescription&&!C.descriptionComponent)}}const Y=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],g=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function w(f,E){1&f&&o.Hsn(0)}const O=["nz-list-item-actions",""];function Q(f,E){}function ye(f,E){1&f&&o._UZ(0,"em",3)}function _e(f,E){if(1&f&&(o.TgZ(0,"li"),o.YNc(1,Q,0,0,"ng-template",1),o.YNc(2,ye,1,0,"em",2),o.qZA()),2&f){const C=E.$implicit,R=E.last;o.xp6(1),o.Q6J("ngTemplateOutlet",C),o.xp6(1),o.Q6J("ngIf",!R)}}function Se(f,E){}const Ee=function(f,E){return{$implicit:f,index:E}};function Oe(f,E){if(1&f&&(o.ynx(0),o.YNc(1,Se,0,0,"ng-template",9),o.BQk()),2&f){const C=E.$implicit,R=E.index,ce=o.oxw(2);o.xp6(1),o.Q6J("ngTemplateOutlet",ce.nzRenderItem)("ngTemplateOutletContext",o.WLB(2,Ee,C,R))}}function Re(f,E){if(1&f&&(o.TgZ(0,"div",7),o.YNc(1,Oe,2,5,"ng-container",8),o.Hsn(2,4),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngForOf",C.nzDataSource)}}function Ve(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Oqu(C.nzHeader)}}function Pe(f,E){if(1&f&&(o.TgZ(0,"nz-list-header"),o.YNc(1,Ve,2,1,"ng-container",10),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzHeader)}}function N(f,E){1&f&&o._UZ(0,"div"),2&f&&o.Udp("min-height",53,"px")}function ee(f,E){}function _(f,E){if(1&f&&(o.TgZ(0,"div",13),o.YNc(1,ee,0,0,"ng-template",9),o.qZA()),2&f){const C=E.$implicit,R=E.index,ce=o.oxw(2);o.Q6J("nzSpan",ce.nzGrid.span||null)("nzXs",ce.nzGrid.xs||null)("nzSm",ce.nzGrid.sm||null)("nzMd",ce.nzGrid.md||null)("nzLg",ce.nzGrid.lg||null)("nzXl",ce.nzGrid.xl||null)("nzXXl",ce.nzGrid.xxl||null),o.xp6(1),o.Q6J("ngTemplateOutlet",ce.nzRenderItem)("ngTemplateOutletContext",o.WLB(9,Ee,C,R))}}function J(f,E){if(1&f&&(o.TgZ(0,"div",11),o.YNc(1,_,2,12,"div",12),o.qZA()),2&f){const C=o.oxw();o.Q6J("nzGutter",C.nzGrid.gutter||null),o.xp6(1),o.Q6J("ngForOf",C.nzDataSource)}}function U(f,E){if(1&f&&o._UZ(0,"nz-list-empty",14),2&f){const C=o.oxw();o.Q6J("nzNoResult",C.nzNoResult)}}function ge(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Oqu(C.nzFooter)}}function Ce(f,E){if(1&f&&(o.TgZ(0,"nz-list-footer"),o.YNc(1,ge,2,1,"ng-container",10),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzFooter)}}function Ae(f,E){}function Me(f,E){}function Ie(f,E){if(1&f&&(o.TgZ(0,"nz-list-pagination"),o.YNc(1,Me,0,0,"ng-template",6),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzPagination)}}const Le=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],Ne=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function Be(f,E){if(1&f&&o._UZ(0,"ul",6),2&f){const C=o.oxw(2);o.Q6J("nzActions",C.nzActions)}}function ve(f,E){if(1&f&&(o.YNc(0,Be,1,1,"ul",5),o.Hsn(1)),2&f){const C=o.oxw();o.Q6J("ngIf",C.nzActions&&C.nzActions.length>0)}}function Ue(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzContent)}}function xe(f,E){if(1&f&&(o.ynx(0),o.YNc(1,Ue,2,1,"ng-container",8),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzContent)}}function $e(f,E){if(1&f&&(o.Hsn(0,1),o.Hsn(1,2),o.YNc(2,xe,2,1,"ng-container",7)),2&f){const C=o.oxw();o.xp6(2),o.Q6J("ngIf",C.nzContent)}}function it(f,E){1&f&&o.Hsn(0,3)}function ot(f,E){}function tt(f,E){}function rt(f,E){}function h(f,E){}function st(f,E){if(1&f&&(o.YNc(0,ot,0,0,"ng-template",9),o.YNc(1,tt,0,0,"ng-template",9),o.YNc(2,rt,0,0,"ng-template",9),o.YNc(3,h,0,0,"ng-template",9)),2&f){const C=o.oxw(),R=o.MAs(3),ce=o.MAs(5),he=o.MAs(1);o.Q6J("ngTemplateOutlet",R),o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzExtra),o.xp6(1),o.Q6J("ngTemplateOutlet",ce),o.xp6(1),o.Q6J("ngTemplateOutlet",he)}}function at(f,E){}function ct(f,E){}function lt(f,E){}function Ge(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-extra"),o.YNc(1,lt,0,0,"ng-template",9),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzExtra)}}function pt(f,E){}function p(f,E){if(1&f&&(o.ynx(0),o.TgZ(1,"div",10),o.YNc(2,at,0,0,"ng-template",9),o.YNc(3,ct,0,0,"ng-template",9),o.qZA(),o.YNc(4,Ge,2,1,"nz-list-item-extra",7),o.YNc(5,pt,0,0,"ng-template",9),o.BQk()),2&f){const C=o.oxw(),R=o.MAs(3),ce=o.MAs(1),he=o.MAs(5);o.xp6(2),o.Q6J("ngTemplateOutlet",R),o.xp6(1),o.Q6J("ngTemplateOutlet",ce),o.xp6(1),o.Q6J("ngIf",C.nzExtra),o.xp6(1),o.Q6J("ngTemplateOutlet",he)}}const a=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],j=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];let m=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],ngContentSelectors:b,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"h4",0),o.Hsn(1),o.qZA())},encapsulation:2,changeDetection:0}),f})(),l=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],ngContentSelectors:b,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},encapsulation:2,changeDetection:0}),f})(),k=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],ngContentSelectors:b,decls:3,vars:2,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc",4,"ngIf"],[4,"ngIf"],[3,"nzSrc"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"div",0),o.YNc(1,I,1,1,"nz-avatar",1),o.YNc(2,$,1,0,"ng-content",2),o.qZA()),2&C&&(o.xp6(1),o.Q6J("ngIf",R.nzSrc),o.xp6(1),o.Q6J("ngIf",!R.nzSrc))},directives:[i.Dz,t.O5],encapsulation:2,changeDetection:0}),f})(),ie=(()=>{class f{constructor(C,R){this.elementRef=C,this.renderer=R,this.avatarStr="",this.renderer.addClass(C.nativeElement,"ant-list-item-meta")}set nzAvatar(C){C instanceof o.Rgc?(this.avatarStr="",this.avatarTpl=C):this.avatarStr=C}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.SBq),o.Y36(o.Qsj))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(C,R,ce){if(1&C&&(o.Suo(ce,l,5),o.Suo(ce,m,5)),2&C){let he;o.iGM(he=o.CRH())&&(R.descriptionComponent=he.first),o.iGM(he=o.CRH())&&(R.titleComponent=he.first)}},inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],ngContentSelectors:g,decls:4,vars:3,consts:[[3,"nzSrc",4,"ngIf"],[4,"ngIf"],["class","ant-list-item-meta-content",4,"ngIf"],[3,"nzSrc"],[3,"ngTemplateOutlet"],[1,"ant-list-item-meta-content"],[4,"nzStringTemplateOutlet"]],template:function(C,R){1&C&&(o.F$t(Y),o.YNc(0,ne,1,1,"nz-list-item-meta-avatar",0),o.YNc(1,X,2,1,"nz-list-item-meta-avatar",1),o.Hsn(2),o.YNc(3,W,5,2,"div",2)),2&C&&(o.Q6J("ngIf",R.avatarStr),o.xp6(1),o.Q6J("ngIf",R.avatarTpl),o.xp6(2),o.Q6J("ngIf",R.nzTitle||R.nzDescription||R.descriptionComponent||R.titleComponent))},directives:[k,m,l,t.O5,t.tP,D.f],encapsulation:2,changeDetection:0}),f})(),ze=(()=>{class f{constructor(){}}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),Ze=(()=>{class f{constructor(){}}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-action"]],viewQuery:function(C,R){if(1&C&&o.Gf(o.Rgc,5),2&C){let ce;o.iGM(ce=o.CRH())&&(R.templateRef=ce.first)}},exportAs:["nzListItemAction"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.YNc(0,w,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),f})(),Te=(()=>{class f{constructor(C,R){this.ngZone=C,this.cdr=R,this.nzActions=[],this.actions=[],this.destroy$=new B.xQ,this.inputActionChanges$=new B.xQ,this.contentChildrenChanges$=(0,q.P)(()=>this.nzListItemActions?(0,A.of)(null):this.ngZone.onStable.asObservable().pipe((0,K.q)(1),(0,H.w)(()=>this.contentChildrenChanges$))),(0,L.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,le.R)(this.destroy$)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(ce=>ce.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.R0b),o.Y36(o.sBO))},f.\u0275cmp=o.Xpm({type:f,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(C,R,ce){if(1&C&&o.Suo(ce,Ze,4),2&C){let he;o.iGM(he=o.CRH())&&(R.nzListItemActions=he)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[o.TTD],attrs:O,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(C,R){1&C&&o.YNc(0,_e,3,2,"li",0),2&C&&o.Q6J("ngForOf",R.actions)},directives:[t.sg,t.tP,t.O5],encapsulation:2,changeDetection:0}),f})(),Fe=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(C,R){1&C&&o._UZ(0,"nz-embed-empty",0),2&C&&o.Q6J("nzComponentName","list")("specificContent",R.nzNoResult)},directives:[te.gB],encapsulation:2,changeDetection:0}),f})(),ke=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),Ye=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),Je=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),He=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275dir=o.lG2({type:f,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),f})(),Qe=(()=>{class f{constructor(C){this.directionality=C,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new G.X(this.nzItemLayout),this.destroy$=new B.xQ}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var C;this.dir=this.directionality.value,null===(C=this.directionality.change)||void 0===C||C.pipe((0,le.R)(this.destroy$)).subscribe(R=>{this.dir=R})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(C){C.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(se.Is,8))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(C,R,ce){if(1&C&&(o.Suo(ce,Ye,5),o.Suo(ce,Je,5),o.Suo(ce,He,5)),2&C){let he;o.iGM(he=o.CRH())&&(R.nzListFooterComponent=he.first),o.iGM(he=o.CRH())&&(R.nzListPaginationComponent=he.first),o.iGM(he=o.CRH())&&(R.nzListLoadMoreDirective=he.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(C,R){2&C&&o.ekj("ant-list-rtl","rtl"===R.dir)("ant-list-vertical","vertical"===R.nzItemLayout)("ant-list-lg","large"===R.nzSize)("ant-list-sm","small"===R.nzSize)("ant-list-split",R.nzSplit)("ant-list-bordered",R.nzBordered)("ant-list-loading",R.nzLoading)("ant-list-something-after-last-item",R.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:"nzBordered",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:"nzSplit",nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[o.TTD],ngContentSelectors:Ne,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(C,R){if(1&C&&(o.F$t(Le),o.YNc(0,Re,3,1,"ng-template",null,0,o.W1O),o.YNc(2,Pe,2,1,"nz-list-header",1),o.Hsn(3),o.TgZ(4,"nz-spin",2),o.ynx(5),o.YNc(6,N,1,2,"div",3),o.YNc(7,J,2,2,"div",4),o.YNc(8,U,1,1,"nz-list-empty",5),o.BQk(),o.qZA(),o.YNc(9,Ce,2,1,"nz-list-footer",1),o.Hsn(10,1),o.YNc(11,Ae,0,0,"ng-template",6),o.Hsn(12,2),o.YNc(13,Ie,2,1,"nz-list-pagination",1),o.Hsn(14,3)),2&C){const ce=o.MAs(1);o.xp6(2),o.Q6J("ngIf",R.nzHeader),o.xp6(2),o.Q6J("nzSpinning",R.nzLoading),o.xp6(2),o.Q6J("ngIf",R.nzLoading&&R.nzDataSource&&0===R.nzDataSource.length),o.xp6(1),o.Q6J("ngIf",R.nzGrid&&R.nzDataSource)("ngIfElse",ce),o.xp6(1),o.Q6J("ngIf",!R.nzLoading&&R.nzDataSource&&0===R.nzDataSource.length),o.xp6(1),o.Q6J("ngIf",R.nzFooter),o.xp6(2),o.Q6J("ngTemplateOutlet",R.nzLoadMore),o.xp6(2),o.Q6J("ngIf",R.nzPagination)}},directives:[ke,oe.W,Fe,Ye,Je,t.sg,t.tP,t.O5,D.f,V.SK,V.t3],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzBordered",void 0),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzLoading",void 0),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzSplit",void 0),f})(),je=(()=>{class f{constructor(C,R,ce,he){this.parentComp=ce,this.cdr=he,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,R.addClass(C.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(C=>{this.itemLayout=C,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(Qe),o.Y36(o.sBO))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(C,R,ce){if(1&C&&o.Suo(ce,ze,5),2&C){let he;o.iGM(he=o.CRH())&&(R.listItemExtraDirective=he.first)}},hostVars:2,hostBindings:function(C,R){2&C&&o.ekj("ant-list-item-no-flex",R.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:j,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(C,R){if(1&C&&(o.F$t(a),o.YNc(0,ve,2,1,"ng-template",null,0,o.W1O),o.YNc(2,$e,3,1,"ng-template",null,1,o.W1O),o.YNc(4,it,1,0,"ng-template",null,2,o.W1O),o.YNc(6,st,4,4,"ng-template",null,3,o.W1O),o.YNc(8,p,6,4,"ng-container",4)),2&C){const ce=o.MAs(7);o.xp6(8),o.Q6J("ngIf",R.isVerticalAndExtra)("ngIfElse",ce)}},directives:[Te,ze,t.O5,D.f,t.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzNoFlex",void 0),f})(),Xe=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275mod=o.oAB({type:f}),f.\u0275inj=o.cJS({imports:[[se.vT,t.ez,oe.j,V.Jb,i.Rt,D.T,te.Xo]]}),f})()},4219:(De,re,r)=>{r.d(re,{hl:()=>ve,Cc:()=>Ne,wO:()=>ct,YV:()=>pt,uA:()=>Ge,r9:()=>xe,ip:()=>p});var o=r(655),i=r(5e3),t=r(8929),D=r(591),F=r(6787),Z=r(3426),B=r(4850),q=r(1709),A=r(2198),L=r(7604),G=r(7138),K=r(5778),H=r(7625),le=r(1059),te=r(7545),se=r(1721),oe=r(325),V=r(226),b=r(2845),I=r(6950),$=r(925),ne=r(4832),X=r(9808),de=r(647),fe=r(969),pe=r(8076);const ue=["nz-submenu-title",""];function W(a,j){if(1&a&&i._UZ(0,"i",4),2&a){const m=i.oxw();i.Q6J("nzType",m.nzIcon)}}function Y(a,j){if(1&a&&(i.ynx(0),i.TgZ(1,"span"),i._uU(2),i.qZA(),i.BQk()),2&a){const m=i.oxw();i.xp6(2),i.Oqu(m.nzTitle)}}function g(a,j){1&a&&i._UZ(0,"i",8)}function w(a,j){1&a&&i._UZ(0,"i",9)}function O(a,j){if(1&a&&(i.TgZ(0,"span",5),i.YNc(1,g,1,0,"i",6),i.YNc(2,w,1,0,"i",7),i.qZA()),2&a){const m=i.oxw();i.Q6J("ngSwitch",m.dir),i.xp6(1),i.Q6J("ngSwitchCase","rtl")}}function Q(a,j){1&a&&i._UZ(0,"i",10)}const ye=["*"],_e=["nz-submenu-inline-child",""];function Se(a,j){}const Ee=["nz-submenu-none-inline-child",""];function Oe(a,j){}const Re=["nz-submenu",""];function Ve(a,j){1&a&&i.Hsn(0,0,["*ngIf","!nzTitle"])}function Pe(a,j){if(1&a&&i._UZ(0,"div",6),2&a){const m=i.oxw(),l=i.MAs(7);i.Q6J("mode",m.mode)("nzOpen",m.nzOpen)("@.disabled",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("nzNoAnimation",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("menuClass",m.nzMenuClassName)("templateOutlet",l)}}function N(a,j){if(1&a){const m=i.EpF();i.TgZ(0,"div",8),i.NdJ("subMenuMouseState",function(k){return i.CHM(m),i.oxw(2).setMouseEnterState(k)}),i.qZA()}if(2&a){const m=i.oxw(2),l=i.MAs(7);i.Q6J("theme",m.theme)("mode",m.mode)("nzOpen",m.nzOpen)("position",m.position)("nzDisabled",m.nzDisabled)("isMenuInsideDropDown",m.isMenuInsideDropDown)("templateOutlet",l)("menuClass",m.nzMenuClassName)("@.disabled",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("nzNoAnimation",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)}}function ee(a,j){if(1&a){const m=i.EpF();i.YNc(0,N,1,10,"ng-template",7),i.NdJ("positionChange",function(k){return i.CHM(m),i.oxw().onPositionChange(k)})}if(2&a){const m=i.oxw(),l=i.MAs(1);i.Q6J("cdkConnectedOverlayPositions",m.overlayPositions)("cdkConnectedOverlayOrigin",l)("cdkConnectedOverlayWidth",m.triggerWidth)("cdkConnectedOverlayOpen",m.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function _(a,j){1&a&&i.Hsn(0,1)}const J=[[["","title",""]],"*"],U=["[title]","*"],ge=["titleElement"],Ce=["nz-menu-group",""];function Ae(a,j){if(1&a&&(i.ynx(0),i._uU(1),i.BQk()),2&a){const m=i.oxw();i.xp6(1),i.Oqu(m.nzTitle)}}function Me(a,j){1&a&&i.Hsn(0,1,["*ngIf","!nzTitle"])}const Ie=["*",[["","title",""]]],Le=["*","[title]"],Ne=new i.OlP("NzIsInDropDownMenuToken"),Be=new i.OlP("NzMenuServiceLocalToken");let ve=(()=>{class a{constructor(){this.descendantMenuItemClick$=new t.xQ,this.childMenuItemClick$=new t.xQ,this.theme$=new D.X("light"),this.mode$=new D.X("vertical"),this.inlineIndent$=new D.X(24),this.isChildSubMenuOpen$=new D.X(!1)}onDescendantMenuItemClick(m){this.descendantMenuItemClick$.next(m)}onChildMenuItemClick(m){this.childMenuItemClick$.next(m)}setMode(m){this.mode$.next(m)}setTheme(m){this.theme$.next(m)}setInlineIndent(m){this.inlineIndent$.next(m)}}return a.\u0275fac=function(m){return new(m||a)},a.\u0275prov=i.Yz7({token:a,factory:a.\u0275fac}),a})(),Ue=(()=>{class a{constructor(m,l,k){this.nzHostSubmenuService=m,this.nzMenuService=l,this.isMenuInsideDropDown=k,this.mode$=this.nzMenuService.mode$.pipe((0,B.U)(Te=>"inline"===Te?"inline":"vertical"===Te||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new D.X(!1),this.isChildSubMenuOpen$=new D.X(!1),this.isMouseEnterTitleOrOverlay$=new t.xQ,this.childMenuItemClick$=new t.xQ,this.destroy$=new t.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const ie=this.childMenuItemClick$.pipe((0,q.zg)(()=>this.mode$),(0,A.h)(Te=>"inline"!==Te||this.isMenuInsideDropDown),(0,L.h)(!1)),ze=(0,F.T)(this.isMouseEnterTitleOrOverlay$,ie);(0,Z.aj)([this.isChildSubMenuOpen$,ze]).pipe((0,B.U)(([Te,Fe])=>Te||Fe),(0,G.e)(150),(0,K.x)(),(0,H.R)(this.destroy$)).pipe((0,K.x)()).subscribe(Te=>{this.setOpenStateWithoutDebounce(Te),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(Te):this.nzMenuService.isChildSubMenuOpen$.next(Te)})}onChildMenuItemClick(m){this.childMenuItemClick$.next(m)}setOpenStateWithoutDebounce(m){this.isCurrentSubMenuOpen$.next(m)}setMouseEnterTitleOrOverlayState(m){this.isMouseEnterTitleOrOverlay$.next(m)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.LFG(a,12),i.LFG(ve),i.LFG(Ne))},a.\u0275prov=i.Yz7({token:a,factory:a.\u0275fac}),a})(),xe=(()=>{class a{constructor(m,l,k,ie,ze,Ze,Te,Fe){this.nzMenuService=m,this.cdr=l,this.nzSubmenuService=k,this.isMenuInsideDropDown=ie,this.directionality=ze,this.routerLink=Ze,this.routerLinkWithHref=Te,this.router=Fe,this.destroy$=new t.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new t.xQ,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,Fe&&this.router.events.pipe((0,H.R)(this.destroy$),(0,A.h)(ke=>ke instanceof oe.m2)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(m){this.nzDisabled?(m.preventDefault(),m.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(m){this.nzSelected=m,this.selected$.next(m)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const m=this.hasActiveLinks();this.nzSelected!==m&&(this.nzSelected=m,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const m=this.isLinkActive(this.router);return this.routerLink&&m(this.routerLink)||this.routerLinkWithHref&&m(this.routerLinkWithHref)||this.listOfRouterLink.some(m)||this.listOfRouterLinkWithHref.some(m)}isLinkActive(m){return l=>m.isActive(l.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}ngOnInit(){var m;(0,Z.aj)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.inlinePaddingLeft="inline"===l?this.level*k:null}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,H.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,H.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(m){m.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(i.sBO),i.Y36(Ue,8),i.Y36(Ne),i.Y36(V.Is,8),i.Y36(oe.rH,8),i.Y36(oe.yS,8),i.Y36(oe.F0,8))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu-item",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,oe.rH,5),i.Suo(k,oe.yS,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfRouterLink=ie),i.iGM(ie=i.CRH())&&(l.listOfRouterLinkWithHref=ie)}},hostVars:20,hostBindings:function(m,l){1&m&&i.NdJ("click",function(ie){return l.clickMenuItem(ie)}),2&m&&(i.Udp("padding-left","rtl"===l.dir?null:l.nzPaddingLeft||l.inlinePaddingLeft,"px")("padding-right","rtl"===l.dir?l.nzPaddingLeft||l.inlinePaddingLeft:null,"px"),i.ekj("ant-dropdown-menu-item",l.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",l.isMenuInsideDropDown&&l.nzSelected)("ant-dropdown-menu-item-danger",l.isMenuInsideDropDown&&l.nzDanger)("ant-dropdown-menu-item-disabled",l.isMenuInsideDropDown&&l.nzDisabled)("ant-menu-item",!l.isMenuInsideDropDown)("ant-menu-item-selected",!l.isMenuInsideDropDown&&l.nzSelected)("ant-menu-item-danger",!l.isMenuInsideDropDown&&l.nzDanger)("ant-menu-item-disabled",!l.isMenuInsideDropDown&&l.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[i.TTD]}),(0,o.gn)([(0,se.yF)()],a.prototype,"nzDisabled",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzSelected",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzDanger",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzMatchRouterExact",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzMatchRouter",void 0),a})(),$e=(()=>{class a{constructor(m,l){this.cdr=m,this.directionality=l,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new i.vpe,this.subMenuMouseState=new i.vpe,this.dir="ltr",this.destroy$=new t.xQ}ngOnInit(){var m;this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(m){this.nzDisabled||this.subMenuMouseState.next(m)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.sBO),i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(m,l){1&m&&i.NdJ("click",function(){return l.clickTitle()})("mouseenter",function(){return l.setMouseState(!0)})("mouseleave",function(){return l.setMouseState(!1)}),2&m&&(i.Udp("padding-left","rtl"===l.dir?null:l.paddingLeft,"px")("padding-right","rtl"===l.dir?l.paddingLeft:null,"px"),i.ekj("ant-dropdown-menu-submenu-title",l.isMenuInsideDropDown)("ant-menu-submenu-title",!l.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:ue,ngContentSelectors:ye,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(m,l){if(1&m&&(i.F$t(),i.YNc(0,W,1,1,"i",0),i.YNc(1,Y,3,1,"ng-container",1),i.Hsn(2),i.YNc(3,O,3,2,"span",2),i.YNc(4,Q,1,0,"ng-template",null,3,i.W1O)),2&m){const k=i.MAs(5);i.Q6J("ngIf",l.nzIcon),i.xp6(1),i.Q6J("nzStringTemplateOutlet",l.nzTitle),i.xp6(2),i.Q6J("ngIf",l.isMenuInsideDropDown)("ngIfElse",k)}},directives:[X.O5,de.Ls,fe.f,X.RF,X.n9,X.ED],encapsulation:2,changeDetection:0}),a})(),it=(()=>{class a{constructor(m,l,k){this.elementRef=m,this.renderer=l,this.directionality=k,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new t.xQ}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var m;this.calcMotionState(),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngOnChanges(m){const{mode:l,nzOpen:k,menuClass:ie}=m;(l||k)&&this.calcMotionState(),ie&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(ze=>!!ze).forEach(ze=>{this.renderer.removeClass(this.elementRef.nativeElement,ze)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(ze=>!!ze).forEach(ze=>{this.renderer.addClass(this.elementRef.nativeElement,ze)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(m,l){2&m&&(i.d8E("@collapseMotion",l.expandState),i.ekj("ant-menu-rtl","rtl"===l.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[i.TTD],attrs:_e,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(m,l){1&m&&i.YNc(0,Se,0,0,"ng-template",0),2&m&&i.Q6J("ngTemplateOutlet",l.templateOutlet)},directives:[X.tP],encapsulation:2,data:{animation:[pe.J_]},changeDetection:0}),a})(),ot=(()=>{class a{constructor(m){this.directionality=m,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new i.vpe,this.expandState="collapsed",this.dir="ltr",this.destroy$=new t.xQ}setMouseState(m){this.nzDisabled||this.subMenuMouseState.next(m)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var m;this.calcMotionState(),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngOnChanges(m){const{mode:l,nzOpen:k}=m;(l||k)&&this.calcMotionState()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(m,l){1&m&&i.NdJ("mouseenter",function(){return l.setMouseState(!0)})("mouseleave",function(){return l.setMouseState(!1)}),2&m&&(i.d8E("@slideMotion",l.expandState)("@zoomBigMotion",l.expandState),i.ekj("ant-menu-light","light"===l.theme)("ant-menu-dark","dark"===l.theme)("ant-menu-submenu-placement-bottom","horizontal"===l.mode)("ant-menu-submenu-placement-right","vertical"===l.mode&&"right"===l.position)("ant-menu-submenu-placement-left","vertical"===l.mode&&"left"===l.position)("ant-menu-submenu-rtl","rtl"===l.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[i.TTD],attrs:Ee,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(m,l){1&m&&(i.TgZ(0,"div",0),i.YNc(1,Oe,0,0,"ng-template",1),i.qZA()),2&m&&(i.ekj("ant-dropdown-menu",l.isMenuInsideDropDown)("ant-menu",!l.isMenuInsideDropDown)("ant-dropdown-menu-vertical",l.isMenuInsideDropDown)("ant-menu-vertical",!l.isMenuInsideDropDown)("ant-dropdown-menu-sub",l.isMenuInsideDropDown)("ant-menu-sub",!l.isMenuInsideDropDown)("ant-menu-rtl","rtl"===l.dir),i.Q6J("ngClass",l.menuClass),i.xp6(1),i.Q6J("ngTemplateOutlet",l.templateOutlet))},directives:[X.mk,X.tP],encapsulation:2,data:{animation:[pe.$C,pe.mF]},changeDetection:0}),a})();const tt=[I.yW.rightTop,I.yW.right,I.yW.rightBottom,I.yW.leftTop,I.yW.left,I.yW.leftBottom],rt=[I.yW.bottomLeft];let h=(()=>{class a{constructor(m,l,k,ie,ze,Ze,Te){this.nzMenuService=m,this.cdr=l,this.nzSubmenuService=k,this.platform=ie,this.isMenuInsideDropDown=ze,this.directionality=Ze,this.noAnimation=Te,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new i.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new t.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=tt,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(m){this.nzSubmenuService.setOpenStateWithoutDebounce(m)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(m){this.isActive=m,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(m)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(m){const l=(0,I.d_)(m);"rightTop"===l||"rightBottom"===l||"right"===l?this.position="right":("leftTop"===l||"leftBottom"===l||"left"===l)&&(this.position="left")}ngOnInit(){var m;this.nzMenuService.theme$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.theme=l,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.mode=l,"horizontal"===l?this.overlayPositions=rt:"vertical"===l&&(this.overlayPositions=tt),this.cdr.markForCheck()}),(0,Z.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.inlinePaddingLeft="inline"===l?this.level*k:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.isActive=l,l!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=l,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const m=this.listOfNzMenuItemDirective,l=m.changes,k=(0,F.T)(l,...m.map(ie=>ie.selected$));l.pipe((0,le.O)(m),(0,te.w)(()=>k),(0,le.O)(!0),(0,B.U)(()=>m.some(ie=>ie.nzSelected)),(0,H.R)(this.destroy$)).subscribe(ie=>{this.isSelected=ie,this.cdr.markForCheck()})}ngOnChanges(m){const{nzOpen:l}=m;l&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(i.sBO),i.Y36(Ue),i.Y36($.t4),i.Y36(Ne),i.Y36(V.Is,8),i.Y36(ne.P,9))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,a,5),i.Suo(k,xe,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfNzSubMenuComponent=ie),i.iGM(ie=i.CRH())&&(l.listOfNzMenuItemDirective=ie)}},viewQuery:function(m,l){if(1&m&&i.Gf(b.xu,7,i.SBq),2&m){let k;i.iGM(k=i.CRH())&&(l.cdkOverlayOrigin=k.first)}},hostVars:34,hostBindings:function(m,l){2&m&&i.ekj("ant-dropdown-menu-submenu",l.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",l.isMenuInsideDropDown&&l.nzDisabled)("ant-dropdown-menu-submenu-open",l.isMenuInsideDropDown&&l.nzOpen)("ant-dropdown-menu-submenu-selected",l.isMenuInsideDropDown&&l.isSelected)("ant-dropdown-menu-submenu-vertical",l.isMenuInsideDropDown&&"vertical"===l.mode)("ant-dropdown-menu-submenu-horizontal",l.isMenuInsideDropDown&&"horizontal"===l.mode)("ant-dropdown-menu-submenu-inline",l.isMenuInsideDropDown&&"inline"===l.mode)("ant-dropdown-menu-submenu-active",l.isMenuInsideDropDown&&l.isActive)("ant-menu-submenu",!l.isMenuInsideDropDown)("ant-menu-submenu-disabled",!l.isMenuInsideDropDown&&l.nzDisabled)("ant-menu-submenu-open",!l.isMenuInsideDropDown&&l.nzOpen)("ant-menu-submenu-selected",!l.isMenuInsideDropDown&&l.isSelected)("ant-menu-submenu-vertical",!l.isMenuInsideDropDown&&"vertical"===l.mode)("ant-menu-submenu-horizontal",!l.isMenuInsideDropDown&&"horizontal"===l.mode)("ant-menu-submenu-inline",!l.isMenuInsideDropDown&&"inline"===l.mode)("ant-menu-submenu-active",!l.isMenuInsideDropDown&&l.isActive)("ant-menu-submenu-rtl","rtl"===l.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[i._Bn([Ue]),i.TTD],attrs:Re,ngContentSelectors:U,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(m,l){if(1&m&&(i.F$t(J),i.TgZ(0,"div",0,1),i.NdJ("subMenuMouseState",function(ie){return l.setMouseEnterState(ie)})("toggleSubMenu",function(){return l.toggleSubMenu()}),i.YNc(2,Ve,1,0,"ng-content",2),i.qZA(),i.YNc(3,Pe,1,6,"div",3),i.YNc(4,ee,1,5,"ng-template",null,4,i.W1O),i.YNc(6,_,1,0,"ng-template",null,5,i.W1O)),2&m){const k=i.MAs(5);i.Q6J("nzIcon",l.nzIcon)("nzTitle",l.nzTitle)("mode",l.mode)("nzDisabled",l.nzDisabled)("isMenuInsideDropDown",l.isMenuInsideDropDown)("paddingLeft",l.nzPaddingLeft||l.inlinePaddingLeft),i.xp6(2),i.Q6J("ngIf",!l.nzTitle),i.xp6(1),i.Q6J("ngIf","inline"===l.mode)("ngIfElse",k)}},directives:[$e,it,ot,b.xu,X.O5,ne.P,b.pI],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,se.yF)()],a.prototype,"nzOpen",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzDisabled",void 0),a})();function st(a,j){return a||j}function at(a){return a||!1}let ct=(()=>{class a{constructor(m,l,k,ie){this.nzMenuService=m,this.isMenuInsideDropDown=l,this.cdr=k,this.directionality=ie,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new i.vpe,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new D.X(this.nzInlineCollapsed),this.mode$=new D.X(this.nzMode),this.destroy$=new t.xQ,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(m){this.nzInlineCollapsed=m,this.inlineCollapsed$.next(m)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(m=>m.nzOpen),this.listOfNzSubMenuComponent.forEach(m=>m.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(m=>m.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var m;(0,Z.aj)([this.inlineCollapsed$,this.mode$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.actualMode=l?"vertical":k,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.nzClick.emit(l),this.nzSelectable&&!l.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(k=>k.setSelectedState(k===l))}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(m){const{nzInlineCollapsed:l,nzInlineIndent:k,nzTheme:ie,nzMode:ze}=m;l&&this.inlineCollapsed$.next(this.nzInlineCollapsed),k&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),ie&&this.nzMenuService.setTheme(this.nzTheme),ze&&(this.mode$.next(this.nzMode),!m.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(Ze=>Ze.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(Ne),i.Y36(i.sBO),i.Y36(V.Is,8))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,xe,5),i.Suo(k,h,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfNzMenuItemDirective=ie),i.iGM(ie=i.CRH())&&(l.listOfNzSubMenuComponent=ie)}},hostVars:34,hostBindings:function(m,l){2&m&&i.ekj("ant-dropdown-menu",l.isMenuInsideDropDown)("ant-dropdown-menu-root",l.isMenuInsideDropDown)("ant-dropdown-menu-light",l.isMenuInsideDropDown&&"light"===l.nzTheme)("ant-dropdown-menu-dark",l.isMenuInsideDropDown&&"dark"===l.nzTheme)("ant-dropdown-menu-vertical",l.isMenuInsideDropDown&&"vertical"===l.actualMode)("ant-dropdown-menu-horizontal",l.isMenuInsideDropDown&&"horizontal"===l.actualMode)("ant-dropdown-menu-inline",l.isMenuInsideDropDown&&"inline"===l.actualMode)("ant-dropdown-menu-inline-collapsed",l.isMenuInsideDropDown&&l.nzInlineCollapsed)("ant-menu",!l.isMenuInsideDropDown)("ant-menu-root",!l.isMenuInsideDropDown)("ant-menu-light",!l.isMenuInsideDropDown&&"light"===l.nzTheme)("ant-menu-dark",!l.isMenuInsideDropDown&&"dark"===l.nzTheme)("ant-menu-vertical",!l.isMenuInsideDropDown&&"vertical"===l.actualMode)("ant-menu-horizontal",!l.isMenuInsideDropDown&&"horizontal"===l.actualMode)("ant-menu-inline",!l.isMenuInsideDropDown&&"inline"===l.actualMode)("ant-menu-inline-collapsed",!l.isMenuInsideDropDown&&l.nzInlineCollapsed)("ant-menu-rtl","rtl"===l.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[i._Bn([{provide:Be,useClass:ve},{provide:ve,useFactory:st,deps:[[new i.tp0,new i.FiY,ve],Be]},{provide:Ne,useFactory:at,deps:[[new i.tp0,new i.FiY,Ne]]}]),i.TTD]}),(0,o.gn)([(0,se.yF)()],a.prototype,"nzInlineCollapsed",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzSelectable",void 0),a})();function lt(a){return a||!1}let Ge=(()=>{class a{constructor(m,l,k){this.elementRef=m,this.renderer=l,this.isMenuInsideDropDown=k,this.renderer.addClass(m.nativeElement,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group")}ngAfterViewInit(){const m=this.titleElement.nativeElement.nextElementSibling;m&&this.renderer.addClass(m,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list")}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(Ne))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-menu-group",""]],viewQuery:function(m,l){if(1&m&&i.Gf(ge,5),2&m){let k;i.iGM(k=i.CRH())&&(l.titleElement=k.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],features:[i._Bn([{provide:Ne,useFactory:lt,deps:[[new i.tp0,new i.FiY,Ne]]}])],attrs:Ce,ngContentSelectors:Le,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"],[4,"ngIf"]],template:function(m,l){1&m&&(i.F$t(Ie),i.TgZ(0,"div",null,0),i.YNc(2,Ae,2,1,"ng-container",1),i.YNc(3,Me,1,0,"ng-content",2),i.qZA(),i.Hsn(4)),2&m&&(i.ekj("ant-menu-item-group-title",!l.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",l.isMenuInsideDropDown),i.xp6(2),i.Q6J("nzStringTemplateOutlet",l.nzTitle),i.xp6(1),i.Q6J("ngIf",!l.nzTitle))},directives:[fe.f,X.O5],encapsulation:2,changeDetection:0}),a})(),pt=(()=>{class a{constructor(m,l){this.elementRef=m,this.renderer=l,this.renderer.addClass(m.nativeElement,"ant-dropdown-menu-item-divider")}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),a})(),p=(()=>{class a{}return a.\u0275fac=function(m){return new(m||a)},a.\u0275mod=i.oAB({type:a}),a.\u0275inj=i.cJS({imports:[[V.vT,X.ez,$.ud,b.U8,de.PV,ne.g,fe.T]]}),a})()},8144:(De,re,r)=>{r.d(re,{NU:()=>oe,$1:()=>le,zf:()=>V});var o=r(226),i=r(9808),t=r(5e3),D=r(655),F=r(8929),Z=r(7625),B=r(9439),q=r(1721);function A(b,I){}const L=function(b){return{$implicit:b}};function G(b,I){if(1&b&&(t.TgZ(0,"span",4),t.YNc(1,A,0,0,"ng-template",5),t.qZA()),2&b){const $=t.oxw(),ne=$.last,X=$.index,de=t.oxw();t.Udp("margin-bottom","vertical"===de.nzDirection?ne?null:de.spaceSize:null,"px")("margin-right","horizontal"===de.nzDirection?ne?null:de.spaceSize:null,"px"),t.xp6(1),t.Q6J("ngTemplateOutlet",de.nzSplit)("ngTemplateOutletContext",t.VKq(6,L,X))}}function K(b,I){if(1&b&&(t.TgZ(0,"div",1),t.GkF(1,2),t.qZA(),t.YNc(2,G,2,8,"span",3)),2&b){const $=I.$implicit,ne=I.last,X=t.oxw();t.Udp("margin-bottom","vertical"===X.nzDirection?ne?null:X.spaceSize:null,"px")("margin-right","horizontal"===X.nzDirection?ne?null:X.spaceSize:null,"px"),t.xp6(1),t.Q6J("ngTemplateOutlet",$),t.xp6(1),t.Q6J("ngIf",X.nzSplit&&!ne)}}const H=["*"];let le=(()=>{class b{constructor(){}}return b.\u0275fac=function($){return new($||b)},b.\u0275dir=t.lG2({type:b,selectors:[["","nzSpaceItem",""]]}),b})();const se={small:8,middle:16,large:24};let oe=(()=>{class b{constructor($,ne){this.nzConfigService=$,this.cdr=ne,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=se.small,this.destroy$=new F.xQ}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?se[this.nzSize]:this.nzSize)/(this.nzSplit?2:1),this.cdr.markForCheck()}ngOnChanges(){this.updateSpaceItems(),this.mergedAlign=void 0===this.nzAlign&&"horizontal"===this.nzDirection?"center":this.nzAlign}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.updateSpaceItems(),this.items.changes.pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}}return b.\u0275fac=function($){return new($||b)(t.Y36(B.jY),t.Y36(t.sBO))},b.\u0275cmp=t.Xpm({type:b,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function($,ne,X){if(1&$&&t.Suo(X,le,4,t.Rgc),2&$){let de;t.iGM(de=t.CRH())&&(ne.items=de)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function($,ne){2&$&&(t.Udp("flex-wrap",ne.nzWrap?"wrap":null),t.ekj("ant-space-horizontal","horizontal"===ne.nzDirection)("ant-space-vertical","vertical"===ne.nzDirection)("ant-space-align-start","start"===ne.mergedAlign)("ant-space-align-end","end"===ne.mergedAlign)("ant-space-align-center","center"===ne.mergedAlign)("ant-space-align-baseline","baseline"===ne.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:"nzWrap",nzSize:"nzSize"},exportAs:["NzSpace"],features:[t.TTD],ngContentSelectors:H,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],[1,"ant-space-item"],[3,"ngTemplateOutlet"],["class","ant-space-split",3,"margin-bottom","margin-right",4,"ngIf"],[1,"ant-space-split"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function($,ne){1&$&&(t.F$t(),t.Hsn(0),t.YNc(1,K,3,6,"ng-template",0)),2&$&&(t.xp6(1),t.Q6J("ngForOf",ne.items))},directives:[i.sg,i.tP,i.O5],encapsulation:2,changeDetection:0}),(0,D.gn)([(0,q.yF)()],b.prototype,"nzWrap",void 0),(0,D.gn)([(0,B.oS)()],b.prototype,"nzSize",void 0),b})(),V=(()=>{class b{}return b.\u0275fac=function($){return new($||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[[o.vT,i.ez]]}),b})()},7525:(De,re,r)=>{r.d(re,{W:()=>ue,j:()=>W});var o=r(655),i=r(5e3),t=r(8929),D=r(591),F=r(839),Z=r(8723),B=r(1177);class A{constructor(g){this.durationSelector=g}call(g,w){return w.subscribe(new L(g,this.durationSelector))}}class L extends B.Ds{constructor(g,w){super(g),this.durationSelector=w,this.hasValue=!1}_next(g){try{const w=this.durationSelector.call(this,g);w&&this._tryNext(g,w)}catch(w){this.destination.error(w)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(g,w){let O=this.durationSubscription;this.value=g,this.hasValue=!0,O&&(O.unsubscribe(),this.remove(O)),O=(0,B.ft)(w,new B.IY(this)),O&&!O.closed&&this.add(this.durationSubscription=O)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const g=this.value,w=this.durationSubscription;w&&(this.durationSubscription=void 0,w.unsubscribe(),this.remove(w)),this.value=void 0,this.hasValue=!1,super._next(g)}}}var G=r(1059),K=r(5778),H=r(7545),le=r(7625),te=r(9439),se=r(1721),oe=r(226),V=r(9808),b=r(7144);function I(Y,g){1&Y&&(i.TgZ(0,"span",3),i._UZ(1,"i",4),i._UZ(2,"i",4),i._UZ(3,"i",4),i._UZ(4,"i",4),i.qZA())}function $(Y,g){}function ne(Y,g){if(1&Y&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&Y){const w=i.oxw(2);i.xp6(1),i.Oqu(w.nzTip)}}function X(Y,g){if(1&Y&&(i.TgZ(0,"div"),i.TgZ(1,"div",5),i.YNc(2,$,0,0,"ng-template",6),i.YNc(3,ne,2,1,"div",7),i.qZA(),i.qZA()),2&Y){const w=i.oxw(),O=i.MAs(1);i.xp6(1),i.ekj("ant-spin-rtl","rtl"===w.dir)("ant-spin-spinning",w.isLoading)("ant-spin-lg","large"===w.nzSize)("ant-spin-sm","small"===w.nzSize)("ant-spin-show-text",w.nzTip),i.xp6(1),i.Q6J("ngTemplateOutlet",w.nzIndicator||O),i.xp6(1),i.Q6J("ngIf",w.nzTip)}}function de(Y,g){if(1&Y&&(i.TgZ(0,"div",9),i.Hsn(1),i.qZA()),2&Y){const w=i.oxw();i.ekj("ant-spin-blur",w.isLoading)}}const fe=["*"];let ue=(()=>{class Y{constructor(w,O,Q){this.nzConfigService=w,this.cdr=O,this.directionality=Q,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new t.xQ,this.spinning$=new D.X(this.nzSpinning),this.delay$=new F.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var w;this.delay$.pipe((0,G.O)(this.nzDelay),(0,K.x)(),(0,H.w)(Q=>0===Q?this.spinning$:this.spinning$.pipe(function q(Y){return g=>g.lift(new A(Y))}(ye=>(0,Z.H)(ye?Q:0)))),(0,le.R)(this.destroy$)).subscribe(Q=>{this.isLoading=Q,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,le.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(w=this.directionality.change)||void 0===w||w.pipe((0,le.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(w){const{nzSpinning:O,nzDelay:Q}=w;O&&this.spinning$.next(this.nzSpinning),Q&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Y.\u0275fac=function(w){return new(w||Y)(i.Y36(te.jY),i.Y36(i.sBO),i.Y36(oe.Is,8))},Y.\u0275cmp=i.Xpm({type:Y,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(w,O){2&w&&i.ekj("ant-spin-nested-loading",!O.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[i.TTD],ngContentSelectors:fe,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(w,O){1&w&&(i.F$t(),i.YNc(0,I,5,0,"ng-template",null,0,i.W1O),i.YNc(2,X,4,12,"div",1),i.YNc(3,de,2,2,"div",2)),2&w&&(i.xp6(2),i.Q6J("ngIf",O.isLoading),i.xp6(1),i.Q6J("ngIf",!O.nzSimple))},directives:[V.O5,V.tP],encapsulation:2}),(0,o.gn)([(0,te.oS)()],Y.prototype,"nzIndicator",void 0),(0,o.gn)([(0,se.Rn)()],Y.prototype,"nzDelay",void 0),(0,o.gn)([(0,se.yF)()],Y.prototype,"nzSimple",void 0),(0,o.gn)([(0,se.yF)()],Y.prototype,"nzSpinning",void 0),Y})(),W=(()=>{class Y{}return Y.\u0275fac=function(w){return new(w||Y)},Y.\u0275mod=i.oAB({type:Y}),Y.\u0275inj=i.cJS({imports:[[oe.vT,V.ez,b.Q8]]}),Y})()}}]); \ No newline at end of file diff --git a/server/public/4292.431ce70ec225de05.js b/server/public/4292.431ce70ec225de05.js deleted file mode 100644 index cef664914..000000000 --- a/server/public/4292.431ce70ec225de05.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4292],{3172:(b,y,n)=>{n.d(y,{T:()=>R});var e=n(9808),d=n(3610),t=n(6949),z=n(7345),E=n(8369),g=n(209),l=n(4867),m=n(8625),M=n(7484),L=n(1894),I=n(3309),j=n(7026),U=n(9401),Q=n(9779),Z=n(5e3);let J=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=Z.oAB({type:s}),s.\u0275inj=Z.cJS({imports:[[e.ez,t.WG,M.vh,L.Jb,I.U,z.W,E.W,g.i,g.i,l.Q,U.y,Q.s,m.$L.forChild({formatter:{useClass:j.x,provide:m.KP}})]]}),s})();var h=n(8481),S=n(647),p=n(9444),O=n(325);let R=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=Z.oAB({type:s}),s.\u0275inj=Z.cJS({imports:[[e.ez,p.s,O.Bz,d.$6,S.PV,J,h.X]]}),s})()},2011:(b,y,n)=>{n.d(y,{o:()=>R});var e=n(712),d=n(4850),t=n(5e3);function z(s,v){if(1&s&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",11),t.BQk()),2&s){const c=t.oxw().ngIf,T=t.oxw(3);t.xp6(1),t.Q6J("events",c)("tagDisplay",T.tagDisplay)}}function E(s,v){if(1&s){const c=t.EpF();t.TgZ(0,"div",13),t.TgZ(1,"button",14),t.NdJ("click",function(){t.CHM(c);const A=t.oxw().ngIf;return t.oxw(4).fetchMore(A.endCursor)}),t._uU(2,"Load More "),t.qZA(),t.qZA()}}function g(s,v){if(1&s&&(t.ynx(0),t.YNc(1,E,3,0,"div",12),t.BQk()),2&s){const c=v.ngIf;t.xp6(1),t.Q6J("ngIf",c.hasNextPage)}}function l(s,v){if(1&s&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",10),t.YNc(3,z,2,2,"ng-container",0),t.YNc(4,g,2,1,"ng-container",9),t.ALo(5,"ngrxPush"),t.qZA(),t.qZA(),t.BQk()),2&s){const c=v.ngIf,T=t.oxw(3),A=t.MAs(3);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",c.length)("ngIfElse",A),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,T.pageInfo$))}}function m(s,v){if(1&s&&(t.TgZ(0,"nz-card",8),t.YNc(1,l,6,6,"ng-container",9),t.ALo(2,"ngrxPush"),t.qZA()),2&s){const c=t.oxw(2);t.Q6J("nzTitle",c.showFilters?"Events":void 0),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,c.events$))}}function M(s,v){if(1&s){const c=t.EpF();t.TgZ(0,"span"),t._uU(1," Show Child Events "),t.TgZ(2,"nz-switch",16),t.NdJ("ngModelChange",function(A){return t.CHM(c),t.oxw(3).showChildren=A})("ngModelChange",function(){return t.CHM(c),t.oxw(3).onShowChildrenToggle()}),t.qZA(),t.qZA()}if(2&s){const c=t.oxw(3);t.xp6(2),t.Q6J("ngModel",c.showChildren)}}function L(s,v){1&s&&(t._uU(0),t.ALo(1,"eventVerbiage")),2&s&&t.hij(" ",t.xi3(1,1,v.$implicit.id,"action-filter")," ")}function I(s,v){if(1&s&&t._UZ(0,"nz-avatar",24),2&s){const c=t.oxw().$implicit;t.Q6J("nzSrc",c.profileImagePath)}}function j(s,v){if(1&s&&(t._UZ(0,"nz-avatar",25),t.ALo(1,"uppercase")),2&s){const c=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,c.displayName.charAt(0)))}}function U(s,v){if(1&s&&(t.YNc(0,I,1,1,"nz-avatar",22),t.YNc(1,j,2,3,"ng-template",null,23,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&s){const c=v.$implicit,T=t.MAs(2);t.Q6J("ngIf",c.profileImagePath)("ngIfElse",T),t.xp6(4),t.Oqu(c.displayName)}}function Q(s,v){if(1&s){const c=t.EpF();t.TgZ(0,"cvc-participant-list",21),t.NdJ("participantSelectedEvent",function(A){return t.CHM(c),t.oxw(4).onOriginatingUserSelected(A)}),t.ALo(1,"ngrxPush"),t.YNc(2,U,5,3,"ng-template",null,18,t.W1O),t.qZA()}if(2&s){const c=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,c.participants$))}}function Z(s,v){if(1&s&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&s){const c=v.$implicit;t.xp6(1),t.hij(" ",c.name," ")}}function J(s,v){if(1&s){const c=t.EpF();t.TgZ(0,"cvc-participant-list",26),t.NdJ("participantSelectedEvent",function(A){return t.CHM(c),t.oxw(4).onOrganizationSelected(A)}),t.ALo(1,"ngrxPush"),t.YNc(2,Z,2,1,"ng-template",null,18,t.W1O),t.qZA()}if(2&s){const c=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,c.organizations$))}}function h(s,v){if(1&s){const c=t.EpF();t.ynx(0),t.TgZ(1,"cvc-participant-list",17),t.NdJ("participantSelectedEvent",function(A){return t.CHM(c),t.oxw(3).onActionSelected(A)}),t.ALo(2,"ngrxPush"),t.YNc(3,L,2,4,"ng-template",null,18,t.W1O),t.qZA(),t.YNc(5,Q,4,3,"cvc-participant-list",19),t.YNc(6,J,4,3,"cvc-participant-list",20),t.BQk()}if(2&s){const c=t.oxw(3);t.xp6(1),t.Q6J("participantList",t.lcZ(2,3,c.actions$)),t.xp6(4),t.Q6J("ngIf",!c.userId),t.xp6(1),t.Q6J("ngIf",!c.organizationId)}}function S(s,v){1&s&&(t.TgZ(0,"nz-space",4),t.YNc(1,M,3,1,"span",15),t.YNc(2,h,7,5,"ng-container",15),t.qZA())}function p(s,v){if(1&s&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",3),t.TgZ(3,"nz-space",4),t.YNc(4,m,3,4,"nz-card",5),t.qZA(),t.qZA(),t.TgZ(5,"nz-col",6),t.YNc(6,S,3,0,"nz-space",7),t.qZA(),t.qZA(),t.BQk()),2&s){const c=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",c.showFilters?"18":"24"),t.xp6(4),t.Q6J("ngIf",c.showFilters)}}function O(s,v){1&s&&t._UZ(0,"nz-empty",27)}let R=(()=>{class s{constructor(c){this.gql=c,this.tagDisplay="displayAll",this.mode=e.wJ2.Subject,this.showFilters=!0,this.pageSize=15,this.showChildren=!1}ngOnInit(){this.initialQueryVars={subject:this.subscribable,organizationId:this.organizationId,originatingUserId:this.userId,first:this.pageSize,mode:this.mode,showFilters:this.showFilters},this.queryRef=this.gql.watch(this.initialQueryVars,{}),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,d.U)(({data:c})=>c.events.pageInfo)),this.events$=this.results$.pipe((0,d.U)(({data:c})=>c.events.edges.map(T=>T.node))),this.unfilteredCount$=this.results$.pipe((0,d.U)(({data:c})=>c.events.unfilteredCount)),this.showFilters&&(this.participants$=this.results$.pipe((0,d.U)(({data:c})=>c.events.uniqueParticipants)),this.organizations$=this.results$.pipe((0,d.U)(({data:c})=>c.events.participatingOrganizations)),this.actions$=this.results$.pipe((0,d.U)(({data:c})=>{var T,A;return(null===(A=null===(T=c.events)||void 0===T?void 0:T.eventTypes)||void 0===A?void 0:A.map(N=>({id:N})))||[]})))}fetchMore(c){this.queryRef.fetchMore({variables:{first:this.pageSize,after:c}})}onOrganizationSelected(c){this.queryRef.refetch({organizationId:null==c?void 0:c.id,showFilters:this.showFilters})}onActionSelected(c){this.queryRef.refetch({eventType:c?c.id:void 0,showFilters:this.showFilters})}onOriginatingUserSelected(c){this.queryRef.refetch({originatingUserId:null==c?void 0:c.id,showFilters:this.showFilters})}onShowChildrenToggle(){let c;this.subscribable?(c={id:this.subscribable.id,entityType:this.subscribable.entityType,includeChildren:this.showChildren},this.tagDisplay=this.showChildren?"displayAll":"hideSubject"):c=void 0,this.queryRef.refetch(Object.assign(Object.assign({},this.initialQueryVars),{subject:c,showFilters:this.showFilters}))}}return s.\u0275fac=function(c){return new(c||s)(t.Y36(e.BTF))},s.\u0275cmp=t.Xpm({type:s,selectors:[["cvc-event-feed"]],inputs:{subscribable:"subscribable",subscribableName:"subscribableName",organizationId:"organizationId",userId:"userId",tagDisplay:"tagDisplay",mode:"mode",showFilters:"showFilters",pageSize:"pageSize"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle",4,"nzSpaceItem"],["nzSpan","6"],["nzDirection","vertical","style","width: 100%",4,"ngIf"],[3,"nzTitle"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"],[4,"nzSpaceItem"],["nzSize","small",3,"ngModel","ngModelChange"],["listTitle","Action",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Curator",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Organization",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Curator",3,"participantList","participantSelectedEvent"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Organization",3,"participantList","participantSelectedEvent"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(c,T){if(1&c&&(t.YNc(0,p,7,3,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,O,1,0,"ng-template",null,1,t.W1O)),2&c){const A=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,T.unfilteredCount$))("ngIfElse",A)}},styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}#event-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#event-filters[_ngcontent-%COMP%] #participant-filter[_ngcontent-%COMP%]{width:200px}#event-filters[_ngcontent-%COMP%] #organization-filter[_ngcontent-%COMP%]{width:250px}"]}),s})()},4292:(b,y,n)=>{n.d(y,{t:()=>ne});var e=n(9808),d=n(2011),t=n(6949),z=n(7484),E=n(647),g=n(4546),l=n(4182),m=n(6462),M=n(1894),L=n(8054),I=n(7345),j=n(3618),U=n(9444),Q=n(3172),Z=n(9445),J=n(3309),h=n(8369),S=n(209),p=n(4867),O=n(9476),R=n(404),s=n(8625),v=n(2712),c=n(9401),T=n(6042),A=n(9779),N=n(3212),W=n(7026),u=n(5e3);let K=(()=>{class C{}return C.\u0275fac=function(D){return new(D||C)},C.\u0275mod=u.oAB({type:C}),C.\u0275inj=u.cJS({imports:[[e.ez,T.sL,E.PV,R.cg,j.ZJ,v.FT,M.Jb,s.$L.forChild({formatter:{useClass:W.x,provide:s.KP}}),c.y,I.W,U.s,Q.T,Z.O,J.U,h.W,S.i,p.Q,O.L,A.s,N.E]]}),C})();var Y=n(8144),$=n(1150),V=n(6699),H=n(685),r=n(2683),f=n(2347),a=n(712);let x=(()=>{class C{transform(D){switch(D){case a.AO2.Commented:return"civic-comment";case a.AO2.RevisionSuggested:case a.AO2.RevisionAccepted:case a.AO2.RevisionRejected:case a.AO2.RevisionSuperseded:return"civic-revision";case a.AO2.Flagged:case a.AO2.FlagResolved:return"civic-flag";case a.AO2.AssertionSubmitted:case a.AO2.AssertionAccepted:case a.AO2.AssertionRejected:return"civic-assertion";case a.AO2.Submitted:case a.AO2.Accepted:case a.AO2.Rejected:return"civic-evidence";case a.AO2.PublicationSuggested:case a.AO2.CuratedSourceSuggestion:case a.AO2.RejectedSourceSuggestion:case a.AO2.RequeuedSourceSuggestion:return"file-add";case a.AO2.Reverted:return"civic-evidence";case a.AO2.AssertionReverted:return"civic-assertion";default:throw new Error("Not handling all event action types yet"+D)}}}return C.\u0275fac=function(D){return new(D||C)},C.\u0275pipe=u.Yjl({name:"iconNameForEventAction",type:C,pure:!0}),C})();function F(C,w){if(1&C&&(u._UZ(0,"i",5),u.ALo(1,"iconNameForEventAction")),2&C){const D=u.oxw().$implicit;u.Q6J("nzType",u.lcZ(1,1,D.action))}}function B(C,w){if(1&C&&(u.ynx(0),u.TgZ(1,"nz-timeline-item",2),u.YNc(2,F,2,3,"ng-template",null,3,u.W1O),u._UZ(4,"cvc-event-timeline-item",4),u.qZA(),u.BQk()),2&C){const D=w.$implicit,G=u.MAs(3),ie=u.oxw(2);u.xp6(1),u.Q6J("nzDot",G),u.xp6(3),u.Q6J("event",D)("tagDisplay",ie.tagDisplay)}}function X(C,w){if(1&C&&(u.TgZ(0,"nz-timeline"),u.YNc(1,B,5,3,"ng-container",1),u.qZA()),2&C){const D=u.oxw();u.xp6(1),u.Q6J("ngForOf",D.events)}}let q=(()=>{class C{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.events)throw new Error("cvc-feed-item component requires array of EventFeedNodeFragment input.")}}return C.\u0275fac=function(D){return new(D||C)},C.\u0275cmp=u.Xpm({type:C,selectors:[["cvc-event-timeline"]],inputs:{events:"events",tagDisplay:"tagDisplay"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzDot"],["timelineDotTemplate",""],[3,"event","tagDisplay"],["nz-icon","","nzTheme","twotone",1,"item-icon",3,"nzType"]],template:function(D,G){1&D&&u.YNc(0,X,2,1,"nz-timeline",0),2&D&&u.Q6J("ngIf",null==G.events?null:G.events.length)},directives:[e.O5,v.PD,e.sg,v.Zv,r.w,E.Ls,f.t],pipes:[x],styles:["[_nghost-%COMP%]{display:block}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]}),C})();var k=n(2643),ee=n(8747),te=n(2937);let ne=(()=>{class C{}return C.\u0275fac=function(D){return new(D||C)},C.\u0275mod=u.oAB({type:C}),C.\u0275inj=u.cJS({imports:[[e.ez,l.u5,t.WG,T.sL,z.vh,E.PV,g.U5,L.LV,m.m,M.Jb,Y.zf,H.Xo,V.Rt,K,U.s,$.N,U.s]]}),C})();u.B6R(d.o,[e.O5,M.SK,M.t3,Y.NU,Y.$1,z.bd,q,T.ix,k.dQ,r.w,m.i,l.JJ,l.On,ee.l,V.Dz,H.p9],[t.fM,te.R,e.gd])},3212:(b,y,n)=>{n.d(y,{E:()=>c});var e=n(9808),d=n(647),t=n(7345),z=n(3618),E=n(9444),g=n(3172),l=n(9445),m=n(3309),M=n(8369),L=n(209),I=n(4867),j=n(9476),U=n(404),Q=n(8625),Z=n(1894),J=n(9401),h=n(6042),S=n(9779),p=n(7026),O=n(7677),R=n(8481),s=n(325),v=n(5e3);let c=(()=>{class T{}return T.\u0275fac=function(N){return new(N||T)},T.\u0275mod=v.oAB({type:T}),T.\u0275inj=v.cJS({imports:[[e.ez,h.sL,d.PV,R.X,U.cg,z.ZJ,Z.Jb,s.Bz,Q.$L.forChild({formatter:{useClass:p.x,provide:Q.KP}}),J.y,t.W,E.s,g.T,l.O,m.U,M.W,L.i,I.Q,j.L,S.s,O.G]]}),T})()},2347:(b,y,n)=>{n.d(y,{t:()=>xe});var e=n(5e3),d=n(9808),t=n(1894),z=n(125),E=n(3618),g=n(9297),l=n(325),m=n(8481),M=n(3610),L=n(373),I=n(712),j=n(7484),U=n(3193),Q=n(2826),Z=n(9001),J=n(8664),h=n(6906),S=n(6949),p=n(8625);function O(i,_){if(1&i&&e._UZ(0,"cvc-gene-tag",17),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("gene",o.commentable)}}function R(i,_){if(1&i&&e._UZ(0,"cvc-assertion-tag",18),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("assertion",o.commentable)}}function s(i,_){if(1&i&&e._UZ(0,"cvc-evidence-tag",19),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("evidence",o.commentable)}}function v(i,_){if(1&i&&e._UZ(0,"cvc-variant-tag",20),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("variant",o.commentable)}}function c(i,_){if(1&i&&e._UZ(0,"cvc-revision-tag",21),2&i){const o=e.oxw(2).ngIf;e.Q6J("revision",o.commentable)}}function T(i,_){if(1&i&&e._UZ(0,"cvc-source-tag",22),2&i){const o=e.oxw(2).ngIf;e.Q6J("source",o.commentable)}}function A(i,_){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const o=e.oxw(2).ngIf;e.xp6(1),e.Oqu(o.commentable.name)}}function N(i,_){if(1&i&&(e.TgZ(0,"span",7),e._UZ(1,"cvc-user-tag",8),e._uU(2,"commented on "),e.ynx(3,9),e.YNc(4,O,1,2,"cvc-gene-tag",10),e.YNc(5,R,1,2,"cvc-assertion-tag",11),e.YNc(6,s,1,2,"cvc-evidence-tag",12),e.YNc(7,v,1,2,"cvc-variant-tag",13),e.YNc(8,c,1,1,"cvc-revision-tag",14),e.YNc(9,T,1,1,"cvc-source-tag",15),e.YNc(10,A,2,1,"span",16),e.BQk(),e._uU(11),e.ALo(12,"timeago"),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(1),e.Q6J("enablePopover",!1)("user",o.commenter),e.xp6(2),e.Q6J("ngSwitch",o.commentable.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Gene"),e.xp6(1),e.Q6J("ngSwitchCase","Assertion"),e.xp6(1),e.Q6J("ngSwitchCase","EvidenceItem"),e.xp6(1),e.Q6J("ngSwitchCase","Variant"),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","Source"),e.xp6(2),e.hij(" ",e.lcZ(12,10,o.createdAt)," ")}}function W(i,_){if(1&i&&(e.TgZ(0,"p",23),e.TgZ(1,"b"),e._uU(2),e.qZA(),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(2),e.Oqu(o.title)}}function u(i,_){if(1&i&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,N,13,12,"ng-template",null,3,e.W1O),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",4),e.TgZ(6,"div",5),e.YNc(7,W,3,1,"p",6),e.TgZ(8,"p"),e._uU(9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&i){const o=_.ngIf,P=e.MAs(3);e.xp6(1),e.Q6J("nzTitle",P),e.xp6(6),e.Q6J("ngIf",o.title),e.xp6(2),e.hij(" ",o.comment," ")}}let K=(()=>{class i{constructor(o){this.gql=o}ngOnInit(){if(null==this.commentId)throw new Error("cvc-comment-popover requires valid commentId input.");this.comment$=this.gql.watch({commentId:this.commentId}).valueChanges.pipe((0,L.j)("data","comment"))}}return i.\u0275fac=function(o){return new(o||i)(e.Y36(I.Kk))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-comment-popover"]],inputs:{commentId:"commentId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSpan","24"],[1,"popover-text"],["nz-typography","",4,"ngIf"],[1,"comment-card-title"],[3,"enablePopover","user"],[3,"ngSwitch"],[3,"enablePopover","gene",4,"ngSwitchCase"],[3,"enablePopover","assertion",4,"ngSwitchCase"],[3,"enablePopover","evidence",4,"ngSwitchCase"],[3,"enablePopover","variant",4,"ngSwitchCase"],[3,"revision",4,"ngSwitchCase"],["mode","concise",3,"source",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"enablePopover","gene"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"revision"],["mode","concise",3,"source"],["nz-typography",""]],template:function(o,P){1&o&&(e.TgZ(0,"div",0),e.YNc(1,u,10,3,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,P.comment$)))},directives:[d.O5,j.bd,z.I,d.RF,d.n9,U.H,Q.w,Z.O,J.I,g.p,h.T,d.ED,t.SK,t.t3],pipes:[S.fM,p.wr],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}[_nghost-%COMP%]{display:block}.comment-card-title[_ngcontent-%COMP%]{font-weight:400}"]}),i})();var Y=n(647);function $(i,_){}function V(i,_){}function H(i,_){if(1&i&&(e.TgZ(0,"nz-tag",7),e.YNc(1,V,0,0,"ng-template",1),e.qZA()),2&i){e.oxw();const o=e.MAs(2);e.oxw();const P=e.MAs(7);e.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",o),e.xp6(1),e.Q6J("ngTemplateOutlet",P)}}function r(i,_){if(1&i&&e._UZ(0,"cvc-comment-popover",8),2&i){const o=e.oxw(2);e.Q6J("commentId",o.comment.id)}}function f(i,_){if(1&i&&(e.YNc(0,H,2,3,"nz-tag",5),e.YNc(1,r,1,1,"ng-template",null,6,e.W1O)),2&i){const o=e.oxw(),P=e.MAs(5);e.Q6J("ngIf",o.enablePopover)("ngIfElse",P)}}function a(i,_){}function x(i,_){if(1&i&&(e.TgZ(0,"nz-tag"),e.YNc(1,a,0,0,"ng-template",1),e.qZA()),2&i){e.oxw();const o=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",o)}}function F(i,_){if(1&i&&(e._UZ(0,"i",9),e._uU(1)),2&i){const o=e.oxw();e.xp6(1),e.hij(" ",o.comment.name,"\n")}}let B=(()=>{class i{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.comment)throw new Error("cvc-comment-tag requires LinkableComment input, none supplied.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-comment-tag"]],inputs:{comment:"comment",subject:"subject",enablePopover:"enablePopover"},decls:8,vars:2,consts:[[3,"routerLink"],[3,"ngTemplateOutlet"],["tag",""],["noPopover",""],["tagContent",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["commentPopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"commentId"],["nz-icon","","nzType","civic-comment","nzTheme","twotone","nzTwotoneColor","#44D8EF"]],template:function(o,P){if(1&o&&(e.TgZ(0,"a",0),e.YNc(1,$,0,0,"ng-template",1),e.qZA(),e.YNc(2,f,3,2,"ng-template",null,2,e.W1O),e.YNc(4,x,2,1,"ng-template",null,3,e.W1O),e.YNc(6,F,2,1,"ng-template",null,4,e.W1O)),2&o){const oe=e.MAs(3);e.Q6J("routerLink",P.comment.link),e.xp6(1),e.Q6J("ngTemplateOutlet",oe)}},directives:[l.yS,d.tP,d.O5,m.j,M.lU,K,Y.Ls],styles:[""]}),i})(),X=(()=>{class i{constructor(){}ngOnInit(){if(void 0===this.flag)throw new Error("cvc-flag-tag requires LinkableFlag input, none supplied.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-flag-tag"]],inputs:{flag:"flag",subject:"subject"},decls:4,vars:2,consts:[[3,"routerLink"],["nz-icon","","nzType","civic-flag","nzTheme","twotone","nzTwotoneColor","#E24759"]],template:function(o,P){1&o&&(e.TgZ(0,"a",0),e.TgZ(1,"nz-tag"),e._UZ(2,"i",1),e._uU(3),e.qZA(),e.qZA()),2&o&&(e.Q6J("routerLink",P.flag.link),e.xp6(3),e.hij(" ",P.flag.name," "))},directives:[l.yS,m.j,Y.Ls],styles:[""]}),i})();var q=n(112),k=n(5749),ee=n(404),te=n(2937);let ne=(()=>{class i{transform(o){switch(o){case I.AO2.Commented:case I.AO2.RevisionSuggested:case I.AO2.RevisionAccepted:case I.AO2.RevisionRejected:case I.AO2.RevisionSuperseded:return"to";case I.AO2.Flagged:case I.AO2.FlagResolved:return"on";case I.AO2.PublicationSuggested:case I.AO2.CuratedSourceSuggestion:case I.AO2.RejectedSourceSuggestion:case I.AO2.RequeuedSourceSuggestion:return"";default:throw new Error("Not handling all event action types yet "+o)}}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=e.Yjl({name:"prepositionForSubject",type:i,pure:!0}),i})();function C(i,_){if(1&i&&e._UZ(0,"cvc-user-tag",10),2&i){const o=e.oxw(2);e.Q6J("user",o.event.originatingUser)}}function w(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function D(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-revision-tag",13),e.YNc(2,w,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,P=e.oxw(2);e.xp6(1),e.Q6J("revision",o)("subject",P.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=P.tagDisplay)}}function G(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function ie(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-comment-tag",15),e.YNc(2,G,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,P=e.oxw(2);e.xp6(1),e.Q6J("comment",o)("subject",P.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=P.tagDisplay)}}function ce(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function ae(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-flag-tag",16),e.YNc(2,ce,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,P=e.oxw(2);e.xp6(1),e.Q6J("flag",o)("subject",P.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=P.tagDisplay)}}function se(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function re(i,_){if(1&i&&(e.TgZ(0,"span"),e.TgZ(1,"nz-tag",17),e._uU(2),e.qZA(),e.YNc(3,se,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,P=e.oxw(2);e.xp6(1),e.Q6J("routerLink",o.link),e.xp6(1),e.hij(" ",o.name," "),e.xp6(1),e.Q6J("ngIf","hideSubject"!=P.tagDisplay)}}function _e(i,_){if(1&i&&(e.ynx(0),e.ynx(1,11),e.YNc(2,D,3,3,"span",12),e.YNc(3,ie,3,3,"span",12),e.YNc(4,ae,3,3,"span",12),e.YNc(5,re,4,3,"span",12),e.BQk(),e.BQk()),2&i){const o=_.ngIf;e.xp6(1),e.Q6J("ngSwitch",o.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","Comment"),e.xp6(1),e.Q6J("ngSwitchCase","Flag"),e.xp6(1),e.Q6J("ngSwitchCase","SourceSuggestion")}}function le(i,_){if(1&i&&e._UZ(0,"cvc-gene-tag",26),2&i){const o=e.oxw().ngIf;e.Q6J("gene",o)}}function ge(i,_){if(1&i&&e._UZ(0,"cvc-assertion-tag",27),2&i){const o=e.oxw().ngIf;e.Q6J("assertion",o)}}function pe(i,_){if(1&i&&e._UZ(0,"cvc-evidence-tag",28),2&i){const o=e.oxw().ngIf;e.Q6J("evidence",o)}}function me(i,_){if(1&i&&e._UZ(0,"cvc-variant-tag",29),2&i){const o=e.oxw().ngIf;e.Q6J("variant",o)}}function ve(i,_){if(1&i&&e._UZ(0,"cvc-revision-tag",30),2&i){const o=e.oxw().ngIf;e.Q6J("revision",o)}}function de(i,_){if(1&i&&e._UZ(0,"cvc-variant-group-tag",31),2&i){const o=e.oxw().ngIf;e.Q6J("variantgroup",o)}}function ue(i,_){if(1&i&&e._UZ(0,"cvc-source-tag",32),2&i){const o=e.oxw().ngIf;e.Q6J("source",o)}}function fe(i,_){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(1),e.Oqu(o.name)}}function Ce(i,_){1&i&&(e.ynx(0,11),e.YNc(1,le,1,1,"cvc-gene-tag",18),e.YNc(2,ge,1,1,"cvc-assertion-tag",19),e.YNc(3,pe,1,1,"cvc-evidence-tag",20),e.YNc(4,me,1,1,"cvc-variant-tag",21),e.YNc(5,ve,1,1,"cvc-revision-tag",22),e.YNc(6,de,1,1,"cvc-variant-group-tag",23),e.YNc(7,ue,1,1,"cvc-source-tag",24),e.YNc(8,fe,2,1,"span",25),e.BQk()),2&i&&(e.Q6J("ngSwitch",_.ngIf.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Gene"),e.xp6(1),e.Q6J("ngSwitchCase","Assertion"),e.xp6(1),e.Q6J("ngSwitchCase","EvidenceItem"),e.xp6(1),e.Q6J("ngSwitchCase","Variant"),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","VariantGroup"),e.xp6(1),e.Q6J("ngSwitchCase","Source"))}function he(i,_){if(1&i&&(e.ynx(0),e.TgZ(1,"span",5),e._uU(2,"for\xa0"),e.qZA(),e._UZ(3,"cvc-organization-tag",33),e.BQk()),2&i){const o=_.ngIf;e.xp6(3),e.Q6J("org",o)}}function Te(i,_){if(1&i&&(e.TgZ(0,"nz-row",2),e.TgZ(1,"nz-col",3),e.YNc(2,C,1,1,"cvc-user-tag",4),e.TgZ(3,"span",5),e._uU(4),e.ALo(5,"eventVerbiage"),e.qZA(),e.YNc(6,_e,6,5,"ng-container",6),e.YNc(7,Ce,9,8,"ng-container",7),e.YNc(8,he,4,1,"ng-container",6),e.qZA(),e.TgZ(9,"nz-col",8),e.TgZ(10,"span",9),e.ALo(11,"date"),e._uU(12),e.ALo(13,"timeago"),e.qZA(),e.qZA(),e.qZA()),2&i){const o=e.oxw();e.xp6(2),e.Q6J("ngIf","hideUser"!=o.tagDisplay),e.xp6(2),e.hij("",e.xi3(5,7,o.event.action,"feed"),"\xa0"),e.xp6(2),e.Q6J("ngIf",o.event.originatingObject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=o.tagDisplay&&o.event.subject),e.xp6(1),e.Q6J("ngIf","hideOrg"!=o.tagDisplay&&o.event.organization),e.xp6(2),e.Q6J("nzTooltipTitle",e.lcZ(11,10,o.event.createdAt)),e.xp6(2),e.hij(" ",e.lcZ(13,12,o.event.createdAt)," ")}}function ze(i,_){1&i&&e._uU(0," Event database entry is malformed and cannot be displayed\n")}let xe=(()=>{class i{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.event)throw new Error("cvc-timeline-item component requires an EventFeedNodeFragment input.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-event-timeline-item"]],inputs:{event:"event",tagDisplay:"tagDisplay"},decls:3,vars:2,consts:[["class","timeline-item",4,"ngIf","ngIfElse"],["noOriginating",""],[1,"timeline-item"],["nzFlex","auto",1,"description"],[3,"user",4,"ngIf"],["nz-typography",""],[4,"ngIf"],[3,"ngSwitch",4,"ngIf"],["nzFlex","100px",1,"timestamp"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision","subject"],["nz-typography","",4,"ngIf"],[3,"comment","subject"],[3,"flag","subject"],[2,"cursor","pointer",3,"routerLink"],[3,"gene",4,"ngSwitchCase"],[3,"assertion",4,"ngSwitchCase"],[3,"evidence",4,"ngSwitchCase"],[3,"variant",4,"ngSwitchCase"],[3,"revision",4,"ngSwitchCase"],[3,"variantgroup",4,"ngSwitchCase"],["mode","concise",3,"source",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"gene"],[3,"assertion"],[3,"evidence"],[3,"variant"],[3,"revision"],[3,"variantgroup"],["mode","concise",3,"source"],[3,"org"]],template:function(o,P){if(1&o&&(e.YNc(0,Te,14,14,"nz-row",0),e.YNc(1,ze,1,0,"ng-template",null,1,e.W1O)),2&o){const oe=e.MAs(2);e.Q6J("ngIf",P.event.originatingObject)("ngIfElse",oe)}},directives:[d.O5,t.SK,t.t3,z.I,E.ZU,d.RF,d.n9,g.p,B,X,m.j,l.rH,U.H,Q.w,Z.O,J.I,q.u,h.T,d.ED,k.m,ee.SY],pipes:[te.R,ne,d.uU,p.wr],styles:[""]}),i})()},9445:(b,y,n)=>{n.d(y,{O:()=>l});var e=n(9808),d=n(8481),t=n(647),z=n(325),E=n(9444),g=n(5e3);let l=(()=>{class m{}return m.\u0275fac=function(L){return new(L||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[e.ez,z.Bz,d.X,t.PV,E.s]]}),m})()},9297:(b,y,n)=>{n.d(y,{p:()=>E});var e=n(5e3),d=n(325),t=n(8481),z=n(647);let E=(()=>{class g{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",subject:"subject",enablePopover:"enablePopover"},decls:4,vars:2,consts:[[3,"routerLink"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(m,M){1&m&&(e.TgZ(0,"a",0),e.TgZ(1,"nz-tag"),e._UZ(2,"i",1),e._uU(3),e.qZA(),e.qZA()),2&m&&(e.Q6J("routerLink",M.revision.link),e.xp6(3),e.hij(" ",M.revision.name," "))},directives:[d.yS,t.j,z.Ls],styles:[""]}),g})()},8747:(b,y,n)=>{n.d(y,{l:()=>J});var e=n(5e3),d=n(9808),t=n(7484),z=n(3762),E=n(6042),g=n(2643),l=n(2683),m=n(647);const M=["itemTemplate"],L=function(h){return{$implicit:h}};function I(h,S){if(1&h){const p=e.EpF();e.TgZ(0,"nz-list-item",5),e.NdJ("click",function(){e.CHM(p);const R=e.oxw().$implicit;return e.oxw(2).onParticipantSelected(R)}),e.GkF(1,6),e.qZA()}if(2&h){const p=e.oxw().$implicit,O=e.oxw(2);e.ekj("selected-participant",p.id==(null==O.selectedItem?null:O.selectedItem.id)),e.xp6(1),e.Q6J("ngTemplateOutlet",O.itemTemplateRef||null)("ngTemplateOutletContext",e.VKq(4,L,p))}}function j(h,S){if(1&h&&(e.ynx(0),e.YNc(1,I,2,6,"nz-list-item",4),e.BQk()),2&h){const p=S.index,O=e.oxw(2);e.xp6(1),e.Q6J("ngIf",p+1<=O.defaultListSize)}}function U(h,S){if(1&h){const p=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(p),e.oxw(2).onExpandClicked()}),e._UZ(1,"i",8),e._uU(2," Expand "),e.qZA()}}function Q(h,S){if(1&h){const p=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(p),e.oxw(2).onCollapseClicked()}),e._UZ(1,"i",9),e._uU(2," Collapse "),e.qZA()}}function Z(h,S){if(1&h&&(e.ynx(0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-list"),e.YNc(3,j,2,1,"ng-container",2),e.qZA(),e.YNc(4,U,3,0,"button",3),e.YNc(5,Q,3,0,"button",3),e.qZA(),e.BQk()),2&h){const p=e.oxw();e.xp6(1),e.Q6J("nzTitle",p.listTitle),e.xp6(2),e.Q6J("ngForOf",p.participantList),e.xp6(1),e.Q6J("ngIf",p.participantList.length>p.defaultListSize),e.xp6(1),e.Q6J("ngIf",p.isExpanded)}}let J=(()=>{class h{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new e.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(p){var O;this.selectedItem=p.id==(null===(O=this.selectedItem)||void 0===O?void 0:O.id)?void 0:p,this.participantSelectedEvent.emit(this.selectedItem)}onExpandClicked(){this.originalDefaultListSize=this.defaultListSize,this.defaultListSize=this.participantList.length,this.isExpanded=!0}onCollapseClicked(){this.originalDefaultListSize&&(this.defaultListSize=this.originalDefaultListSize,this.isExpanded=!1)}}return h.\u0275fac=function(p){return new(p||h)},h.\u0275cmp=e.Xpm({type:h,selectors:[["cvc-participant-list"]],contentQueries:function(p,O,R){if(1&p&&e.Suo(R,M,5),2&p){let s;e.iGM(s=e.CRH())&&(O.itemTemplateRef=s.first)}},inputs:{participantList:"participantList",listTitle:"listTitle",defaultListSize:"defaultListSize",preselectedOption:"preselectedOption"},outputs:{participantSelectedEvent:"participantSelectedEvent"},decls:1,vars:1,consts:[[4,"ngIf"],["nz-type","inner",2,"margin-bottom","1em",3,"nzTitle"],[4,"ngFor","ngForOf"],["nz-button","","nzType","default","nzSize","small",3,"click",4,"ngIf"],["nzSize","small","class","participant-list-item",3,"selected-participant","click",4,"ngIf"],["nzSize","small",1,"participant-list-item",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","vertical-align-bottom"],["nz-icon","","nzType","vertical-align-top"]],template:function(p,O){1&p&&e.YNc(0,Z,6,4,"ng-container",0),2&p&&e.Q6J("ngIf",O.participantList&&O.participantList.length>0)},directives:[d.O5,t.bd,z.n_,d.sg,z.AA,d.tP,E.ix,g.dQ,l.w,m.Ls],styles:[".participant-list-item[_ngcontent-%COMP%]:hover{border:1px solid #40a9ff;cursor:pointer}.participant-list-item[_ngcontent-%COMP%]{padding:2px;margin:2px}.selected-participant[_ngcontent-%COMP%]{background:#40a9ff;color:#fff}"]}),h})()},1150:(b,y,n)=>{n.d(y,{N:()=>l});var e=n(9808),d=n(7484),t=n(3762),z=n(647),E=n(6042),g=n(5e3);let l=(()=>{class m{}return m.\u0275fac=function(L){return new(L||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[e.ez,d.vh,t.Ph,z.PV,E.sL]]}),m})()},2937:(b,y,n)=>{n.d(y,{R:()=>t});var e=n(712),d=n(5e3);let t=(()=>{class z{transform(g,l="contributor-card",m=0){return"contributor-card"===l?this.contributorVerbiage(g,m):"action-filter"===l?this.actionFilterVerbiage(g):this.eventFeedVerbiage(g)}eventFeedVerbiage(g){switch(g){case e.AO2.Commented:return"added comment";case e.AO2.RevisionSuggested:return"suggested revision";case e.AO2.RevisionAccepted:return"accepted revision";case e.AO2.RevisionRejected:return"rejected revision";case e.AO2.RevisionSuperseded:return"accepted superseding revision";case e.AO2.Flagged:return"opened new flag";case e.AO2.FlagResolved:return"resolved flag";case e.AO2.AssertionSubmitted:return"submitted assertion";case e.AO2.AssertionAccepted:return"accepted assertion";case e.AO2.AssertionRejected:return"rejected assertion";case e.AO2.Submitted:return"submitted evidence item";case e.AO2.Accepted:return"accepted evidence item";case e.AO2.Rejected:return"rejected evidence item";case e.AO2.PublicationSuggested:return"created source suggestion";case e.AO2.CuratedSourceSuggestion:return"finished curating source suggestion";case e.AO2.RejectedSourceSuggestion:return"rejected source suggestion";case e.AO2.RequeuedSourceSuggestion:return"requeued source suggestion";case e.AO2.Reverted:return"reverted evidence item";case e.AO2.AssertionReverted:return"reverted assertion";default:throw new Error("Not handling all event action types yet")}}actionFilterVerbiage(g){switch(g){case e.AO2.Commented:return"commented";case e.AO2.RevisionSuggested:return"revision suggested";case e.AO2.RevisionAccepted:return"revision accepted";case e.AO2.RevisionRejected:return"revision rejected";case e.AO2.RevisionSuperseded:return"superseding revision accepted";case e.AO2.Flagged:return"flag opened";case e.AO2.FlagResolved:return"flag resolved";case e.AO2.AssertionSubmitted:return"assertion submitted";case e.AO2.AssertionAccepted:return"assertion accepted";case e.AO2.AssertionRejected:return"assertion rejected";case e.AO2.Submitted:return"evidence item submitted";case e.AO2.Accepted:return"evidence item accepted";case e.AO2.Rejected:return"evidence item rejected";case e.AO2.PublicationSuggested:return"source suggestion created";case e.AO2.CuratedSourceSuggestion:return"source suggestion curated";case e.AO2.RejectedSourceSuggestion:return"source suggestion rejected";case e.AO2.RequeuedSourceSuggestion:return"source suggestion requeued";case e.AO2.Reverted:return"evidence item reverted";case e.AO2.AssertionReverted:return"assertion reverted";default:throw new Error("Not handling all event action types yet")}}contributorVerbiage(g,l){switch(g){case e.AO2.Commented:return 1==l?"left a comment on this entity":`left ${l} comments on this entity`;case e.AO2.RevisionSuggested:return 1==l?"suggested a revision to this entity":`suggested ${l} revisions on this entity`;case e.AO2.RevisionAccepted:return 1==l?"accepted a revision to this entity":`accepted ${l} revisions on this entity`;case e.AO2.RevisionRejected:return 1==l?"rejected a revision to this entity":`rejected ${l} revisions on this entity`;case e.AO2.RevisionSuperseded:return 1==l?"accepted a superseding revision to this entity":`accepted ${l} superseding revisions on this entity`;case e.AO2.Flagged:return 1==l?"opened new flag on this entity":`opened ${l} new flags on this entity`;case e.AO2.FlagResolved:return 1==l?"resolved a flag on this entity":`resolved ${l} flags on this entity`;case e.AO2.AssertionSubmitted:return"submitted this assertion";case e.AO2.AssertionAccepted:return"accepted this assertion";case e.AO2.AssertionRejected:return"rejected this assertion";case e.AO2.Submitted:return"submitted this evidence item";case e.AO2.Accepted:return"accepted this evidence item";case e.AO2.Rejected:return"rejected this evidence item";case e.AO2.PublicationSuggested:return"";case e.AO2.CuratedSourceSuggestion:return"finished curating this source suggestion";case e.AO2.RejectedSourceSuggestion:return"rejected this source suggestion";case e.AO2.RequeuedSourceSuggestion:return"requeued this source suggestion";case e.AO2.AssertionReverted:return"reverted this assertion";case e.AO2.Reverted:return"reverted this evidence item";default:throw new Error("Not handling all event action types yet")}}}return z.\u0275fac=function(g){return new(g||z)},z.\u0275pipe=d.Yjl({name:"eventVerbiage",type:z,pure:!0}),z})()},2712:(b,y,n)=>{n.d(y,{PD:()=>Y,Zv:()=>K,FT:()=>H});var e=n(5e3),d=n(839),t=n(8929),z=n(9808),E=n(969),g=n(7625),l=n(226),m=n(647),M=n(925);const L=["template"];function I(r,f){if(1&r&&(e.ynx(0),e._uU(1),e.BQk()),2&r){const a=e.oxw(3);e.xp6(1),e.Oqu(a.nzLabel)}}function j(r,f){if(1&r&&(e.TgZ(0,"div",7),e.YNc(1,I,2,1,"ng-container",5),e.qZA()),2&r){const a=e.oxw(2);e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzLabel)}}function U(r,f){if(1&r&&(e.ynx(0),e._uU(1),e.BQk()),2&r){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzDot)}}function Q(r,f){if(1&r&&(e.TgZ(0,"li",1),e.YNc(1,j,2,1,"div",2),e._UZ(2,"div",3),e.TgZ(3,"div",4),e.YNc(4,U,2,1,"ng-container",5),e.qZA(),e.TgZ(5,"div",6),e.Hsn(6),e.qZA(),e.qZA()),2&r){const a=e.oxw();e.ekj("ant-timeline-item-right","right"===(a.nzPosition||a.position))("ant-timeline-item-left","left"===(a.nzPosition||a.position))("ant-timeline-item-last",a.isLast),e.xp6(1),e.Q6J("ngIf",a.nzLabel),e.xp6(2),e.Udp("border-color",a.borderColor),e.ekj("ant-timeline-item-head-red","red"===a.nzColor)("ant-timeline-item-head-blue","blue"===a.nzColor)("ant-timeline-item-head-green","green"===a.nzColor)("ant-timeline-item-head-gray","gray"===a.nzColor)("ant-timeline-item-head-custom",!!a.nzDot),e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzDot)}}const Z=["*"];function J(r,f){if(1&r&&e.GkF(0,4),2&r){e.oxw();const a=e.MAs(5);e.Q6J("ngTemplateOutlet",a)}}function h(r,f){}function S(r,f){if(1&r&&(e.ynx(0),e.YNc(1,h,0,0,"ng-template",4),e.BQk()),2&r){const a=f.$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",a.template)}}function p(r,f){if(1&r&&e.GkF(0,4),2&r){e.oxw();const a=e.MAs(5);e.Q6J("ngTemplateOutlet",a)}}function O(r,f){1&r&&e._UZ(0,"i",12)}function R(r,f){if(1&r&&(e.ynx(0),e._uU(1),e.YNc(2,O,1,0,"i",11),e.BQk()),2&r){const a=e.oxw(3);e.xp6(1),e.hij(" ",a.nzPendingDot," "),e.xp6(1),e.Q6J("ngIf",!a.nzPendingDot)}}function s(r,f){if(1&r&&(e.ynx(0),e._uU(1),e.BQk()),2&r){const a=e.oxw(3);e.xp6(1),e.hij(" ",a.isPendingBoolean?"":a.nzPending," ")}}function v(r,f){if(1&r&&(e.TgZ(0,"li",6),e._UZ(1,"div",7),e.TgZ(2,"div",8),e.YNc(3,R,3,2,"ng-container",9),e.qZA(),e.TgZ(4,"div",10),e.YNc(5,s,2,1,"ng-container",9),e.qZA(),e.qZA()),2&r){const a=e.oxw(2);e.xp6(3),e.Q6J("nzStringTemplateOutlet",a.nzPendingDot),e.xp6(2),e.Q6J("nzStringTemplateOutlet",a.nzPending)}}function c(r,f){if(1&r&&e.YNc(0,v,6,2,"li",5),2&r){const a=e.oxw();e.Q6J("ngIf",a.nzPending)}}const N=["red","blue","green","grey","gray"];let W=(()=>{class r{constructor(){this.check$=new d.t(1)}markForCheck(){this.check$.next()}}return r.\u0275fac=function(a){return new(a||r)},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})(),K=(()=>{class r{constructor(a,x){this.cdr=a,this.timelineService=x,this.nzColor="blue",this.isLast=!1,this.borderColor=null}ngOnChanges(a){this.timelineService.markForCheck(),a.nzColor&&this.updateCustomColor()}detectChanges(){this.cdr.detectChanges()}updateCustomColor(){this.borderColor=function u(r){return-1!==N.findIndex(f=>f===r)}(this.nzColor)?null:this.nzColor}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(e.sBO),e.Y36(W))},r.\u0275cmp=e.Xpm({type:r,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(a,x){if(1&a&&e.Gf(L,5),2&a){let F;e.iGM(F=e.CRH())&&(x.template=F.first)}},inputs:{nzPosition:"nzPosition",nzColor:"nzColor",nzDot:"nzDot",nzLabel:"nzLabel"},exportAs:["nzTimelineItem"],features:[e.TTD],ngContentSelectors:Z,decls:2,vars:0,consts:[["template",""],[1,"ant-timeline-item"],["class","ant-timeline-item-label",4,"ngIf"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],[1,"ant-timeline-item-label"]],template:function(a,x){1&a&&(e.F$t(),e.YNc(0,Q,7,20,"ng-template",null,0,e.W1O))},directives:[z.O5,E.f],encapsulation:2,changeDetection:0}),r})(),Y=(()=>{class r{constructor(a,x,F){this.cdr=a,this.timelineService=x,this.directionality=F,this.nzMode="left",this.nzReverse=!1,this.isPendingBoolean=!1,this.timelineItems=[],this.dir="ltr",this.hasLabelItem=!1,this.destroy$=new t.xQ}ngOnChanges(a){const{nzMode:x,nzReverse:F,nzPending:B}=a;($(x)||$(F))&&this.updateChildren(),B&&(this.isPendingBoolean=!0===B.currentValue)}ngOnInit(){var a;this.timelineService.check$.pipe((0,g.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),null===(a=this.directionality.change)||void 0===a||a.pipe((0,g.R)(this.destroy$)).subscribe(x=>{this.dir=x,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe((0,g.R)(this.destroy$)).subscribe(()=>{this.updateChildren()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateChildren(){if(this.listOfItems&&this.listOfItems.length){const a=this.listOfItems.length;let x=!1;this.listOfItems.forEach((F,B)=>{F.isLast=this.nzReverse?0===B:B===a-1,F.position=function V(r,f){return"custom"===f?void 0:"left"===f?"left":"right"===f?"right":"alternate"===f&&r%2==0?"left":"right"}(B,this.nzMode),!x&&F.nzLabel&&(x=!0),F.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=x}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(e.sBO),e.Y36(W),e.Y36(l.Is,8))},r.\u0275cmp=e.Xpm({type:r,selectors:[["nz-timeline"]],contentQueries:function(a,x,F){if(1&a&&e.Suo(F,K,4),2&a){let B;e.iGM(B=e.CRH())&&(x.listOfItems=B)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:"nzReverse"},exportAs:["nzTimeline"],features:[e._Bn([W]),e.TTD],ngContentSelectors:Z,decls:7,vars:15,consts:[[1,"ant-timeline"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngFor","ngForOf"],["pendingTemplate",""],[3,"ngTemplateOutlet"],["class","ant-timeline-item ant-timeline-item-pending",4,"ngIf"],[1,"ant-timeline-item","ant-timeline-item-pending"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head","ant-timeline-item-head-custom","ant-timeline-item-head-blue"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(a,x){1&a&&(e.F$t(),e.TgZ(0,"ul",0),e.YNc(1,J,1,1,"ng-container",1),e.YNc(2,S,2,1,"ng-container",2),e.YNc(3,p,1,1,"ng-container",1),e.qZA(),e.YNc(4,c,1,1,"ng-template",null,3,e.W1O),e.Hsn(6)),2&a&&(e.ekj("ant-timeline-label",x.hasLabelItem)("ant-timeline-right",!x.hasLabelItem&&"right"===x.nzMode)("ant-timeline-alternate","alternate"===x.nzMode||"custom"===x.nzMode)("ant-timeline-pending",!!x.nzPending)("ant-timeline-reverse",x.nzReverse)("ant-timeline-rtl","rtl"===x.dir),e.xp6(1),e.Q6J("ngIf",x.nzReverse),e.xp6(1),e.Q6J("ngForOf",x.timelineItems),e.xp6(1),e.Q6J("ngIf",!x.nzReverse))},directives:[z.O5,z.tP,z.sg,E.f,m.Ls],encapsulation:2,changeDetection:0}),r})();function $(r){return!(!r||r.previousValue===r.currentValue&&!r.isFirstChange())}let H=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[l.vT,z.ez,M.ud,m.PV,E.T]]}),r})()}}]); \ No newline at end of file diff --git a/server/public/4292.73f4c12168601c38.js b/server/public/4292.73f4c12168601c38.js new file mode 100644 index 000000000..7cee32654 --- /dev/null +++ b/server/public/4292.73f4c12168601c38.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4292],{3172:(Y,S,n)=>{n.d(S,{T:()=>F});var e=n(9808),v=n(3610),A=n(6949),t=n(7345),P=n(8369),g=n(209),l=n(4867),m=n(8625),y=n(7484),R=n(1894),M=n(3309),B=n(7026),Q=n(9401),N=n(9779),L=n(5e3);let w=(()=>{class x{}return x.\u0275fac=function(u){return new(u||x)},x.\u0275mod=L.oAB({type:x}),x.\u0275inj=L.cJS({imports:[[e.ez,A.WG,y.vh,R.Jb,M.U,t.W,P.W,g.i,g.i,l.Q,Q.y,N.s,m.$L.forChild({formatter:{useClass:B.x,provide:m.KP}})]]}),x})();var h=n(8481),D=n(647),p=n(9444),z=n(325);let F=(()=>{class x{}return x.\u0275fac=function(u){return new(u||x)},x.\u0275mod=L.oAB({type:x}),x.\u0275inj=L.cJS({imports:[[e.ez,p.s,z.Bz,v.$6,D.PV,w,h.X]]}),x})()},2011:(Y,S,n)=>{n.d(S,{o:()=>x});var e=n(712),v=n(4850),A=n(2340),t=n(5e3);function P(r,u){if(1&r&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",11),t.BQk()),2&r){const c=t.oxw().ngIf,O=t.oxw(3);t.xp6(1),t.Q6J("events",c)("tagDisplay",O.tagDisplay)}}function g(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"div",13),t.TgZ(1,"button",14),t.NdJ("click",function(){t.CHM(c);const E=t.oxw().ngIf;return t.oxw(4).fetchMore(E.endCursor)}),t._uU(2,"Load More "),t.qZA(),t.qZA()}}function l(r,u){if(1&r&&(t.ynx(0),t.YNc(1,g,3,0,"div",12),t.BQk()),2&r){const c=u.ngIf;t.xp6(1),t.Q6J("ngIf",c.hasNextPage)}}function m(r,u){if(1&r&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",10),t.YNc(3,P,2,2,"ng-container",0),t.YNc(4,l,2,1,"ng-container",9),t.ALo(5,"ngrxPush"),t.qZA(),t.qZA(),t.BQk()),2&r){const c=u.ngIf,O=t.oxw(3),E=t.MAs(3);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",c.length)("ngIfElse",E),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,O.pageInfo$))}}function y(r,u){if(1&r&&(t.TgZ(0,"nz-card",8),t.YNc(1,m,6,6,"ng-container",9),t.ALo(2,"ngrxPush"),t.qZA()),2&r){const c=t.oxw(2);t.Q6J("nzTitle",c.showFilters?"Events":void 0),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,c.events$))}}function R(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"span"),t._uU(1," Show Child Events "),t.TgZ(2,"nz-switch",16),t.NdJ("ngModelChange",function(E){return t.CHM(c),t.oxw(3).showChildren=E})("ngModelChange",function(){return t.CHM(c),t.oxw(3).onShowChildrenToggle()}),t.qZA(),t.qZA()}if(2&r){const c=t.oxw(3);t.xp6(2),t.Q6J("ngModel",c.showChildren)}}function M(r,u){1&r&&(t._uU(0),t.ALo(1,"eventVerbiage")),2&r&&t.hij(" ",t.xi3(1,1,u.$implicit.id,"action-filter")," ")}function B(r,u){if(1&r&&t._UZ(0,"nz-avatar",24),2&r){const c=t.oxw().$implicit;t.Q6J("nzSrc",c.profileImagePath)}}function Q(r,u){if(1&r&&(t._UZ(0,"nz-avatar",25),t.ALo(1,"uppercase")),2&r){const c=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,c.displayName.charAt(0)))}}function N(r,u){if(1&r&&(t.YNc(0,B,1,1,"nz-avatar",22),t.YNc(1,Q,2,3,"ng-template",null,23,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&r){const c=u.$implicit,O=t.MAs(2);t.Q6J("ngIf",c.profileImagePath)("ngIfElse",O),t.xp6(4),t.Oqu(c.displayName)}}function L(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"cvc-participant-list",21),t.NdJ("participantSelectedEvent",function(E){return t.CHM(c),t.oxw(4).onOriginatingUserSelected(E)}),t.ALo(1,"ngrxPush"),t.YNc(2,N,5,3,"ng-template",null,18,t.W1O),t.qZA()}if(2&r){const c=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,c.participants$))}}function w(r,u){if(1&r&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&r){const c=u.$implicit;t.xp6(1),t.hij(" ",c.name," ")}}function h(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"cvc-participant-list",26),t.NdJ("participantSelectedEvent",function(E){return t.CHM(c),t.oxw(4).onOrganizationSelected(E)}),t.ALo(1,"ngrxPush"),t.YNc(2,w,2,1,"ng-template",null,18,t.W1O),t.qZA()}if(2&r){const c=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,c.organizations$))}}function D(r,u){if(1&r){const c=t.EpF();t.ynx(0),t.TgZ(1,"cvc-participant-list",17),t.NdJ("participantSelectedEvent",function(E){return t.CHM(c),t.oxw(3).onActionSelected(E)}),t.ALo(2,"ngrxPush"),t.YNc(3,M,2,4,"ng-template",null,18,t.W1O),t.qZA(),t.YNc(5,L,4,3,"cvc-participant-list",19),t.YNc(6,h,4,3,"cvc-participant-list",20),t.BQk()}if(2&r){const c=t.oxw(3);t.xp6(1),t.Q6J("participantList",t.lcZ(2,3,c.actions$)),t.xp6(4),t.Q6J("ngIf",!c.userId),t.xp6(1),t.Q6J("ngIf",!c.organizationId)}}function p(r,u){1&r&&(t.TgZ(0,"nz-space",4),t.YNc(1,R,3,1,"span",15),t.YNc(2,D,7,5,"ng-container",15),t.qZA())}function z(r,u){if(1&r&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",3),t.TgZ(3,"nz-space",4),t.YNc(4,y,3,4,"nz-card",5),t.qZA(),t.qZA(),t.TgZ(5,"nz-col",6),t.YNc(6,p,3,0,"nz-space",7),t.qZA(),t.qZA(),t.BQk()),2&r){const c=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",c.showFilters?"18":"24"),t.xp6(4),t.Q6J("ngIf",c.showFilters)}}function F(r,u){1&r&&t._UZ(0,"nz-empty",27)}let x=(()=>{class r{constructor(c){this.gql=c,this.tagDisplay="displayAll",this.mode=e.wJ2.Subject,this.showFilters=!0,this.pageSize=15,this.showChildren=!1}ngOnInit(){this.initialQueryVars={subject:this.subscribable,organizationId:this.organizationId,originatingUserId:this.userId,first:this.pageSize,mode:this.mode,showFilters:this.showFilters},this.queryRef=A.N.production?this.gql.watch(this.initialQueryVars,{pollInterval:3e4}):this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,v.U)(({data:c})=>c.events.pageInfo)),this.events$=this.results$.pipe((0,v.U)(({data:c})=>c.events.edges.map(O=>O.node))),this.unfilteredCount$=this.results$.pipe((0,v.U)(({data:c})=>c.events.unfilteredCount)),this.showFilters&&(this.participants$=this.results$.pipe((0,v.U)(({data:c})=>c.events.uniqueParticipants)),this.organizations$=this.results$.pipe((0,v.U)(({data:c})=>c.events.participatingOrganizations)),this.actions$=this.results$.pipe((0,v.U)(({data:c})=>{var O,E;return(null===(E=null===(O=c.events)||void 0===O?void 0:O.eventTypes)||void 0===E?void 0:E.map(J=>({id:J})))||[]})))}fetchMore(c){this.queryRef.fetchMore({variables:{first:this.pageSize,after:c}})}onOrganizationSelected(c){this.queryRef.refetch({organizationId:null==c?void 0:c.id,showFilters:this.showFilters})}onActionSelected(c){this.queryRef.refetch({eventType:c?c.id:void 0,showFilters:this.showFilters})}onOriginatingUserSelected(c){this.queryRef.refetch({originatingUserId:null==c?void 0:c.id,showFilters:this.showFilters})}onShowChildrenToggle(){let c;this.subscribable?(c={id:this.subscribable.id,entityType:this.subscribable.entityType,includeChildren:this.showChildren},this.tagDisplay=this.showChildren?"displayAll":"hideSubject"):c=void 0,this.queryRef.refetch(Object.assign(Object.assign({},this.initialQueryVars),{subject:c,showFilters:this.showFilters}))}}return r.\u0275fac=function(c){return new(c||r)(t.Y36(e.BTF))},r.\u0275cmp=t.Xpm({type:r,selectors:[["cvc-event-feed"]],inputs:{subscribable:"subscribable",subscribableName:"subscribableName",organizationId:"organizationId",userId:"userId",tagDisplay:"tagDisplay",mode:"mode",showFilters:"showFilters",pageSize:"pageSize"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle",4,"nzSpaceItem"],["nzSpan","6"],["nzDirection","vertical","style","width: 100%",4,"ngIf"],[3,"nzTitle"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"],[4,"nzSpaceItem"],["nzSize","small",3,"ngModel","ngModelChange"],["listTitle","Action",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Curator",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Organization",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Curator",3,"participantList","participantSelectedEvent"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Organization",3,"participantList","participantSelectedEvent"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(c,O){if(1&c&&(t.YNc(0,z,7,3,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,F,1,0,"ng-template",null,1,t.W1O)),2&c){const E=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,O.unfilteredCount$))("ngIfElse",E)}},styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}#event-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#event-filters[_ngcontent-%COMP%] #participant-filter[_ngcontent-%COMP%]{width:200px}#event-filters[_ngcontent-%COMP%] #organization-filter[_ngcontent-%COMP%]{width:250px}"]}),r})()},4292:(Y,S,n)=>{n.d(S,{t:()=>ne});var e=n(9808),v=n(2011),A=n(6949),t=n(7484),P=n(647),g=n(4546),l=n(4182),m=n(6462),y=n(1894),R=n(8054),M=n(7345),B=n(3618),Q=n(9444),N=n(3172),L=n(9445),w=n(3309),h=n(8369),D=n(209),p=n(4867),z=n(9476),F=n(404),x=n(8625),r=n(2712),u=n(9401),c=n(6042),O=n(9779),E=n(3212),J=n(7026),d=n(5e3);let K=(()=>{class C{}return C.\u0275fac=function(Z){return new(Z||C)},C.\u0275mod=d.oAB({type:C}),C.\u0275inj=d.cJS({imports:[[e.ez,c.sL,P.PV,F.cg,B.ZJ,r.FT,y.Jb,x.$L.forChild({formatter:{useClass:J.x,provide:x.KP}}),u.y,M.W,Q.s,N.T,L.O,w.U,h.W,D.i,p.Q,z.L,O.s,E.E]]}),C})();var W=n(8144),$=n(1150),V=n(6699),H=n(685),s=n(2683),f=n(2347),a=n(712);let T=(()=>{class C{transform(Z){switch(Z){case a.AO2.Commented:return"civic-comment";case a.AO2.RevisionSuggested:case a.AO2.RevisionAccepted:case a.AO2.RevisionRejected:case a.AO2.RevisionSuperseded:return"civic-revision";case a.AO2.Flagged:case a.AO2.FlagResolved:return"civic-flag";case a.AO2.AssertionSubmitted:case a.AO2.AssertionAccepted:case a.AO2.AssertionRejected:return"civic-assertion";case a.AO2.Submitted:case a.AO2.Accepted:case a.AO2.Rejected:return"civic-evidence";case a.AO2.PublicationSuggested:case a.AO2.CuratedSourceSuggestion:case a.AO2.RejectedSourceSuggestion:case a.AO2.RequeuedSourceSuggestion:return"file-add";case a.AO2.Reverted:return"civic-evidence";case a.AO2.AssertionReverted:return"civic-assertion";default:throw new Error("Not handling all event action types yet"+Z)}}}return C.\u0275fac=function(Z){return new(Z||C)},C.\u0275pipe=d.Yjl({name:"iconNameForEventAction",type:C,pure:!0}),C})();function U(C,j){if(1&C&&(d._UZ(0,"i",5),d.ALo(1,"iconNameForEventAction")),2&C){const Z=d.oxw().$implicit;d.Q6J("nzType",d.lcZ(1,1,Z.action))}}function b(C,j){if(1&C&&(d.ynx(0),d.TgZ(1,"nz-timeline-item",2),d.YNc(2,U,2,3,"ng-template",null,3,d.W1O),d._UZ(4,"cvc-event-timeline-item",4),d.qZA(),d.BQk()),2&C){const Z=j.$implicit,G=d.MAs(3),ie=d.oxw(2);d.xp6(1),d.Q6J("nzDot",G),d.xp6(3),d.Q6J("event",Z)("tagDisplay",ie.tagDisplay)}}function X(C,j){if(1&C&&(d.TgZ(0,"nz-timeline"),d.YNc(1,b,5,3,"ng-container",1),d.qZA()),2&C){const Z=d.oxw();d.xp6(1),d.Q6J("ngForOf",Z.events)}}let q=(()=>{class C{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.events)throw new Error("cvc-feed-item component requires array of EventFeedNodeFragment input.")}}return C.\u0275fac=function(Z){return new(Z||C)},C.\u0275cmp=d.Xpm({type:C,selectors:[["cvc-event-timeline"]],inputs:{events:"events",tagDisplay:"tagDisplay"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzDot"],["timelineDotTemplate",""],[3,"event","tagDisplay"],["nz-icon","","nzTheme","twotone",1,"item-icon",3,"nzType"]],template:function(Z,G){1&Z&&d.YNc(0,X,2,1,"nz-timeline",0),2&Z&&d.Q6J("ngIf",null==G.events?null:G.events.length)},directives:[e.O5,r.PD,e.sg,r.Zv,s.w,P.Ls,f.t],pipes:[T],styles:["[_nghost-%COMP%]{display:block}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]}),C})();var k=n(2643),ee=n(8747),te=n(2937);let ne=(()=>{class C{}return C.\u0275fac=function(Z){return new(Z||C)},C.\u0275mod=d.oAB({type:C}),C.\u0275inj=d.cJS({imports:[[e.ez,l.u5,A.WG,c.sL,t.vh,P.PV,g.U5,R.LV,m.m,y.Jb,W.zf,H.Xo,V.Rt,K,Q.s,$.N,Q.s]]}),C})();d.B6R(v.o,[e.O5,y.SK,y.t3,W.NU,W.$1,t.bd,q,c.ix,k.dQ,s.w,m.i,l.JJ,l.On,ee.l,V.Dz,H.p9],[A.fM,te.R,e.gd])},3212:(Y,S,n)=>{n.d(S,{E:()=>u});var e=n(9808),v=n(647),A=n(7345),t=n(3618),P=n(9444),g=n(3172),l=n(9445),m=n(3309),y=n(8369),R=n(209),M=n(4867),B=n(9476),Q=n(404),N=n(8625),L=n(1894),w=n(9401),h=n(6042),D=n(9779),p=n(7026),z=n(7677),F=n(8481),x=n(325),r=n(5e3);let u=(()=>{class c{}return c.\u0275fac=function(E){return new(E||c)},c.\u0275mod=r.oAB({type:c}),c.\u0275inj=r.cJS({imports:[[e.ez,h.sL,v.PV,F.X,Q.cg,t.ZJ,L.Jb,x.Bz,N.$L.forChild({formatter:{useClass:p.x,provide:N.KP}}),w.y,A.W,P.s,g.T,l.O,m.U,y.W,R.i,M.Q,B.L,D.s,z.G]]}),c})()},2347:(Y,S,n)=>{n.d(S,{t:()=>xe});var e=n(5e3),v=n(9808),A=n(1894),t=n(125),P=n(3618),g=n(9297),l=n(325),m=n(8481),y=n(3610),R=n(373),M=n(712),B=n(7484),Q=n(3193),N=n(2826),L=n(9001),w=n(8664),h=n(6906),D=n(6949),p=n(8625);function z(i,_){if(1&i&&e._UZ(0,"cvc-gene-tag",17),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("gene",o.commentable)}}function F(i,_){if(1&i&&e._UZ(0,"cvc-assertion-tag",18),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("assertion",o.commentable)}}function x(i,_){if(1&i&&e._UZ(0,"cvc-evidence-tag",19),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("evidence",o.commentable)}}function r(i,_){if(1&i&&e._UZ(0,"cvc-variant-tag",20),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("variant",o.commentable)}}function u(i,_){if(1&i&&e._UZ(0,"cvc-revision-tag",21),2&i){const o=e.oxw(2).ngIf;e.Q6J("revision",o.commentable)}}function c(i,_){if(1&i&&e._UZ(0,"cvc-source-tag",22),2&i){const o=e.oxw(2).ngIf;e.Q6J("source",o.commentable)}}function O(i,_){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const o=e.oxw(2).ngIf;e.xp6(1),e.Oqu(o.commentable.name)}}function E(i,_){if(1&i&&(e.TgZ(0,"span",7),e._UZ(1,"cvc-user-tag",8),e._uU(2,"commented on "),e.ynx(3,9),e.YNc(4,z,1,2,"cvc-gene-tag",10),e.YNc(5,F,1,2,"cvc-assertion-tag",11),e.YNc(6,x,1,2,"cvc-evidence-tag",12),e.YNc(7,r,1,2,"cvc-variant-tag",13),e.YNc(8,u,1,1,"cvc-revision-tag",14),e.YNc(9,c,1,1,"cvc-source-tag",15),e.YNc(10,O,2,1,"span",16),e.BQk(),e._uU(11),e.ALo(12,"timeago"),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(1),e.Q6J("enablePopover",!1)("user",o.commenter),e.xp6(2),e.Q6J("ngSwitch",o.commentable.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Gene"),e.xp6(1),e.Q6J("ngSwitchCase","Assertion"),e.xp6(1),e.Q6J("ngSwitchCase","EvidenceItem"),e.xp6(1),e.Q6J("ngSwitchCase","Variant"),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","Source"),e.xp6(2),e.hij(" ",e.lcZ(12,10,o.createdAt)," ")}}function J(i,_){if(1&i&&(e.TgZ(0,"p",23),e.TgZ(1,"b"),e._uU(2),e.qZA(),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(2),e.Oqu(o.title)}}function d(i,_){if(1&i&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,E,13,12,"ng-template",null,3,e.W1O),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",4),e.TgZ(6,"div",5),e.YNc(7,J,3,1,"p",6),e.TgZ(8,"p"),e._uU(9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&i){const o=_.ngIf,I=e.MAs(3);e.xp6(1),e.Q6J("nzTitle",I),e.xp6(6),e.Q6J("ngIf",o.title),e.xp6(2),e.hij(" ",o.comment," ")}}let K=(()=>{class i{constructor(o){this.gql=o}ngOnInit(){if(null==this.commentId)throw new Error("cvc-comment-popover requires valid commentId input.");this.comment$=this.gql.watch({commentId:this.commentId}).valueChanges.pipe((0,R.j)("data","comment"))}}return i.\u0275fac=function(o){return new(o||i)(e.Y36(M.Kk))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-comment-popover"]],inputs:{commentId:"commentId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSpan","24"],[1,"popover-text"],["nz-typography","",4,"ngIf"],[1,"comment-card-title"],[3,"enablePopover","user"],[3,"ngSwitch"],[3,"enablePopover","gene",4,"ngSwitchCase"],[3,"enablePopover","assertion",4,"ngSwitchCase"],[3,"enablePopover","evidence",4,"ngSwitchCase"],[3,"enablePopover","variant",4,"ngSwitchCase"],[3,"revision",4,"ngSwitchCase"],["mode","concise",3,"source",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"enablePopover","gene"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"revision"],["mode","concise",3,"source"],["nz-typography",""]],template:function(o,I){1&o&&(e.TgZ(0,"div",0),e.YNc(1,d,10,3,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,I.comment$)))},directives:[v.O5,B.bd,t.I,v.RF,v.n9,Q.H,N.w,L.O,w.I,g.p,h.T,v.ED,A.SK,A.t3],pipes:[D.fM,p.wr],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}[_nghost-%COMP%]{display:block}.comment-card-title[_ngcontent-%COMP%]{font-weight:400}"]}),i})();var W=n(647);function $(i,_){}function V(i,_){}function H(i,_){if(1&i&&(e.TgZ(0,"nz-tag",7),e.YNc(1,V,0,0,"ng-template",1),e.qZA()),2&i){e.oxw();const o=e.MAs(2);e.oxw();const I=e.MAs(7);e.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",o),e.xp6(1),e.Q6J("ngTemplateOutlet",I)}}function s(i,_){if(1&i&&e._UZ(0,"cvc-comment-popover",8),2&i){const o=e.oxw(2);e.Q6J("commentId",o.comment.id)}}function f(i,_){if(1&i&&(e.YNc(0,H,2,3,"nz-tag",5),e.YNc(1,s,1,1,"ng-template",null,6,e.W1O)),2&i){const o=e.oxw(),I=e.MAs(5);e.Q6J("ngIf",o.enablePopover)("ngIfElse",I)}}function a(i,_){}function T(i,_){if(1&i&&(e.TgZ(0,"nz-tag"),e.YNc(1,a,0,0,"ng-template",1),e.qZA()),2&i){e.oxw();const o=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",o)}}function U(i,_){if(1&i&&(e._UZ(0,"i",9),e._uU(1)),2&i){const o=e.oxw();e.xp6(1),e.hij(" ",o.comment.name,"\n")}}let b=(()=>{class i{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.comment)throw new Error("cvc-comment-tag requires LinkableComment input, none supplied.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-comment-tag"]],inputs:{comment:"comment",subject:"subject",enablePopover:"enablePopover"},decls:8,vars:2,consts:[[3,"routerLink"],[3,"ngTemplateOutlet"],["tag",""],["noPopover",""],["tagContent",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["commentPopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"commentId"],["nz-icon","","nzType","civic-comment","nzTheme","twotone","nzTwotoneColor","#44D8EF"]],template:function(o,I){if(1&o&&(e.TgZ(0,"a",0),e.YNc(1,$,0,0,"ng-template",1),e.qZA(),e.YNc(2,f,3,2,"ng-template",null,2,e.W1O),e.YNc(4,T,2,1,"ng-template",null,3,e.W1O),e.YNc(6,U,2,1,"ng-template",null,4,e.W1O)),2&o){const oe=e.MAs(3);e.Q6J("routerLink",I.comment.link),e.xp6(1),e.Q6J("ngTemplateOutlet",oe)}},directives:[l.yS,v.tP,v.O5,m.j,y.lU,K,W.Ls],styles:[""]}),i})(),X=(()=>{class i{constructor(){}ngOnInit(){if(void 0===this.flag)throw new Error("cvc-flag-tag requires LinkableFlag input, none supplied.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-flag-tag"]],inputs:{flag:"flag",subject:"subject"},decls:4,vars:2,consts:[[3,"routerLink"],["nz-icon","","nzType","civic-flag","nzTheme","twotone","nzTwotoneColor","#E24759"]],template:function(o,I){1&o&&(e.TgZ(0,"a",0),e.TgZ(1,"nz-tag"),e._UZ(2,"i",1),e._uU(3),e.qZA(),e.qZA()),2&o&&(e.Q6J("routerLink",I.flag.link),e.xp6(3),e.hij(" ",I.flag.name," "))},directives:[l.yS,m.j,W.Ls],styles:[""]}),i})();var q=n(112),k=n(5749),ee=n(404),te=n(2937);let ne=(()=>{class i{transform(o){switch(o){case M.AO2.Commented:case M.AO2.RevisionSuggested:case M.AO2.RevisionAccepted:case M.AO2.RevisionRejected:case M.AO2.RevisionSuperseded:return"to";case M.AO2.Flagged:case M.AO2.FlagResolved:return"on";case M.AO2.PublicationSuggested:case M.AO2.CuratedSourceSuggestion:case M.AO2.RejectedSourceSuggestion:case M.AO2.RequeuedSourceSuggestion:return"";default:throw new Error("Not handling all event action types yet "+o)}}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=e.Yjl({name:"prepositionForSubject",type:i,pure:!0}),i})();function C(i,_){if(1&i&&e._UZ(0,"cvc-user-tag",10),2&i){const o=e.oxw(2);e.Q6J("user",o.event.originatingUser)}}function j(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function Z(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-revision-tag",13),e.YNc(2,j,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,I=e.oxw(2);e.xp6(1),e.Q6J("revision",o)("subject",I.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=I.tagDisplay)}}function G(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function ie(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-comment-tag",15),e.YNc(2,G,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,I=e.oxw(2);e.xp6(1),e.Q6J("comment",o)("subject",I.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=I.tagDisplay)}}function ce(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function ae(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-flag-tag",16),e.YNc(2,ce,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,I=e.oxw(2);e.xp6(1),e.Q6J("flag",o)("subject",I.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=I.tagDisplay)}}function se(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function re(i,_){if(1&i&&(e.TgZ(0,"span"),e.TgZ(1,"nz-tag",17),e._uU(2),e.qZA(),e.YNc(3,se,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,I=e.oxw(2);e.xp6(1),e.Q6J("routerLink",o.link),e.xp6(1),e.hij(" ",o.name," "),e.xp6(1),e.Q6J("ngIf","hideSubject"!=I.tagDisplay)}}function _e(i,_){if(1&i&&(e.ynx(0),e.ynx(1,11),e.YNc(2,Z,3,3,"span",12),e.YNc(3,ie,3,3,"span",12),e.YNc(4,ae,3,3,"span",12),e.YNc(5,re,4,3,"span",12),e.BQk(),e.BQk()),2&i){const o=_.ngIf;e.xp6(1),e.Q6J("ngSwitch",o.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","Comment"),e.xp6(1),e.Q6J("ngSwitchCase","Flag"),e.xp6(1),e.Q6J("ngSwitchCase","SourceSuggestion")}}function le(i,_){if(1&i&&e._UZ(0,"cvc-gene-tag",26),2&i){const o=e.oxw().ngIf;e.Q6J("gene",o)}}function ge(i,_){if(1&i&&e._UZ(0,"cvc-assertion-tag",27),2&i){const o=e.oxw().ngIf;e.Q6J("assertion",o)}}function pe(i,_){if(1&i&&e._UZ(0,"cvc-evidence-tag",28),2&i){const o=e.oxw().ngIf;e.Q6J("evidence",o)}}function me(i,_){if(1&i&&e._UZ(0,"cvc-variant-tag",29),2&i){const o=e.oxw().ngIf;e.Q6J("variant",o)}}function ve(i,_){if(1&i&&e._UZ(0,"cvc-revision-tag",30),2&i){const o=e.oxw().ngIf;e.Q6J("revision",o)}}function de(i,_){if(1&i&&e._UZ(0,"cvc-variant-group-tag",31),2&i){const o=e.oxw().ngIf;e.Q6J("variantgroup",o)}}function ue(i,_){if(1&i&&e._UZ(0,"cvc-source-tag",32),2&i){const o=e.oxw().ngIf;e.Q6J("source",o)}}function fe(i,_){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(1),e.Oqu(o.name)}}function Ce(i,_){1&i&&(e.ynx(0,11),e.YNc(1,le,1,1,"cvc-gene-tag",18),e.YNc(2,ge,1,1,"cvc-assertion-tag",19),e.YNc(3,pe,1,1,"cvc-evidence-tag",20),e.YNc(4,me,1,1,"cvc-variant-tag",21),e.YNc(5,ve,1,1,"cvc-revision-tag",22),e.YNc(6,de,1,1,"cvc-variant-group-tag",23),e.YNc(7,ue,1,1,"cvc-source-tag",24),e.YNc(8,fe,2,1,"span",25),e.BQk()),2&i&&(e.Q6J("ngSwitch",_.ngIf.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Gene"),e.xp6(1),e.Q6J("ngSwitchCase","Assertion"),e.xp6(1),e.Q6J("ngSwitchCase","EvidenceItem"),e.xp6(1),e.Q6J("ngSwitchCase","Variant"),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","VariantGroup"),e.xp6(1),e.Q6J("ngSwitchCase","Source"))}function he(i,_){if(1&i&&(e.ynx(0),e.TgZ(1,"span",5),e._uU(2,"for\xa0"),e.qZA(),e._UZ(3,"cvc-organization-tag",33),e.BQk()),2&i){const o=_.ngIf;e.xp6(3),e.Q6J("org",o)}}function Te(i,_){if(1&i&&(e.TgZ(0,"nz-row",2),e.TgZ(1,"nz-col",3),e.YNc(2,C,1,1,"cvc-user-tag",4),e.TgZ(3,"span",5),e._uU(4),e.ALo(5,"eventVerbiage"),e.qZA(),e.YNc(6,_e,6,5,"ng-container",6),e.YNc(7,Ce,9,8,"ng-container",7),e.YNc(8,he,4,1,"ng-container",6),e.qZA(),e.TgZ(9,"nz-col",8),e.TgZ(10,"span",9),e.ALo(11,"date"),e._uU(12),e.ALo(13,"timeago"),e.qZA(),e.qZA(),e.qZA()),2&i){const o=e.oxw();e.xp6(2),e.Q6J("ngIf","hideUser"!=o.tagDisplay),e.xp6(2),e.hij("",e.xi3(5,7,o.event.action,"feed"),"\xa0"),e.xp6(2),e.Q6J("ngIf",o.event.originatingObject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=o.tagDisplay&&o.event.subject),e.xp6(1),e.Q6J("ngIf","hideOrg"!=o.tagDisplay&&o.event.organization),e.xp6(2),e.Q6J("nzTooltipTitle",e.lcZ(11,10,o.event.createdAt)),e.xp6(2),e.hij(" ",e.lcZ(13,12,o.event.createdAt)," ")}}function ze(i,_){1&i&&e._uU(0," Event database entry is malformed and cannot be displayed\n")}let xe=(()=>{class i{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.event)throw new Error("cvc-timeline-item component requires an EventFeedNodeFragment input.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-event-timeline-item"]],inputs:{event:"event",tagDisplay:"tagDisplay"},decls:3,vars:2,consts:[["class","timeline-item",4,"ngIf","ngIfElse"],["noOriginating",""],[1,"timeline-item"],["nzFlex","auto",1,"description"],[3,"user",4,"ngIf"],["nz-typography",""],[4,"ngIf"],[3,"ngSwitch",4,"ngIf"],["nzFlex","100px",1,"timestamp"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision","subject"],["nz-typography","",4,"ngIf"],[3,"comment","subject"],[3,"flag","subject"],[2,"cursor","pointer",3,"routerLink"],[3,"gene",4,"ngSwitchCase"],[3,"assertion",4,"ngSwitchCase"],[3,"evidence",4,"ngSwitchCase"],[3,"variant",4,"ngSwitchCase"],[3,"revision",4,"ngSwitchCase"],[3,"variantgroup",4,"ngSwitchCase"],["mode","concise",3,"source",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"gene"],[3,"assertion"],[3,"evidence"],[3,"variant"],[3,"revision"],[3,"variantgroup"],["mode","concise",3,"source"],[3,"org"]],template:function(o,I){if(1&o&&(e.YNc(0,Te,14,14,"nz-row",0),e.YNc(1,ze,1,0,"ng-template",null,1,e.W1O)),2&o){const oe=e.MAs(2);e.Q6J("ngIf",I.event.originatingObject)("ngIfElse",oe)}},directives:[v.O5,A.SK,A.t3,t.I,P.ZU,v.RF,v.n9,g.p,b,X,m.j,l.rH,Q.H,N.w,L.O,w.I,q.u,h.T,v.ED,k.m,ee.SY],pipes:[te.R,ne,v.uU,p.wr],styles:[""]}),i})()},9445:(Y,S,n)=>{n.d(S,{O:()=>l});var e=n(9808),v=n(8481),A=n(647),t=n(325),P=n(9444),g=n(5e3);let l=(()=>{class m{}return m.\u0275fac=function(R){return new(R||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[e.ez,t.Bz,v.X,A.PV,P.s]]}),m})()},9297:(Y,S,n)=>{n.d(S,{p:()=>P});var e=n(5e3),v=n(325),A=n(8481),t=n(647);let P=(()=>{class g{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",subject:"subject",enablePopover:"enablePopover"},decls:4,vars:2,consts:[[3,"routerLink"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(m,y){1&m&&(e.TgZ(0,"a",0),e.TgZ(1,"nz-tag"),e._UZ(2,"i",1),e._uU(3),e.qZA(),e.qZA()),2&m&&(e.Q6J("routerLink",y.revision.link),e.xp6(3),e.hij(" ",y.revision.name," "))},directives:[v.yS,A.j,t.Ls],styles:[""]}),g})()},8747:(Y,S,n)=>{n.d(S,{l:()=>w});var e=n(5e3),v=n(9808),A=n(7484),t=n(3762),P=n(6042),g=n(2643),l=n(2683),m=n(647);const y=["itemTemplate"],R=function(h){return{$implicit:h}};function M(h,D){if(1&h){const p=e.EpF();e.TgZ(0,"nz-list-item",5),e.NdJ("click",function(){e.CHM(p);const F=e.oxw().$implicit;return e.oxw(2).onParticipantSelected(F)}),e.GkF(1,6),e.qZA()}if(2&h){const p=e.oxw().$implicit,z=e.oxw(2);e.ekj("selected-participant",p.id==(null==z.selectedItem?null:z.selectedItem.id)),e.xp6(1),e.Q6J("ngTemplateOutlet",z.itemTemplateRef||null)("ngTemplateOutletContext",e.VKq(4,R,p))}}function B(h,D){if(1&h&&(e.ynx(0),e.YNc(1,M,2,6,"nz-list-item",4),e.BQk()),2&h){const p=D.index,z=e.oxw(2);e.xp6(1),e.Q6J("ngIf",p+1<=z.defaultListSize)}}function Q(h,D){if(1&h){const p=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(p),e.oxw(2).onExpandClicked()}),e._UZ(1,"i",8),e._uU(2," Expand "),e.qZA()}}function N(h,D){if(1&h){const p=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(p),e.oxw(2).onCollapseClicked()}),e._UZ(1,"i",9),e._uU(2," Collapse "),e.qZA()}}function L(h,D){if(1&h&&(e.ynx(0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-list"),e.YNc(3,B,2,1,"ng-container",2),e.qZA(),e.YNc(4,Q,3,0,"button",3),e.YNc(5,N,3,0,"button",3),e.qZA(),e.BQk()),2&h){const p=e.oxw();e.xp6(1),e.Q6J("nzTitle",p.listTitle),e.xp6(2),e.Q6J("ngForOf",p.participantList),e.xp6(1),e.Q6J("ngIf",p.participantList.length>p.defaultListSize),e.xp6(1),e.Q6J("ngIf",p.isExpanded)}}let w=(()=>{class h{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new e.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(p){var z;this.selectedItem=p.id==(null===(z=this.selectedItem)||void 0===z?void 0:z.id)?void 0:p,this.participantSelectedEvent.emit(this.selectedItem)}onExpandClicked(){this.originalDefaultListSize=this.defaultListSize,this.defaultListSize=this.participantList.length,this.isExpanded=!0}onCollapseClicked(){this.originalDefaultListSize&&(this.defaultListSize=this.originalDefaultListSize,this.isExpanded=!1)}}return h.\u0275fac=function(p){return new(p||h)},h.\u0275cmp=e.Xpm({type:h,selectors:[["cvc-participant-list"]],contentQueries:function(p,z,F){if(1&p&&e.Suo(F,y,5),2&p){let x;e.iGM(x=e.CRH())&&(z.itemTemplateRef=x.first)}},inputs:{participantList:"participantList",listTitle:"listTitle",defaultListSize:"defaultListSize",preselectedOption:"preselectedOption"},outputs:{participantSelectedEvent:"participantSelectedEvent"},decls:1,vars:1,consts:[[4,"ngIf"],["nz-type","inner",2,"margin-bottom","1em",3,"nzTitle"],[4,"ngFor","ngForOf"],["nz-button","","nzType","default","nzSize","small",3,"click",4,"ngIf"],["nzSize","small","class","participant-list-item",3,"selected-participant","click",4,"ngIf"],["nzSize","small",1,"participant-list-item",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","vertical-align-bottom"],["nz-icon","","nzType","vertical-align-top"]],template:function(p,z){1&p&&e.YNc(0,L,6,4,"ng-container",0),2&p&&e.Q6J("ngIf",z.participantList&&z.participantList.length>0)},directives:[v.O5,A.bd,t.n_,v.sg,t.AA,v.tP,P.ix,g.dQ,l.w,m.Ls],styles:[".participant-list-item[_ngcontent-%COMP%]:hover{border:1px solid #40a9ff;cursor:pointer}.participant-list-item[_ngcontent-%COMP%]{padding:2px;margin:2px}.selected-participant[_ngcontent-%COMP%]{background:#40a9ff;color:#fff}"]}),h})()},1150:(Y,S,n)=>{n.d(S,{N:()=>l});var e=n(9808),v=n(7484),A=n(3762),t=n(647),P=n(6042),g=n(5e3);let l=(()=>{class m{}return m.\u0275fac=function(R){return new(R||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[e.ez,v.vh,A.Ph,t.PV,P.sL]]}),m})()},2937:(Y,S,n)=>{n.d(S,{R:()=>A});var e=n(712),v=n(5e3);let A=(()=>{class t{transform(g,l="contributor-card",m=0){return"contributor-card"===l?this.contributorVerbiage(g,m):"action-filter"===l?this.actionFilterVerbiage(g):this.eventFeedVerbiage(g)}eventFeedVerbiage(g){switch(g){case e.AO2.Commented:return"added comment";case e.AO2.RevisionSuggested:return"suggested revision";case e.AO2.RevisionAccepted:return"accepted revision";case e.AO2.RevisionRejected:return"rejected revision";case e.AO2.RevisionSuperseded:return"accepted superseding revision";case e.AO2.Flagged:return"opened new flag";case e.AO2.FlagResolved:return"resolved flag";case e.AO2.AssertionSubmitted:return"submitted assertion";case e.AO2.AssertionAccepted:return"accepted assertion";case e.AO2.AssertionRejected:return"rejected assertion";case e.AO2.Submitted:return"submitted evidence item";case e.AO2.Accepted:return"accepted evidence item";case e.AO2.Rejected:return"rejected evidence item";case e.AO2.PublicationSuggested:return"created source suggestion";case e.AO2.CuratedSourceSuggestion:return"finished curating source suggestion";case e.AO2.RejectedSourceSuggestion:return"rejected source suggestion";case e.AO2.RequeuedSourceSuggestion:return"requeued source suggestion";case e.AO2.Reverted:return"reverted evidence item";case e.AO2.AssertionReverted:return"reverted assertion";default:throw new Error("Not handling all event action types yet")}}actionFilterVerbiage(g){switch(g){case e.AO2.Commented:return"commented";case e.AO2.RevisionSuggested:return"revision suggested";case e.AO2.RevisionAccepted:return"revision accepted";case e.AO2.RevisionRejected:return"revision rejected";case e.AO2.RevisionSuperseded:return"superseding revision accepted";case e.AO2.Flagged:return"flag opened";case e.AO2.FlagResolved:return"flag resolved";case e.AO2.AssertionSubmitted:return"assertion submitted";case e.AO2.AssertionAccepted:return"assertion accepted";case e.AO2.AssertionRejected:return"assertion rejected";case e.AO2.Submitted:return"evidence item submitted";case e.AO2.Accepted:return"evidence item accepted";case e.AO2.Rejected:return"evidence item rejected";case e.AO2.PublicationSuggested:return"source suggestion created";case e.AO2.CuratedSourceSuggestion:return"source suggestion curated";case e.AO2.RejectedSourceSuggestion:return"source suggestion rejected";case e.AO2.RequeuedSourceSuggestion:return"source suggestion requeued";case e.AO2.Reverted:return"evidence item reverted";case e.AO2.AssertionReverted:return"assertion reverted";default:throw new Error("Not handling all event action types yet")}}contributorVerbiage(g,l){switch(g){case e.AO2.Commented:return 1==l?"left a comment on this entity":`left ${l} comments on this entity`;case e.AO2.RevisionSuggested:return 1==l?"suggested a revision to this entity":`suggested ${l} revisions on this entity`;case e.AO2.RevisionAccepted:return 1==l?"accepted a revision to this entity":`accepted ${l} revisions on this entity`;case e.AO2.RevisionRejected:return 1==l?"rejected a revision to this entity":`rejected ${l} revisions on this entity`;case e.AO2.RevisionSuperseded:return 1==l?"accepted a superseding revision to this entity":`accepted ${l} superseding revisions on this entity`;case e.AO2.Flagged:return 1==l?"opened new flag on this entity":`opened ${l} new flags on this entity`;case e.AO2.FlagResolved:return 1==l?"resolved a flag on this entity":`resolved ${l} flags on this entity`;case e.AO2.AssertionSubmitted:return"submitted this assertion";case e.AO2.AssertionAccepted:return"accepted this assertion";case e.AO2.AssertionRejected:return"rejected this assertion";case e.AO2.Submitted:return"submitted this evidence item";case e.AO2.Accepted:return"accepted this evidence item";case e.AO2.Rejected:return"rejected this evidence item";case e.AO2.PublicationSuggested:return"";case e.AO2.CuratedSourceSuggestion:return"finished curating this source suggestion";case e.AO2.RejectedSourceSuggestion:return"rejected this source suggestion";case e.AO2.RequeuedSourceSuggestion:return"requeued this source suggestion";case e.AO2.AssertionReverted:return"reverted this assertion";case e.AO2.Reverted:return"reverted this evidence item";default:throw new Error("Not handling all event action types yet")}}}return t.\u0275fac=function(g){return new(g||t)},t.\u0275pipe=v.Yjl({name:"eventVerbiage",type:t,pure:!0}),t})()},2712:(Y,S,n)=>{n.d(S,{PD:()=>W,Zv:()=>K,FT:()=>H});var e=n(5e3),v=n(839),A=n(8929),t=n(9808),P=n(969),g=n(7625),l=n(226),m=n(647),y=n(925);const R=["template"];function M(s,f){if(1&s&&(e.ynx(0),e._uU(1),e.BQk()),2&s){const a=e.oxw(3);e.xp6(1),e.Oqu(a.nzLabel)}}function B(s,f){if(1&s&&(e.TgZ(0,"div",7),e.YNc(1,M,2,1,"ng-container",5),e.qZA()),2&s){const a=e.oxw(2);e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzLabel)}}function Q(s,f){if(1&s&&(e.ynx(0),e._uU(1),e.BQk()),2&s){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzDot)}}function N(s,f){if(1&s&&(e.TgZ(0,"li",1),e.YNc(1,B,2,1,"div",2),e._UZ(2,"div",3),e.TgZ(3,"div",4),e.YNc(4,Q,2,1,"ng-container",5),e.qZA(),e.TgZ(5,"div",6),e.Hsn(6),e.qZA(),e.qZA()),2&s){const a=e.oxw();e.ekj("ant-timeline-item-right","right"===(a.nzPosition||a.position))("ant-timeline-item-left","left"===(a.nzPosition||a.position))("ant-timeline-item-last",a.isLast),e.xp6(1),e.Q6J("ngIf",a.nzLabel),e.xp6(2),e.Udp("border-color",a.borderColor),e.ekj("ant-timeline-item-head-red","red"===a.nzColor)("ant-timeline-item-head-blue","blue"===a.nzColor)("ant-timeline-item-head-green","green"===a.nzColor)("ant-timeline-item-head-gray","gray"===a.nzColor)("ant-timeline-item-head-custom",!!a.nzDot),e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzDot)}}const L=["*"];function w(s,f){if(1&s&&e.GkF(0,4),2&s){e.oxw();const a=e.MAs(5);e.Q6J("ngTemplateOutlet",a)}}function h(s,f){}function D(s,f){if(1&s&&(e.ynx(0),e.YNc(1,h,0,0,"ng-template",4),e.BQk()),2&s){const a=f.$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",a.template)}}function p(s,f){if(1&s&&e.GkF(0,4),2&s){e.oxw();const a=e.MAs(5);e.Q6J("ngTemplateOutlet",a)}}function z(s,f){1&s&&e._UZ(0,"i",12)}function F(s,f){if(1&s&&(e.ynx(0),e._uU(1),e.YNc(2,z,1,0,"i",11),e.BQk()),2&s){const a=e.oxw(3);e.xp6(1),e.hij(" ",a.nzPendingDot," "),e.xp6(1),e.Q6J("ngIf",!a.nzPendingDot)}}function x(s,f){if(1&s&&(e.ynx(0),e._uU(1),e.BQk()),2&s){const a=e.oxw(3);e.xp6(1),e.hij(" ",a.isPendingBoolean?"":a.nzPending," ")}}function r(s,f){if(1&s&&(e.TgZ(0,"li",6),e._UZ(1,"div",7),e.TgZ(2,"div",8),e.YNc(3,F,3,2,"ng-container",9),e.qZA(),e.TgZ(4,"div",10),e.YNc(5,x,2,1,"ng-container",9),e.qZA(),e.qZA()),2&s){const a=e.oxw(2);e.xp6(3),e.Q6J("nzStringTemplateOutlet",a.nzPendingDot),e.xp6(2),e.Q6J("nzStringTemplateOutlet",a.nzPending)}}function u(s,f){if(1&s&&e.YNc(0,r,6,2,"li",5),2&s){const a=e.oxw();e.Q6J("ngIf",a.nzPending)}}const E=["red","blue","green","grey","gray"];let J=(()=>{class s{constructor(){this.check$=new v.t(1)}markForCheck(){this.check$.next()}}return s.\u0275fac=function(a){return new(a||s)},s.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac}),s})(),K=(()=>{class s{constructor(a,T){this.cdr=a,this.timelineService=T,this.nzColor="blue",this.isLast=!1,this.borderColor=null}ngOnChanges(a){this.timelineService.markForCheck(),a.nzColor&&this.updateCustomColor()}detectChanges(){this.cdr.detectChanges()}updateCustomColor(){this.borderColor=function d(s){return-1!==E.findIndex(f=>f===s)}(this.nzColor)?null:this.nzColor}}return s.\u0275fac=function(a){return new(a||s)(e.Y36(e.sBO),e.Y36(J))},s.\u0275cmp=e.Xpm({type:s,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(a,T){if(1&a&&e.Gf(R,5),2&a){let U;e.iGM(U=e.CRH())&&(T.template=U.first)}},inputs:{nzPosition:"nzPosition",nzColor:"nzColor",nzDot:"nzDot",nzLabel:"nzLabel"},exportAs:["nzTimelineItem"],features:[e.TTD],ngContentSelectors:L,decls:2,vars:0,consts:[["template",""],[1,"ant-timeline-item"],["class","ant-timeline-item-label",4,"ngIf"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],[1,"ant-timeline-item-label"]],template:function(a,T){1&a&&(e.F$t(),e.YNc(0,N,7,20,"ng-template",null,0,e.W1O))},directives:[t.O5,P.f],encapsulation:2,changeDetection:0}),s})(),W=(()=>{class s{constructor(a,T,U){this.cdr=a,this.timelineService=T,this.directionality=U,this.nzMode="left",this.nzReverse=!1,this.isPendingBoolean=!1,this.timelineItems=[],this.dir="ltr",this.hasLabelItem=!1,this.destroy$=new A.xQ}ngOnChanges(a){const{nzMode:T,nzReverse:U,nzPending:b}=a;($(T)||$(U))&&this.updateChildren(),b&&(this.isPendingBoolean=!0===b.currentValue)}ngOnInit(){var a;this.timelineService.check$.pipe((0,g.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),null===(a=this.directionality.change)||void 0===a||a.pipe((0,g.R)(this.destroy$)).subscribe(T=>{this.dir=T,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe((0,g.R)(this.destroy$)).subscribe(()=>{this.updateChildren()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateChildren(){if(this.listOfItems&&this.listOfItems.length){const a=this.listOfItems.length;let T=!1;this.listOfItems.forEach((U,b)=>{U.isLast=this.nzReverse?0===b:b===a-1,U.position=function V(s,f){return"custom"===f?void 0:"left"===f?"left":"right"===f?"right":"alternate"===f&&s%2==0?"left":"right"}(b,this.nzMode),!T&&U.nzLabel&&(T=!0),U.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=T}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}}return s.\u0275fac=function(a){return new(a||s)(e.Y36(e.sBO),e.Y36(J),e.Y36(l.Is,8))},s.\u0275cmp=e.Xpm({type:s,selectors:[["nz-timeline"]],contentQueries:function(a,T,U){if(1&a&&e.Suo(U,K,4),2&a){let b;e.iGM(b=e.CRH())&&(T.listOfItems=b)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:"nzReverse"},exportAs:["nzTimeline"],features:[e._Bn([J]),e.TTD],ngContentSelectors:L,decls:7,vars:15,consts:[[1,"ant-timeline"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngFor","ngForOf"],["pendingTemplate",""],[3,"ngTemplateOutlet"],["class","ant-timeline-item ant-timeline-item-pending",4,"ngIf"],[1,"ant-timeline-item","ant-timeline-item-pending"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head","ant-timeline-item-head-custom","ant-timeline-item-head-blue"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(a,T){1&a&&(e.F$t(),e.TgZ(0,"ul",0),e.YNc(1,w,1,1,"ng-container",1),e.YNc(2,D,2,1,"ng-container",2),e.YNc(3,p,1,1,"ng-container",1),e.qZA(),e.YNc(4,u,1,1,"ng-template",null,3,e.W1O),e.Hsn(6)),2&a&&(e.ekj("ant-timeline-label",T.hasLabelItem)("ant-timeline-right",!T.hasLabelItem&&"right"===T.nzMode)("ant-timeline-alternate","alternate"===T.nzMode||"custom"===T.nzMode)("ant-timeline-pending",!!T.nzPending)("ant-timeline-reverse",T.nzReverse)("ant-timeline-rtl","rtl"===T.dir),e.xp6(1),e.Q6J("ngIf",T.nzReverse),e.xp6(1),e.Q6J("ngForOf",T.timelineItems),e.xp6(1),e.Q6J("ngIf",!T.nzReverse))},directives:[t.O5,t.tP,t.sg,P.f,m.Ls],encapsulation:2,changeDetection:0}),s})();function $(s){return!(!s||s.previousValue===s.currentValue&&!s.isFirstChange())}let H=(()=>{class s{}return s.\u0275fac=function(a){return new(a||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[l.vT,t.ez,y.ud,m.PV,P.T]]}),s})()}}]); \ No newline at end of file diff --git a/server/public/4376.d1c8d351b50a66d5.js b/server/public/4376.d1c8d351b50a66d5.js deleted file mode 100644 index 0ec733210..000000000 --- a/server/public/4376.d1c8d351b50a66d5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4376],{8926:(w,Z,e)=>{e.d(Z,{A:()=>C});var o=e(5e3),I=e(2313);let C=(()=>{class T{constructor(x){this.sanitizer=x}transform(x,A){if(!A||""==A)return x;const N=new RegExp(A,"gi"),t=x.match(N);if(!t)return x;let O=x.replace(N,`${t[0]}`);return this.sanitizer.bypassSecurityTrustHtml(O)}}return T.\u0275fac=function(x){return new(x||T)(o.Y36(I.H7,16))},T.\u0275pipe=o.Yjl({name:"highlightTypeahead",type:T,pure:!0}),T})()},3416:(w,Z,e)=>{e.d(Z,{g:()=>S});var o=e(9808),I=e(4182),C=e(8776),T=e(3793),Q=e(8054),x=e(7338),A=e(8006),N=e(8390),t=e(915);const F={name:"disease-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Disease",helpText:"Please enter a disease name. If you are unable to locate the disease in the dropdown, please check the 'Could not find disease' checkbox below and enter the disease in the field that appears.",required:!1,addText:"Add a Disease",destroy$:new(e(8929).xQ)},fieldArray:{type:"cvc-disease-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(n,u,v)=>{var J,L;const P=null===(L=null===(J=null==v?void 0:v.parent)||void 0===J?void 0:J.templateOptions)||void 0===L?void 0:L.allowCreate;return void 0===P||P}}},defaultValue:[],validation:{messages:{required:(n,u)=>{const v=(null==u?void 0:u.form)?u.form.get("evidenceType"):null;return v?`${(0,t.E)(v.value)} Evidence requires a disease to be specified.`:"Disease is required."}}},hooks:{onInit:n=>{var u;const v=n.templateOptions,J=null===(u=null==n?void 0:n.options)||void 0===u?void 0:u.formState,L=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;!L||(v.vcSub=L.valueChanges.subscribe(P=>{J.requiresDisease(P)?(v.hidden=!1,v.required=!0):(v.hidden=!0,v.required=!1,n.model.length>0&&(n.model.splice(1),v.remove(0)))}))},onDestroy:n=>{const u=n.templateOptions;u.vcSub&&u.vcSub.unsubscribe()}}}};var p=e(5e3);let S=(()=>{class n{}return n.\u0275fac=function(v){return new(v||n)},n.\u0275mod=p.oAB({type:n}),n.\u0275inj=p.cJS({imports:[[o.ez,I.u5,I.UX,Q.LV,x.z,T.F,C.X0.forChild({types:[F]}),A.I,N.N]]}),n})()},8006:(w,Z,e)=>{e.d(Z,{I:()=>z});var o=e(9808),I=e(8776),C=e(7625),T=e(373),Q=e(4850),x=e(8929),A=e(591),N=e(6123),t=e(5e3),O=e(712),E=e(9169),F=e(8054),p=e(4182),S=e(6949),n=e(8144),u=e(3618),v=e(4022),J=e(822),L=e(2683),P=e(1047),B=e(6042),$=e(2643),Y=e(8926);function l(s,M){if(1&s&&(t._UZ(0,"span",10),t.ALo(1,"highlightTypeahead")),2&s){const i=t.oxw().$implicit,f=t.oxw(3);t.Q6J("innerHtml",t.xi3(1,1,i.label,f.to.searchString),t.oJD)}}function m(s,M){if(1&s&&(t._UZ(0,"span",11),t.ALo(1,"highlightTypeahead")),2&s){const i=t.oxw().$implicit,f=t.oxw(3);t.Q6J("innerHtml",t.xi3(1,1,i.disease.diseaseAliases.join(", "),f.to.searchString),t.oJD)}}function r(s,M){if(1&s&&(t.TgZ(0,"nz-option",7),t.TgZ(1,"nz-space"),t.YNc(2,l,2,4,"span",8),t.YNc(3,m,2,4,"span",9),t.qZA(),t.qZA()),2&s){const i=M.$implicit;t.Q6J("nzLabel",i.tooltip)("nzValue",i.disease)}}function a(s,M){if(1&s&&(t.ynx(0),t.YNc(1,r,4,2,"nz-option",6),t.BQk()),2&s){const i=M.ngrxLet;t.xp6(1),t.Q6J("ngForOf",i)}}function g(s,M){1&s&&t._uU(0," No disease found in CIViC that matches the string provided. ")}function y(s,M){if(1&s){const i=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",3),t.NdJ("nzOnSearch",function(h){return t.CHM(i),t.oxw().to.onSearch(h)}),t.YNc(2,a,2,1,"ng-container",4),t.qZA(),t.YNc(3,g,1,0,"ng-template",null,5,t.W1O),t.BQk()}if(2&s){const i=t.MAs(4),f=t.oxw(),h=t.MAs(4);t.xp6(1),t.Q6J("formControl",f.formControl)("formlyAttributes",f.field)("nzPlaceHolder",f.to.placeholder?f.to.placeholder:null)("nzDropdownRender",f.to.allowCreate?h:null)("nzNotFoundContent",i)("nzShowArrow",f.to.showArrow)("nzFilterOption",f.to.filterOption),t.xp6(1),t.Q6J("ngrxLet",f.diseases$)}}function U(s,M){if(1&s&&t._UZ(0,"cvc-disease-tag",12),2&s){const i=t.oxw();t.Q6J("disease",i.formControl.value)}}function X(s,M){if(1&s&&t._UZ(0,"cvc-form-errors-alert",18),2&s){const i=t.oxw(4);t.Q6J("errors",i.errorMessages)}}function W(s,M){if(1&s){const i=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(i);const h=t.oxw(4);return h.addDisease(h.to.searchString)}),t._UZ(1,"i",20),t._uU(2,"No Existing CIViC Disease\xa0"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5,"\xa0found. Create A New Disease? "),t.qZA()}if(2&s){const i=t.oxw(4);t.Q6J("nzLoading",i.loading),t.xp6(4),t.Oqu(i.to.searchString)}}function H(s,M){if(1&s){const i=t.EpF();t.ynx(0),t.YNc(1,X,1,1,"cvc-form-errors-alert",14),t.TgZ(2,"nz-input-group",15),t.TgZ(3,"input",16),t.NdJ("ngModelChange",function(h){return t.CHM(i),t.oxw(3).enteredDoid=h}),t.qZA(),t.qZA(),t.YNc(4,W,6,2,"button",17),t.BQk()}if(2&s){const i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.errorMessages.length>0),t.xp6(2),t.Q6J("ngModel",i.enteredDoid),t.xp6(1),t.Q6J("ngIf",0==i.errorMessages.length)}}function j(s,M){if(1&s&&(t.ynx(0),t.YNc(1,H,5,3,"ng-container",13),t.BQk()),2&s){const i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",""!==i.to.searchString&&i.to.searchString.length>=5)}}function R(s,M){if(1&s&&(t.YNc(0,j,2,1,"ng-container",13),t.ALo(1,"ngrxPush")),2&s){const i=t.oxw();t.Q6J("ngIf",t.lcZ(1,1,i.displayAdd$))}}const d={name:"cvc-disease-input",component:(()=>{class s extends I.fS{constructor(i,f,h){super(),this.diseaseTypeaheadQuery=i,this.networkErrorService=f,this.addDiseaseGQL=h,this.destroy$=new x.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.enteredDoid="",this.displayAdd$=new A.X(!1),this.addDiseaseMutator=new N.U(f),this.defaultOptions={templateOptions:{placeholder:"Search Diseases",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.diseaseTypeaheadQuery.watch({name:"zzzz"}),this.diseases$=this.queryRef.valueChanges.pipe((0,C.R)(this.destroy$),(0,T.j)("data","diseaseTypeahead"),(0,Q.U)(i=>i.map(h=>{let D=h.doid?`DOID:${h.doid}`:"no DOID",k=h.diseaseAliases.length>0?`Aliases: ${h.diseaseAliases.join(", ")}`:"";return{value:h.id,tooltip:`${h.displayName} (${D}) ${k}`,label:`${h.displayName} (${D})`,disease:h}})))}ngAfterViewInit(){this.to.onSearch=i=>{i.length{this.displayAdd$.next(0==f.data.diseaseTypeahead.filter(h=>h.displayName.toUpperCase()==i.toUpperCase()).length)}))}}addDisease(i){if(i&&""!=i){let h=this.addDiseaseMutator.mutate(this.addDiseaseGQL,{name:i,doid:+this.enteredDoid?+this.enteredDoid:void 0},D=>{var k;null===(k=this.field.formControl)||void 0===k||k.setValue({id:D.addDisease.disease.id,name:D.addDisease.disease.name}),this.to.searchString="",this.to.searchLength=0});h.submitSuccess$.pipe((0,C.R)(this.destroy$)).subscribe(D=>{D&&(this.success=!0)}),h.submitError$.pipe((0,C.R)(this.destroy$)).subscribe(D=>{D&&(this.errorMessages=D,this.success=!1)}),h.isSubmitting$.pipe((0,C.R)(this.destroy$)).subscribe(D=>{this.loading=D})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return s.\u0275fac=function(i){return new(i||s)(t.Y36(O.kv3),t.Y36(E.Y),t.Y36(O.KNk))},s.\u0275cmp=t.Xpm({type:s,selectors:[["cvc-disease-input-type"]],features:[t.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["diseaseListItem",""],["addDiseaseTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml",4,"nzSpaceItem"],[3,"innerHtml"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"disease"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nzAddOnBefore","DOID:"],["type","text","nz-input","","placeholder","Optional DOID",3,"ngModel","ngModelChange"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(i,f){if(1&i&&(t.YNc(0,y,5,8,"ng-container",0),t.YNc(1,U,1,1,"ng-template",null,1,t.W1O),t.YNc(3,R,2,3,"ng-template",null,2,t.W1O)),2&i){const h=t.MAs(2);t.Q6J("ngIf",!(null!=f.formControl.value&&f.formControl.value.id))("ngIfElse",h)}},directives:[o.O5,F.Vq,p.JJ,p.oH,I.VQ,S.eJ,o.sg,F.Ip,n.NU,n.$1,u.ZU,v.n,J.V,L.w,P.gB,P.Zp,p.Fj,p.On,B.ix,$.dQ],pipes:[Y.A,S.fM],styles:[""]}),s})()};var V=e(3580),c=e(7008),_=e(9444);let z=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[o.ez,p.UX,S.WG,I.X0.forChild({types:[d]}),F.LV,V.Q,u.ZJ,n.zf,B.sL,c.B,P.o7,p.u5,_.s]]}),s})()},5926:(w,Z,e)=>{e.d(Z,{J:()=>F});var o=e(9808),I=e(4182),C=e(8776),T=e(3793),Q=e(304),x=e(8054),A=e(4181),N=e(8390);const O={name:"variant-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant",helpText:"Description of the type of variant (e.g., V600E, BCR-ABL fusion, Loss-of-function, exon 12 mutations). Should be as specific as possible (i.e., specific amino acid changes).",required:!1,addText:"Specify a Variant"},fieldArray:{type:"variant-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(p,S,n)=>{var u,v;const J=null===(v=null===(u=null==n?void 0:n.parent)||void 0===u?void 0:u.templateOptions)||void 0===v?void 0:v.allowCreate;return void 0===J||J}}},hideExpression:(p,S,n)=>{const u=(null==n?void 0:n.form)?n.form.get("gene"):null;return!u||!u.value||!u.value[0]},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Variant be specified."}}}};var E=e(5e3);let F=(()=>{class p{}return p.\u0275fac=function(n){return new(n||p)},p.\u0275mod=E.oAB({type:p}),p.\u0275inj=E.cJS({imports:[[o.ez,I.u5,I.UX,x.LV,Q.F,T.F,C.X0.forChild({types:[O]}),A.O,N.N]]}),p})()},4181:(w,Z,e)=>{e.d(Z,{O:()=>G});var o=e(9808),I=e(6123),C=e(8776),T=e(8929),Q=e(591),x=e(373),A=e(4850),N=e(7625),t=e(5e3),O=e(712),E=e(9169),F=e(8054),p=e(4182),S=e(8664),n=e(822),u=e(6042),v=e(2643),J=e(2683),L=e(647),P=e(6949),B=e(8926);function $(d,V){if(1&d&&(t.TgZ(0,"nz-option",6),t._UZ(1,"span",7),t.ALo(2,"highlightTypeahead"),t.qZA()),2&d){const c=V.$implicit,_=t.oxw(2);t.Q6J("nzValue",c.variant),t.xp6(1),t.Q6J("innerHtml",t.xi3(2,2,c.label,_.to.searchString),t.oJD)}}function Y(d,V){1&d&&t._uU(0," No variant found in CIViC that matches the string provided. ")}function l(d,V){if(1&d){const c=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",3),t.NdJ("nzOnSearch",function(z){return t.CHM(c),t.oxw().to.onSearch(z)}),t.YNc(2,$,3,5,"nz-option",4),t.ALo(3,"ngrxPush"),t.qZA(),t.YNc(4,Y,1,0,"ng-template",null,5,t.W1O),t.BQk()}if(2&d){const c=t.MAs(5),_=t.oxw(),z=t.MAs(4);t.xp6(1),t.Q6J("formControl",_.formControl)("formlyAttributes",_.field)("nzPlaceHolder",_.to.placeholder?_.to.placeholder:null)("nzDropdownRender",_.to.allowCreate?z:null)("nzNotFoundContent",c)("nzShowArrow",_.to.showArrow),t.xp6(1),t.Q6J("ngForOf",t.lcZ(3,7,_.variants$))}}function m(d,V){if(1&d&&t._UZ(0,"cvc-variant-tag",8),2&d){const c=t.oxw();t.Q6J("variant",c.formControl.value)}}function r(d,V){if(1&d&&t._UZ(0,"cvc-form-errors-alert",12),2&d){const c=t.oxw(4);t.Q6J("errors",c.errorMessages)}}function a(d,V){if(1&d){const c=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(c);const z=t.oxw(4);return z.addVariant(z.to.searchString)}),t._UZ(1,"i",14),t._uU(2,"No Existing CIViC Variant\xa0"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5,"\xa0found. Create A New Variant? "),t.qZA()}if(2&d){const c=t.oxw(4);t.Q6J("nzLoading",c.loading),t.xp6(4),t.Oqu(c.to.searchString)}}function g(d,V){if(1&d&&(t.ynx(0),t.YNc(1,r,1,1,"cvc-form-errors-alert",10),t.YNc(2,a,6,2,"button",11),t.BQk()),2&d){const c=t.oxw(3);t.xp6(1),t.Q6J("ngIf",c.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",0==c.errorMessages.length)}}function y(d,V){if(1&d&&(t.ynx(0),t.YNc(1,g,3,2,"ng-container",9),t.BQk()),2&d){const c=t.oxw(2);t.xp6(1),t.Q6J("ngIf",""!==c.to.searchString)}}function U(d,V){if(1&d&&(t.YNc(0,y,2,1,"ng-container",9),t.ALo(1,"ngrxPush")),2&d){const c=t.oxw();t.Q6J("ngIf",t.lcZ(1,1,c.displayAdd$))}}const W={name:"variant-input",component:(()=>{class d extends C.fS{constructor(c,_,z){super(),this.variantTypeaheadQuery=c,this.networkErrorService=_,this.addVariantGQL=z,this.destroy$=new T.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new Q.X(!1),this.addVariantMutator=new I.U(_),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(s,M,i)=>{var f,h;let D=null===(h=null===(f=null==i?void 0:i.parent)||void 0===f?void 0:f.parent)||void 0===h?void 0:h.model;if(D&&D.gene&&D.gene[0])return D.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,x.j)("data","variants","nodes"),(0,A.U)(c=>c.map(z=>({value:z.id,label:z.name,variant:z}))))}ngAfterViewInit(){this.to.onSearch=c=>{c.length{this.displayAdd$.next(0==_.data.variants.nodes.filter(z=>z.name.toUpperCase()==c.toUpperCase()).length)}))}}addVariant(c){if(c&&""!=c&&this.to.geneId){let _=this.addVariantMutator.mutate(this.addVariantGQL,{name:c,geneId:this.to.geneId},z=>{var s;null===(s=this.field.formControl)||void 0===s||s.setValue({id:z.addVariant.variant.id,name:z.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});_.submitSuccess$.pipe((0,N.R)(this.destroy$)).subscribe(z=>{z&&(this.success=!0)}),_.submitError$.pipe((0,N.R)(this.destroy$)).subscribe(z=>{z&&(this.errorMessages=z,this.success=!1)}),_.isSubmitting$.pipe((0,N.R)(this.destroy$)).subscribe(z=>{this.loading=z})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return d.\u0275fac=function(c){return new(c||d)(t.Y36(O._eC),t.Y36(E.Y),t.Y36(O.LUc))},d.\u0275cmp=t.Xpm({type:d,selectors:[["cvc-variant-input-type"]],features:[t.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(c,_){if(1&c&&(t.YNc(0,l,6,9,"ng-container",0),t.YNc(1,m,1,1,"ng-template",null,1,t.W1O),t.YNc(3,U,2,3,"ng-template",null,2,t.W1O)),2&c){const z=t.MAs(2);t.Q6J("ngIf",!(null!=_.formControl.value&&_.formControl.value.id))("ngIfElse",z)}},directives:[o.O5,F.Vq,p.JJ,p.oH,C.VQ,o.sg,F.Ip,S.I,n.V,u.ix,v.dQ,J.w,L.Ls],pipes:[P.fM,B.A],styles:[""],changeDetection:0}),d})()};var H=e(4867),j=e(7008),R=e(9444);let G=(()=>{class d{}return d.\u0275fac=function(c){return new(c||d)},d.\u0275mod=t.oAB({type:d}),d.\u0275inj=t.cJS({imports:[[o.ez,p.UX,P.WG,C.X0.forChild({types:[W]}),F.LV,u.sL,L.PV,H.Q,j.B,R.s]]}),d})()},5472:(w,Z,e)=>{e.d(Z,{r:()=>F});var o=e(9808),I=e(6949),C=e(8776),T=e(7484),Q=e(5482),x=e(1894),A=e(5109),N=e(6789),t=e(5e3);const E={wrappers:[{name:"form-container",component:(()=>{class p extends C.n2{}return p.\u0275fac=function(){let S;return function(u){return(S||(S=t.n5z(p)))(u||p)}}(),p.\u0275cmp=t.Xpm({type:p,selectors:[["cvc-form-container-wrapper"]],features:[t.qOj],decls:5,vars:1,consts:[["nzSpan","24"],["nzSize","default",3,"nzTitle"],["fieldComponent",""]],template:function(n,u){1&n&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",0),t.TgZ(2,"nz-card",1),t.GkF(3,null,2),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.xp6(2),t.Q6J("nzTitle",u.to.label))},directives:[x.SK,x.t3,T.bd],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),p})()}]};let F=(()=>{class p{}return p.\u0275fac=function(n){return new(n||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({imports:[[o.ez,I.WG,C.X0.forChild(E),x.Jb,T.vh,Q.cD,N._,A.s]]}),p})()},7338:(w,Z,e)=>{e.d(Z,{z:()=>r});var o=e(9808),I=e(9444),C=e(6949),T=e(8776),Q=e(7484),x=e(5482),A=e(4546),N=e(1894),t=e(647),O=e(3610),E=e(8144),F=e(3618),p=e(5109),S=e(6789),n=e(5e3),u=e(2313);let v=(()=>{class a{constructor(y){this.sanitizer=y}transform(y){return this.sanitizer.bypassSecurityTrustHtml(y)}}return a.\u0275fac=function(y){return new(y||a)(n.Y36(u.H7,16))},a.\u0275pipe=n.Yjl({name:"sanitizeHtml",type:a,pure:!0}),a})();function J(a,g){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const y=n.oxw(2);n.xp6(1),n.Oqu(y.to.label)}}function L(a,g){if(1&a&&n._UZ(0,"i",11),2&a){n.oxw();const y=n.MAs(3);n.Q6J("nzPopoverContent",y)}}function P(a,g){if(1&a&&(n._UZ(0,"span",12),n.ALo(1,"sanitizeHtml")),2&a){const y=n.oxw(3);n.Q6J("innerHtml",n.lcZ(1,1,y.to.helpText),n.oJD)}}function B(a,g){1&a&&(n.ynx(0),n.YNc(1,L,1,1,"i",9),n.YNc(2,P,2,3,"ng-template",null,10,n.W1O),n.BQk())}function $(a,g){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-form-label",7),n.TgZ(2,"nz-space"),n.YNc(3,J,2,1,"span",8),n.YNc(4,B,4,0,"ng-container",1),n.qZA(),n.qZA(),n.BQk()),2&a){const y=n.oxw();n.xp6(1),n.Q6J("nzRequired",y.to.required&&!0!==y.to.hideRequiredMarker)("nzFor",y.id),n.xp6(3),n.Q6J("ngIf",y.to.helpText)}}const Y=function(a){return{hidden:a}},m={wrappers:[{name:"form-field",component:(()=>{class a extends T.n2{get errorState(){return this.showError?"error":""}}return a.\u0275fac=function(){let g;return function(U){return(g||(g=n.n5z(a)))(U||a)}}(),a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-form-field-wrapper"]],features:[n.qOj],decls:10,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"nzValidateStatus"],["fieldComponent",""],["nzType","danger"],[3,"field"],["nzType","secondary"],[3,"nzRequired","nzFor"],[4,"nzSpaceItem"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent",4,"nzSpaceItem"],["help",""],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent"],[3,"innerHtml"]],template:function(y,U){1&y&&(n.TgZ(0,"div",0),n.TgZ(1,"nz-form-item"),n.YNc(2,$,5,3,"ng-container",1),n.TgZ(3,"nz-form-control",2),n.GkF(4,null,3),n.qZA(),n.TgZ(6,"nz-typography",4),n._UZ(7,"formly-validation-message",5),n.qZA(),n.TgZ(8,"nz-typography",6),n._uU(9),n.qZA(),n.qZA(),n.qZA()),2&y&&(n.Q6J("ngClass",n.VKq(5,Y,!0===U.to.hidden)),n.xp6(2),n.Q6J("ngIf",U.to.label&&!0!==U.to.hideLabel),n.xp6(1),n.Q6J("nzValidateStatus",U.errorState),n.xp6(4),n.Q6J("field",U.field),n.xp6(2),n.hij(" ",U.to.optionText," "))},directives:[o.mk,N.SK,A.Nx,o.O5,N.t3,A.iK,E.NU,E.$1,t.Ls,O.lU,A.Fd,F.ZU,T.u_],pipes:[v],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),a})()}]};let r=(()=>{class a{}return a.\u0275fac=function(y){return new(y||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[[o.ez,C.WG,T.X0.forChild(m),N.Jb,Q.vh,x.cD,S._,p.s,A.U5,t.PV,E.zf,O.$6,I.s,F.ZJ]]}),a})()},6559:(w,Z,e)=>{e.d(Z,{ng:()=>$,H0:()=>Y});var o=e(5e3),I=e(1721),C=e(655),T=e(9808),Q=e(226);const A=["nzType","avatar"];function O(l,m){if(1&l&&(o.TgZ(0,"div",5),o._UZ(1,"nz-skeleton-element",6),o.qZA()),2&l){const r=o.oxw(2);o.xp6(1),o.Q6J("nzSize",r.avatar.size||"default")("nzShape",r.avatar.shape||"circle")}}function E(l,m){if(1&l&&o._UZ(0,"h3",7),2&l){const r=o.oxw(2);o.Udp("width",r.toCSSUnit(r.title.width))}}function F(l,m){if(1&l&&o._UZ(0,"li"),2&l){const r=m.index,a=o.oxw(3);o.Udp("width",a.toCSSUnit(a.widthList[r]))}}function p(l,m){if(1&l&&(o.TgZ(0,"ul",8),o.YNc(1,F,1,2,"li",9),o.qZA()),2&l){const r=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",r.rowsList)}}function S(l,m){if(1&l&&(o.ynx(0),o.YNc(1,O,2,2,"div",1),o.TgZ(2,"div",2),o.YNc(3,E,1,2,"h3",3),o.YNc(4,p,2,1,"ul",4),o.qZA(),o.BQk()),2&l){const r=o.oxw();o.xp6(1),o.Q6J("ngIf",!!r.nzAvatar),o.xp6(2),o.Q6J("ngIf",!!r.nzTitle),o.xp6(1),o.Q6J("ngIf",!!r.nzParagraph)}}function n(l,m){1&l&&(o.ynx(0),o.Hsn(1),o.BQk())}const u=["*"];let v=(()=>{class l{constructor(){this.nzActive=!1,this.nzBlock=!1}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275dir=o.lG2({type:l,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(r,a){2&r&&o.ekj("ant-skeleton-active",a.nzActive)("ant-skeleton-block",a.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,C.gn)([(0,I.yF)()],l.prototype,"nzBlock",void 0),l})(),L=(()=>{class l{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(r){if(r.nzSize&&"number"==typeof this.nzSize){const a=`${this.nzSize}px`;this.styleMap={width:a,height:a,"line-height":a}}else this.styleMap={}}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275cmp=o.Xpm({type:l,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[o.TTD],attrs:A,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(r,a){1&r&&o._UZ(0,"span",0),2&r&&(o.ekj("ant-skeleton-avatar-square","square"===a.nzShape)("ant-skeleton-avatar-circle","circle"===a.nzShape)("ant-skeleton-avatar-lg","large"===a.nzSize)("ant-skeleton-avatar-sm","small"===a.nzSize),o.Q6J("ngStyle",a.styleMap))},directives:[T.PC],encapsulation:2,changeDetection:0}),l})(),$=(()=>{class l{constructor(r,a,g){this.cdr=r,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],a.addClass(g.nativeElement,"ant-skeleton")}toCSSUnit(r=""){return(0,I.WX)(r)}getTitleProps(){const r=!!this.nzAvatar,a=!!this.nzParagraph;let g="";return!r&&a?g="38%":r&&a&&(g="50%"),Object.assign({width:g},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const r=!!this.nzAvatar,a=!!this.nzTitle,g={};return(!r||!a)&&(g.width="61%"),g.rows=!r&&a?3:2,Object.assign(Object.assign({},g),this.getProps(this.nzParagraph))}getProps(r){return r&&"object"==typeof r?r:{}}getWidthList(){const{width:r,rows:a}=this.paragraph;let g=[];return r&&Array.isArray(r)?g=r:r&&!Array.isArray(r)&&(g=[],g[a-1]=r),g}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(r){(r.nzTitle||r.nzAvatar||r.nzParagraph)&&this.updateProps()}}return l.\u0275fac=function(r){return new(r||l)(o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(o.SBq))},l.\u0275cmp=o.Xpm({type:l,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(r,a){2&r&&o.ekj("ant-skeleton-with-avatar",!!a.nzAvatar)("ant-skeleton-active",a.nzActive)("ant-skeleton-round",!!a.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[o.TTD],ngContentSelectors:u,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(r,a){1&r&&(o.F$t(),o.YNc(0,S,5,3,"ng-container",0),o.YNc(1,n,2,0,"ng-container",0)),2&r&&(o.Q6J("ngIf",a.nzLoading),o.xp6(1),o.Q6J("ngIf",!a.nzLoading))},directives:[L,T.O5,v,T.sg],encapsulation:2,changeDetection:0}),l})(),Y=(()=>{class l{}return l.\u0275fac=function(r){return new(r||l)},l.\u0275mod=o.oAB({type:l}),l.\u0275inj=o.cJS({imports:[[Q.vT,T.ez]]}),l})()}}]); \ No newline at end of file diff --git a/server/public/4584.94bce0e7cd7772b3.js b/server/public/4584.94bce0e7cd7772b3.js new file mode 100644 index 000000000..6e26cbfdb --- /dev/null +++ b/server/public/4584.94bce0e7cd7772b3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4584],{8616:(F,M,t)=>{t.d(M,{u:()=>o});var p=t(5e3),n=t(685),e=t(1912),C=t(3618),z=t(647);function i(l,s){1&l&&(p.TgZ(0,"span"),p._uU(1," You must be logged in to view this page. "),p.qZA())}function _(l,s){1&l&&p._UZ(0,"cvc-login-button")}function h(l,s){1&l&&(p.TgZ(0,"nz-typography",4),p._UZ(1,"i",5),p.qZA())}let o=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=p.Xpm({type:l,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(d,u){if(1&d&&(p.TgZ(0,"nz-empty",0),p.YNc(1,i,2,0,"ng-template",null,1,p.W1O),p.YNc(3,_,1,0,"ng-template",null,2,p.W1O),p.qZA(),p.YNc(5,h,2,0,"ng-template",null,3,p.W1O)),2&d){const O=p.MAs(2),a=p.MAs(4),D=p.MAs(6);p.Q6J("nzNotFoundImage",D)("nzNotFoundContent",O)("nzNotFoundFooter",a)}},directives:[n.p9,e.s,C.ZU,z.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),l})()},9386:(F,M,t)=>{t.d(M,{a:()=>_});var p=t(9808),n=t(1844),e=t(685),C=t(647),z=t(3618),i=t(5e3);let _=(()=>{class h{}return h.\u0275fac=function(l){return new(l||h)},h.\u0275mod=i.oAB({type:h}),h.\u0275inj=i.cJS({imports:[[p.ez,n.B,e.Xo,C.PV,z.ZJ]]}),h})()},7701:(F,M,t)=>{t.d(M,{j:()=>A});var p=t(6654),n=t(5e3),e=t(9808),C=t(325),z=t(8481),i=t(3610),_=t(4850),h=t(712),o=t(7484),l=t(647),s=t(6550),d=t(3098),u=t(6949);function O(c,x){if(1&c&&(n._UZ(0,"i",7),n._uU(1)),2&c){const v=n.oxw().ngIf;n.xp6(1),n.hij(" ",v.name," ")}}function a(c,x){if(1&c&&(n.TgZ(0,"cvc-link-tag",9),n._uU(1),n.qZA()),2&c){const v=n.oxw(2).ngIf;n.Q6J("href",v.url),n.xp6(1),n.hij(" ",v.soid," ")}}function D(c,x){if(1&c&&n.YNc(0,a,2,2,"cvc-link-tag",8),2&c){const v=n.oxw().ngIf;n.Q6J("ngIf","N/A"!=v.soid)}}function L(c,x){if(1&c&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,O,2,1,"ng-template",null,3,n.W1O),n.YNc(4,D,1,1,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.TgZ(7,"nz-descriptions-item",6),n._uU(8),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&c){const v=x.ngIf,V=n.MAs(3),B=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",V)("nzExtra",B),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",v.variantCount," ")}}let Z=(()=>{class c{constructor(v){this.gql=v}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,_.U)(({data:v})=>v.variantTypePopover))}}return c.\u0275fac=function(v){return new(v||c)(n.Y36(h.tw_))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(v,V){1&v&&(n.TgZ(0,"div",0),n.YNc(1,L,9,4,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&v&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,V.variantType$)))},directives:[e.O5,o.bd,l.Ls,s.l,d.R7,d.uj],pipes:[u.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),c})();function S(c,x){}function N(c,x){if(1&c&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,S,0,0,"ng-template",6),n.qZA(),n.BQk()),2&c){const v=n.oxw(),V=n.MAs(2);n.xp6(1),n.Q6J("routerLink",v.variantType.link),n.xp6(1),n.Q6J("ngTemplateOutlet",V)}}function y(c,x){}function P(c,x){if(1&c&&(n.TgZ(0,"nz-tag",9),n.YNc(1,y,0,0,"ng-template",6),n.qZA()),2&c){n.oxw();const v=n.MAs(2);n.oxw();const V=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",v),n.xp6(1),n.Q6J("ngTemplateOutlet",V)}}function f(c,x){if(1&c&&n._UZ(0,"cvc-variant-type-popover",10),2&c){const v=n.oxw(2);n.Q6J("variantTypeId",v.variantType.id)}}function E(c,x){if(1&c&&(n.YNc(0,P,2,3,"nz-tag",7),n.YNc(1,f,1,1,"ng-template",null,8,n.W1O)),2&c){const v=n.oxw(),V=n.MAs(6);n.Q6J("ngIf",v.enablePopover)("ngIfElse",V)}}function m(c,x){}function I(c,x){if(1&c&&n.YNc(0,m,0,0,"ng-template",6),2&c){n.oxw();const v=n.MAs(2);n.Q6J("ngTemplateOutlet",v)}}function r(c,x){}function g(c,x){if(1&c&&(n.TgZ(0,"nz-tag"),n.YNc(1,r,0,0,"ng-template",6),n.qZA()),2&c){n.oxw();const v=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",v)}}function T(c,x){if(1&c&&(n._UZ(0,"i",11),n._uU(1)),2&c){const v=n.oxw();n.xp6(1),n.hij(" ",v.variantType.name,"\n")}}let A=(()=>{class c extends p.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return c.\u0275fac=function(v){return new(v||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(v,V){if(1&v&&(n.YNc(0,N,3,2,"ng-container",0),n.YNc(1,E,3,2,"ng-template",null,1,n.W1O),n.YNc(3,I,1,1,"ng-template",null,2,n.W1O),n.YNc(5,g,2,1,"ng-template",null,3,n.W1O),n.YNc(7,T,2,1,"ng-template",null,4,n.W1O)),2&v){const B=n.MAs(4);n.Q6J("ngIf",V.linked)("ngIfElse",B)}},directives:[e.O5,C.yS,e.tP,z.j,i.lU,Z,l.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),c})()},8645:(F,M,t)=>{t.d(M,{M:()=>d});var p=t(9808),n=t(325),e=t(8481),C=t(7484),z=t(3630),i=t(3098),_=t(6949),h=t(647),o=t(5e3);let l=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=o.oAB({type:u}),u.\u0275inj=o.cJS({imports:[[p.ez,_.WG,h.PV,C.vh,i.q6,z.X]]}),u})();var s=t(3610);let d=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=o.oAB({type:u}),u.\u0275inj=o.cJS({imports:[[p.ez,n.Bz,h.PV,e.X,s.$6,l]]}),u})()},9990:(F,M,t)=>{t.d(M,{M:()=>l});var p=t(9808),n=t(8776),e=t(5e3),C=t(656),z=t(4182);const _={name:"ensembl-version",validation:(s,d)=>{if(void 0===s.value)return null;{let u=+s.value;return u<75||u>150?{"ensembl-version":!0}:null}}},h={name:"ensembl-version",message:(s,d)=>{var u;return`${null===(u=d.formControl)||void 0===u?void 0:u.value} is not a valid version of Ensembl. Must be an number between 75 and the latest version of Ensembl.`}},o={name:"cvc-ensembl-input",component:(()=>{class s extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{label:"Ensembl Version",helpText:"Enter a valid Ensembl database version (e.g. 75)."},validators:{validation:["ensembl-version"]}}}}return s.\u0275fac=function(){let d;return function(O){return(d||(d=e.n5z(s)))(O||s)}}(),s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-ensembl-input-type"]],features:[e.qOj],decls:1,vars:2,consts:[[3,"formControl","formlyAttributes"]],template:function(u,O){1&u&&e._UZ(0,"nz-input-number",0),2&u&&e.Q6J("formControl",O.formControl)("formlyAttributes",O.field)},directives:[C._,z.JJ,z.oH,n.VQ],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),s})(),wrappers:["form-field"]};let l=(()=>{class s{}return s.\u0275fac=function(u){return new(u||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[p.ez,z.u5,z.UX,n.X0.forChild({types:[o],validators:[_],validationMessages:[h]}),C.Z]]}),s})()},7462:(F,M,t)=>{t.d(M,{o:()=>h});var p=t(9808),n=t(8776),e=t(5e3),C=t(1047),z=t(4182);const _={name:"cvc-textarea",component:(()=>{class o extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return o.\u0275fac=function(){let l;return function(d){return(l||(l=e.n5z(o)))(d||o)}}(),o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-textarea-base-type"]],features:[e.qOj],decls:1,vars:4,consts:[["nz-input","",3,"formControl","formlyAttributes","nzAutosize","placeholder"]],template:function(s,d){1&s&&e._UZ(0,"textarea",0),2&s&&e.Q6J("formControl",d.formControl)("formlyAttributes",d.field)("nzAutosize",d.to.autosize)("placeholder",d.to.placeholder)},directives:[C.Zp,z.Fj,C.rh,z.JJ,z.oH,n.VQ],styles:[""],changeDetection:0}),o})(),wrappers:["form-field"]};let h=(()=>{class o{}return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.ez,z.u5,z.UX,n.X0.forChild({types:[_]}),C.o7]]}),o})()},9911:(F,M,t)=>{t.d(M,{G:()=>h});var p=t(9808),n=t(8776),e=t(5e3),C=t(7484);const i={name:"variant-coordinates-card",component:(()=>{class o extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{isFusionVariant:!1}}}}return o.\u0275fac=function(){let l;return function(d){return(l||(l=e.n5z(o)))(d||o)}}(),o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-variant-coordinates-card-type"]],features:[e.qOj],decls:3,vars:1,consts:[[3,"nzTitle"],["fieldComponent",""]],template:function(s,d){1&s&&(e.TgZ(0,"nz-card",0),e.GkF(1,null,1),e.qZA()),2&s&&e.Q6J("nzTitle",d.to.label)},directives:[C.bd],styles:[""],changeDetection:0}),o})()};var _=t(4182);let h=(()=>{class o{}return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.ez,_.UX,n.X0.forChild({types:[i]}),C.vh]]}),o})()},6501:(F,M,t)=>{t.d(M,{r:()=>N});var p=t(9808),n=t(8776),e=t(8929),C=t(7625),z=t(373),i=t(5e3),_=t(712),h=t(8054),o=t(4182),l=t(6949),s=t(7701);function d(y,P){if(1&y&&(i.TgZ(0,"nz-option",6),i._uU(1),i.qZA()),2&y){const f=P.$implicit;i.hYB("nzLabel","",f.name," (",f.soid,")"),i.Q6J("nzValue",f),i.xp6(1),i.AsE(" ",f.name," (",f.soid,") ")}}function u(y,P){if(1&y&&(i.ynx(0),i.YNc(1,d,2,5,"nz-option",5),i.BQk()),2&y){const f=P.ngrxLet;i.xp6(1),i.Q6J("ngForOf",f)}}function O(y,P){1&y&&i._uU(0," No variant type found in CIViC that matches the string provided. ")}function a(y,P){if(1&y){const f=i.EpF();i.ynx(0),i.TgZ(1,"nz-select",2),i.NdJ("nzOnSearch",function(m){return i.CHM(f),i.oxw().to.onSearch(m)}),i.YNc(2,u,2,1,"ng-container",3),i.qZA(),i.YNc(3,O,1,0,"ng-template",null,4,i.W1O),i.BQk()}if(2&y){const f=i.MAs(4),E=i.oxw();i.xp6(1),i.Q6J("formControl",E.formControl)("formlyAttributes",E.field)("nzPlaceHolder",E.to.placeholder?E.to.placeholder:null)("nzNotFoundContent",f)("nzShowArrow",E.to.showArrow)("nzFilterOption",E.to.filterOption),i.xp6(1),i.Q6J("ngrxLet",E.variantTypes$)}}function D(y,P){if(1&y&&i._UZ(0,"cvc-variant-type-tag",7),2&y){const f=i.oxw();i.Q6J("variantType",f.formControl.value)}}const Z={name:"variant-type-input",component:(()=>{class y extends n.fS{constructor(f){super(),this.variantTypeTypeaheadQuery=f,this.destroy$=new e.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Variant Types",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.variantTypeTypeaheadQuery.watch({name:""}),this.variantTypes$=this.queryRef.valueChanges.pipe((0,C.R)(this.destroy$),(0,z.j)("data","variantTypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=f=>{var E;this.to.fieldValue=f,this.to.fieldLength=f.length,!(f.lengththis.to.maxLength)&&(null===(E=this.queryRef)||void 0===E||E.refetch({name:f}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(_.BnY))},y.\u0275cmp=i.Xpm({type:y,selectors:[["cvc-variant-type-input-type"]],features:[i.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"variantType"]],template:function(f,E){if(1&f&&(i.YNc(0,a,5,7,"ng-container",0),i.YNc(1,D,1,1,"ng-template",null,1,i.W1O)),2&f){const m=i.MAs(2);i.Q6J("ngIf",!(null!=E.formControl.value&&E.formControl.value.id))("ngIfElse",m)}},directives:[p.O5,h.Vq,o.JJ,o.oH,n.VQ,l.eJ,p.sg,h.Ip,s.j],styles:[""]}),y})()};var S=t(8645);let N=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=i.oAB({type:y}),y.\u0275inj=i.cJS({imports:[[p.ez,o.UX,n.X0.forChild({types:[Z]}),l.WG,h.LV,S.M]]}),y})()},6738:(F,M,t)=>{function p(o){let l={value:void 0,unset:void 0};return o&&o.trim().length>0?l.value=o.trim():l.unset=!0,l}function n(o){let l={value:void 0,unset:void 0};return void 0!==o?l.value=o:l.unset=!0,l}t.d(M,{aP:()=>h,li:()=>e,Zg:()=>C,_$:()=>z,uP:()=>n,dh:()=>i,xt:()=>p});var e=(()=>{return(o=e||(e={}))[o.NotApplicable=0]="NotApplicable",o[o.NoneFound=1]="NoneFound",o[o.Found=2]="Found",e;var o})();function C(o,l){let s,d,u;return l==e.Found?(s=void 0,d=void 0,u=o):l==e.NoneFound?(d=!0,s=void 0,u=void 0):(s=!0,d=void 0,u=void 0),{ids:u?u.map(O=>+O):void 0,noneFound:d,notApplicable:s}}function z(o){return o?{chromosome:_(o.chromosome),representativeTranscript:_(o.representativeTranscript),start:o.start?+o.start:void 0,stop:o.stop?+o.stop:void 0}:{chromosome:void 0,representativeTranscript:void 0,start:void 0,stop:void 0}}function i(o){let l={value:void 0,unset:void 0};return o?l.value=o:l.unset=!0,l}function _(o){let l;return l=o&&o.length>0?o:void 0,l}const h=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7338:(F,M,t)=>{t.d(M,{z:()=>I});var p=t(9808),n=t(9444),e=t(6949),C=t(8776),z=t(7484),i=t(5482),_=t(4546),h=t(1894),o=t(647),l=t(3610),s=t(8144),d=t(3618),u=t(5109),O=t(6789),a=t(5e3),D=t(2313);let L=(()=>{class r{constructor(T){this.sanitizer=T}transform(T){return this.sanitizer.bypassSecurityTrustHtml(T)}}return r.\u0275fac=function(T){return new(T||r)(a.Y36(D.H7,16))},r.\u0275pipe=a.Yjl({name:"sanitizeHtml",type:r,pure:!0}),r})();function Z(r,g){if(1&r&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&r){const T=a.oxw(2);a.xp6(1),a.Oqu(T.to.label)}}function S(r,g){if(1&r&&a._UZ(0,"i",11),2&r){a.oxw();const T=a.MAs(3);a.Q6J("nzPopoverContent",T)}}function N(r,g){if(1&r&&(a._UZ(0,"span",12),a.ALo(1,"sanitizeHtml")),2&r){const T=a.oxw(3);a.Q6J("innerHtml",a.lcZ(1,1,T.to.helpText),a.oJD)}}function y(r,g){1&r&&(a.ynx(0),a.YNc(1,S,1,1,"i",9),a.YNc(2,N,2,3,"ng-template",null,10,a.W1O),a.BQk())}function P(r,g){if(1&r&&(a.ynx(0),a.TgZ(1,"nz-form-label",7),a.TgZ(2,"nz-space"),a.YNc(3,Z,2,1,"span",8),a.YNc(4,y,4,0,"ng-container",1),a.qZA(),a.qZA(),a.BQk()),2&r){const T=a.oxw();a.xp6(1),a.Q6J("nzRequired",T.to.required&&!0!==T.to.hideRequiredMarker)("nzFor",T.id),a.xp6(3),a.Q6J("ngIf",T.to.helpText)}}const f=function(r){return{hidden:r}},m={wrappers:[{name:"form-field",component:(()=>{class r extends C.n2{get errorState(){return this.showError?"error":""}}return r.\u0275fac=function(){let g;return function(A){return(g||(g=a.n5z(r)))(A||r)}}(),r.\u0275cmp=a.Xpm({type:r,selectors:[["cvc-form-field-wrapper"]],features:[a.qOj],decls:10,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"nzValidateStatus"],["fieldComponent",""],["nzType","danger"],[3,"field"],["nzType","secondary"],[3,"nzRequired","nzFor"],[4,"nzSpaceItem"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent",4,"nzSpaceItem"],["help",""],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent"],[3,"innerHtml"]],template:function(T,A){1&T&&(a.TgZ(0,"div",0),a.TgZ(1,"nz-form-item"),a.YNc(2,P,5,3,"ng-container",1),a.TgZ(3,"nz-form-control",2),a.GkF(4,null,3),a.qZA(),a.TgZ(6,"nz-typography",4),a._UZ(7,"formly-validation-message",5),a.qZA(),a.TgZ(8,"nz-typography",6),a._uU(9),a.qZA(),a.qZA(),a.qZA()),2&T&&(a.Q6J("ngClass",a.VKq(5,f,!0===A.to.hidden)),a.xp6(2),a.Q6J("ngIf",A.to.label&&!0!==A.to.hideLabel),a.xp6(1),a.Q6J("nzValidateStatus",A.errorState),a.xp6(4),a.Q6J("field",A.field),a.xp6(2),a.hij(" ",A.to.optionText," "))},directives:[p.mk,h.SK,_.Nx,p.O5,h.t3,_.iK,s.NU,s.$1,o.Ls,l.lU,_.Fd,d.ZU,C.u_],pipes:[L],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),r})()}]};let I=(()=>{class r{}return r.\u0275fac=function(T){return new(T||r)},r.\u0275mod=a.oAB({type:r}),r.\u0275inj=a.cJS({imports:[[p.ez,e.WG,C.X0.forChild(m),h.Jb,z.vh,i.cD,O._,u.s,_.U5,o.PV,s.zf,l.$6,n.s,d.ZJ]]}),r})()},6462:(F,M,t)=>{t.d(M,{i:()=>f,m:()=>E});var p=t(655),n=t(1159),e=t(5e3),C=t(4182),z=t(8929),i=t(3753),_=t(7625),h=t(9439),o=t(1721),l=t(5664),s=t(226),d=t(2643),u=t(9808),O=t(647),a=t(969);const D=["switchElement"];function L(m,I){1&m&&e._UZ(0,"i",8)}function Z(m,I){if(1&m&&(e.ynx(0),e._uU(1),e.BQk()),2&m){const r=e.oxw(2);e.xp6(1),e.Oqu(r.nzCheckedChildren)}}function S(m,I){if(1&m&&(e.ynx(0),e.YNc(1,Z,2,1,"ng-container",9),e.BQk()),2&m){const r=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",r.nzCheckedChildren)}}function N(m,I){if(1&m&&(e.ynx(0),e._uU(1),e.BQk()),2&m){const r=e.oxw(2);e.xp6(1),e.Oqu(r.nzUnCheckedChildren)}}function y(m,I){if(1&m&&e.YNc(0,N,2,1,"ng-container",9),2&m){const r=e.oxw();e.Q6J("nzStringTemplateOutlet",r.nzUnCheckedChildren)}}let f=(()=>{class m{constructor(r,g,T,A,c,x){this.nzConfigService=r,this.host=g,this.ngZone=T,this.cdr=A,this.focusMonitor=c,this.directionality=x,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new z.xQ}updateValue(r){this.isChecked!==r&&(this.isChecked=r,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,_.R)(this.destroy$)).subscribe(r=>{this.dir=r,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,i.R)(this.host.nativeElement,"click").pipe((0,_.R)(this.destroy$)).subscribe(r=>{r.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,i.R)(this.switchElement.nativeElement,"keydown").pipe((0,_.R)(this.destroy$)).subscribe(r=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:g}=r;g!==n.oh&&g!==n.SV&&g!==n.L_&&g!==n.K5||(r.preventDefault(),this.ngZone.run(()=>{g===n.oh?this.updateValue(!1):g===n.SV?this.updateValue(!0):(g===n.L_||g===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,_.R)(this.destroy$)).subscribe(r=>{r||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(r){this.isChecked=r,this.cdr.markForCheck()}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.nzDisabled=r,this.cdr.markForCheck()}}return m.\u0275fac=function(r){return new(r||m)(e.Y36(h.jY),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(l.tE),e.Y36(s.Is,8))},m.\u0275cmp=e.Xpm({type:m,selectors:[["nz-switch"]],viewQuery:function(r,g){if(1&r&&e.Gf(D,7),2&r){let T;e.iGM(T=e.CRH())&&(g.switchElement=T.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[e._Bn([{provide:C.JU,useExisting:(0,e.Gpc)(()=>m),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(r,g){if(1&r&&(e.TgZ(0,"button",0,1),e.TgZ(2,"span",2),e.YNc(3,L,1,0,"i",3),e.qZA(),e.TgZ(4,"span",4),e.YNc(5,S,2,1,"ng-container",5),e.YNc(6,y,1,1,"ng-template",null,6,e.W1O),e.qZA(),e._UZ(8,"div",7),e.qZA()),2&r){const T=e.MAs(7);e.ekj("ant-switch-checked",g.isChecked)("ant-switch-loading",g.nzLoading)("ant-switch-disabled",g.nzDisabled)("ant-switch-small","small"===g.nzSize)("ant-switch-rtl","rtl"===g.dir),e.Q6J("disabled",g.nzDisabled)("nzWaveExtraNode",!0),e.xp6(3),e.Q6J("ngIf",g.nzLoading),e.xp6(2),e.Q6J("ngIf",g.isChecked)("ngIfElse",T)}},directives:[d.dQ,u.O5,O.Ls,a.f],encapsulation:2,changeDetection:0}),(0,p.gn)([(0,o.yF)()],m.prototype,"nzLoading",void 0),(0,p.gn)([(0,o.yF)()],m.prototype,"nzDisabled",void 0),(0,p.gn)([(0,o.yF)()],m.prototype,"nzControl",void 0),(0,p.gn)([(0,h.oS)()],m.prototype,"nzSize",void 0),m})(),E=(()=>{class m{}return m.\u0275fac=function(r){return new(r||m)},m.\u0275mod=e.oAB({type:m}),m.\u0275inj=e.cJS({imports:[[s.vT,u.ez,d.vG,O.PV,a.T]]}),m})()}}]); \ No newline at end of file diff --git a/server/public/4658.e20841b6eacdd605.js b/server/public/4658.0b2f1cd78524e647.js similarity index 96% rename from server/public/4658.e20841b6eacdd605.js rename to server/public/4658.0b2f1cd78524e647.js index dab0b2c6e..6ad999f88 100644 --- a/server/public/4658.e20841b6eacdd605.js +++ b/server/public/4658.0b2f1cd78524e647.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4658],{7946:(y,m,t)=>{t.d(m,{x:()=>M});var v=t(9808),n=t(897),e=t(8481),p=t(3610),T=t(8018),z=t(3580),h=t(9476),u=t(5e3);let M=(()=>{class d{}return d.\u0275fac=function(C){return new(C||d)},d.\u0275mod=u.oAB({type:d}),d.\u0275inj=u.cJS({imports:[[v.ez,e.X,p.$6,n.$,T.e,z.Q,h.L]]}),d})()},8664:(y,m,t)=>{t.d(m,{I:()=>$});var v=t(6654),n=t(5e3),e=t(9808),p=t(325),T=t(8481),z=t(3610),h=t(4850),u=t(712),M=t(7484),d=t(647),_=t(3193),C=t(3098),f=t(6550),O=t(1894),V=t(8144),c=t(6949);function P(a,r){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const o=n.oxw().ngIf;n.xp6(1),n.hij(" ",o.name," ")}}function Z(a,r){if(1&a&&n._UZ(0,"cvc-gene-tag",14),2&a){const o=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",o.gene)}}function A(a,r){1&a&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function S(a,r){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,A,2,0,"span",1),n.qZA()),2&a){const o=r.$implicit,s=r.last;n.xp6(1),n.hij(" ",o,""),n.xp6(1),n.Q6J("ngIf",!s)}}function I(a,r){if(1&a&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,S,3,2,"span",16),n.qZA()),2&a){const o=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",o.variantAliases)}}function E(a,r){if(1&a&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",o.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",o.alleleRegistryId," ")}}function U(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/flags"),n.xp6(3),n.hij(" Flags (",o.flags.totalCount,") ")}}function i(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",o.revisions.totalCount,") ")}}function g(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/comments"),n.xp6(3),n.hij(" Comments (",o.comments.totalCount,") ")}}function l(a,r){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,P,2,1,"ng-template",null,3,n.W1O),n.YNc(4,Z,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,I,2,1,"nz-descriptions-item",6),n.YNc(8,E,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,U,4,2,"a",12),n.YNc(15,i,4,2,"a",12),n.YNc(16,g,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const o=r.ngIf,s=n.MAs(3),x=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",s)("nzExtra",x),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",o.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",o.alleleRegistryId),n.xp6(2),n.hij(" ",o.evidenceItems.totalCount," ")}}let J=(()=>{class a{constructor(o){this.gql=o}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,h.U)(({data:o})=>o.variant))}}return a.\u0275fac=function(o){return new(o||a)(n.Y36(u.ZYZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(o,s){1&o&&(n.TgZ(0,"div",0),n.YNc(1,l,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&o&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,s.variant$)))},directives:[e.O5,M.bd,d.Ls,_.H,C.R7,C.uj,e.sg,f.l,O.SK,O.t3,V.NU,V.$1,p.yS,T.j],pipes:[c.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),a})();function D(a,r){}function B(a,r){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,D,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const o=n.oxw(),s=n.MAs(2);n.xp6(1),n.Q6J("routerLink",o.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function N(a,r){}function Y(a,r){if(1&a){const o=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(x){return n.CHM(o),n.oxw(2).itemClosed(x)}),n.YNc(1,N,0,0,"ng-template",6),n.qZA()}if(2&a){n.oxw();const o=n.MAs(2),s=n.oxw(),x=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",s.onCloseClicked?0:.5)("nzPopoverContent",o)("nzMode",s.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",x)}}function L(a,r){if(1&a&&n._UZ(0,"cvc-variant-popover",11),2&a){const o=n.oxw(3);n.Q6J("variantId",o.variant.id)}}function Q(a,r){if(1&a&&n.YNc(0,L,1,1,"cvc-variant-popover",10),2&a){const o=n.oxw(2);n.Q6J("ngIf",o.enablePopover)}}function R(a,r){if(1&a&&(n.YNc(0,Y,2,4,"nz-tag",7),n.YNc(1,Q,1,1,"ng-template",null,8,n.W1O)),2&a){const o=n.oxw(),s=n.MAs(4);n.Q6J("ngIf",o.enablePopover)("ngIfElse",s)}}function F(a,r){}function j(a,r){if(1&a){const o=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(x){return n.CHM(o),n.oxw().itemClosed(x)}),n.YNc(1,F,0,0,"ng-template",6),n.qZA()}if(2&a){const o=n.oxw(),s=n.MAs(8);n.Q6J("nzMode",o.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function W(a,r){}function H(a,r){if(1&a&&n.YNc(0,W,0,0,"ng-template",6),2&a){n.oxw();const o=n.MAs(2);n.Q6J("ngTemplateOutlet",o)}}function K(a,r){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const o=n.oxw();n.xp6(1),n.hij(" ",o.variant.name,"\n")}}let $=(()=>{class a extends v.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(o,s){if(1&o&&(n.YNc(0,B,3,2,"ng-container",0),n.YNc(1,R,3,2,"ng-template",null,1,n.W1O),n.YNc(3,j,2,2,"ng-template",null,2,n.W1O),n.YNc(5,H,1,1,"ng-template",null,3,n.W1O),n.YNc(7,K,2,1,"ng-template",null,4,n.W1O)),2&o){const x=n.MAs(6);n.Q6J("ngIf",s.linked)("ngIfElse",x)}},directives:[e.O5,p.yS,e.tP,T.j,z.lU,J,d.Ls],styles:[""]}),a})()},4867:(y,m,t)=>{t.d(m,{Q:()=>V});var v=t(9808),n=t(325),e=t(8481),p=t(647),T=t(3610),z=t(6949),h=t(7484),u=t(1894),M=t(3098),d=t(8144),_=t(3309),C=t(3630),f=t(5e3);let O=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[[v.ez,n.Bz,z.WG,h.vh,u.Jb,M.q6,e.X,p.PV,d.zf,_.U,C.X]]}),c})(),V=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[[v.ez,n.Bz,e.X,T.$6,p.PV,O]]}),c})()},3154:(y,m,t)=>{t.d(m,{_:()=>n});var v=t(712);function n(e){var p;switch(e.value){case"ascend":p=v.SrV.Asc;break;case"descend":p=v.SrV.Desc;break;default:return}return{column:e.key,direction:p}}},9221:(y,m,t)=>{t.r(m),t.d(m,{VariantsModule:()=>U});var v=t(9808),n=t(325),e=t(5e3);let p=(()=>{class i{constructor(){}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-variants"]],decls:1,vars:0,template:function(l,J){1&l&&e._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),i})();var T=t(5630),z=t(1945),h=t(1894),u=t(647),M=t(3855),d=t(3309),_=t(3618),C=t(6042),f=t(8144);let O=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[v.ez,z.KJ,h.Jb,u.PV,_.ZJ,C.sL,f.zf,T.D,d.U,M.H]]}),i})();var V=t(8992),c=t(2683),P=t(6410);function Z(i,g){1&i&&(e.TgZ(0,"a",13),e._UZ(1,"i",14),e._uU(2," View Variant Model Docs "),e.qZA())}function A(i,g){1&i&&(e.TgZ(0,"a",15),e._UZ(1,"i",14),e._uU(2," View Variant Curation Docs "),e.qZA())}const I=[{path:"",component:p,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["variants-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:variant"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variants"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock",""]],template:function(l,J){1&l&&(e._UZ(0,"cvc-section-navigation"),e.TgZ(1,"nz-page-header",0),e.TgZ(2,"nz-page-header-content"),e.TgZ(3,"nz-row",1),e.TgZ(4,"nz-col",2),e._UZ(5,"i",3),e.qZA(),e.TgZ(6,"nz-col",4),e.TgZ(7,"h2"),e._uU(8,"Variants"),e.qZA(),e.TgZ(9,"p",5),e._uU(10,'CIViC variants are usually genomic alterations, including single nucleotide variants, insertion/deletion events, copy number alterations, structural variants, and other events that differ from the "normal" genome.'),e.qZA(),e.qZA(),e.TgZ(11,"nz-col",6),e.TgZ(12,"nz-space",7),e.YNc(13,Z,3,0,"a",8),e.YNc(14,A,3,0,"a",9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"nz-row"),e.TgZ(16,"nz-col",10),e.TgZ(17,"div",11),e._UZ(18,"cvc-variants-table",12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&l&&(e.xp6(9),e.Q6J("nzEllipsisRows",2),e.xp6(7),e.Q6J("nzSpan",24))},directives:[V.I,z.$O,z.u5,h.SK,h.t3,u.Ls,c.w,_.ZU,f.NU,f.$1,C.ix,P.S],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),i})(),data:{breadcrumb:"Home"}},{path:":variantId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(6256),t.e(9001),t.e(2826),t.e(305),t.e(1679),t.e(2738),t.e(55),t.e(4292),t.e(3883),t.e(2043),t.e(3482),t.e(5787),t.e(9286)]).then(t.bind(t,1485)).then(i=>i.VariantsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(6256),t.e(1679),t.e(3021),t.e(8776),t.e(8592),t.e(9081)]).then(t.bind(t,9081)).then(i=>i.VariantsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let E=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[n.Bz.forChild(I),O],n.Bz]}),i})(),U=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[v.ez,E]]}),i})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4658],{7946:(y,m,t)=>{t.d(m,{x:()=>M});var v=t(9808),n=t(897),e=t(8481),p=t(3610),T=t(8018),z=t(3580),h=t(9476),u=t(5e3);let M=(()=>{class d{}return d.\u0275fac=function(C){return new(C||d)},d.\u0275mod=u.oAB({type:d}),d.\u0275inj=u.cJS({imports:[[v.ez,e.X,p.$6,n.$,T.e,z.Q,h.L]]}),d})()},8664:(y,m,t)=>{t.d(m,{I:()=>$});var v=t(6654),n=t(5e3),e=t(9808),p=t(325),T=t(8481),z=t(3610),h=t(4850),u=t(712),M=t(7484),d=t(647),_=t(3193),C=t(3098),f=t(6550),O=t(1894),V=t(8144),c=t(6949);function P(a,r){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const o=n.oxw().ngIf;n.xp6(1),n.hij(" ",o.name," ")}}function Z(a,r){if(1&a&&n._UZ(0,"cvc-gene-tag",14),2&a){const o=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",o.gene)}}function A(a,r){1&a&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function S(a,r){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,A,2,0,"span",1),n.qZA()),2&a){const o=r.$implicit,s=r.last;n.xp6(1),n.hij(" ",o,""),n.xp6(1),n.Q6J("ngIf",!s)}}function I(a,r){if(1&a&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,S,3,2,"span",16),n.qZA()),2&a){const o=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",o.variantAliases)}}function E(a,r){if(1&a&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",o.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",o.alleleRegistryId," ")}}function U(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/flags"),n.xp6(3),n.hij(" Flags (",o.flags.totalCount,") ")}}function i(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",o.revisions.totalCount,") ")}}function g(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/comments"),n.xp6(3),n.hij(" Comments (",o.comments.totalCount,") ")}}function l(a,r){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,P,2,1,"ng-template",null,3,n.W1O),n.YNc(4,Z,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,I,2,1,"nz-descriptions-item",6),n.YNc(8,E,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,U,4,2,"a",12),n.YNc(15,i,4,2,"a",12),n.YNc(16,g,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const o=r.ngIf,s=n.MAs(3),x=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",s)("nzExtra",x),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",o.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",o.alleleRegistryId),n.xp6(2),n.hij(" ",o.evidenceItems.totalCount," ")}}let J=(()=>{class a{constructor(o){this.gql=o}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,h.U)(({data:o})=>o.variant))}}return a.\u0275fac=function(o){return new(o||a)(n.Y36(u.ZYZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(o,s){1&o&&(n.TgZ(0,"div",0),n.YNc(1,l,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&o&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,s.variant$)))},directives:[e.O5,M.bd,d.Ls,_.H,C.R7,C.uj,e.sg,f.l,O.SK,O.t3,V.NU,V.$1,p.yS,T.j],pipes:[c.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),a})();function D(a,r){}function B(a,r){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,D,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const o=n.oxw(),s=n.MAs(2);n.xp6(1),n.Q6J("routerLink",o.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function N(a,r){}function Y(a,r){if(1&a){const o=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(x){return n.CHM(o),n.oxw(2).itemClosed(x)}),n.YNc(1,N,0,0,"ng-template",6),n.qZA()}if(2&a){n.oxw();const o=n.MAs(2),s=n.oxw(),x=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",s.onCloseClicked?0:.5)("nzPopoverContent",o)("nzMode",s.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",x)}}function L(a,r){if(1&a&&n._UZ(0,"cvc-variant-popover",11),2&a){const o=n.oxw(3);n.Q6J("variantId",o.variant.id)}}function Q(a,r){if(1&a&&n.YNc(0,L,1,1,"cvc-variant-popover",10),2&a){const o=n.oxw(2);n.Q6J("ngIf",o.enablePopover)}}function R(a,r){if(1&a&&(n.YNc(0,Y,2,4,"nz-tag",7),n.YNc(1,Q,1,1,"ng-template",null,8,n.W1O)),2&a){const o=n.oxw(),s=n.MAs(4);n.Q6J("ngIf",o.enablePopover)("ngIfElse",s)}}function F(a,r){}function j(a,r){if(1&a){const o=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(x){return n.CHM(o),n.oxw().itemClosed(x)}),n.YNc(1,F,0,0,"ng-template",6),n.qZA()}if(2&a){const o=n.oxw(),s=n.MAs(8);n.Q6J("nzMode",o.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function W(a,r){}function H(a,r){if(1&a&&n.YNc(0,W,0,0,"ng-template",6),2&a){n.oxw();const o=n.MAs(2);n.Q6J("ngTemplateOutlet",o)}}function K(a,r){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const o=n.oxw();n.xp6(1),n.hij(" ",o.variant.name,"\n")}}let $=(()=>{class a extends v.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(o,s){if(1&o&&(n.YNc(0,B,3,2,"ng-container",0),n.YNc(1,R,3,2,"ng-template",null,1,n.W1O),n.YNc(3,j,2,2,"ng-template",null,2,n.W1O),n.YNc(5,H,1,1,"ng-template",null,3,n.W1O),n.YNc(7,K,2,1,"ng-template",null,4,n.W1O)),2&o){const x=n.MAs(6);n.Q6J("ngIf",s.linked)("ngIfElse",x)}},directives:[e.O5,p.yS,e.tP,T.j,z.lU,J,d.Ls],styles:[""]}),a})()},4867:(y,m,t)=>{t.d(m,{Q:()=>V});var v=t(9808),n=t(325),e=t(8481),p=t(647),T=t(3610),z=t(6949),h=t(7484),u=t(1894),M=t(3098),d=t(8144),_=t(3309),C=t(3630),f=t(5e3);let O=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[[v.ez,n.Bz,z.WG,h.vh,u.Jb,M.q6,e.X,p.PV,d.zf,_.U,C.X]]}),c})(),V=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[[v.ez,n.Bz,e.X,T.$6,p.PV,O]]}),c})()},3154:(y,m,t)=>{t.d(m,{_:()=>n});var v=t(712);function n(e){var p;switch(e.value){case"ascend":p=v.SrV.Asc;break;case"descend":p=v.SrV.Desc;break;default:return}return{column:e.key,direction:p}}},9221:(y,m,t)=>{t.r(m),t.d(m,{VariantsModule:()=>U});var v=t(9808),n=t(325),e=t(5e3);let p=(()=>{class i{constructor(){}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-variants"]],decls:1,vars:0,template:function(l,J){1&l&&e._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),i})();var T=t(5630),z=t(1945),h=t(1894),u=t(647),M=t(3855),d=t(3309),_=t(3618),C=t(6042),f=t(8144);let O=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[v.ez,z.KJ,h.Jb,u.PV,_.ZJ,C.sL,f.zf,T.D,d.U,M.H]]}),i})();var V=t(8992),c=t(2683),P=t(6410);function Z(i,g){1&i&&(e.TgZ(0,"a",13),e._UZ(1,"i",14),e._uU(2," View Variant Model Docs "),e.qZA())}function A(i,g){1&i&&(e.TgZ(0,"a",15),e._UZ(1,"i",14),e._uU(2," View Variant Curation Docs "),e.qZA())}const I=[{path:"",component:p,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["variants-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:variant"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variants"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock",""]],template:function(l,J){1&l&&(e._UZ(0,"cvc-section-navigation"),e.TgZ(1,"nz-page-header",0),e.TgZ(2,"nz-page-header-content"),e.TgZ(3,"nz-row",1),e.TgZ(4,"nz-col",2),e._UZ(5,"i",3),e.qZA(),e.TgZ(6,"nz-col",4),e.TgZ(7,"h2"),e._uU(8,"Variants"),e.qZA(),e.TgZ(9,"p",5),e._uU(10,'CIViC variants are usually genomic alterations, including single nucleotide variants, insertion/deletion events, copy number alterations, structural variants, and other events that differ from the "normal" genome.'),e.qZA(),e.qZA(),e.TgZ(11,"nz-col",6),e.TgZ(12,"nz-space",7),e.YNc(13,Z,3,0,"a",8),e.YNc(14,A,3,0,"a",9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"nz-row"),e.TgZ(16,"nz-col",10),e.TgZ(17,"div",11),e._UZ(18,"cvc-variants-table",12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&l&&(e.xp6(9),e.Q6J("nzEllipsisRows",2),e.xp6(7),e.Q6J("nzSpan",24))},directives:[V.I,z.$O,z.u5,h.SK,h.t3,u.Ls,c.w,_.ZU,f.NU,f.$1,C.ix,P.S],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),i})(),data:{breadcrumb:"Home"}},{path:":variantId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(6256),t.e(9001),t.e(2826),t.e(1679),t.e(305),t.e(2738),t.e(55),t.e(4292),t.e(3883),t.e(2043),t.e(3482),t.e(5787),t.e(9286)]).then(t.bind(t,1485)).then(i=>i.VariantsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(6256),t.e(1679),t.e(6875),t.e(4584),t.e(7012)]).then(t.bind(t,7012)).then(i=>i.VariantsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let E=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[n.Bz.forChild(I),O],n.Bz]}),i})(),U=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[v.ez,E]]}),i})()}}]); \ No newline at end of file diff --git a/server/public/5632.b4048d1a94cb9e29.js b/server/public/5632.b4048d1a94cb9e29.js new file mode 100644 index 000000000..d5adfa369 --- /dev/null +++ b/server/public/5632.b4048d1a94cb9e29.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5632],{8616:(y,f,n)=>{n.d(f,{u:()=>t});var a=n(5e3),g=n(685),l=n(1912),u=n(3618),_=n(647);function p(i,h){1&i&&(a.TgZ(0,"span"),a._uU(1," You must be logged in to view this page. "),a.qZA())}function v(i,h){1&i&&a._UZ(0,"cvc-login-button")}function c(i,h){1&i&&(a.TgZ(0,"nz-typography",4),a._UZ(1,"i",5),a.qZA())}let t=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275cmp=a.Xpm({type:i,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(d,z){if(1&d&&(a.TgZ(0,"nz-empty",0),a.YNc(1,p,2,0,"ng-template",null,1,a.W1O),a.YNc(3,v,1,0,"ng-template",null,2,a.W1O),a.qZA(),a.YNc(5,c,2,0,"ng-template",null,3,a.W1O)),2&d){const I=a.MAs(2),M=a.MAs(4),C=a.MAs(6);a.Q6J("nzNotFoundImage",C)("nzNotFoundContent",I)("nzNotFoundFooter",M)}},directives:[g.p9,l.s,u.ZU,_.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),i})()},9386:(y,f,n)=>{n.d(f,{a:()=>v});var a=n(9808),g=n(1844),l=n(685),u=n(647),_=n(3618),p=n(5e3);let v=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=p.oAB({type:c}),c.\u0275inj=p.cJS({imports:[[a.ez,g.B,l.Xo,u.PV,_.ZJ]]}),c})()},8926:(y,f,n)=>{n.d(f,{A:()=>l});var a=n(5e3),g=n(2313);let l=(()=>{class u{constructor(p){this.sanitizer=p}transform(p,v){if(!v||""==v)return p;const c=new RegExp(v,"gi"),t=p.match(c);if(!t)return p;let i=p.replace(c,`${t[0]}`);return this.sanitizer.bypassSecurityTrustHtml(i)}}return u.\u0275fac=function(p){return new(p||u)(a.Y36(g.H7,16))},u.\u0275pipe=a.Yjl({name:"highlightTypeahead",type:u,pure:!0}),u})()},3077:(y,f,n)=>{function a(g){return void 0!==g}n.d(f,{$:()=>a})},7462:(y,f,n)=>{n.d(f,{o:()=>c});var a=n(9808),g=n(8776),l=n(5e3),u=n(1047),_=n(4182);const v={name:"cvc-textarea",component:(()=>{class t extends g.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return t.\u0275fac=function(){let i;return function(d){return(i||(i=l.n5z(t)))(d||t)}}(),t.\u0275cmp=l.Xpm({type:t,selectors:[["cvc-textarea-base-type"]],features:[l.qOj],decls:1,vars:4,consts:[["nz-input","",3,"formControl","formlyAttributes","nzAutosize","placeholder"]],template:function(h,d){1&h&&l._UZ(0,"textarea",0),2&h&&l.Q6J("formControl",d.formControl)("formlyAttributes",d.field)("nzAutosize",d.to.autosize)("placeholder",d.to.placeholder)},directives:[u.Zp,_.Fj,u.rh,_.JJ,_.oH,g.VQ],styles:[""],changeDetection:0}),t})(),wrappers:["form-field"]};let c=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[a.ez,_.u5,_.UX,g.X0.forChild({types:[v]}),u.o7]]}),t})()},4181:(y,f,n)=>{n.d(f,{O:()=>w});var a=n(9808),g=n(6123),l=n(8776),u=n(8929),_=n(591),p=n(373),v=n(4850),c=n(7625),t=n(5e3),i=n(712),h=n(9169),d=n(8054),z=n(4182),I=n(8664),M=n(822),C=n(6042),L=n(2643),S=n(2683),E=n(647),V=n(6949),U=n(8926);function B(o,m){if(1&o&&(t.TgZ(0,"nz-option",6),t._UZ(1,"span",7),t.ALo(2,"highlightTypeahead"),t.qZA()),2&o){const e=m.$implicit,s=t.oxw(2);t.Q6J("nzValue",e.variant),t.xp6(1),t.Q6J("innerHtml",t.xi3(2,2,e.label,s.to.searchString),t.oJD)}}function D(o,m){1&o&&t._uU(0," No variant found in CIViC that matches the string provided. ")}function Q(o,m){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",3),t.NdJ("nzOnSearch",function(r){return t.CHM(e),t.oxw().to.onSearch(r)}),t.YNc(2,B,3,5,"nz-option",4),t.ALo(3,"ngrxPush"),t.qZA(),t.YNc(4,D,1,0,"ng-template",null,5,t.W1O),t.BQk()}if(2&o){const e=t.MAs(5),s=t.oxw(),r=t.MAs(4);t.xp6(1),t.Q6J("formControl",s.formControl)("formlyAttributes",s.field)("nzPlaceHolder",s.to.placeholder?s.to.placeholder:null)("nzDropdownRender",s.to.allowCreate?r:null)("nzNotFoundContent",e)("nzShowArrow",s.to.showArrow),t.xp6(1),t.Q6J("ngForOf",t.lcZ(3,7,s.variants$))}}function Z(o,m){if(1&o&&t._UZ(0,"cvc-variant-tag",8),2&o){const e=t.oxw();t.Q6J("variant",e.formControl.value)}}function J(o,m){if(1&o&&t._UZ(0,"cvc-form-errors-alert",12),2&o){const e=t.oxw(4);t.Q6J("errors",e.errorMessages)}}function F(o,m){if(1&o){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(4);return r.addVariant(r.to.searchString)}),t._UZ(1,"i",14),t._uU(2,"No Existing CIViC Variant\xa0"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5,"\xa0found. Create A New Variant? "),t.qZA()}if(2&o){const e=t.oxw(4);t.Q6J("nzLoading",e.loading),t.xp6(4),t.Oqu(e.to.searchString)}}function R(o,m){if(1&o&&(t.ynx(0),t.YNc(1,J,1,1,"cvc-form-errors-alert",10),t.YNc(2,F,6,2,"button",11),t.BQk()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",0==e.errorMessages.length)}}function N(o,m){if(1&o&&(t.ynx(0),t.YNc(1,R,3,2,"ng-container",9),t.BQk()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",""!==e.to.searchString)}}function W(o,m){if(1&o&&(t.YNc(0,N,2,1,"ng-container",9),t.ALo(1,"ngrxPush")),2&o){const e=t.oxw();t.Q6J("ngIf",t.lcZ(1,1,e.displayAdd$))}}const Y={name:"variant-input",component:(()=>{class o extends l.fS{constructor(e,s,r){super(),this.variantTypeaheadQuery=e,this.networkErrorService=s,this.addVariantGQL=r,this.destroy$=new u.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new _.X(!1),this.addVariantMutator=new g.U(s),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(T,X,A)=>{var O,P;let x=null===(P=null===(O=null==A?void 0:A.parent)||void 0===O?void 0:O.parent)||void 0===P?void 0:P.model;if(x&&x.gene&&x.gene[0])return x.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,p.j)("data","variants","nodes"),(0,v.U)(e=>e.map(r=>({value:r.id,label:r.name,variant:r}))))}ngAfterViewInit(){this.to.onSearch=e=>{e.length{this.displayAdd$.next(0==s.data.variants.nodes.filter(r=>r.name.toUpperCase()==e.toUpperCase()).length)}))}}addVariant(e){if(e&&""!=e&&this.to.geneId){let s=this.addVariantMutator.mutate(this.addVariantGQL,{name:e,geneId:this.to.geneId},r=>{var T;null===(T=this.field.formControl)||void 0===T||T.setValue({id:r.addVariant.variant.id,name:r.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});s.submitSuccess$.pipe((0,c.R)(this.destroy$)).subscribe(r=>{r&&(this.success=!0)}),s.submitError$.pipe((0,c.R)(this.destroy$)).subscribe(r=>{r&&(this.errorMessages=r,this.success=!1)}),s.isSubmitting$.pipe((0,c.R)(this.destroy$)).subscribe(r=>{this.loading=r})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(i._eC),t.Y36(h.Y),t.Y36(i.LUc))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-input-type"]],features:[t.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(e,s){if(1&e&&(t.YNc(0,Q,6,9,"ng-container",0),t.YNc(1,Z,1,1,"ng-template",null,1,t.W1O),t.YNc(3,W,2,3,"ng-template",null,2,t.W1O)),2&e){const r=t.MAs(2);t.Q6J("ngIf",!(null!=s.formControl.value&&s.formControl.value.id))("ngIfElse",r)}},directives:[a.O5,d.Vq,z.JJ,z.oH,l.VQ,a.sg,d.Ip,I.I,M.V,C.ix,L.dQ,S.w,E.Ls],pipes:[V.fM,U.A],styles:[""],changeDetection:0}),o})()};var $=n(4867),H=n(7008),K=n(9444);let w=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[a.ez,z.UX,V.WG,l.X0.forChild({types:[Y]}),d.LV,C.sL,E.PV,$.Q,H.B,K.s]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/5787.5ff21f0a9c6baf5f.js b/server/public/5787.5ff21f0a9c6baf5f.js deleted file mode 100644 index f118049aa..000000000 --- a/server/public/5787.5ff21f0a9c6baf5f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5787],{427:(S,m,l)=>{l.d(m,{J:()=>v});var t=l(5e3),r=l(685),o=l(9808),h=l(647);function u(c,d){if(1&c&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&c){const p=t.oxw(2);t.xp6(1),t.Oqu(p.notification)}}function _(c,d){1&c&&t._uU(0," Not specified ")}function z(c,d){if(1&c&&(t.YNc(0,u,2,1,"span",3),t.YNc(1,_,1,0,"ng-template",null,4,t.W1O)),2&c){const p=t.MAs(2),f=t.oxw();t.Q6J("ngIf",f.notification)("ngIfElse",p)}}function g(c,d){1&c&&t._UZ(0,"i",6)}let v=(()=>{class c{constructor(){}ngOnInit(){}}return c.\u0275fac=function(p){return new(p||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification"},decls:5,vars:2,consts:[[3,"nzNotFoundContent","nzNotFoundImage"],["notFound",""],["notFoundImg",""],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["defaultNotification",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(p,f){if(1&p&&(t._UZ(0,"nz-empty",0),t.YNc(1,z,3,2,"ng-template",null,1,t.W1O),t.YNc(3,g,1,0,"ng-template",null,2,t.W1O)),2&p){const C=t.MAs(2),E=t.MAs(4);t.Q6J("nzNotFoundContent",C)("nzNotFoundImage",E)}},directives:[r.p9,o.O5,h.Ls],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .ant-empty-image{height:35px;margin-top:4px;margin-bottom:4px}[_nghost-%COMP%] .ant-empty-image i, [_nghost-%COMP%] .ant-empty-image svg{height:100%;width:100%}"]}),c})()},8541:(S,m,l)=>{l.d(m,{o:()=>u});var t=l(9808),r=l(685),o=l(647),h=l(5e3);let u=(()=>{class _{}return _.\u0275fac=function(g){return new(g||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({imports:[[t.ez,r.Xo,o.PV]]}),_})()},6559:(S,m,l)=>{l.d(m,{ng:()=>D,H0:()=>O});var t=l(5e3),r=l(1721),o=l(655),h=l(9808),u=l(226);const z=["nzType","avatar"];function c(a,i){if(1&a&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&a){const n=t.oxw(2);t.xp6(1),t.Q6J("nzSize",n.avatar.size||"default")("nzShape",n.avatar.shape||"circle")}}function d(a,i){if(1&a&&t._UZ(0,"h3",7),2&a){const n=t.oxw(2);t.Udp("width",n.toCSSUnit(n.title.width))}}function p(a,i){if(1&a&&t._UZ(0,"li"),2&a){const n=i.index,e=t.oxw(3);t.Udp("width",e.toCSSUnit(e.widthList[n]))}}function f(a,i){if(1&a&&(t.TgZ(0,"ul",8),t.YNc(1,p,1,2,"li",9),t.qZA()),2&a){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.rowsList)}}function C(a,i){if(1&a&&(t.ynx(0),t.YNc(1,c,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,d,1,2,"h3",3),t.YNc(4,f,2,1,"ul",4),t.qZA(),t.BQk()),2&a){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",!!n.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!n.nzTitle),t.xp6(1),t.Q6J("ngIf",!!n.nzParagraph)}}function E(a,i){1&a&&(t.ynx(0),t.Hsn(1),t.BQk())}const y=["*"];let M=(()=>{class a{constructor(){this.nzActive=!1,this.nzBlock=!1}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275dir=t.lG2({type:a,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(n,e){2&n&&t.ekj("ant-skeleton-active",e.nzActive)("ant-skeleton-block",e.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,o.gn)([(0,r.yF)()],a.prototype,"nzBlock",void 0),a})(),T=(()=>{class a{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(n){if(n.nzSize&&"number"==typeof this.nzSize){const e=`${this.nzSize}px`;this.styleMap={width:e,height:e,"line-height":e}}else this.styleMap={}}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:z,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(n,e){1&n&&t._UZ(0,"span",0),2&n&&(t.ekj("ant-skeleton-avatar-square","square"===e.nzShape)("ant-skeleton-avatar-circle","circle"===e.nzShape)("ant-skeleton-avatar-lg","large"===e.nzSize)("ant-skeleton-avatar-sm","small"===e.nzSize),t.Q6J("ngStyle",e.styleMap))},directives:[h.PC],encapsulation:2,changeDetection:0}),a})(),D=(()=>{class a{constructor(n,e,s){this.cdr=n,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],e.addClass(s.nativeElement,"ant-skeleton")}toCSSUnit(n=""){return(0,r.WX)(n)}getTitleProps(){const n=!!this.nzAvatar,e=!!this.nzParagraph;let s="";return!n&&e?s="38%":n&&e&&(s="50%"),Object.assign({width:s},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const n=!!this.nzAvatar,e=!!this.nzTitle,s={};return(!n||!e)&&(s.width="61%"),s.rows=!n&&e?3:2,Object.assign(Object.assign({},s),this.getProps(this.nzParagraph))}getProps(n){return n&&"object"==typeof n?n:{}}getWidthList(){const{width:n,rows:e}=this.paragraph;let s=[];return n&&Array.isArray(n)?s=n:n&&!Array.isArray(n)&&(s=[],s[e-1]=n),s}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(n){(n.nzTitle||n.nzAvatar||n.nzParagraph)&&this.updateProps()}}return a.\u0275fac=function(n){return new(n||a)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},a.\u0275cmp=t.Xpm({type:a,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(n,e){2&n&&t.ekj("ant-skeleton-with-avatar",!!e.nzAvatar)("ant-skeleton-active",e.nzActive)("ant-skeleton-round",!!e.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:y,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(n,e){1&n&&(t.F$t(),t.YNc(0,C,5,3,"ng-container",0),t.YNc(1,E,2,0,"ng-container",0)),2&n&&(t.Q6J("ngIf",e.nzLoading),t.xp6(1),t.Q6J("ngIf",!e.nzLoading))},directives:[T,h.O5,M,h.sg],encapsulation:2,changeDetection:0}),a})(),O=(()=>{class a{}return a.\u0275fac=function(n){return new(n||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[u.vT,h.ez]]}),a})()},6462:(S,m,l)=>{l.d(m,{i:()=>O,m:()=>a});var t=l(655),r=l(1159),o=l(5e3),h=l(4182),u=l(8929),_=l(3753),z=l(7625),g=l(9439),v=l(1721),c=l(5664),d=l(226),p=l(2643),f=l(9808),C=l(647),E=l(969);const y=["switchElement"];function M(i,n){1&i&&o._UZ(0,"i",8)}function P(i,n){if(1&i&&(o.ynx(0),o._uU(1),o.BQk()),2&i){const e=o.oxw(2);o.xp6(1),o.Oqu(e.nzCheckedChildren)}}function T(i,n){if(1&i&&(o.ynx(0),o.YNc(1,P,2,1,"ng-container",9),o.BQk()),2&i){const e=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",e.nzCheckedChildren)}}function N(i,n){if(1&i&&(o.ynx(0),o._uU(1),o.BQk()),2&i){const e=o.oxw(2);o.xp6(1),o.Oqu(e.nzUnCheckedChildren)}}function A(i,n){if(1&i&&o.YNc(0,N,2,1,"ng-container",9),2&i){const e=o.oxw();o.Q6J("nzStringTemplateOutlet",e.nzUnCheckedChildren)}}let O=(()=>{class i{constructor(e,s,k,I,w,x){this.nzConfigService=e,this.host=s,this.ngZone=k,this.cdr=I,this.focusMonitor=w,this.directionality=x,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new u.xQ}updateValue(e){this.isChecked!==e&&(this.isChecked=e,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,z.R)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,_.R)(this.host.nativeElement,"click").pipe((0,z.R)(this.destroy$)).subscribe(e=>{e.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,_.R)(this.switchElement.nativeElement,"keydown").pipe((0,z.R)(this.destroy$)).subscribe(e=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:s}=e;s!==r.oh&&s!==r.SV&&s!==r.L_&&s!==r.K5||(e.preventDefault(),this.ngZone.run(()=>{s===r.oh?this.updateValue(!1):s===r.SV?this.updateValue(!0):(s===r.L_||s===r.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,z.R)(this.destroy$)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(e){this.isChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=e,this.cdr.markForCheck()}}return i.\u0275fac=function(e){return new(e||i)(o.Y36(g.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(c.tE),o.Y36(d.Is,8))},i.\u0275cmp=o.Xpm({type:i,selectors:[["nz-switch"]],viewQuery:function(e,s){if(1&e&&o.Gf(y,7),2&e){let k;o.iGM(k=o.CRH())&&(s.switchElement=k.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:h.JU,useExisting:(0,o.Gpc)(()=>i),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(e,s){if(1&e&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,M,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,T,2,1,"ng-container",5),o.YNc(6,A,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&e){const k=o.MAs(7);o.ekj("ant-switch-checked",s.isChecked)("ant-switch-loading",s.nzLoading)("ant-switch-disabled",s.nzDisabled)("ant-switch-small","small"===s.nzSize)("ant-switch-rtl","rtl"===s.dir),o.Q6J("disabled",s.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",s.nzLoading),o.xp6(2),o.Q6J("ngIf",s.isChecked)("ngIfElse",k)}},directives:[p.dQ,f.O5,C.Ls,E.f],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,v.yF)()],i.prototype,"nzLoading",void 0),(0,t.gn)([(0,v.yF)()],i.prototype,"nzDisabled",void 0),(0,t.gn)([(0,v.yF)()],i.prototype,"nzControl",void 0),(0,t.gn)([(0,g.oS)()],i.prototype,"nzSize",void 0),i})(),a=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[[d.vT,f.ez,p.vG,C.PV,E.T]]}),i})()}}]); \ No newline at end of file diff --git a/server/public/5787.6afd9133542c6e90.js b/server/public/5787.6afd9133542c6e90.js new file mode 100644 index 000000000..78528551f --- /dev/null +++ b/server/public/5787.6afd9133542c6e90.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5787],{427:(N,g,i)=>{i.d(g,{J:()=>v});var a=i(5e3),p=i(685),e=i(9808),f=i(647);function C(c,_){if(1&c&&(a.TgZ(0,"span",5),a._uU(1),a.qZA()),2&c){const d=a.oxw(2);a.xp6(1),a.Oqu(d.notification)}}function m(c,_){1&c&&a._uU(0," Not specified ")}function z(c,_){if(1&c&&(a.YNc(0,C,2,1,"span",3),a.YNc(1,m,1,0,"ng-template",null,4,a.W1O)),2&c){const d=a.MAs(2),E=a.oxw();a.Q6J("ngIf",E.notification)("ngIfElse",d)}}function u(c,_){1&c&&a._UZ(0,"i",6)}let v=(()=>{class c{constructor(){}ngOnInit(){}}return c.\u0275fac=function(d){return new(d||c)},c.\u0275cmp=a.Xpm({type:c,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification"},decls:5,vars:2,consts:[[3,"nzNotFoundContent","nzNotFoundImage"],["notFound",""],["notFoundImg",""],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["defaultNotification",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(d,E){if(1&d&&(a._UZ(0,"nz-empty",0),a.YNc(1,z,3,2,"ng-template",null,1,a.W1O),a.YNc(3,u,1,0,"ng-template",null,2,a.W1O)),2&d){const k=a.MAs(2),y=a.MAs(4);a.Q6J("nzNotFoundContent",k)("nzNotFoundImage",y)}},directives:[p.p9,e.O5,f.Ls],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .ant-empty-image{height:35px;margin-top:4px;margin-bottom:4px}[_nghost-%COMP%] .ant-empty-image i, [_nghost-%COMP%] .ant-empty-image svg{height:100%;width:100%}"]}),c})()},8541:(N,g,i)=>{i.d(g,{o:()=>C});var a=i(9808),p=i(685),e=i(647),f=i(5e3);let C=(()=>{class m{}return m.\u0275fac=function(u){return new(u||m)},m.\u0275mod=f.oAB({type:m}),m.\u0275inj=f.cJS({imports:[[a.ez,p.Xo,e.PV]]}),m})()},6559:(N,g,i)=>{i.d(g,{H0:()=>D});var a=i(5e3),p=i(9808),e=i(226);let D=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=a.oAB({type:s}),s.\u0275inj=a.cJS({imports:[[e.vT,p.ez]]}),s})()},6462:(N,g,i)=>{i.d(g,{i:()=>l,m:()=>n});var a=i(655),p=i(1159),e=i(5e3),f=i(4182),C=i(8929),m=i(3753),z=i(7625),u=i(9439),v=i(1721),c=i(5664),_=i(226),d=i(2643),E=i(9808),k=i(647),y=i(969);const M=["switchElement"];function P(t,h){1&t&&e._UZ(0,"i",8)}function T(t,h){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const o=e.oxw(2);e.xp6(1),e.Oqu(o.nzCheckedChildren)}}function O(t,h){if(1&t&&(e.ynx(0),e.YNc(1,T,2,1,"ng-container",9),e.BQk()),2&t){const o=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",o.nzCheckedChildren)}}function x(t,h){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const o=e.oxw(2);e.xp6(1),e.Oqu(o.nzUnCheckedChildren)}}function D(t,h){if(1&t&&e.YNc(0,x,2,1,"ng-container",9),2&t){const o=e.oxw();e.Q6J("nzStringTemplateOutlet",o.nzUnCheckedChildren)}}let l=(()=>{class t{constructor(o,r,S,w,A,I){this.nzConfigService=o,this.host=r,this.ngZone=S,this.cdr=w,this.focusMonitor=A,this.directionality=I,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new C.xQ}updateValue(o){this.isChecked!==o&&(this.isChecked=o,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,z.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.host.nativeElement,"click").pipe((0,z.R)(this.destroy$)).subscribe(o=>{o.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,m.R)(this.switchElement.nativeElement,"keydown").pipe((0,z.R)(this.destroy$)).subscribe(o=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:r}=o;r!==p.oh&&r!==p.SV&&r!==p.L_&&r!==p.K5||(o.preventDefault(),this.ngZone.run(()=>{r===p.oh?this.updateValue(!1):r===p.SV?this.updateValue(!0):(r===p.L_||r===p.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,z.R)(this.destroy$)).subscribe(o=>{o||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(o){this.isChecked=o,this.cdr.markForCheck()}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}setDisabledState(o){this.nzDisabled=o,this.cdr.markForCheck()}}return t.\u0275fac=function(o){return new(o||t)(e.Y36(u.jY),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(c.tE),e.Y36(_.Is,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nz-switch"]],viewQuery:function(o,r){if(1&o&&e.Gf(M,7),2&o){let S;e.iGM(S=e.CRH())&&(r.switchElement=S.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[e._Bn([{provide:f.JU,useExisting:(0,e.Gpc)(()=>t),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(o,r){if(1&o&&(e.TgZ(0,"button",0,1),e.TgZ(2,"span",2),e.YNc(3,P,1,0,"i",3),e.qZA(),e.TgZ(4,"span",4),e.YNc(5,O,2,1,"ng-container",5),e.YNc(6,D,1,1,"ng-template",null,6,e.W1O),e.qZA(),e._UZ(8,"div",7),e.qZA()),2&o){const S=e.MAs(7);e.ekj("ant-switch-checked",r.isChecked)("ant-switch-loading",r.nzLoading)("ant-switch-disabled",r.nzDisabled)("ant-switch-small","small"===r.nzSize)("ant-switch-rtl","rtl"===r.dir),e.Q6J("disabled",r.nzDisabled)("nzWaveExtraNode",!0),e.xp6(3),e.Q6J("ngIf",r.nzLoading),e.xp6(2),e.Q6J("ngIf",r.isChecked)("ngIfElse",S)}},directives:[d.dQ,E.O5,k.Ls,y.f],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,v.yF)()],t.prototype,"nzLoading",void 0),(0,a.gn)([(0,v.yF)()],t.prototype,"nzDisabled",void 0),(0,a.gn)([(0,v.yF)()],t.prototype,"nzControl",void 0),(0,a.gn)([(0,u.oS)()],t.prototype,"nzSize",void 0),t})(),n=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[_.vT,E.ez,d.vG,k.PV,y.T]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/605.0b7e1919acad6432.js b/server/public/605.0b7e1919acad6432.js new file mode 100644 index 000000000..5cab61dd2 --- /dev/null +++ b/server/public/605.0b7e1919acad6432.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[605],{605:(ft,v,r)=>{r.r(v),r.d(v,{VariantGroupsReviseModule:()=>mt});var p=r(9808),d=r(325),y=r(373),I=r(1059),R=r(4850),t=r(5e3),g=r(712),S=r(9350),T=r(8992),c=r(1945),x=r(647),l=r(1894),P=r(8616),G=r(6949);function Z(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function A(e,o){1&e&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"div",9),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}function C(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2),t.TgZ(3,"nz-page-header-title",3),t._uU(4," REVISE "),t._UZ(5,"i",4),t._uU(6),t.qZA(),t.TgZ(7,"nz-page-header-content"),t.TgZ(8,"div",5),t.YNc(9,Z,2,0,"div",6),t.ALo(10,"ngrxPush"),t.YNc(11,A,3,0,"ng-template",null,7,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=o.ngIf,a=t.MAs(12),i=t.oxw();t.xp6(1),t.Q6J("displayName",n.name),t.xp6(5),t.hij(" ",n.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(10,4,i.isSignedIn$))("ngIfElse",a)}}let F=(()=>{class e{constructor(n,a,i){this.gql=n,this.route=a,this.viewerService=i,this.routeSub=this.route.params.subscribe(s=>{let b=this.gql.watch({variantGroupId:+s.variantGroupId}).valueChanges;this.loading$=b.pipe((0,y.j)("loading"),(0,I.O)(!0)),this.variantGroup$=b.pipe((0,y.j)("data","variantGroup"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,R.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(g.Qtd),t.Y36(d.gz),t.Y36(S.a))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variantgroup"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,a){1&n&&(t.YNc(0,C,13,6,"ng-container",0),t.ALo(1,"async")),2&n&&t.Q6J("ngIf",t.lcZ(1,1,a.variantGroup$))},directives:[p.O5,T.I,c.$O,c.u9,x.Ls,c.u5,d.lC,l.SK,l.t3,P.u],pipes:[p.Ov,G.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),e})();var u=r(4182),m=r(8776),z=r(2359),J=r(6042),f=r(4546),Q=r(7525),N=r(5109),Y=r(7008),$=r(4623),L=r(8979),U=r(8390),w=r(3773),j=r(7075),_=r(7462),V=r(4181),B=r(5472),E=r(4889);let D=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,u.UX,d.Bz,m.X0,f.U5,z.L,l.Jb,J.sL,Q.j,m.X0,_.o,V.O,U.N,L.N,$.K,Y.B,B.r,w.g,V.O,j.l,E.E,N.s]]}),e})(),W=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,D]]}),e})();var M=r(3077),X=r(6123),K=r(8929),h=r(7625),H=r(9169),k=r(822);function q(e,o){1&e&&t.GkF(0)}function tt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"formly-form",5),t.NdJ("modelChange",function(i){return t.CHM(n),t.oxw(2).formModel=i}),t.qZA()}if(2&e){const n=t.oxw(2);t.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)}}function et(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"form",2),t.NdJ("ngSubmit",function(){t.CHM(n);const i=t.oxw();return i.submitVariantGroup(i.formModel)}),t.YNc(1,q,1,0,"ng-container",3),t.YNc(2,tt,1,3,"formly-form",4),t.qZA()}if(2&e){const n=t.oxw(),a=t.MAs(2);t.Q6J("formGroup",n.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(1),t.Q6J("ngIf",!n.success)}}function nt(e,o){if(1&e&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",7),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("errors",n.errorMessages)}}function rt(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1,"View it on the "),t.TgZ(2,"a",11),t._uU(3,"Revisions Page"),t.qZA(),t._uU(4,"."),t.qZA())}function ot(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"nz-alert",8),t.YNc(2,rt,5,0,"ng-template",9,10,t.W1O),t.BQk()),2&e){const n=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",n)}}function at(e,o){if(1&e&&(t.YNc(0,nt,2,1,"nz-form-item",6),t.YNc(1,ot,4,1,"ng-container",6)),2&e){const n=t.oxw();t.Q6J("ngIf",n.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",n.success)}}let it=(()=>{class e{constructor(n,a,i){this.suggestRevisionGQL=n,this.revisableFieldsGQL=a,this.networkErrorService=i,this.destroy$=new K.xQ,this.formGroup=new u.cw({}),this.formOptions={},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new X.U(i),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Variant Group Form"},fieldGroup:[{key:"name",type:"input",wrappers:["form-field"],templateOptions:{label:"Variant Group Name",required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Description",helpText:"A brief description of this new variant group.",placeholder:"No description provided",required:!0}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"Add any sources upon which your description depends.",addText:"Add a Source"},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variants",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variants",helpText:"Specify the variants that comprise this Variant Group.",addText:"Add a Variant "},fieldArray:{type:"variant-input",templateOptions:{hideLabel:!0,required:!0,allowCreate:!1}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Group Revision",submitSize:"large"}}]}]}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantGroupId:this.variantGroupId}).subscribe(({data:{variantGroup:n}})=>{n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving evidenceItem."),console.error(n)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var a;return{fields:Object.assign(Object.assign({},n),{variants:n.variants.nodes,organization:null===(a=this.formModel)||void 0===a?void 0:a.fields.organization})}}submitVariantGroup(n){let a=this.toSubmitInput(n);if(a){let i=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:a});i.submitSuccess$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),i.submitError$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),i.isSubmitting$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toSubmitInput(n){var a;if(n)return{id:this.variantGroupId,organizationId:null===(a=n.fields.organization)||void 0===a?void 0:a.id,comment:n.fields.comment,fields:{description:n.fields.description,name:n.fields.name,sourceIds:n.fields.sources.map(i=>i.id).filter(M.$),variantIds:n.fields.variants.map(i=>i.id).filter(M.$)}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(g.aw3),t.Y36(g.ROj),t.Y36(H.Y))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-group-revise-form"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:1,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","modelChange",4,"ngIf"],[3,"form","fields","model","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Revision(s) Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,a){1&n&&(t.YNc(0,et,3,3,"form",0),t.YNc(1,at,2,2,"ng-template",null,1,t.W1O)),2&n&&t.Q6J("ngIf",a.formModel)},directives:[p.O5,u._Y,u.JL,f.Lr,u.sg,p.tP,m.T7,l.SK,f.Nx,k.V,z.r,d.yS],styles:[""]}),e})();function st(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-variant-group-revise-form",2),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("variantGroupId",n.variantGroupId)}}function pt(e,o){1&e&&t._uU(0,"Loading Variant Group...")}const dt=[{path:"",component:F,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class e{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(a=>{this.variantGroupId=+a.variantGroupId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(d.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-suggest-page"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariantGroup",""],[3,"variantGroupId"]],template:function(n,a){if(1&n&&(t.YNc(0,st,2,1,"ng-container",0),t.YNc(1,pt,1,0,"ng-template",null,1,t.W1O)),2&n){const i=t.MAs(2);t.Q6J("ngIf",a.variantGroupId)("ngIfElse",i)}},directives:[p.O5,it],styles:[""]}),e})(),data:{breadcrumb:"Suggest Revision"}}]}];let lt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[d.Bz.forChild(dt),W],d.Bz]}),e})();var O=r(8144),ut=r(3618),ct=r(5630),gt=r(9386);let mt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,lt,c.KJ,O.zf,x.PV,ut.ZJ,O.zf,ct.D,gt.a,G.WG,l.Jb]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/605.96b969c7e87e0600.js b/server/public/605.96b969c7e87e0600.js deleted file mode 100644 index a9968ab60..000000000 --- a/server/public/605.96b969c7e87e0600.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[605],{605:(mt,v,r)=>{r.r(v),r.d(v,{VariantGroupsReviseModule:()=>ct});var p=r(9808),d=r(325),y=r(373),I=r(1059),R=r(4850),t=r(5e3),c=r(712),S=r(9350),T=r(8992),g=r(1945),G=r(647),l=r(1894),P=r(8616),x=r(6949);function Z(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function A(e,o){1&e&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"div",9),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}function C(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2),t.TgZ(3,"nz-page-header-title",3),t._uU(4," REVISE "),t._UZ(5,"i",4),t._uU(6),t.qZA(),t.TgZ(7,"nz-page-header-content"),t.TgZ(8,"div",5),t.YNc(9,Z,2,0,"div",6),t.ALo(10,"ngrxPush"),t.YNc(11,A,3,0,"ng-template",null,7,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=o.ngIf,a=t.MAs(12),i=t.oxw();t.xp6(1),t.Q6J("displayName",n.name),t.xp6(5),t.hij(" ",n.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(10,4,i.isSignedIn$))("ngIfElse",a)}}let F=(()=>{class e{constructor(n,a,i){this.gql=n,this.route=a,this.viewerService=i,this.routeSub=this.route.params.subscribe(s=>{let b=this.gql.watch({variantGroupId:+s.variantGroupId}).valueChanges;this.loading$=b.pipe((0,y.j)("loading"),(0,I.O)(!0)),this.variantGroup$=b.pipe((0,y.j)("data","variantGroup"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,R.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(c.Qtd),t.Y36(d.gz),t.Y36(S.a))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variantgroup"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,a){1&n&&(t.YNc(0,C,13,6,"ng-container",0),t.ALo(1,"async")),2&n&&t.Q6J("ngIf",t.lcZ(1,1,a.variantGroup$))},directives:[p.O5,T.I,g.$O,g.u9,G.Ls,g.u5,d.lC,l.SK,l.t3,P.u],pipes:[p.Ov,x.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),e})();var u=r(4182),m=r(8776),z=r(2359),J=r(6042),f=r(4546),Q=r(7525),N=r(5109),Y=r(7008),$=r(4623),U=r(8979),L=r(8390),w=r(3773),j=r(7075),B=r(7462),V=r(4181),E=r(5472),D=r(4889);let W=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,u.UX,d.Bz,m.X0,f.U5,z.L,l.Jb,J.sL,Q.j,m.X0,B.o,V.O,L.N,U.N,$.K,Y.B,E.r,w.g,V.O,j.l,D.E,N.s]]}),e})(),X=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,W]]}),e})();var M=r(3077),K=r(6123),H=r(8929),h=r(7625),_=r(9169),k=r(822);function q(e,o){1&e&&t.GkF(0)}function tt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"formly-form",4),t.NdJ("modelChange",function(i){return t.CHM(n),t.oxw().formModel=i}),t.qZA()}if(2&e){const n=t.oxw();t.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)}}function et(e,o){if(1&e&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",6),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("errors",n.errorMessages)}}function nt(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1,"View it on the "),t.TgZ(2,"a",10),t._uU(3,"Revisions Page"),t.qZA(),t._uU(4,"."),t.qZA())}function rt(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"nz-alert",7),t.YNc(2,nt,5,0,"ng-template",8,9,t.W1O),t.BQk()),2&e){const n=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",n)}}function ot(e,o){if(1&e&&(t.YNc(0,et,2,1,"nz-form-item",5),t.YNc(1,rt,4,1,"ng-container",5)),2&e){const n=t.oxw();t.Q6J("ngIf",n.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",n.success)}}let at=(()=>{class e{constructor(n,a,i){this.suggestRevisionGQL=n,this.revisableFieldsGQL=a,this.networkErrorService=i,this.destroy$=new H.xQ,this.formGroup=new u.cw({}),this.formOptions={},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new K.U(i),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Variant Group Form"},fieldGroup:[{key:"name",type:"input",wrappers:["form-field"],templateOptions:{label:"Variant Group Name",required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Description",helpText:"A brief description of this new variant group.",placeholder:"No description provided",required:!0}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"Add any sources upon which your description depends.",addText:"Add a Source"},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variants",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variants",helpText:"Specify the variants that comprise this Variant Group.",addText:"Add a Variant "},fieldArray:{type:"variant-input",templateOptions:{hideLabel:!0,required:!0,allowCreate:!1}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Group Revision",submitSize:"large"}}]}]}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantGroupId:this.variantGroupId}).subscribe(({data:{variantGroup:n}})=>{n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving evidenceItem."),console.error(n)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var a;return{fields:Object.assign(Object.assign({},n),{variants:n.variants.nodes,organization:null===(a=this.formModel)||void 0===a?void 0:a.fields.organization})}}submitVariantGroup(n){let a=this.toSubmitInput(n);if(a){let i=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:a});i.submitSuccess$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),i.submitError$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),i.isSubmitting$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toSubmitInput(n){var a;if(n)return{id:this.variantGroupId,organizationId:null===(a=n.fields.organization)||void 0===a?void 0:a.id,comment:n.fields.comment,fields:{description:n.fields.description,name:n.fields.name,sourceIds:n.fields.sources.map(i=>i.id).filter(M.$),variantIds:n.fields.variants.map(i=>i.id).filter(M.$)}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(c.aw3),t.Y36(c.ROj),t.Y36(_.Y))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-group-revise-form"]],inputs:{variantGroupId:"variantGroupId"},decls:5,vars:3,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","modelChange",4,"ngIf"],["formMessages",""],[3,"form","fields","model","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Revision(s) Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,a){if(1&n&&(t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return a.submitVariantGroup(a.formModel)}),t.YNc(1,q,1,0,"ng-container",1),t.YNc(2,tt,1,3,"formly-form",2),t.qZA(),t.YNc(3,ot,2,2,"ng-template",null,3,t.W1O)),2&n){const i=t.MAs(4);t.Q6J("formGroup",a.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngIf",!a.success)}},directives:[u._Y,u.JL,f.Lr,u.sg,p.tP,p.O5,m.T7,l.SK,f.Nx,k.V,z.r,d.yS],styles:[""]}),e})();function it(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-variant-group-revise-form",2),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("variantGroupId",n.variantGroupId)}}function st(e,o){1&e&&t._uU(0,"Loading Variant Group...")}const pt=[{path:"",component:F,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class e{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(a=>{this.variantGroupId=+a.variantGroupId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(d.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-suggest-page"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariantGroup",""],[3,"variantGroupId"]],template:function(n,a){if(1&n&&(t.YNc(0,it,2,1,"ng-container",0),t.YNc(1,st,1,0,"ng-template",null,1,t.W1O)),2&n){const i=t.MAs(2);t.Q6J("ngIf",a.variantGroupId)("ngIfElse",i)}},directives:[p.O5,at],styles:[""]}),e})(),data:{breadcrumb:"Suggest Revision"}}]}];let dt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[d.Bz.forChild(pt),X],d.Bz]}),e})();var O=r(8144),lt=r(3618),ut=r(5630),gt=r(9386);let ct=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,dt,g.KJ,O.zf,G.PV,lt.ZJ,O.zf,ut.D,gt.a,x.WG,l.Jb]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/6303.39a638159b50f07b.js b/server/public/6303.39a638159b50f07b.js deleted file mode 100644 index f7be69609..000000000 --- a/server/public/6303.39a638159b50f07b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6303],{8369:(j,U,i)=>{i.d(U,{W:()=>L});var e=i(9808),n=i(325),t=i(8481),A=i(3610),Z=i(647),M=i(7484),D=i(3098),I=i(3309),O=i(4867),E=i(6286),k=i(8018),J=i(6949),C=i(9444),f=i(1894),P=i(8144),S=i(3580),V=i(8625),W=i(7026),B=i(592),Q=i(5e3);let F=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275mod=Q.oAB({type:T}),T.\u0275inj=Q.cJS({imports:[[e.ez,n.Bz,J.WG,M.vh,D.q6,Z.PV,f.Jb,P.zf,t.X,I.U,S.Q,O.Q,E.y,k.e,C.s,B.x,V.$L.forChild({formatter:{useClass:W.x,provide:V.KP}})]]}),T})(),L=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275mod=Q.oAB({type:T}),T.\u0275inj=Q.cJS({imports:[[e.ez,n.Bz,t.X,A.$6,Z.PV,F,C.s]]}),T})()},209:(j,U,i)=>{i.d(U,{i:()=>L});var e=i(9808),n=i(325),t=i(8481),A=i(3610),Z=i(647),M=i(7484),D=i(3309),I=i(4867),O=i(1894),E=i(3098),k=i(8018),J=i(3580),C=i(6286),f=i(6949),P=i(8144),S=i(9444),V=i(9779),W=i(592),B=i(3618),Q=i(5e3);let F=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275mod=Q.oAB({type:T}),T.\u0275inj=Q.cJS({imports:[[e.ez,n.Bz,f.WG,Z.PV,M.vh,O.Jb,E.q6,t.X,P.zf,B.ZJ,S.s,k.e,J.Q,D.U,I.Q,C.y,V.s,W.x]]}),T})(),L=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275mod=Q.oAB({type:T}),T.\u0275inj=Q.cJS({imports:[[e.ez,n.Bz,t.X,A.$6,Z.PV,F,S.s]]}),T})()},5749:(j,U,i)=>{i.d(U,{m:()=>st});var e=i(5e3),n=i(9808),t=i(325),A=i(8481),Z=i(3610),M=i(4850),D=i(712),I=i(7484),O=i(7881),E=i(1894),k=i(3098),J=i(6550),C=i(6949);const f=function(d,x){return{displayName:d,profileImagePath:x}};function P(d,x){if(1&d&&(e._UZ(0,"cvc-user-avatar",12),e.TgZ(1,"span",13),e._uU(2),e.qZA()),2&d){const u=e.oxw().ngIf;e.Q6J("user",e.WLB(2,f,u.name,u.profileImagePath)),e.xp6(2),e.Oqu(u.name)}}function S(d,x){if(1&d&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&d){const u=x.ngIf;e.xp6(1),e.Oqu(u)}}function V(d,x){if(1&d&&(e.ynx(0),e.TgZ(1,"cvc-link-tag",14),e._uU(2),e.qZA(),e.BQk()),2&d){const u=e.oxw().ngIf;e.xp6(1),e.Q6J("href",u.url),e.xp6(1),e.hij(" ",u.name," ")}}function W(d,x){if(1&d&&(e.ynx(0),e.TgZ(1,"nz-card",4),e.YNc(2,P,3,5,"ng-template",null,5,e.W1O),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",6),e.TgZ(6,"div",7),e.TgZ(7,"p",8),e.YNc(8,S,2,1,"span",9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"nz-descriptions",10),e.TgZ(10,"nz-descriptions-item",11),e.YNc(11,V,3,2,"ng-container",9),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&d){const u=x.ngIf,Y=e.MAs(3);e.oxw();const R=e.MAs(4),ot=e.MAs(6);e.xp6(1),e.Q6J("nzTitle",Y),e.xp6(7),e.Q6J("ngIf",u.description)("ngIfElse",R),e.xp6(1),e.Q6J("nzColumn",2),e.xp6(2),e.Q6J("ngIf",u.url)("ngIfElse",ot)}}function B(d,x){1&d&&e._uU(0," Organization has not provided a description.\n")}function Q(d,x){1&d&&e._uU(0," --\n")}let F=(()=>{class d{constructor(u){this.gql=u}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,M.U)(({data:u})=>u.organization))}}return d.\u0275fac=function(u){return new(u||d)(e.Y36(D.X5f))},d.\u0275cmp=e.Xpm({type:d,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noDesc",""],["noHomepage",""],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(u,Y){1&u&&(e.TgZ(0,"div",0),e.YNc(1,W,12,6,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA(),e.YNc(3,B,1,0,"ng-template",null,2,e.W1O),e.YNc(5,Q,1,0,"ng-template",null,3,e.W1O)),2&u&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,Y.org$)))},directives:[n.O5,I.bd,O.L,E.SK,E.t3,k.R7,k.uj,J.l],pipes:[C.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),d})();var L=i(647);function T(d,x){}function g(d,x){if(1&d&&(e.ynx(0),e.TgZ(1,"a",5),e.YNc(2,T,0,0,"ng-template",6),e.qZA(),e.BQk()),2&d){const u=e.oxw(),Y=e.MAs(2);e.xp6(1),e.MGl("routerLink","/organizations/",u.org.id,""),e.xp6(1),e.Q6J("ngTemplateOutlet",Y)}}function m(d,x){}function l(d,x){if(1&d&&e._UZ(0,"cvc-organization-popover",10),2&d){const u=e.oxw(3);e.Q6J("orgId",u.org.id)}}function z(d,x){if(1&d&&e.YNc(0,l,1,1,"cvc-organization-popover",9),2&d){const u=e.oxw(2);e.Q6J("ngIf",u.enablePopover)}}function N(d,x){if(1&d&&(e.TgZ(0,"nz-tag",7),e.YNc(1,m,0,0,"ng-template",6),e.qZA(),e.YNc(2,z,1,1,"ng-template",null,8,e.W1O)),2&d){const u=e.MAs(3);e.oxw();const Y=e.MAs(8);e.Q6J("nzPopoverContent",u),e.xp6(1),e.Q6J("ngTemplateOutlet",Y)}}function K(d,x){}function tt(d,x){if(1&d&&(e.TgZ(0,"nz-tag"),e.YNc(1,K,0,0,"ng-template",6),e.qZA()),2&d){e.oxw();const u=e.MAs(8);e.xp6(1),e.Q6J("ngTemplateOutlet",u)}}function et(d,x){}function nt(d,x){if(1&d&&e.YNc(0,et,0,0,"ng-template",6),2&d){e.oxw();const u=e.MAs(2);e.Q6J("ngTemplateOutlet",u)}}function it(d,x){if(1&d&&(e._UZ(0,"i",11),e._uU(1)),2&d){const u=e.oxw();e.xp6(1),e.hij(" ",u.org.name,"\n")}}let st=(()=>{class d{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}}return d.\u0275fac=function(u){return new(u||d)},d.\u0275cmp=e.Xpm({type:d,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],["orgPopover",""],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(u,Y){if(1&u&&(e.YNc(0,g,3,2,"ng-container",0),e.YNc(1,N,4,2,"ng-template",null,1,e.W1O),e.YNc(3,tt,2,1,"ng-template",null,2,e.W1O),e.YNc(5,nt,1,1,"ng-template",null,3,e.W1O),e.YNc(7,it,2,1,"ng-template",null,4,e.W1O)),2&u){const R=e.MAs(6);e.Q6J("ngIf",Y.linked)("ngIfElse",R)}},directives:[n.O5,t.yS,n.tP,A.j,Z.lU,F,L.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),d})()},6286:(j,U,i)=>{i.d(U,{y:()=>J});var e=i(9808),n=i(325),t=i(8481),A=i(3610),Z=i(647),M=i(6949),D=i(7484),I=i(3630),O=i(3098),E=i(5e3);let k=(()=>{class C{}return C.\u0275fac=function(P){return new(P||C)},C.\u0275mod=E.oAB({type:C}),C.\u0275inj=E.cJS({imports:[[e.ez,M.WG,Z.PV,D.vh,I.X,O.q6]]}),C})(),J=(()=>{class C{}return C.\u0275fac=function(P){return new(P||C)},C.\u0275mod=E.oAB({type:C}),C.\u0275inj=E.cJS({imports:[[e.ez,n.Bz,t.X,A.$6,Z.PV,k]]}),C})()},592:(j,U,i)=>{i.d(U,{x:()=>Z});var e=i(9808),n=i(8481),t=i(647),A=i(5e3);let Z=(()=>{class M{}return M.\u0275fac=function(I){return new(I||M)},M.\u0275mod=A.oAB({type:M}),M.\u0275inj=A.cJS({imports:[[e.ez,n.X,t.PV]]}),M})()},7677:(j,U,i)=>{i.d(U,{G:()=>C});var e=i(9808),n=i(325),t=i(3610),A=i(8481),Z=i(647),M=i(9779),D=i(4867),I=i(7484),O=i(3098),E=i(6949),k=i(5e3);let J=(()=>{class f{}return f.\u0275fac=function(S){return new(S||f)},f.\u0275mod=k.oAB({type:f}),f.\u0275inj=k.cJS({imports:[[e.ez,E.WG,I.vh,O.q6,M.s,D.Q]]}),f})(),C=(()=>{class f{}return f.\u0275fac=function(S){return new(S||f)},f.\u0275mod=k.oAB({type:f}),f.\u0275inj=k.cJS({imports:[[e.ez,n.Bz,t.$6,A.X,Z.PV,J]]}),f})()},8664:(j,U,i)=>{i.d(U,{I:()=>ot});var e=i(6654),n=i(5e3),t=i(9808),A=i(325),Z=i(8481),M=i(3610),D=i(4850),I=i(712),O=i(7484),E=i(647),k=i(3193),J=i(3098),C=i(6550),f=i(1894),P=i(8144),S=i(6949);function V(c,_){if(1&c&&(n._UZ(0,"i",13),n._uU(1)),2&c){const h=n.oxw().ngIf;n.xp6(1),n.hij(" ",h.name," ")}}function W(c,_){if(1&c&&n._UZ(0,"cvc-gene-tag",14),2&c){const h=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",h.gene)}}function B(c,_){1&c&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function Q(c,_){if(1&c&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,B,2,0,"span",1),n.qZA()),2&c){const h=_.$implicit,w=_.last;n.xp6(1),n.hij(" ",h,""),n.xp6(1),n.Q6J("ngIf",!w)}}function F(c,_){if(1&c&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,Q,3,2,"span",16),n.qZA()),2&c){const h=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",h.variantAliases)}}function L(c,_){if(1&c&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&c){const h=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",h.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",h.alleleRegistryId," ")}}function T(c,_){if(1&c&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&c){const h=n.oxw().ngIf;n.MGl("routerLink","/variants/",h.id,"/flags"),n.xp6(3),n.hij(" Flags (",h.flags.totalCount,") ")}}function g(c,_){if(1&c&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&c){const h=n.oxw().ngIf;n.MGl("routerLink","/variants/",h.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",h.revisions.totalCount,") ")}}function m(c,_){if(1&c&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&c){const h=n.oxw().ngIf;n.MGl("routerLink","/variants/",h.id,"/comments"),n.xp6(3),n.hij(" Comments (",h.comments.totalCount,") ")}}function l(c,_){if(1&c&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,V,2,1,"ng-template",null,3,n.W1O),n.YNc(4,W,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,F,2,1,"nz-descriptions-item",6),n.YNc(8,L,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,T,4,2,"a",12),n.YNc(15,g,4,2,"a",12),n.YNc(16,m,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&c){const h=_.ngIf,w=n.MAs(3),$=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",w)("nzExtra",$),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",h.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",h.alleleRegistryId),n.xp6(2),n.hij(" ",h.evidenceItems.totalCount," ")}}let z=(()=>{class c{constructor(h){this.gql=h}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,D.U)(({data:h})=>h.variant))}}return c.\u0275fac=function(h){return new(h||c)(n.Y36(I.ZYZ))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(h,w){1&h&&(n.TgZ(0,"div",0),n.YNc(1,l,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&h&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,w.variant$)))},directives:[t.O5,O.bd,E.Ls,k.H,J.R7,J.uj,t.sg,C.l,f.SK,f.t3,P.NU,P.$1,A.yS,Z.j],pipes:[S.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),c})();function N(c,_){}function K(c,_){if(1&c&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,N,0,0,"ng-template",6),n.qZA(),n.BQk()),2&c){const h=n.oxw(),w=n.MAs(2);n.xp6(1),n.Q6J("routerLink",h.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",w)}}function tt(c,_){}function et(c,_){if(1&c){const h=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function($){return n.CHM(h),n.oxw(2).itemClosed($)}),n.YNc(1,tt,0,0,"ng-template",6),n.qZA()}if(2&c){n.oxw();const h=n.MAs(2),w=n.oxw(),$=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",w.onCloseClicked?0:.5)("nzPopoverContent",h)("nzMode",w.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",$)}}function nt(c,_){if(1&c&&n._UZ(0,"cvc-variant-popover",11),2&c){const h=n.oxw(3);n.Q6J("variantId",h.variant.id)}}function it(c,_){if(1&c&&n.YNc(0,nt,1,1,"cvc-variant-popover",10),2&c){const h=n.oxw(2);n.Q6J("ngIf",h.enablePopover)}}function st(c,_){if(1&c&&(n.YNc(0,et,2,4,"nz-tag",7),n.YNc(1,it,1,1,"ng-template",null,8,n.W1O)),2&c){const h=n.oxw(),w=n.MAs(4);n.Q6J("ngIf",h.enablePopover)("ngIfElse",w)}}function d(c,_){}function x(c,_){if(1&c){const h=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function($){return n.CHM(h),n.oxw().itemClosed($)}),n.YNc(1,d,0,0,"ng-template",6),n.qZA()}if(2&c){const h=n.oxw(),w=n.MAs(8);n.Q6J("nzMode",h.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",w)}}function u(c,_){}function Y(c,_){if(1&c&&n.YNc(0,u,0,0,"ng-template",6),2&c){n.oxw();const h=n.MAs(2);n.Q6J("ngTemplateOutlet",h)}}function R(c,_){if(1&c&&(n._UZ(0,"i",13),n._uU(1)),2&c){const h=n.oxw();n.xp6(1),n.hij(" ",h.variant.name,"\n")}}let ot=(()=>{class c extends e.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return c.\u0275fac=function(h){return new(h||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(h,w){if(1&h&&(n.YNc(0,K,3,2,"ng-container",0),n.YNc(1,st,3,2,"ng-template",null,1,n.W1O),n.YNc(3,x,2,2,"ng-template",null,2,n.W1O),n.YNc(5,Y,1,1,"ng-template",null,3,n.W1O),n.YNc(7,R,2,1,"ng-template",null,4,n.W1O)),2&h){const $=n.MAs(6);n.Q6J("ngIf",w.linked)("ngIfElse",$)}},directives:[t.O5,A.yS,t.tP,Z.j,M.lU,z,E.Ls],styles:[""]}),c})()},4867:(j,U,i)=>{i.d(U,{Q:()=>P});var e=i(9808),n=i(325),t=i(8481),A=i(647),Z=i(3610),M=i(6949),D=i(7484),I=i(1894),O=i(3098),E=i(8144),k=i(3309),J=i(3630),C=i(5e3);let f=(()=>{class S{}return S.\u0275fac=function(W){return new(W||S)},S.\u0275mod=C.oAB({type:S}),S.\u0275inj=C.cJS({imports:[[e.ez,n.Bz,M.WG,D.vh,I.Jb,O.q6,t.X,A.PV,E.zf,k.U,J.X]]}),S})(),P=(()=>{class S{}return S.\u0275fac=function(W){return new(W||S)},S.\u0275mod=C.oAB({type:S}),S.\u0275inj=C.cJS({imports:[[e.ez,n.Bz,t.X,Z.$6,A.PV,f]]}),S})()},6528:(j,U,i)=>{i.r(U),i.d(U,{WelcomeModule:()=>Dt});var e=i(325),n=i(712),t=i(5e3),A=i(8144),Z=i(1894),M=i(226),D=i(925),I=i(9808),O=i(655),E=i(1159),k=i(8929),J=i(3753),C=i(7625),f=i(9439),P=i(1721),S=i(4090);const V=["slickList"],W=["slickTrack"];function B(s,a){}const Q=function(s){return{$implicit:s}};function F(s,a){if(1&s){const o=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){const v=t.CHM(o).index;return t.oxw(2).onLiClick(v)}),t.YNc(1,B,0,0,"ng-template",10),t.qZA()}if(2&s){const o=a.index,r=t.oxw(2),p=t.MAs(8);t.ekj("slick-active",o===r.activeIndex),t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzDotRender||p)("ngTemplateOutletContext",t.VKq(4,Q,o))}}function L(s,a){if(1&s&&(t.TgZ(0,"ul",7),t.YNc(1,F,2,6,"li",8),t.qZA()),2&s){const o=t.oxw();t.ekj("slick-dots-top","top"===o.nzDotPosition)("slick-dots-bottom","bottom"===o.nzDotPosition)("slick-dots-left","left"===o.nzDotPosition)("slick-dots-right","right"===o.nzDotPosition),t.xp6(1),t.Q6J("ngForOf",o.carouselContents)}}function T(s,a){if(1&s&&(t.TgZ(0,"button"),t._uU(1),t.qZA()),2&s){const o=a.$implicit;t.xp6(1),t.Oqu(o+1)}}const g=["*"];let m=(()=>{class s{constructor(o,r){this.renderer=r,this._active=!1,this.el=o.nativeElement,this.renderer.addClass(o.nativeElement,"slick-slide")}set isActive(o){this._active=o,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}}return s.\u0275fac=function(o){return new(o||s)(t.Y36(t.SBq),t.Y36(t.Qsj))},s.\u0275dir=t.lG2({type:s,selectors:[["","nz-carousel-content",""]],exportAs:["nzCarouselContent"]}),s})();class l{constructor(a,o,r,p,v){this.cdr=o,this.renderer=r,this.platform=p,this.options=v,this.carouselComponent=a}get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}withCarouselContents(a){const o=this.carouselComponent;if(this.slickListEl=o.slickListEl,this.slickTrackEl=o.slickTrackEl,this.contents=(null==a?void 0:a.toArray())||[],this.length=this.contents.length,this.platform.isBrowser){const r=o.el.getBoundingClientRect();this.unitWidth=r.width,this.unitHeight=r.height}else null==a||a.forEach((r,p)=>{0===p?this.renderer.setStyle(r.el,"width","100%"):this.renderer.setStyle(r.el,"display","none")})}dragging(a){}dispose(){}getFromToInBoundary(a,o){const r=this.maxIndex+1;return{from:(a+r)%r,to:(o+r)%r}}}class z extends l{withCarouselContents(a){super.withCarouselContents(a),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((o,r)=>{this.renderer.setStyle(o.el,"opacity",this.carouselComponent.activeIndex===r?"1":"0"),this.renderer.setStyle(o.el,"position","relative"),this.renderer.setStyle(o.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(o.el,"left",-this.unitWidth*r+"px"),this.renderer.setStyle(o.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(a,o){const{to:r}=this.getFromToInBoundary(a,o),p=new k.xQ;return this.contents.forEach((v,H)=>{this.renderer.setStyle(v.el,"opacity",r===H?"1":"0")}),setTimeout(()=>{p.next(),p.complete()},this.carouselComponent.nzTransitionSpeed),p}dispose(){this.contents.forEach(a=>{this.renderer.setStyle(a.el,"transition",null),this.renderer.setStyle(a.el,"opacity",null),this.renderer.setStyle(a.el,"width",null),this.renderer.setStyle(a.el,"left",null)}),super.dispose()}}class N extends l{constructor(a,o,r,p,v){super(a,o,r,p,v),this.isDragging=!1,this.isTransitioning=!1}get vertical(){return this.carouselComponent.vertical}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(a){super.withCarouselContents(a);const r=this.carouselComponent.activeIndex;this.platform.isBrowser&&this.contents.length&&(this.renderer.setStyle(this.slickListEl,"height",`${this.unitHeight}px`),this.vertical?(this.renderer.setStyle(this.slickTrackEl,"width",`${this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,"height",this.length*this.unitHeight+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-r*this.unitHeight}px, 0)`)):(this.renderer.setStyle(this.slickTrackEl,"height",`${this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,"width",this.length*this.unitWidth+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-r*this.unitWidth}px, 0, 0)`)),this.contents.forEach(p=>{this.renderer.setStyle(p.el,"position","relative"),this.renderer.setStyle(p.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(p.el,"height",`${this.unitHeight}px`)}))}switch(a,o){const{to:r}=this.getFromToInBoundary(a,o),p=new k.xQ;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(a,o):this.horizontalTransform(a,o),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(v=>{this.renderer.setStyle(v.el,this.vertical?"top":"left",null)}),this.renderer.setStyle(this.slickTrackEl,"transform",this.vertical?`translate3d(0, ${-r*this.unitHeight}px, 0)`:`translate3d(${-r*this.unitWidth}px, 0, 0)`),this.isTransitioning=!1,p.next(),p.complete()},this.carouselComponent.nzTransitionSpeed),p.asObservable()}dragging(a){if(this.isTransitioning)return;const o=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(o===this.maxIndex?this.prepareVerticalContext(!0):0===o&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-o*this.unitHeight+a.x}px, 0)`)):(!this.isDragging&&this.length>2&&(o===this.maxIndex?this.prepareHorizontalContext(!0):0===o&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-o*this.unitWidth+a.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(a,o){const{from:r,to:p}=this.getFromToInBoundary(a,o);this.length>2&&o!==p?(this.prepareVerticalContext(p2&&o!==p?(this.prepareHorizontalContext(p{class s{constructor(o,r,p,v,H,G,q,lt,ct,pt){this.nzConfigService=r,this.ngZone=p,this.renderer=v,this.cdr=H,this.platform=G,this.resizeService=q,this.nzDragService=lt,this.directionality=ct,this.customStrategies=pt,this._nzModuleName="carousel",this.nzEffect="scrollx",this.nzEnableSwipe=!0,this.nzDots=!0,this.nzAutoPlay=!1,this.nzAutoPlaySpeed=3e3,this.nzTransitionSpeed=500,this.nzStrategyOptions=void 0,this._dotPosition="bottom",this.nzBeforeChange=new t.vpe,this.nzAfterChange=new t.vpe,this.activeIndex=0,this.vertical=!1,this.transitionInProgress=null,this.dir="ltr",this.destroy$=new k.xQ,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=X=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-X:X)},this.pointerDown=X=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(X).subscribe(y=>{var gt;this.pointerDelta=y,this.isDragging=!0,null===(gt=this.strategy)||void 0===gt||gt.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const y=this.pointerDelta?this.pointerDelta.x:0;Math.abs(y)>this.gestureRect.width/3?this.goTo(y>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))},this.nzDotPosition="bottom",this.renderer.addClass(o.nativeElement,"ant-carousel"),this.el=o.nativeElement}set nzDotPosition(o){this._dotPosition=o,this.vertical="left"===o||"right"===o}get nzDotPosition(){return this._dotPosition}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe((0,C.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,J.R)(this.slickListEl,"keydown").pipe((0,C.R)(this.destroy$)).subscribe(o=>{const{keyCode:r}=o;r!==E.oh&&r!==E.SV||(o.preventDefault(),this.ngZone.run(()=>{r===E.oh?this.pre():this.next(),this.cdr.markForCheck()}))})})}ngAfterContentInit(){this.markContentActive(0)}ngAfterViewInit(){this.carouselContents.changes.subscribe(()=>{this.markContentActive(0),this.layout()}),this.resizeService.subscribe().pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(o){const{nzEffect:r,nzDotPosition:p}=o;r&&!r.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),p&&!p.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),this.nzAutoPlay&&this.nzAutoPlaySpeed?this.scheduleNextTransition():this.clearScheduledTransition()}ngOnDestroy(){this.clearScheduledTransition(),this.strategy&&this.strategy.dispose(),this.destroy$.next(),this.destroy$.complete()}next(){this.goTo(this.activeIndex+1)}pre(){this.goTo(this.activeIndex-1)}goTo(o){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting){const r=this.carouselContents.length,p=this.activeIndex,v=(o+r)%r;this.isTransiting=!0,this.nzBeforeChange.emit({from:p,to:v}),this.strategy.switch(this.activeIndex,o).subscribe(()=>{this.scheduleNextTransition(),this.nzAfterChange.emit(o),this.isTransiting=!1}),this.markContentActive(v),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const o=this.customStrategies?this.customStrategies.find(r=>r.name===this.nzEffect):null;this.strategy=o?new o.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new N(this,this.cdr,this.renderer,this.platform):new z(this,this.cdr,this.renderer,this.platform)}scheduleNextTransition(){this.clearScheduledTransition(),this.nzAutoPlay&&this.nzAutoPlaySpeed>0&&this.platform.isBrowser&&(this.transitionInProgress=setTimeout(()=>{this.goTo(this.activeIndex+1)},this.nzAutoPlaySpeed))}clearScheduledTransition(){this.transitionInProgress&&(clearTimeout(this.transitionInProgress),this.transitionInProgress=null)}markContentActive(o){this.activeIndex=o,this.carouselContents&&this.carouselContents.forEach((r,p)=>{r.isActive="rtl"===this.dir?o===this.carouselContents.length-1-p:o===p}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}}return s.\u0275fac=function(o){return new(o||s)(t.Y36(t.SBq),t.Y36(f.jY),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(D.t4),t.Y36(S.rI),t.Y36(S.Ml),t.Y36(M.Is,8),t.Y36(K,8))},s.\u0275cmp=t.Xpm({type:s,selectors:[["nz-carousel"]],contentQueries:function(o,r,p){if(1&o&&t.Suo(p,m,4),2&o){let v;t.iGM(v=t.CRH())&&(r.carouselContents=v)}},viewQuery:function(o,r){if(1&o&&(t.Gf(V,7),t.Gf(W,7)),2&o){let p;t.iGM(p=t.CRH())&&(r.slickList=p.first),t.iGM(p=t.CRH())&&(r.slickTrack=p.first)}},hostVars:4,hostBindings:function(o,r){2&o&&t.ekj("ant-carousel-vertical",r.vertical)("ant-carousel-rtl","rtl"===r.dir)},inputs:{nzDotRender:"nzDotRender",nzEffect:"nzEffect",nzEnableSwipe:"nzEnableSwipe",nzDots:"nzDots",nzAutoPlay:"nzAutoPlay",nzAutoPlaySpeed:"nzAutoPlaySpeed",nzTransitionSpeed:"nzTransitionSpeed",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],features:[t.TTD],ngContentSelectors:g,decls:9,vars:3,consts:[[1,"slick-initialized","slick-slider"],["tabindex","-1",1,"slick-list",3,"mousedown","touchstart"],["slickList",""],[1,"slick-track"],["slickTrack",""],["class","slick-dots",3,"slick-dots-top","slick-dots-bottom","slick-dots-left","slick-dots-right",4,"ngIf"],["renderDotTemplate",""],[1,"slick-dots"],[3,"slick-active","click",4,"ngFor","ngForOf"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,r){1&o&&(t.F$t(),t.TgZ(0,"div",0),t.TgZ(1,"div",1,2),t.NdJ("mousedown",function(v){return r.pointerDown(v)})("touchstart",function(v){return r.pointerDown(v)}),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA(),t.qZA(),t.YNc(6,L,2,9,"ul",5),t.qZA(),t.YNc(7,T,2,1,"ng-template",null,6,t.W1O)),2&o&&(t.ekj("slick-vertical","left"===r.nzDotPosition||"right"===r.nzDotPosition),t.xp6(6),t.Q6J("ngIf",r.nzDots))},directives:[I.O5,I.sg,I.tP],encapsulation:2,changeDetection:0}),(0,O.gn)([(0,f.oS)()],s.prototype,"nzEffect",void 0),(0,O.gn)([(0,f.oS)(),(0,P.yF)()],s.prototype,"nzEnableSwipe",void 0),(0,O.gn)([(0,f.oS)(),(0,P.yF)()],s.prototype,"nzDots",void 0),(0,O.gn)([(0,f.oS)(),(0,P.yF)()],s.prototype,"nzAutoPlay",void 0),(0,O.gn)([(0,f.oS)(),(0,P.Rn)()],s.prototype,"nzAutoPlaySpeed",void 0),(0,O.gn)([(0,P.Rn)()],s.prototype,"nzTransitionSpeed",void 0),(0,O.gn)([(0,f.oS)()],s.prototype,"nzDotPosition",null),s})(),nt=(()=>{class s{}return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[M.vT,I.ez,D.ud]]}),s})();var d=i(4850),x=i(7484),u=i(3868),Y=i(4182),R=i(5249),ot=i(2683),c=i(647),_=i(6949);function h(s,a){if(1&s){const o=t.EpF();t.TgZ(0,"nz-radio-group",4),t.NdJ("ngModelChange",function(p){return t.CHM(o),t.oxw().statsType=p}),t.TgZ(1,"label",5),t._uU(2,"Total"),t.qZA(),t.TgZ(3,"label",6),t._uU(4,"Weekly"),t.qZA(),t.TgZ(5,"label",7),t._uU(6,"Monthly"),t.qZA(),t.TgZ(7,"label",8),t._uU(8,"Yearly"),t.qZA(),t.qZA()}if(2&s){const o=t.oxw();t.Q6J("ngModel",o.statsType)}}function w(s,a){1&s&&t._UZ(0,"i",30)}function $(s,a){1&s&&t._UZ(0,"i",31)}function at(s,a){1&s&&t._UZ(0,"i",32)}function ut(s,a){1&s&&t._UZ(0,"i",33)}function mt(s,a){1&s&&t._UZ(0,"i",34)}function zt(s,a){1&s&&t._UZ(0,"i",35)}function vt(s,a){1&s&&t._UZ(0,"i",36)}function ft(s,a){1&s&&t._UZ(0,"i",37)}function Ct(s,a){1&s&&t._UZ(0,"i",38)}function Tt(s,a){1&s&&t._UZ(0,"i",39)}function yt(s,a){if(1&s&&(t.ynx(0),t.TgZ(1,"nz-row",9),t.TgZ(2,"nz-col",10),t.TgZ(3,"a",11),t._UZ(4,"nz-statistic",12),t.ALo(5,"number"),t.YNc(6,w,1,0,"ng-template",null,13,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-col",10),t.TgZ(9,"a",14),t._UZ(10,"nz-statistic",12),t.ALo(11,"number"),t.YNc(12,$,1,0,"ng-template",null,15,t.W1O),t.qZA(),t.qZA(),t.TgZ(14,"nz-col",10),t.TgZ(15,"a",16),t._UZ(16,"nz-statistic",12),t.ALo(17,"number"),t.YNc(18,at,1,0,"ng-template",null,17,t.W1O),t.qZA(),t.qZA(),t.TgZ(20,"nz-col",10),t.TgZ(21,"a",18),t._UZ(22,"nz-statistic",12),t.ALo(23,"number"),t.YNc(24,ut,1,0,"ng-template",null,19,t.W1O),t.qZA(),t.qZA(),t.TgZ(26,"nz-col",10),t.TgZ(27,"a",20),t._UZ(28,"nz-statistic",12),t.ALo(29,"number"),t.YNc(30,mt,1,0,"ng-template",null,21,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"nz-row",9),t.TgZ(33,"nz-col",10),t.TgZ(34,"a",22),t._UZ(35,"nz-statistic",12),t.ALo(36,"number"),t.YNc(37,zt,1,0,"ng-template",null,23,t.W1O),t.qZA(),t.qZA(),t.TgZ(39,"nz-col",10),t.TgZ(40,"a",24),t._UZ(41,"nz-statistic",12),t.ALo(42,"number"),t.YNc(43,vt,1,0,"ng-template",null,25,t.W1O),t.qZA(),t.qZA(),t.TgZ(45,"nz-col",10),t.TgZ(46,"a",26),t._UZ(47,"nz-statistic",12),t.ALo(48,"number"),t.YNc(49,ft,1,0,"ng-template",null,27,t.W1O),t.qZA(),t.qZA(),t.TgZ(51,"nz-col",10),t._UZ(52,"nz-statistic",12),t.ALo(53,"number"),t.YNc(54,Ct,1,0,"ng-template",null,28,t.W1O),t.qZA(),t.TgZ(56,"nz-col",10),t._UZ(57,"nz-statistic",12),t.ALo(58,"number"),t.YNc(59,Tt,1,0,"ng-template",null,29,t.W1O),t.qZA(),t.qZA(),t.BQk()),2&s){const o=a.ngIf,r=t.MAs(7),p=t.MAs(13),v=t.MAs(19),H=t.MAs(25),G=t.MAs(31),q=t.MAs(38),lt=t.MAs(44),ct=t.MAs(50),pt=t.MAs(55),X=t.MAs(60),y=t.oxw();t.xp6(4),t.Q6J("nzTitle",y.statsType+" Assertions")("nzValue",t.lcZ(5,30,o.assertions[y.statsTypes[y.statsType]]))("nzPrefix",r),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Evidence")("nzValue",t.lcZ(11,32,o.evidenceItems[y.statsTypes[y.statsType]]))("nzPrefix",p),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Genes")("nzValue",t.lcZ(17,34,o.genes[y.statsTypes[y.statsType]]))("nzPrefix",v),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Variants")("nzValue",t.lcZ(23,36,o.variants[y.statsTypes[y.statsType]]))("nzPrefix",H),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Contributors")("nzValue",t.lcZ(29,38,o.users[y.statsTypes[y.statsType]]))("nzPrefix",G),t.xp6(7),t.Q6J("nzTitle",y.statsType+" Diseases")("nzValue",t.lcZ(36,40,o.diseases[y.statsTypes[y.statsType]]))("nzPrefix",q),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Drugs")("nzValue",t.lcZ(42,42,o.drugs[y.statsTypes[y.statsType]]))("nzPrefix",lt),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Sources")("nzValue",t.lcZ(48,44,o.sources[y.statsTypes[y.statsType]]))("nzPrefix",ct),t.xp6(5),t.Q6J("nzTitle",y.statsType+" Revisions")("nzValue",t.lcZ(53,46,o.revisions[y.statsTypes[y.statsType]]))("nzPrefix",pt),t.xp6(5),t.Q6J("nzTitle",y.statsType+" Comments")("nzValue",t.lcZ(58,48,o.comments[y.statsTypes[y.statsType]]))("nzPrefix",X)}}function _t(s,a){if(1&s&&(t.TgZ(0,"nz-row",9),t.TgZ(1,"nz-col",10),t._UZ(2,"nz-statistic",40),t.qZA(),t.TgZ(3,"nz-col",10),t._UZ(4,"nz-statistic",40),t.qZA(),t.TgZ(5,"nz-col",10),t._UZ(6,"nz-statistic",40),t.qZA(),t.TgZ(7,"nz-col",10),t._UZ(8,"nz-statistic",40),t.qZA(),t.TgZ(9,"nz-col",10),t._UZ(10,"nz-statistic",40),t.qZA(),t.qZA(),t.TgZ(11,"nz-row",9),t.TgZ(12,"nz-col",10),t._UZ(13,"nz-statistic",40),t.qZA(),t.TgZ(14,"nz-col",10),t._UZ(15,"nz-statistic",40),t.qZA(),t.TgZ(16,"nz-col",10),t._UZ(17,"nz-statistic",40),t.qZA(),t.TgZ(18,"nz-col",10),t._UZ(19,"nz-statistic",40),t.qZA(),t.TgZ(20,"nz-col",10),t._UZ(21,"nz-statistic",40),t.qZA(),t.qZA()),2&s){const o=t.oxw();t.xp6(2),t.Q6J("nzTitle",o.statsType+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Publications")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Contributors")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Comments")("nzValue","--"),t.xp6(3),t.Q6J("nzTitle",o.statsType+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Publications")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Contributors")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Comments")("nzValue","--")}}let xt=(()=>{class s{constructor(o){this.statsGql=o,this.statsTypes={Total:"allTime",Yearly:"newThisYear",Monthly:"newThisMonth",Weekly:"newThisWeek"},this.statsType="Total"}ngOnInit(){this.statsRef=this.statsGql.watch({}),this.response$=this.statsRef.valueChanges,this.isLoading$=this.response$.pipe((0,d.U)(o=>o.loading)),this.stats$=this.response$.pipe((0,d.U)(o=>o.data.timepointStats))}}return s.\u0275fac=function(o){return new(o||s)(t.Y36(n.UWf))},s.\u0275cmp=t.Xpm({type:s,selectors:[["cvc-site-stats-card"]],decls:7,vars:5,consts:[["nzTitle","Knowledgebase Statistics","nzSize","small",1,"home-card",3,"nzExtra"],["statsRadioGroup",""],[4,"ngIf","ngIfElse"],["isLoading",""],["nzSize","small",3,"ngModel","ngModelChange"],["nz-radio-button","","nzValue","Total"],["nz-radio-button","","nzValue","Weekly"],["nz-radio-button","","nzValue","Monthly"],["nz-radio-button","","nzValue","Yearly"],["nzGutter","8"],["nzFlex","1"],["routerLink","/assertions"],[3,"nzTitle","nzValue","nzPrefix"],["assertionIcon",""],["routerLink","/evidence"],["evidenceIcon",""],["routerLink","/genes"],["geneIcon",""],["routerLink","/variants"],["variantIcon",""],["routerLink","/users"],["userIcon",""],["routerLink","/diseases"],["diseaseIcon",""],["routerLink","/drugs"],["drugIcon",""],["routerLink","/sources"],["sourceIcon",""],["revisionsIcon",""],["commentIcon",""],["nz-icon","","nzType","civic:assertion"],["nz-icon","","nzType","civic:evidence"],["nz-icon","","nzType","civic:gene"],["nz-icon","","nzType","civic:variant"],["nz-icon","","nzType","civic:user"],["nz-icon","","nzType","civic:disease"],["nz-icon","","nzType","civic:intervention"],["nz-icon","","nzType","civic:source"],["nz-icon","","nzType","civic:revision"],["nz-icon","","nzType","civic:comment"],[3,"nzTitle","nzValue"]],template:function(o,r){if(1&o&&(t.TgZ(0,"nz-card",0),t.YNc(1,h,9,1,"ng-template",null,1,t.W1O),t.YNc(3,yt,61,50,"ng-container",2),t.ALo(4,"ngrxPush"),t.YNc(5,_t,22,20,"ng-template",null,3,t.W1O),t.qZA()),2&o){const p=t.MAs(2),v=t.MAs(6);t.Q6J("nzExtra",p),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,3,r.stats$))("ngIfElse",v)}},directives:[x.bd,u.Dg,Y.JJ,Y.On,u.Of,u.Bq,I.O5,Z.SK,Z.t3,e.yS,R.my,ot.w,c.Ls],pipes:[_.fM,I.JJ],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]}),s})();var b=i(3762),rt=i(3618),St=i(2011);function Zt(s,a){1&s&&(t.TgZ(0,"nz-carousel",5),t.TgZ(1,"div",6),t.TgZ(2,"h1"),t._uU(3,"Welcome to CIViC "),t.qZA(),t.TgZ(4,"h2"),t._uU(5," an open-source platform supporting crowdsourced and expert-moderated cancer variant curation. "),t.qZA(),t.qZA(),t.TgZ(6,"div",6),t.TgZ(7,"h1"),t._uU(8," Discover supported clinical interpretations "),t._UZ(9,"br"),t._uU(10," of mutations related to cancer.\n"),t.qZA(),t.qZA(),t.TgZ(11,"div",6),t.TgZ(12,"h1"),t._uU(13," Participate with colleagues "),t._UZ(14,"br"),t._uU(15,"to add variants and support "),t._UZ(16,"br"),t._uU(17,"for cancer-related mutations."),t.qZA(),t.qZA(),t.TgZ(18,"div",6),t.TgZ(19,"h1"),t.TgZ(20,"a",7),t._uU(21,"Become an Editor! "),t._UZ(22,"br"),t._uU(23,"Help moderate updates to CIViC"),t.qZA(),t.qZA(),t.qZA(),t.qZA())}function At(s,a){1&s&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-space",0),t.YNc(3,Zt,24,0,"nz-carousel",4),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("nzSpan",24))}function Pt(s,a){1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t._UZ(2,"cvc-site-stats-card"),t.qZA(),t.qZA()),2&s&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function It(s,a){if(1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-card",9),t.TgZ(3,"nz-list",10),t.TgZ(4,"nz-list-item"),t.TgZ(5,"nz-list-item-meta"),t.TgZ(6,"nz-list-item-meta-title"),t.TgZ(7,"span"),t._uU(8,"Welcome to CIViC 2.0!"),t.qZA(),t._UZ(9,"br"),t.TgZ(10,"span",11),t._uU(11," April 9th, 2022 "),t.qZA(),t.qZA(),t.qZA(),t._uU(12," CIViC 2.0 features a completely redesigned user interface and a more powerful GraphQL API. It provides many new ways to browse the knowledgebase while retaining the CIViC knowledge model you are already familiar with. Furthermore, existing links to CIViC entities will continue to function as before. If you have any questions, comments, or would like help adapting an existing integration to our new API, please email us at "),t.TgZ(13,"a",12),t._uU(14,"help@civicdb.org"),t.qZA(),t._uU(15,". We have also prepared an introductory video tour of the new interface, please "),t.TgZ(16,"a",13),t._uU(17,"check it out"),t.qZA(),t._uU(18,"! "),t.TgZ(19,"nz-list-item-extra",14),t._UZ(20,"iframe",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-list-item"),t.TgZ(22,"nz-list-item-meta"),t.TgZ(23,"nz-list-item-meta-title"),t.TgZ(24,"span"),t._uU(25,"Pediatric Cancer Variants"),t.qZA(),t._UZ(26,"br"),t.TgZ(27,"span",11),t._uU(28," February 12th, 2021 "),t.qZA(),t.qZA(),t.qZA(),t._uU(29," Through support from the Childhood Cancer Data Initiative (CCDI), we have executed our initial phase of highlighting pediatric cancer variant content. This advanced search query displays childhood relevant data contained in CIViC. Stay tuned for more pediatric-focused features as we launch the first open-access searchable childhood-cancer-specific dataset. "),t._UZ(30,"nz-list-item-extra"),t.qZA(),t.TgZ(31,"nz-list-item"),t.TgZ(32,"nz-list-item-meta"),t.TgZ(33,"nz-list-item-meta-title"),t.TgZ(34,"span"),t._uU(35,"Explore CIViC Variants in ProteinPaint"),t.qZA(),t._UZ(36,"br"),t.TgZ(37,"span",11),t._uU(38,"June 29th, 2020"),t.qZA(),t.qZA(),t.qZA(),t._uU(39," St. Jude's ProteinPaint now incorporates a CIViC variant track, displaying CIViC curated data along with a variety of additional sources, and providing one-click access to CIViC's variant summaries. We've also added ProteinPaint links to our gene summaries. "),t.TgZ(40,"nz-list-item-extra"),t._UZ(41,"img",16),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(42,"nz-col",3),t.TgZ(43,"nz-card",17),t._UZ(44,"cvc-event-feed",18),t.qZA(),t.qZA(),t.qZA()),2&s){const o=t.oxw();t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(41),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("showFilters",!1)("mode",o.feedMode)("pageSize",12)}}function Mt(s,a){1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-card",19),t.TgZ(3,"p"),t._uU(4,"CIViC is a community-edited forum for discussion and interpretation of peer-reviewed publications pertaining to the clinical relevance of variants (or biomarker alterations) in cancer. These interpretations may include associations between molecular alterations (or lack of alteration) and one or more drugs, diagnoses, prognoses or other treatment decisions. These interpretations of clinical significance (or lack of clinical significance) are purely for research purposes. A finding of no interpretation does not necessarily indicate lack of relevance for any specific variant or biomarker alteration. Interpretations are not presented in ranked order of potential or predicted importance.These interpretations make no promise or guarantee of any clinical benefit (or lack of clinical benefit)."),t.qZA(),t.TgZ(5,"p"),t._uU(6,"The civicdb.org website does not provide any medical or healthcare products, services or advice, and is not for medical emergencies or urgent situations. "),t.TgZ(7,"strong"),t._uU(8,"IF YOU THINK YOU MAY HAVE A MEDICAL EMERGENCY, CALL YOUR DOCTOR OR 911 IMMEDIATELY"),t.qZA(),t._uU(9,". Information contained on this website is not a substitute for a doctor's medical judgment or advice. We recommend that you discuss your specific, individual health concerns with your doctor or health care professional."),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}const Et=[{path:"",component:(()=>{class s{constructor(){this.feedMode=n.wJ2.Unscoped}ngOnInit(){}}return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-welcome"]],decls:5,vars:0,consts:[["nzDirection","vertical","nzSize","middle",1,"space-container"],[4,"nzSpaceItem"],[3,"nzGutter",4,"nzSpaceItem"],[3,"nzSpan"],["nzAutoPlay","","nzAutoPlaySpeed","10000",4,"nzSpaceItem"],["nzAutoPlay","","nzAutoPlaySpeed","10000"],["nz-carousel-content",""],["href","https://civic.readthedocs.io/en/latest/curating/editor.html","target","_blank",1,"header-link"],[3,"nzGutter"],["nzTitle","News & Events","nzSize","small",1,"home-card",2,"height","100%"],["nzItemLayout","vertical"],["nz-typography","","nzType","secondary"],["href","mailto:help@civicdb.org"],["href","https://www.youtube.com/watch?v=bpVkSP7qvgc","target","_blank"],[2,"padding-top","30px"],["width","250","src","https://www.youtube.com/embed/bpVkSP7qvgc","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture","allowfullscreen",""],["width","150","alt","logo","src","https://civicdb.org/assets/images/partners/protein-paint-integration.png"],["nzTitle","Live Curation Activity","nzSize","small",1,"home-card",2,"min-height","600px"],["tagDisplay","hideOrg",3,"showFilters","mode","pageSize"],["nzTitle","Medical Disclaimer: This resource is intended for purely research purposes. It should not be used for emergencies or medical or professional advice.","nzSize","small",1,"home-card"]],template:function(o,r){1&o&&(t.TgZ(0,"nz-space",0),t.YNc(1,At,4,1,"nz-row",1),t.YNc(2,Pt,3,2,"nz-row",2),t.YNc(3,It,45,6,"nz-row",2),t.YNc(4,Mt,10,2,"nz-row",2),t.qZA())},directives:[A.NU,A.$1,Z.SK,Z.t3,et,m,xt,x.bd,b.n_,b.AA,b.yi,b.IO,rt.ZU,b.yw,St.o],styles:["[_nghost-%COMP%]{display:block}.space-container[_ngcontent-%COMP%]{display:block}.ant-carousel[_ngcontent-%COMP%]{border:1px solid #3e5166;border-radius:8px;height:200px;background-color:#001529}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%]{padding-top:3em;padding-left:3em;height:200px;background-color:#2e143e;overflow:hidden;color:#fff}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff}.home-card[_ngcontent-%COMP%]{border-radius:8px}.header-link[_ngcontent-%COMP%]{color:#fff}"]}),s})()}];let kt=(()=>{class s{}return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[e.Bz.forChild(Et)],e.Bz]}),s})();var dt=i(6042),ht=i(5109),Ot=i(6559);let Nt=(()=>{class s{}return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[I.ez,Y.u5,e.Bz,_.WG,R.A2,Z.Jb,x.vh,u.aF,dt.sL,Ot.H0,rt.ZJ,c.PV,ht.s]]}),s})();var Ut=i(4292);let Dt=(()=>{class s{}return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[I.ez,Y.u5,_.WG,dt.sL,Z.Jb,nt,x.vh,b.Ph,u.aF,A.zf,R.A2,rt.ZJ,kt,Nt,Ut.t,ht.s]]}),s})()},6559:(j,U,i)=>{i.d(U,{ng:()=>L,H0:()=>T});var e=i(5e3),n=i(1721),t=i(655),A=i(9808),Z=i(226);const D=["nzType","avatar"];function E(g,m){if(1&g&&(e.TgZ(0,"div",5),e._UZ(1,"nz-skeleton-element",6),e.qZA()),2&g){const l=e.oxw(2);e.xp6(1),e.Q6J("nzSize",l.avatar.size||"default")("nzShape",l.avatar.shape||"circle")}}function k(g,m){if(1&g&&e._UZ(0,"h3",7),2&g){const l=e.oxw(2);e.Udp("width",l.toCSSUnit(l.title.width))}}function J(g,m){if(1&g&&e._UZ(0,"li"),2&g){const l=m.index,z=e.oxw(3);e.Udp("width",z.toCSSUnit(z.widthList[l]))}}function C(g,m){if(1&g&&(e.TgZ(0,"ul",8),e.YNc(1,J,1,2,"li",9),e.qZA()),2&g){const l=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",l.rowsList)}}function f(g,m){if(1&g&&(e.ynx(0),e.YNc(1,E,2,2,"div",1),e.TgZ(2,"div",2),e.YNc(3,k,1,2,"h3",3),e.YNc(4,C,2,1,"ul",4),e.qZA(),e.BQk()),2&g){const l=e.oxw();e.xp6(1),e.Q6J("ngIf",!!l.nzAvatar),e.xp6(2),e.Q6J("ngIf",!!l.nzTitle),e.xp6(1),e.Q6J("ngIf",!!l.nzParagraph)}}function P(g,m){1&g&&(e.ynx(0),e.Hsn(1),e.BQk())}const S=["*"];let V=(()=>{class g{constructor(){this.nzActive=!1,this.nzBlock=!1}}return g.\u0275fac=function(l){return new(l||g)},g.\u0275dir=e.lG2({type:g,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(l,z){2&l&&e.ekj("ant-skeleton-active",z.nzActive)("ant-skeleton-block",z.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,t.gn)([(0,n.yF)()],g.prototype,"nzBlock",void 0),g})(),B=(()=>{class g{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(l){if(l.nzSize&&"number"==typeof this.nzSize){const z=`${this.nzSize}px`;this.styleMap={width:z,height:z,"line-height":z}}else this.styleMap={}}}return g.\u0275fac=function(l){return new(l||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[e.TTD],attrs:D,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(l,z){1&l&&e._UZ(0,"span",0),2&l&&(e.ekj("ant-skeleton-avatar-square","square"===z.nzShape)("ant-skeleton-avatar-circle","circle"===z.nzShape)("ant-skeleton-avatar-lg","large"===z.nzSize)("ant-skeleton-avatar-sm","small"===z.nzSize),e.Q6J("ngStyle",z.styleMap))},directives:[A.PC],encapsulation:2,changeDetection:0}),g})(),L=(()=>{class g{constructor(l,z,N){this.cdr=l,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],z.addClass(N.nativeElement,"ant-skeleton")}toCSSUnit(l=""){return(0,n.WX)(l)}getTitleProps(){const l=!!this.nzAvatar,z=!!this.nzParagraph;let N="";return!l&&z?N="38%":l&&z&&(N="50%"),Object.assign({width:N},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const l=!!this.nzAvatar,z=!!this.nzTitle,N={};return(!l||!z)&&(N.width="61%"),N.rows=!l&&z?3:2,Object.assign(Object.assign({},N),this.getProps(this.nzParagraph))}getProps(l){return l&&"object"==typeof l?l:{}}getWidthList(){const{width:l,rows:z}=this.paragraph;let N=[];return l&&Array.isArray(l)?N=l:l&&!Array.isArray(l)&&(N=[],N[z-1]=l),N}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(l){(l.nzTitle||l.nzAvatar||l.nzParagraph)&&this.updateProps()}}return g.\u0275fac=function(l){return new(l||g)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq))},g.\u0275cmp=e.Xpm({type:g,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(l,z){2&l&&e.ekj("ant-skeleton-with-avatar",!!z.nzAvatar)("ant-skeleton-active",z.nzActive)("ant-skeleton-round",!!z.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[e.TTD],ngContentSelectors:S,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(l,z){1&l&&(e.F$t(),e.YNc(0,f,5,3,"ng-container",0),e.YNc(1,P,2,0,"ng-container",0)),2&l&&(e.Q6J("ngIf",z.nzLoading),e.xp6(1),e.Q6J("ngIf",!z.nzLoading))},directives:[B,A.O5,V,A.sg],encapsulation:2,changeDetection:0}),g})(),T=(()=>{class g{}return g.\u0275fac=function(l){return new(l||g)},g.\u0275mod=e.oAB({type:g}),g.\u0275inj=e.cJS({imports:[[Z.vT,A.ez]]}),g})()}}]); \ No newline at end of file diff --git a/server/public/6303.e5fe598bc8a5dfd2.js b/server/public/6303.e5fe598bc8a5dfd2.js new file mode 100644 index 000000000..66dc20dac --- /dev/null +++ b/server/public/6303.e5fe598bc8a5dfd2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6303],{8369:($,O,o)=>{o.d(O,{W:()=>v});var i=o(9808),e=o(325),t=o(8481),E=o(3610),S=o(647),P=o(7484),w=o(3098),Z=o(3309),k=o(4867),I=o(6286),M=o(8018),U=o(6949),C=o(9444),z=o(1894),A=o(8144),x=o(3580),J=o(8625),L=o(7026),Y=o(592),D=o(5e3);let W=(()=>{class p{}return p.\u0275fac=function(_){return new(_||p)},p.\u0275mod=D.oAB({type:p}),p.\u0275inj=D.cJS({imports:[[i.ez,e.Bz,U.WG,P.vh,w.q6,S.PV,z.Jb,A.zf,t.X,Z.U,x.Q,k.Q,I.y,M.e,C.s,Y.x,J.$L.forChild({formatter:{useClass:L.x,provide:J.KP}})]]}),p})(),v=(()=>{class p{}return p.\u0275fac=function(_){return new(_||p)},p.\u0275mod=D.oAB({type:p}),p.\u0275inj=D.cJS({imports:[[i.ez,e.Bz,t.X,E.$6,S.PV,W,C.s]]}),p})()},209:($,O,o)=>{o.d(O,{i:()=>v});var i=o(9808),e=o(325),t=o(8481),E=o(3610),S=o(647),P=o(7484),w=o(3309),Z=o(4867),k=o(1894),I=o(3098),M=o(8018),U=o(3580),C=o(6286),z=o(6949),A=o(8144),x=o(9444),J=o(9779),L=o(592),Y=o(3618),D=o(5e3);let W=(()=>{class p{}return p.\u0275fac=function(_){return new(_||p)},p.\u0275mod=D.oAB({type:p}),p.\u0275inj=D.cJS({imports:[[i.ez,e.Bz,z.WG,S.PV,P.vh,k.Jb,I.q6,t.X,A.zf,Y.ZJ,x.s,M.e,U.Q,w.U,Z.Q,C.y,J.s,L.x]]}),p})(),v=(()=>{class p{}return p.\u0275fac=function(_){return new(_||p)},p.\u0275mod=D.oAB({type:p}),p.\u0275inj=D.cJS({imports:[[i.ez,e.Bz,t.X,E.$6,S.PV,W,x.s]]}),p})()},5749:($,O,o)=>{o.d(O,{m:()=>st});var i=o(5e3),e=o(9808),t=o(325),E=o(8481),S=o(3610),P=o(4850),w=o(712),Z=o(7484),k=o(7881),I=o(1894),M=o(3098),U=o(6550),C=o(6949);const z=function(g,y){return{displayName:g,profileImagePath:y}};function A(g,y){if(1&g&&(i._UZ(0,"cvc-user-avatar",12),i.TgZ(1,"span",13),i._uU(2),i.qZA()),2&g){const u=i.oxw().ngIf;i.Q6J("user",i.WLB(2,z,u.name,u.profileImagePath)),i.xp6(2),i.Oqu(u.name)}}function x(g,y){if(1&g&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&g){const u=y.ngIf;i.xp6(1),i.Oqu(u)}}function J(g,y){if(1&g&&(i.ynx(0),i.TgZ(1,"cvc-link-tag",14),i._uU(2),i.qZA(),i.BQk()),2&g){const u=i.oxw().ngIf;i.xp6(1),i.Q6J("href",u.url),i.xp6(1),i.hij(" ",u.name," ")}}function L(g,y){if(1&g&&(i.ynx(0),i.TgZ(1,"nz-card",4),i.YNc(2,A,3,5,"ng-template",null,5,i.W1O),i.TgZ(4,"nz-row"),i.TgZ(5,"nz-col",6),i.TgZ(6,"div",7),i.TgZ(7,"p",8),i.YNc(8,x,2,1,"span",9),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"nz-descriptions",10),i.TgZ(10,"nz-descriptions-item",11),i.YNc(11,J,3,2,"ng-container",9),i.qZA(),i.qZA(),i.qZA(),i.BQk()),2&g){const u=y.ngIf,V=i.MAs(3);i.oxw();const F=i.MAs(4),ot=i.MAs(6);i.xp6(1),i.Q6J("nzTitle",V),i.xp6(7),i.Q6J("ngIf",u.description)("ngIfElse",F),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(2),i.Q6J("ngIf",u.url)("ngIfElse",ot)}}function Y(g,y){1&g&&i._uU(0," Organization has not provided a description.\n")}function D(g,y){1&g&&i._uU(0," --\n")}let W=(()=>{class g{constructor(u){this.gql=u}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,P.U)(({data:u})=>u.organization))}}return g.\u0275fac=function(u){return new(u||g)(i.Y36(w.X5f))},g.\u0275cmp=i.Xpm({type:g,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noDesc",""],["noHomepage",""],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(u,V){1&u&&(i.TgZ(0,"div",0),i.YNc(1,L,12,6,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA(),i.YNc(3,Y,1,0,"ng-template",null,2,i.W1O),i.YNc(5,D,1,0,"ng-template",null,3,i.W1O)),2&u&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,V.org$)))},directives:[e.O5,Z.bd,k.L,I.SK,I.t3,M.R7,M.uj,U.l],pipes:[C.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),g})();var v=o(647);function p(g,y){}function h(g,y){if(1&g&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,p,0,0,"ng-template",6),i.qZA(),i.BQk()),2&g){const u=i.oxw(),V=i.MAs(2);i.xp6(1),i.MGl("routerLink","/organizations/",u.org.id,""),i.xp6(1),i.Q6J("ngTemplateOutlet",V)}}function _(g,y){}function Q(g,y){if(1&g&&i._UZ(0,"cvc-organization-popover",10),2&g){const u=i.oxw(3);i.Q6J("orgId",u.org.id)}}function q(g,y){if(1&g&&i.YNc(0,Q,1,1,"cvc-organization-popover",9),2&g){const u=i.oxw(2);i.Q6J("ngIf",u.enablePopover)}}function X(g,y){if(1&g&&(i.TgZ(0,"nz-tag",7),i.YNc(1,_,0,0,"ng-template",6),i.qZA(),i.YNc(2,q,1,1,"ng-template",null,8,i.W1O)),2&g){const u=i.MAs(3);i.oxw();const V=i.MAs(8);i.Q6J("nzPopoverContent",u),i.xp6(1),i.Q6J("ngTemplateOutlet",V)}}function K(g,y){}function tt(g,y){if(1&g&&(i.TgZ(0,"nz-tag"),i.YNc(1,K,0,0,"ng-template",6),i.qZA()),2&g){i.oxw();const u=i.MAs(8);i.xp6(1),i.Q6J("ngTemplateOutlet",u)}}function et(g,y){}function nt(g,y){if(1&g&&i.YNc(0,et,0,0,"ng-template",6),2&g){i.oxw();const u=i.MAs(2);i.Q6J("ngTemplateOutlet",u)}}function it(g,y){if(1&g&&(i._UZ(0,"i",11),i._uU(1)),2&g){const u=i.oxw();i.xp6(1),i.hij(" ",u.org.name,"\n")}}let st=(()=>{class g{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}}return g.\u0275fac=function(u){return new(u||g)},g.\u0275cmp=i.Xpm({type:g,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],["orgPopover",""],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(u,V){if(1&u&&(i.YNc(0,h,3,2,"ng-container",0),i.YNc(1,X,4,2,"ng-template",null,1,i.W1O),i.YNc(3,tt,2,1,"ng-template",null,2,i.W1O),i.YNc(5,nt,1,1,"ng-template",null,3,i.W1O),i.YNc(7,it,2,1,"ng-template",null,4,i.W1O)),2&u){const F=i.MAs(6);i.Q6J("ngIf",V.linked)("ngIfElse",F)}},directives:[e.O5,t.yS,e.tP,E.j,S.lU,W,v.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),g})()},6286:($,O,o)=>{o.d(O,{y:()=>U});var i=o(9808),e=o(325),t=o(8481),E=o(3610),S=o(647),P=o(6949),w=o(7484),Z=o(3630),k=o(3098),I=o(5e3);let M=(()=>{class C{}return C.\u0275fac=function(A){return new(A||C)},C.\u0275mod=I.oAB({type:C}),C.\u0275inj=I.cJS({imports:[[i.ez,P.WG,S.PV,w.vh,Z.X,k.q6]]}),C})(),U=(()=>{class C{}return C.\u0275fac=function(A){return new(A||C)},C.\u0275mod=I.oAB({type:C}),C.\u0275inj=I.cJS({imports:[[i.ez,e.Bz,t.X,E.$6,S.PV,M]]}),C})()},592:($,O,o)=>{o.d(O,{x:()=>S});var i=o(9808),e=o(8481),t=o(647),E=o(5e3);let S=(()=>{class P{}return P.\u0275fac=function(Z){return new(Z||P)},P.\u0275mod=E.oAB({type:P}),P.\u0275inj=E.cJS({imports:[[i.ez,e.X,t.PV]]}),P})()},7677:($,O,o)=>{o.d(O,{G:()=>C});var i=o(9808),e=o(325),t=o(3610),E=o(8481),S=o(647),P=o(9779),w=o(4867),Z=o(7484),k=o(3098),I=o(6949),M=o(5e3);let U=(()=>{class z{}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=M.oAB({type:z}),z.\u0275inj=M.cJS({imports:[[i.ez,I.WG,Z.vh,k.q6,P.s,w.Q]]}),z})(),C=(()=>{class z{}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=M.oAB({type:z}),z.\u0275inj=M.cJS({imports:[[i.ez,e.Bz,t.$6,E.X,S.PV,U]]}),z})()},8664:($,O,o)=>{o.d(O,{I:()=>ot});var i=o(6654),e=o(5e3),t=o(9808),E=o(325),S=o(8481),P=o(3610),w=o(4850),Z=o(712),k=o(7484),I=o(647),M=o(3193),U=o(3098),C=o(6550),z=o(1894),A=o(8144),x=o(6949);function J(l,T){if(1&l&&(e._UZ(0,"i",13),e._uU(1)),2&l){const d=e.oxw().ngIf;e.xp6(1),e.hij(" ",d.name," ")}}function L(l,T){if(1&l&&e._UZ(0,"cvc-gene-tag",14),2&l){const d=e.oxw().ngIf;e.Q6J("enablePopover",!1)("gene",d.gene)}}function Y(l,T){1&l&&(e.TgZ(0,"span"),e._uU(1,",\xa0"),e.qZA())}function D(l,T){if(1&l&&(e.TgZ(0,"span"),e._uU(1),e.YNc(2,Y,2,0,"span",1),e.qZA()),2&l){const d=T.$implicit,N=T.last;e.xp6(1),e.hij(" ",d,""),e.xp6(1),e.Q6J("ngIf",!N)}}function W(l,T){if(1&l&&(e.TgZ(0,"nz-descriptions-item",15),e.YNc(1,D,3,2,"span",16),e.qZA()),2&l){const d=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",d.variantAliases)}}function v(l,T){if(1&l&&(e.TgZ(0,"nz-descriptions-item",17),e.TgZ(1,"cvc-link-tag",18),e._uU(2),e.qZA(),e.qZA()),2&l){const d=e.oxw().ngIf;e.xp6(1),e.MGl("href","https://reg.genome.network/allele/",d.alleleRegistryId,".html"),e.xp6(1),e.hij(" ",d.alleleRegistryId," ")}}function p(l,T){if(1&l&&(e.TgZ(0,"a",19),e.TgZ(1,"nz-tag",20),e._UZ(2,"i",21),e._uU(3),e.qZA(),e.qZA()),2&l){const d=e.oxw().ngIf;e.MGl("routerLink","/variants/",d.id,"/flags"),e.xp6(3),e.hij(" Flags (",d.flags.totalCount,") ")}}function h(l,T){if(1&l&&(e.TgZ(0,"a",19),e.TgZ(1,"nz-tag",22),e._UZ(2,"i",23),e._uU(3),e.qZA(),e.qZA()),2&l){const d=e.oxw().ngIf;e.MGl("routerLink","/variants/",d.id,"/revisions"),e.xp6(3),e.hij(" Revisions (",d.revisions.totalCount,") ")}}function _(l,T){if(1&l&&(e.TgZ(0,"a",19),e.TgZ(1,"nz-tag",24),e._UZ(2,"i",25),e._uU(3),e.qZA(),e.qZA()),2&l){const d=e.oxw().ngIf;e.MGl("routerLink","/variants/",d.id,"/comments"),e.xp6(3),e.hij(" Comments (",d.comments.totalCount,") ")}}function Q(l,T){if(1&l&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,J,2,1,"ng-template",null,3,e.W1O),e.YNc(4,L,1,2,"ng-template",null,4,e.W1O),e.TgZ(6,"nz-descriptions",5),e.YNc(7,W,2,1,"nz-descriptions-item",6),e.YNc(8,v,3,2,"nz-descriptions-item",7),e.TgZ(9,"nz-descriptions-item",8),e._uU(10),e.qZA(),e.qZA(),e.TgZ(11,"nz-row",9),e.TgZ(12,"nz-col",10),e.TgZ(13,"nz-space",11),e.YNc(14,p,4,2,"a",12),e.YNc(15,h,4,2,"a",12),e.YNc(16,_,4,2,"a",12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&l){const d=T.ngIf,N=e.MAs(3),B=e.MAs(5);e.xp6(1),e.Q6J("nzTitle",N)("nzExtra",B),e.xp6(5),e.Q6J("nzColumn",2),e.xp6(1),e.Q6J("ngIf",d.variantAliases.length>0),e.xp6(1),e.Q6J("ngIf",d.alleleRegistryId),e.xp6(2),e.hij(" ",d.evidenceItems.totalCount," ")}}let q=(()=>{class l{constructor(d){this.gql=d}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,w.U)(({data:d})=>d.variant))}}return l.\u0275fac=function(d){return new(d||l)(e.Y36(Z.ZYZ))},l.\u0275cmp=e.Xpm({type:l,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(d,N){1&d&&(e.TgZ(0,"div",0),e.YNc(1,Q,17,6,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&d&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,N.variant$)))},directives:[t.O5,k.bd,I.Ls,M.H,U.R7,U.uj,t.sg,C.l,z.SK,z.t3,A.NU,A.$1,E.yS,S.j],pipes:[x.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),l})();function X(l,T){}function K(l,T){if(1&l&&(e.ynx(0),e.TgZ(1,"a",5),e.YNc(2,X,0,0,"ng-template",6),e.qZA(),e.BQk()),2&l){const d=e.oxw(),N=e.MAs(2);e.xp6(1),e.Q6J("routerLink",d.variant.link),e.xp6(1),e.Q6J("ngTemplateOutlet",N)}}function tt(l,T){}function et(l,T){if(1&l){const d=e.EpF();e.TgZ(0,"nz-tag",9),e.NdJ("nzOnClose",function(B){return e.CHM(d),e.oxw(2).itemClosed(B)}),e.YNc(1,tt,0,0,"ng-template",6),e.qZA()}if(2&l){e.oxw();const d=e.MAs(2),N=e.oxw(),B=e.MAs(8);e.Q6J("nzPopoverMouseEnterDelay",N.onCloseClicked?0:.5)("nzPopoverContent",d)("nzMode",N.onCloseClicked?"closeable":"default"),e.xp6(1),e.Q6J("ngTemplateOutlet",B)}}function nt(l,T){if(1&l&&e._UZ(0,"cvc-variant-popover",11),2&l){const d=e.oxw(3);e.Q6J("variantId",d.variant.id)}}function it(l,T){if(1&l&&e.YNc(0,nt,1,1,"cvc-variant-popover",10),2&l){const d=e.oxw(2);e.Q6J("ngIf",d.enablePopover)}}function st(l,T){if(1&l&&(e.YNc(0,et,2,4,"nz-tag",7),e.YNc(1,it,1,1,"ng-template",null,8,e.W1O)),2&l){const d=e.oxw(),N=e.MAs(4);e.Q6J("ngIf",d.enablePopover)("ngIfElse",N)}}function g(l,T){}function y(l,T){if(1&l){const d=e.EpF();e.TgZ(0,"nz-tag",12),e.NdJ("nzOnClose",function(B){return e.CHM(d),e.oxw().itemClosed(B)}),e.YNc(1,g,0,0,"ng-template",6),e.qZA()}if(2&l){const d=e.oxw(),N=e.MAs(8);e.Q6J("nzMode",d.onCloseClicked?"closeable":"default"),e.xp6(1),e.Q6J("ngTemplateOutlet",N)}}function u(l,T){}function V(l,T){if(1&l&&e.YNc(0,u,0,0,"ng-template",6),2&l){e.oxw();const d=e.MAs(2);e.Q6J("ngTemplateOutlet",d)}}function F(l,T){if(1&l&&(e._UZ(0,"i",13),e._uU(1)),2&l){const d=e.oxw();e.xp6(1),e.hij(" ",d.variant.name,"\n")}}let ot=(()=>{class l extends i.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=e.Xpm({type:l,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[e.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(d,N){if(1&d&&(e.YNc(0,K,3,2,"ng-container",0),e.YNc(1,st,3,2,"ng-template",null,1,e.W1O),e.YNc(3,y,2,2,"ng-template",null,2,e.W1O),e.YNc(5,V,1,1,"ng-template",null,3,e.W1O),e.YNc(7,F,2,1,"ng-template",null,4,e.W1O)),2&d){const B=e.MAs(6);e.Q6J("ngIf",N.linked)("ngIfElse",B)}},directives:[t.O5,E.yS,t.tP,S.j,P.lU,q,I.Ls],styles:[""]}),l})()},4867:($,O,o)=>{o.d(O,{Q:()=>A});var i=o(9808),e=o(325),t=o(8481),E=o(647),S=o(3610),P=o(6949),w=o(7484),Z=o(1894),k=o(3098),I=o(8144),M=o(3309),U=o(3630),C=o(5e3);let z=(()=>{class x{}return x.\u0275fac=function(L){return new(L||x)},x.\u0275mod=C.oAB({type:x}),x.\u0275inj=C.cJS({imports:[[i.ez,e.Bz,P.WG,w.vh,Z.Jb,k.q6,t.X,E.PV,I.zf,M.U,U.X]]}),x})(),A=(()=>{class x{}return x.\u0275fac=function(L){return new(L||x)},x.\u0275mod=C.oAB({type:x}),x.\u0275inj=C.cJS({imports:[[i.ez,e.Bz,t.X,S.$6,E.PV,z]]}),x})()},6528:($,O,o)=>{o.r(O),o.d(O,{WelcomeModule:()=>Ut});var i=o(325),e=o(712),t=o(5e3),E=o(8144),S=o(1894),P=o(226),w=o(925),Z=o(9808),k=o(655),I=o(1159),M=o(8929),U=o(3753),C=o(7625),z=o(9439),A=o(1721),x=o(4090);const J=["slickList"],L=["slickTrack"];function Y(s,a){}const D=function(s){return{$implicit:s}};function W(s,a){if(1&s){const n=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){const m=t.CHM(n).index;return t.oxw(2).onLiClick(m)}),t.YNc(1,Y,0,0,"ng-template",10),t.qZA()}if(2&s){const n=a.index,r=t.oxw(2),c=t.MAs(8);t.ekj("slick-active",n===r.activeIndex),t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzDotRender||c)("ngTemplateOutletContext",t.VKq(4,D,n))}}function v(s,a){if(1&s&&(t.TgZ(0,"ul",7),t.YNc(1,W,2,6,"li",8),t.qZA()),2&s){const n=t.oxw();t.ekj("slick-dots-top","top"===n.nzDotPosition)("slick-dots-bottom","bottom"===n.nzDotPosition)("slick-dots-left","left"===n.nzDotPosition)("slick-dots-right","right"===n.nzDotPosition),t.xp6(1),t.Q6J("ngForOf",n.carouselContents)}}function p(s,a){if(1&s&&(t.TgZ(0,"button"),t._uU(1),t.qZA()),2&s){const n=a.$implicit;t.xp6(1),t.Oqu(n+1)}}const h=["*"];let _=(()=>{class s{constructor(n,r){this.renderer=r,this._active=!1,this.el=n.nativeElement,this.renderer.addClass(n.nativeElement,"slick-slide")}set isActive(n){this._active=n,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}}return s.\u0275fac=function(n){return new(n||s)(t.Y36(t.SBq),t.Y36(t.Qsj))},s.\u0275dir=t.lG2({type:s,selectors:[["","nz-carousel-content",""]],exportAs:["nzCarouselContent"]}),s})();class Q{constructor(a,n,r,c,m){this.cdr=n,this.renderer=r,this.platform=c,this.options=m,this.carouselComponent=a}get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}withCarouselContents(a){const n=this.carouselComponent;if(this.slickListEl=n.slickListEl,this.slickTrackEl=n.slickTrackEl,this.contents=(null==a?void 0:a.toArray())||[],this.length=this.contents.length,this.platform.isBrowser){const r=n.el.getBoundingClientRect();this.unitWidth=r.width,this.unitHeight=r.height}else null==a||a.forEach((r,c)=>{0===c?this.renderer.setStyle(r.el,"width","100%"):this.renderer.setStyle(r.el,"display","none")})}dragging(a){}dispose(){}getFromToInBoundary(a,n){const r=this.maxIndex+1;return{from:(a+r)%r,to:(n+r)%r}}}class q extends Q{withCarouselContents(a){super.withCarouselContents(a),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((n,r)=>{this.renderer.setStyle(n.el,"opacity",this.carouselComponent.activeIndex===r?"1":"0"),this.renderer.setStyle(n.el,"position","relative"),this.renderer.setStyle(n.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(n.el,"left",-this.unitWidth*r+"px"),this.renderer.setStyle(n.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(a,n){const{to:r}=this.getFromToInBoundary(a,n),c=new M.xQ;return this.contents.forEach((m,j)=>{this.renderer.setStyle(m.el,"opacity",r===j?"1":"0")}),setTimeout(()=>{c.next(),c.complete()},this.carouselComponent.nzTransitionSpeed),c}dispose(){this.contents.forEach(a=>{this.renderer.setStyle(a.el,"transition",null),this.renderer.setStyle(a.el,"opacity",null),this.renderer.setStyle(a.el,"width",null),this.renderer.setStyle(a.el,"left",null)}),super.dispose()}}class X extends Q{constructor(a,n,r,c,m){super(a,n,r,c,m),this.isDragging=!1,this.isTransitioning=!1}get vertical(){return this.carouselComponent.vertical}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(a){super.withCarouselContents(a);const r=this.carouselComponent.activeIndex;this.platform.isBrowser&&this.contents.length&&(this.renderer.setStyle(this.slickListEl,"height",`${this.unitHeight}px`),this.vertical?(this.renderer.setStyle(this.slickTrackEl,"width",`${this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,"height",this.length*this.unitHeight+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-r*this.unitHeight}px, 0)`)):(this.renderer.setStyle(this.slickTrackEl,"height",`${this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,"width",this.length*this.unitWidth+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-r*this.unitWidth}px, 0, 0)`)),this.contents.forEach(c=>{this.renderer.setStyle(c.el,"position","relative"),this.renderer.setStyle(c.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(c.el,"height",`${this.unitHeight}px`)}))}switch(a,n){const{to:r}=this.getFromToInBoundary(a,n),c=new M.xQ;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(a,n):this.horizontalTransform(a,n),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(m=>{this.renderer.setStyle(m.el,this.vertical?"top":"left",null)}),this.renderer.setStyle(this.slickTrackEl,"transform",this.vertical?`translate3d(0, ${-r*this.unitHeight}px, 0)`:`translate3d(${-r*this.unitWidth}px, 0, 0)`),this.isTransitioning=!1,c.next(),c.complete()},this.carouselComponent.nzTransitionSpeed),c.asObservable()}dragging(a){if(this.isTransitioning)return;const n=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(n===this.maxIndex?this.prepareVerticalContext(!0):0===n&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-n*this.unitHeight+a.x}px, 0)`)):(!this.isDragging&&this.length>2&&(n===this.maxIndex?this.prepareHorizontalContext(!0):0===n&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-n*this.unitWidth+a.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(a,n){const{from:r,to:c}=this.getFromToInBoundary(a,n);this.length>2&&n!==c?(this.prepareVerticalContext(c2&&n!==c?(this.prepareHorizontalContext(c{class s{constructor(n,r,c,m,j,b,H,lt,ct,pt){this.nzConfigService=r,this.ngZone=c,this.renderer=m,this.cdr=j,this.platform=b,this.resizeService=H,this.nzDragService=lt,this.directionality=ct,this.customStrategies=pt,this._nzModuleName="carousel",this.nzEffect="scrollx",this.nzEnableSwipe=!0,this.nzDots=!0,this.nzAutoPlay=!1,this.nzAutoPlaySpeed=3e3,this.nzTransitionSpeed=500,this.nzStrategyOptions=void 0,this._dotPosition="bottom",this.nzBeforeChange=new t.vpe,this.nzAfterChange=new t.vpe,this.activeIndex=0,this.vertical=!1,this.transitionInProgress=null,this.dir="ltr",this.destroy$=new M.xQ,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=G=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-G:G)},this.pointerDown=G=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(G).subscribe(f=>{var gt;this.pointerDelta=f,this.isDragging=!0,null===(gt=this.strategy)||void 0===gt||gt.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const f=this.pointerDelta?this.pointerDelta.x:0;Math.abs(f)>this.gestureRect.width/3?this.goTo(f>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))},this.nzDotPosition="bottom",this.renderer.addClass(n.nativeElement,"ant-carousel"),this.el=n.nativeElement}set nzDotPosition(n){this._dotPosition=n,this.vertical="left"===n||"right"===n}get nzDotPosition(){return this._dotPosition}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe((0,C.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,U.R)(this.slickListEl,"keydown").pipe((0,C.R)(this.destroy$)).subscribe(n=>{const{keyCode:r}=n;r!==I.oh&&r!==I.SV||(n.preventDefault(),this.ngZone.run(()=>{r===I.oh?this.pre():this.next(),this.cdr.markForCheck()}))})})}ngAfterContentInit(){this.markContentActive(0)}ngAfterViewInit(){this.carouselContents.changes.subscribe(()=>{this.markContentActive(0),this.layout()}),this.resizeService.subscribe().pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(n){const{nzEffect:r,nzDotPosition:c}=n;r&&!r.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),c&&!c.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),this.nzAutoPlay&&this.nzAutoPlaySpeed?this.scheduleNextTransition():this.clearScheduledTransition()}ngOnDestroy(){this.clearScheduledTransition(),this.strategy&&this.strategy.dispose(),this.destroy$.next(),this.destroy$.complete()}next(){this.goTo(this.activeIndex+1)}pre(){this.goTo(this.activeIndex-1)}goTo(n){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting){const r=this.carouselContents.length,c=this.activeIndex,m=(n+r)%r;this.isTransiting=!0,this.nzBeforeChange.emit({from:c,to:m}),this.strategy.switch(this.activeIndex,n).subscribe(()=>{this.scheduleNextTransition(),this.nzAfterChange.emit(n),this.isTransiting=!1}),this.markContentActive(m),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const n=this.customStrategies?this.customStrategies.find(r=>r.name===this.nzEffect):null;this.strategy=n?new n.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new X(this,this.cdr,this.renderer,this.platform):new q(this,this.cdr,this.renderer,this.platform)}scheduleNextTransition(){this.clearScheduledTransition(),this.nzAutoPlay&&this.nzAutoPlaySpeed>0&&this.platform.isBrowser&&(this.transitionInProgress=setTimeout(()=>{this.goTo(this.activeIndex+1)},this.nzAutoPlaySpeed))}clearScheduledTransition(){this.transitionInProgress&&(clearTimeout(this.transitionInProgress),this.transitionInProgress=null)}markContentActive(n){this.activeIndex=n,this.carouselContents&&this.carouselContents.forEach((r,c)=>{r.isActive="rtl"===this.dir?n===this.carouselContents.length-1-c:n===c}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}}return s.\u0275fac=function(n){return new(n||s)(t.Y36(t.SBq),t.Y36(z.jY),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(w.t4),t.Y36(x.rI),t.Y36(x.Ml),t.Y36(P.Is,8),t.Y36(K,8))},s.\u0275cmp=t.Xpm({type:s,selectors:[["nz-carousel"]],contentQueries:function(n,r,c){if(1&n&&t.Suo(c,_,4),2&n){let m;t.iGM(m=t.CRH())&&(r.carouselContents=m)}},viewQuery:function(n,r){if(1&n&&(t.Gf(J,7),t.Gf(L,7)),2&n){let c;t.iGM(c=t.CRH())&&(r.slickList=c.first),t.iGM(c=t.CRH())&&(r.slickTrack=c.first)}},hostVars:4,hostBindings:function(n,r){2&n&&t.ekj("ant-carousel-vertical",r.vertical)("ant-carousel-rtl","rtl"===r.dir)},inputs:{nzDotRender:"nzDotRender",nzEffect:"nzEffect",nzEnableSwipe:"nzEnableSwipe",nzDots:"nzDots",nzAutoPlay:"nzAutoPlay",nzAutoPlaySpeed:"nzAutoPlaySpeed",nzTransitionSpeed:"nzTransitionSpeed",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],features:[t.TTD],ngContentSelectors:h,decls:9,vars:3,consts:[[1,"slick-initialized","slick-slider"],["tabindex","-1",1,"slick-list",3,"mousedown","touchstart"],["slickList",""],[1,"slick-track"],["slickTrack",""],["class","slick-dots",3,"slick-dots-top","slick-dots-bottom","slick-dots-left","slick-dots-right",4,"ngIf"],["renderDotTemplate",""],[1,"slick-dots"],[3,"slick-active","click",4,"ngFor","ngForOf"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){1&n&&(t.F$t(),t.TgZ(0,"div",0),t.TgZ(1,"div",1,2),t.NdJ("mousedown",function(m){return r.pointerDown(m)})("touchstart",function(m){return r.pointerDown(m)}),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA(),t.qZA(),t.YNc(6,v,2,9,"ul",5),t.qZA(),t.YNc(7,p,2,1,"ng-template",null,6,t.W1O)),2&n&&(t.ekj("slick-vertical","left"===r.nzDotPosition||"right"===r.nzDotPosition),t.xp6(6),t.Q6J("ngIf",r.nzDots))},directives:[Z.O5,Z.sg,Z.tP],encapsulation:2,changeDetection:0}),(0,k.gn)([(0,z.oS)()],s.prototype,"nzEffect",void 0),(0,k.gn)([(0,z.oS)(),(0,A.yF)()],s.prototype,"nzEnableSwipe",void 0),(0,k.gn)([(0,z.oS)(),(0,A.yF)()],s.prototype,"nzDots",void 0),(0,k.gn)([(0,z.oS)(),(0,A.yF)()],s.prototype,"nzAutoPlay",void 0),(0,k.gn)([(0,z.oS)(),(0,A.Rn)()],s.prototype,"nzAutoPlaySpeed",void 0),(0,k.gn)([(0,A.Rn)()],s.prototype,"nzTransitionSpeed",void 0),(0,k.gn)([(0,z.oS)()],s.prototype,"nzDotPosition",null),s})(),nt=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[P.vT,Z.ez,w.ud]]}),s})();var g=o(4850),y=o(7484),u=o(3868),V=o(4182),F=o(5249),ot=o(2683),l=o(647),T=o(6949);function d(s,a){if(1&s){const n=t.EpF();t.TgZ(0,"nz-radio-group",4),t.NdJ("ngModelChange",function(c){return t.CHM(n),t.oxw().statsType=c}),t.TgZ(1,"label",5),t._uU(2,"Total"),t.qZA(),t.TgZ(3,"label",6),t._uU(4,"Weekly"),t.qZA(),t.TgZ(5,"label",7),t._uU(6,"Monthly"),t.qZA(),t.TgZ(7,"label",8),t._uU(8,"Yearly"),t.qZA(),t.qZA()}if(2&s){const n=t.oxw();t.Q6J("ngModel",n.statsType)}}function N(s,a){1&s&&t._UZ(0,"i",30)}function B(s,a){1&s&&t._UZ(0,"i",31)}function at(s,a){1&s&&t._UZ(0,"i",32)}function ut(s,a){1&s&&t._UZ(0,"i",33)}function mt(s,a){1&s&&t._UZ(0,"i",34)}function vt(s,a){1&s&&t._UZ(0,"i",35)}function zt(s,a){1&s&&t._UZ(0,"i",36)}function ft(s,a){1&s&&t._UZ(0,"i",37)}function Ct(s,a){1&s&&t._UZ(0,"i",38)}function Tt(s,a){1&s&&t._UZ(0,"i",39)}function yt(s,a){if(1&s&&(t.ynx(0),t.TgZ(1,"nz-row",9),t.TgZ(2,"nz-col",10),t.TgZ(3,"a",11),t._UZ(4,"nz-statistic",12),t.ALo(5,"number"),t.YNc(6,N,1,0,"ng-template",null,13,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-col",10),t.TgZ(9,"a",14),t._UZ(10,"nz-statistic",12),t.ALo(11,"number"),t.YNc(12,B,1,0,"ng-template",null,15,t.W1O),t.qZA(),t.qZA(),t.TgZ(14,"nz-col",10),t.TgZ(15,"a",16),t._UZ(16,"nz-statistic",12),t.ALo(17,"number"),t.YNc(18,at,1,0,"ng-template",null,17,t.W1O),t.qZA(),t.qZA(),t.TgZ(20,"nz-col",10),t.TgZ(21,"a",18),t._UZ(22,"nz-statistic",12),t.ALo(23,"number"),t.YNc(24,ut,1,0,"ng-template",null,19,t.W1O),t.qZA(),t.qZA(),t.TgZ(26,"nz-col",10),t.TgZ(27,"a",20),t._UZ(28,"nz-statistic",12),t.ALo(29,"number"),t.YNc(30,mt,1,0,"ng-template",null,21,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"nz-row",9),t.TgZ(33,"nz-col",10),t.TgZ(34,"a",22),t._UZ(35,"nz-statistic",12),t.ALo(36,"number"),t.YNc(37,vt,1,0,"ng-template",null,23,t.W1O),t.qZA(),t.qZA(),t.TgZ(39,"nz-col",10),t.TgZ(40,"a",24),t._UZ(41,"nz-statistic",12),t.ALo(42,"number"),t.YNc(43,zt,1,0,"ng-template",null,25,t.W1O),t.qZA(),t.qZA(),t.TgZ(45,"nz-col",10),t.TgZ(46,"a",26),t._UZ(47,"nz-statistic",12),t.ALo(48,"number"),t.YNc(49,ft,1,0,"ng-template",null,27,t.W1O),t.qZA(),t.qZA(),t.TgZ(51,"nz-col",10),t._UZ(52,"nz-statistic",12),t.ALo(53,"number"),t.YNc(54,Ct,1,0,"ng-template",null,28,t.W1O),t.qZA(),t.TgZ(56,"nz-col",10),t._UZ(57,"nz-statistic",12),t.ALo(58,"number"),t.YNc(59,Tt,1,0,"ng-template",null,29,t.W1O),t.qZA(),t.qZA(),t.BQk()),2&s){const n=a.ngIf,r=t.MAs(7),c=t.MAs(13),m=t.MAs(19),j=t.MAs(25),b=t.MAs(31),H=t.MAs(38),lt=t.MAs(44),ct=t.MAs(50),pt=t.MAs(55),G=t.MAs(60),f=t.oxw();t.xp6(4),t.Q6J("nzTitle",f.statsType+" Assertions")("nzValue",t.lcZ(5,30,n.assertions[f.statsTypes[f.statsType]]))("nzPrefix",r),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Evidence")("nzValue",t.lcZ(11,32,n.evidenceItems[f.statsTypes[f.statsType]]))("nzPrefix",c),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Genes")("nzValue",t.lcZ(17,34,n.genes[f.statsTypes[f.statsType]]))("nzPrefix",m),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Variants")("nzValue",t.lcZ(23,36,n.variants[f.statsTypes[f.statsType]]))("nzPrefix",j),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Contributors")("nzValue",t.lcZ(29,38,n.users[f.statsTypes[f.statsType]]))("nzPrefix",b),t.xp6(7),t.Q6J("nzTitle",f.statsType+" Diseases")("nzValue",t.lcZ(36,40,n.diseases[f.statsTypes[f.statsType]]))("nzPrefix",H),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Drugs")("nzValue",t.lcZ(42,42,n.drugs[f.statsTypes[f.statsType]]))("nzPrefix",lt),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Sources")("nzValue",t.lcZ(48,44,n.sources[f.statsTypes[f.statsType]]))("nzPrefix",ct),t.xp6(5),t.Q6J("nzTitle",f.statsType+" Revisions")("nzValue",t.lcZ(53,46,n.revisions[f.statsTypes[f.statsType]]))("nzPrefix",pt),t.xp6(5),t.Q6J("nzTitle",f.statsType+" Comments")("nzValue",t.lcZ(58,48,n.comments[f.statsTypes[f.statsType]]))("nzPrefix",G)}}function xt(s,a){if(1&s&&(t.TgZ(0,"nz-row",9),t.TgZ(1,"nz-col",10),t._UZ(2,"nz-statistic",40),t.qZA(),t.TgZ(3,"nz-col",10),t._UZ(4,"nz-statistic",40),t.qZA(),t.TgZ(5,"nz-col",10),t._UZ(6,"nz-statistic",40),t.qZA(),t.TgZ(7,"nz-col",10),t._UZ(8,"nz-statistic",40),t.qZA(),t.TgZ(9,"nz-col",10),t._UZ(10,"nz-statistic",40),t.qZA(),t.qZA(),t.TgZ(11,"nz-row",9),t.TgZ(12,"nz-col",10),t._UZ(13,"nz-statistic",40),t.qZA(),t.TgZ(14,"nz-col",10),t._UZ(15,"nz-statistic",40),t.qZA(),t.TgZ(16,"nz-col",10),t._UZ(17,"nz-statistic",40),t.qZA(),t.TgZ(18,"nz-col",10),t._UZ(19,"nz-statistic",40),t.qZA(),t.TgZ(20,"nz-col",10),t._UZ(21,"nz-statistic",40),t.qZA(),t.qZA()),2&s){const n=t.oxw();t.xp6(2),t.Q6J("nzTitle",n.statsType+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Publications")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Contributors")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Comments")("nzValue","--"),t.xp6(3),t.Q6J("nzTitle",n.statsType+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Publications")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Contributors")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Comments")("nzValue","--")}}let _t=(()=>{class s{constructor(n){this.statsGql=n,this.statsTypes={Total:"allTime",Yearly:"newThisYear",Monthly:"newThisMonth",Weekly:"newThisWeek"},this.statsType="Total"}ngOnInit(){this.statsRef=this.statsGql.watch({}),this.response$=this.statsRef.valueChanges,this.isLoading$=this.response$.pipe((0,g.U)(n=>n.loading)),this.stats$=this.response$.pipe((0,g.U)(n=>n.data.timepointStats))}}return s.\u0275fac=function(n){return new(n||s)(t.Y36(e.UWf))},s.\u0275cmp=t.Xpm({type:s,selectors:[["cvc-site-stats-card"]],decls:7,vars:5,consts:[["nzTitle","Knowledgebase Statistics","nzSize","small",1,"home-card",3,"nzExtra"],["statsRadioGroup",""],[4,"ngIf","ngIfElse"],["isLoading",""],["nzSize","small",3,"ngModel","ngModelChange"],["nz-radio-button","","nzValue","Total"],["nz-radio-button","","nzValue","Weekly"],["nz-radio-button","","nzValue","Monthly"],["nz-radio-button","","nzValue","Yearly"],["nzGutter","8"],["nzFlex","1"],["routerLink","/assertions"],[3,"nzTitle","nzValue","nzPrefix"],["assertionIcon",""],["routerLink","/evidence"],["evidenceIcon",""],["routerLink","/genes"],["geneIcon",""],["routerLink","/variants"],["variantIcon",""],["routerLink","/users"],["userIcon",""],["routerLink","/diseases"],["diseaseIcon",""],["routerLink","/drugs"],["drugIcon",""],["routerLink","/sources"],["sourceIcon",""],["revisionsIcon",""],["commentIcon",""],["nz-icon","","nzType","civic:assertion"],["nz-icon","","nzType","civic:evidence"],["nz-icon","","nzType","civic:gene"],["nz-icon","","nzType","civic:variant"],["nz-icon","","nzType","civic:user"],["nz-icon","","nzType","civic:disease"],["nz-icon","","nzType","civic:intervention"],["nz-icon","","nzType","civic:source"],["nz-icon","","nzType","civic:revision"],["nz-icon","","nzType","civic:comment"],[3,"nzTitle","nzValue"]],template:function(n,r){if(1&n&&(t.TgZ(0,"nz-card",0),t.YNc(1,d,9,1,"ng-template",null,1,t.W1O),t.YNc(3,yt,61,50,"ng-container",2),t.ALo(4,"ngrxPush"),t.YNc(5,xt,22,20,"ng-template",null,3,t.W1O),t.qZA()),2&n){const c=t.MAs(2),m=t.MAs(6);t.Q6J("nzExtra",c),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,3,r.stats$))("ngIfElse",m)}},directives:[y.bd,u.Dg,V.JJ,V.On,u.Of,u.Bq,Z.O5,S.SK,S.t3,i.yS,F.my,ot.w,l.Ls],pipes:[T.fM,Z.JJ],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]}),s})();var R=o(3762),rt=o(3618),St=o(2011);function Zt(s,a){1&s&&(t.TgZ(0,"nz-carousel",5),t.TgZ(1,"div",6),t.TgZ(2,"h1"),t._uU(3,"Welcome to CIViC "),t.qZA(),t.TgZ(4,"h2"),t._uU(5," an open-source platform supporting crowdsourced and expert-moderated cancer variant curation. "),t.qZA(),t.qZA(),t.TgZ(6,"div",6),t.TgZ(7,"h1"),t._uU(8," Discover supported clinical interpretations "),t._UZ(9,"br"),t._uU(10," of mutations related to cancer.\n"),t.qZA(),t.qZA(),t.TgZ(11,"div",6),t.TgZ(12,"h1"),t._uU(13," Participate with colleagues "),t._UZ(14,"br"),t._uU(15,"to add variants and support "),t._UZ(16,"br"),t._uU(17,"for cancer-related mutations."),t.qZA(),t.qZA(),t.TgZ(18,"div",6),t.TgZ(19,"h1"),t.TgZ(20,"a",7),t._uU(21,"Become an Editor! "),t._UZ(22,"br"),t._uU(23,"Help moderate updates to CIViC"),t.qZA(),t.qZA(),t.qZA(),t.qZA())}function At(s,a){1&s&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-space",0),t.YNc(3,Zt,24,0,"nz-carousel",4),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("nzSpan",24))}function Pt(s,a){1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t._UZ(2,"cvc-site-stats-card"),t.qZA(),t.qZA()),2&s&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function It(s,a){if(1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-card",9),t.TgZ(3,"nz-list",10),t.TgZ(4,"nz-list-item"),t.TgZ(5,"nz-list-item-meta"),t.TgZ(6,"nz-list-item-meta-title"),t.TgZ(7,"span"),t._uU(8,"Welcome to CIViC 2.0!"),t.qZA(),t._UZ(9,"br"),t.TgZ(10,"span",11),t._uU(11," April 9th, 2022 "),t.qZA(),t.qZA(),t.qZA(),t._uU(12," CIViC 2.0 features a completely redesigned user interface and a more powerful GraphQL API. It provides many new ways to browse the knowledgebase while retaining the CIViC knowledge model you are already familiar with. Furthermore, existing links to CIViC entities will continue to function as before. If you have any questions, comments, or would like help adapting an existing integration to our new API, please email us at "),t.TgZ(13,"a",12),t._uU(14,"help@civicdb.org"),t.qZA(),t._uU(15,". We have also prepared an introductory video tour of the new interface, please "),t.TgZ(16,"a",13),t._uU(17,"check it out"),t.qZA(),t._uU(18,"! "),t.TgZ(19,"nz-list-item-extra",14),t._UZ(20,"iframe",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-list-item"),t.TgZ(22,"nz-list-item-meta"),t.TgZ(23,"nz-list-item-meta-title"),t.TgZ(24,"span"),t._uU(25,"Pediatric Cancer Variants"),t.qZA(),t._UZ(26,"br"),t.TgZ(27,"span",11),t._uU(28," February 12th, 2021 "),t.qZA(),t.qZA(),t.qZA(),t._uU(29," Through support from the Childhood Cancer Data Initiative (CCDI), we have executed our initial phase of highlighting pediatric cancer variant content. This advanced search query displays childhood relevant data contained in CIViC. Stay tuned for more pediatric-focused features as we launch the first open-access searchable childhood-cancer-specific dataset. "),t._UZ(30,"nz-list-item-extra"),t.qZA(),t.TgZ(31,"nz-list-item"),t.TgZ(32,"nz-list-item-meta"),t.TgZ(33,"nz-list-item-meta-title"),t.TgZ(34,"span"),t._uU(35,"Explore CIViC Variants in ProteinPaint"),t.qZA(),t._UZ(36,"br"),t.TgZ(37,"span",11),t._uU(38,"June 29th, 2020"),t.qZA(),t.qZA(),t.qZA(),t._uU(39," St. Jude's ProteinPaint now incorporates a CIViC variant track, displaying CIViC curated data along with a variety of additional sources, and providing one-click access to CIViC's variant summaries. We've also added ProteinPaint links to our gene summaries. "),t.TgZ(40,"nz-list-item-extra"),t._UZ(41,"img",16),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(42,"nz-col",3),t.TgZ(43,"nz-card",17),t._UZ(44,"cvc-event-feed",18),t.qZA(),t.qZA(),t.qZA()),2&s){const n=t.oxw();t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(41),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("showFilters",!1)("mode",n.feedMode)("pageSize",12)}}function Et(s,a){1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-card",19),t.TgZ(3,"p"),t._uU(4,"CIViC is a community-edited forum for discussion and interpretation of peer-reviewed publications pertaining to the clinical relevance of variants (or biomarker alterations) in cancer. These interpretations may include associations between molecular alterations (or lack of alteration) and one or more drugs, diagnoses, prognoses or other treatment decisions. These interpretations of clinical significance (or lack of clinical significance) are purely for research purposes. A finding of no interpretation does not necessarily indicate lack of relevance for any specific variant or biomarker alteration. Interpretations are not presented in ranked order of potential or predicted importance.These interpretations make no promise or guarantee of any clinical benefit (or lack of clinical benefit)."),t.qZA(),t.TgZ(5,"p"),t._uU(6,"The civicdb.org website does not provide any medical or healthcare products, services or advice, and is not for medical emergencies or urgent situations. "),t.TgZ(7,"strong"),t._uU(8,"IF YOU THINK YOU MAY HAVE A MEDICAL EMERGENCY, CALL YOUR DOCTOR OR 911 IMMEDIATELY"),t.qZA(),t._uU(9,". Information contained on this website is not a substitute for a doctor's medical judgment or advice. We recommend that you discuss your specific, individual health concerns with your doctor or health care professional."),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}const kt=[{path:"",component:(()=>{class s{constructor(){this.feedMode=e.wJ2.Unscoped}ngOnInit(){}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-welcome"]],decls:5,vars:0,consts:[["nzDirection","vertical","nzSize","middle",1,"space-container"],[4,"nzSpaceItem"],[3,"nzGutter",4,"nzSpaceItem"],[3,"nzSpan"],["nzAutoPlay","","nzAutoPlaySpeed","10000",4,"nzSpaceItem"],["nzAutoPlay","","nzAutoPlaySpeed","10000"],["nz-carousel-content",""],["href","https://civic.readthedocs.io/en/latest/curating/editor.html","target","_blank",1,"header-link"],[3,"nzGutter"],["nzTitle","News & Events","nzSize","small",1,"home-card",2,"height","100%"],["nzItemLayout","vertical"],["nz-typography","","nzType","secondary"],["href","mailto:help@civicdb.org"],["href","https://www.youtube.com/watch?v=bpVkSP7qvgc","target","_blank"],[2,"padding-top","30px"],["width","250","src","https://www.youtube.com/embed/bpVkSP7qvgc","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture","allowfullscreen",""],["width","150","alt","logo","src","https://civicdb.org/assets/images/partners/protein-paint-integration.png"],["nzTitle","Live Curation Activity","nzSize","small",1,"home-card",2,"min-height","600px"],["tagDisplay","hideOrg",3,"showFilters","mode","pageSize"],["nzTitle","Medical Disclaimer: This resource is intended for purely research purposes. It should not be used for emergencies or medical or professional advice.","nzSize","small",1,"home-card"]],template:function(n,r){1&n&&(t.TgZ(0,"nz-space",0),t.YNc(1,At,4,1,"nz-row",1),t.YNc(2,Pt,3,2,"nz-row",2),t.YNc(3,It,45,6,"nz-row",2),t.YNc(4,Et,10,2,"nz-row",2),t.qZA())},directives:[E.NU,E.$1,S.SK,S.t3,et,_,_t,y.bd,R.n_,R.AA,R.yi,R.IO,rt.ZU,R.yw,St.o],styles:["[_nghost-%COMP%]{display:block}.space-container[_ngcontent-%COMP%]{display:block}.ant-carousel[_ngcontent-%COMP%]{border:1px solid #3e5166;border-radius:8px;height:200px;background-color:#001529}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%]{padding-top:3em;padding-left:3em;height:200px;background-color:#2e143e;overflow:hidden;color:#fff}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff}.home-card[_ngcontent-%COMP%]{border-radius:8px}.header-link[_ngcontent-%COMP%]{color:#fff}"]}),s})()}];let Mt=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[i.Bz.forChild(kt)],i.Bz]}),s})();var dt=o(6042),ht=o(5109),Ot=o(6559);let Nt=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[Z.ez,V.u5,i.Bz,T.WG,F.A2,S.Jb,y.vh,u.aF,dt.sL,Ot.H0,rt.ZJ,l.PV,ht.s]]}),s})();var wt=o(4292);let Ut=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[Z.ez,V.u5,T.WG,dt.sL,S.Jb,nt,y.vh,R.Ph,u.aF,E.zf,F.A2,rt.ZJ,Mt,Nt,wt.t,ht.s]]}),s})()},6559:($,O,o)=>{o.d(O,{H0:()=>W});var i=o(5e3),e=o(9808),t=o(226);let W=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=i.oAB({type:v}),v.\u0275inj=i.cJS({imports:[[t.vT,e.ez]]}),v})()}}]); \ No newline at end of file diff --git a/server/public/681.507ad8cc8bfeed0c.js b/server/public/681.80f46e569d77955f.js similarity index 97% rename from server/public/681.507ad8cc8bfeed0c.js rename to server/public/681.80f46e569d77955f.js index 42db9ecd8..8ea52563f 100644 --- a/server/public/681.507ad8cc8bfeed0c.js +++ b/server/public/681.80f46e569d77955f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[681],{3220:(O,T,o)=>{o.d(T,{l:()=>P});var a=o(5e3),u=o(6715),n=o(9808),h=o(8481),v=o(3610);const m=function(g){return{"matched-tag":g}};function r(g,f){if(1&g&&(a.TgZ(0,"div",2),a.TgZ(1,"nz-tag"),a._uU(2),a.qZA(),a.qZA()),2&g){const c=f.$implicit,d=a.oxw();a.Q6J("ngClass",a.VKq(2,m,d.matchingText&&c.toLowerCase().includes(d.matchingText))),a.xp6(2),a.Oqu(c)}}function Z(g,f){if(1&g&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&g){const c=a.oxw(2);a.xp6(1),a.hij("",c.matchedHiddenCount," of ")}}function x(g,f){if(1&g){const c=a.EpF();a.TgZ(0,"nz-tag",5),a.NdJ("click",function(){return a.CHM(c),a.oxw().onOverflowClicked()}),a._uU(1," +"),a.YNc(2,Z,2,1,"span",6),a._uU(3),a.qZA()}if(2&g){const c=a.oxw(),d=a.MAs(5);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",d),a.xp6(2),a.Q6J("ngIf",c.matchedHiddenCount>0),a.xp6(1),a.hij("",c.hiddenCount," more ")}}function _(g,f){if(1&g&&(a.TgZ(0,"div",2),a.TgZ(1,"nz-tag"),a._uU(2),a.qZA(),a.qZA()),2&g){const c=f.$implicit,d=a.oxw(2);a.Q6J("ngClass",a.VKq(2,m,d.matchingText&&c.toLowerCase().includes(d.matchingText))),a.xp6(2),a.Oqu(c)}}function M(g,f){if(1&g&&(a.TgZ(0,"cvc-tag-list",0),a.YNc(1,_,3,4,"div",1),a.qZA()),2&g){const c=a.oxw();a.xp6(1),a.Q6J("ngForOf",c.hiddenTags)}}let P=(()=>{class g{constructor(){this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnInit(){this.calculateDisplayedTags()}calculateDisplayedTags(){var c,d,z,y;if(this.displayedTags=null===(c=this.tags)||void 0===c?void 0:c.slice(0,this.maxDisplayCount),this.hiddenTags=null===(d=this.tags)||void 0===d?void 0:d.slice(this.maxDisplayCount),this.hiddenCount=null===(z=this.hiddenTags)||void 0===z?void 0:z.length,this.matchingText=null===(y=this.matchingText)||void 0===y?void 0:y.toLowerCase(),this.matchingText&&this.hiddenTags){let I=this.matchingText;this.hiddenTags.forEach(E=>{E.toLowerCase().includes(I)&&(this.matchedHiddenCount+=1)})}}onOverflowClicked(){var c;this.maxDisplayCount=(null===(c=this.tags)||void 0===c?void 0:c.length)||0,this.calculateDisplayedTags()}}return g.\u0275fac=function(c){return new(c||g)},g.\u0275cmp=a.Xpm({type:g,selectors:[["cvc-plain-tag-overflow"]],inputs:{matchingText:"matchingText",tags:"tags",maxDisplayCount:"maxDisplayCount"},decls:6,vars:5,consts:[["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","click",4,"ngIf"],["additionalTagPopover",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent","click"],[4,"ngIf"]],template:function(c,d){1&c&&(a.TgZ(0,"cvc-tag-list",0),a.YNc(1,r,3,4,"div",1),a.TgZ(2,"div",2),a.YNc(3,x,4,4,"nz-tag",3),a.qZA(),a.YNc(4,M,2,1,"ng-template",null,4,a.W1O),a.qZA()),2&c&&(a.xp6(1),a.Q6J("ngForOf",d.displayedTags),a.xp6(1),a.Q6J("ngClass",a.VKq(3,m,d.matchedHiddenCount>0)),a.xp6(1),a.Q6J("ngIf",d.hiddenCount&&d.hiddenCount>0))},directives:[u.$,n.sg,n.mk,h.j,n.O5,v.lU],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}"]}),g})()},3968:(O,T,o)=>{o.d(T,{T:()=>m});var a=o(9808),u=o(897),n=o(8481),h=o(3610),v=o(5e3);let m=(()=>{class r{}return r.\u0275fac=function(x){return new(x||r)},r.\u0275mod=v.oAB({type:r}),r.\u0275inj=v.cJS({imports:[[a.ez,n.X,h.$6,u.$]]}),r})()},7946:(O,T,o)=>{o.d(T,{x:()=>x});var a=o(9808),u=o(897),n=o(8481),h=o(3610),v=o(8018),m=o(3580),r=o(9476),Z=o(5e3);let x=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=Z.oAB({type:_}),_.\u0275inj=Z.cJS({imports:[[a.ez,n.X,h.$6,u.$,v.e,m.Q,r.L]]}),_})()},3154:(O,T,o)=>{o.d(T,{_:()=>u});var a=o(712);function u(n){var h;switch(n.value){case"ascend":h=a.SrV.Asc;break;case"descend":h=a.SrV.Desc;break;default:return}return{column:n.key,direction:h}}},681:(O,T,o)=>{o.r(T),o.d(T,{GenesModule:()=>xn});var a=o(9808),u=o(325),n=o(5e3);let h=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-genes"]],decls:1,vars:0,template:function(e,i){1&e&&n._UZ(0,"router-outlet")},directives:[u.lC],styles:[""]}),t})();var v=o(1945),m=o(1894),r=o(1132),Z=o(4546),x=o(1047),_=o(647),M=o(3618),P=o(4182),g=o(6949),f=o(3309),c=o(7946),d=o(3968),z=o(6042),y=o(7484),I=o(404);let E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,P.u5,g.WG,r.HQ,Z.U5,x.o7,_.PV,M.ZJ,y.vh,z.sL,I.cg,f.U,c.x,d.T]]}),t})();var S=o(5630),G=o(8144);let Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,S.D,E,z.sL,_.PV,G.zf,M.ZJ,v.KJ,m.Jb]]}),t})();var N=o(8992),U=o(2683),w=o(8929),b=o(4850),A=o(373),J=o(1059),L=o(2986),B=o(13),D=o(712),F=o(3154),R=o(3193),W=o(3220),H=o(392),K=o(2643);function Y(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.nameInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function $(t,s){if(1&t&&n.YNc(0,Y,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.nameInput)}}function j(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.aliasInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function V(t,s){if(1&t&&n.YNc(0,j,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.aliasInput)}}function q(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.diseaseInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function X(t,s){if(1&t&&n.YNc(0,q,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.diseaseInput)}}function k(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.drugInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function nn(t,s){if(1&t&&n.YNc(0,k,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.drugInput)}}function tn(t,s){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-gene-tag",29),n.qZA(),n.TgZ(3,"td"),n._UZ(4,"cvc-plain-tag-overflow",30),n.qZA(),n.TgZ(5,"td"),n._UZ(6,"cvc-tag-overflow",31),n.qZA(),n.TgZ(7,"td"),n._UZ(8,"cvc-tag-overflow",32),n.qZA(),n.TgZ(9,"td",33),n._uU(10),n.qZA(),n.TgZ(11,"td",33),n._uU(12),n.qZA(),n.TgZ(13,"td",33),n._uU(14),n.qZA(),n.qZA()),2&t){const e=s.$implicit,i=n.oxw(2);n.xp6(2),n.Q6J("gene",e),n.xp6(2),n.Q6J("tags",e.geneAliases)("matchingText",i.aliasInput),n.xp6(2),n.Q6J("tags",e.diseases)("matchingText",i.diseaseInput),n.xp6(2),n.Q6J("tags",e.drugs)("matchingText",i.drugInput),n.xp6(2),n.Oqu(e.variantCount),n.xp6(2),n.Oqu(e.evidenceItemCount),n.xp6(2),n.Oqu(e.assertionCount)}}function en(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"button",36),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(l.endCursor)}),n._uU(1),n.qZA()}if(2&t){const e=n.oxw(4);n.xp6(1),n.hij("Load ",e.fetchMorePageSize," More")}}function on(t,s){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td",34),n.YNc(2,en,2,1,"button",35),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",e.hasNextPage)}}function an(t,s){if(1&t&&(n.ynx(0),n.YNc(1,on,3,1,"tr",1),n.BQk()),2&t){const e=s.ngrxLet;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function sn(t,s){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",4,5),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",6),n.NdJ("nzSortOrderChange",function(l){return n.CHM(e),n.oxw().onSortChanged(l)}),n.TgZ(6,"tr"),n.TgZ(7,"th",7),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",8),n._uU(10," Aliases "),n.qZA(),n.TgZ(11,"th",9),n._uU(12," Diseases "),n.qZA(),n.TgZ(13,"th",9),n._uU(14," Drugs "),n.qZA(),n.TgZ(15,"th",10),n._UZ(16,"i",11),n.qZA(),n.TgZ(17,"th",12),n._UZ(18,"i",13),n.qZA(),n.TgZ(19,"th",14),n._UZ(20,"i",15),n.qZA(),n.qZA(),n.TgZ(21,"tr"),n.TgZ(22,"th"),n.TgZ(23,"nz-input-group",16),n.TgZ(24,"input",17),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().nameInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(25,$,1,1,"ng-template",null,18,n.W1O),n.qZA(),n.TgZ(27,"th"),n.TgZ(28,"nz-input-group",16),n.TgZ(29,"input",19),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().aliasInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(30,V,1,1,"ng-template",null,20,n.W1O),n.qZA(),n.TgZ(32,"th"),n.TgZ(33,"nz-input-group",16),n.TgZ(34,"input",21),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().diseaseInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(35,X,1,1,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(37,"th"),n.TgZ(38,"nz-input-group",16),n.TgZ(39,"input",23),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().drugInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(40,nn,1,1,"ng-template",null,24,n.W1O),n.qZA(),n._UZ(42,"th"),n._UZ(43,"th"),n._UZ(44,"th"),n.qZA(),n.qZA(),n.TgZ(45,"tbody"),n.YNc(46,tn,15,10,"tr",25),n.YNc(47,an,2,1,"ng-container",26),n.qZA(),n.qZA(),n.BQk()}if(2&t){const e=n.MAs(2),i=n.MAs(26),l=n.MAs(31),p=n.MAs(36),zn=n.MAs(41),C=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,22,C.genes$))("nzLoading",n.lcZ(4,24,C.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",C.sortColumns.EntrezSymbol)("nzSortFn",!0),n.xp6(8),n.Q6J("nzColumnKey",C.sortColumns.VariantCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",C.sortColumns.EvidenceItemCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",C.sortColumns.AssertionCount)("nzSortFn",!0),n.xp6(4),n.Q6J("nzSuffix",i),n.xp6(1),n.Q6J("ngModel",C.nameInput),n.xp6(4),n.Q6J("nzSuffix",l),n.xp6(1),n.Q6J("ngModel",C.aliasInput),n.xp6(4),n.Q6J("nzSuffix",p),n.xp6(1),n.Q6J("ngModel",C.diseaseInput),n.xp6(4),n.Q6J("nzSuffix",zn),n.xp6(1),n.Q6J("ngModel",C.drugInput),n.xp6(7),n.Q6J("ngForOf",e.data),n.xp6(1),n.Q6J("ngrxLet",C.pageInfo$)}}function ln(t,s){1&t&&n._UZ(0,"i",37)}function cn(t,s){}function gn(t,s){if(1&t&&(n.ynx(0),n.YNc(1,cn,0,0,"ng-template",41),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function rn(t,s){if(1&t&&(n.ynx(0),n._uU(1),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.hij(" ",e.cvcTitle," ")}}function dn(t,s){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" of ",e," filtered")}}function pn(t,s){if(1&t&&(n.TgZ(0,"span",42),n._uU(1),n.YNc(2,dn,2,1,"span",1),n._uU(3,") "),n.qZA()),2&t){const e=s.ngIf,i=n.oxw(2);n.xp6(1),n.AsE(" (",i.totalCount," total, showing ",i.visibleCount,""),n.xp6(1),n.Q6J("ngIf",i.totalCount&&e{class t{constructor(e){this.query=e,this.debouncedQuery=new w.xQ,this.sortColumns=D.Fvz,this.initialPageSize=25,this.fetchMorePageSize=25,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.initialQueryArgs={first:this.initialPageSize},this.queryRef=this.query.watch(this.initialQueryArgs),this.data$=this.queryRef.valueChanges.pipe((0,b.U)(e=>({data:e.data,loading:e.loading,networkStatus:e.networkStatus}))),this.isLoading$=this.data$.pipe((0,A.j)("loading"),(0,J.O)(!0)),this.genes$=this.data$.pipe((0,A.j)("data","browseGenes","edges"),(0,b.U)(e=>e.map(i=>i.node))),this.pageInfo$=this.data$.pipe((0,A.j)("data","browseGenes","pageInfo")),this.filteredCount$=this.data$.pipe((0,A.j)("data","browseGenes","filteredCount")),this.data$.pipe((0,A.j)("data","browseGenes","totalCount")).pipe((0,L.q)(1)).subscribe(e=>this.totalCount=e),this.filteredCount$.subscribe(e=>{ee&&(this.visibleCount=e))}),this.pageCount$=this.data$.pipe((0,A.j)("data","browseGenes","pageCount"),(0,J.O)(0)),this.debouncedQuery.pipe((0,B.b)(500)).subscribe(e=>{var i;this.loadedPages=1,null===(i=this.queryRef)||void 0===i||i.refetch({entrezSymbol:this.nameInput,geneAlias:this.aliasInput,diseaseName:this.diseaseInput,drugName:this.drugInput})})}loadMore(e){var i;null===(i=this.queryRef)||void 0===i||i.fetchMore({variables:{first:this.fetchMorePageSize,after:e}}),this.loadedPages+=1}onSortChanged(e){var i;this.loadedPages=1,null===(i=this.queryRef)||void 0===i||i.refetch(Object.assign(Object.assign({},this.initialQueryArgs),{sortBy:(0,F._)(e)}))}onModelUpdated(e){this.debouncedQuery.next()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(D.q8c))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:7,vars:6,consts:[[3,"nzTitle"],[4,"ngIf"],["loadingTemplate",""],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["genesTable",""],[3,"nzSortOrderChange"],["nzWidth","10%",3,"nzColumnKey","nzSortFn"],["nzWidth","20%"],["nzWidth","25%"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:variant"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:evidence"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:assertion"],[3,"nzSuffix"],["type","text","nz-input","","placeholder","Search name",3,"ngModel","ngModelChange"],["nameInputClearTpl",""],["type","text","nz-input","","placeholder","Search alias",3,"ngModel","ngModelChange"],["aliasInputClearTpl",""],["type","text","nz-input","","placeholder","Search disease",3,"ngModel","ngModelChange"],["diseaseInputClearTpl",""],["type","text","nz-input","","placeholder","Search drug",3,"ngModel","ngModelChange"],["drugInputClearTpl",""],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],[3,"gene"],[3,"tags","matchingText"],["tagType","disease",3,"tags","matchingText"],["tagType","drug",3,"tags","matchingText"],["nzRight",""],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","loading"],["nz-icon","","nzType","civic:gene"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(e,i){if(1&e&&(n.TgZ(0,"nz-card",0),n.YNc(1,sn,48,26,"ng-container",1),n.ALo(2,"ngrxPush"),n.YNc(3,ln,1,0,"ng-template",null,2,n.W1O),n.qZA(),n.YNc(5,un,7,6,"ng-template",null,3,n.W1O)),2&e){const l=n.MAs(6);n.Q6J("nzTitle",l),n.xp6(1),n.Q6J("ngIf",n.VKq(4,hn,n.lcZ(2,2,i.data$)))}},directives:[y.bd,a.O5,r.N8,r.Om,r.$Z,r.Uo,r._C,r.qD,r.qn,I.SY,_.Ls,U.w,x.gB,x.ke,x.Zp,P.Fj,P.JJ,P.On,r.p0,a.sg,R.H,W.l,H.T,g.eJ,z.ix,K.dQ,a.tP,M.ZU],pipes:[g.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),t})();function fn(t,s){1&t&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Gene Model Docs "),n.qZA())}function Cn(t,s){1&t&&(n.TgZ(0,"a",15),n._UZ(1,"i",14),n._uU(2," View Gene Curation Docs "),n.qZA())}const Tn=[{path:"",component:h,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:gene"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Genes"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/genes.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock",""]],template:function(e,i){1&e&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0),n.TgZ(2,"nz-page-header-content"),n.TgZ(3,"nz-row",1),n.TgZ(4,"nz-col",2),n._UZ(5,"i",3),n.qZA(),n.TgZ(6,"nz-col",4),n.TgZ(7,"h2"),n._uU(8,"Genes"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"CIViC Genes include a gene-level summary, a link to the Drug Gene Interation Database, and extensive gene details from MyGene.info."),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,fn,3,0,"a",8),n.YNc(14,Cn,3,0,"a",9),n.qZA(),n.qZA(),n.qZA(),n.TgZ(15,"nz-row"),n.TgZ(16,"nz-col",10),n.TgZ(17,"div",11),n._UZ(18,"cvc-genes-table",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&e&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},directives:[N.I,v.$O,v.u5,m.SK,m.t3,U.w,_.Ls,M.ZU,G.NU,G.$1,z.ix,mn],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})(),data:{breadcrumb:"Home"}},{path:":geneId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([o.e(6256),o.e(9001),o.e(2826),o.e(1679),o.e(2738),o.e(55),o.e(4292),o.e(2043),o.e(3482),o.e(5787),o.e(7259)]).then(o.bind(o,8252)).then(t=>t.GenesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([o.e(6256),o.e(3021),o.e(8592),o.e(3179)]).then(o.bind(o,3179)).then(t=>t.GenesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let vn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[u.Bz.forChild(Tn),Q],u.Bz]}),t})(),xn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,vn]]}),t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[681],{3220:(O,T,o)=>{o.d(T,{l:()=>P});var a=o(5e3),u=o(6715),n=o(9808),h=o(8481),v=o(3610);const m=function(g){return{"matched-tag":g}};function r(g,f){if(1&g&&(a.TgZ(0,"div",2),a.TgZ(1,"nz-tag"),a._uU(2),a.qZA(),a.qZA()),2&g){const c=f.$implicit,d=a.oxw();a.Q6J("ngClass",a.VKq(2,m,d.matchingText&&c.toLowerCase().includes(d.matchingText))),a.xp6(2),a.Oqu(c)}}function Z(g,f){if(1&g&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&g){const c=a.oxw(2);a.xp6(1),a.hij("",c.matchedHiddenCount," of ")}}function x(g,f){if(1&g){const c=a.EpF();a.TgZ(0,"nz-tag",5),a.NdJ("click",function(){return a.CHM(c),a.oxw().onOverflowClicked()}),a._uU(1," +"),a.YNc(2,Z,2,1,"span",6),a._uU(3),a.qZA()}if(2&g){const c=a.oxw(),d=a.MAs(5);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",d),a.xp6(2),a.Q6J("ngIf",c.matchedHiddenCount>0),a.xp6(1),a.hij("",c.hiddenCount," more ")}}function _(g,f){if(1&g&&(a.TgZ(0,"div",2),a.TgZ(1,"nz-tag"),a._uU(2),a.qZA(),a.qZA()),2&g){const c=f.$implicit,d=a.oxw(2);a.Q6J("ngClass",a.VKq(2,m,d.matchingText&&c.toLowerCase().includes(d.matchingText))),a.xp6(2),a.Oqu(c)}}function M(g,f){if(1&g&&(a.TgZ(0,"cvc-tag-list",0),a.YNc(1,_,3,4,"div",1),a.qZA()),2&g){const c=a.oxw();a.xp6(1),a.Q6J("ngForOf",c.hiddenTags)}}let P=(()=>{class g{constructor(){this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnInit(){this.calculateDisplayedTags()}calculateDisplayedTags(){var c,d,z,y;if(this.displayedTags=null===(c=this.tags)||void 0===c?void 0:c.slice(0,this.maxDisplayCount),this.hiddenTags=null===(d=this.tags)||void 0===d?void 0:d.slice(this.maxDisplayCount),this.hiddenCount=null===(z=this.hiddenTags)||void 0===z?void 0:z.length,this.matchingText=null===(y=this.matchingText)||void 0===y?void 0:y.toLowerCase(),this.matchingText&&this.hiddenTags){let I=this.matchingText;this.hiddenTags.forEach(E=>{E.toLowerCase().includes(I)&&(this.matchedHiddenCount+=1)})}}onOverflowClicked(){var c;this.maxDisplayCount=(null===(c=this.tags)||void 0===c?void 0:c.length)||0,this.calculateDisplayedTags()}}return g.\u0275fac=function(c){return new(c||g)},g.\u0275cmp=a.Xpm({type:g,selectors:[["cvc-plain-tag-overflow"]],inputs:{matchingText:"matchingText",tags:"tags",maxDisplayCount:"maxDisplayCount"},decls:6,vars:5,consts:[["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","click",4,"ngIf"],["additionalTagPopover",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent","click"],[4,"ngIf"]],template:function(c,d){1&c&&(a.TgZ(0,"cvc-tag-list",0),a.YNc(1,r,3,4,"div",1),a.TgZ(2,"div",2),a.YNc(3,x,4,4,"nz-tag",3),a.qZA(),a.YNc(4,M,2,1,"ng-template",null,4,a.W1O),a.qZA()),2&c&&(a.xp6(1),a.Q6J("ngForOf",d.displayedTags),a.xp6(1),a.Q6J("ngClass",a.VKq(3,m,d.matchedHiddenCount>0)),a.xp6(1),a.Q6J("ngIf",d.hiddenCount&&d.hiddenCount>0))},directives:[u.$,n.sg,n.mk,h.j,n.O5,v.lU],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}"]}),g})()},3968:(O,T,o)=>{o.d(T,{T:()=>m});var a=o(9808),u=o(897),n=o(8481),h=o(3610),v=o(5e3);let m=(()=>{class r{}return r.\u0275fac=function(x){return new(x||r)},r.\u0275mod=v.oAB({type:r}),r.\u0275inj=v.cJS({imports:[[a.ez,n.X,h.$6,u.$]]}),r})()},7946:(O,T,o)=>{o.d(T,{x:()=>x});var a=o(9808),u=o(897),n=o(8481),h=o(3610),v=o(8018),m=o(3580),r=o(9476),Z=o(5e3);let x=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=Z.oAB({type:_}),_.\u0275inj=Z.cJS({imports:[[a.ez,n.X,h.$6,u.$,v.e,m.Q,r.L]]}),_})()},3154:(O,T,o)=>{o.d(T,{_:()=>u});var a=o(712);function u(n){var h;switch(n.value){case"ascend":h=a.SrV.Asc;break;case"descend":h=a.SrV.Desc;break;default:return}return{column:n.key,direction:h}}},681:(O,T,o)=>{o.r(T),o.d(T,{GenesModule:()=>xn});var a=o(9808),u=o(325),n=o(5e3);let h=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-genes"]],decls:1,vars:0,template:function(e,i){1&e&&n._UZ(0,"router-outlet")},directives:[u.lC],styles:[""]}),t})();var v=o(1945),m=o(1894),r=o(1132),Z=o(4546),x=o(1047),_=o(647),M=o(3618),P=o(4182),g=o(6949),f=o(3309),c=o(7946),d=o(3968),z=o(6042),y=o(7484),I=o(404);let E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,P.u5,g.WG,r.HQ,Z.U5,x.o7,_.PV,M.ZJ,y.vh,z.sL,I.cg,f.U,c.x,d.T]]}),t})();var S=o(5630),G=o(8144);let Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,S.D,E,z.sL,_.PV,G.zf,M.ZJ,v.KJ,m.Jb]]}),t})();var N=o(8992),U=o(2683),w=o(8929),b=o(4850),A=o(373),J=o(1059),L=o(2986),B=o(13),D=o(712),F=o(3154),R=o(3193),W=o(3220),H=o(392),K=o(2643);function Y(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.nameInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function $(t,s){if(1&t&&n.YNc(0,Y,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.nameInput)}}function j(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.aliasInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function V(t,s){if(1&t&&n.YNc(0,j,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.aliasInput)}}function q(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.diseaseInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function X(t,s){if(1&t&&n.YNc(0,q,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.diseaseInput)}}function k(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.drugInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function nn(t,s){if(1&t&&n.YNc(0,k,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.drugInput)}}function tn(t,s){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-gene-tag",29),n.qZA(),n.TgZ(3,"td"),n._UZ(4,"cvc-plain-tag-overflow",30),n.qZA(),n.TgZ(5,"td"),n._UZ(6,"cvc-tag-overflow",31),n.qZA(),n.TgZ(7,"td"),n._UZ(8,"cvc-tag-overflow",32),n.qZA(),n.TgZ(9,"td",33),n._uU(10),n.qZA(),n.TgZ(11,"td",33),n._uU(12),n.qZA(),n.TgZ(13,"td",33),n._uU(14),n.qZA(),n.qZA()),2&t){const e=s.$implicit,i=n.oxw(2);n.xp6(2),n.Q6J("gene",e),n.xp6(2),n.Q6J("tags",e.geneAliases)("matchingText",i.aliasInput),n.xp6(2),n.Q6J("tags",e.diseases)("matchingText",i.diseaseInput),n.xp6(2),n.Q6J("tags",e.drugs)("matchingText",i.drugInput),n.xp6(2),n.Oqu(e.variantCount),n.xp6(2),n.Oqu(e.evidenceItemCount),n.xp6(2),n.Oqu(e.assertionCount)}}function en(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"button",36),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(l.endCursor)}),n._uU(1),n.qZA()}if(2&t){const e=n.oxw(4);n.xp6(1),n.hij("Load ",e.fetchMorePageSize," More")}}function on(t,s){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td",34),n.YNc(2,en,2,1,"button",35),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",e.hasNextPage)}}function an(t,s){if(1&t&&(n.ynx(0),n.YNc(1,on,3,1,"tr",1),n.BQk()),2&t){const e=s.ngrxLet;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function sn(t,s){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",4,5),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",6),n.NdJ("nzSortOrderChange",function(l){return n.CHM(e),n.oxw().onSortChanged(l)}),n.TgZ(6,"tr"),n.TgZ(7,"th",7),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",8),n._uU(10," Aliases "),n.qZA(),n.TgZ(11,"th",9),n._uU(12," Diseases "),n.qZA(),n.TgZ(13,"th",9),n._uU(14," Drugs "),n.qZA(),n.TgZ(15,"th",10),n._UZ(16,"i",11),n.qZA(),n.TgZ(17,"th",12),n._UZ(18,"i",13),n.qZA(),n.TgZ(19,"th",14),n._UZ(20,"i",15),n.qZA(),n.qZA(),n.TgZ(21,"tr"),n.TgZ(22,"th"),n.TgZ(23,"nz-input-group",16),n.TgZ(24,"input",17),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().nameInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(25,$,1,1,"ng-template",null,18,n.W1O),n.qZA(),n.TgZ(27,"th"),n.TgZ(28,"nz-input-group",16),n.TgZ(29,"input",19),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().aliasInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(30,V,1,1,"ng-template",null,20,n.W1O),n.qZA(),n.TgZ(32,"th"),n.TgZ(33,"nz-input-group",16),n.TgZ(34,"input",21),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().diseaseInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(35,X,1,1,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(37,"th"),n.TgZ(38,"nz-input-group",16),n.TgZ(39,"input",23),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().drugInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(40,nn,1,1,"ng-template",null,24,n.W1O),n.qZA(),n._UZ(42,"th"),n._UZ(43,"th"),n._UZ(44,"th"),n.qZA(),n.qZA(),n.TgZ(45,"tbody"),n.YNc(46,tn,15,10,"tr",25),n.YNc(47,an,2,1,"ng-container",26),n.qZA(),n.qZA(),n.BQk()}if(2&t){const e=n.MAs(2),i=n.MAs(26),l=n.MAs(31),p=n.MAs(36),zn=n.MAs(41),C=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,22,C.genes$))("nzLoading",n.lcZ(4,24,C.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",C.sortColumns.EntrezSymbol)("nzSortFn",!0),n.xp6(8),n.Q6J("nzColumnKey",C.sortColumns.VariantCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",C.sortColumns.EvidenceItemCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",C.sortColumns.AssertionCount)("nzSortFn",!0),n.xp6(4),n.Q6J("nzSuffix",i),n.xp6(1),n.Q6J("ngModel",C.nameInput),n.xp6(4),n.Q6J("nzSuffix",l),n.xp6(1),n.Q6J("ngModel",C.aliasInput),n.xp6(4),n.Q6J("nzSuffix",p),n.xp6(1),n.Q6J("ngModel",C.diseaseInput),n.xp6(4),n.Q6J("nzSuffix",zn),n.xp6(1),n.Q6J("ngModel",C.drugInput),n.xp6(7),n.Q6J("ngForOf",e.data),n.xp6(1),n.Q6J("ngrxLet",C.pageInfo$)}}function ln(t,s){1&t&&n._UZ(0,"i",37)}function cn(t,s){}function gn(t,s){if(1&t&&(n.ynx(0),n.YNc(1,cn,0,0,"ng-template",41),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function rn(t,s){if(1&t&&(n.ynx(0),n._uU(1),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.hij(" ",e.cvcTitle," ")}}function dn(t,s){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" of ",e," filtered")}}function pn(t,s){if(1&t&&(n.TgZ(0,"span",42),n._uU(1),n.YNc(2,dn,2,1,"span",1),n._uU(3,") "),n.qZA()),2&t){const e=s.ngIf,i=n.oxw(2);n.xp6(1),n.AsE(" (",i.totalCount," total, showing ",i.visibleCount,""),n.xp6(1),n.Q6J("ngIf",i.totalCount&&e{class t{constructor(e){this.query=e,this.debouncedQuery=new w.xQ,this.sortColumns=D.Fvz,this.initialPageSize=25,this.fetchMorePageSize=25,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.initialQueryArgs={first:this.initialPageSize},this.queryRef=this.query.watch(this.initialQueryArgs),this.data$=this.queryRef.valueChanges.pipe((0,b.U)(e=>({data:e.data,loading:e.loading,networkStatus:e.networkStatus}))),this.isLoading$=this.data$.pipe((0,A.j)("loading"),(0,J.O)(!0)),this.genes$=this.data$.pipe((0,A.j)("data","browseGenes","edges"),(0,b.U)(e=>e.map(i=>i.node))),this.pageInfo$=this.data$.pipe((0,A.j)("data","browseGenes","pageInfo")),this.filteredCount$=this.data$.pipe((0,A.j)("data","browseGenes","filteredCount")),this.data$.pipe((0,A.j)("data","browseGenes","totalCount")).pipe((0,L.q)(1)).subscribe(e=>this.totalCount=e),this.filteredCount$.subscribe(e=>{ee&&(this.visibleCount=e))}),this.pageCount$=this.data$.pipe((0,A.j)("data","browseGenes","pageCount"),(0,J.O)(0)),this.debouncedQuery.pipe((0,B.b)(500)).subscribe(e=>{var i;this.loadedPages=1,null===(i=this.queryRef)||void 0===i||i.refetch({entrezSymbol:this.nameInput,geneAlias:this.aliasInput,diseaseName:this.diseaseInput,drugName:this.drugInput})})}loadMore(e){var i;null===(i=this.queryRef)||void 0===i||i.fetchMore({variables:{first:this.fetchMorePageSize,after:e}}),this.loadedPages+=1}onSortChanged(e){var i;this.loadedPages=1,null===(i=this.queryRef)||void 0===i||i.refetch(Object.assign(Object.assign({},this.initialQueryArgs),{sortBy:(0,F._)(e)}))}onModelUpdated(e){this.debouncedQuery.next()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(D.q8c))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:7,vars:6,consts:[[3,"nzTitle"],[4,"ngIf"],["loadingTemplate",""],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["genesTable",""],[3,"nzSortOrderChange"],["nzWidth","10%",3,"nzColumnKey","nzSortFn"],["nzWidth","20%"],["nzWidth","25%"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:variant"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:evidence"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:assertion"],[3,"nzSuffix"],["type","text","nz-input","","placeholder","Search name",3,"ngModel","ngModelChange"],["nameInputClearTpl",""],["type","text","nz-input","","placeholder","Search alias",3,"ngModel","ngModelChange"],["aliasInputClearTpl",""],["type","text","nz-input","","placeholder","Search disease",3,"ngModel","ngModelChange"],["diseaseInputClearTpl",""],["type","text","nz-input","","placeholder","Search drug",3,"ngModel","ngModelChange"],["drugInputClearTpl",""],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],[3,"gene"],[3,"tags","matchingText"],["tagType","disease",3,"tags","matchingText"],["tagType","drug",3,"tags","matchingText"],["nzRight",""],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","loading"],["nz-icon","","nzType","civic:gene"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(e,i){if(1&e&&(n.TgZ(0,"nz-card",0),n.YNc(1,sn,48,26,"ng-container",1),n.ALo(2,"ngrxPush"),n.YNc(3,ln,1,0,"ng-template",null,2,n.W1O),n.qZA(),n.YNc(5,un,7,6,"ng-template",null,3,n.W1O)),2&e){const l=n.MAs(6);n.Q6J("nzTitle",l),n.xp6(1),n.Q6J("ngIf",n.VKq(4,hn,n.lcZ(2,2,i.data$)))}},directives:[y.bd,a.O5,r.N8,r.Om,r.$Z,r.Uo,r._C,r.qD,r.qn,I.SY,_.Ls,U.w,x.gB,x.ke,x.Zp,P.Fj,P.JJ,P.On,r.p0,a.sg,R.H,W.l,H.T,g.eJ,z.ix,K.dQ,a.tP,M.ZU],pipes:[g.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),t})();function fn(t,s){1&t&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Gene Model Docs "),n.qZA())}function Cn(t,s){1&t&&(n.TgZ(0,"a",15),n._UZ(1,"i",14),n._uU(2," View Gene Curation Docs "),n.qZA())}const Tn=[{path:"",component:h,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:gene"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Genes"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/genes.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock",""]],template:function(e,i){1&e&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0),n.TgZ(2,"nz-page-header-content"),n.TgZ(3,"nz-row",1),n.TgZ(4,"nz-col",2),n._UZ(5,"i",3),n.qZA(),n.TgZ(6,"nz-col",4),n.TgZ(7,"h2"),n._uU(8,"Genes"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"CIViC Genes include a gene-level summary, a link to the Drug Gene Interation Database, and extensive gene details from MyGene.info."),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,fn,3,0,"a",8),n.YNc(14,Cn,3,0,"a",9),n.qZA(),n.qZA(),n.qZA(),n.TgZ(15,"nz-row"),n.TgZ(16,"nz-col",10),n.TgZ(17,"div",11),n._UZ(18,"cvc-genes-table",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&e&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},directives:[N.I,v.$O,v.u5,m.SK,m.t3,U.w,_.Ls,M.ZU,G.NU,G.$1,z.ix,mn],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})(),data:{breadcrumb:"Home"}},{path:":geneId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([o.e(6256),o.e(9001),o.e(2826),o.e(1679),o.e(2738),o.e(55),o.e(4292),o.e(2043),o.e(3482),o.e(5787),o.e(7259)]).then(o.bind(o,8252)).then(t=>t.GenesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([o.e(6256),o.e(1679),o.e(6875),o.e(4584),o.e(7893)]).then(o.bind(o,3887)).then(t=>t.GenesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let vn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[u.Bz.forChild(Tn),Q],u.Bz]}),t})(),xn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,vn]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/6875.9a3f371a86467784.js b/server/public/6875.9a3f371a86467784.js new file mode 100644 index 000000000..c9ee08a4f --- /dev/null +++ b/server/public/6875.9a3f371a86467784.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6875],{6789:(k,B,r)=>{r.d(B,{_:()=>A});var T=r(9808),b=r(7484),e=r(5109),x=r(5482),E=r(6949),I=r(19),t=r(8776),Z=r(647),v=r(404),M=r(5e3);let N=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=M.oAB({type:a}),a.\u0275inj=M.cJS({imports:[[T.ez,E.WG,t.X0,I.j,x.cD,Z.PV,v.cg,e.s]]}),a})(),A=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=M.oAB({type:a}),a.\u0275inj=M.cJS({imports:[[T.ez,E.WG,t.X0,b.vh,I.j,x.cD,Z.PV,v.cg,N,e.s]]}),a})()},4889:(k,B,r)=>{r.d(B,{E:()=>A});var T=r(9808),b=r(4182),e=r(325),x=r(8776),E=r(304),I=r(6042),t=r(5e3),Z=r(2643),v=r(2683);const N={name:"cancel-button",component:(()=>{class a extends x.fS{constructor(){super(...arguments),this.redirectPath="/"}ngOnInit(){var S,C;(null===(S=this.field.templateOptions)||void 0===S?void 0:S.redirectPath)&&(this.redirectPath=null===(C=this.field.templateOptions)||void 0===C?void 0:C.redirectPath)}}return a.\u0275fac=function(){let z;return function(C){return(z||(z=t.n5z(a)))(C||a)}}(),a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-cancel-button"]],features:[t.qOj],decls:2,vars:1,consts:[["nz-button","","type","button","nzType","default","nzSize","large",1,"cancel-button",3,"routerLink"]],template:function(S,C){1&S&&(t.TgZ(0,"button",0),t._uU(1,"Cancel"),t.qZA()),2&S&&t.Q6J("routerLink",C.redirectPath)},directives:[I.ix,Z.dQ,v.w,e.rH],styles:[".cancel-button[_ngcontent-%COMP%]{float:left}"]}),a})()};let A=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[T.ez,b.u5,b.UX,I.sL,e.Bz,E.F,x.X0.forChild({types:[N]})]]}),a})()},8979:(k,B,r)=>{r.d(B,{N:()=>N});var T=r(9808),b=r(8776),e=r(5e3),x=r(6042),E=r(2643),I=r(2683);const Z={name:"cvc-multi-field-add-btn",component:(()=>{class A extends b.fS{constructor(){super()}}return A.\u0275fac=function(z){return new(z||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["cvc-multi-field-add-btn-type"]],features:[e.qOj],decls:2,vars:2,consts:[["type","submit","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"disabled"]],template:function(z,S){1&z&&(e.TgZ(0,"button",0),e._uU(1),e.qZA()),2&z&&(e.Q6J("disabled",S.to.disabled),e.xp6(1),e.Oqu(S.to.label))},directives:[x.ix,E.dQ,I.w],styles:[""],encapsulation:2,changeDetection:0}),A})()};var v=r(9139),M=r(4546);let N=(()=>{class A{}return A.\u0275fac=function(z){return new(z||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[T.ez,v.u,b.X0.forChild({types:[Z]}),M.U5,x.sL]]}),A})()},8390:(k,B,r)=>{r.d(B,{N:()=>F});var T=r(9808),b=r(4182),e=r(8776),x=r(4546),E=r(1047),I=r(647),t=r(5e3),Z=r(1894),v=r(8481),M=r(2683),N=r(6042),A=r(2643);function a(l,p){if(1&l){const d=t.EpF();t.TgZ(0,"nz-form-item"),t.TgZ(1,"nz-form-control",3),t.TgZ(2,"nz-tag",4),t.NdJ("click",function(Y){return t.CHM(d),t.oxw().addField(Y)}),t._UZ(3,"i",5),t._uU(4),t.qZA(),t.qZA(),t.qZA()}if(2&l){const d=t.oxw();t.xp6(1),t.Q6J("nzValidateStatus",d.errorState),t.xp6(3),t.hij(" ",d.to.addText," ")}}function z(l,p){if(1&l){const d=t.EpF();t.TgZ(0,"nz-tag",4),t.NdJ("click",function(Y){return t.CHM(d),t.oxw(4).addField(Y)}),t._UZ(1,"i",5),t._uU(2),t.qZA()}if(2&l){const d=t.oxw(4);t.xp6(2),t.hij(" ",d.to.addText," ")}}function S(l,p){if(1&l&&(t.TgZ(0,"div",11),t.YNc(1,z,3,1,"nz-tag",12),t.qZA()),2&l){const d=t.oxw(2).$implicit,w=t.oxw();t.xp6(1),t.Q6J("ngIf",0==w.to.maxCount||w.to.maxCount>d.model.length)}}function C(l,p){if(1&l){const d=t.EpF();t.ynx(0),t.TgZ(1,"nz-tag",8),t.TgZ(2,"i",9),t.NdJ("click",function(){t.CHM(d);const Y=t.oxw().index;return t.oxw().remove(Y)}),t.qZA(),t.qZA(),t.YNc(3,S,2,1,"div",10),t.BQk()}if(2&l){const d=t.oxw().last;t.xp6(3),t.Q6J("ngIf",d)}}function j(l,p){if(1&l){const d=t.EpF();t.ynx(0),t.TgZ(1,"div",13),t.TgZ(2,"button",14),t.NdJ("click",function(){t.CHM(d);const Y=t.oxw().index;return t.oxw().remove(Y)}),t._UZ(3,"i",15),t.qZA(),t.qZA(),t.BQk()}}function V(l,p){if(1&l&&(t.TgZ(0,"nz-form-item"),t.TgZ(1,"div",6),t.TgZ(2,"div",0),t._UZ(3,"formly-field",7),t.qZA(),t.YNc(4,C,4,1,"ng-container",1),t.YNc(5,j,4,0,"ng-container",1),t.qZA(),t.qZA()),2&l){const d=p.$implicit,w=p.index;t.xp6(2),t.Q6J("ngClass",d.model[w]?"selected-field-col":"default-field-col"),t.xp6(1),t.Q6J("field",d),t.xp6(1),t.Q6J("ngIf",d.model[w]),t.xp6(1),t.Q6J("ngIf",!d.model[w])}}const L=function(l){return{hidden:l}},K={name:"multi-field",component:(()=>{class l extends e.hv{constructor(){super(),this.defaultOptions={templateOptions:{maxCount:0}}}get errorState(){return this.showError?"error":""}addField(d){d&&d.preventDefault(),this.add()}ngOnInit(){this.to.add=this.add.bind(this),this.to.remove=this.remove.bind(this)}}return l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=t.Xpm({type:l,selectors:[["cvc-multi-field-type"]],features:[t.qOj],decls:3,vars:5,consts:[[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzValidateStatus"],["nzNoAnimation","",1,"editable-tag",3,"click"],["nz-icon","","nzType","plus"],["ngClass","field-display"],[3,"field"],[1,"close-tag"],["nz-icon","","nzType","close",3,"click"],["class","field-add-btn",4,"ngIf"],[1,"field-add-btn"],["class","editable-tag","nzNoAnimation","",3,"click",4,"ngIf"],[1,"field-cancel-btn"],["nz-button","","nzBlock","","nzType","default","nzSize","small","nzDanger","",3,"click"],["nz-icon","","nzType","close"]],template:function(d,w){1&d&&(t.TgZ(0,"div",0),t.YNc(1,a,5,2,"nz-form-item",1),t.YNc(2,V,6,4,"nz-form-item",2),t.qZA()),2&d&&(t.Q6J("ngClass",t.VKq(3,L,!0===w.to.hidden)),t.xp6(1),t.Q6J("ngIf",0===(null==w.field.fieldGroup?null:w.field.fieldGroup.length)),t.xp6(1),t.Q6J("ngForOf",w.field.fieldGroup))},directives:[T.mk,T.O5,Z.SK,x.Nx,Z.t3,x.Fd,v.j,I.Ls,M.w,T.sg,e.cw,N.ix,A.dQ],styles:["[_nghost-%COMP%]{display:block}nz-form-item[_ngcontent-%COMP%]{margin-bottom:.25em}nz-form-item[_ngcontent-%COMP%]:last-child{margin-bottom:16px}.hidden[_ngcontent-%COMP%]{display:none}.editable-tag[_ngcontent-%COMP%]{background:#ffffff;border-style:dashed;cursor:pointer}.field-display[_ngcontent-%COMP%]{margin-top:.5em;display:inline-block} > nz-form-item[_ngcontent-%COMP%]{margin-bottom:0}.selected-field-col[_ngcontent-%COMP%]{display:inline-block}.default-field-col[_ngcontent-%COMP%]{display:inline-block;width:calc(100% - (2*(10px + 1em)))}.field-add-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em}.close-tag[_ngcontent-%COMP%]{margin-left:-9px;cursor:pointer}.field-cancel-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em;width:calc(20px + 1em)}"]}),l})()};function U(l,p){if(1&l&&t._UZ(0,"formly-validation-message",3),2&l){const d=t.oxw();t.Q6J("field",d.field)}}const s={name:"cvc-field-errors",component:(()=>{class l extends e.n2{get errorState(){return this.showError?"error":""}}return l.\u0275fac=function(){let p;return function(w){return(p||(p=t.n5z(l)))(w||l)}}(),l.\u0275cmp=t.Xpm({type:l,selectors:[["cvc-field-errors-wrapper"]],features:[t.qOj],decls:7,vars:3,consts:[[3,"nzValidateStatus","nzErrorTip"],["fieldComponent",""],["errorTpl",""],[3,"field"]],template:function(d,w){if(1&d&&(t.TgZ(0,"nz-form-control",0),t.TgZ(1,"p"),t._uU(2),t.qZA(),t.GkF(3,null,1),t.YNc(5,U,1,1,"ng-template",null,2,t.W1O),t.qZA()),2&d){const Y=t.MAs(6);t.Q6J("nzValidateStatus",w.errorState)("nzErrorTip",Y),t.xp6(2),t.hij("errorState: ",w.errorState,"")}},directives:[Z.t3,x.Fd,e.u_],encapsulation:2,changeDetection:0}),l})()};let i=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[T.ez,b.UX,x.U5,e.X0.forChild({wrappers:[s]})]]}),l})();var g=r(5109);let F=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[T.ez,b.u5,e.X0.forChild({types:[K]}),b.UX,i,x.U5,E.o7,I.PV,N.sL,g.s,v.X]]}),l})()},3773:(k,B,r)=>{r.d(B,{g:()=>pe});var T=r(9808),b=r(8776),e=r(5e3),x=r(4182),E=r(712),I=r(6530),t=r(444);const Z={sourceType:void 0,citationId:void 0};let v=(()=>{class o{constructor(){this.sourceSelected=new e.vpe,this.model=Z,this.form=new x.cw({}),this.options={},this.fields=[{key:"id"},{key:"citation",defaultValue:""},{key:"sourceType",type:"select",className:"source-type-field",defaultValue:E.yic.Pubmed,templateOptions:{required:!0,placeholder:"Select Type",options:(0,t.o6)(E.yic).map((n,u)=>({value:n,label:(0,I.c)(n)}))}},{key:"citationId",className:"citation-id-field",type:"source-selector-typeahead",templateOptions:{maxLength:10,required:!0,triggerParentSubmit:()=>{this.onSubmit()}},expressionProperties:{"templateOptions.disabled":"!model.sourceType","templateOptions.placeholder":'!model.sourceType ? "Select source type before searching" : "Search " + model.sourceType + " sources"',"templateOptions.sourceType":"model.sourceType","templateOptions.sourceTypeKey":n=>{if(n.sourceType)return(0,t.o6)(E.yic).getKeyOrThrow(n.sourceType)}}},{type:"cvc-multi-field-add-btn",className:"add-button",templateOptions:{label:"Add Source"},expressionProperties:{"templateOptions.disabled":"!model.citationId"}}]}ngOnInit(){}onSubmit(){console.log("source-select form submitted."),this.sourceSelected.emit(this.model)}ngOnDestroy(){console.log("source-selector onDestroy called.")}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-selector"]],outputs:{sourceSelected:"sourceSelected"},decls:2,vars:5,consts:[["nz-form","","nzLayout","horizontal",3,"formGroup","ngSubmit"],[1,"formly-form",3,"model","fields","options","form","modelChange"]],template:function(n,u){1&n&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return u.onSubmit()}),e.TgZ(1,"formly-form",1),e.NdJ("modelChange",function(Q){return u.model=Q}),e.qZA(),e.qZA()),2&n&&(e.Q6J("formGroup",u.form),e.xp6(1),e.Q6J("model",u.model)("fields",u.fields)("options",u.options)("form",u.form))},directives:[x._Y,x.JL,x.sg,b.T7],styles:[":host{display:block}cvc-source-input .formly-form{width:100%}cvc-source-input .source-type-field{display:inline-block;width:10em}cvc-source-input .citation-id-field{display:inline-block;margin-left:.5em;width:calc(100% - 19em)}cvc-source-input .add-button{display:inline-block;margin-left:.5em;width:8em}\n"],encapsulation:2}),o})();var M=r(6906);function N(o,m){if(1&o){const n=e.EpF();e.ynx(0),e.TgZ(1,"cvc-source-selector",2),e.NdJ("sourceSelected",function(_){return e.CHM(n),e.oxw().onSourceSelected(_)}),e.qZA(),e.BQk()}}function A(o,m){if(1&o&&e._UZ(0,"cvc-source-tag",3),2&o){const n=e.oxw();e.Q6J("source",n.formControl.value)}}const z={name:"source-input",component:(()=>{class o extends b.fS{constructor(){super()}onSourceSelected(n){console.log(n),this.formControl.setValue(n)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["sourceListItem",""],[3,"sourceSelected"],[3,"source"]],template:function(n,u){if(1&n&&(e.YNc(0,N,2,0,"ng-container",0),e.YNc(1,A,1,1,"ng-template",null,1,e.W1O)),2&n){const _=e.MAs(2);e.Q6J("ngIf",!(null!=u.formControl.value&&u.formControl.value.id))("ngIfElse",_)}},directives:[T.O5,v,M.T],styles:[""],changeDetection:0}),o})()};var S=r(9139),C=r(6042),j=r(8054),V=r(537),L=r(8144),$=r(2359),K=r(1894),U=r(4546),W=r(822),s=r(2643),i=r(2683);function g(o,m){if(1&o&&e._UZ(0,"nz-alert",6),2&o){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function F(o,m){if(1&o&&(e._uU(0," Found citation: "),e.TgZ(1,"em"),e._uU(2),e.qZA()),2&o){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function l(o,m){1&o&&(e.ynx(0),e.YNc(1,g,1,1,"nz-alert",4),e.YNc(2,F,3,1,"ng-template",null,5,e.W1O),e.BQk())}function p(o,m){if(1&o&&e._UZ(0,"nz-alert",9),2&o){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function d(o,m){if(1&o&&(e._uU(0," '"),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,"' created. ")),2&o){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function w(o,m){1&o&&(e.ynx(0),e.YNc(1,p,1,1,"nz-alert",7),e.YNc(2,d,4,1,"ng-template",null,8,e.W1O),e.BQk())}function Y(o,m){if(1&o&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.createErrors)}}function D(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(_){return e.CHM(n),e.oxw(3).onCreateSourceStub(_)}),e._uU(1," Create\xa0'"),e.TgZ(2,"em"),e._uU(3),e.qZA(),e._uU(4,"'\xa0 CIViC Source "),e.qZA()}if(2&o){const n=e.oxw(3);e.Q6J("nzLoading",n.isCreating),e.xp6(3),e.Oqu(n.foundCitation)}}function ne(o,m){1&o&&(e.ynx(0),e.YNc(1,D,5,2,"button",11),e.BQk())}function oe(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(_){return e.CHM(n),e.oxw(3).onAcceptSource(_)}),e._uU(1," Add Source to List "),e.qZA()}}function re(o,m){1&o&&(e.ynx(0),e.YNc(1,oe,2,0,"button",13),e.BQk())}function y(o,m){if(1&o&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,l,4,0,"ng-container",3),e.YNc(3,w,4,0,"ng-container",3),e.YNc(4,Y,2,1,"nz-form-item",3),e.YNc(5,ne,2,0,"ng-container",3),e.YNc(6,re,2,0,"ng-container",3),e.qZA(),e.BQk()),2&o){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",!1===n.createSuccess&&0===n.createErrors.length),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess),e.xp6(1),e.Q6J("ngIf",n.createErrors.length>0),e.xp6(1),e.Q6J("ngIf",!1===n.createSuccess),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess)}}function h(o,m){if(1&o&&(e.TgZ(0,"span",16),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&o){const n=e.oxw(3);e.xp6(2),e.hij(" Source not known to CIViC, fetch citation from ",n.sourceTypeKey,"? ")}}function c(o,m){1&o&&(e.ynx(0),e.YNc(1,h,3,1,"span",15),e.BQk())}function f(o,m){if(1&o&&e._uU(0),2&o){const n=e.oxw(4);e.AsE(" Citation not found for ",n.sourceTypeKey,": ",n.citationId,". ")}}function O(o,m){if(1&o&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,f,1,2,"ng-template",null,20,e.W1O),e.qZA()),2&o){const n=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",n)}}function P(o,m){1&o&&(e.ynx(0),e.YNc(1,O,4,1,"span",18),e.BQk())}function J(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(_){return e.CHM(n),e.oxw(2).onExistenceQuery(_)}),e._uU(1," Fetch Citation for\xa0"),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("nzLoading",n.isChecking),e.xp6(3),e.AsE("",n.sourceTypeKey," ",n.citationId,"")}}function X(o,m){if(1&o&&(e.TgZ(0,"nz-space",2),e.YNc(1,c,2,0,"ng-container",3),e.YNc(2,P,2,0,"ng-container",3),e.YNc(3,J,4,3,"button",11),e.qZA()),2&o){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showPrompt),e.xp6(1),e.Q6J("ngIf",n.existenceFail)}}let G=(()=>{class o{constructor(n,u,_){this.existenceCheckQuery=n,this.createSourceStubQuery=u,this.changeDetectorRef=_,this.modelUpdate=new e.vpe,this.citationIdChange=new e.vpe,this.sourceTypeChange=new e.vpe,this.showPrompt=!0,this.isChecking=!1,this.existenceFail=!1,this.existenceError=[],this.foundCitation=void 0,this.isCreating=!1,this.createSuccess=!1,this.createErrors=[]}set sourceType(n){this._sourceType=n,this.sourceTypeKey=(0,t.o6)(E.yic).getKeyOrThrow(n)}get sourceType(){return this._sourceType}onExistenceQuery(n){n&&n.preventDefault(),this.isChecking=!0,this.foundCitation=void 0,this.existenceCheckQuery.fetch({sourceType:this.sourceType,citationId:+this.citationId}).pipe((0,V.x)(()=>{this.isChecking=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:{remoteCitation:u}})=>{null!==u?this.foundCitation=u:(this.showPrompt=!1,this.existenceFail=!0)},error:u=>{this.showPrompt=!1,this.existenceError=u.graphQLErrors.map(_=>_.message)},complete:()=>{this.existenceError=[]}})}onCreateSourceStub(n){n&&n.preventDefault(),this.isCreating=!0,this.createSuccess=!1,this.createSourceStubQuery.mutate({input:{citationId:+this.citationId,sourceType:this.sourceType}}).pipe((0,V.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:u})=>{var _;console.log(u);const Q=null===(_=null==u?void 0:u.addRemoteCitation)||void 0===_?void 0:_.newSource;this.sourceStub=Q,this.createSuccess=!0},error:u=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=u.graphQLErrors.map(_=>_.message)},complete:()=>{this.createErrors=[]}})}onAcceptSource(n){n&&n.preventDefault(),console.log("source accepted");const u=Object.assign(Object.assign({},this.model),{id:this.sourceStub.id,citation:this.foundCitation,citationId:this.citationId});this.modelUpdate.emit(u)}ngAfterContentInit(){console.log("model")}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(E.fpJ),e.Y36(E.JQ3),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-loader"]],inputs:{model:"model",citationId:"citationId",sourceType:"sourceType"},outputs:{modelUpdate:"modelUpdate",citationIdChange:"citationIdChange",sourceTypeChange:"sourceTypeChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["fetchCitation",""],["nzDirection","vertical"],[4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["foundCitationMsg",""],["nzType","info","nzShowIcon","",3,"nzMessage"],["nzType","success","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["createdMsg",""],["nzType","success","nzShowIcon","",3,"nzMessage"],[3,"errors"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click"],["nz-typography","",4,"nzSpaceItem"],["nz-typography",""],["nz-icon","","nzType","info-circle","nzTheme","twotone"],[4,"nzSpaceItem"],["nzType","warning","nzShowIcon","",3,"nzMessage"],["existenceFail",""]],template:function(n,u){if(1&n&&(e.YNc(0,y,7,5,"ng-container",0),e.YNc(1,X,4,2,"ng-template",null,1,e.W1O)),2&n){const _=e.MAs(2);e.Q6J("ngIf",u.foundCitation)("ngIfElse",_)}},directives:[T.O5,L.NU,L.$1,$.r,K.SK,U.Nx,W.V,C.ix,s.dQ,i.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),o})();function H(o,m){if(1&o&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&o){const n=m.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.value),e.xp6(1),e.AsE(" ",n.source.citation," (",n.source.citationId,") ")}}function R(o,m){if(1&o&&(e.TgZ(0,"div",5),e._uU(1," Citation: "),e.TgZ(2,"span",6),e._uU(3),e.qZA(),e.qZA()),2&o){const n=e.oxw();e.xp6(3),e.hij(" ",n.model.citation," ")}}function te(o,m){if(1&o&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.hij(" Enter a ",n.to.sourceTypeKey," citation ID to search CIViC sources ")}}function q(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"cvc-source-loader",10),e.NdJ("modelUpdate",function(_){return e.CHM(n),e.oxw(2).onModelUpdated(_)})("sourceTypeChange",function(_){return e.CHM(n),e.oxw(2).model.sourceType=_})("citationIdChange",function(_){return e.CHM(n),e.oxw(2).to.fieldValue=_}),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("model",n.model)("sourceType",n.model.sourceType)("citationId",n.to.fieldValue)}}function ee(o,m){if(1&o&&(e.ynx(0,7),e.YNc(1,te,2,1,"div",8),e.YNc(2,q,1,3,"cvc-source-loader",9),e.BQk()),2&o){const n=e.oxw();e.Q6J("ngSwitch",n.to.fieldLength>0&&n.to.fieldLength>=n.to.minLengthSearch),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}const se={name:"source-selector-typeahead",component:(()=>{class o extends b.fS{constructor(n,u){super(),this.sourceTypeaheadQuery=n,this.changeDetectorRef=u,this.selectedValue=null,this.nzFilterOption=()=>!0,this.defaultOptions={templateOptions:{placeholder:"Search",sourceType:void 0,showArrow:!1,onSearch:()=>{},filterOption:()=>{},modelChange:()=>{},triggerParentSubmit:()=>{},minLengthSearch:1,fieldLength:0,fieldValue:"",optionList:[]}}}ngAfterViewInit(){this.to.filterOption=()=>!0,this.to.modelChange=n=>{if(this.to.optionList.length>0){const{source:u}=this.to.optionList.find(_=>_.value===+n);u?this.form.patchValue({citation:u.citation,id:u.id}):console.error("Could not find selected citation in list?")}},this.to.onSearch=n=>{this.to.fieldValue=n,this.to.fieldLength=n.length,!(n.lengththis.to.maxLength)&&this.sourceTypeaheadQuery.fetch({sourceType:this.to.sourceType,partialCitationId:+n},{fetchPolicy:"network-only"}).subscribe(({data:{sourceTypeahead:u}})=>{this.to.optionList=u.map(_=>({value:_.citationId,label:_.citationId,source:_})),this.changeDetectorRef.detectChanges()})}}onModelUpdated(n){this.form.patchValue(n),this.changeDetectorRef.detectChanges(),this.to.triggerParentSubmit()}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(E.k2T),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-selector-typeahead-type"]],features:[e.qOj],decls:5,vars:8,consts:[["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","ngModelChange","nzOnSearch"],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["class","ant-form-item-explain",4,"ngIf"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue"],[1,"ant-form-item-explain"],[1,"source-citation"],[3,"ngSwitch"],["class","ant-form-item-explain",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange"]],template:function(n,u){if(1&n&&(e.TgZ(0,"nz-select",0),e.NdJ("ngModelChange",function(Q){return u.to.modelChange(Q)})("nzOnSearch",function(Q){return u.to.onSearch(Q)}),e.YNc(1,H,2,4,"nz-option",1),e.qZA(),e.YNc(2,R,4,1,"div",2),e.YNc(3,ee,3,3,"ng-template",null,3,e.W1O)),2&n){const _=e.MAs(4);e.Q6J("formControl",u.formControl)("formlyAttributes",u.field)("nzPlaceHolder",u.to.placeholder?u.to.placeholder:null)("nzNotFoundContent",_)("nzShowArrow",u.to.showArrow)("nzFilterOption",u.to.filterOption),e.xp6(1),e.Q6J("ngForOf",u.to.optionList),e.xp6(1),e.Q6J("ngIf",u.model.citation.length>0)}},directives:[j.Vq,x.JJ,x.oH,b.VQ,T.sg,j.Ip,T.O5,T.RF,T.n9,G],styles:["[_nghost-%COMP%]{display:block}.loading-icon[_ngcontent-%COMP%]{margin-right:8px}.source-citation[_ngcontent-%COMP%]{font-style:oblique}"],changeDetection:0}),o})(),wrappers:["form-field"]};var ce=r(7008);let ie=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,L.zf,$.L,U.U5,ce.B,C.sL]]}),o})(),le=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,x.UX,b.X0.forChild({types:[se]}),j.LV,ie]]}),o})();var ae=r(8979);let ue=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,x.UX,b.X0,S.u,C.sL,ie,le,ae.N]]}),o})();var de=r(9779);let pe=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,b.X0.forChild({types:[z]}),ue,de.s]]}),o})()},7075:(k,B,r)=>{r.d(B,{l:()=>S});var T=r(9808),b=r(8776),e=r(5e3),x=r(9180),E=r(8227),I=r(6042),t=r(2643),Z=r(1793),v=r(2683);const N={name:"org-submit-button",component:(()=>{class C extends b.fS{constructor(){super(),this._selectedOrg=void 0,this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}get selectedOrg(){return this._selectedOrg}set selectedOrg(V){this._selectedOrg=V,this.formControl.setValue(V)}}return C.\u0275fac=function(V){return new(V||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["cvc-submit-button-type"]],features:[e.qOj],decls:5,vars:4,consts:[[3,"selectedOrg","nzSize","selectedOrgChange"],["orgButton",""],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary",3,"disabled","click"]],template:function(V,L){if(1&V){const $=e.EpF();e.TgZ(0,"cvc-form-buttons"),e.TgZ(1,"cvc-org-selector-btn-group",0,1),e.NdJ("selectedOrgChange",function(U){return L.selectedOrg=U}),e.TgZ(3,"button",2),e.NdJ("click",function(){return e.CHM($),e.MAs(2).refreshViewer()}),e._uU(4),e.qZA(),e.qZA(),e.qZA()}2&V&&(e.xp6(1),e.Q6J("selectedOrg",L.selectedOrg)("nzSize",L.to.submitSize),e.xp6(2),e.Q6J("disabled",!L.form.valid),e.xp6(1),e.hij(" ",L.to.submitLabel," "))},directives:[x.Z,E.q,I.ix,t.dQ,Z.m,v.w],styles:[""],changeDetection:0}),C})()};var A=r(4375),a=r(1825),z=r(4182);let S=(()=>{class C{}return C.\u0275fac=function(V){return new(V||C)},C.\u0275mod=e.oAB({type:C}),C.\u0275inj=e.cJS({imports:[[T.ez,z.UX,b.X0.forChild({types:[N]}),I.sL,A.R,a.A]]}),C})()},5472:(k,B,r)=>{r.d(B,{r:()=>A});var T=r(9808),b=r(6949),e=r(8776),x=r(7484),E=r(5482),I=r(1894),t=r(5109),Z=r(6789),v=r(5e3);const N={wrappers:[{name:"form-container",component:(()=>{class a extends e.n2{}return a.\u0275fac=function(){let z;return function(C){return(z||(z=v.n5z(a)))(C||a)}}(),a.\u0275cmp=v.Xpm({type:a,selectors:[["cvc-form-container-wrapper"]],features:[v.qOj],decls:5,vars:1,consts:[["nzSpan","24"],["nzSize","default",3,"nzTitle"],["fieldComponent",""]],template:function(S,C){1&S&&(v.TgZ(0,"nz-row"),v.TgZ(1,"nz-col",0),v.TgZ(2,"nz-card",1),v.GkF(3,null,2),v.qZA(),v.qZA(),v.qZA()),2&S&&(v.xp6(2),v.Q6J("nzTitle",C.to.label))},directives:[I.SK,I.t3,x.bd],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),a})()}]};let A=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=v.oAB({type:a}),a.\u0275inj=v.cJS({imports:[[T.ez,b.WG,e.X0.forChild(N),I.Jb,x.vh,E.cD,Z._,t.s]]}),a})()},444:(k,B,r)=>{function T(s){return s!==String(parseFloat(s))}r.d(B,{o6:()=>W});var E=Object.getOwnPropertyNames?function b(s){return Object.getOwnPropertyNames(s).filter(function(i){return s.propertyIsEnumerable(i)&&T(i)})}:Object.keys?function e(s){return Object.keys(s).filter(T)}:function x(s){var i=[];for(var g in s)s.hasOwnProperty(g)&&s.propertyIsEnumerable(g)&&T(g)&&i.push(g);return i},I=function(){function s(i){this.enumObj=i,this.keysList=Object.freeze(E(i));for(var g=this.keysList.length,F=new Array(g),l=new Map,p=0;p=g.length,value:g.keysList[F]};return++F,p}})[Symbol.iterator]=function(){return this},i},s.prototype.values=function(){var i,g=this,F=0;return(i={next:function(){var p={done:F>=g.length,value:g.valuesList[F]};return++F,p}})[Symbol.iterator]=function(){return this},i},s.prototype.entries=function(){var i,g=this,F=0;return(i={next:function(){var p={done:F>=g.length,value:g[F]};return++F,p}})[Symbol.iterator]=function(){return this},i},s.prototype[Symbol.iterator]=function(){return this.entries()},s.prototype.forEach=function(i,g){for(var F=this.length,l=0;l{r.d(B,{$:()=>oe,j:()=>re});var T=r(655),b=r(9808),e=r(5e3),x=r(2654),E=r(839),I=r(8929),t=r(6787),Z=r(3753),v=r(3489),M=r(353);const N={leading:!0,trailing:!1};class C{constructor(h,c,f,O){this.duration=h,this.scheduler=c,this.leading=f,this.trailing=O}call(h,c){return c.subscribe(new j(h,this.duration,this.scheduler,this.leading,this.trailing))}}class j extends v.L{constructor(h,c,f,O,P){super(h),this.duration=c,this.scheduler=f,this.leading=O,this.trailing=P,this._hasTrailingValue=!1,this._trailingValue=null}_next(h){this.throttled?this.trailing&&(this._trailingValue=h,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(V,this.duration,{subscriber:this})),this.leading?this.destination.next(h):this.trailing&&(this._trailingValue=h,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const h=this.throttled;h&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),h.unsubscribe(),this.remove(h),this.throttled=null)}}function V(y){const{subscriber:h}=y;h.clearThrottle()}var L=r(7625),$=r(4850),K=r(9439),U=r(1721),W=r(4090),s=r(925),i=r(5577),g=r(226);const F=["fixedEl"],l=["*"];var p=(()=>{return(y=p||(p={})).resize="resize",y.scroll="scroll",y.touchstart="touchstart",y.touchmove="touchmove",y.touchend="touchend",y.pageshow="pageshow",y.load="LOAD",p;var y})();function w(y){return function d(y){return"undefined"!=typeof window&&y===window}(y)?{top:0,left:0,bottom:0}:y.getBoundingClientRect()}const D="ant-affix";let oe=(()=>{class y{constructor(c,f,O,P,J,X,G,H,R,te){this.nzConfigService=O,this.scrollSrv=P,this.ngZone=J,this.platform=X,this.renderer=G,this.nzResizeObserver=H,this.cdr=R,this.directionality=te,this._nzModuleName="affix",this.nzChange=new e.vpe,this.dir="ltr",this.positionChangeSubscription=x.w.EMPTY,this.offsetChanged$=new E.t(1),this.destroy$=new I.xQ,this.placeholderNode=c.nativeElement,this.document=f}get target(){const c=this.nzTarget;return("string"==typeof c?this.document.querySelector(c):c)||window}ngOnInit(){var c;null===(c=this.directionality.change)||void 0===c||c.pipe((0,L.R)(this.destroy$)).subscribe(f=>{this.dir=f,this.registerListeners(),this.updatePosition({}),this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(c){const{nzOffsetBottom:f,nzOffsetTop:O,nzTarget:P}=c;(f||O)&&this.offsetChanged$.next(),P&&this.registerListeners()}ngAfterViewInit(){this.registerListeners()}ngOnDestroy(){this.removeListeners()}registerListeners(){if(!this.platform.isBrowser)return;this.removeListeners();const c=this.target===window?this.document.body:this.target;this.positionChangeSubscription=this.ngZone.runOutsideAngular(()=>(0,t.T)(...Object.keys(p).map(f=>(0,Z.R)(this.target,f)),this.offsetChanged$.pipe((0,$.U)(()=>({}))),this.nzResizeObserver.observe(c)).pipe(function S(y,h=M.P,c=N){return f=>f.lift(new C(y,h,c.leading,c.trailing))}(20,void 0,{trailing:!0}),(0,L.R)(this.destroy$)).subscribe(f=>this.updatePosition(f))),this.timeout=setTimeout(()=>this.updatePosition({}))}removeListeners(){clearTimeout(this.timeout),this.positionChangeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}getOffset(c,f){const O=c.getBoundingClientRect(),P=w(f),J=this.scrollSrv.getScroll(f,!0),X=this.scrollSrv.getScroll(f,!1),G=this.document.body;return{top:O.top-P.top+J-(G.clientTop||0),left:O.left-P.left+X-(G.clientLeft||0),width:O.width,height:O.height}}setAffixStyle(c,f){const O=this.affixStyle,P=this.target===window;if("scroll"===c.type&&O&&f&&P||(0,U.wU)(O,f))return;const J=!!f,X=this.fixedEl.nativeElement;this.renderer.setStyle(X,"cssText",(0,U.GM)(f)),this.affixStyle=f,J?X.classList.add(D):X.classList.remove(D),this.updateRtlClass(),(f&&!O||!f&&O)&&this.nzChange.emit(J)}setPlaceholderStyle(c){(0,U.wU)(c,this.placeholderStyle)||(this.renderer.setStyle(this.placeholderNode,"cssText",(0,U.GM)(c)),this.placeholderStyle=c)}syncPlaceholderStyle(c){if(!this.affixStyle)return;this.renderer.setStyle(this.placeholderNode,"cssText",""),this.placeholderStyle=void 0;const f={width:this.placeholderNode.offsetWidth,height:this.fixedEl.nativeElement.offsetHeight};this.setAffixStyle(c,Object.assign(Object.assign({},this.affixStyle),f)),this.setPlaceholderStyle(f)}updatePosition(c){if(!this.platform.isBrowser)return;const f=this.target;let O=this.nzOffsetTop;const P=this.scrollSrv.getScroll(f,!0),J=this.getOffset(this.placeholderNode,f),X=this.fixedEl.nativeElement,G={width:X.offsetWidth,height:X.offsetHeight},H={top:!1,bottom:!1};"number"!=typeof O&&"number"!=typeof this.nzOffsetBottom?(H.top=!0,O=0):(H.top="number"==typeof O,H.bottom="number"==typeof this.nzOffsetBottom);const R=w(f),te=f.innerHeight||f.clientHeight;if(P>=J.top-O&&H.top){const q=J.width;this.setAffixStyle(c,{position:"fixed",top:R.top+O,left:R.left+J.left,width:q}),this.setPlaceholderStyle({width:q,height:G.height})}else if(P<=J.top+G.height+this.nzOffsetBottom-te&&H.bottom){const q=f===window?0:window.innerHeight-R.bottom,ee=J.width;this.setAffixStyle(c,{position:"fixed",bottom:q+this.nzOffsetBottom,left:R.left+J.left,width:ee}),this.setPlaceholderStyle({width:ee,height:J.height})}else c.type===p.resize&&this.affixStyle&&"fixed"===this.affixStyle.position&&this.placeholderNode.offsetWidth?this.setAffixStyle(c,Object.assign(Object.assign({},this.affixStyle),{width:this.placeholderNode.offsetWidth})):this.setAffixStyle(c),this.setPlaceholderStyle();"resize"===c.type&&this.syncPlaceholderStyle(c)}updateRtlClass(){const c=this.fixedEl.nativeElement;"rtl"===this.dir&&c.classList.contains(D)?c.classList.add(`${D}-rtl`):c.classList.remove(`${D}-rtl`)}}return y.\u0275fac=function(c){return new(c||y)(e.Y36(e.SBq),e.Y36(b.K0),e.Y36(K.jY),e.Y36(W.MF),e.Y36(e.R0b),e.Y36(s.t4),e.Y36(e.Qsj),e.Y36(i.D3),e.Y36(e.sBO),e.Y36(g.Is,8))},y.\u0275cmp=e.Xpm({type:y,selectors:[["nz-affix"]],viewQuery:function(c,f){if(1&c&&e.Gf(F,7),2&c){let O;e.iGM(O=e.CRH())&&(f.fixedEl=O.first)}},inputs:{nzTarget:"nzTarget",nzOffsetTop:"nzOffsetTop",nzOffsetBottom:"nzOffsetBottom"},outputs:{nzChange:"nzChange"},exportAs:["nzAffix"],features:[e.TTD],ngContentSelectors:l,decls:3,vars:0,consts:[["fixedEl",""]],template:function(c,f){1&c&&(e.F$t(),e.TgZ(0,"div",null,0),e.Hsn(2),e.qZA())},encapsulation:2,changeDetection:0}),(0,T.gn)([(0,K.oS)(),(0,U.Rn)(void 0)],y.prototype,"nzOffsetTop",void 0),(0,T.gn)([(0,K.oS)(),(0,U.Rn)(void 0)],y.prototype,"nzOffsetBottom",void 0),y})(),re=(()=>{class y{}return y.\u0275fac=function(c){return new(c||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[[g.vT,b.ez,s.ud]]}),y})()}}]); \ No newline at end of file diff --git a/server/public/7012.f719422393652a3a.js b/server/public/7012.f719422393652a3a.js new file mode 100644 index 000000000..02ed2b3e2 --- /dev/null +++ b/server/public/7012.f719422393652a3a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7012],{7012:(Pe,C,i)=>{i.r(C),i.d(C,{VariantsReviseModule:()=>ze});var d=i(9808),c=i(325),f=i(373),P=i(1059),R=i(4850),e=i(5e3),u=i(712),A=i(9350),F=i(8992),g=i(1945),x=i(647),h=i(1894),Z=i(8616),y=i(6949);function N(n,r){1&n&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function B(n,r){1&n&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function J(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,N,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,B,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&n){const t=r.ngIf,o=e.MAs(14),a=e.oxw();e.xp6(1),e.Q6J("displayName",t.name),e.xp6(5),e.hij(" ",t.name," "),e.xp6(2),e.hij(" ",t.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,a.isSignedIn$))("ngIfElse",o)}}let D=(()=>{class n{constructor(t,o,a){this.gql=t,this.route=o,this.viewerService=a,this.routeSub=this.route.params.subscribe(s=>{let m=this.gql.watch({variantId:+s.variantId}).valueChanges;this.loading$=m.pipe((0,f.j)("loading"),(0,P.O)(!0)),this.variant$=m.pipe((0,f.j)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,f.j)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,f.j)("flags","totalCount")),this.revisionsTotal$=this.variant$.pipe((0,f.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,R.U)(t=>t.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.iJT),e.Y36(c.gz),e.Y36(A.a))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variants-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variant"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(t,o){1&t&&(e.YNc(0,J,15,7,"ng-container",0),e.ALo(1,"async")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,o.variant$))},directives:[d.O5,F.I,g.$O,g.u9,x.Ls,g.yG,g.u5,c.lC,h.SK,h.t3,Z.u],pipes:[d.Ov,y.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),n})();var E=i(3773),w=i(8390),_=i(4375),G=i(7008),Q=i(1825),v=i(8776),O=i(6042),V=i(2359),b=i(4546),p=i(4182),I=i(5109),$=i(6501),U=i(7484),Y=i(5482),j=i(6462),L=i(7075),X=i(9911),H=i(4623),W=i(9990),k=i(7462),K=i(4889),S=i(7525),q=i(5472),z=i(1047),M=i(8481);function ee(n,r){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"input",2),e.NdJ("keydown.enter",function(a){return e.CHM(t),e.oxw().onEnter(a)}),e.qZA(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("formControl",t.formControl)("formlyAttributes",t.field)}}function te(n,r){if(1&n&&(e.TgZ(0,"nz-tag"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.formControl.value)}}const ne={name:"tag-input",component:(()=>{class n extends v.fS{constructor(){super(),this.defaultOptions={templateOptions:{placeholder:"Enter value"},modelOptions:{updateOn:"blur"}}}onEnter(t){this.formControl.setValue(t.target.value)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-tag-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["tagItem",""],["nz-input","",3,"formControl","formlyAttributes","keydown.enter"]],template:function(t,o){if(1&t&&(e.YNc(0,ee,2,2,"ng-container",0),e.YNc(1,te,2,1,"ng-template",null,1,e.W1O)),2&t){const a=e.MAs(2);e.Q6J("ngIf",!o.formControl.value)("ngIfElse",a)}},directives:[d.O5,z.Zp,p.Fj,p.JJ,p.oH,v.VQ,M.j],styles:[""],changeDetection:0}),n})()};let ie=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez,p.UX,y.WG,v.X0.forChild({types:[ne]}),M.X,z.o7]]}),n})();var ae=i(7338);let re=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez,c.Bz,y.WG,p.UX,v.X0,I.s,O.sL,U.vh,Y.cD,b.U5,V.L,h.Jb,x.PV,O.sL,j.m,S.j,L.l,Q.A,q.r,G.B,_.R,X.G,H.K,w.N,E.g,$.r,W.M,k.o,K.E,ie,ae.z,I.s]]}),n})(),oe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez,re]]}),n})();var se=i(8929),T=i(7625),l=i(6738),le=i(444);function de(n){switch(n){case"GRCH37":return"GRCh37 (hg19)";case"GRCH38":return"GRCh38 (hg38)";case"NCBI36":return"NCBI36 (hg18)";default:return n}}var pe=i(6123),ce=i(9169),me=i(822);function fe(n,r){1&n&&e.GkF(0)}function ue(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(a){return e.CHM(t),e.oxw(2).formModel=a}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("form",t.formGroup)("fields",t.formFields)("model",t.formModel)("options",t.formOptions)}}function ge(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(t);const a=e.oxw();return a.submitRevision(a.formModel)}),e.YNc(1,fe,1,0,"ng-container",4),e.YNc(2,ue,1,4,"formly-form",5),e.qZA()}if(2&n){const t=e.oxw(),o=e.MAs(3);e.Q6J("formGroup",t.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",o),e.xp6(1),e.Q6J("ngIf",!t.success)}}function he(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("errors",t.errorMessages)}}function ve(n,r){1&n&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function ye(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,ve,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&n){const t=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",t)}}function xe(n,r){if(1&n&&(e.YNc(0,he,3,1,"ng-container",7),e.YNc(1,ye,4,1,"ng-container",7)),2&n){const t=e.oxw();e.Q6J("ngIf",t.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",t.success)}}let be=(()=>{class n{constructor(t,o,a){this.suggestRevisionGQL=t,this.networkErrorService=o,this.revisableFieldsGQL=a,this.success=!1,this.errorMessages=[],this.loading=!1,this.formGroup=new p.cw({}),this.formOptions={},this.suggestRevisionMutator=new pe.U(o),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Variant Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"name",type:"input",templateOptions:{label:"Name",helpText:'Enter the name of the Variant according to the Variant Curation SOP',required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Variant Description",placeholder:"Enter a description for this variant.",helpText:'Provide a summary of the clinical relevance of this Variant. The Variant Summary should be a synthesis of the existing Evidence Statements for this variant. Basic information on recurrence rates and biological/functional impact of the Variant may be included, but the focus should be on the clinical impact (i.e. predictive, prognostic, diagnostic, or predisposing relevance). By submitting content to CIViC you agree to release it to the public domain as described by the Creative Commons Public Domain Dedication (CC0 1.0 Universal).',required:!1}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Description Sources",addText:"Add a Source",helpText:"Add any Sources used as references for this Variant's Description above."},fieldArray:{type:"source-input",templateOptions:{required:!1}}},{key:"variantAliases",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Aliases",addText:"Add an Alias",helpText:"List any aliases commonly used to refer to this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Add Alias",minLength:3}}},{key:"hgvsDescriptions",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"HGVS Descriptions",addText:"Add an HGVS Description",helpText:"Please specify any HGVS descriptions for this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Enter an HGVS string"}}},{key:"clinvarStatus",type:"select",templateOptions:{label:"Do Clinvar IDs exist for this variant?",placeholder:"Select Clinvar ID status",helpText:"Specify if Clinvar IDs exist, or if they are not applicable for this variant.",options:[{value:l.li.NotApplicable,label:"Clinvar IDs not applicable for this variant"},{value:l.li.NoneFound,label:"Clinvar IDs do not exist for this variant"},{value:l.li.Found,label:"Clinvar IDs were found for this variant"}]}},{key:"clinvarIds",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"ClinVar IDs",addText:"Add a ClinVar ID",helpText:"Specify any corresponding ClinVar identifiers for this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Enter a ClinVar ID"}},validators:{validation:["clinvar"]},hideExpression:(s,m,Me)=>Me.form.value.clinvarStatus!==l.li.Found},{key:"variantTypes",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Types",addText:"Add a Variant Type",helpText:'Add one or more variant types from the Sequence Ontology (e.g., missense, loss-of-function). Be specific as possible, avoid the addition of root concepts, and use the sequence_variant tree of the sequence ontology.'},fieldArray:{type:"variant-type-input",templateOptions:{required:!1}}},{template:"

Primary Coordinates

"},{key:"referenceBuild",type:"select",defaultValue:u.JDX.Grch37,templateOptions:{label:"Reference Build",required:!1,helpText:"Specify the human genome reference sequence from which these coordinates are obtained.",options:(0,le.o6)(u.JDX).map(s=>({value:s,label:de(s)}))}},{key:"ensemblVersion",type:"cvc-ensembl-input"},{key:"threePrimeCoordinates.referenceBases",type:"input",defaultValue:void 0,templateOptions:{label:"Reference Bases",helpText:"The nucleotide(s) of the reference genome affected by the variant. Only used for SNVs and Indels (otherwise leave blank).",required:!1},validators:{validation:["nucleotide"]}},{key:"threePrimeCoordinates.variantBases",type:"input",defaultValue:void 0,templateOptions:{label:"Variant Bases",helpText:"The nucleotide(s) of the variant allele. Only used for SNVs and Indels (otherwise leave blank).",required:!1},validators:{validation:["nucleotide"]}},{key:"threePrimeCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",helpText:"Specify the chromosome in which this variant occurs (e.g. 17).",required:!1,options:l.aP}},{key:"threePrimeCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build.",required:!1},validators:{validation:["integer"]}},{key:"threePrimeCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build.",required:!1},validators:{validation:["integer"]}},{key:"threePrimeCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{template:"

Secondary Coordinates

"},{key:"fivePrimeCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",required:!1,options:l.aP,helpText:"If this variant is a fusion (e.g. BCR-ABL1), specify the chromosome name, coordinates, and representative transcript for the 3-prime partner."}},{key:"fivePrimeCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this 3-prime partner fusion variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"fivePrimeCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this 3-prime partner fusion variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"fivePrimeCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision to this variant.",helpText:"Please enter a comment describing your revision to this variant.",required:!1,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Revision",submitSize:"large"}}]}]}ngOnInit(){this.destroy$=new se.xQ}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).subscribe(({data:{variant:t}})=>{t&&(this.formModel=this.toFormModel(t))},t=>{console.error("Error retrieving variant."),console.error(t)},()=>{this.formGroup.markAllAsTouched();const t=this.formGroup.get("fields.comment");t&&t.markAsUntouched()})}getClinvarStatus(t){return"NONE FOUND"===t[0]?l.li.NoneFound:"N/A"===t[0]?l.li.NotApplicable:l.li.Found}getClinvarIds(t){return"NONE FOUND"===t[0]||"N/A"===t[0]?[]:t}toFormModel(t){var o,a,s,m;return{fields:Object.assign(Object.assign({},t),{clinvarStatus:this.getClinvarStatus(t.clinvarIds),clinvarIds:this.getClinvarIds(t.clinvarIds),referenceBases:null===(o=t.fivePrimeCoordinates)||void 0===o?void 0:o.referenceBases,variantBases:null===(a=t.fivePrimeCoordinates)||void 0===a?void 0:a.variantBases,comment:null===(s=this.formModel)||void 0===s?void 0:s.fields.comment,organization:null===(m=this.formModel)||void 0===m?void 0:m.fields.organization})}}submitRevision(t){let o=this.toRevisionInput(t);if(o){let a=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:o});a.submitSuccess$.pipe((0,T.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),a.submitError$.pipe((0,T.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),a.isSubmitting$.pipe((0,T.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toRevisionInput(t){var o;if(t){const a=t.fields;return Object.assign(Object.assign({id:a.id},t),{fields:{name:a.name,geneId:a.gene.id,ensemblVersion:l.uP(a.ensemblVersion),description:l.xt(a.description),clinvarIds:l.Zg(a.clinvarIds,a.clinvarStatus),primaryCoordinates:l._$(a.threePrimeCoordinates),secondaryCoordinates:l._$(a.fivePrimeCoordinates),referenceBases:l.xt(a.referenceBases),variantBases:l.xt(a.variantBases),referenceBuild:l.dh(a.referenceBuild),hgvsDescriptions:a.hgvsDescriptions,sourceIds:t.fields.sources.map(s=>+s.id),variantTypeIds:t.fields.variantTypes.map(s=>+s.id),aliases:t.fields.variantAliases},comment:""==a.comment?void 0:a.comment,organizationId:null===(o=t.fields.organization)||void 0===o?void 0:o.id})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.Xft),e.Y36(ce.Y),e.Y36(u.nnL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variant-revise-form"]],inputs:{variantId:"variantId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(t,o){1&t&&(e.TgZ(0,"nz-spin",0),e.YNc(1,ge,3,3,"form",1),e.qZA(),e.YNc(2,xe,2,2,"ng-template",null,2,e.W1O)),2&t&&(e.Q6J("nzSpinning",o.loading),e.xp6(1),e.Q6J("ngIf",o.formModel))},directives:[S.W,d.O5,p._Y,p.JL,b.Lr,p.sg,d.tP,v.T7,h.SK,b.Nx,me.V,V.r,c.yS],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}"]}),n})();function Te(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-variant-revise-form",2),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("variantId",t.variantId)}}function Ce(n,r){1&n&&e._uU(0,"Loading Variant...")}const Oe=[{path:"",component:D,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class n{constructor(t){this.route=t,this.routeParams$=this.route.params.subscribe(o=>{this.variantId=+o.variantId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variants-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariant",""],[3,"variantId"]],template:function(t,o){if(1&t&&(e.YNc(0,Te,2,1,"ng-container",0),e.YNc(1,Ce,1,0,"ng-template",null,1,e.W1O)),2&t){const a=e.MAs(2);e.Q6J("ngIf",o.variantId)("ngIfElse",a)}},directives:[d.O5,be],styles:[""]}),n})(),data:{breadcrumb:"Suggest Revision"}}]}];let Ve=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[c.Bz.forChild(Oe),oe],c.Bz]}),n})();var Ie=i(5630),Se=i(9386);let ze=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez,Ve,g.KJ,x.PV,Ie.D,Se.a,y.WG,h.Jb]]}),n})()}}]); \ No newline at end of file diff --git a/server/public/7559.a5a35b67a5a564b7.js b/server/public/7559.f6ca9a429933f621.js similarity index 79% rename from server/public/7559.a5a35b67a5a564b7.js rename to server/public/7559.f6ca9a429933f621.js index 455c6e3a5..4587d5705 100644 --- a/server/public/7559.a5a35b67a5a564b7.js +++ b/server/public/7559.f6ca9a429933f621.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7559],{7559:(Tt,M,r)=>{r.r(M),r.d(M,{EvidenceAddModule:()=>St});var s=r(9808),m=r(325),A=r(4850),e=r(5e3),U=r(9350),N=r(8992),f=r(1945),w=r(647),g=r(1894),Y=r(8616),h=r(6949);function $(t,i){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function B(t,i){1&t&&(e.TgZ(0,"nz-row",7),e.TgZ(1,"div",8),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}let V=(()=>{class t{constructor(n){this.viewerService=n}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,A.U)(n=>n.signedIn))}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(U.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["evidence-add"]],decls:13,vars:4,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:evidence"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,o){if(1&n&&(e._UZ(0,"cvc-section-navigation",0),e.TgZ(1,"nz-page-header",1),e.TgZ(2,"nz-page-header-title",2),e._UZ(3,"i",3),e._uU(4," Add New Evidence "),e.qZA(),e.TgZ(5,"nz-page-header-subtitle"),e._uU(6," Submit and review new evidence items "),e.qZA(),e.TgZ(7,"nz-page-header-content"),e.TgZ(8,"div",4),e.YNc(9,$,2,0,"div",5),e.ALo(10,"ngrxPush"),e.YNc(11,B,3,0,"ng-template",null,6,e.W1O),e.qZA(),e.qZA(),e.qZA()),2&n){const a=e.MAs(12);e.xp6(9),e.Q6J("ngIf",e.lcZ(10,2,o.isSignedIn$))("ngIfElse",a)}},directives:[N.I,f.$O,f.u9,w.Ls,f.yG,f.u5,s.O5,m.lC,g.SK,g.t3,Y.u],pipes:[h.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})();var p=r(8144),k=r(6559),C=r(7484),D=r(1135),R=r(4623),G=r(8006),j=r(5452),X=r(3643),H=r(4375),L=r(7008),W=r(7695),K=r(8390),q=r(1825),ee=r(5457),te=r(5743),ne=r(3773),oe=r(7075),ie=r(7462),re=r(3594),Q=r(8929),z=r(591),y=r(7625),S=r(537),l=r(712),F=r(9169);let ae=(()=>{class t{constructor(n,o){this.submitEvidenceItemGQL=n,this.networkErrorService=o,this.destroy$=new Q.xQ,this.isSubmitting$=new z.X(!1),this.submitSuccess$=new z.X(!1),this.submitError$=new z.X([])}submit(n){this.isSubmitting$.next(!0),this.submitEvidenceItemGQL.mutate({input:n}).pipe((0,y.R)(this.destroy$),(0,S.x)(()=>{this.isSubmitting$.next(!1)})).subscribe({error:o=>{o.graphQLErrors.length>0?this.submitError$.next(o.graphQLErrors.map(a=>a.message)):o.networkError&&this.networkErrorService.networkError$.next(o.networkError)},complete:()=>{this.submitError$.next([]),this.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0)}})}cleanup(){this.submitError$.next([]),this.submitSuccess$.next(!1),this.isSubmitting$.next(!1),this.networkErrorService.networkError$.next(void 0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.LFG(l.WFw),e.LFG(F.Y))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac}),t})();var u=r(8776),T=r(5109),v=r(2359),b=r(6042),_=r(4546),d=r(4182),ce=r(2789),se=r(5932),le=r(3416),de=r(2480),pe=r(1830),ue=r(4581),me=r(1605),ge=r(5926),fe=r(1270),J=r(7525),he=r(6530),I=r(444),_e=r(6906);function ye(t,i){if(1&t&&(e.ynx(0),e._UZ(1,"formly-field",2),e.BQk()),2&t){const n=i.$implicit;e.xp6(1),e.Q6J("field",n)}}function ve(t,i){if(1&t&&e._UZ(0,"cvc-source-tag",3),2&t){const n=e.oxw();e.Q6J("source",n.model.source)}}let xe=(()=>{class t extends u.fS{constructor(){super(),this.defaultOptions={templateOptions:{label:"Source",entityType:"Source",entityFragment:l.iXf},defaultValue:{sourceType:l.yic.Pubmed,source:void 0},fieldGroupClassName:"select-group",fieldGroup:[{key:"sourceType",type:"select",className:"type-field",templateOptions:{required:!1,placeholder:"Select Type",options:(0,I.o6)(l.yic).map((n,o)=>({value:n,label:(0,he.c)(n)}))},hideExpression:(n,o,a)=>(console.log(n),null!=n.source)},{key:"source",type:"citation-select",className:"citation-field",templateOptions:{required:!1},hideExpression:(n,o,a)=>(console.log(n),null!=n.source)}]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-source-select"]],features:[e.qOj],decls:2,vars:2,consts:[[4,"ngFor","ngForOf"],[3,"source",4,"ngIf"],[3,"field"],[3,"source"]],template:function(n,o){1&n&&(e.YNc(0,ye,2,1,"ng-container",0),e.YNc(1,ve,1,1,"cvc-source-tag",1)),2&n&&(e.Q6J("ngForOf",o.field.fieldGroup),e.xp6(1),e.Q6J("ngIf",null!=o.model.source))},directives:[s.sg,u.cw,s.O5,_e.T],styles:["[_nghost-%COMP%]{display:block}.type-field[_ngcontent-%COMP%]{display:inline-block;width:10em}.citation-field[_ngcontent-%COMP%]{display:inline-block;margin-left:.5em;width:calc(100% - 10.5em)}.hidden[_ngcontent-%COMP%]{display:none}"]}),t})();var x=r(8054),E=r(3618),Ce=r(8481),ze=r(373),P=r(822),Se=r(2643),Te=r(2683);function be(t,i){if(1&t&&e._UZ(0,"nz-alert",6),2&t){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function Ie(t,i){if(1&t&&(e._uU(0," Found citation: "),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,", would you like to add it? ")),2&t){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function Ee(t,i){1&t&&(e.ynx(0),e.YNc(1,be,1,1,"nz-alert",4),e.YNc(2,Ie,4,1,"ng-template",null,5,e.W1O),e.BQk())}function Oe(t,i){if(1&t&&e._UZ(0,"nz-alert",9),2&t){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function Ze(t,i){if(1&t&&(e._uU(0," '"),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,"' created. ")),2&t){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function Me(t,i){1&t&&(e.ynx(0),e.YNc(1,Oe,1,1,"nz-alert",7),e.YNc(2,Ze,4,1,"ng-template",null,8,e.W1O),e.BQk())}function Ae(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.createErrors)}}function we(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(a){return e.CHM(n),e.oxw(3).onAddRemoteCitation(a)}),e._uU(1," Add\xa0'"),e.TgZ(2,"em"),e._uU(3),e.qZA(),e._uU(4,"'\xa0 to CIViC Sources "),e.qZA()}if(2&t){const n=e.oxw(3);e.Q6J("nzLoading",n.isCreating),e.xp6(3),e.Oqu(n.foundCitation)}}function Le(t,i){1&t&&(e.ynx(0),e.YNc(1,we,5,2,"button",11),e.BQk())}function Qe(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(a){return e.CHM(n),e.oxw(3).onAcceptSource(a)}),e._uU(1," Specify this Source "),e.qZA()}}function Fe(t,i){1&t&&(e.ynx(0),e.YNc(1,Qe,2,0,"button",13),e.BQk())}function Je(t,i){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,Ee,4,0,"ng-container",3),e.YNc(3,Me,4,0,"ng-container",3),e.YNc(4,Ae,2,1,"nz-form-item",3),e.YNc(5,Le,2,0,"ng-container",3),e.YNc(6,Fe,2,0,"ng-container",3),e.qZA(),e.BQk()),2&t){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",!1===n.createSuccess&&0===n.createErrors.length),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess),e.xp6(1),e.Q6J("ngIf",n.createErrors.length>0),e.xp6(1),e.Q6J("ngIf",!1===n.createSuccess),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess)}}function Pe(t,i){if(1&t&&(e.TgZ(0,"span",16),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&t){const n=e.oxw(3);e.xp6(2),e.hij(" Source not known to CIViC, fetch citation from ",n.sourceTypeKey,"? ")}}function Ue(t,i){1&t&&(e.ynx(0),e.YNc(1,Pe,3,1,"span",15),e.BQk())}function Ne(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.existenceErrors)}}function Ye(t,i){if(1&t&&e._uU(0),2&t){const n=e.oxw(4);e.AsE(" Citation not found for ",n.sourceTypeKey,": ",n.citationId,". ")}}function $e(t,i){if(1&t&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,Ye,1,2,"ng-template",null,20,e.W1O),e.qZA()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",n)}}function Be(t,i){1&t&&(e.ynx(0),e.YNc(1,$e,4,1,"span",18),e.BQk())}function Ve(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(a){return e.CHM(n),e.oxw(2).onExistenceQuery(a)}),e._uU(1," Fetch Citation for\xa0"),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("nzLoading",n.isChecking),e.xp6(3),e.AsE("",n.sourceTypeKey," ",n.citationId,"")}}function ke(t,i){if(1&t&&(e.TgZ(0,"nz-space",2),e.YNc(1,Ue,2,0,"ng-container",3),e.YNc(2,Ne,2,1,"nz-form-item",3),e.YNc(3,Be,2,0,"ng-container",3),e.YNc(4,Ve,4,3,"button",11),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showPrompt),e.xp6(1),e.Q6J("ngIf",n.existenceErrors.length>0),e.xp6(1),e.Q6J("ngIf",n.existenceFail)}}let De=(()=>{class t{constructor(n,o,a){this.existenceCheckQuery=n,this.createSourceStubQuery=o,this.changeDetectorRef=a,this.addCitation=new e.vpe,this.citationIdChange=new e.vpe,this.sourceTypeChange=new e.vpe,this.showPrompt=!0,this.isChecking=!1,this.existenceFail=!1,this.existenceErrors=[],this.foundCitation=void 0,this.isCreating=!1,this.createSuccess=!1,this.createErrors=[]}set sourceType(n){this._sourceType=n,this.sourceTypeKey=(0,I.o6)(l.yic).getKeyOrThrow(n)}get sourceType(){return this._sourceType}onExistenceQuery(n){n&&n.preventDefault(),this.isChecking=!0,this.foundCitation=void 0,this.existenceCheckQuery.fetch({sourceType:this.sourceType,citationId:+this.citationId}).pipe((0,S.x)(()=>{this.isChecking=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:{remoteCitation:o}})=>{null!==o?this.foundCitation=o:(this.showPrompt=!1,this.existenceFail=!0)},error:o=>{this.showPrompt=!1,this.existenceErrors=o.graphQLErrors.map(a=>a.message)},complete:()=>{this.existenceErrors=[]}})}onAddRemoteCitation(n){n&&n.preventDefault(),this.isCreating=!0,this.createSuccess=!1,this.createSourceStubQuery.mutate({input:{citationId:+this.citationId,sourceType:this.sourceType}}).pipe((0,S.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:o})=>{var a;console.log(o);const c=null===(a=null==o?void 0:o.addRemoteCitation)||void 0===a?void 0:a.newSource;this.sourceStub=c,this.createSuccess=!0},error:o=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=o.graphQLErrors.map(a=>a.message)},complete:()=>{this.createErrors=[]}})}onAcceptSource(n){n&&n.preventDefault(),this.addCitation.emit({id:this.sourceStub.id,entityFragment:l.SJD})}ngAfterContentInit(){console.log("model")}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.gtM),e.Y36(l.RMv),e.Y36(e.sBO))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-citation-loader"]],inputs:{model:"model",citationId:"citationId",sourceType:"sourceType"},outputs:{addCitation:"addCitation",citationIdChange:"citationIdChange",sourceTypeChange:"sourceTypeChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["fetchCitation",""],["nzDirection","vertical"],[4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["foundCitationMsg",""],["nzType","info","nzShowIcon","",3,"nzMessage"],["nzType","success","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["createdMsg",""],["nzType","success","nzShowIcon","",3,"nzMessage"],[3,"errors"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click"],["nz-typography","",4,"nzSpaceItem"],["nz-typography",""],["nz-icon","","nzType","info-circle","nzTheme","twotone"],[4,"nzSpaceItem"],["nzType","warning","nzShowIcon","",3,"nzMessage"],["existenceFail",""]],template:function(n,o){if(1&n&&(e.YNc(0,Je,7,5,"ng-container",0),e.YNc(1,ke,5,3,"ng-template",null,1,e.W1O)),2&n){const a=e.MAs(2);e.Q6J("ngIf",o.foundCitation)("ngIfElse",a)}},directives:[s.O5,p.NU,p.$1,v.r,g.SK,_.Nx,P.V,b.ix,Se.dQ,Te.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),t})();function Re(t,i){if(1&t&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&t){const n=i.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.source),e.xp6(1),e.AsE(" ",n.source.citation," (",n.source.citationId,") ")}}function Ge(t,i){if(1&t&&(e.ynx(0),e.YNc(1,Re,2,4,"nz-option",3),e.BQk()),2&t){const n=i.ngrxLet;e.xp6(1),e.Q6J("ngForOf",n)}}function je(t,i){if(1&t&&(e.TgZ(0,"div",8),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.hij(" ",n.to.prompt," ")}}function Xe(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"cvc-citation-loader",9),e.NdJ("addCitation",function(a){return e.CHM(n),e.oxw(2).onAddCitation(a)})("sourceTypeChange",function(a){return e.CHM(n),e.oxw(2).model.sourceType=a})("citationIdChange",function(a){return e.CHM(n),e.oxw(2).to.searchValue=a}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("model",n.model)("sourceType",n.model.sourceType)("citationId",n.to.searchValue)}}function He(t,i){if(1&t&&(e.ynx(0,5),e.YNc(1,je,2,1,"div",6),e.YNc(2,Xe,1,3,"cvc-citation-loader",7),e.BQk()),2&t){const n=e.oxw();e.Q6J("ngSwitch",n.to.searchLength>0&&n.to.searchLength>=n.to.minSearchLength),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}let We=(()=>{class t extends u.fS{constructor(n){super(),this.sourceTypeaheadQuery=n,this.defaultOptions={templateOptions:{placeholder:"Search Sources",onSearch:()=>{},minSearchLength:1,maxSearchLength:15,searchLength:0,searchValue:""},expressionProperties:{"templateOptions.prompt":o=>`Search for ${(0,I.o6)(l.yic).getKeyOrThrow(o.sourceType)} sources known to CIViC.`}},this.onAddCitation=o=>{const a=this.field.parent.templateOptions;a.entityType="SourceStub",a.entityFragment=o.entityFragment,this.field.formControl.setValue(o.id)}}ngOnInit(){this.queryRef=this.sourceTypeaheadQuery.watch({sourceType:this.model.sourceType,partialCitationId:9999999}),this.sources$=this.queryRef.valueChanges.pipe((0,ze.j)("data","sourceTypeahead"),(0,A.U)(n=>n.map(o=>({value:o.id,label:o.citation?o.citation:o.name,source:o}))))}ngAfterViewInit(){this.to.onSearch=n=>{this.to.searchLength=n.length,this.to.searchValue=n,!(n.lengththis.to.maxLength)&&this.queryRef.refetch({sourceType:l.yic.Pubmed,partialCitationId:+n})}}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.NbY))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-citation-select-type"]],features:[e.qOj],decls:4,vars:7,consts:[["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["notFound",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"ngSwitch"],["class","ant-form-item-explain",4,"ngSwitchCase"],[3,"model","sourceType","citationId","addCitation","sourceTypeChange","citationIdChange",4,"ngSwitchCase"],[1,"ant-form-item-explain"],[3,"model","sourceType","citationId","addCitation","sourceTypeChange","citationIdChange"]],template:function(n,o){if(1&n&&(e.TgZ(0,"nz-select",0),e.NdJ("nzOnSearch",function(c){return o.to.onSearch(c)}),e.YNc(1,Ge,2,1,"ng-container",1),e.qZA(),e.YNc(2,He,3,3,"ng-template",null,2,e.W1O)),2&n){const a=e.MAs(3);e.Q6J("formControl",o.formControl)("formlyAttributes",o.field)("nzPlaceHolder",o.to.placeholder?o.to.placeholder:null)("nzNotFoundContent",a)("nzShowArrow",!1)("nzFilterOption",o.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",o.sources$)}},directives:[x.Vq,d.JJ,d.oH,u.VQ,h.eJ,s.sg,x.Ip,s.RF,s.n9,De],styles:["[_nghost-%COMP%]{display:block}.loading-icon[_ngcontent-%COMP%]{margin-right:8px}.source-citation[_ngcontent-%COMP%]{font-style:oblique}"],changeDetection:0}),t})(),Ke=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,p.zf,v.L,_.U5,L.B,b.sL]]}),t})();const qe={types:[{name:"citation-select",component:We}]};let et=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,d.UX,h.WG,x.LV,Ke,u.X0.forChild(qe),T.s]]}),t})();var tt=r(9779);const nt={types:[{name:"source-select",component:xe,wrappers:["form-field"]}]};let ot=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,d.UX,h.WG,u.X0.forChild(nt),x.LV,p.zf,E.ZJ,Ce.X,et,tt.s]]}),t})();var it=r(5472),rt=r(4889);let at=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[ae],imports:[[s.ez,m.Bz,d.UX,T.s,_.U5,v.L,g.Jb,b.sL,J.j,u.X0,q.A,L.B,H.R,W.C,oe.l,K.N,ne.g,j.C,te.W,ee.$,G.I,ie.o,R.K,re.q,X.q,D.C,ce.o,se.A,le.g,de.r,pe.S,ue.e,me.e,ge.J,fe.i,ot,it.r,rt.E,C.vh,p.zf,E.ZJ,m.Bz,T.s]]}),t})(),ct=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,g.Jb,p.zf,C.vh,k.H0,at]]}),t})();var O=r(6738),st=r(6064),lt=r(6123);function dt(t,i){1&t&&(e.TgZ(0,"nz-card"),e.TgZ(1,"nz-typography"),e._uU(2," To add an evidence item, please complete the following form, provide a short statement supporting its inclusion into the CIViC database, then click the 'Submit Evidence for Inclusion' button. If you are having difficulty filling in all of the required fields please use the "),e.TgZ(3,"a",3),e._uU(4,"Suggest Source form"),e.qZA(),e._uU(5," to suggest a publication for curators to review. "),e._UZ(6,"br"),e._UZ(7,"br"),e.TgZ(8,"strong"),e._uU(9,"Please ensure that your submission contains no "),e.TgZ(10,"a",4),e._uU(11,"Protected Health Information"),e.qZA(),e._uU(12,", and is your own original work. By contributing to CIViC you agree to release your contributions to the public domain as described by the "),e.TgZ(13,"a",5),e._uU(14,"Creative Commons Public Domain Dedication (CC0 1.0 Universal)"),e.qZA(),e._uU(15,"."),e.qZA(),e.qZA(),e.qZA())}function pt(t,i){1&t&&e.GkF(0)}function ut(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",11),e.NdJ("modelChange",function(a){return e.CHM(n),e.oxw(2).formModel=a}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function mt(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",13),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.Q6J("errors",n.errorMessages)}}function gt(t,i){if(1&t&&(e.TgZ(0,"p"),e._uU(1,"View "),e.TgZ(2,"a",17),e._uU(3,"its details"),e.qZA(),e._uU(4,"."),e.qZA()),2&t){const n=e.oxw(4);e.xp6(2),e.MGl("routerLink","/evidence/",n.newId,"/summary")}}function ft(t,i){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",14),e.YNc(2,gt,5,1,"ng-template",15,16,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function ht(t,i){if(1&t&&(e.YNc(0,mt,2,1,"nz-form-item",12),e.YNc(1,ft,4,1,"ng-container",12)),2&t){const n=e.oxw(2);e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}function _t(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"nz-spin",6),e.TgZ(1,"form",7),e.NdJ("ngSubmit",function(){e.CHM(n);const a=e.oxw();return a.submitEvidence(a.formModel)}),e.YNc(2,pt,1,0,"ng-container",8),e.YNc(3,ut,1,4,"formly-form",9),e.qZA(),e.YNc(4,ht,2,2,"ng-template",null,10,e.W1O),e.qZA()}if(2&t){const n=e.MAs(5),o=e.oxw();e.Q6J("nzSpinning",o.loading),e.xp6(1),e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",n),e.xp6(1),e.Q6J("ngIf",!o.success)}}let yt=(()=>{class t{constructor(n,o){this.submitEvidenceGQL=n,this.networkErrorService=o,this.destroy$=new Q.xQ,this.formGroup=new d.cw({}),this.formOptions={formState:new st._},this.success=!1,this.errorMessages=[],this.loading=!1,this.submitEvidenceMutator=new lt.U(o),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Evidence Item Form"},fieldGroup:[{key:"gene",type:"gene-array",templateOptions:{maxCount:1,required:!0}},{key:"variant",type:"variant-array",templateOptions:{required:!0,maxCount:1}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Evidence Statement",helpText:'Your original description of evidence from published literature detailing the association or lack of association between a variant and its predictive, prognostic, diagnostic, predisposing, functional or oncogenic value. Data constituting personal or identifying information should not be entered (e.g. protected health information (PHI) as defined by HIPAA in the U.S. and/or comparable laws in your jurisdiction).',placeholder:"No description provided",required:!0}},{key:"source",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",addText:"Specify a Source",maxCount:1},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{key:"evidenceLevel",type:"evidence-level-select",templateOptions:{required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array"},{key:"drugInteractionType",type:"drug-interaction-select"},{key:"phenotypes",type:"phenotype-array"},{key:"evidenceRating",type:"rating-input",templateOptions:{required:!0,label:"Rating",helpText:"Please rate your evidence on a scale of one to five stars. Use the star rating descriptions for guidance."}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!1,minLength:10}},{key:"cancel",type:"cancel-button"},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Evidence Item",submitSize:"large"}}]}]}ngOnInit(){}submitEvidence(n){let o=this.toSubmitInput(n);if(o){let a=this.submitEvidenceMutator.mutate(this.submitEvidenceGQL,{input:o},c=>{this.newId=c.submitEvidence.evidenceItem.id});a.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{c&&(this.success=!0)}),a.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),a.isSubmitting$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}toSubmitInput(n){var o,a;if(n){const c=n.fields;return{fields:{variantOrigin:c.variantOrigin,description:O.xt(c.description),variantId:c.variant[0].id,sourceId:c.source[0].id,evidenceType:c.evidenceType,evidenceDirection:c.evidenceDirection,clinicalSignificance:c.clinicalSignificance,diseaseId:O.uP(null===(o=c.disease[0])||void 0===o?void 0:o.id),evidenceLevel:c.evidenceLevel,phenotypeIds:c.phenotypes.map(Z=>Z.id),rating:+c.evidenceRating,drugIds:c.drugs.map(Z=>Z.id),drugInteractionType:O.uP(c.drugInteractionType)},comment:c.comment&&c.comment.length>0?c.comment:void 0,organizationId:null===(a=null==n?void 0:n.fields.organization)||void 0===a?void 0:a.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.WFw),e.Y36(F.Y))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-submit-form"]],decls:3,vars:0,consts:[["nzDirection","vertical"],[4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["routerLink","/sources/add"],["href","http://www.hipaa.com/hipaa-protected-health-information-what-does-phi-include/","target","_blank"],["href","https://creativecommons.org/publicdomain/zero/1.0/","target","_blank"],["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],["formMessages",""],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Evidence Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],[3,"routerLink"]],template:function(n,o){1&n&&(e.TgZ(0,"nz-space",0),e.YNc(1,dt,16,0,"nz-card",1),e.YNc(2,_t,6,4,"nz-spin",2),e.qZA())},directives:[p.NU,p.$1,C.bd,E.ZU,m.yS,J.W,d._Y,d.JL,_.Lr,d.sg,s.tP,s.O5,u.T7,g.SK,_.Nx,P.V,v.r],styles:[""]}),t})();const vt=[{path:"",component:V,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(o=>{this.evidenceId=+o.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(m.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-submit"]],decls:1,vars:0,template:function(n,o){1&n&&e._UZ(0,"cvc-evidence-submit-form")},directives:[yt],styles:[""]}),t})(),data:{breadcrumb:"Submit New Evidence"}}]}];let xt=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.Bz.forChild(vt),ct],m.Bz]}),t})();var Ct=r(5630),zt=r(9386);let St=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,xt,f.KJ,w.PV,Ct.D,zt.a,g.Jb,h.WG]]}),t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7559],{7559:(Tt,M,r)=>{r.r(M),r.d(M,{EvidenceAddModule:()=>St});var s=r(9808),m=r(325),A=r(4850),e=r(5e3),U=r(9350),N=r(8992),f=r(1945),w=r(647),g=r(1894),Y=r(8616),h=r(6949);function $(t,i){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function B(t,i){1&t&&(e.TgZ(0,"nz-row",7),e.TgZ(1,"div",8),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}let V=(()=>{class t{constructor(n){this.viewerService=n}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,A.U)(n=>n.signedIn))}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(U.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["evidence-add"]],decls:13,vars:4,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:evidence"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,o){if(1&n&&(e._UZ(0,"cvc-section-navigation",0),e.TgZ(1,"nz-page-header",1),e.TgZ(2,"nz-page-header-title",2),e._UZ(3,"i",3),e._uU(4," Add New Evidence "),e.qZA(),e.TgZ(5,"nz-page-header-subtitle"),e._uU(6," Submit and review new evidence items "),e.qZA(),e.TgZ(7,"nz-page-header-content"),e.TgZ(8,"div",4),e.YNc(9,$,2,0,"div",5),e.ALo(10,"ngrxPush"),e.YNc(11,B,3,0,"ng-template",null,6,e.W1O),e.qZA(),e.qZA(),e.qZA()),2&n){const a=e.MAs(12);e.xp6(9),e.Q6J("ngIf",e.lcZ(10,2,o.isSignedIn$))("ngIfElse",a)}},directives:[N.I,f.$O,f.u9,w.Ls,f.yG,f.u5,s.O5,m.lC,g.SK,g.t3,Y.u],pipes:[h.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})();var p=r(8144),k=r(6559),C=r(7484),D=r(1135),R=r(4623),G=r(8006),j=r(5452),X=r(3643),H=r(4375),L=r(7008),W=r(7695),K=r(8390),q=r(1825),ee=r(5457),te=r(5743),ne=r(3773),oe=r(7075),ie=r(7462),re=r(3594),Q=r(8929),z=r(591),y=r(7625),S=r(537),l=r(712),F=r(9169);let ae=(()=>{class t{constructor(n,o){this.submitEvidenceItemGQL=n,this.networkErrorService=o,this.destroy$=new Q.xQ,this.isSubmitting$=new z.X(!1),this.submitSuccess$=new z.X(!1),this.submitError$=new z.X([])}submit(n){this.isSubmitting$.next(!0),this.submitEvidenceItemGQL.mutate({input:n}).pipe((0,y.R)(this.destroy$),(0,S.x)(()=>{this.isSubmitting$.next(!1)})).subscribe({error:o=>{o.graphQLErrors.length>0?this.submitError$.next(o.graphQLErrors.map(a=>a.message)):o.networkError&&this.networkErrorService.networkError$.next(o.networkError)},complete:()=>{this.submitError$.next([]),this.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0)}})}cleanup(){this.submitError$.next([]),this.submitSuccess$.next(!1),this.isSubmitting$.next(!1),this.networkErrorService.networkError$.next(void 0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.LFG(l.WFw),e.LFG(F.Y))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac}),t})();var u=r(8776),T=r(5109),v=r(2359),b=r(6042),_=r(4546),d=r(4182),ce=r(2789),se=r(5932),le=r(3416),de=r(2480),pe=r(1830),ue=r(4581),me=r(1605),ge=r(5926),fe=r(1270),J=r(7525),he=r(6530),I=r(444),_e=r(6906);function ye(t,i){if(1&t&&(e.ynx(0),e._UZ(1,"formly-field",2),e.BQk()),2&t){const n=i.$implicit;e.xp6(1),e.Q6J("field",n)}}function ve(t,i){if(1&t&&e._UZ(0,"cvc-source-tag",3),2&t){const n=e.oxw();e.Q6J("source",n.model.source)}}let xe=(()=>{class t extends u.fS{constructor(){super(),this.defaultOptions={templateOptions:{label:"Source",entityType:"Source",entityFragment:l.iXf},defaultValue:{sourceType:l.yic.Pubmed,source:void 0},fieldGroupClassName:"select-group",fieldGroup:[{key:"sourceType",type:"select",className:"type-field",templateOptions:{required:!1,placeholder:"Select Type",options:(0,I.o6)(l.yic).map((n,o)=>({value:n,label:(0,he.c)(n)}))},hideExpression:(n,o,a)=>(console.log(n),null!=n.source)},{key:"source",type:"citation-select",className:"citation-field",templateOptions:{required:!1},hideExpression:(n,o,a)=>(console.log(n),null!=n.source)}]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-source-select"]],features:[e.qOj],decls:2,vars:2,consts:[[4,"ngFor","ngForOf"],[3,"source",4,"ngIf"],[3,"field"],[3,"source"]],template:function(n,o){1&n&&(e.YNc(0,ye,2,1,"ng-container",0),e.YNc(1,ve,1,1,"cvc-source-tag",1)),2&n&&(e.Q6J("ngForOf",o.field.fieldGroup),e.xp6(1),e.Q6J("ngIf",null!=o.model.source))},directives:[s.sg,u.cw,s.O5,_e.T],styles:["[_nghost-%COMP%]{display:block}.type-field[_ngcontent-%COMP%]{display:inline-block;width:10em}.citation-field[_ngcontent-%COMP%]{display:inline-block;margin-left:.5em;width:calc(100% - 10.5em)}.hidden[_ngcontent-%COMP%]{display:none}"]}),t})();var x=r(8054),E=r(3618),Ce=r(8481),ze=r(373),P=r(822),Se=r(2643),Te=r(2683);function be(t,i){if(1&t&&e._UZ(0,"nz-alert",6),2&t){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function Ie(t,i){if(1&t&&(e._uU(0," Found citation: "),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,", would you like to add it? ")),2&t){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function Ee(t,i){1&t&&(e.ynx(0),e.YNc(1,be,1,1,"nz-alert",4),e.YNc(2,Ie,4,1,"ng-template",null,5,e.W1O),e.BQk())}function Oe(t,i){if(1&t&&e._UZ(0,"nz-alert",9),2&t){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function Ze(t,i){if(1&t&&(e._uU(0," '"),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,"' created. ")),2&t){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function Me(t,i){1&t&&(e.ynx(0),e.YNc(1,Oe,1,1,"nz-alert",7),e.YNc(2,Ze,4,1,"ng-template",null,8,e.W1O),e.BQk())}function Ae(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.createErrors)}}function we(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(a){return e.CHM(n),e.oxw(3).onAddRemoteCitation(a)}),e._uU(1," Add\xa0'"),e.TgZ(2,"em"),e._uU(3),e.qZA(),e._uU(4,"'\xa0 to CIViC Sources "),e.qZA()}if(2&t){const n=e.oxw(3);e.Q6J("nzLoading",n.isCreating),e.xp6(3),e.Oqu(n.foundCitation)}}function Le(t,i){1&t&&(e.ynx(0),e.YNc(1,we,5,2,"button",11),e.BQk())}function Qe(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(a){return e.CHM(n),e.oxw(3).onAcceptSource(a)}),e._uU(1," Specify this Source "),e.qZA()}}function Fe(t,i){1&t&&(e.ynx(0),e.YNc(1,Qe,2,0,"button",13),e.BQk())}function Je(t,i){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,Ee,4,0,"ng-container",3),e.YNc(3,Me,4,0,"ng-container",3),e.YNc(4,Ae,2,1,"nz-form-item",3),e.YNc(5,Le,2,0,"ng-container",3),e.YNc(6,Fe,2,0,"ng-container",3),e.qZA(),e.BQk()),2&t){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",!1===n.createSuccess&&0===n.createErrors.length),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess),e.xp6(1),e.Q6J("ngIf",n.createErrors.length>0),e.xp6(1),e.Q6J("ngIf",!1===n.createSuccess),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess)}}function Pe(t,i){if(1&t&&(e.TgZ(0,"span",16),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&t){const n=e.oxw(3);e.xp6(2),e.hij(" Source not known to CIViC, fetch citation from ",n.sourceTypeKey,"? ")}}function Ue(t,i){1&t&&(e.ynx(0),e.YNc(1,Pe,3,1,"span",15),e.BQk())}function Ne(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.existenceErrors)}}function Ye(t,i){if(1&t&&e._uU(0),2&t){const n=e.oxw(4);e.AsE(" Citation not found for ",n.sourceTypeKey,": ",n.citationId,". ")}}function $e(t,i){if(1&t&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,Ye,1,2,"ng-template",null,20,e.W1O),e.qZA()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",n)}}function Be(t,i){1&t&&(e.ynx(0),e.YNc(1,$e,4,1,"span",18),e.BQk())}function Ve(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(a){return e.CHM(n),e.oxw(2).onExistenceQuery(a)}),e._uU(1," Fetch Citation for\xa0"),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("nzLoading",n.isChecking),e.xp6(3),e.AsE("",n.sourceTypeKey," ",n.citationId,"")}}function ke(t,i){if(1&t&&(e.TgZ(0,"nz-space",2),e.YNc(1,Ue,2,0,"ng-container",3),e.YNc(2,Ne,2,1,"nz-form-item",3),e.YNc(3,Be,2,0,"ng-container",3),e.YNc(4,Ve,4,3,"button",11),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showPrompt),e.xp6(1),e.Q6J("ngIf",n.existenceErrors.length>0),e.xp6(1),e.Q6J("ngIf",n.existenceFail)}}let De=(()=>{class t{constructor(n,o,a){this.existenceCheckQuery=n,this.createSourceStubQuery=o,this.changeDetectorRef=a,this.addCitation=new e.vpe,this.citationIdChange=new e.vpe,this.sourceTypeChange=new e.vpe,this.showPrompt=!0,this.isChecking=!1,this.existenceFail=!1,this.existenceErrors=[],this.foundCitation=void 0,this.isCreating=!1,this.createSuccess=!1,this.createErrors=[]}set sourceType(n){this._sourceType=n,this.sourceTypeKey=(0,I.o6)(l.yic).getKeyOrThrow(n)}get sourceType(){return this._sourceType}onExistenceQuery(n){n&&n.preventDefault(),this.isChecking=!0,this.foundCitation=void 0,this.existenceCheckQuery.fetch({sourceType:this.sourceType,citationId:+this.citationId}).pipe((0,S.x)(()=>{this.isChecking=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:{remoteCitation:o}})=>{null!==o?this.foundCitation=o:(this.showPrompt=!1,this.existenceFail=!0)},error:o=>{this.showPrompt=!1,this.existenceErrors=o.graphQLErrors.map(a=>a.message)},complete:()=>{this.existenceErrors=[]}})}onAddRemoteCitation(n){n&&n.preventDefault(),this.isCreating=!0,this.createSuccess=!1,this.createSourceStubQuery.mutate({input:{citationId:+this.citationId,sourceType:this.sourceType}}).pipe((0,S.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:o})=>{var a;console.log(o);const c=null===(a=null==o?void 0:o.addRemoteCitation)||void 0===a?void 0:a.newSource;this.sourceStub=c,this.createSuccess=!0},error:o=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=o.graphQLErrors.map(a=>a.message)},complete:()=>{this.createErrors=[]}})}onAcceptSource(n){n&&n.preventDefault(),this.addCitation.emit({id:this.sourceStub.id,entityFragment:l.SJD})}ngAfterContentInit(){console.log("model")}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.gtM),e.Y36(l.RMv),e.Y36(e.sBO))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-citation-loader"]],inputs:{model:"model",citationId:"citationId",sourceType:"sourceType"},outputs:{addCitation:"addCitation",citationIdChange:"citationIdChange",sourceTypeChange:"sourceTypeChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["fetchCitation",""],["nzDirection","vertical"],[4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["foundCitationMsg",""],["nzType","info","nzShowIcon","",3,"nzMessage"],["nzType","success","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["createdMsg",""],["nzType","success","nzShowIcon","",3,"nzMessage"],[3,"errors"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click"],["nz-typography","",4,"nzSpaceItem"],["nz-typography",""],["nz-icon","","nzType","info-circle","nzTheme","twotone"],[4,"nzSpaceItem"],["nzType","warning","nzShowIcon","",3,"nzMessage"],["existenceFail",""]],template:function(n,o){if(1&n&&(e.YNc(0,Je,7,5,"ng-container",0),e.YNc(1,ke,5,3,"ng-template",null,1,e.W1O)),2&n){const a=e.MAs(2);e.Q6J("ngIf",o.foundCitation)("ngIfElse",a)}},directives:[s.O5,p.NU,p.$1,v.r,g.SK,_.Nx,P.V,b.ix,Se.dQ,Te.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),t})();function Re(t,i){if(1&t&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&t){const n=i.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.source),e.xp6(1),e.AsE(" ",n.source.citation," (",n.source.citationId,") ")}}function Ge(t,i){if(1&t&&(e.ynx(0),e.YNc(1,Re,2,4,"nz-option",3),e.BQk()),2&t){const n=i.ngrxLet;e.xp6(1),e.Q6J("ngForOf",n)}}function je(t,i){if(1&t&&(e.TgZ(0,"div",8),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.hij(" ",n.to.prompt," ")}}function Xe(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"cvc-citation-loader",9),e.NdJ("addCitation",function(a){return e.CHM(n),e.oxw(2).onAddCitation(a)})("sourceTypeChange",function(a){return e.CHM(n),e.oxw(2).model.sourceType=a})("citationIdChange",function(a){return e.CHM(n),e.oxw(2).to.searchValue=a}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("model",n.model)("sourceType",n.model.sourceType)("citationId",n.to.searchValue)}}function He(t,i){if(1&t&&(e.ynx(0,5),e.YNc(1,je,2,1,"div",6),e.YNc(2,Xe,1,3,"cvc-citation-loader",7),e.BQk()),2&t){const n=e.oxw();e.Q6J("ngSwitch",n.to.searchLength>0&&n.to.searchLength>=n.to.minSearchLength),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}let We=(()=>{class t extends u.fS{constructor(n){super(),this.sourceTypeaheadQuery=n,this.defaultOptions={templateOptions:{placeholder:"Search Sources",onSearch:()=>{},minSearchLength:1,maxSearchLength:15,searchLength:0,searchValue:""},expressionProperties:{"templateOptions.prompt":o=>`Search for ${(0,I.o6)(l.yic).getKeyOrThrow(o.sourceType)} sources known to CIViC.`}},this.onAddCitation=o=>{const a=this.field.parent.templateOptions;a.entityType="SourceStub",a.entityFragment=o.entityFragment,this.field.formControl.setValue(o.id)}}ngOnInit(){this.queryRef=this.sourceTypeaheadQuery.watch({sourceType:this.model.sourceType,partialCitationId:9999999}),this.sources$=this.queryRef.valueChanges.pipe((0,ze.j)("data","sourceTypeahead"),(0,A.U)(n=>n.map(o=>({value:o.id,label:o.citation?o.citation:o.name,source:o}))))}ngAfterViewInit(){this.to.onSearch=n=>{this.to.searchLength=n.length,this.to.searchValue=n,!(n.lengththis.to.maxLength)&&this.queryRef.refetch({sourceType:l.yic.Pubmed,partialCitationId:+n})}}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.NbY))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-citation-select-type"]],features:[e.qOj],decls:4,vars:7,consts:[["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["notFound",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"ngSwitch"],["class","ant-form-item-explain",4,"ngSwitchCase"],[3,"model","sourceType","citationId","addCitation","sourceTypeChange","citationIdChange",4,"ngSwitchCase"],[1,"ant-form-item-explain"],[3,"model","sourceType","citationId","addCitation","sourceTypeChange","citationIdChange"]],template:function(n,o){if(1&n&&(e.TgZ(0,"nz-select",0),e.NdJ("nzOnSearch",function(c){return o.to.onSearch(c)}),e.YNc(1,Ge,2,1,"ng-container",1),e.qZA(),e.YNc(2,He,3,3,"ng-template",null,2,e.W1O)),2&n){const a=e.MAs(3);e.Q6J("formControl",o.formControl)("formlyAttributes",o.field)("nzPlaceHolder",o.to.placeholder?o.to.placeholder:null)("nzNotFoundContent",a)("nzShowArrow",!1)("nzFilterOption",o.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",o.sources$)}},directives:[x.Vq,d.JJ,d.oH,u.VQ,h.eJ,s.sg,x.Ip,s.RF,s.n9,De],styles:["[_nghost-%COMP%]{display:block}.loading-icon[_ngcontent-%COMP%]{margin-right:8px}.source-citation[_ngcontent-%COMP%]{font-style:oblique}"],changeDetection:0}),t})(),Ke=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,p.zf,v.L,_.U5,L.B,b.sL]]}),t})();const qe={types:[{name:"citation-select",component:We}]};let et=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,d.UX,h.WG,x.LV,Ke,u.X0.forChild(qe),T.s]]}),t})();var tt=r(9779);const nt={types:[{name:"source-select",component:xe,wrappers:["form-field"]}]};let ot=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,d.UX,h.WG,u.X0.forChild(nt),x.LV,p.zf,E.ZJ,Ce.X,et,tt.s]]}),t})();var it=r(5472),rt=r(4889);let at=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[ae],imports:[[s.ez,m.Bz,d.UX,T.s,_.U5,v.L,g.Jb,b.sL,J.j,u.X0,q.A,L.B,H.R,W.C,oe.l,K.N,ne.g,j.C,te.W,ee.$,G.I,ie.o,R.K,re.q,X.q,D.C,ce.o,se.A,le.g,de.r,pe.S,ue.e,me.e,ge.J,fe.i,ot,it.r,rt.E,C.vh,p.zf,E.ZJ,m.Bz,T.s]]}),t})(),ct=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,g.Jb,p.zf,C.vh,k.H0,at]]}),t})();var O=r(6738),st=r(6064),lt=r(6123);function dt(t,i){1&t&&(e.TgZ(0,"nz-card"),e.TgZ(1,"nz-typography"),e._uU(2," To add an evidence item, please complete the following form, provide a short statement supporting its inclusion into the CIViC database, then click the 'Submit Evidence for Inclusion' button. If you are having difficulty filling in all of the required fields please use the "),e.TgZ(3,"a",3),e._uU(4,"Suggest Source form"),e.qZA(),e._uU(5," to suggest a publication for curators to review. "),e._UZ(6,"br"),e._UZ(7,"br"),e.TgZ(8,"strong"),e._uU(9,"Please ensure that your submission contains no "),e.TgZ(10,"a",4),e._uU(11,"Protected Health Information"),e.qZA(),e._uU(12,", and is your own original work. By contributing to CIViC you agree to release your contributions to the public domain as described by the "),e.TgZ(13,"a",5),e._uU(14,"Creative Commons Public Domain Dedication (CC0 1.0 Universal)"),e.qZA(),e._uU(15,"."),e.qZA(),e.qZA(),e.qZA())}function pt(t,i){1&t&&e.GkF(0)}function ut(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",11),e.NdJ("modelChange",function(a){return e.CHM(n),e.oxw(2).formModel=a}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function mt(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",13),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.Q6J("errors",n.errorMessages)}}function gt(t,i){if(1&t&&(e.TgZ(0,"p"),e._uU(1,"View "),e.TgZ(2,"a",17),e._uU(3,"its details"),e.qZA(),e._uU(4,"."),e.qZA()),2&t){const n=e.oxw(4);e.xp6(2),e.MGl("routerLink","/evidence/",n.newId,"/summary")}}function ft(t,i){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",14),e.YNc(2,gt,5,1,"ng-template",15,16,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function ht(t,i){if(1&t&&(e.YNc(0,mt,2,1,"nz-form-item",12),e.YNc(1,ft,4,1,"ng-container",12)),2&t){const n=e.oxw(2);e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}function _t(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"nz-spin",6),e.TgZ(1,"form",7),e.NdJ("ngSubmit",function(){e.CHM(n);const a=e.oxw();return a.submitEvidence(a.formModel)}),e.YNc(2,pt,1,0,"ng-container",8),e.YNc(3,ut,1,4,"formly-form",9),e.qZA(),e.YNc(4,ht,2,2,"ng-template",null,10,e.W1O),e.qZA()}if(2&t){const n=e.MAs(5),o=e.oxw();e.Q6J("nzSpinning",o.loading),e.xp6(1),e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",n),e.xp6(1),e.Q6J("ngIf",!o.success)}}let yt=(()=>{class t{constructor(n,o){this.submitEvidenceGQL=n,this.networkErrorService=o,this.destroy$=new Q.xQ,this.formGroup=new d.cw({}),this.formOptions={formState:new st._},this.success=!1,this.errorMessages=[],this.loading=!1,this.submitEvidenceMutator=new lt.U(o),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Evidence Item Form"},fieldGroup:[{key:"gene",type:"gene-array",templateOptions:{maxCount:1,required:!0}},{key:"variant",type:"variant-array",templateOptions:{required:!0,maxCount:1,helpText:"The most specific description of the variant that the underlying source allows."}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Evidence Statement",helpText:'Your original description of evidence from published literature detailing the association or lack of association between a variant and its predictive, prognostic, diagnostic, predisposing, functional or oncogenic value. Data constituting personal or identifying information should not be entered (e.g. protected health information (PHI) as defined by HIPAA in the U.S. and/or comparable laws in your jurisdiction).',placeholder:"No description provided",required:!0}},{key:"source",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",addText:"Specify a Source",maxCount:1},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{key:"evidenceLevel",type:"evidence-level-select",templateOptions:{required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array"},{key:"drugInteractionType",type:"drug-interaction-select"},{key:"phenotypes",type:"phenotype-array"},{key:"evidenceRating",type:"rating-input",templateOptions:{required:!0,label:"Rating",helpText:"Please rate your evidence on a scale of one to five stars. Use the star rating descriptions for guidance."}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!1,minLength:10}},{key:"cancel",type:"cancel-button"},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Evidence Item",submitSize:"large"}}]}]}ngOnInit(){}submitEvidence(n){let o=this.toSubmitInput(n);if(o){let a=this.submitEvidenceMutator.mutate(this.submitEvidenceGQL,{input:o},c=>{this.newId=c.submitEvidence.evidenceItem.id});a.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{c&&(this.success=!0)}),a.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),a.isSubmitting$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}toSubmitInput(n){var o,a;if(n){const c=n.fields;return{fields:{variantOrigin:c.variantOrigin,description:O.xt(c.description),variantId:c.variant[0].id,sourceId:c.source[0].id,evidenceType:c.evidenceType,evidenceDirection:c.evidenceDirection,clinicalSignificance:c.clinicalSignificance,diseaseId:O.uP(null===(o=c.disease[0])||void 0===o?void 0:o.id),evidenceLevel:c.evidenceLevel,phenotypeIds:c.phenotypes.map(Z=>Z.id),rating:+c.evidenceRating,drugIds:c.drugs.map(Z=>Z.id),drugInteractionType:O.uP(c.drugInteractionType)},comment:c.comment&&c.comment.length>0?c.comment:void 0,organizationId:null===(a=null==n?void 0:n.fields.organization)||void 0===a?void 0:a.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.WFw),e.Y36(F.Y))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-submit-form"]],decls:3,vars:0,consts:[["nzDirection","vertical"],[4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["routerLink","/sources/add"],["href","http://www.hipaa.com/hipaa-protected-health-information-what-does-phi-include/","target","_blank"],["href","https://creativecommons.org/publicdomain/zero/1.0/","target","_blank"],["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],["formMessages",""],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Evidence Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],[3,"routerLink"]],template:function(n,o){1&n&&(e.TgZ(0,"nz-space",0),e.YNc(1,dt,16,0,"nz-card",1),e.YNc(2,_t,6,4,"nz-spin",2),e.qZA())},directives:[p.NU,p.$1,C.bd,E.ZU,m.yS,J.W,d._Y,d.JL,_.Lr,d.sg,s.tP,s.O5,u.T7,g.SK,_.Nx,P.V,v.r],styles:[""]}),t})();const vt=[{path:"",component:V,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(o=>{this.evidenceId=+o.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(m.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-submit"]],decls:1,vars:0,template:function(n,o){1&n&&e._UZ(0,"cvc-evidence-submit-form")},directives:[yt],styles:[""]}),t})(),data:{breadcrumb:"Submit New Evidence"}}]}];let xt=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.Bz.forChild(vt),ct],m.Bz]}),t})();var Ct=r(5630),zt=r(9386);let St=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,xt,f.KJ,w.PV,Ct.D,zt.a,g.Jb,h.WG]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/7598.72692bbf9e6a5d2a.js b/server/public/7598.72692bbf9e6a5d2a.js deleted file mode 100644 index 4b70ad81a..000000000 --- a/server/public/7598.72692bbf9e6a5d2a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7598],{8616:(x,v,n)=>{n.d(v,{u:()=>t});var a=n(5e3),g=n(685),l=n(1912),m=n(3618),f=n(647);function c(r,_){1&r&&(a.TgZ(0,"span"),a._uU(1," You must be logged in to view this page. "),a.qZA())}function y(r,_){1&r&&a._UZ(0,"cvc-login-button")}function p(r,_){1&r&&(a.TgZ(0,"nz-typography",4),a._UZ(1,"i",5),a.qZA())}let t=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275cmp=a.Xpm({type:r,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(d,u){if(1&d&&(a.TgZ(0,"nz-empty",0),a.YNc(1,c,2,0,"ng-template",null,1,a.W1O),a.YNc(3,y,1,0,"ng-template",null,2,a.W1O),a.qZA(),a.YNc(5,p,2,0,"ng-template",null,3,a.W1O)),2&d){const T=a.MAs(2),z=a.MAs(4),C=a.MAs(6);a.Q6J("nzNotFoundImage",C)("nzNotFoundContent",T)("nzNotFoundFooter",z)}},directives:[g.p9,l.s,m.ZU,f.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),r})()},9386:(x,v,n)=>{n.d(v,{a:()=>y});var a=n(9808),g=n(1844),l=n(685),m=n(647),f=n(3618),c=n(5e3);let y=(()=>{class p{}return p.\u0275fac=function(r){return new(r||p)},p.\u0275mod=c.oAB({type:p}),p.\u0275inj=c.cJS({imports:[[a.ez,g.B,l.Xo,m.PV,f.ZJ]]}),p})()},8926:(x,v,n)=>{n.d(v,{A:()=>l});var a=n(5e3),g=n(2313);let l=(()=>{class m{constructor(c){this.sanitizer=c}transform(c,y){if(!y||""==y)return c;const p=new RegExp(y,"gi"),t=c.match(p);if(!t)return c;let r=c.replace(p,`${t[0]}`);return this.sanitizer.bypassSecurityTrustHtml(r)}}return m.\u0275fac=function(c){return new(c||m)(a.Y36(g.H7,16))},m.\u0275pipe=a.Yjl({name:"highlightTypeahead",type:m,pure:!0}),m})()},3077:(x,v,n)=>{function a(g){return void 0!==g}n.d(v,{$:()=>a})},7462:(x,v,n)=>{n.d(v,{o:()=>p});var a=n(9808),g=n(8776),l=n(5e3),m=n(1047),f=n(4182);const y={name:"cvc-textarea",component:(()=>{class t extends g.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return t.\u0275fac=function(){let r;return function(d){return(r||(r=l.n5z(t)))(d||t)}}(),t.\u0275cmp=l.Xpm({type:t,selectors:[["cvc-textarea-base-type"]],features:[l.qOj],decls:1,vars:3,consts:[["nz-input","",3,"nzAutosize","formControl","formlyAttributes"]],template:function(_,d){1&_&&l._UZ(0,"textarea",0),2&_&&l.Q6J("nzAutosize",d.to.autosize)("formControl",d.formControl)("formlyAttributes",d.field)},directives:[m.Zp,m.rh,f.Fj,f.JJ,f.oH,g.VQ],styles:[""],changeDetection:0}),t})(),wrappers:["form-field"]};let p=(()=>{class t{}return t.\u0275fac=function(_){return new(_||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[a.ez,f.u5,f.UX,g.X0.forChild({types:[y]}),m.o7]]}),t})()},4181:(x,v,n)=>{n.d(v,{O:()=>H});var a=n(9808),g=n(6123),l=n(8776),m=n(8929),f=n(591),c=n(373),y=n(4850),p=n(7625),t=n(5e3),r=n(712),_=n(9169),d=n(8054),u=n(4182),T=n(8664),z=n(822),C=n(6042),L=n(2643),S=n(2683),E=n(647),V=n(6949),F=n(8926);function B(e,h){if(1&e&&(t.TgZ(0,"nz-option",6),t._UZ(1,"span",7),t.ALo(2,"highlightTypeahead"),t.qZA()),2&e){const o=h.$implicit,s=t.oxw(2);t.Q6J("nzValue",o.variant),t.xp6(1),t.Q6J("innerHtml",t.xi3(2,2,o.label,s.to.searchString),t.oJD)}}function D(e,h){1&e&&t._uU(0," No variant found in CIViC that matches the string provided. ")}function U(e,h){if(1&e){const o=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",3),t.NdJ("nzOnSearch",function(i){return t.CHM(o),t.oxw().to.onSearch(i)}),t.YNc(2,B,3,5,"nz-option",4),t.ALo(3,"ngrxPush"),t.qZA(),t.YNc(4,D,1,0,"ng-template",null,5,t.W1O),t.BQk()}if(2&e){const o=t.MAs(5),s=t.oxw(),i=t.MAs(4);t.xp6(1),t.Q6J("formControl",s.formControl)("formlyAttributes",s.field)("nzPlaceHolder",s.to.placeholder?s.to.placeholder:null)("nzDropdownRender",s.to.allowCreate?i:null)("nzNotFoundContent",o)("nzShowArrow",s.to.showArrow),t.xp6(1),t.Q6J("ngForOf",t.lcZ(3,7,s.variants$))}}function Z(e,h){if(1&e&&t._UZ(0,"cvc-variant-tag",8),2&e){const o=t.oxw();t.Q6J("variant",o.formControl.value)}}function W(e,h){if(1&e&&t._UZ(0,"cvc-form-errors-alert",12),2&e){const o=t.oxw(4);t.Q6J("errors",o.errorMessages)}}function J(e,h){if(1&e){const o=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(o);const i=t.oxw(4);return i.addVariant(i.to.searchString)}),t._UZ(1,"i",14),t._uU(2,"No Existing CIViC Variant\xa0"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5,"\xa0found. Create A New Variant? "),t.qZA()}if(2&e){const o=t.oxw(4);t.Q6J("nzLoading",o.loading),t.xp6(4),t.Oqu(o.to.searchString)}}function Q(e,h){if(1&e&&(t.ynx(0),t.YNc(1,W,1,1,"cvc-form-errors-alert",10),t.YNc(2,J,6,2,"button",11),t.BQk()),2&e){const o=t.oxw(3);t.xp6(1),t.Q6J("ngIf",o.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",0==o.errorMessages.length)}}function R(e,h){if(1&e&&(t.ynx(0),t.YNc(1,Q,3,2,"ng-container",9),t.BQk()),2&e){const o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",""!==o.to.searchString)}}function N(e,h){if(1&e&&(t.YNc(0,R,2,1,"ng-container",9),t.ALo(1,"ngrxPush")),2&e){const o=t.oxw();t.Q6J("ngIf",t.lcZ(1,1,o.displayAdd$))}}const Y={name:"variant-input",component:(()=>{class e extends l.fS{constructor(o,s,i){super(),this.variantTypeaheadQuery=o,this.networkErrorService=s,this.addVariantGQL=i,this.destroy$=new m.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new f.X(!1),this.addVariantMutator=new g.U(s),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(I,w,A)=>{var O,P;let M=null===(P=null===(O=null==A?void 0:A.parent)||void 0===O?void 0:O.parent)||void 0===P?void 0:P.model;if(M&&M.gene&&M.gene[0])return M.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,c.j)("data","variants","nodes"),(0,y.U)(o=>o.map(i=>({value:i.id,label:i.name,variant:i}))))}ngAfterViewInit(){this.to.onSearch=o=>{o.length{this.displayAdd$.next(0==s.data.variants.nodes.filter(i=>i.name.toUpperCase()==o.toUpperCase()).length)}))}}addVariant(o){if(o&&""!=o&&this.to.geneId){let s=this.addVariantMutator.mutate(this.addVariantGQL,{name:o,geneId:this.to.geneId},i=>{var I;null===(I=this.field.formControl)||void 0===I||I.setValue({id:i.addVariant.variant.id,name:i.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});s.submitSuccess$.pipe((0,p.R)(this.destroy$)).subscribe(i=>{i&&(this.success=!0)}),s.submitError$.pipe((0,p.R)(this.destroy$)).subscribe(i=>{i&&(this.errorMessages=i,this.success=!1)}),s.isSubmitting$.pipe((0,p.R)(this.destroy$)).subscribe(i=>{this.loading=i})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(r._eC),t.Y36(_.Y),t.Y36(r.LUc))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-input-type"]],features:[t.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(o,s){if(1&o&&(t.YNc(0,U,6,9,"ng-container",0),t.YNc(1,Z,1,1,"ng-template",null,1,t.W1O),t.YNc(3,N,2,3,"ng-template",null,2,t.W1O)),2&o){const i=t.MAs(2);t.Q6J("ngIf",!(null!=s.formControl.value&&s.formControl.value.id))("ngIfElse",i)}},directives:[a.O5,d.Vq,u.JJ,u.oH,l.VQ,a.sg,d.Ip,T.I,z.V,C.ix,L.dQ,S.w,E.Ls],pipes:[V.fM,F.A],styles:[""],changeDetection:0}),e})()};var $=n(4867),K=n(7008),j=n(9444);let H=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[a.ez,u.UX,V.WG,l.X0.forChild({types:[Y]}),d.LV,C.sL,E.PV,$.Q,K.B,j.s]]}),e})()},5472:(x,v,n)=>{n.d(v,{r:()=>d});var a=n(9808),g=n(6949),l=n(8776),m=n(7484),f=n(5482),c=n(1894),y=n(5109),p=n(6789),t=n(5e3);const _={wrappers:[{name:"form-container",component:(()=>{class u extends l.n2{}return u.\u0275fac=function(){let T;return function(C){return(T||(T=t.n5z(u)))(C||u)}}(),u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-form-container-wrapper"]],features:[t.qOj],decls:5,vars:1,consts:[["nzSpan","24"],["nzSize","default",3,"nzTitle"],["fieldComponent",""]],template:function(z,C){1&z&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",0),t.TgZ(2,"nz-card",1),t.GkF(3,null,2),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(2),t.Q6J("nzTitle",C.to.label))},directives:[c.SK,c.t3,m.bd],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),u})()}]};let d=(()=>{class u{}return u.\u0275fac=function(z){return new(z||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[a.ez,g.WG,l.X0.forChild(_),c.Jb,m.vh,f.cD,p._,y.s]]}),u})()}}]); \ No newline at end of file diff --git a/server/public/7893.09cc89d441456629.js b/server/public/7893.09cc89d441456629.js new file mode 100644 index 000000000..12f92fa79 --- /dev/null +++ b/server/public/7893.09cc89d441456629.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7893],{7695:(D,M,o)=>{o.d(M,{C:()=>a});var m=o(9808),f=o(6949),x=o(8776),u=o(7484),y=o(5482),v=o(1894),N=o(5109),I=o(6789),e=o(5e3),_=o(19),O=o(647),A=o(404);function C(i,p){1&i&&e._UZ(0,"div",9),2&i&&e.Q6J("innerHtml",p.ngIf,e.oJD)}function b(i,p){1&i&&(e.TgZ(0,"div",10),e._uU(1,"Help not available for this field."),e.qZA())}function S(i,p){if(1&i&&(e.TgZ(0,"nz-collapse-panel",6),e.YNc(1,C,1,1,"div",7),e.YNc(2,b,2,0,"ng-template",null,8,e.W1O),e.qZA()),2&i){const g=p.ngIf,z=e.MAs(3),T=e.oxw().$implicit,Z=e.MAs(3);e.Q6J("nzHeader",g)("nzActive",T.templateOptions.hasFocus)("nzExtra",Z),e.xp6(1),e.Q6J("ngIf",null==T.templateOptions?null:T.templateOptions.helpText)("ngIfElse",z)}}function k(i,p){if(1&i&&e._UZ(0,"formly-validation-message",14),2&i){const g=e.oxw(4).$implicit;e.Q6J("field",g)}}function E(i,p){if(1&i&&(e.ynx(0),e._UZ(1,"i",12),e.YNc(2,k,1,1,"ng-template",null,13,e.W1O),e.BQk()),2&i){const g=e.MAs(3);e.xp6(1),e.Q6J("nzTooltipTitle",g)}}function F(i,p){if(1&i&&(e.ynx(0),e.YNc(1,E,4,1,"ng-container",11),e.BQk()),2&i){const g=p.ngIf;e.xp6(1),e.Q6J("ngIf","INVALID"===g)}}function G(i,p){if(1&i&&(e.YNc(0,F,2,1,"ng-container",11),e.ALo(1,"ngrxPush")),2&i){const g=e.oxw().$implicit;e.Q6J("ngIf",e.lcZ(1,1,g.formControl.statusChanges))}}function R(i,p){if(1&i&&(e.ynx(0),e.YNc(1,S,4,5,"nz-collapse-panel",4),e.YNc(2,G,2,3,"ng-template",null,5,e.W1O),e.BQk()),2&i){const g=p.$implicit;e.xp6(1),e.Q6J("ngIf",null==g.templateOptions?null:g.templateOptions.label)}}let P=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(g){return new(g||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-form-info-card"]],inputs:{fieldGroup:"fieldGroup",affixTo:"affixTo"},decls:4,vars:4,consts:[[3,"nzOffsetTop","nzTarget"],["nzTitle","Form Assistant","nzSize","default",1,"form-helper-card"],[3,"nzBordered"],[4,"ngFor","ngForOf"],[3,"nzHeader","nzActive","nzExtra",4,"ngIf"],["fieldStatus",""],[3,"nzHeader","nzActive","nzExtra"],["class","help-text",3,"innerHtml",4,"ngIf","ngIfElse"],["noHelpText",""],[1,"help-text",3,"innerHtml"],[1,"help-text"],[4,"ngIf"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","#f5222d","nz-tooltip","","nzTooltipColor","red",3,"nzTooltipTitle"],["errorTooltip",""],[3,"field"]],template:function(g,z){1&g&&(e.TgZ(0,"nz-affix",0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-collapse",2),e.YNc(3,R,4,1,"ng-container",3),e.qZA(),e.qZA(),e.qZA()),2&g&&(e.Q6J("nzOffsetTop",0)("nzTarget",z.affixTo),e.xp6(2),e.Q6J("nzBordered",!1),e.xp6(1),e.Q6J("ngForOf",z.fieldGroup))},directives:[_.$,u.bd,y.yH,m.sg,m.O5,y.Zv,O.Ls,A.SY,x.u_],pipes:[f.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}.help-text[_ngcontent-%COMP%]{padding:6px 8px;border:1px solid #EFEFEF;background:white;border-radius:6px}"]}),i})();const s={name:"form-info",component:(()=>{class i extends x.n2{}return i.\u0275fac=function(){let p;return function(z){return(p||(p=e.n5z(i)))(z||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-form-info-wrapper"]],features:[e.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(g,z){if(1&g&&(e.TgZ(0,"nz-row",0),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",2),e.GkF(3,null,3),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",null,4),e._UZ(8,"cvc-form-info-card",5),e.qZA(),e.qZA(),e.qZA()),2&g){const T=e.MAs(7);e.xp6(1),e.Q6J("nzSpan",16),e.xp6(1),e.Q6J("nzTitle",z.to.label),e.xp6(3),e.Q6J("nzSpan",8),e.xp6(3),e.Q6J("fieldGroup",z.field.fieldGroup)("affixTo",T)}},directives:[v.SK,v.t3,u.bd,P],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),i})()};let a=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[m.ez,f.WG,x.X0.forChild({wrappers:[s]}),v.Jb,u.vh,y.cD,I._,N.s]]}),i})()},3887:(D,M,o)=>{o.r(M),o.d(M,{GenesReviseModule:()=>Se});var m=o(9808),f=o(325),x=o(5630),u=o(1945),y=o(647),v=o(373),N=o(1059),I=o(4850),e=o(5e3),_=o(712),O=o(9350),A=o(8992),C=o(1894),b=o(8616),S=o(6949);function k(t,c){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function E(t,c){1&t&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function F(t,c){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,k,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,E,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const n=c.ngIf,l=e.MAs(14),d=e.oxw();e.xp6(1),e.Q6J("displayName",n.name),e.xp6(5),e.hij(" ",n.name," "),e.xp6(2),e.hij(" ",n.officialName," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,d.isSignedIn$))("ngIfElse",l)}}let G=(()=>{class t{constructor(n,l,d){this.gql=n,this.route=l,this.viewerService=d,this.routeSub=this.route.params.subscribe(h=>{let Q=this.gql.watch({geneId:+h.geneId}).valueChanges;this.loading$=Q.pipe((0,v.j)("loading"),(0,N.O)(!0)),this.gene$=Q.pipe((0,v.j)("data","gene")),this.commentsTotal$=this.gene$.pipe((0,v.j)("comments","totalCount")),this.flagsTotal$=this.gene$.pipe((0,v.j)("flags","totalCount")),this.revisionsTotal$=this.gene$.pipe((0,v.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,I.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(_.TNk),e.Y36(f.gz),e.Y36(O.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["genes-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:gene"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,l){1&n&&(e.YNc(0,F,15,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,l.gene$))},directives:[m.O5,A.I,u.$O,u.u9,y.Ls,u.yG,u.u5,f.lC,C.SK,C.t3,b.u],pipes:[m.Ov,S.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})();var R=o(8144),P=o(6559),r=o(4182),s=o(4546),a=o(2359),i=o(8776),p=o(1825),g=o(7008),z=o(4375),T=o(6042),Z=o(8390),U=o(3773),J=o(5109),j=o(4623),Y=o(7462),$=o(4889),L=o(7525),W=o(5472),V=o(7338),B=o(7484),H=o(5482),K=o(6462),X=o(9990),q=o(7075),ee=o(9911),te=o(6501),ne=o(7695);let oe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.ez,f.Bz,S.WG,r.UX,i.X0,J.s,T.sL,B.vh,H.cD,s.U5,a.L,C.Jb,y.PV,K.m,L.j,q.l,p.A,W.r,g.B,z.R,ee.G,j.K,Z.N,U.g,te.r,X.M,Y.o,$.E,V.z,J.s,ne.C]]}),t})(),ie=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.ez,S.WG,B.vh,C.Jb,R.zf,P.H0,u.KJ,oe,x.D]]}),t})();var ae=o(8929),w=o(7625),re=o(6738),se=o(6123),le=o(9169),ce=o(822);function pe(t,c){1&t&&e.GkF(0)}function ge(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(d){return e.CHM(n),e.oxw(2).formModel=d}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function de(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(n);const d=e.oxw();return d.submitRevision(d.formModel)}),e.YNc(1,pe,1,0,"ng-container",4),e.YNc(2,ge,1,4,"formly-form",5),e.qZA()}if(2&t){const n=e.oxw(),l=e.MAs(3);e.Q6J("formGroup",n.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",l),e.xp6(1),e.Q6J("ngIf",!n.success)}}function me(t,c){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&t){const n=e.oxw(2);e.xp6(2),e.Q6J("errors",n.errorMessages)}}function fe(t,c){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function he(t,c){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,fe,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function ue(t,c){if(1&t&&(e.YNc(0,me,3,1,"ng-container",7),e.YNc(1,he,4,1,"ng-container",7)),2&t){const n=e.oxw();e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}let ze=(()=>{class t{constructor(n,l,d){this.suggestRevisionGQL=n,this.networkErrorService=l,this.revisableFieldsGQL=d,this.destroy$=new ae.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.formGroup=new r.cw({}),this.formOptions={},this.suggestRevisionMutator=new se.U(l),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Gene Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"description",type:"cvc-textarea",templateOptions:{label:"Gene Description",helpText:'User-defined summary of the clinical relevance of this Gene. By submitting content to CIViC you agree to release it to the public domain as described by the Creative Commons Public Domain Dedication (CC0 1.0 Universal)

Should include:

  • relevance to appropriate cancer(s)
  • treatment(s) related specifically to variants affecting this Gene

May include relevant mechanistic information such as:

  • pathway interactions
  • functional alterations caused by variants in this Gene (i.e., activating, loss-of-function, etc.)
  • normal functions key to its oncogenic properties.
  • ',placeholder:"Enter a description for this gene.",required:!1}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Gene Description Sources",addText:"Add a Source",helpText:"Add any Sources used as references for this Gene's Description above."},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Gene Revision",submitSize:"large"}}]}]}ngOnInit(){console.log(this.geneId)}ngAfterViewInit(){this.revisableFieldsGQL.fetch({geneId:this.geneId},{fetchPolicy:"network-only"}).subscribe(({data:{gene:n}})=>{console.log("gene"),n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving gene."),console.error(n)},()=>{console.log("complete"),this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var l,d;return{fields:Object.assign(Object.assign({},n),{comment:null===(l=this.formModel)||void 0===l?void 0:l.fields.comment,organization:null===(d=this.formModel)||void 0===d?void 0:d.fields.organization})}}submitRevision(n){let l=this.toRevisionInput(n);if(l){let d=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:l});d.submitSuccess$.pipe((0,w.R)(this.destroy$)).subscribe(h=>{h&&(this.success=!0)}),d.submitError$.pipe((0,w.R)(this.destroy$)).subscribe(h=>{h&&(this.errorMessages=h,this.success=!1)}),d.isSubmitting$.pipe((0,w.R)(this.destroy$)).subscribe(h=>{this.loading=h})}}toRevisionInput(n){var l;if(n){const d=n.fields;return{id:d.id,comment:d.comment,organizationId:null===(l=d.organization)||void 0===l?void 0:l.id,fields:{description:(0,re.xt)(n.fields.description),sourceIds:n.fields.sources.map(h=>+h.id)}}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(_.D9L),e.Y36(le.Y),e.Y36(_.FOU))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-gene-revise-form"]],inputs:{geneId:"geneId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,l){1&n&&(e.TgZ(0,"nz-spin",0),e.YNc(1,de,3,3,"form",1),e.qZA(),e.YNc(2,ue,2,2,"ng-template",null,2,e.W1O)),2&n&&(e.Q6J("nzSpinning",l.loading),e.xp6(1),e.Q6J("ngIf",l.formModel))},directives:[L.W,m.O5,r._Y,r.JL,s.Lr,r.sg,m.tP,i.T7,C.SK,s.Nx,ce.V,a.r,f.yS],styles:["[_nghost-%COMP%]{display:block}"]}),t})();function ve(t,c){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-gene-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("geneId",n.geneId)}}function Ce(t,c){1&t&&e._uU(0,"Loading Gene...")}const xe=[{path:"",component:G,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(l=>{this.geneId=+l.geneId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-genes-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingGene",""],[3,"geneId"]],template:function(n,l){if(1&n&&(e.YNc(0,ve,2,1,"ng-container",0),e.YNc(1,Ce,1,0,"ng-template",null,1,e.W1O)),2&n){const d=e.MAs(2);e.Q6J("ngIf",l.geneId)("ngIfElse",d)}},directives:[m.O5,ze],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let ye=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[f.Bz.forChild(xe),ie]]}),t})();var _e=o(9386);let Se=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.ez,ye,f.Bz,x.D,u.KJ,y.PV,S.WG,C.Jb,_e.a]]}),t})()},6559:(D,M,o)=>{o.d(M,{H0:()=>P});var m=o(5e3),f=o(9808),x=o(226);let P=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=m.oAB({type:r}),r.\u0275inj=m.cJS({imports:[[x.vT,f.ez]]}),r})()}}]); \ No newline at end of file diff --git a/server/public/79.45fe3ea68943616b.js b/server/public/79.88f59fde8cf78eea.js similarity index 95% rename from server/public/79.45fe3ea68943616b.js rename to server/public/79.88f59fde8cf78eea.js index 745b6ff94..e6cbb7a8a 100644 --- a/server/public/79.45fe3ea68943616b.js +++ b/server/public/79.88f59fde8cf78eea.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[79],{8369:(S,y,t)=>{t.d(y,{W:()=>D});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(7484),h=t(3098),A=t(3309),C=t(4867),v=t(6286),T=t(8018),P=t(6949),d=t(9444),u=t(1894),I=t(8144),Z=t(3580),J=t(8625),U=t(7026),B=t(592),G=t(5e3);let F=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,P.WG,f.vh,h.q6,M.PV,u.Jb,I.zf,n.X,A.U,Z.Q,C.Q,v.y,T.e,d.s,B.x,J.$L.forChild({formatter:{useClass:U.x,provide:J.KP}})]]}),m})(),D=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,F,d.s]]}),m})()},209:(S,y,t)=>{t.d(y,{i:()=>D});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(7484),h=t(3309),A=t(4867),C=t(1894),v=t(3098),T=t(8018),P=t(3580),d=t(6286),u=t(6949),I=t(8144),Z=t(9444),J=t(9779),U=t(592),B=t(3618),G=t(5e3);let F=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,u.WG,M.PV,f.vh,C.Jb,v.q6,n.X,I.zf,B.ZJ,Z.s,T.e,P.Q,h.U,A.Q,d.y,J.s,U.x]]}),m})(),D=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,F,Z.s]]}),m})()},6286:(S,y,t)=>{t.d(y,{y:()=>P});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(6949),h=t(7484),A=t(3630),C=t(3098),v=t(5e3);let T=(()=>{class d{}return d.\u0275fac=function(I){return new(I||d)},d.\u0275mod=v.oAB({type:d}),d.\u0275inj=v.cJS({imports:[[a.ez,f.WG,M.PV,h.vh,A.X,C.q6]]}),d})(),P=(()=>{class d{}return d.\u0275fac=function(I){return new(I||d)},d.\u0275mod=v.oAB({type:d}),d.\u0275inj=v.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,T]]}),d})()},2166:(S,y,t)=>{t.d(y,{p:()=>A});var a=t(5e3),o=t(1047),n=t(4182),_=t(9808),M=t(647);function f(C,v){if(1&C){const T=a.EpF();a.TgZ(0,"i",4),a.NdJ("click",function(){a.CHM(T);const d=a.oxw(2);return d.inputModel=void 0,d.onModelUpdated()}),a.qZA()}}function h(C,v){if(1&C&&a.YNc(0,f,1,0,"i",3),2&C){const T=a.oxw();a.Q6J("ngIf",T.inputModel)}}let A=(()=>{class C{constructor(){this.inputModelChange=new a.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return C.\u0275fac=function(T){return new(T||C)},C.\u0275cmp=a.Xpm({type:C,selectors:[["cvc-clearable-input-filter"]],inputs:{placeholderText:"placeholderText",onInputChanged:"onInputChanged",inputModel:"inputModel"},outputs:{inputModelChange:"inputModelChange"},decls:4,vars:3,consts:[[3,"nzSuffix"],["type","text","nz-input","",3,"placeholder","ngModel","ngModelChange"],["clearTmpl",""],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"]],template:function(T,P){if(1&T&&(a.TgZ(0,"nz-input-group",0),a.TgZ(1,"input",1),a.NdJ("ngModelChange",function(u){return P.inputModel=u})("ngModelChange",function(){return P.onModelUpdated()}),a.qZA(),a.qZA(),a.YNc(2,h,1,1,"ng-template",null,2,a.W1O)),2&T){const d=a.MAs(3);a.Q6J("nzSuffix",d),a.xp6(1),a.Q6J("placeholder",P.placeholderText?P.placeholderText:"")("ngModel",P.inputModel)}},directives:[o.gB,o.ke,o.Zp,n.Fj,n.JJ,n.On,_.O5,M.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),C})()},4125:(S,y,t)=>{t.d(y,{k:()=>f});var a=t(9808),o=t(1047),n=t(4182),_=t(647),M=t(5e3);let f=(()=>{class h{}return h.\u0275fac=function(C){return new(C||h)},h.\u0275mod=M.oAB({type:h}),h.\u0275inj=M.cJS({imports:[[a.ez,n.u5,o.o7,_.PV]]}),h})()},592:(S,y,t)=>{t.d(y,{x:()=>M});var a=t(9808),o=t(8481),n=t(647),_=t(5e3);let M=(()=>{class f{}return f.\u0275fac=function(A){return new(A||f)},f.\u0275mod=_.oAB({type:f}),f.\u0275inj=_.cJS({imports:[[a.ez,o.X,n.PV]]}),f})()},7946:(S,y,t)=>{t.d(y,{x:()=>C});var a=t(9808),o=t(897),n=t(8481),_=t(3610),M=t(8018),f=t(3580),h=t(9476),A=t(5e3);let C=(()=>{class v{}return v.\u0275fac=function(P){return new(P||v)},v.\u0275mod=A.oAB({type:v}),v.\u0275inj=A.cJS({imports:[[a.ez,n.X,_.$6,o.$,M.e,f.Q,h.L]]}),v})()},112:(S,y,t)=>{t.d(y,{u:()=>b});var a=t(5e3),o=t(9808),n=t(325),_=t(8481),M=t(3610),f=t(4850),h=t(712),A=t(7484),C=t(3098),v=t(8664),T=t(6906),P=t(6949);function d(l,x){if(1&l&&(a._UZ(0,"i",7),a._uU(1)),2&l){const p=a.oxw().ngIf;a.xp6(1),a.hij(" ",p.name," ")}}function u(l,x){if(1&l&&(a.TgZ(0,"span"),a._UZ(1,"cvc-variant-tag",10),a.qZA()),2&l){const p=x.$implicit;a.xp6(1),a.Q6J("variant",p.node)}}function I(l,x){if(1&l&&(a.TgZ(0,"nz-descriptions-item",8),a.YNc(1,u,2,1,"span",9),a.qZA()),2&l){const p=a.oxw().ngIf;a.xp6(1),a.Q6J("ngForOf",p.variants.edges)}}function Z(l,x){if(1&l&&(a.TgZ(0,"span"),a._UZ(1,"cvc-source-tag",12),a.qZA()),2&l){const p=x.$implicit;a.xp6(1),a.Q6J("source",p)}}function J(l,x){if(1&l&&(a.TgZ(0,"nz-descriptions-item",11),a.YNc(1,Z,2,1,"span",9),a.qZA()),2&l){const p=a.oxw().ngIf;a.xp6(1),a.Q6J("ngForOf",p.sources)}}function U(l,x){if(1&l&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,d,2,1,"ng-template",null,3,a.W1O),a._uU(4),a.TgZ(5,"nz-descriptions",4),a.YNc(6,I,2,1,"nz-descriptions-item",5),a.YNc(7,J,2,1,"nz-descriptions-item",6),a.qZA(),a.qZA(),a.BQk()),2&l){const p=x.ngIf,E=a.MAs(3);a.xp6(1),a.Q6J("nzTitle",E),a.xp6(3),a.hij(" ",p.description," "),a.xp6(1),a.Q6J("nzColumn",2),a.xp6(1),a.Q6J("ngIf",p.variants.edges.length>0),a.xp6(1),a.Q6J("ngIf",p.sources.length>0)}}let B=(()=>{class l{constructor(p){this.gql=p}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,f.U)(({data:p})=>p.variantGroup))}}return l.\u0275fac=function(p){return new(p||l)(a.Y36(h.Zo2))},l.\u0275cmp=a.Xpm({type:l,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzType","civic:variant-group"],["nzTitle","Variants","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"variant"],["nzTitle","Sources","nzSpan","2"],[3,"source"]],template:function(p,E){1&p&&(a.TgZ(0,"div",0),a.YNc(1,U,8,5,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&p&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,E.variantGroup$)))},directives:[o.O5,A.bd,C.R7,C.uj,o.sg,v.I,T.T],pipes:[P.fM],styles:["[_nghost-%COMP%]{display:block}"]}),l})();var G=t(647);function F(l,x){}function D(l,x){if(1&l&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,F,0,0,"ng-template",6),a.qZA(),a.BQk()),2&l){const p=a.oxw(),E=a.MAs(2);a.xp6(1),a.Q6J("routerLink",p.variantgroup.link),a.xp6(1),a.Q6J("ngTemplateOutlet",E)}}function m(l,x){}function V(l,x){if(1&l&&(a.TgZ(0,"nz-tag",9),a.YNc(1,m,0,0,"ng-template",6),a.qZA()),2&l){a.oxw();const p=a.MAs(2);a.oxw();const E=a.MAs(8);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p),a.xp6(1),a.Q6J("ngTemplateOutlet",E)}}function Q(l,x){if(1&l&&a._UZ(0,"cvc-variant-group-popover",11),2&l){const p=a.oxw(3);a.Q6J("variantGroupId",p.variantgroup.id)}}function W(l,x){if(1&l&&a.YNc(0,Q,1,1,"cvc-variant-group-popover",10),2&l){const p=a.oxw(2);a.Q6J("ngIf",p.enablePopover)}}function j(l,x){if(1&l&&(a.YNc(0,V,2,3,"nz-tag",7),a.YNc(1,W,1,1,"ng-template",null,8,a.W1O)),2&l){const p=a.oxw(),E=a.MAs(4);a.Q6J("ngIf",p.enablePopover)("ngIfElse",E)}}function R(l,x){}function $(l,x){if(1&l&&(a.TgZ(0,"nz-tag"),a.YNc(1,R,0,0,"ng-template",6),a.qZA()),2&l){a.oxw();const p=a.MAs(8);a.xp6(1),a.Q6J("ngTemplateOutlet",p)}}function K(l,x){}function H(l,x){if(1&l&&a.YNc(0,K,0,0,"ng-template",6),2&l){a.oxw();const p=a.MAs(2);a.Q6J("ngTemplateOutlet",p)}}function X(l,x){if(1&l&&(a._UZ(0,"i",12),a._uU(1)),2&l){const p=a.oxw();a.xp6(1),a.hij(" ",p.variantgroup.name,"\n")}}let b=(()=>{class l{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.variantgroup)throw new Error("Must pass a LinkableVariantgroup into the variantgroup tag component")}}return l.\u0275fac=function(p){return new(p||l)},l.\u0275cmp=a.Xpm({type:l,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(p,E){if(1&p&&(a.YNc(0,D,3,2,"ng-container",0),a.YNc(1,j,3,2,"ng-template",null,1,a.W1O),a.YNc(3,$,2,1,"ng-template",null,2,a.W1O),a.YNc(5,H,1,1,"ng-template",null,3,a.W1O),a.YNc(7,X,2,1,"ng-template",null,4,a.W1O)),2&p){const w=a.MAs(6);a.Q6J("ngIf",E.linked)("ngIfElse",w)}},directives:[o.O5,n.yS,o.tP,_.j,M.lU,B,G.Ls],styles:[""]}),l})()},7677:(S,y,t)=>{t.d(y,{G:()=>d});var a=t(9808),o=t(325),n=t(3610),_=t(8481),M=t(647),f=t(9779),h=t(4867),A=t(7484),C=t(3098),v=t(6949),T=t(5e3);let P=(()=>{class u{}return u.\u0275fac=function(Z){return new(Z||u)},u.\u0275mod=T.oAB({type:u}),u.\u0275inj=T.cJS({imports:[[a.ez,v.WG,A.vh,C.q6,f.s,h.Q]]}),u})(),d=(()=>{class u{}return u.\u0275fac=function(Z){return new(Z||u)},u.\u0275mod=T.oAB({type:u}),u.\u0275inj=T.cJS({imports:[[a.ez,o.Bz,n.$6,_.X,M.PV,P]]}),u})()},8664:(S,y,t)=>{t.d(y,{I:()=>k});var a=t(6654),o=t(5e3),n=t(9808),_=t(325),M=t(8481),f=t(3610),h=t(4850),A=t(712),C=t(7484),v=t(647),T=t(3193),P=t(3098),d=t(6550),u=t(1894),I=t(8144),Z=t(6949);function J(i,z){if(1&i&&(o._UZ(0,"i",13),o._uU(1)),2&i){const c=o.oxw().ngIf;o.xp6(1),o.hij(" ",c.name," ")}}function U(i,z){if(1&i&&o._UZ(0,"cvc-gene-tag",14),2&i){const c=o.oxw().ngIf;o.Q6J("enablePopover",!1)("gene",c.gene)}}function B(i,z){1&i&&(o.TgZ(0,"span"),o._uU(1,",\xa0"),o.qZA())}function G(i,z){if(1&i&&(o.TgZ(0,"span"),o._uU(1),o.YNc(2,B,2,0,"span",1),o.qZA()),2&i){const c=z.$implicit,O=z.last;o.xp6(1),o.hij(" ",c,""),o.xp6(1),o.Q6J("ngIf",!O)}}function F(i,z){if(1&i&&(o.TgZ(0,"nz-descriptions-item",15),o.YNc(1,G,3,2,"span",16),o.qZA()),2&i){const c=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",c.variantAliases)}}function D(i,z){if(1&i&&(o.TgZ(0,"nz-descriptions-item",17),o.TgZ(1,"cvc-link-tag",18),o._uU(2),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.xp6(1),o.MGl("href","https://reg.genome.network/allele/",c.alleleRegistryId,".html"),o.xp6(1),o.hij(" ",c.alleleRegistryId," ")}}function m(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",20),o._UZ(2,"i",21),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/flags"),o.xp6(3),o.hij(" Flags (",c.flags.totalCount,") ")}}function V(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",22),o._UZ(2,"i",23),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/revisions"),o.xp6(3),o.hij(" Revisions (",c.revisions.totalCount,") ")}}function Q(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",24),o._UZ(2,"i",25),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/comments"),o.xp6(3),o.hij(" Comments (",c.comments.totalCount,") ")}}function W(i,z){if(1&i&&(o.ynx(0),o.TgZ(1,"nz-card",2),o.YNc(2,J,2,1,"ng-template",null,3,o.W1O),o.YNc(4,U,1,2,"ng-template",null,4,o.W1O),o.TgZ(6,"nz-descriptions",5),o.YNc(7,F,2,1,"nz-descriptions-item",6),o.YNc(8,D,3,2,"nz-descriptions-item",7),o.TgZ(9,"nz-descriptions-item",8),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"nz-row",9),o.TgZ(12,"nz-col",10),o.TgZ(13,"nz-space",11),o.YNc(14,m,4,2,"a",12),o.YNc(15,V,4,2,"a",12),o.YNc(16,Q,4,2,"a",12),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&i){const c=z.ngIf,O=o.MAs(3),L=o.MAs(5);o.xp6(1),o.Q6J("nzTitle",O)("nzExtra",L),o.xp6(5),o.Q6J("nzColumn",2),o.xp6(1),o.Q6J("ngIf",c.variantAliases.length>0),o.xp6(1),o.Q6J("ngIf",c.alleleRegistryId),o.xp6(2),o.hij(" ",c.evidenceItems.totalCount," ")}}let j=(()=>{class i{constructor(c){this.gql=c}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,h.U)(({data:c})=>c.variant))}}return i.\u0275fac=function(c){return new(c||i)(o.Y36(A.ZYZ))},i.\u0275cmp=o.Xpm({type:i,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(c,O){1&c&&(o.TgZ(0,"div",0),o.YNc(1,W,17,6,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA()),2&c&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,O.variant$)))},directives:[n.O5,C.bd,v.Ls,T.H,P.R7,P.uj,n.sg,d.l,u.SK,u.t3,I.NU,I.$1,_.yS,M.j],pipes:[Z.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),i})();function R(i,z){}function $(i,z){if(1&i&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,R,0,0,"ng-template",6),o.qZA(),o.BQk()),2&i){const c=o.oxw(),O=o.MAs(2);o.xp6(1),o.Q6J("routerLink",c.variant.link),o.xp6(1),o.Q6J("ngTemplateOutlet",O)}}function K(i,z){}function H(i,z){if(1&i){const c=o.EpF();o.TgZ(0,"nz-tag",9),o.NdJ("nzOnClose",function(L){return o.CHM(c),o.oxw(2).itemClosed(L)}),o.YNc(1,K,0,0,"ng-template",6),o.qZA()}if(2&i){o.oxw();const c=o.MAs(2),O=o.oxw(),L=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",O.onCloseClicked?0:.5)("nzPopoverContent",c)("nzMode",O.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",L)}}function X(i,z){if(1&i&&o._UZ(0,"cvc-variant-popover",11),2&i){const c=o.oxw(3);o.Q6J("variantId",c.variant.id)}}function b(i,z){if(1&i&&o.YNc(0,X,1,1,"cvc-variant-popover",10),2&i){const c=o.oxw(2);o.Q6J("ngIf",c.enablePopover)}}function l(i,z){if(1&i&&(o.YNc(0,H,2,4,"nz-tag",7),o.YNc(1,b,1,1,"ng-template",null,8,o.W1O)),2&i){const c=o.oxw(),O=o.MAs(4);o.Q6J("ngIf",c.enablePopover)("ngIfElse",O)}}function x(i,z){}function p(i,z){if(1&i){const c=o.EpF();o.TgZ(0,"nz-tag",12),o.NdJ("nzOnClose",function(L){return o.CHM(c),o.oxw().itemClosed(L)}),o.YNc(1,x,0,0,"ng-template",6),o.qZA()}if(2&i){const c=o.oxw(),O=o.MAs(8);o.Q6J("nzMode",c.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",O)}}function E(i,z){}function w(i,z){if(1&i&&o.YNc(0,E,0,0,"ng-template",6),2&i){o.oxw();const c=o.MAs(2);o.Q6J("ngTemplateOutlet",c)}}function q(i,z){if(1&i&&(o._UZ(0,"i",13),o._uU(1)),2&i){const c=o.oxw();o.xp6(1),o.hij(" ",c.variant.name,"\n")}}let k=(()=>{class i extends a.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return i.\u0275fac=function(c){return new(c||i)},i.\u0275cmp=o.Xpm({type:i,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[o.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(c,O){if(1&c&&(o.YNc(0,$,3,2,"ng-container",0),o.YNc(1,l,3,2,"ng-template",null,1,o.W1O),o.YNc(3,p,2,2,"ng-template",null,2,o.W1O),o.YNc(5,w,1,1,"ng-template",null,3,o.W1O),o.YNc(7,q,2,1,"ng-template",null,4,o.W1O)),2&c){const L=o.MAs(6);o.Q6J("ngIf",O.linked)("ngIfElse",L)}},directives:[n.O5,_.yS,n.tP,M.j,f.lU,j,v.Ls],styles:[""]}),i})()},4867:(S,y,t)=>{t.d(y,{Q:()=>I});var a=t(9808),o=t(325),n=t(8481),_=t(647),M=t(3610),f=t(6949),h=t(7484),A=t(1894),C=t(3098),v=t(8144),T=t(3309),P=t(3630),d=t(5e3);let u=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275mod=d.oAB({type:Z}),Z.\u0275inj=d.cJS({imports:[[a.ez,o.Bz,f.WG,h.vh,A.Jb,C.q6,n.X,_.PV,v.zf,T.U,P.X]]}),Z})(),I=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275mod=d.oAB({type:Z}),Z.\u0275inj=d.cJS({imports:[[a.ez,o.Bz,n.X,M.$6,_.PV,u]]}),Z})()},3154:(S,y,t)=>{t.d(y,{_:()=>o});var a=t(712);function o(n){var _;switch(n.value){case"ascend":_=a.SrV.Asc;break;case"descend":_=a.SrV.Desc;break;default:return}return{column:n.key,direction:_}}},79:(S,y,t)=>{t.r(y),t.d(y,{VariantGroupsModule:()=>Zn});var a=t(9808),o=t(325),n=t(5e3),_=t(9350),M=t(8992),f=t(6949),h=t(6042),A=t(2643),C=t(2683),v=t(647),T=t(1945),P=t(1894),d=t(3618),u=t(8144),I=t(712),Z=t(3154),J=t(8929),U=t(4850),B=t(373),G=t(1059),F=t(2986),D=t(13),m=t(7484),V=t(1132),Q=t(404),W=t(2166),j=t(112);function R(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=g.$implicit,s=g.last;n.xp6(1),n.AsE(" ",r,"",s?"":", "," ")}}function $(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=g.$implicit,s=g.last;n.xp6(1),n.AsE(" ",r,"",s?"":", "," ")}}function K(e,g){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-variant-group-tag",17),n.qZA(),n.TgZ(3,"td"),n.TgZ(4,"p",18),n.YNc(5,R,2,2,"span",15),n.qZA(),n.qZA(),n.TgZ(6,"td"),n.TgZ(7,"p",18),n.YNc(8,$,2,2,"span",15),n.qZA(),n.qZA(),n.TgZ(9,"td"),n._uU(10),n.qZA(),n.TgZ(11,"td"),n._uU(12),n.qZA(),n.qZA()),2&e){const r=g.$implicit;n.xp6(2),n.Q6J("variantgroup",r),n.xp6(3),n.Q6J("ngForOf",r.variantNames),n.xp6(3),n.Q6J("ngForOf",r.geneNames),n.xp6(2),n.hij(" ",r.variantCount," "),n.xp6(2),n.hij(" ",r.evidenceItemCount," ")}}function H(e,g){if(1&e){const r=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(r);const N=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(N.endCursor)}),n._uU(1),n.qZA()}if(2&e){const r=n.oxw(4);n.xp6(1),n.hij("Load ",r.pageSize," More")}}function X(e,g){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td",19),n.YNc(2,H,2,1,"button",20),n.qZA(),n.qZA()),2&e){const r=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",r.hasNextPage)}}function b(e,g){if(1&e&&(n.ynx(0),n.YNc(1,X,3,1,"tr",1),n.BQk()),2&e){const r=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",r.hasNextPage)}}function l(e,g){if(1&e){const r=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",3,4),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",5),n.NdJ("nzSortOrderChange",function(N){return n.CHM(r),n.oxw().onSortChanged(N)}),n.TgZ(6,"tr"),n.TgZ(7,"th",6),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",7),n._uU(10," Variants "),n.qZA(),n.TgZ(11,"th",7),n._uU(12," Genes "),n.qZA(),n.TgZ(13,"th",8),n._UZ(14,"i",9),n.qZA(),n.TgZ(15,"th",10),n._UZ(16,"i",11),n.qZA(),n.qZA(),n.TgZ(17,"tr"),n.TgZ(18,"th"),n.TgZ(19,"cvc-clearable-input-filter",12),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().nameInput=N}),n.qZA(),n.qZA(),n.TgZ(20,"th"),n.TgZ(21,"cvc-clearable-input-filter",13),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().variantNameInput=N}),n.qZA(),n.qZA(),n.TgZ(22,"th"),n.TgZ(23,"cvc-clearable-input-filter",14),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().geneNameInput=N}),n.qZA(),n.qZA(),n._UZ(24,"th"),n._UZ(25,"th"),n.qZA(),n.qZA(),n.TgZ(26,"tbody"),n.YNc(27,K,13,5,"tr",15),n.YNc(28,b,2,1,"ng-container",16),n.qZA(),n.qZA(),n.BQk()}if(2&e){const r=n.MAs(2),s=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,18,s.variantGroups$))("nzLoading",n.lcZ(4,20,s.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.Name)("nzSortFn",!0),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.VariantCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.EvidenceItemCount)("nzSortFn",!0),n.xp6(4),n.Q6J("inputModel",s.nameInput)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.variantNameInput)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.geneNameInput)("onInputChanged",s.textInputCallback),n.xp6(4),n.Q6J("ngForOf",r.data),n.xp6(1),n.Q6J("ngrxLet",s.pageInfo$)}}function x(e,g){}function p(e,g){if(1&e&&(n.ynx(0),n.YNc(1,x,0,0,"ng-template",25),n.BQk()),2&e){const r=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",r.cvcTitleTemplate)}}function E(e,g){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const r=n.oxw(2);n.xp6(1),n.hij(" ",r.cvcTitle," ")}}function w(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=n.oxw().ngIf;n.xp6(1),n.hij(" of ",r," filtered")}}function q(e,g){if(1&e&&(n.TgZ(0,"span",26),n._uU(1),n.YNc(2,w,2,1,"span",1),n._uU(3,") "),n.qZA()),2&e){const r=g.ngIf,s=n.oxw(2);n.xp6(1),n.AsE(" (",s.totalCount," total, showing ",s.visibleCount,""),n.xp6(1),n.Q6J("ngIf",s.totalCount&&r{class e{constructor(r){this.gql=r,this.debouncedQuery=new J.xQ,this.pageSize=25,this.sortColumns=I.FB1,this.visibleCount=this.pageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.pageSize}),this.data$=this.queryRef.valueChanges.pipe((0,U.U)(r=>({data:r.data,loading:r.loading,networkStatus:r.networkStatus}))),this.isLoading$=this.data$.pipe((0,B.j)("loading"),(0,G.O)(!0)),this.variantGroups$=this.data$.pipe((0,B.j)("data","browseVariantGroups","edges"),(0,U.U)(r=>r.map(s=>s.node))),this.pageInfo$=this.data$.pipe((0,B.j)("data","browseVariantGroups","pageInfo")),this.filteredCount$=this.data$.pipe((0,B.j)("data","browseVariantGroups","filteredCount")),this.filteredCount$.pipe((0,F.q)(1)).subscribe(r=>this.totalCount=r),this.filteredCount$.subscribe(r=>{rr&&(this.visibleCount=r))}),this.debouncedQuery.pipe((0,D.b)(500)).subscribe(r=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var r;this.loadedPages=1,null===(r=this.queryRef)||void 0===r||r.refetch({name:this.nameInput,geneNames:this.geneNameInput,variantNames:this.variantNameInput})}onSortChanged(r){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({sortBy:(0,Z._)(r)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(r){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{first:this.pageSize,after:r}}),this.loadedPages+=1}}return e.\u0275fac=function(r){return new(r||e)(n.Y36(I.qf4))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-variant-groups-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:5,vars:6,consts:[[3,"nzTitle"],[4,"ngIf"],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["variantGroupsTable",""],[3,"nzSortOrderChange"],["nzWidth","20%",3,"nzColumnKey","nzSortFn"],["nzWidth","30%"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:variant"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:evidence"],["placeholderText","Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Variant Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Gene Name",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],[3,"variantgroup"],["nz-typography",""],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:variantgroup"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(r,s){if(1&r&&(n.TgZ(0,"nz-card",0),n.YNc(1,l,29,22,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,i,7,6,"ng-template",null,2,n.W1O)),2&r){const N=n.MAs(4);n.Q6J("nzTitle",N),n.xp6(1),n.Q6J("ngIf",n.VKq(4,z,n.lcZ(2,2,s.data$)))}},directives:[m.bd,a.O5,V.N8,V.Om,V.$Z,V.Uo,V._C,V.qD,Q.SY,C.w,v.Ls,W.p,V.p0,a.sg,j.u,d.ZU,f.eJ,h.ix,A.dQ,a.tP],pipes:[f.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),e})();function O(e,g){1&e&&(n.TgZ(0,"button",18),n._UZ(1,"i",19),n._uU(2," Submit New Variant Group "),n.qZA())}function L(e,g){if(1&e&&(n.ynx(0),n.YNc(1,O,3,0,"button",17),n.BQk()),2&e){const r=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)}}function nn(e,g){if(1&e&&n.YNc(0,L,2,1,"ng-container",16),2&e){const r=n.oxw();n.Q6J("ngrxLet",r.viewer$)}}function on(e,g){1&e&&(n.TgZ(0,"a",20),n._UZ(1,"i",21),n._uU(2," View Variant Group Model Docs "),n.qZA())}function an(e,g){1&e&&(n.TgZ(0,"a",22),n._UZ(1,"i",21),n._uU(2," View Variant Group Curation Docs "),n.qZA())}const en=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-variant-groups"]],decls:1,vars:0,template:function(r,s){1&r&&n._UZ(0,"router-outlet")},directives:[o.lC],styles:[""]}),e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class e{constructor(r){this.viewerService=r,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return e.\u0275fac=function(r){return new(r||e)(n.Y36(_.a))},e.\u0275cmp=n.Xpm({type:e,selectors:[["variant-groups-home"]],decls:21,vars:3,consts:[[3,"actionsTpl"],["vargroupActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:variantgroup"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variant Groups"],[4,"ngrxLet"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock",""]],template:function(r,s){if(1&r&&(n._UZ(0,"cvc-section-navigation",0),n.YNc(1,nn,1,1,"ng-template",null,1,n.W1O),n.TgZ(3,"nz-page-header",2),n.TgZ(4,"nz-page-header-content"),n.TgZ(5,"nz-row",3),n.TgZ(6,"nz-col",4),n._UZ(7,"i",5),n.qZA(),n.TgZ(8,"nz-col",6),n.TgZ(9,"h2"),n._uU(10,"Variant Groups"),n.qZA(),n.TgZ(11,"p",7),n._uU(12,"Variant Groups provide user-defined grouping of Variants within and between genes based on unifying characteristics."),n.qZA(),n.qZA(),n.TgZ(13,"nz-col",8),n.TgZ(14,"nz-space",9),n.YNc(15,on,3,0,"a",10),n.YNc(16,an,3,0,"a",11),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"div",12),n.TgZ(18,"div",13),n.TgZ(19,"div",14),n._UZ(20,"cvc-variant-groups-table",15),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&r){const N=n.MAs(2);n.Q6J("actionsTpl",N),n.xp6(11),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24)}},directives:[M.I,f.eJ,a.O5,h.ix,A.dQ,o.rH,C.w,v.Ls,T.$O,T.u5,P.SK,P.t3,d.ZU,u.NU,u.$1,c],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),e})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(1679),t.e(3021),t.e(8776),t.e(7598),t.e(885)]).then(t.bind(t,885)).then(e=>e.VariantGroupsAddModule),data:{breadcrumb:"Add"}},{path:":variantGroupId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(5193),t.e(9001),t.e(2826),t.e(1679),t.e(2738),t.e(55),t.e(4292),t.e(2043),t.e(3482),t.e(392),t.e(1750),t.e(5787),t.e(8482)]).then(t.bind(t,8482)).then(e=>e.VariantGroupsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(1679),t.e(3021),t.e(8776),t.e(7598),t.e(605)]).then(t.bind(t,605)).then(e=>e.VariantGroupsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let rn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[o.Bz.forChild(en)],o.Bz]}),e})();var ln=t(4182),cn=t(4546),pn=t(1047),sn=t(8054),tn=t(4125),gn=t(9444),dn=t(3309),vn=t(4867),un=t(3580),mn=t(8018),fn=t(8369),Cn=t(209),zn=t(897),hn=t(7946),Tn=t(7677);let _n=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,ln.u5,f.WG,h.sL,V.HQ,cn.U5,pn.o7,v.PV,d.ZJ,Q.cg,sn.LV,v.PV,m.vh,d.ZJ,tn.k,gn.s,dn.U,vn.Q,un.Q,mn.e,fn.W,Cn.i,zn.$,hn.x,tn.k,Tn.G]]}),e})();var xn=t(5630);let Mn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,o.Bz,f.WG,h.sL,P.Jb,T.KJ,v.PV,d.ZJ,u.zf,_n,xn.D]]}),e})(),Zn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,rn,Mn]]}),e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[79],{8369:(S,y,t)=>{t.d(y,{W:()=>D});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(7484),h=t(3098),A=t(3309),C=t(4867),v=t(6286),T=t(8018),P=t(6949),d=t(9444),u=t(1894),I=t(8144),Z=t(3580),J=t(8625),U=t(7026),B=t(592),G=t(5e3);let F=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,P.WG,f.vh,h.q6,M.PV,u.Jb,I.zf,n.X,A.U,Z.Q,C.Q,v.y,T.e,d.s,B.x,J.$L.forChild({formatter:{useClass:U.x,provide:J.KP}})]]}),m})(),D=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,F,d.s]]}),m})()},209:(S,y,t)=>{t.d(y,{i:()=>D});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(7484),h=t(3309),A=t(4867),C=t(1894),v=t(3098),T=t(8018),P=t(3580),d=t(6286),u=t(6949),I=t(8144),Z=t(9444),J=t(9779),U=t(592),B=t(3618),G=t(5e3);let F=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,u.WG,M.PV,f.vh,C.Jb,v.q6,n.X,I.zf,B.ZJ,Z.s,T.e,P.Q,h.U,A.Q,d.y,J.s,U.x]]}),m})(),D=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,F,Z.s]]}),m})()},6286:(S,y,t)=>{t.d(y,{y:()=>P});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(6949),h=t(7484),A=t(3630),C=t(3098),v=t(5e3);let T=(()=>{class d{}return d.\u0275fac=function(I){return new(I||d)},d.\u0275mod=v.oAB({type:d}),d.\u0275inj=v.cJS({imports:[[a.ez,f.WG,M.PV,h.vh,A.X,C.q6]]}),d})(),P=(()=>{class d{}return d.\u0275fac=function(I){return new(I||d)},d.\u0275mod=v.oAB({type:d}),d.\u0275inj=v.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,T]]}),d})()},2166:(S,y,t)=>{t.d(y,{p:()=>A});var a=t(5e3),o=t(1047),n=t(4182),_=t(9808),M=t(647);function f(C,v){if(1&C){const T=a.EpF();a.TgZ(0,"i",4),a.NdJ("click",function(){a.CHM(T);const d=a.oxw(2);return d.inputModel=void 0,d.onModelUpdated()}),a.qZA()}}function h(C,v){if(1&C&&a.YNc(0,f,1,0,"i",3),2&C){const T=a.oxw();a.Q6J("ngIf",T.inputModel)}}let A=(()=>{class C{constructor(){this.inputModelChange=new a.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return C.\u0275fac=function(T){return new(T||C)},C.\u0275cmp=a.Xpm({type:C,selectors:[["cvc-clearable-input-filter"]],inputs:{placeholderText:"placeholderText",onInputChanged:"onInputChanged",inputModel:"inputModel"},outputs:{inputModelChange:"inputModelChange"},decls:4,vars:3,consts:[[3,"nzSuffix"],["type","text","nz-input","",3,"placeholder","ngModel","ngModelChange"],["clearTmpl",""],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"]],template:function(T,P){if(1&T&&(a.TgZ(0,"nz-input-group",0),a.TgZ(1,"input",1),a.NdJ("ngModelChange",function(u){return P.inputModel=u})("ngModelChange",function(){return P.onModelUpdated()}),a.qZA(),a.qZA(),a.YNc(2,h,1,1,"ng-template",null,2,a.W1O)),2&T){const d=a.MAs(3);a.Q6J("nzSuffix",d),a.xp6(1),a.Q6J("placeholder",P.placeholderText?P.placeholderText:"")("ngModel",P.inputModel)}},directives:[o.gB,o.ke,o.Zp,n.Fj,n.JJ,n.On,_.O5,M.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),C})()},4125:(S,y,t)=>{t.d(y,{k:()=>f});var a=t(9808),o=t(1047),n=t(4182),_=t(647),M=t(5e3);let f=(()=>{class h{}return h.\u0275fac=function(C){return new(C||h)},h.\u0275mod=M.oAB({type:h}),h.\u0275inj=M.cJS({imports:[[a.ez,n.u5,o.o7,_.PV]]}),h})()},592:(S,y,t)=>{t.d(y,{x:()=>M});var a=t(9808),o=t(8481),n=t(647),_=t(5e3);let M=(()=>{class f{}return f.\u0275fac=function(A){return new(A||f)},f.\u0275mod=_.oAB({type:f}),f.\u0275inj=_.cJS({imports:[[a.ez,o.X,n.PV]]}),f})()},7946:(S,y,t)=>{t.d(y,{x:()=>C});var a=t(9808),o=t(897),n=t(8481),_=t(3610),M=t(8018),f=t(3580),h=t(9476),A=t(5e3);let C=(()=>{class v{}return v.\u0275fac=function(P){return new(P||v)},v.\u0275mod=A.oAB({type:v}),v.\u0275inj=A.cJS({imports:[[a.ez,n.X,_.$6,o.$,M.e,f.Q,h.L]]}),v})()},112:(S,y,t)=>{t.d(y,{u:()=>b});var a=t(5e3),o=t(9808),n=t(325),_=t(8481),M=t(3610),f=t(4850),h=t(712),A=t(7484),C=t(3098),v=t(8664),T=t(6906),P=t(6949);function d(l,x){if(1&l&&(a._UZ(0,"i",7),a._uU(1)),2&l){const p=a.oxw().ngIf;a.xp6(1),a.hij(" ",p.name," ")}}function u(l,x){if(1&l&&(a.TgZ(0,"span"),a._UZ(1,"cvc-variant-tag",10),a.qZA()),2&l){const p=x.$implicit;a.xp6(1),a.Q6J("variant",p.node)}}function I(l,x){if(1&l&&(a.TgZ(0,"nz-descriptions-item",8),a.YNc(1,u,2,1,"span",9),a.qZA()),2&l){const p=a.oxw().ngIf;a.xp6(1),a.Q6J("ngForOf",p.variants.edges)}}function Z(l,x){if(1&l&&(a.TgZ(0,"span"),a._UZ(1,"cvc-source-tag",12),a.qZA()),2&l){const p=x.$implicit;a.xp6(1),a.Q6J("source",p)}}function J(l,x){if(1&l&&(a.TgZ(0,"nz-descriptions-item",11),a.YNc(1,Z,2,1,"span",9),a.qZA()),2&l){const p=a.oxw().ngIf;a.xp6(1),a.Q6J("ngForOf",p.sources)}}function U(l,x){if(1&l&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,d,2,1,"ng-template",null,3,a.W1O),a._uU(4),a.TgZ(5,"nz-descriptions",4),a.YNc(6,I,2,1,"nz-descriptions-item",5),a.YNc(7,J,2,1,"nz-descriptions-item",6),a.qZA(),a.qZA(),a.BQk()),2&l){const p=x.ngIf,E=a.MAs(3);a.xp6(1),a.Q6J("nzTitle",E),a.xp6(3),a.hij(" ",p.description," "),a.xp6(1),a.Q6J("nzColumn",2),a.xp6(1),a.Q6J("ngIf",p.variants.edges.length>0),a.xp6(1),a.Q6J("ngIf",p.sources.length>0)}}let B=(()=>{class l{constructor(p){this.gql=p}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,f.U)(({data:p})=>p.variantGroup))}}return l.\u0275fac=function(p){return new(p||l)(a.Y36(h.Zo2))},l.\u0275cmp=a.Xpm({type:l,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzType","civic:variant-group"],["nzTitle","Variants","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"variant"],["nzTitle","Sources","nzSpan","2"],[3,"source"]],template:function(p,E){1&p&&(a.TgZ(0,"div",0),a.YNc(1,U,8,5,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&p&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,E.variantGroup$)))},directives:[o.O5,A.bd,C.R7,C.uj,o.sg,v.I,T.T],pipes:[P.fM],styles:["[_nghost-%COMP%]{display:block}"]}),l})();var G=t(647);function F(l,x){}function D(l,x){if(1&l&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,F,0,0,"ng-template",6),a.qZA(),a.BQk()),2&l){const p=a.oxw(),E=a.MAs(2);a.xp6(1),a.Q6J("routerLink",p.variantgroup.link),a.xp6(1),a.Q6J("ngTemplateOutlet",E)}}function m(l,x){}function V(l,x){if(1&l&&(a.TgZ(0,"nz-tag",9),a.YNc(1,m,0,0,"ng-template",6),a.qZA()),2&l){a.oxw();const p=a.MAs(2);a.oxw();const E=a.MAs(8);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p),a.xp6(1),a.Q6J("ngTemplateOutlet",E)}}function Q(l,x){if(1&l&&a._UZ(0,"cvc-variant-group-popover",11),2&l){const p=a.oxw(3);a.Q6J("variantGroupId",p.variantgroup.id)}}function W(l,x){if(1&l&&a.YNc(0,Q,1,1,"cvc-variant-group-popover",10),2&l){const p=a.oxw(2);a.Q6J("ngIf",p.enablePopover)}}function j(l,x){if(1&l&&(a.YNc(0,V,2,3,"nz-tag",7),a.YNc(1,W,1,1,"ng-template",null,8,a.W1O)),2&l){const p=a.oxw(),E=a.MAs(4);a.Q6J("ngIf",p.enablePopover)("ngIfElse",E)}}function R(l,x){}function $(l,x){if(1&l&&(a.TgZ(0,"nz-tag"),a.YNc(1,R,0,0,"ng-template",6),a.qZA()),2&l){a.oxw();const p=a.MAs(8);a.xp6(1),a.Q6J("ngTemplateOutlet",p)}}function K(l,x){}function H(l,x){if(1&l&&a.YNc(0,K,0,0,"ng-template",6),2&l){a.oxw();const p=a.MAs(2);a.Q6J("ngTemplateOutlet",p)}}function X(l,x){if(1&l&&(a._UZ(0,"i",12),a._uU(1)),2&l){const p=a.oxw();a.xp6(1),a.hij(" ",p.variantgroup.name,"\n")}}let b=(()=>{class l{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.variantgroup)throw new Error("Must pass a LinkableVariantgroup into the variantgroup tag component")}}return l.\u0275fac=function(p){return new(p||l)},l.\u0275cmp=a.Xpm({type:l,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(p,E){if(1&p&&(a.YNc(0,D,3,2,"ng-container",0),a.YNc(1,j,3,2,"ng-template",null,1,a.W1O),a.YNc(3,$,2,1,"ng-template",null,2,a.W1O),a.YNc(5,H,1,1,"ng-template",null,3,a.W1O),a.YNc(7,X,2,1,"ng-template",null,4,a.W1O)),2&p){const w=a.MAs(6);a.Q6J("ngIf",E.linked)("ngIfElse",w)}},directives:[o.O5,n.yS,o.tP,_.j,M.lU,B,G.Ls],styles:[""]}),l})()},7677:(S,y,t)=>{t.d(y,{G:()=>d});var a=t(9808),o=t(325),n=t(3610),_=t(8481),M=t(647),f=t(9779),h=t(4867),A=t(7484),C=t(3098),v=t(6949),T=t(5e3);let P=(()=>{class u{}return u.\u0275fac=function(Z){return new(Z||u)},u.\u0275mod=T.oAB({type:u}),u.\u0275inj=T.cJS({imports:[[a.ez,v.WG,A.vh,C.q6,f.s,h.Q]]}),u})(),d=(()=>{class u{}return u.\u0275fac=function(Z){return new(Z||u)},u.\u0275mod=T.oAB({type:u}),u.\u0275inj=T.cJS({imports:[[a.ez,o.Bz,n.$6,_.X,M.PV,P]]}),u})()},8664:(S,y,t)=>{t.d(y,{I:()=>k});var a=t(6654),o=t(5e3),n=t(9808),_=t(325),M=t(8481),f=t(3610),h=t(4850),A=t(712),C=t(7484),v=t(647),T=t(3193),P=t(3098),d=t(6550),u=t(1894),I=t(8144),Z=t(6949);function J(i,z){if(1&i&&(o._UZ(0,"i",13),o._uU(1)),2&i){const c=o.oxw().ngIf;o.xp6(1),o.hij(" ",c.name," ")}}function U(i,z){if(1&i&&o._UZ(0,"cvc-gene-tag",14),2&i){const c=o.oxw().ngIf;o.Q6J("enablePopover",!1)("gene",c.gene)}}function B(i,z){1&i&&(o.TgZ(0,"span"),o._uU(1,",\xa0"),o.qZA())}function G(i,z){if(1&i&&(o.TgZ(0,"span"),o._uU(1),o.YNc(2,B,2,0,"span",1),o.qZA()),2&i){const c=z.$implicit,O=z.last;o.xp6(1),o.hij(" ",c,""),o.xp6(1),o.Q6J("ngIf",!O)}}function F(i,z){if(1&i&&(o.TgZ(0,"nz-descriptions-item",15),o.YNc(1,G,3,2,"span",16),o.qZA()),2&i){const c=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",c.variantAliases)}}function D(i,z){if(1&i&&(o.TgZ(0,"nz-descriptions-item",17),o.TgZ(1,"cvc-link-tag",18),o._uU(2),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.xp6(1),o.MGl("href","https://reg.genome.network/allele/",c.alleleRegistryId,".html"),o.xp6(1),o.hij(" ",c.alleleRegistryId," ")}}function m(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",20),o._UZ(2,"i",21),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/flags"),o.xp6(3),o.hij(" Flags (",c.flags.totalCount,") ")}}function V(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",22),o._UZ(2,"i",23),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/revisions"),o.xp6(3),o.hij(" Revisions (",c.revisions.totalCount,") ")}}function Q(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",24),o._UZ(2,"i",25),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/comments"),o.xp6(3),o.hij(" Comments (",c.comments.totalCount,") ")}}function W(i,z){if(1&i&&(o.ynx(0),o.TgZ(1,"nz-card",2),o.YNc(2,J,2,1,"ng-template",null,3,o.W1O),o.YNc(4,U,1,2,"ng-template",null,4,o.W1O),o.TgZ(6,"nz-descriptions",5),o.YNc(7,F,2,1,"nz-descriptions-item",6),o.YNc(8,D,3,2,"nz-descriptions-item",7),o.TgZ(9,"nz-descriptions-item",8),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"nz-row",9),o.TgZ(12,"nz-col",10),o.TgZ(13,"nz-space",11),o.YNc(14,m,4,2,"a",12),o.YNc(15,V,4,2,"a",12),o.YNc(16,Q,4,2,"a",12),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&i){const c=z.ngIf,O=o.MAs(3),L=o.MAs(5);o.xp6(1),o.Q6J("nzTitle",O)("nzExtra",L),o.xp6(5),o.Q6J("nzColumn",2),o.xp6(1),o.Q6J("ngIf",c.variantAliases.length>0),o.xp6(1),o.Q6J("ngIf",c.alleleRegistryId),o.xp6(2),o.hij(" ",c.evidenceItems.totalCount," ")}}let j=(()=>{class i{constructor(c){this.gql=c}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,h.U)(({data:c})=>c.variant))}}return i.\u0275fac=function(c){return new(c||i)(o.Y36(A.ZYZ))},i.\u0275cmp=o.Xpm({type:i,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(c,O){1&c&&(o.TgZ(0,"div",0),o.YNc(1,W,17,6,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA()),2&c&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,O.variant$)))},directives:[n.O5,C.bd,v.Ls,T.H,P.R7,P.uj,n.sg,d.l,u.SK,u.t3,I.NU,I.$1,_.yS,M.j],pipes:[Z.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),i})();function R(i,z){}function $(i,z){if(1&i&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,R,0,0,"ng-template",6),o.qZA(),o.BQk()),2&i){const c=o.oxw(),O=o.MAs(2);o.xp6(1),o.Q6J("routerLink",c.variant.link),o.xp6(1),o.Q6J("ngTemplateOutlet",O)}}function K(i,z){}function H(i,z){if(1&i){const c=o.EpF();o.TgZ(0,"nz-tag",9),o.NdJ("nzOnClose",function(L){return o.CHM(c),o.oxw(2).itemClosed(L)}),o.YNc(1,K,0,0,"ng-template",6),o.qZA()}if(2&i){o.oxw();const c=o.MAs(2),O=o.oxw(),L=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",O.onCloseClicked?0:.5)("nzPopoverContent",c)("nzMode",O.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",L)}}function X(i,z){if(1&i&&o._UZ(0,"cvc-variant-popover",11),2&i){const c=o.oxw(3);o.Q6J("variantId",c.variant.id)}}function b(i,z){if(1&i&&o.YNc(0,X,1,1,"cvc-variant-popover",10),2&i){const c=o.oxw(2);o.Q6J("ngIf",c.enablePopover)}}function l(i,z){if(1&i&&(o.YNc(0,H,2,4,"nz-tag",7),o.YNc(1,b,1,1,"ng-template",null,8,o.W1O)),2&i){const c=o.oxw(),O=o.MAs(4);o.Q6J("ngIf",c.enablePopover)("ngIfElse",O)}}function x(i,z){}function p(i,z){if(1&i){const c=o.EpF();o.TgZ(0,"nz-tag",12),o.NdJ("nzOnClose",function(L){return o.CHM(c),o.oxw().itemClosed(L)}),o.YNc(1,x,0,0,"ng-template",6),o.qZA()}if(2&i){const c=o.oxw(),O=o.MAs(8);o.Q6J("nzMode",c.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",O)}}function E(i,z){}function w(i,z){if(1&i&&o.YNc(0,E,0,0,"ng-template",6),2&i){o.oxw();const c=o.MAs(2);o.Q6J("ngTemplateOutlet",c)}}function q(i,z){if(1&i&&(o._UZ(0,"i",13),o._uU(1)),2&i){const c=o.oxw();o.xp6(1),o.hij(" ",c.variant.name,"\n")}}let k=(()=>{class i extends a.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return i.\u0275fac=function(c){return new(c||i)},i.\u0275cmp=o.Xpm({type:i,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[o.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(c,O){if(1&c&&(o.YNc(0,$,3,2,"ng-container",0),o.YNc(1,l,3,2,"ng-template",null,1,o.W1O),o.YNc(3,p,2,2,"ng-template",null,2,o.W1O),o.YNc(5,w,1,1,"ng-template",null,3,o.W1O),o.YNc(7,q,2,1,"ng-template",null,4,o.W1O)),2&c){const L=o.MAs(6);o.Q6J("ngIf",O.linked)("ngIfElse",L)}},directives:[n.O5,_.yS,n.tP,M.j,f.lU,j,v.Ls],styles:[""]}),i})()},4867:(S,y,t)=>{t.d(y,{Q:()=>I});var a=t(9808),o=t(325),n=t(8481),_=t(647),M=t(3610),f=t(6949),h=t(7484),A=t(1894),C=t(3098),v=t(8144),T=t(3309),P=t(3630),d=t(5e3);let u=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275mod=d.oAB({type:Z}),Z.\u0275inj=d.cJS({imports:[[a.ez,o.Bz,f.WG,h.vh,A.Jb,C.q6,n.X,_.PV,v.zf,T.U,P.X]]}),Z})(),I=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275mod=d.oAB({type:Z}),Z.\u0275inj=d.cJS({imports:[[a.ez,o.Bz,n.X,M.$6,_.PV,u]]}),Z})()},3154:(S,y,t)=>{t.d(y,{_:()=>o});var a=t(712);function o(n){var _;switch(n.value){case"ascend":_=a.SrV.Asc;break;case"descend":_=a.SrV.Desc;break;default:return}return{column:n.key,direction:_}}},79:(S,y,t)=>{t.r(y),t.d(y,{VariantGroupsModule:()=>Zn});var a=t(9808),o=t(325),n=t(5e3),_=t(9350),M=t(8992),f=t(6949),h=t(6042),A=t(2643),C=t(2683),v=t(647),T=t(1945),P=t(1894),d=t(3618),u=t(8144),I=t(712),Z=t(3154),J=t(8929),U=t(4850),B=t(373),G=t(1059),F=t(2986),D=t(13),m=t(7484),V=t(1132),Q=t(404),W=t(2166),j=t(112);function R(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=g.$implicit,s=g.last;n.xp6(1),n.AsE(" ",r,"",s?"":", "," ")}}function $(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=g.$implicit,s=g.last;n.xp6(1),n.AsE(" ",r,"",s?"":", "," ")}}function K(e,g){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-variant-group-tag",17),n.qZA(),n.TgZ(3,"td"),n.TgZ(4,"p",18),n.YNc(5,R,2,2,"span",15),n.qZA(),n.qZA(),n.TgZ(6,"td"),n.TgZ(7,"p",18),n.YNc(8,$,2,2,"span",15),n.qZA(),n.qZA(),n.TgZ(9,"td"),n._uU(10),n.qZA(),n.TgZ(11,"td"),n._uU(12),n.qZA(),n.qZA()),2&e){const r=g.$implicit;n.xp6(2),n.Q6J("variantgroup",r),n.xp6(3),n.Q6J("ngForOf",r.variantNames),n.xp6(3),n.Q6J("ngForOf",r.geneNames),n.xp6(2),n.hij(" ",r.variantCount," "),n.xp6(2),n.hij(" ",r.evidenceItemCount," ")}}function H(e,g){if(1&e){const r=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(r);const N=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(N.endCursor)}),n._uU(1),n.qZA()}if(2&e){const r=n.oxw(4);n.xp6(1),n.hij("Load ",r.pageSize," More")}}function X(e,g){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td",19),n.YNc(2,H,2,1,"button",20),n.qZA(),n.qZA()),2&e){const r=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",r.hasNextPage)}}function b(e,g){if(1&e&&(n.ynx(0),n.YNc(1,X,3,1,"tr",1),n.BQk()),2&e){const r=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",r.hasNextPage)}}function l(e,g){if(1&e){const r=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",3,4),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",5),n.NdJ("nzSortOrderChange",function(N){return n.CHM(r),n.oxw().onSortChanged(N)}),n.TgZ(6,"tr"),n.TgZ(7,"th",6),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",7),n._uU(10," Variants "),n.qZA(),n.TgZ(11,"th",7),n._uU(12," Genes "),n.qZA(),n.TgZ(13,"th",8),n._UZ(14,"i",9),n.qZA(),n.TgZ(15,"th",10),n._UZ(16,"i",11),n.qZA(),n.qZA(),n.TgZ(17,"tr"),n.TgZ(18,"th"),n.TgZ(19,"cvc-clearable-input-filter",12),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().nameInput=N}),n.qZA(),n.qZA(),n.TgZ(20,"th"),n.TgZ(21,"cvc-clearable-input-filter",13),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().variantNameInput=N}),n.qZA(),n.qZA(),n.TgZ(22,"th"),n.TgZ(23,"cvc-clearable-input-filter",14),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().geneNameInput=N}),n.qZA(),n.qZA(),n._UZ(24,"th"),n._UZ(25,"th"),n.qZA(),n.qZA(),n.TgZ(26,"tbody"),n.YNc(27,K,13,5,"tr",15),n.YNc(28,b,2,1,"ng-container",16),n.qZA(),n.qZA(),n.BQk()}if(2&e){const r=n.MAs(2),s=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,18,s.variantGroups$))("nzLoading",n.lcZ(4,20,s.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.Name)("nzSortFn",!0),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.VariantCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.EvidenceItemCount)("nzSortFn",!0),n.xp6(4),n.Q6J("inputModel",s.nameInput)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.variantNameInput)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.geneNameInput)("onInputChanged",s.textInputCallback),n.xp6(4),n.Q6J("ngForOf",r.data),n.xp6(1),n.Q6J("ngrxLet",s.pageInfo$)}}function x(e,g){}function p(e,g){if(1&e&&(n.ynx(0),n.YNc(1,x,0,0,"ng-template",25),n.BQk()),2&e){const r=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",r.cvcTitleTemplate)}}function E(e,g){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const r=n.oxw(2);n.xp6(1),n.hij(" ",r.cvcTitle," ")}}function w(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=n.oxw().ngIf;n.xp6(1),n.hij(" of ",r," filtered")}}function q(e,g){if(1&e&&(n.TgZ(0,"span",26),n._uU(1),n.YNc(2,w,2,1,"span",1),n._uU(3,") "),n.qZA()),2&e){const r=g.ngIf,s=n.oxw(2);n.xp6(1),n.AsE(" (",s.totalCount," total, showing ",s.visibleCount,""),n.xp6(1),n.Q6J("ngIf",s.totalCount&&r{class e{constructor(r){this.gql=r,this.debouncedQuery=new J.xQ,this.pageSize=25,this.sortColumns=I.FB1,this.visibleCount=this.pageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.pageSize}),this.data$=this.queryRef.valueChanges.pipe((0,U.U)(r=>({data:r.data,loading:r.loading,networkStatus:r.networkStatus}))),this.isLoading$=this.data$.pipe((0,B.j)("loading"),(0,G.O)(!0)),this.variantGroups$=this.data$.pipe((0,B.j)("data","browseVariantGroups","edges"),(0,U.U)(r=>r.map(s=>s.node))),this.pageInfo$=this.data$.pipe((0,B.j)("data","browseVariantGroups","pageInfo")),this.filteredCount$=this.data$.pipe((0,B.j)("data","browseVariantGroups","filteredCount")),this.filteredCount$.pipe((0,F.q)(1)).subscribe(r=>this.totalCount=r),this.filteredCount$.subscribe(r=>{rr&&(this.visibleCount=r))}),this.debouncedQuery.pipe((0,D.b)(500)).subscribe(r=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var r;this.loadedPages=1,null===(r=this.queryRef)||void 0===r||r.refetch({name:this.nameInput,geneNames:this.geneNameInput,variantNames:this.variantNameInput})}onSortChanged(r){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({sortBy:(0,Z._)(r)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(r){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{first:this.pageSize,after:r}}),this.loadedPages+=1}}return e.\u0275fac=function(r){return new(r||e)(n.Y36(I.qf4))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-variant-groups-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:5,vars:6,consts:[[3,"nzTitle"],[4,"ngIf"],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["variantGroupsTable",""],[3,"nzSortOrderChange"],["nzWidth","20%",3,"nzColumnKey","nzSortFn"],["nzWidth","30%"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:variant"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:evidence"],["placeholderText","Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Variant Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Gene Name",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],[3,"variantgroup"],["nz-typography",""],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:variantgroup"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(r,s){if(1&r&&(n.TgZ(0,"nz-card",0),n.YNc(1,l,29,22,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,i,7,6,"ng-template",null,2,n.W1O)),2&r){const N=n.MAs(4);n.Q6J("nzTitle",N),n.xp6(1),n.Q6J("ngIf",n.VKq(4,z,n.lcZ(2,2,s.data$)))}},directives:[m.bd,a.O5,V.N8,V.Om,V.$Z,V.Uo,V._C,V.qD,Q.SY,C.w,v.Ls,W.p,V.p0,a.sg,j.u,d.ZU,f.eJ,h.ix,A.dQ,a.tP],pipes:[f.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),e})();function O(e,g){1&e&&(n.TgZ(0,"button",18),n._UZ(1,"i",19),n._uU(2," Submit New Variant Group "),n.qZA())}function L(e,g){if(1&e&&(n.ynx(0),n.YNc(1,O,3,0,"button",17),n.BQk()),2&e){const r=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)}}function nn(e,g){if(1&e&&n.YNc(0,L,2,1,"ng-container",16),2&e){const r=n.oxw();n.Q6J("ngrxLet",r.viewer$)}}function on(e,g){1&e&&(n.TgZ(0,"a",20),n._UZ(1,"i",21),n._uU(2," View Variant Group Model Docs "),n.qZA())}function an(e,g){1&e&&(n.TgZ(0,"a",22),n._UZ(1,"i",21),n._uU(2," View Variant Group Curation Docs "),n.qZA())}const en=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-variant-groups"]],decls:1,vars:0,template:function(r,s){1&r&&n._UZ(0,"router-outlet")},directives:[o.lC],styles:[""]}),e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class e{constructor(r){this.viewerService=r,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return e.\u0275fac=function(r){return new(r||e)(n.Y36(_.a))},e.\u0275cmp=n.Xpm({type:e,selectors:[["variant-groups-home"]],decls:21,vars:3,consts:[[3,"actionsTpl"],["vargroupActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:variantgroup"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variant Groups"],[4,"ngrxLet"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock",""]],template:function(r,s){if(1&r&&(n._UZ(0,"cvc-section-navigation",0),n.YNc(1,nn,1,1,"ng-template",null,1,n.W1O),n.TgZ(3,"nz-page-header",2),n.TgZ(4,"nz-page-header-content"),n.TgZ(5,"nz-row",3),n.TgZ(6,"nz-col",4),n._UZ(7,"i",5),n.qZA(),n.TgZ(8,"nz-col",6),n.TgZ(9,"h2"),n._uU(10,"Variant Groups"),n.qZA(),n.TgZ(11,"p",7),n._uU(12,"Variant Groups provide user-defined grouping of Variants within and between genes based on unifying characteristics."),n.qZA(),n.qZA(),n.TgZ(13,"nz-col",8),n.TgZ(14,"nz-space",9),n.YNc(15,on,3,0,"a",10),n.YNc(16,an,3,0,"a",11),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"div",12),n.TgZ(18,"div",13),n.TgZ(19,"div",14),n._UZ(20,"cvc-variant-groups-table",15),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&r){const N=n.MAs(2);n.Q6J("actionsTpl",N),n.xp6(11),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24)}},directives:[M.I,f.eJ,a.O5,h.ix,A.dQ,o.rH,C.w,v.Ls,T.$O,T.u5,P.SK,P.t3,d.ZU,u.NU,u.$1,c],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),e})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(1679),t.e(6875),t.e(5632),t.e(885)]).then(t.bind(t,885)).then(e=>e.VariantGroupsAddModule),data:{breadcrumb:"Add"}},{path:":variantGroupId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(5193),t.e(9001),t.e(2826),t.e(1679),t.e(2738),t.e(55),t.e(4292),t.e(2043),t.e(3482),t.e(392),t.e(1750),t.e(5787),t.e(8482)]).then(t.bind(t,8482)).then(e=>e.VariantGroupsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(1679),t.e(6875),t.e(5632),t.e(605)]).then(t.bind(t,605)).then(e=>e.VariantGroupsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let rn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[o.Bz.forChild(en)],o.Bz]}),e})();var ln=t(4182),cn=t(4546),pn=t(1047),sn=t(8054),tn=t(4125),gn=t(9444),dn=t(3309),vn=t(4867),un=t(3580),mn=t(8018),fn=t(8369),Cn=t(209),zn=t(897),hn=t(7946),Tn=t(7677);let _n=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,ln.u5,f.WG,h.sL,V.HQ,cn.U5,pn.o7,v.PV,d.ZJ,Q.cg,sn.LV,v.PV,m.vh,d.ZJ,tn.k,gn.s,dn.U,vn.Q,un.Q,mn.e,fn.W,Cn.i,zn.$,hn.x,tn.k,Tn.G]]}),e})();var xn=t(5630);let Mn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,o.Bz,f.WG,h.sL,P.Jb,T.KJ,v.PV,d.ZJ,u.zf,_n,xn.D]]}),e})(),Zn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,rn,Mn]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/8571.5eda17590c08c24e.js b/server/public/8571.5eda17590c08c24e.js deleted file mode 100644 index 085d52755..000000000 --- a/server/public/8571.5eda17590c08c24e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8571],{8571:(Le,O,i)=>{i.r(O),i.d(O,{EvidenceReviseModule:()=>Ye});var d=i(9808),c=i(325),p=i(373),E=i(1059),Z=i(4850),e=i(5e3),f=i(712),P=i(9350),C=i(8992),v=i(8144),T=i(3618),A=i(3193),b=i(8664),u=i(1945),I=i(647),l=i(1894),F=i(8616),h=i(6949);function J(t,o){if(1&t&&(e.TgZ(0,"span",12),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(2),e.Oqu(n.name)}}function U(t,o){if(1&t&&(e.TgZ(0,"span",13),e.TgZ(1,"a",14),e._UZ(2,"cvc-gene-tag",15),e.qZA(),e.TgZ(3,"a",14),e._UZ(4,"cvc-variant-tag",16),e.qZA(),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(1),e.MGl("routerLink","/genes/",n.gene.id,""),e.xp6(1),e.Q6J("gene",n.gene),e.xp6(1),e.MGl("routerLink","/variants/",n.variant.id,""),e.xp6(1),e.Q6J("variant",n.variant)}}function Q(t,o){1&t&&(e.TgZ(0,"nz-space",9),e.YNc(1,J,4,1,"span",10),e.YNc(2,U,5,4,"span",11),e.qZA())}function $(t,o){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function Y(t,o){1&t&&(e.TgZ(0,"nz-row",17),e.TgZ(1,"div",18),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function L(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,Q,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"nz-page-header",3),e.TgZ(5,"nz-page-header-title",4),e._uU(6," REVISE "),e._UZ(7,"i",5),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",6),e.YNc(11,$,2,0,"div",7),e.ALo(12,"ngrxPush"),e.YNc(13,Y,3,0,"ng-template",null,8,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const n=o.ngIf,a=e.MAs(3),r=e.MAs(14),s=e.oxw();e.xp6(1),e.Q6J("displayName",n.name)("relationsTpl",a),e.xp6(7),e.hij(" ",n.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,s.isSignedIn$))("ngIfElse",r)}}let N=(()=>{class t{constructor(n,a,r){this.gql=n,this.route=a,this.viewerService=r,this.routeSub=this.route.params.subscribe(s=>{let g=this.gql.watch({evidenceId:+s.evidenceId}).valueChanges;this.loading$=g.pipe((0,p.j)("loading"),(0,E.O)(!0)),this.evidence$=g.pipe((0,p.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,p.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,p.j)("flags","totalCount")),this.revisionsTotal$=this.evidence$.pipe((0,p.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,Z.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.pHu),e.Y36(c.gz),e.Y36(P.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:evidence"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,a){1&n&&(e.YNc(0,L,15,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,a.evidence$))},directives:[d.O5,C.I,v.NU,v.$1,T.ZU,c.yS,A.H,b.I,u.$O,u.u9,I.Ls,u.u5,c.lC,l.SK,l.t3,F.u],pipes:[d.Ov,h.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})();var V=i(7484),j=i(6559),G=i(3773),B=i(8390),D=i(4375),W=i(7008),H=i(1825),M=i(8776),X=i(6042),R=i(2359),y=i(4546),K=i(5109),m=i(4182),w=i(5743),k=i(5452),_=i(5457),q=i(8006),ee=i(7075),te=i(7695),ne=i(7462),ie=i(3594),oe=i(3643),ae=i(1135),S=i(7525),se=i(2789),re=i(5932),de=i(3416),ce=i(2480),le=i(1830),ge=i(4581),pe=i(5926),ve=i(5472),me=i(4889);let ue=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[],imports:[[d.ez,c.Bz,m.UX,K.s,y.U5,R.L,l.Jb,X.sL,S.j,M.X0,H.A,W.B,D.R,te.C,ee.l,B.N,G.g,k.C,w.W,_.$,q.I,ne.o,ie.q,oe.q,ae.C,se.o,re.A,de.g,ce.r,le.S,ge.e,pe.J,ve.r,me.E]]}),t})(),fe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,h.WG,l.Jb,V.vh,j.H0,v.zf,ue]]}),t})();var x=i(6738),he=i(8929),z=i(7625),ye=i(6123),xe=i(6064),ze=i(9169),Oe=i(822);function Te(t,o){1&t&&e.GkF(0)}function Ie(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",5),e.NdJ("modelChange",function(r){return e.CHM(n),e.oxw().formModel=r}),e.qZA()}if(2&t){const n=e.oxw();e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function Me(t,o){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",7),e.qZA(),e.BQk()),2&t){const n=e.oxw(2);e.xp6(2),e.Q6J("errors",n.errorMessages)}}function Re(t,o){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",11),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4," or suggest another revision below."),e.qZA())}function Se(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",8),e.YNc(2,Re,5,0,"ng-template",9,10,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function Ee(t,o){if(1&t&&(e.YNc(0,Me,3,1,"ng-container",6),e.YNc(1,Se,4,1,"ng-container",6)),2&t){const n=e.oxw();e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}let Ze=(()=>{class t{constructor(n,a,r){this.suggestRevisionGQL=n,this.networkErrorService=a,this.revisableFieldsGQL=r,this.formGroup=new m.cw({}),this.formOptions={formState:new xe._},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new ye.U(a),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Evidence Item Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"variant",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant",addText:"Specify a Variant",maxCount:1},fieldArray:{type:"variant-input",templateOptions:{required:!0}}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Evidence Statement",helpText:'Your original description of evidence from published literature detailing the association or lack of association between a variant and its predictive, prognostic, diagnostic, predisposing, functional or oncogenic value. Data constituting personal or identifying information should not be entered (e.g. protected health information (PHI) as defined by HIPAA in the U.S. and/or comparable laws in your jurisdiction).',placeholder:"No description provided",required:!0}},{key:"source",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",addText:"Specify a Source",maxCount:1},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{key:"evidenceLevel",type:"evidence-level-select",templateOptions:{required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array"},{key:"drugInteractionType",type:"drug-interaction-select"},{key:"phenotypes",type:"phenotype-array"},{key:"evidenceRating",type:"rating-input",templateOptions:{label:"Rating",helpText:"Please rate your evidence on a scale of one to five stars. Use the star rating descriptions for guidance.",required:!0}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Evidence Item Revision",submitSize:"large"}}]}]}ngOnInit(){this.destroy$=new he.xQ}ngAfterViewInit(){this.revisableFieldsGQL.fetch({evidenceId:this.evidenceId}).subscribe(({data:{evidenceItem:n}})=>{n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving evidenceItem."),console.error(n)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var a,r;return{fields:Object.assign(Object.assign({},n),{variant:[n.variant],source:[n.source],drugs:n.drugs.length>0?n.drugs:[],disease:[n.disease],comment:null===(a=this.formModel)||void 0===a?void 0:a.fields.comment,drugInteractionType:n.drugInteractionType,organization:null===(r=this.formModel)||void 0===r?void 0:r.fields.organization,evidenceRating:n.evidenceRating})}}submitRevision(n){let a=this.toRevisionInput(n);if(a){let r=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:a});r.submitSuccess$.pipe((0,z.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),r.submitError$.pipe((0,z.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),r.isSubmitting$.pipe((0,z.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toRevisionInput(n){var a,r;if(n){const s=n.fields;return{id:s.id,comment:s.comment,fields:{variantOrigin:s.variantOrigin,description:x.xt(s.description),variantId:s.variant[0].id,sourceId:s.source[0].id,evidenceType:s.evidenceType,evidenceDirection:s.evidenceDirection,clinicalSignificance:s.clinicalSignificance,diseaseId:x.uP(null===(a=s.disease[0])||void 0===a?void 0:a.id),evidenceLevel:s.evidenceLevel,phenotypeIds:s.phenotypes.map(g=>g.id),rating:s.evidenceRating,drugIds:s.drugs.map(g=>g.id),drugInteractionType:x.uP(s.drugInteractionType)},organizationId:null===(r=n.fields.organization)||void 0===r?void 0:r.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.Vj7),e.Y36(ze.Y),e.Y36(f.Q_P))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise-form"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:4,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],["formMessages",""],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,a){if(1&n&&(e.TgZ(0,"nz-spin",0),e.TgZ(1,"form",1),e.NdJ("ngSubmit",function(){return a.submitRevision(a.formModel)}),e.YNc(2,Te,1,0,"ng-container",2),e.YNc(3,Ie,1,4,"formly-form",3),e.qZA(),e.qZA(),e.YNc(4,Ee,2,2,"ng-template",null,4,e.W1O)),2&n){const r=e.MAs(5);e.Q6J("nzSpinning",a.loading),e.xp6(1),e.Q6J("formGroup",a.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",r),e.xp6(1),e.Q6J("ngIf",!a.success)}},directives:[S.W,m._Y,m.JL,y.Lr,m.sg,d.tP,d.O5,M.T7,l.SK,y.Nx,Oe.V,R.r,c.yS],styles:[""]}),t})();function Pe(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-evidence-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("evidenceId",n.evidenceId)}}function Ce(t,o){1&t&&e._uU(0,"Loading Evidence...")}const Ae=[{path:"",component:N,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(a=>{this.evidenceId=+a.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(c.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingEvidence",""],[3,"evidenceId"]],template:function(n,a){if(1&n&&(e.YNc(0,Pe,2,1,"ng-container",0),e.YNc(1,Ce,1,0,"ng-template",null,1,e.W1O)),2&n){const r=e.MAs(2);e.Q6J("ngIf",a.evidenceId)("ngIfElse",r)}},directives:[d.O5,Ze],styles:[""]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let be=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.Bz.forChild(Ae),fe],c.Bz]}),t})();var Fe=i(5630),Je=i(3309),Ue=i(4867),Qe=i(4623),$e=i(9386);let Ye=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,be,u.KJ,v.zf,I.PV,T.ZJ,v.zf,Je.U,Ue.Q,Fe.D,Qe.K,$e.a,h.WG,l.Jb]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/8571.600728d2995f4bfc.js b/server/public/8571.600728d2995f4bfc.js new file mode 100644 index 000000000..af7481c2a --- /dev/null +++ b/server/public/8571.600728d2995f4bfc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8571],{8571:(Ve,T,i)=>{i.r(T),i.d(T,{EvidenceReviseModule:()=>Ne});var d=i(9808),c=i(325),p=i(373),E=i(1059),Z=i(4850),e=i(5e3),f=i(712),C=i(9350),P=i(8992),m=i(8144),I=i(3618),A=i(3193),b=i(8664),u=i(1945),O=i(647),l=i(1894),F=i(8616),h=i(6949);function J(t,o){if(1&t&&(e.TgZ(0,"span",12),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(2),e.Oqu(n.name)}}function Q(t,o){if(1&t&&(e.TgZ(0,"span",13),e.TgZ(1,"a",14),e._UZ(2,"cvc-gene-tag",15),e.qZA(),e.TgZ(3,"a",14),e._UZ(4,"cvc-variant-tag",16),e.qZA(),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(1),e.MGl("routerLink","/genes/",n.gene.id,""),e.xp6(1),e.Q6J("gene",n.gene),e.xp6(1),e.MGl("routerLink","/variants/",n.variant.id,""),e.xp6(1),e.Q6J("variant",n.variant)}}function U(t,o){1&t&&(e.TgZ(0,"nz-space",9),e.YNc(1,J,4,1,"span",10),e.YNc(2,Q,5,4,"span",11),e.qZA())}function $(t,o){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function Y(t,o){1&t&&(e.TgZ(0,"nz-row",17),e.TgZ(1,"div",18),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function L(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,U,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"nz-page-header",3),e.TgZ(5,"nz-page-header-title",4),e._uU(6," REVISE "),e._UZ(7,"i",5),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",6),e.YNc(11,$,2,0,"div",7),e.ALo(12,"ngrxPush"),e.YNc(13,Y,3,0,"ng-template",null,8,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const n=o.ngIf,r=e.MAs(3),s=e.MAs(14),a=e.oxw();e.xp6(1),e.Q6J("displayName",n.name)("relationsTpl",r),e.xp6(7),e.hij(" ",n.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,a.isSignedIn$))("ngIfElse",s)}}let N=(()=>{class t{constructor(n,r,s){this.gql=n,this.route=r,this.viewerService=s,this.routeSub=this.route.params.subscribe(a=>{let g=this.gql.watch({evidenceId:+a.evidenceId}).valueChanges;this.loading$=g.pipe((0,p.j)("loading"),(0,E.O)(!0)),this.evidence$=g.pipe((0,p.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,p.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,p.j)("flags","totalCount")),this.revisionsTotal$=this.evidence$.pipe((0,p.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,Z.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.pHu),e.Y36(c.gz),e.Y36(C.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:evidence"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,r){1&n&&(e.YNc(0,L,15,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,r.evidence$))},directives:[d.O5,P.I,m.NU,m.$1,I.ZU,c.yS,A.H,b.I,u.$O,u.u9,O.Ls,u.u5,c.lC,l.SK,l.t3,F.u],pipes:[d.Ov,h.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})();var V=i(7484),j=i(6559),G=i(3773),B=i(8390),D=i(4375),W=i(7008),H=i(1825),M=i(8776),X=i(6042),R=i(2359),y=i(4546),K=i(5109),v=i(4182),w=i(5743),_=i(5452),k=i(5457),q=i(8006),ee=i(7075),te=i(7695),ne=i(7462),ie=i(3594),oe=i(3643),re=i(1135),S=i(7525),ae=i(2789),se=i(5932),de=i(3416),ce=i(2480),le=i(1830),ge=i(4581),pe=i(5926),me=i(5472),ve=i(4889),ue=i(7338);let fe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[],imports:[[d.ez,c.Bz,v.UX,K.s,y.U5,R.L,l.Jb,X.sL,S.j,M.X0,H.A,W.B,D.R,te.C,ee.l,B.N,G.g,_.C,w.W,k.$,q.I,ne.o,ie.q,oe.q,re.C,ae.o,se.A,de.g,ce.r,le.S,ge.e,pe.J,me.r,ue.z,ve.E]]}),t})(),he=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,h.WG,l.Jb,V.vh,j.H0,m.zf,fe]]}),t})();var x=i(6738),ye=i(8929),z=i(7625),xe=i(6123),ze=i(6064),Te=i(9169),Ie=i(822);function Oe(t,o){1&t&&e.GkF(0)}function Me(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(s){return e.CHM(n),e.oxw(2).formModel=s}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function Re(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(n);const s=e.oxw();return s.submitRevision(s.formModel)}),e.YNc(1,Oe,1,0,"ng-container",4),e.YNc(2,Me,1,4,"formly-form",5),e.qZA()}if(2&t){const n=e.oxw(),r=e.MAs(3);e.Q6J("formGroup",n.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",r),e.xp6(1),e.Q6J("ngIf",!n.success)}}function Se(t,o){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&t){const n=e.oxw(2);e.xp6(2),e.Q6J("errors",n.errorMessages)}}function Ee(t,o){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function Ze(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,Ee,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function Ce(t,o){if(1&t&&(e.YNc(0,Se,3,1,"ng-container",7),e.YNc(1,Ze,4,1,"ng-container",7)),2&t){const n=e.oxw();e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}let Pe=(()=>{class t{constructor(n,r,s){this.suggestRevisionGQL=n,this.networkErrorService=r,this.revisableFieldsGQL=s,this.formGroup=new v.cw({}),this.formOptions={formState:new ze._},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new xe.U(r),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Evidence Item Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"variant",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant",addText:"Specify a Variant",maxCount:1,required:!0,helpText:"The most specific description of the variant that the underlying source allows."},fieldArray:{type:"variant-input",templateOptions:{required:!0,allowCreate:!1}}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Evidence Statement",helpText:'Your original description of evidence from published literature detailing the association or lack of association between a variant and its predictive, prognostic, diagnostic, predisposing, functional or oncogenic value. Data constituting personal or identifying information should not be entered (e.g. protected health information (PHI) as defined by HIPAA in the U.S. and/or comparable laws in your jurisdiction).',placeholder:"No description provided",required:!0}},{key:"source",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",addText:"Specify a Source",maxCount:1,required:!0},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{key:"evidenceLevel",type:"evidence-level-select",templateOptions:{required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array"},{key:"drugInteractionType",type:"drug-interaction-select"},{key:"phenotypes",type:"phenotype-array"},{key:"evidenceRating",type:"rating-input",templateOptions:{label:"Rating",helpText:"Please rate your evidence on a scale of one to five stars. Use the star rating descriptions for guidance.",required:!0}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Evidence Item Revision",submitSize:"large"}}]}]}ngOnInit(){this.destroy$=new ye.xQ}ngAfterViewInit(){this.revisableFieldsGQL.fetch({evidenceId:this.evidenceId}).subscribe(({data:{evidenceItem:n}})=>{n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving evidenceItem."),console.error(n)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var r,s;return{fields:Object.assign(Object.assign({},n),{variant:[n.variant],source:[n.source],drugs:n.drugs.length>0?n.drugs:[],disease:[n.disease],comment:null===(r=this.formModel)||void 0===r?void 0:r.fields.comment,drugInteractionType:n.drugInteractionType,organization:null===(s=this.formModel)||void 0===s?void 0:s.fields.organization,evidenceRating:n.evidenceRating})}}submitRevision(n){let r=this.toRevisionInput(n);if(r){let s=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:r});s.submitSuccess$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{a&&(this.success=!0)}),s.submitError$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{a&&(this.errorMessages=a,this.success=!1)}),s.isSubmitting$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{this.loading=a})}}toRevisionInput(n){var r,s;if(n){const a=n.fields;return{id:a.id,comment:a.comment,fields:{variantOrigin:a.variantOrigin,description:x.xt(a.description),variantId:a.variant[0].id,sourceId:a.source[0].id,evidenceType:a.evidenceType,evidenceDirection:a.evidenceDirection,clinicalSignificance:a.clinicalSignificance,diseaseId:x.uP(null===(r=a.disease[0])||void 0===r?void 0:r.id),evidenceLevel:a.evidenceLevel,phenotypeIds:a.phenotypes.map(g=>g.id),rating:a.evidenceRating,drugIds:a.drugs.map(g=>g.id),drugInteractionType:x.uP(a.drugInteractionType)},organizationId:null===(s=n.fields.organization)||void 0===s?void 0:s.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.Vj7),e.Y36(Te.Y),e.Y36(f.Q_P))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise-form"]],inputs:{evidenceId:"evidenceId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,r){1&n&&(e.TgZ(0,"nz-spin",0),e.YNc(1,Re,3,3,"form",1),e.qZA(),e.YNc(2,Ce,2,2,"ng-template",null,2,e.W1O)),2&n&&(e.Q6J("nzSpinning",r.loading),e.xp6(1),e.Q6J("ngIf",r.formModel))},directives:[S.W,d.O5,v._Y,v.JL,y.Lr,v.sg,d.tP,M.T7,l.SK,y.Nx,Ie.V,R.r,c.yS],styles:[""]}),t})();function Ae(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-evidence-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("evidenceId",n.evidenceId)}}function be(t,o){1&t&&e._uU(0,"Loading Evidence...")}const Fe=[{path:"",component:N,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(r=>{this.evidenceId=+r.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(c.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingEvidence",""],[3,"evidenceId"]],template:function(n,r){if(1&n&&(e.YNc(0,Ae,2,1,"ng-container",0),e.YNc(1,be,1,0,"ng-template",null,1,e.W1O)),2&n){const s=e.MAs(2);e.Q6J("ngIf",r.evidenceId)("ngIfElse",s)}},directives:[d.O5,Pe],styles:[""]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let Je=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.Bz.forChild(Fe),he],c.Bz]}),t})();var Qe=i(5630),Ue=i(3309),$e=i(4867),Ye=i(4623),Le=i(9386);let Ne=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,Je,u.KJ,m.zf,O.PV,I.ZJ,m.zf,Ue.U,$e.Q,Qe.D,Ye.K,Le.a,h.WG,l.Jb]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/8776.ed869c164e41c284.js b/server/public/8776.ed869c164e41c284.js deleted file mode 100644 index eac981661..000000000 --- a/server/public/8776.ed869c164e41c284.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8776],{6789:(Z,F,s)=>{s.d(F,{_:()=>P});var v=s(9808),y=s(7484),e=s(5109),O=s(5482),x=s(6949),S=s(19),B=s(8776),A=s(647),M=s(404),z=s(5e3);let N=(()=>{class l{}return l.\u0275fac=function(T){return new(T||l)},l.\u0275mod=z.oAB({type:l}),l.\u0275inj=z.cJS({imports:[[v.ez,x.WG,B.X0,S.j,O.cD,A.PV,M.cg,e.s]]}),l})(),P=(()=>{class l{}return l.\u0275fac=function(T){return new(T||l)},l.\u0275mod=z.oAB({type:l}),l.\u0275inj=z.cJS({imports:[[v.ez,x.WG,B.X0,y.vh,S.j,O.cD,A.PV,M.cg,N,e.s]]}),l})()},7075:(Z,F,s)=>{s.d(F,{l:()=>T});var v=s(9808),y=s(8776),e=s(5e3),O=s(9180),x=s(8227),S=s(6042),B=s(2643),A=s(1793),M=s(2683);const N={name:"org-submit-button",component:(()=>{class h extends y.fS{constructor(){super(),this._selectedOrg=void 0,this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}get selectedOrg(){return this._selectedOrg}set selectedOrg(d){this._selectedOrg=d,this.formControl.setValue(d)}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275cmp=e.Xpm({type:h,selectors:[["cvc-submit-button-type"]],features:[e.qOj],decls:5,vars:4,consts:[[3,"selectedOrg","nzSize","selectedOrgChange"],["orgButton",""],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary",3,"disabled","click"]],template:function(d,m){if(1&d){const I=e.EpF();e.TgZ(0,"cvc-form-buttons"),e.TgZ(1,"cvc-org-selector-btn-group",0,1),e.NdJ("selectedOrgChange",function(u){return m.selectedOrg=u}),e.TgZ(3,"button",2),e.NdJ("click",function(){return e.CHM(I),e.MAs(2).refreshViewer()}),e._uU(4),e.qZA(),e.qZA(),e.qZA()}2&d&&(e.xp6(1),e.Q6J("selectedOrg",m.selectedOrg)("nzSize",m.to.submitSize),e.xp6(2),e.Q6J("disabled",!m.form.valid),e.xp6(1),e.hij(" ",m.to.submitLabel," "))},directives:[O.Z,x.q,S.ix,B.dQ,A.m,M.w],styles:[""]}),h})()};var P=s(4375),l=s(1825),b=s(4182);let T=(()=>{class h{}return h.\u0275fac=function(d){return new(d||h)},h.\u0275mod=e.oAB({type:h}),h.\u0275inj=e.cJS({imports:[[v.ez,b.UX,y.X0.forChild({types:[N]}),S.sL,P.R,l.A]]}),h})()},19:(Z,F,s)=>{s.d(F,{$:()=>k,j:()=>q});var v=s(655),y=s(9808),e=s(5e3),O=s(2654),x=s(839),S=s(8929),B=s(6787),A=s(3753),M=s(3489),z=s(353);const N={leading:!0,trailing:!1};class h{constructor(n,t,i,r){this.duration=n,this.scheduler=t,this.leading=i,this.trailing=r}call(n,t){return t.subscribe(new L(n,this.duration,this.scheduler,this.leading,this.trailing))}}class L extends M.L{constructor(n,t,i,r,c){super(n),this.duration=t,this.scheduler=i,this.leading=r,this.trailing=c,this._hasTrailingValue=!1,this._trailingValue=null}_next(n){this.throttled?this.trailing&&(this._trailingValue=n,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(d,this.duration,{subscriber:this})),this.leading?this.destination.next(n):this.trailing&&(this._trailingValue=n,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const n=this.throttled;n&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),n.unsubscribe(),this.remove(n),this.throttled=null)}}function d(o){const{subscriber:n}=o;n.clearThrottle()}var m=s(7625),I=s(4850),j=s(9439),u=s(1721),X=s(4090),$=s(925),J=s(5577),Y=s(226);const U=["fixedEl"],W=["*"];var w=(()=>{return(o=w||(w={})).resize="resize",o.scroll="scroll",o.touchstart="touchstart",o.touchmove="touchmove",o.touchend="touchend",o.pageshow="pageshow",o.load="LOAD",w;var o})();function H(o){return function G(o){return"undefined"!=typeof window&&o===window}(o)?{top:0,left:0,bottom:0}:o.getBoundingClientRect()}const V="ant-affix";let k=(()=>{class o{constructor(t,i,r,c,a,f,C,g,p,R){this.nzConfigService=r,this.scrollSrv=c,this.ngZone=a,this.platform=f,this.renderer=C,this.nzResizeObserver=g,this.cdr=p,this.directionality=R,this._nzModuleName="affix",this.nzChange=new e.vpe,this.dir="ltr",this.positionChangeSubscription=O.w.EMPTY,this.offsetChanged$=new x.t(1),this.destroy$=new S.xQ,this.placeholderNode=t.nativeElement,this.document=i}get target(){const t=this.nzTarget;return("string"==typeof t?this.document.querySelector(t):t)||window}ngOnInit(){var t;null===(t=this.directionality.change)||void 0===t||t.pipe((0,m.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.registerListeners(),this.updatePosition({}),this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(t){const{nzOffsetBottom:i,nzOffsetTop:r,nzTarget:c}=t;(i||r)&&this.offsetChanged$.next(),c&&this.registerListeners()}ngAfterViewInit(){this.registerListeners()}ngOnDestroy(){this.removeListeners()}registerListeners(){if(!this.platform.isBrowser)return;this.removeListeners();const t=this.target===window?this.document.body:this.target;this.positionChangeSubscription=this.ngZone.runOutsideAngular(()=>(0,B.T)(...Object.keys(w).map(i=>(0,A.R)(this.target,i)),this.offsetChanged$.pipe((0,I.U)(()=>({}))),this.nzResizeObserver.observe(t)).pipe(function T(o,n=z.P,t=N){return i=>i.lift(new h(o,n,t.leading,t.trailing))}(20,void 0,{trailing:!0}),(0,m.R)(this.destroy$)).subscribe(i=>this.updatePosition(i))),this.timeout=setTimeout(()=>this.updatePosition({}))}removeListeners(){clearTimeout(this.timeout),this.positionChangeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}getOffset(t,i){const r=t.getBoundingClientRect(),c=H(i),a=this.scrollSrv.getScroll(i,!0),f=this.scrollSrv.getScroll(i,!1),C=this.document.body;return{top:r.top-c.top+a-(C.clientTop||0),left:r.left-c.left+f-(C.clientLeft||0),width:r.width,height:r.height}}setAffixStyle(t,i){const r=this.affixStyle,c=this.target===window;if("scroll"===t.type&&r&&i&&c||(0,u.wU)(r,i))return;const a=!!i,f=this.fixedEl.nativeElement;this.renderer.setStyle(f,"cssText",(0,u.GM)(i)),this.affixStyle=i,a?f.classList.add(V):f.classList.remove(V),this.updateRtlClass(),(i&&!r||!i&&r)&&this.nzChange.emit(a)}setPlaceholderStyle(t){(0,u.wU)(t,this.placeholderStyle)||(this.renderer.setStyle(this.placeholderNode,"cssText",(0,u.GM)(t)),this.placeholderStyle=t)}syncPlaceholderStyle(t){if(!this.affixStyle)return;this.renderer.setStyle(this.placeholderNode,"cssText",""),this.placeholderStyle=void 0;const i={width:this.placeholderNode.offsetWidth,height:this.fixedEl.nativeElement.offsetHeight};this.setAffixStyle(t,Object.assign(Object.assign({},this.affixStyle),i)),this.setPlaceholderStyle(i)}updatePosition(t){if(!this.platform.isBrowser)return;const i=this.target;let r=this.nzOffsetTop;const c=this.scrollSrv.getScroll(i,!0),a=this.getOffset(this.placeholderNode,i),f=this.fixedEl.nativeElement,C={width:f.offsetWidth,height:f.offsetHeight},g={top:!1,bottom:!1};"number"!=typeof r&&"number"!=typeof this.nzOffsetBottom?(g.top=!0,r=0):(g.top="number"==typeof r,g.bottom="number"==typeof this.nzOffsetBottom);const p=H(i),R=i.innerHeight||i.clientHeight;if(c>=a.top-r&&g.top){const D=a.width;this.setAffixStyle(t,{position:"fixed",top:p.top+r,left:p.left+a.left,width:D}),this.setPlaceholderStyle({width:D,height:C.height})}else if(c<=a.top+C.height+this.nzOffsetBottom-R&&g.bottom){const D=i===window?0:window.innerHeight-p.bottom,E=a.width;this.setAffixStyle(t,{position:"fixed",bottom:D+this.nzOffsetBottom,left:p.left+a.left,width:E}),this.setPlaceholderStyle({width:E,height:a.height})}else t.type===w.resize&&this.affixStyle&&"fixed"===this.affixStyle.position&&this.placeholderNode.offsetWidth?this.setAffixStyle(t,Object.assign(Object.assign({},this.affixStyle),{width:this.placeholderNode.offsetWidth})):this.setAffixStyle(t),this.setPlaceholderStyle();"resize"===t.type&&this.syncPlaceholderStyle(t)}updateRtlClass(){const t=this.fixedEl.nativeElement;"rtl"===this.dir&&t.classList.contains(V)?t.classList.add(`${V}-rtl`):t.classList.remove(`${V}-rtl`)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.SBq),e.Y36(y.K0),e.Y36(j.jY),e.Y36(X.MF),e.Y36(e.R0b),e.Y36($.t4),e.Y36(e.Qsj),e.Y36(J.D3),e.Y36(e.sBO),e.Y36(Y.Is,8))},o.\u0275cmp=e.Xpm({type:o,selectors:[["nz-affix"]],viewQuery:function(t,i){if(1&t&&e.Gf(U,7),2&t){let r;e.iGM(r=e.CRH())&&(i.fixedEl=r.first)}},inputs:{nzTarget:"nzTarget",nzOffsetTop:"nzOffsetTop",nzOffsetBottom:"nzOffsetBottom"},outputs:{nzChange:"nzChange"},exportAs:["nzAffix"],features:[e.TTD],ngContentSelectors:W,decls:3,vars:0,consts:[["fixedEl",""]],template:function(t,i){1&t&&(e.F$t(),e.TgZ(0,"div",null,0),e.Hsn(2),e.qZA())},encapsulation:2,changeDetection:0}),(0,v.gn)([(0,j.oS)(),(0,u.Rn)(void 0)],o.prototype,"nzOffsetTop",void 0),(0,v.gn)([(0,j.oS)(),(0,u.Rn)(void 0)],o.prototype,"nzOffsetBottom",void 0),o})(),q=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[Y.vT,y.ez,$.ud]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/9020.4668e5b29104dae0.js b/server/public/9020.4a98dc48a9af4544.js similarity index 65% rename from server/public/9020.4668e5b29104dae0.js rename to server/public/9020.4a98dc48a9af4544.js index 2800ffb6b..baf5f015f 100644 --- a/server/public/9020.4668e5b29104dae0.js +++ b/server/public/9020.4a98dc48a9af4544.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9020],{7946:(G,V,e)=>{e.d(V,{x:()=>m});var d=e(9808),n=e(897),a=e(8481),S=e(3610),Z=e(8018),t=e(3580),l=e(9476),v=e(5e3);let m=(()=>{class T{}return T.\u0275fac=function(s){return new(s||T)},T.\u0275mod=v.oAB({type:T}),T.\u0275inj=v.cJS({imports:[[d.ez,a.X,S.$6,n.$,Z.e,t.Q,l.L]]}),T})()},8664:(G,V,e)=>{e.d(V,{I:()=>ie});var d=e(6654),n=e(5e3),a=e(9808),S=e(325),Z=e(8481),t=e(3610),l=e(4850),v=e(712),m=e(7484),T=e(647),N=e(3193),s=e(3098),i=e(6550),M=e(1894),E=e(8144),c=e(6949);function b(u,L){if(1&u&&(n._UZ(0,"i",13),n._uU(1)),2&u){const y=n.oxw().ngIf;n.xp6(1),n.hij(" ",y.name," ")}}function x(u,L){if(1&u&&n._UZ(0,"cvc-gene-tag",14),2&u){const y=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",y.gene)}}function $(u,L){1&u&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function Y(u,L){if(1&u&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,$,2,0,"span",1),n.qZA()),2&u){const y=L.$implicit,Q=L.last;n.xp6(1),n.hij(" ",y,""),n.xp6(1),n.Q6J("ngIf",!Q)}}function W(u,L){if(1&u&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,Y,3,2,"span",16),n.qZA()),2&u){const y=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",y.variantAliases)}}function O(u,L){if(1&u&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",y.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",y.alleleRegistryId," ")}}function J(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/flags"),n.xp6(3),n.hij(" Flags (",y.flags.totalCount,") ")}}function P(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",y.revisions.totalCount,") ")}}function z(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/comments"),n.xp6(3),n.hij(" Comments (",y.comments.totalCount,") ")}}function I(u,L){if(1&u&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,b,2,1,"ng-template",null,3,n.W1O),n.YNc(4,x,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,W,2,1,"nz-descriptions-item",6),n.YNc(8,O,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,J,4,2,"a",12),n.YNc(15,P,4,2,"a",12),n.YNc(16,z,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&u){const y=L.ngIf,Q=n.MAs(3),w=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",Q)("nzExtra",w),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",y.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",y.alleleRegistryId),n.xp6(2),n.hij(" ",y.evidenceItems.totalCount," ")}}let p=(()=>{class u{constructor(y){this.gql=y}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,l.U)(({data:y})=>y.variant))}}return u.\u0275fac=function(y){return new(y||u)(n.Y36(v.ZYZ))},u.\u0275cmp=n.Xpm({type:u,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(y,Q){1&y&&(n.TgZ(0,"div",0),n.YNc(1,I,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&y&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,Q.variant$)))},directives:[a.O5,m.bd,T.Ls,N.H,s.R7,s.uj,a.sg,i.l,M.SK,M.t3,E.NU,E.$1,S.yS,Z.j],pipes:[c.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),u})();function h(u,L){}function C(u,L){if(1&u&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,h,0,0,"ng-template",6),n.qZA(),n.BQk()),2&u){const y=n.oxw(),Q=n.MAs(2);n.xp6(1),n.Q6J("routerLink",y.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)}}function _(u,L){}function o(u,L){if(1&u){const y=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(w){return n.CHM(y),n.oxw(2).itemClosed(w)}),n.YNc(1,_,0,0,"ng-template",6),n.qZA()}if(2&u){n.oxw();const y=n.MAs(2),Q=n.oxw(),w=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",Q.onCloseClicked?0:.5)("nzPopoverContent",y)("nzMode",Q.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",w)}}function A(u,L){if(1&u&&n._UZ(0,"cvc-variant-popover",11),2&u){const y=n.oxw(3);n.Q6J("variantId",y.variant.id)}}function f(u,L){if(1&u&&n.YNc(0,A,1,1,"cvc-variant-popover",10),2&u){const y=n.oxw(2);n.Q6J("ngIf",y.enablePopover)}}function U(u,L){if(1&u&&(n.YNc(0,o,2,4,"nz-tag",7),n.YNc(1,f,1,1,"ng-template",null,8,n.W1O)),2&u){const y=n.oxw(),Q=n.MAs(4);n.Q6J("ngIf",y.enablePopover)("ngIfElse",Q)}}function j(u,L){}function q(u,L){if(1&u){const y=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(w){return n.CHM(y),n.oxw().itemClosed(w)}),n.YNc(1,j,0,0,"ng-template",6),n.qZA()}if(2&u){const y=n.oxw(),Q=n.MAs(8);n.Q6J("nzMode",y.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)}}function ne(u,L){}function te(u,L){if(1&u&&n.YNc(0,ne,0,0,"ng-template",6),2&u){n.oxw();const y=n.MAs(2);n.Q6J("ngTemplateOutlet",y)}}function oe(u,L){if(1&u&&(n._UZ(0,"i",13),n._uU(1)),2&u){const y=n.oxw();n.xp6(1),n.hij(" ",y.variant.name,"\n")}}let ie=(()=>{class u extends d.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return u.\u0275fac=function(y){return new(y||u)},u.\u0275cmp=n.Xpm({type:u,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(y,Q){if(1&y&&(n.YNc(0,C,3,2,"ng-container",0),n.YNc(1,U,3,2,"ng-template",null,1,n.W1O),n.YNc(3,q,2,2,"ng-template",null,2,n.W1O),n.YNc(5,te,1,1,"ng-template",null,3,n.W1O),n.YNc(7,oe,2,1,"ng-template",null,4,n.W1O)),2&y){const w=n.MAs(6);n.Q6J("ngIf",Q.linked)("ngIfElse",w)}},directives:[a.O5,S.yS,a.tP,Z.j,t.lU,p,T.Ls],styles:[""]}),u})()},4867:(G,V,e)=>{e.d(V,{Q:()=>E});var d=e(9808),n=e(325),a=e(8481),S=e(647),Z=e(3610),t=e(6949),l=e(7484),v=e(1894),m=e(3098),T=e(8144),N=e(3309),s=e(3630),i=e(5e3);let M=(()=>{class c{}return c.\u0275fac=function(x){return new(x||c)},c.\u0275mod=i.oAB({type:c}),c.\u0275inj=i.cJS({imports:[[d.ez,n.Bz,t.WG,l.vh,v.Jb,m.q6,a.X,S.PV,T.zf,N.U,s.X]]}),c})(),E=(()=>{class c{}return c.\u0275fac=function(x){return new(x||c)},c.\u0275mod=i.oAB({type:c}),c.\u0275inj=i.cJS({imports:[[d.ez,n.Bz,a.X,Z.$6,S.PV,M]]}),c})()},3154:(G,V,e)=>{e.d(V,{_:()=>n});var d=e(712);function n(a){var S;switch(a.value){case"ascend":S=d.SrV.Asc;break;case"descend":S=d.SrV.Desc;break;default:return}return{column:a.key,direction:S}}},1837:(G,V,e)=>{e.d(V,{_:()=>a});var d=e(712),n=e(7905);class a extends n.nT{constructor(){super(n.yQ.ASSERTION),this.validStates.set(d.uBv.Predictive,{entityType:d.uBv.Predictive,clinicalSignificance:[d.Vr2.Sensitivityresponse,d.Vr2.Resistance,d.Vr2.AdverseResponse,d.Vr2.ReducedSensitivity,d.Vr2.Na],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(d.uBv.Diagnostic,{entityType:d.uBv.Diagnostic,clinicalSignificance:[d.Vr2.Positive,d.Vr2.Negative],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(d.uBv.Prognostic,{entityType:d.uBv.Prognostic,clinicalSignificance:[d.Vr2.BetterOutcome,d.Vr2.PoorOutcome,d.Vr2.Na],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(d.uBv.Predisposing,{entityType:d.uBv.Predisposing,clinicalSignificance:[d.Vr2.Pathogenic,d.Vr2.LikelyPathogenic,d.Vr2.Benign,d.Vr2.LikelyBenign,d.Vr2.UncertainSignificance],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},3759:(G,V,e)=>{e.d(V,{D:()=>_});var d=e(9808),n=e(915);const S={name:"acmg-code-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"ACMG/AMP Code(s)",required:!1,addText:"Add an ACMG/AMP Code",helpText:'Refers to evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP in Richards et. al. 2015.'},fieldArray:{type:"acmg-code-select",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:(o,A)=>{const f=(null==A?void 0:A.form)?A.form.get("evidenceType"):null;return f&&f.value?`${(0,n.E)(f.value)} Assertions requires at least one ACMG code to be specified.`:"ACMG Code is required."}}},hooks:{onInit:o=>{var A;const f=o.templateOptions,U=null===(A=null==o?void 0:o.options)||void 0===A?void 0:A.formState,j=(null==o?void 0:o.form)?o.form.get("evidenceType"):null;!j||(f.vcSub=j.valueChanges.subscribe(q=>{U.requiresAcmgCodes(q)?(f.hidden=!1,f.required=!0):(f.hidden=!0,f.required=!1,o.model.length>0&&(o.model.splice(1),f.remove(0)))}))}}}};var Z=e(8776),t=e(8390),l=e(4182),v=e(3793),m=e(8929),T=e(7625),N=e(4850),s=e(5e3),i=e(712),M=e(8054),E=e(6949),c=e(8144),b=e(8481),x=e(8926);function $(o,A){if(1&o&&(s.TgZ(0,"span"),s._UZ(1,"span",8),s.ALo(2,"highlightTypeahead"),s._uU(3),s.qZA()),2&o){const f=s.oxw().$implicit,U=s.oxw(3);s.xp6(1),s.Q6J("innerHtml",s.xi3(2,2,f.code,U.searchVal),s.oJD),s.xp6(2),s.hij(" - ",f.description," ")}}function Y(o,A){if(1&o&&(s.TgZ(0,"nz-option",6),s.TgZ(1,"nz-space"),s.YNc(2,$,4,5,"span",7),s.qZA(),s.qZA()),2&o){const f=A.$implicit;s.Q6J("nzLabel",f.code)("nzValue",f)}}function W(o,A){if(1&o&&(s.ynx(0),s.YNc(1,Y,3,2,"nz-option",5),s.BQk()),2&o){const f=A.ngrxLet;s.xp6(1),s.Q6J("ngForOf",f)}}function O(o,A){1&o&&s._uU(0," No ACMG code found in CIViC that matches the string provided. ")}function J(o,A){if(1&o){const f=s.EpF();s.ynx(0),s.TgZ(1,"nz-select",2),s.NdJ("nzOnSearch",function(j){return s.CHM(f),s.oxw().onSearch(j)}),s.YNc(2,W,2,1,"ng-container",3),s.qZA(),s.YNc(3,O,1,0,"ng-template",null,4,s.W1O),s.BQk()}if(2&o){const f=s.MAs(4),U=s.oxw();s.xp6(1),s.Q6J("formControl",U.formControl)("formlyAttributes",U.field)("nzPlaceHolder",U.to.placeholder?U.to.placeholder:null)("nzNotFoundContent",f)("nzShowArrow",U.to.showArrow)("nzFilterOption",U.to.filterOption),s.xp6(1),s.Q6J("ngrxLet",U.codes$)}}function P(o,A){if(1&o&&(s.TgZ(0,"nz-tag"),s._uU(1),s.qZA()),2&o){const f=s.oxw();s.xp6(1),s.Oqu(f.formControl.value.code)}}const I={name:"acmg-code-select",extends:"select",component:(()=>{class o extends Z.fS{constructor(f){super(),this.acmgCodeGQL=f,this.destroy$=new m.xQ,this.searchVal=""}ngOnInit(){this.queryRef=this.acmgCodeGQL.watch({code:this.searchVal}),this.codes$=this.queryRef.valueChanges.pipe((0,T.R)(this.destroy$),(0,N.U)(({data:f})=>f.acmgCodesTypeahead))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSearch(f){var U;this.searchVal=f,null===(U=this.queryRef)||void 0===U||U.refetch({code:f})}}return o.\u0275fac=function(f){return new(f||o)(s.Y36(i.$G1))},o.\u0275cmp=s.Xpm({type:o,selectors:[["cvc-acmg-code-select-type"]],features:[s.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["acmgCodeItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[4,"nzSpaceItem"],[3,"innerHtml"]],template:function(f,U){if(1&f&&(s.YNc(0,J,5,7,"ng-container",0),s.YNc(1,P,2,1,"ng-template",null,1,s.W1O)),2&f){const j=s.MAs(2);s.Q6J("ngIf",!(null!=U.formControl.value&&U.formControl.value.id))("ngIfElse",j)}},directives:[d.O5,M.Vq,l.JJ,l.oH,Z.VQ,E.eJ,d.sg,M.Ip,c.NU,c.$1,b.j],pipes:[x.A],styles:[""]}),o})(),wrappers:["form-field"],defaultOptions:{templateOptions:{placeholder:"None specified."},modelOptions:{debounce:{default:500}}}};var p=e(9444),h=e(7338);let C=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[[d.ez,l.UX,E.WG,v.F,b.X,M.LV,c.zf,p.s,Z.X0.forChild({types:[I]}),h.z]]}),o})(),_=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[[d.ez,Z.X0.forChild({types:[S]}),t.N,C]]}),o})()},3314:(G,V,e)=>{e.d(V,{p:()=>s});var d=e(9808),n=e(4182),a=e(8776),S=e(9657),Z=e(712),t=e(444);const l=new S.t,v={TIER_I_LEVEL_A:"Biomarkers showing therapeutic response to FDA-approved therapy, or therapy included in professional guidelines",TIER_I_LEVEL_B:"Biomarkers showing therapeutic response based on well-powered studies with consensus from experts in the field",TIER_II_LEVEL_C:"FDA-approved therapies for different tumor types or investigational therapies, or multiple small published studies with some consensus",TIER_II_LEVEL_D:"Biomarkers that show plausible therapeutic significance based on preclinical studies",TIER_III:"Somatic variants in cancer genes reported in the same or different cancer types with unknown clinical significance and variants in cancer genes that have not been reported in any cancers",TIER_IV:"Benign or likely benign germline variants observed at significant allele frequencies in the general population or specific subpopulation","Not Applicable":"AMP/ASCO/CAP category is not relevant to this assertion."},m={name:"amp-level-input",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{placeholder:"Please Select an AMP/ASCO/CAP Category",label:"AMP/ASCO/CAP Category",helpText:'If applicable, please provide the AMP/ASCO/CAP somatic variant classification.',required:!1,options:(0,t.o6)(Z.iwm).map(i=>({value:i,label:l.transform(i,"verbose")}))},hideExpression:(i,M,E)=>{var c;return(null===(c=null==E?void 0:E.templateOptions)||void 0===c?void 0:c.hidden)||!1},hooks:{onInit:i=>{var M;const E=i.templateOptions,c=null===(M=null==i?void 0:i.options)||void 0===M?void 0:M.formState,b=(null==i?void 0:i.form)?i.form.get("evidenceType"):null;!b||(E.vcSub=b.valueChanges.subscribe(x=>{c.requiresAmpLevel(x)?(E.hidden=!1,E.required=!0):(E.hidden=!0,E.required=!1,i.model[i.key]=void 0)}))}},expressionProperties:{"templateOptions.optionText":(i,M,E)=>v[i.ampLevel]}}};var T=e(9444),N=e(5e3);let s=(()=>{class i{}return i.\u0275fac=function(E){return new(E||i)},i.\u0275mod=N.oAB({type:i}),i.\u0275inj=N.cJS({imports:[[d.ez,n.UX,T.s,a.X0.forChild({types:[m]})]]}),i})()},9946:(G,V,e)=>{e.d(V,{d:()=>I});var d=e(9808),n=e(8776),a=e(8054),S=e(4182),Z=e(8144),t=e(3618),l=e(6949),v=e(7008),m=e(6042),T=e(1047),N=e(9444),s=e(7625),i=e(373),M=e(4850),E=e(8929),c=e(5e3),b=e(712),x=e(9001);function $(p,h){if(1&p&&(c.ynx(0),c.TgZ(1,"nz-option",5),c._uU(2),c.qZA(),c.BQk()),2&p){const C=h.ngIf;c.xp6(1),c.Q6J("nzLabel",C.tooltip)("nzValue",C.eid),c.xp6(1),c.hij(" ",C.label," ")}}function Y(p,h){1&p&&c._uU(0," No EID matches the provided ID ")}function W(p,h){if(1&p){const C=c.EpF();c.ynx(0),c.TgZ(1,"nz-select",2),c.NdJ("nzOnSearch",function(o){return c.CHM(C),c.oxw().to.onSearch(o)}),c.YNc(2,$,3,3,"ng-container",3),c.ALo(3,"ngrxPush"),c.qZA(),c.YNc(4,Y,1,0,"ng-template",null,4,c.W1O),c.BQk()}if(2&p){const C=c.MAs(5),_=c.oxw();c.xp6(1),c.Q6J("formControl",_.formControl)("formlyAttributes",_.field)("nzPlaceHolder",_.to.placeholder?_.to.placeholder:null)("nzNotFoundContent",C)("nzShowArrow",_.to.showArrow)("nzFilterOption",_.to.filterOption),c.xp6(1),c.Q6J("ngIf",c.lcZ(3,7,_.eid$))}}function O(p,h){if(1&p&&c._UZ(0,"cvc-evidence-tag",6),2&p){const C=c.oxw();c.Q6J("evidence",C.formControl.value)}}const P={name:"evidence-input",component:(()=>{class p extends n.fS{constructor(C){super(),this.evidenceGQL=C,this.destroy$=new E.xQ,this.defaultOptions={templateOptions:{placeholder:"Enter Evidence",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:""}}}ngOnInit(){this.queryRef=this.evidenceGQL.watch({id:99999999}),this.eid$=this.queryRef.valueChanges.pipe((0,s.R)(this.destroy$),(0,i.j)("data","evidenceItem"),(0,M.U)(C=>{if(C)return{value:C.id,label:C.name,eid:C}}))}ngAfterViewInit(){this.to.onSearch=C=>{if(C.length{class p{}return p.\u0275fac=function(C){return new(C||p)},p.\u0275mod=c.oAB({type:p}),p.\u0275inj=c.cJS({imports:[[d.ez,S.u5,S.UX,l.WG,n.X0.forChild({types:[P]}),a.LV,Z.zf,t.ZJ,m.sL,T.o7,z.i,v.B,N.s]]}),p})()},464:(G,V,e)=>{e.d(V,{N:()=>t});var d=e(9808),n=e(4182);const a={name:"fda-approval-checkbox",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"FDA Regulatory Approval?",helpText:"Select yes if the referenced therapy is approved for use by the FDA in the specific disease associated with the Assertion (as in a listing here.)",placeholder:"None Specified",options:[{value:!0,label:"Yes"},{value:!1,label:"No"},{value:void 0,label:""}]},hooks:{onInit:l=>{var v;if(l){const m=l.templateOptions,T=(null==l?void 0:l.form)?l.form.get("evidenceType"):null,N=null===(v=null==l?void 0:l.options)||void 0===v?void 0:v.formState;if(!T||!m)return;m.ncSub=T.valueChanges.subscribe(s=>{var i,M;s&&N.allowsFdaApproval(s)?(m.hidden=!1,m.required=!0):(null===(M=null===(i=l.form)||void 0===i?void 0:i.get(l.key))||void 0===M||M.setValue(void 0),m.modelCallback(void 0),l.model[l.key]=void 0,m.hidden=!0,m.required=!1)})}},onDestroy:l=>{var v;if(l){const m=l.templateOptions;null===(v=null==m?void 0:m.ncSub)||void 0===v||v.unsubscribe()}}}}};var S=e(8776),Z=e(5e3);let t=(()=>{class l{}return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=Z.oAB({type:l}),l.\u0275inj=Z.cJS({imports:[[d.ez,n.UX,S.X0.forChild({types:[a]})]]}),l})()},7795:(G,V,e)=>{e.d(V,{k:()=>t});var d=e(9808),n=e(4182),a=e(8776);const S={name:"fda-test-checkbox",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"FDA Companion Test?",placeholder:"None Specified",helpText:'Select Yes if an FDA approved companion test exists for the variant and drug associated with the Assertion (such as tests listed here).',options:[{value:!0,label:"Yes"},{value:!1,label:"No"},{value:void 0,label:""}]},hooks:{onInit:l=>{var v;if(l){const m=l.templateOptions,T=(null==l?void 0:l.form)?l.form.get("fdaRegulatoryApproval"):null,N=(null==l?void 0:l.form)?l.form.get("evidenceType"):null,s=null===(v=null==l?void 0:l.options)||void 0===v?void 0:v.formState;if(!T||!m||!N)return;m.etSub=N.valueChanges.subscribe(i=>{var M,E;i&&s.allowsFdaApproval(i)?(m.hidden=!1,m.required=!0):(null===(E=null===(M=l.form)||void 0===M?void 0:M.get(l.key))||void 0===E||E.setValue(void 0),m.modelCallback(void 0),l.model[l.key]=void 0,m.hidden=!0,m.required=!1)}),m.ncSub=T.valueChanges.subscribe(i=>{i?(m.hidden=!1,m.required=!0,m.modelCallback(!0),l.model[l.key]=!0):(m.modelCallback(!1),l.model[l.key]=!1,m.hidden=!0,m.required=!1)})}},onDestroy:l=>{var v,m;if(l){const T=l.templateOptions;null===(v=null==T?void 0:T.ncSub)||void 0===v||v.unsubscribe(),null===(m=null==T?void 0:T.etSub)||void 0===m||m.unsubscribe()}}}}};var Z=e(5e3);let t=(()=>{class l{}return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=Z.oAB({type:l}),l.\u0275inj=Z.cJS({imports:[[d.ez,n.UX,a.X0.forChild({types:[S]})]]}),l})()},5486:(G,V,e)=>{e.d(V,{$:()=>W});var d=e(9808),n=e(8776),a=e(8929),S=e(7625),Z=e(4850),t=e(5e3),l=e(712),v=e(8054),m=e(4182),T=e(6949),N=e(8144),s=e(8481);function i(O,J){if(1&O&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&O){const P=t.oxw().$implicit;t.xp6(1),t.hij(" ",P.name," ")}}function M(O,J){if(1&O&&(t.TgZ(0,"nz-option",6),t.TgZ(1,"nz-space"),t.YNc(2,i,2,1,"span",7),t.qZA(),t.qZA()),2&O){const P=J.$implicit;t.Q6J("nzLabel",P.name)("nzValue",P)}}function E(O,J){if(1&O&&(t.ynx(0),t.YNc(1,M,3,2,"nz-option",5),t.BQk()),2&O){const P=J.ngrxLet;t.xp6(1),t.Q6J("ngForOf",P)}}function c(O,J){1&O&&t._uU(0," No NCCN Guideline found in CIViC that matches the string provided. ")}function b(O,J){if(1&O){const P=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",2),t.NdJ("nzOnSearch",function(I){return t.CHM(P),t.oxw().onSearch(I)}),t.YNc(2,E,2,1,"ng-container",3),t.qZA(),t.YNc(3,c,1,0,"ng-template",null,4,t.W1O),t.BQk()}if(2&O){const P=t.MAs(4),z=t.oxw();t.xp6(1),t.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzNotFoundContent",P)("nzShowArrow",z.to.showArrow)("nzFilterOption",z.to.filterOption),t.xp6(1),t.Q6J("ngrxLet",z.guidelines$)}}function x(O,J){if(1&O&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&O){const P=t.oxw();t.xp6(1),t.Oqu(P.formControl.value.name)}}const Y={name:"nccn-guideline-input",extends:"select",wrappers:["form-field"],component:(()=>{class O extends n.fS{constructor(P){super(),this.nccnGuidelineGQL=P,this.destroy$=new a.xQ,this.searchVal=""}ngOnInit(){this.queryRef=this.nccnGuidelineGQL.watch({name:this.searchVal}),this.guidelines$=this.queryRef.valueChanges.pipe((0,S.R)(this.destroy$),(0,Z.U)(({data:P})=>P.nccnGuidelinesTypeahead))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSearch(P){var z;null===(z=this.queryRef)||void 0===z||z.refetch({name:P})}}return O.\u0275fac=function(P){return new(P||O)(t.Y36(l.lfy))},O.\u0275cmp=t.Xpm({type:O,selectors:[["cvc-nccn-guideline-input-type"]],features:[t.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["nccnItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[4,"nzSpaceItem"]],template:function(P,z){if(1&P&&(t.YNc(0,b,5,7,"ng-container",0),t.YNc(1,x,2,1,"ng-template",null,1,t.W1O)),2&P){const I=t.MAs(2);t.Q6J("ngIf",!(null!=z.formControl.value&&z.formControl.value.id))("ngIfElse",I)}},directives:[d.O5,v.Vq,m.JJ,m.oH,n.VQ,T.eJ,d.sg,v.Ip,N.NU,N.$1,s.j],styles:[""]}),O})(),defaultOptions:{templateOptions:{label:"NCCN Guideline",placeholder:"None specified",helpText:'If applicable, please provide cancer (e.g., Breast Cancer) and version (e.g., 5.2016) for the appropriate NCCN guideline.'},modelOptions:{debounce:{default:500}}}};let W=(()=>{class O{}return O.\u0275fac=function(P){return new(P||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({imports:[[d.ez,m.UX,T.WG,v.LV,N.zf,s.X,n.X0.forChild({types:[Y]})]]}),O})()},4902:(G,V,e)=>{e.d(V,{a:()=>l});var d=e(9808);const n={name:"nccn-version-input",extends:"input",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"NCCN Guideline Version",placeholder:"None specified"},validators:["format"],validation:{messages:{required:"If you specify an NCCN Guideline it must have a version."}},hideExpression:(v,m,T)=>!v.nccnGuideline,hooks:{onInit:v=>{if(v){const m=v.templateOptions,T=(null==v?void 0:v.form)?v.form.get("nccnGuideline"):null;if(!T||!m)return;m.ncSub=T.valueChanges.subscribe(N=>{N?m.required=!0:(m.required=!1,v.model[v.key]=void 0)})}},onDestroy:v=>{var m;if(v){const T=v.templateOptions;null===(m=null==T?void 0:T.ncSub)||void 0===m||m.unsubscribe()}}}}};var a=e(4182),S=e(8776),Z=e(5e3);function t(v){return/^\d{1,2}\.\d{4}$/.test(v.value)?{format:!0}:null}let l=(()=>{class v{}return v.\u0275fac=function(T){return new(T||v)},v.\u0275mod=Z.oAB({type:v}),v.\u0275inj=Z.cJS({imports:[[d.ez,a.UX,S.X0.forChild({types:[n],validators:[{name:"format",validation:t}],validationMessages:[{name:"format",message:"The NCCN Guideline version must be in the format {version number}.{year}."}]})]]}),v})()},9754:(G,V,e)=>{e.d(V,{K:()=>z});var d=e(9808),n=e(767),a=e(9444),S=e(6949),Z=e(8776),t=e(6042),l=e(7484),v=e(5482),m=e(4546),T=e(1894),N=e(647),s=e(3640),i=e(3610),M=e(8144),E=e(3618),c=e(5109),b=e(6789),x=e(5e3),$=e(2643),Y=e(2683),W=e(8965);function O(I,p){if(1&I){const h=x.EpF();x.TgZ(0,"cvc-evidence-table",4),x.NdJ("selectedEids",function(_){return x.CHM(h),x.oxw().onEidSelectionChange(_)}),x.qZA()}if(2&I){const h=x.oxw();x.Q6J("initialPageSize",15)("initialUserFilters",h.evidenceGridFilters)("initialSelectedEids",h.alreadySelected)}}const P={wrappers:[{name:"evidence-manager",component:(()=>{class I extends Z.n2{constructor(){super(...arguments),this.managerVisible=!1,this.alreadySelected=[],this.managerSelectedEids=[],this.evidenceGridFilters={eidInput:void 0,diseaseNameInput:void 0,drugNameInput:void 0,descriptionInput:void 0,evidenceLevelInput:void 0,evidenceTypeInput:void 0,evidenceDirectionInput:void 0,clinicalSignificanceInput:void 0,variantOriginInput:void 0,evidenceRatingInput:void 0,variantNameInput:void 0,geneSymbolInput:void 0}}handleOpen(){var h,C,_;if(null===(h=this.field.parent)||void 0===h?void 0:h.model){const o=null===(C=this.field.parent)||void 0===C?void 0:C.model;this.evidenceGridFilters.geneSymbolInput=1==(null===(_=o.gene)||void 0===_?void 0:_.length)&&o.gene[0]?o.gene[0].name:void 0,this.evidenceGridFilters.variantNameInput=1==o.variant.length&&o.variant[0]?o.variant[0].name:void 0,this.evidenceGridFilters.evidenceTypeInput=o.evidenceType?o.evidenceType:void 0,this.evidenceGridFilters.diseaseNameInput=1==o.disease.length&&o.disease[0]?o.disease[0].name:void 0}this.model&&(this.alreadySelected=this.model.filter(o=>o)),this.managerVisible=!0}handleCancel(){this.managerVisible=!1}handleOk(){this.managerVisible=!1;const h=this.managerSelectedEids;for(;this.formControl.value.lengthh.length;)this.to.remove(this.formControl.value.length-1);h.forEach((C,_)=>{this.field.formControl.controls[_].setValue(C)}),this.to.eidCallback&&this.to.eidCallback(h)}onEidSelectionChange(h){this.managerSelectedEids=h}}return I.\u0275fac=function(){let p;return function(C){return(p||(p=x.n5z(I)))(C||I)}}(),I.\u0275cmp=x.Xpm({type:I,selectors:[["cvc-with-evidence-manager-wrapper"]],features:[x.qOj],decls:7,vars:2,consts:[["fieldComponent",""],["nz-button","","type","button","nzType","default",3,"click"],["nzCentered","","nzClosable","","nzOkText","Select Evidence Items","nzWidth","100%",3,"nzVisible","nzContent","nzVisibleChange","nzOnCancel","nzOnOk"],["evidenceManager",""],["mode","select","cvcTitle","Evidence Manager",3,"initialPageSize","initialUserFilters","initialSelectedEids","selectedEids"]],template:function(h,C){if(1&h&&(x.GkF(0,null,0),x.TgZ(2,"button",1),x.NdJ("click",function(){return C.handleOpen()}),x._uU(3,"Show Evidence Manager"),x.qZA(),x.TgZ(4,"nz-modal",2),x.NdJ("nzVisibleChange",function(o){return C.managerVisible=o})("nzOnCancel",function(){return C.handleCancel()})("nzOnOk",function(){return C.handleOk()}),x.qZA(),x.YNc(5,O,1,3,"ng-template",null,3,x.W1O)),2&h){const _=x.MAs(6);x.xp6(4),x.Q6J("nzVisible",C.managerVisible)("nzContent",_)}},directives:[t.ix,$.dQ,Y.w,s.du,W.a],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),I})()}]};let z=(()=>{class I{}return I.\u0275fac=function(h){return new(h||I)},I.\u0275mod=x.oAB({type:I}),I.\u0275inj=x.cJS({imports:[[d.ez,S.WG,Z.X0.forChild(P),T.Jb,l.vh,v.cD,b._,c.s,m.U5,N.PV,t.sL,M.zf,i.$6,a.s,n.Q,E.ZJ,s.Qp]]}),I})()},5878:(G,V,e)=>{e.r(V),e.d(V,{AssertionsReviseModule:()=>qe});var d=e(9808),n=e(325),a=e(373),S=e(1059),Z=e(4850),t=e(5e3),l=e(712),v=e(9350),m=e(8992),T=e(8144),N=e(3618),s=e(3193),i=e(8664),M=e(1945),E=e(647),c=e(1894),b=e(8616),x=e(6949);function $(g,D){if(1&g&&(t.TgZ(0,"span",12),t.TgZ(1,"strong"),t._uU(2),t.qZA(),t._uU(3," Parents:"),t.qZA()),2&g){const r=t.oxw(2).ngIf;t.xp6(2),t.Oqu(r.name)}}function Y(g,D){if(1&g&&(t.TgZ(0,"span",13),t.TgZ(1,"a",14),t._UZ(2,"cvc-gene-tag",15),t.qZA(),t.TgZ(3,"a",14),t._UZ(4,"cvc-variant-tag",16),t.qZA(),t.qZA()),2&g){const r=t.oxw(2).ngIf;t.xp6(1),t.MGl("routerLink","/genes/",r.gene.id,""),t.xp6(1),t.Q6J("gene",r.gene),t.xp6(1),t.MGl("routerLink","/variants/",r.variant.id,""),t.xp6(1),t.Q6J("variant",r.variant)}}function W(g,D){1&g&&(t.TgZ(0,"nz-space",9),t.YNc(1,$,4,1,"span",10),t.YNc(2,Y,5,4,"span",11),t.qZA())}function O(g,D){1&g&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function J(g,D){1&g&&(t.TgZ(0,"nz-row",17),t.TgZ(1,"div",18),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}function P(g,D){if(1&g&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.YNc(2,W,3,0,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-page-header",3),t.TgZ(5,"nz-page-header-title",4),t._uU(6," REVISE "),t._UZ(7,"i",5),t._uU(8),t.qZA(),t.TgZ(9,"nz-page-header-content"),t.TgZ(10,"div",6),t.YNc(11,O,2,0,"div",7),t.ALo(12,"ngrxPush"),t.YNc(13,J,3,0,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&g){const r=D.ngIf,R=t.MAs(3),B=t.MAs(14),H=t.oxw();t.xp6(1),t.Q6J("displayName",r.name)("relationsTpl",R),t.xp6(7),t.hij(" ",r.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(12,5,H.isSignedIn$))("ngIfElse",B)}}let z=(()=>{class g{constructor(r,R,B){this.gql=r,this.route=R,this.viewerService=B,this.routeSub=this.route.params.subscribe(H=>{let F=this.gql.watch({assertionId:+H.assertionId}).valueChanges;this.loading$=F.pipe((0,a.j)("loading"),(0,S.O)(!0)),this.assertion$=F.pipe((0,a.j)("data","assertion"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,Z.U)(r=>r.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(l.A94),t.Y36(n.gz),t.Y36(v.a))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertions-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["assertionRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:assertion"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,R){1&r&&(t.YNc(0,P,15,7,"ng-container",0),t.ALo(1,"async")),2&r&&t.Q6J("ngIf",t.lcZ(1,1,R.assertion$))},directives:[d.O5,m.I,T.NU,T.$1,N.ZU,n.yS,s.H,i.I,M.$O,M.u9,E.Ls,M.u5,n.lC,c.SK,c.t3,b.u],pipes:[d.Ov,x.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),g})();var I=e(7484),p=e(6559),h=e(4182),C=e(5109),_=e(4546),o=e(2359),A=e(6042),f=e(7525),U=e(8776),j=e(1825),q=e(7008),ne=e(4375),te=e(7695),oe=e(7075),ie=e(8390),u=e(3773),L=e(5452),y=e(5743),Q=e(5457),w=e(8006),ae=e(7462),le=e(4623),de=e(3594),pe=e(3643),ge=e(1135),me=e(2789),ue=e(5932),ve=e(3416),he=e(2480),fe=e(1830),ye=e(4581),ze=e(1605),Ce=e(5926),Te=e(1270),xe=e(3314),Ae=e(3759),Oe=e(4902),Me=e(5486),Ie=e(464),_e=e(7795),Se=e(5472),Pe=e(9946),Ee=e(9754),Ze=e(4889);let Ne=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,n.Bz,h.UX,C.s,_.U5,o.L,c.Jb,A.sL,f.j,U.X0,j.A,q.B,ne.R,te.C,oe.l,ie.N,u.g,L.C,y.W,Q.$,w.I,ae.o,le.K,de.q,pe.q,ge.C,me.o,ue.A,ve.g,he.r,fe.S,ye.e,ze.e,Ce.J,Te.i,xe.p,Ae.D,Oe.a,Me.$,Ie.N,_e.k,Se.r,Pe.d,Ee.K,Ze.E]]}),g})(),Ve=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,x.WG,c.Jb,I.vh,p.H0,T.zf,Ne]]}),g})();var Le=e(6123),De=e(8929),Re=e(1837),K=e(6738),se=e(7625),Fe=e(9169),Ue=e(822);function Je(g,D){1&g&&t.GkF(0)}function be(g,D){if(1&g){const r=t.EpF();t.TgZ(0,"formly-form",6),t.NdJ("modelChange",function(B){return t.CHM(r),t.oxw(2).formModel=B}),t.qZA()}if(2&g){const r=t.oxw(2);t.Q6J("form",r.formGroup)("fields",r.formFields)("model",r.formModel)("options",r.formOptions)}}function Qe(g,D){if(1&g){const r=t.EpF();t.TgZ(0,"form",3),t.NdJ("ngSubmit",function(){t.CHM(r);const B=t.oxw();return B.reviseAssertion(B.formModel)}),t.YNc(1,Je,1,0,"ng-container",4),t.YNc(2,be,1,4,"formly-form",5),t.qZA()}if(2&g){const r=t.oxw(),R=t.MAs(3);t.Q6J("formGroup",r.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",R),t.xp6(1),t.Q6J("ngIf",!r.success)}}function Be(g,D){if(1&g&&(t.ynx(0),t.TgZ(1,"nz-form-item"),t._UZ(2,"cvc-form-errors-alert",8),t.qZA(),t.BQk()),2&g){const r=t.oxw(2);t.xp6(2),t.Q6J("errors",r.errorMessages)}}function Ge(g,D){1&g&&(t.TgZ(0,"p"),t._uU(1,"View it on the "),t.TgZ(2,"a",12),t._uU(3,"Revisions Page"),t.qZA(),t._uU(4," or suggest another revision below."),t.qZA())}function Ye(g,D){if(1&g&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.YNc(2,Ge,5,0,"ng-template",10,11,t.W1O),t.BQk()),2&g){const r=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",r)}}function We(g,D){if(1&g&&(t.YNc(0,Be,3,1,"ng-container",7),t.YNc(1,Ye,4,1,"ng-container",7)),2&g){const r=t.oxw();t.Q6J("ngIf",r.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",r.success)}}let $e=(()=>{class g{constructor(r,R,B){this.suggestAssertionRevisionGQL=r,this.networkErrorService=R,this.revisableFieldsGQL=B,this.destroy$=new De.xQ,this.formGroup=new h.cw({}),this.formOptions={formState:new Re._},this.success=!1,this.errorMessages=[],this.loading=!0,this.reviseAssertion=k=>{let ce=this.toReviseInput(k);if(ce){let re=this.suggestAssertionRevisionMutator.mutate(this.suggestAssertionRevisionGQL,{input:ce});re.submitSuccess$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{ee&&(this.success=!0)}),re.submitError$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{ee&&(this.errorMessages=ee,this.success=!1)}),re.isSubmitting$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{this.loading=ee})}},this.suggestAssertionRevisionMutator=new Le.U(R),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Assertion Revision Form"},fieldGroup:[{key:"gene",type:"gene-array",templateOptions:{maxCount:1,required:!0}},{key:"variant",type:"variant-array",templateOptions:{required:!0,maxCount:1,allowCreate:!1}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1,allowCreate:!1}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{label:"Assertion Type",required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{label:"Assertion Direction",required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array",templateOptions:{allowCreate:!1}},{key:"drugInteractionType",type:"drug-interaction-select",templateOptions:{}},{key:"ampLevel",type:"amp-level-input",templateOptions:{}},{key:"acmgCodes",type:"acmg-code-array",templateOptions:{label:"ACMG/AMP Code(s)"}},{key:"phenotypes",type:"phenotype-array",templateOptions:{}},{key:"nccnGuideline",type:"nccn-guideline-input",templateOptions:{}},{key:"nccnGuidelineVersion",type:"nccn-version-input",templateOptions:{}},{key:"fdaRegulatoryApproval",type:"fda-approval-checkbox",templateOptions:{modelCallback:k=>{this.formModel.fields.fdaRegulatoryApproval=k}}},{key:"fdaCompanionTest",type:"fda-test-checkbox",templateOptions:{modelCallback:k=>{this.formModel.fields.fdaCompanionTest=k}}},{key:"summary",type:"cvc-textarea",templateOptions:{label:"Assertion Summary",helpText:"A short, one sentence summary of this new assertion",placeholder:"No description provided",required:!0}},{key:"description",type:"cvc-textarea",wrappers:["form-field"],templateOptions:{label:"Assertion Statement",helpText:"A complete, original description of this new assertion, limited to one paragraph",placeholder:"No description provided",required:!0}},{key:"evidenceItems",type:"multi-field",wrappers:["form-field","evidence-manager"],templateOptions:{label:"Evidence Items",helpText:"Evidence Items that support the assertion.",addText:"Add Evidence by ID",required:!0,eidCallback:k=>{this.formModel.fields.evidenceItems=k}},fieldArray:{type:"evidence-input",templateOptions:{required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Assertion Revision",submitSize:"large"}}]}]}toReviseInput(r){var R,B,H;if(r){const F=r.fields;return{id:F.id,comment:F.comment,organizationId:null===(R=F.organization)||void 0===R?void 0:R.id,fields:{description:K.xt(F.description),summary:K.xt(F.summary),variantId:F.variant[0].id,geneId:F.gene[0].id,variantOrigin:F.variantOrigin,assertionType:F.evidenceType,clinicalSignificance:F.clinicalSignificance,diseaseId:K.uP(null===(B=F.disease[0])||void 0===B?void 0:B.id),assertionDirection:F.evidenceDirection,phenotypeIds:F.phenotypes.map(X=>X.id),drugIds:F.drugs.map(X=>X.id),drugInteractionType:K.uP(F.drugInteractionType),ampLevel:K.uP(F.ampLevel),nccnGuidelineId:K.uP(null===(H=F.nccnGuideline)||void 0===H?void 0:H.id),nccnGuidelineVersion:K.xt(F.nccnGuidelineVersion),acmgCodeIds:F.acmgCodes.map(X=>X.id),fdaCompanionTest:K.uP(F.fdaCompanionTest),fdaRegulatoryApproval:K.uP(F.fdaRegulatoryApproval),evidenceItemIds:F.evidenceItems.map(X=>X.id)}}}}toFormModel(r){var R,B;return{fields:{id:r.id,description:r.description,summary:r.summary,variant:[r.variant],gene:[r.gene],variantOrigin:r.variantOrigin,evidenceType:r.assertionType,clinicalSignificance:r.clinicalSignificance,disease:[r.disease],evidenceDirection:r.assertionDirection,phenotypes:r.phenotypes,drugs:r.drugs,drugInteractionType:r.drugInteractionType,ampLevel:r.ampLevel,evidenceItems:r.evidenceItems,nccnGuideline:r.nccnGuideline,nccnGuidelineVersion:r.nccnGuidelineVersion,acmgCodes:r.acmgCodes,fdaCompanionTest:r.fdaCompanionTest,fdaRegulatoryApproval:r.regulatoryApproval,comment:null===(R=this.formModel)||void 0===R?void 0:R.fields.comment,organization:null===(B=this.formModel)||void 0===B?void 0:B.fields.organization}}}ngAfterViewInit(){this.assertionId&&this.revisableFieldsGQL.fetch({assertionId:this.assertionId}).subscribe(({data:{assertion:r}})=>{r&&(this.formModel=this.toFormModel(r),this.loading=!1)},r=>{console.error("Error retrieving assertion."),console.error(r)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const r=this.formGroup.get("fields.comment");r&&r.markAsUntouched()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(l.c$m),t.Y36(Fe.Y),t.Y36(l.bgg))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertion-revise-form"]],inputs:{assertionId:"assertionId"},decls:4,vars:2,consts:[[3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(r,R){1&r&&(t.TgZ(0,"nz-spin",0),t.YNc(1,Qe,3,3,"form",1),t.YNc(2,We,2,2,"ng-template",null,2,t.W1O),t.qZA()),2&r&&(t.Q6J("nzSpinning",R.loading),t.xp6(1),t.Q6J("ngIf",R.formModel))},directives:[f.W,d.O5,h._Y,h.JL,_.Lr,h.sg,d.tP,U.T7,c.SK,_.Nx,Ue.V,o.r,n.yS],styles:["[_nghost-%COMP%]{display:block}"]}),g})();const je=[{path:"",component:z,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class g{constructor(r){this.route=r,this.routeParams$=this.route.params.subscribe(R=>{this.assertionId=+R.assertionId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(n.gz))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertions-suggest-page"]],decls:1,vars:1,consts:[[3,"assertionId"]],template:function(r,R){1&r&&t._UZ(0,"cvc-assertion-revise-form",0),2&r&&t.Q6J("assertionId",R.assertionId)},directives:[$e],styles:[""]}),g})(),data:{breadcrumb:"Suggest Revision"}}]}];let we=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[n.Bz.forChild(je),Ve],n.Bz]}),g})();var He=e(5630),Ke=e(3309),Xe=e(4867),ke=e(9386);let qe=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,we,M.KJ,T.zf,E.PV,N.ZJ,T.zf,Ke.U,Xe.Q,He.D,le.K,x.WG,c.Jb,ke.a]]}),g})()},136:(G,V,e)=>{e.r(V),e.d(V,{AssertionsModule:()=>_});var d=e(9808),n=e(325),a=e(3618),S=e(1945),Z=e(1894),t=e(6949),l=e(6462),v=e(9441),m=e(647),T=e(5630),N=e(6042),s=e(8144),i=e(5e3);let M=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[d.ez,t.WG,n.Bz,m.PV,a.ZJ,S.KJ,Z.Jb,l.m,N.sL,s.zf,v.s,T.D]]}),o})();var E=e(9350),c=e(8992),b=e(2643),x=e(2683),$=e(3756);function Y(o,A){1&o&&(i.TgZ(0,"button",17),i._UZ(1,"i",18),i._uU(2," Submit New Assertion "),i.qZA())}function W(o,A){if(1&o&&(i.ynx(0),i.YNc(1,Y,3,0,"button",16),i.BQk()),2&o){const f=A.ngrxLet;i.xp6(1),i.Q6J("ngIf",f.signedIn)}}function O(o,A){if(1&o&&i.YNc(0,W,2,1,"ng-container",15),2&o){const f=i.oxw();i.Q6J("ngrxLet",f.viewer$)}}function J(o,A){1&o&&(i.TgZ(0,"a",19),i._UZ(1,"i",20),i._uU(2," View Assertion Model Docs "),i.qZA())}function P(o,A){1&o&&(i.TgZ(0,"a",21),i._UZ(1,"i",20),i._uU(2," View Assertion Curation Docs "),i.qZA())}const p=[{path:"",component:(()=>{class o{constructor(){}}return o.\u0275fac=function(f){return new(f||o)},o.\u0275cmp=i.Xpm({type:o,selectors:[["app-assertions"]],decls:1,vars:0,template:function(f,U){1&f&&i._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),o})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(f){this.viewerService=f,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return o.\u0275fac=function(f){return new(f||o)(i.Y36(E.a))},o.\u0275cmp=i.Xpm({type:o,selectors:[["assertions-home"]],decls:21,vars:3,consts:[[3,"actionsTpl"],["assertionActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:assertion"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Assertions"],[4,"ngrxLet"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/assertions.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock",""]],template:function(f,U){if(1&f&&(i._UZ(0,"cvc-section-navigation",0),i.YNc(1,O,1,1,"ng-template",null,1,i.W1O),i.TgZ(3,"nz-page-header",2),i.TgZ(4,"nz-page-header-content"),i.TgZ(5,"nz-row",3),i.TgZ(6,"nz-col",4),i._UZ(7,"i",5),i.qZA(),i.TgZ(8,"nz-col",6),i.TgZ(9,"h2"),i._uU(10,"Assertions"),i.qZA(),i.TgZ(11,"p",7),i._uU(12,"A CIViC Assertion summarizes a collection of Evidence Items that cover predictive/therapeutic, diagnostic, prognostic or predisposing clinical information for a variant in a specific cancer context."),i.qZA(),i.qZA(),i.TgZ(13,"nz-col",8),i.TgZ(14,"nz-space",9),i.YNc(15,J,3,0,"a",10),i.YNc(16,P,3,0,"a",11),i.qZA(),i.qZA(),i.qZA(),i.TgZ(17,"nz-row"),i.TgZ(18,"nz-col",12),i.TgZ(19,"div",13),i._UZ(20,"cvc-assertions-table",14),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&f){const j=i.MAs(2);i.Q6J("actionsTpl",j),i.xp6(11),i.Q6J("nzEllipsisRows",2),i.xp6(7),i.Q6J("nzSpan",24)}},directives:[c.I,t.eJ,d.O5,N.ix,b.dQ,n.rH,x.w,m.Ls,S.$O,S.u5,Z.SK,Z.t3,a.ZU,s.NU,s.$1,$.x],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),o})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>e.e(4456).then(e.bind(e,4456)).then(o=>o.AssertionAddModule),data:{breadcrumb:"Add"}},{path:":assertionId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(2738),e.e(55),e.e(4292),e.e(2043),e.e(3482),e.e(775),e.e(3438)]).then(e.bind(e,3438)).then(o=>o.AssertionsDetailModule)},{path:"revise",loadChildren:()=>Promise.resolve().then(e.bind(e,5878)).then(o=>o.AssertionsReviseModule),data:{breadcrumb:"Revise"}}]}]},{path:"revise",loadChildren:()=>e.e(4456).then(e.bind(e,4456)).then(o=>o.AssertionAddModule)}];let h=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[n.Bz.forChild(p),M],n.Bz]}),o})();var C=e(5878);let _=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[d.ez,h,C.AssertionsReviseModule]]}),o})()},6462:(G,V,e)=>{e.d(V,{i:()=>J,m:()=>P});var d=e(655),n=e(1159),a=e(5e3),S=e(4182),Z=e(8929),t=e(3753),l=e(7625),v=e(9439),m=e(1721),T=e(5664),N=e(226),s=e(2643),i=e(9808),M=e(647),E=e(969);const c=["switchElement"];function b(z,I){1&z&&a._UZ(0,"i",8)}function x(z,I){if(1&z&&(a.ynx(0),a._uU(1),a.BQk()),2&z){const p=a.oxw(2);a.xp6(1),a.Oqu(p.nzCheckedChildren)}}function $(z,I){if(1&z&&(a.ynx(0),a.YNc(1,x,2,1,"ng-container",9),a.BQk()),2&z){const p=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",p.nzCheckedChildren)}}function Y(z,I){if(1&z&&(a.ynx(0),a._uU(1),a.BQk()),2&z){const p=a.oxw(2);a.xp6(1),a.Oqu(p.nzUnCheckedChildren)}}function W(z,I){if(1&z&&a.YNc(0,Y,2,1,"ng-container",9),2&z){const p=a.oxw();a.Q6J("nzStringTemplateOutlet",p.nzUnCheckedChildren)}}let J=(()=>{class z{constructor(p,h,C,_,o,A){this.nzConfigService=p,this.host=h,this.ngZone=C,this.cdr=_,this.focusMonitor=o,this.directionality=A,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new Z.xQ}updateValue(p){this.isChecked!==p&&(this.isChecked=p,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,l.R)(this.destroy$)).subscribe(p=>{this.dir=p,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,t.R)(this.host.nativeElement,"click").pipe((0,l.R)(this.destroy$)).subscribe(p=>{p.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,t.R)(this.switchElement.nativeElement,"keydown").pipe((0,l.R)(this.destroy$)).subscribe(p=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:h}=p;h!==n.oh&&h!==n.SV&&h!==n.L_&&h!==n.K5||(p.preventDefault(),this.ngZone.run(()=>{h===n.oh?this.updateValue(!1):h===n.SV?this.updateValue(!0):(h===n.L_||h===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,l.R)(this.destroy$)).subscribe(p=>{p||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(p){this.isChecked=p,this.cdr.markForCheck()}registerOnChange(p){this.onChange=p}registerOnTouched(p){this.onTouched=p}setDisabledState(p){this.nzDisabled=p,this.cdr.markForCheck()}}return z.\u0275fac=function(p){return new(p||z)(a.Y36(v.jY),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(T.tE),a.Y36(N.Is,8))},z.\u0275cmp=a.Xpm({type:z,selectors:[["nz-switch"]],viewQuery:function(p,h){if(1&p&&a.Gf(c,7),2&p){let C;a.iGM(C=a.CRH())&&(h.switchElement=C.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[a._Bn([{provide:S.JU,useExisting:(0,a.Gpc)(()=>z),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(p,h){if(1&p&&(a.TgZ(0,"button",0,1),a.TgZ(2,"span",2),a.YNc(3,b,1,0,"i",3),a.qZA(),a.TgZ(4,"span",4),a.YNc(5,$,2,1,"ng-container",5),a.YNc(6,W,1,1,"ng-template",null,6,a.W1O),a.qZA(),a._UZ(8,"div",7),a.qZA()),2&p){const C=a.MAs(7);a.ekj("ant-switch-checked",h.isChecked)("ant-switch-loading",h.nzLoading)("ant-switch-disabled",h.nzDisabled)("ant-switch-small","small"===h.nzSize)("ant-switch-rtl","rtl"===h.dir),a.Q6J("disabled",h.nzDisabled)("nzWaveExtraNode",!0),a.xp6(3),a.Q6J("ngIf",h.nzLoading),a.xp6(2),a.Q6J("ngIf",h.isChecked)("ngIfElse",C)}},directives:[s.dQ,i.O5,M.Ls,E.f],encapsulation:2,changeDetection:0}),(0,d.gn)([(0,m.yF)()],z.prototype,"nzLoading",void 0),(0,d.gn)([(0,m.yF)()],z.prototype,"nzDisabled",void 0),(0,d.gn)([(0,m.yF)()],z.prototype,"nzControl",void 0),(0,d.gn)([(0,v.oS)()],z.prototype,"nzSize",void 0),z})(),P=(()=>{class z{}return z.\u0275fac=function(p){return new(p||z)},z.\u0275mod=a.oAB({type:z}),z.\u0275inj=a.cJS({imports:[[N.vT,i.ez,s.vG,M.PV,E.T]]}),z})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9020],{7946:(G,V,e)=>{e.d(V,{x:()=>m});var d=e(9808),n=e(897),a=e(8481),S=e(3610),Z=e(8018),t=e(3580),l=e(9476),v=e(5e3);let m=(()=>{class T{}return T.\u0275fac=function(s){return new(s||T)},T.\u0275mod=v.oAB({type:T}),T.\u0275inj=v.cJS({imports:[[d.ez,a.X,S.$6,n.$,Z.e,t.Q,l.L]]}),T})()},8664:(G,V,e)=>{e.d(V,{I:()=>ie});var d=e(6654),n=e(5e3),a=e(9808),S=e(325),Z=e(8481),t=e(3610),l=e(4850),v=e(712),m=e(7484),T=e(647),N=e(3193),s=e(3098),i=e(6550),M=e(1894),E=e(8144),c=e(6949);function b(u,L){if(1&u&&(n._UZ(0,"i",13),n._uU(1)),2&u){const y=n.oxw().ngIf;n.xp6(1),n.hij(" ",y.name," ")}}function x(u,L){if(1&u&&n._UZ(0,"cvc-gene-tag",14),2&u){const y=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",y.gene)}}function $(u,L){1&u&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function Y(u,L){if(1&u&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,$,2,0,"span",1),n.qZA()),2&u){const y=L.$implicit,Q=L.last;n.xp6(1),n.hij(" ",y,""),n.xp6(1),n.Q6J("ngIf",!Q)}}function W(u,L){if(1&u&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,Y,3,2,"span",16),n.qZA()),2&u){const y=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",y.variantAliases)}}function O(u,L){if(1&u&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",y.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",y.alleleRegistryId," ")}}function J(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/flags"),n.xp6(3),n.hij(" Flags (",y.flags.totalCount,") ")}}function P(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",y.revisions.totalCount,") ")}}function z(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/comments"),n.xp6(3),n.hij(" Comments (",y.comments.totalCount,") ")}}function I(u,L){if(1&u&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,b,2,1,"ng-template",null,3,n.W1O),n.YNc(4,x,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,W,2,1,"nz-descriptions-item",6),n.YNc(8,O,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,J,4,2,"a",12),n.YNc(15,P,4,2,"a",12),n.YNc(16,z,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&u){const y=L.ngIf,Q=n.MAs(3),w=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",Q)("nzExtra",w),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",y.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",y.alleleRegistryId),n.xp6(2),n.hij(" ",y.evidenceItems.totalCount," ")}}let p=(()=>{class u{constructor(y){this.gql=y}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,l.U)(({data:y})=>y.variant))}}return u.\u0275fac=function(y){return new(y||u)(n.Y36(v.ZYZ))},u.\u0275cmp=n.Xpm({type:u,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(y,Q){1&y&&(n.TgZ(0,"div",0),n.YNc(1,I,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&y&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,Q.variant$)))},directives:[a.O5,m.bd,T.Ls,N.H,s.R7,s.uj,a.sg,i.l,M.SK,M.t3,E.NU,E.$1,S.yS,Z.j],pipes:[c.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),u})();function h(u,L){}function C(u,L){if(1&u&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,h,0,0,"ng-template",6),n.qZA(),n.BQk()),2&u){const y=n.oxw(),Q=n.MAs(2);n.xp6(1),n.Q6J("routerLink",y.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)}}function _(u,L){}function o(u,L){if(1&u){const y=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(w){return n.CHM(y),n.oxw(2).itemClosed(w)}),n.YNc(1,_,0,0,"ng-template",6),n.qZA()}if(2&u){n.oxw();const y=n.MAs(2),Q=n.oxw(),w=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",Q.onCloseClicked?0:.5)("nzPopoverContent",y)("nzMode",Q.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",w)}}function A(u,L){if(1&u&&n._UZ(0,"cvc-variant-popover",11),2&u){const y=n.oxw(3);n.Q6J("variantId",y.variant.id)}}function f(u,L){if(1&u&&n.YNc(0,A,1,1,"cvc-variant-popover",10),2&u){const y=n.oxw(2);n.Q6J("ngIf",y.enablePopover)}}function U(u,L){if(1&u&&(n.YNc(0,o,2,4,"nz-tag",7),n.YNc(1,f,1,1,"ng-template",null,8,n.W1O)),2&u){const y=n.oxw(),Q=n.MAs(4);n.Q6J("ngIf",y.enablePopover)("ngIfElse",Q)}}function j(u,L){}function q(u,L){if(1&u){const y=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(w){return n.CHM(y),n.oxw().itemClosed(w)}),n.YNc(1,j,0,0,"ng-template",6),n.qZA()}if(2&u){const y=n.oxw(),Q=n.MAs(8);n.Q6J("nzMode",y.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)}}function ne(u,L){}function te(u,L){if(1&u&&n.YNc(0,ne,0,0,"ng-template",6),2&u){n.oxw();const y=n.MAs(2);n.Q6J("ngTemplateOutlet",y)}}function oe(u,L){if(1&u&&(n._UZ(0,"i",13),n._uU(1)),2&u){const y=n.oxw();n.xp6(1),n.hij(" ",y.variant.name,"\n")}}let ie=(()=>{class u extends d.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return u.\u0275fac=function(y){return new(y||u)},u.\u0275cmp=n.Xpm({type:u,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(y,Q){if(1&y&&(n.YNc(0,C,3,2,"ng-container",0),n.YNc(1,U,3,2,"ng-template",null,1,n.W1O),n.YNc(3,q,2,2,"ng-template",null,2,n.W1O),n.YNc(5,te,1,1,"ng-template",null,3,n.W1O),n.YNc(7,oe,2,1,"ng-template",null,4,n.W1O)),2&y){const w=n.MAs(6);n.Q6J("ngIf",Q.linked)("ngIfElse",w)}},directives:[a.O5,S.yS,a.tP,Z.j,t.lU,p,T.Ls],styles:[""]}),u})()},4867:(G,V,e)=>{e.d(V,{Q:()=>E});var d=e(9808),n=e(325),a=e(8481),S=e(647),Z=e(3610),t=e(6949),l=e(7484),v=e(1894),m=e(3098),T=e(8144),N=e(3309),s=e(3630),i=e(5e3);let M=(()=>{class c{}return c.\u0275fac=function(x){return new(x||c)},c.\u0275mod=i.oAB({type:c}),c.\u0275inj=i.cJS({imports:[[d.ez,n.Bz,t.WG,l.vh,v.Jb,m.q6,a.X,S.PV,T.zf,N.U,s.X]]}),c})(),E=(()=>{class c{}return c.\u0275fac=function(x){return new(x||c)},c.\u0275mod=i.oAB({type:c}),c.\u0275inj=i.cJS({imports:[[d.ez,n.Bz,a.X,Z.$6,S.PV,M]]}),c})()},3154:(G,V,e)=>{e.d(V,{_:()=>n});var d=e(712);function n(a){var S;switch(a.value){case"ascend":S=d.SrV.Asc;break;case"descend":S=d.SrV.Desc;break;default:return}return{column:a.key,direction:S}}},1837:(G,V,e)=>{e.d(V,{_:()=>a});var d=e(712),n=e(7905);class a extends n.nT{constructor(){super(n.yQ.ASSERTION),this.validStates.set(d.uBv.Predictive,{entityType:d.uBv.Predictive,clinicalSignificance:[d.Vr2.Sensitivityresponse,d.Vr2.Resistance,d.Vr2.AdverseResponse,d.Vr2.ReducedSensitivity,d.Vr2.Na],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(d.uBv.Diagnostic,{entityType:d.uBv.Diagnostic,clinicalSignificance:[d.Vr2.Positive,d.Vr2.Negative],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(d.uBv.Prognostic,{entityType:d.uBv.Prognostic,clinicalSignificance:[d.Vr2.BetterOutcome,d.Vr2.PoorOutcome,d.Vr2.Na],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(d.uBv.Predisposing,{entityType:d.uBv.Predisposing,clinicalSignificance:[d.Vr2.Pathogenic,d.Vr2.LikelyPathogenic,d.Vr2.Benign,d.Vr2.LikelyBenign,d.Vr2.UncertainSignificance],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},3759:(G,V,e)=>{e.d(V,{D:()=>_});var d=e(9808),n=e(915);const S={name:"acmg-code-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"ACMG/AMP Code(s)",required:!1,addText:"Add an ACMG/AMP Code",helpText:'Refers to evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP in Richards et. al. 2015.'},fieldArray:{type:"acmg-code-select",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:(o,A)=>{const f=(null==A?void 0:A.form)?A.form.get("evidenceType"):null;return f&&f.value?`${(0,n.E)(f.value)} Assertions requires at least one ACMG code to be specified.`:"ACMG Code is required."}}},hooks:{onInit:o=>{var A;const f=o.templateOptions,U=null===(A=null==o?void 0:o.options)||void 0===A?void 0:A.formState,j=(null==o?void 0:o.form)?o.form.get("evidenceType"):null;!j||(f.vcSub=j.valueChanges.subscribe(q=>{U.requiresAcmgCodes(q)?(f.hidden=!1,f.required=!0):(f.hidden=!0,f.required=!1,o.model.length>0&&(o.model.splice(1),f.remove(0)))}))}}}};var Z=e(8776),t=e(8390),l=e(4182),v=e(3793),m=e(8929),T=e(7625),N=e(4850),s=e(5e3),i=e(712),M=e(8054),E=e(6949),c=e(8144),b=e(8481),x=e(8926);function $(o,A){if(1&o&&(s.TgZ(0,"span"),s._UZ(1,"span",8),s.ALo(2,"highlightTypeahead"),s._uU(3),s.qZA()),2&o){const f=s.oxw().$implicit,U=s.oxw(3);s.xp6(1),s.Q6J("innerHtml",s.xi3(2,2,f.code,U.searchVal),s.oJD),s.xp6(2),s.hij(" - ",f.description," ")}}function Y(o,A){if(1&o&&(s.TgZ(0,"nz-option",6),s.TgZ(1,"nz-space"),s.YNc(2,$,4,5,"span",7),s.qZA(),s.qZA()),2&o){const f=A.$implicit;s.Q6J("nzLabel",f.code)("nzValue",f)}}function W(o,A){if(1&o&&(s.ynx(0),s.YNc(1,Y,3,2,"nz-option",5),s.BQk()),2&o){const f=A.ngrxLet;s.xp6(1),s.Q6J("ngForOf",f)}}function O(o,A){1&o&&s._uU(0," No ACMG code found in CIViC that matches the string provided. ")}function J(o,A){if(1&o){const f=s.EpF();s.ynx(0),s.TgZ(1,"nz-select",2),s.NdJ("nzOnSearch",function(j){return s.CHM(f),s.oxw().onSearch(j)}),s.YNc(2,W,2,1,"ng-container",3),s.qZA(),s.YNc(3,O,1,0,"ng-template",null,4,s.W1O),s.BQk()}if(2&o){const f=s.MAs(4),U=s.oxw();s.xp6(1),s.Q6J("formControl",U.formControl)("formlyAttributes",U.field)("nzPlaceHolder",U.to.placeholder?U.to.placeholder:null)("nzNotFoundContent",f)("nzShowArrow",U.to.showArrow)("nzFilterOption",U.to.filterOption),s.xp6(1),s.Q6J("ngrxLet",U.codes$)}}function P(o,A){if(1&o&&(s.TgZ(0,"nz-tag"),s._uU(1),s.qZA()),2&o){const f=s.oxw();s.xp6(1),s.Oqu(f.formControl.value.code)}}const I={name:"acmg-code-select",extends:"select",component:(()=>{class o extends Z.fS{constructor(f){super(),this.acmgCodeGQL=f,this.destroy$=new m.xQ,this.searchVal=""}ngOnInit(){this.queryRef=this.acmgCodeGQL.watch({code:this.searchVal}),this.codes$=this.queryRef.valueChanges.pipe((0,T.R)(this.destroy$),(0,N.U)(({data:f})=>f.acmgCodesTypeahead))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSearch(f){var U;this.searchVal=f,null===(U=this.queryRef)||void 0===U||U.refetch({code:f})}}return o.\u0275fac=function(f){return new(f||o)(s.Y36(i.$G1))},o.\u0275cmp=s.Xpm({type:o,selectors:[["cvc-acmg-code-select-type"]],features:[s.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["acmgCodeItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[4,"nzSpaceItem"],[3,"innerHtml"]],template:function(f,U){if(1&f&&(s.YNc(0,J,5,7,"ng-container",0),s.YNc(1,P,2,1,"ng-template",null,1,s.W1O)),2&f){const j=s.MAs(2);s.Q6J("ngIf",!(null!=U.formControl.value&&U.formControl.value.id))("ngIfElse",j)}},directives:[d.O5,M.Vq,l.JJ,l.oH,Z.VQ,E.eJ,d.sg,M.Ip,c.NU,c.$1,b.j],pipes:[x.A],styles:[""]}),o})(),wrappers:["form-field"],defaultOptions:{templateOptions:{placeholder:"None specified."},modelOptions:{debounce:{default:500}}}};var p=e(9444),h=e(7338);let C=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[[d.ez,l.UX,E.WG,v.F,b.X,M.LV,c.zf,p.s,Z.X0.forChild({types:[I]}),h.z]]}),o})(),_=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[[d.ez,Z.X0.forChild({types:[S]}),t.N,C]]}),o})()},3314:(G,V,e)=>{e.d(V,{p:()=>s});var d=e(9808),n=e(4182),a=e(8776),S=e(9657),Z=e(712),t=e(444);const l=new S.t,v={TIER_I_LEVEL_A:"Biomarkers showing therapeutic response to FDA-approved therapy, or therapy included in professional guidelines",TIER_I_LEVEL_B:"Biomarkers showing therapeutic response based on well-powered studies with consensus from experts in the field",TIER_II_LEVEL_C:"FDA-approved therapies for different tumor types or investigational therapies, or multiple small published studies with some consensus",TIER_II_LEVEL_D:"Biomarkers that show plausible therapeutic significance based on preclinical studies",TIER_III:"Somatic variants in cancer genes reported in the same or different cancer types with unknown clinical significance and variants in cancer genes that have not been reported in any cancers",TIER_IV:"Benign or likely benign germline variants observed at significant allele frequencies in the general population or specific subpopulation","Not Applicable":"AMP/ASCO/CAP category is not relevant to this assertion."},m={name:"amp-level-input",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{placeholder:"Please Select an AMP/ASCO/CAP Category",label:"AMP/ASCO/CAP Category",helpText:'If applicable, please provide the AMP/ASCO/CAP somatic variant classification.',required:!1,options:(0,t.o6)(Z.iwm).map(i=>({value:i,label:l.transform(i,"verbose")}))},hideExpression:(i,M,E)=>{var c;return(null===(c=null==E?void 0:E.templateOptions)||void 0===c?void 0:c.hidden)||!1},hooks:{onInit:i=>{var M;const E=i.templateOptions,c=null===(M=null==i?void 0:i.options)||void 0===M?void 0:M.formState,b=(null==i?void 0:i.form)?i.form.get("evidenceType"):null;!b||(E.vcSub=b.valueChanges.subscribe(x=>{c.requiresAmpLevel(x)?(E.hidden=!1,E.required=!0):(E.hidden=!0,E.required=!1,i.model[i.key]=void 0)}))}},expressionProperties:{"templateOptions.optionText":(i,M,E)=>v[i.ampLevel]}}};var T=e(9444),N=e(5e3);let s=(()=>{class i{}return i.\u0275fac=function(E){return new(E||i)},i.\u0275mod=N.oAB({type:i}),i.\u0275inj=N.cJS({imports:[[d.ez,n.UX,T.s,a.X0.forChild({types:[m]})]]}),i})()},9946:(G,V,e)=>{e.d(V,{d:()=>I});var d=e(9808),n=e(8776),a=e(8054),S=e(4182),Z=e(8144),t=e(3618),l=e(6949),v=e(7008),m=e(6042),T=e(1047),N=e(9444),s=e(7625),i=e(373),M=e(4850),E=e(8929),c=e(5e3),b=e(712),x=e(9001);function $(p,h){if(1&p&&(c.ynx(0),c.TgZ(1,"nz-option",5),c._uU(2),c.qZA(),c.BQk()),2&p){const C=h.ngIf;c.xp6(1),c.Q6J("nzLabel",C.tooltip)("nzValue",C.eid),c.xp6(1),c.hij(" ",C.label," ")}}function Y(p,h){1&p&&c._uU(0," No EID matches the provided ID ")}function W(p,h){if(1&p){const C=c.EpF();c.ynx(0),c.TgZ(1,"nz-select",2),c.NdJ("nzOnSearch",function(o){return c.CHM(C),c.oxw().to.onSearch(o)}),c.YNc(2,$,3,3,"ng-container",3),c.ALo(3,"ngrxPush"),c.qZA(),c.YNc(4,Y,1,0,"ng-template",null,4,c.W1O),c.BQk()}if(2&p){const C=c.MAs(5),_=c.oxw();c.xp6(1),c.Q6J("formControl",_.formControl)("formlyAttributes",_.field)("nzPlaceHolder",_.to.placeholder?_.to.placeholder:null)("nzNotFoundContent",C)("nzShowArrow",_.to.showArrow)("nzFilterOption",_.to.filterOption),c.xp6(1),c.Q6J("ngIf",c.lcZ(3,7,_.eid$))}}function O(p,h){if(1&p&&c._UZ(0,"cvc-evidence-tag",6),2&p){const C=c.oxw();c.Q6J("evidence",C.formControl.value)}}const P={name:"evidence-input",component:(()=>{class p extends n.fS{constructor(C){super(),this.evidenceGQL=C,this.destroy$=new E.xQ,this.defaultOptions={templateOptions:{placeholder:"Enter Evidence",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:""}}}ngOnInit(){this.queryRef=this.evidenceGQL.watch({id:99999999}),this.eid$=this.queryRef.valueChanges.pipe((0,s.R)(this.destroy$),(0,i.j)("data","evidenceItem"),(0,M.U)(C=>{if(C)return{value:C.id,label:C.name,eid:C}}))}ngAfterViewInit(){this.to.onSearch=C=>{if(C.length{class p{}return p.\u0275fac=function(C){return new(C||p)},p.\u0275mod=c.oAB({type:p}),p.\u0275inj=c.cJS({imports:[[d.ez,S.u5,S.UX,l.WG,n.X0.forChild({types:[P]}),a.LV,Z.zf,t.ZJ,m.sL,T.o7,z.i,v.B,N.s]]}),p})()},464:(G,V,e)=>{e.d(V,{N:()=>t});var d=e(9808),n=e(4182);const a={name:"fda-approval-checkbox",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"FDA Regulatory Approval?",helpText:"Select yes if the referenced therapy is approved for use by the FDA in the specific disease associated with the Assertion (as in a listing here.)",placeholder:"None Specified",options:[{value:!0,label:"Yes"},{value:!1,label:"No"},{value:void 0,label:""}]},hooks:{onInit:l=>{var v;if(l){const m=l.templateOptions,T=(null==l?void 0:l.form)?l.form.get("evidenceType"):null,N=null===(v=null==l?void 0:l.options)||void 0===v?void 0:v.formState;if(!T||!m)return;m.ncSub=T.valueChanges.subscribe(s=>{var i,M;s&&N.allowsFdaApproval(s)?(m.hidden=!1,m.required=!0):(null===(M=null===(i=l.form)||void 0===i?void 0:i.get(l.key))||void 0===M||M.setValue(void 0),m.modelCallback(void 0),l.model[l.key]=void 0,m.hidden=!0,m.required=!1)})}},onDestroy:l=>{var v;if(l){const m=l.templateOptions;null===(v=null==m?void 0:m.ncSub)||void 0===v||v.unsubscribe()}}}}};var S=e(8776),Z=e(5e3);let t=(()=>{class l{}return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=Z.oAB({type:l}),l.\u0275inj=Z.cJS({imports:[[d.ez,n.UX,S.X0.forChild({types:[a]})]]}),l})()},7795:(G,V,e)=>{e.d(V,{k:()=>t});var d=e(9808),n=e(4182),a=e(8776);const S={name:"fda-test-checkbox",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"FDA Companion Test?",placeholder:"None Specified",helpText:'Select Yes if an FDA approved companion test exists for the variant and drug associated with the Assertion (such as tests listed here).',options:[{value:!0,label:"Yes"},{value:!1,label:"No"},{value:void 0,label:""}]},hooks:{onInit:l=>{var v;if(l){const m=l.templateOptions,T=(null==l?void 0:l.form)?l.form.get("fdaRegulatoryApproval"):null,N=(null==l?void 0:l.form)?l.form.get("evidenceType"):null,s=null===(v=null==l?void 0:l.options)||void 0===v?void 0:v.formState;if(!T||!m||!N)return;m.etSub=N.valueChanges.subscribe(i=>{var M,E;i&&s.allowsFdaApproval(i)?(m.hidden=!1,m.required=!0):(null===(E=null===(M=l.form)||void 0===M?void 0:M.get(l.key))||void 0===E||E.setValue(void 0),m.modelCallback(void 0),l.model[l.key]=void 0,m.hidden=!0,m.required=!1)}),m.ncSub=T.valueChanges.subscribe(i=>{i?(m.hidden=!1,m.required=!0,m.modelCallback(!0),l.model[l.key]=!0):(m.modelCallback(!1),l.model[l.key]=!1,m.hidden=!0,m.required=!1)})}},onDestroy:l=>{var v,m;if(l){const T=l.templateOptions;null===(v=null==T?void 0:T.ncSub)||void 0===v||v.unsubscribe(),null===(m=null==T?void 0:T.etSub)||void 0===m||m.unsubscribe()}}}}};var Z=e(5e3);let t=(()=>{class l{}return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=Z.oAB({type:l}),l.\u0275inj=Z.cJS({imports:[[d.ez,n.UX,a.X0.forChild({types:[S]})]]}),l})()},5486:(G,V,e)=>{e.d(V,{$:()=>W});var d=e(9808),n=e(8776),a=e(8929),S=e(7625),Z=e(4850),t=e(5e3),l=e(712),v=e(8054),m=e(4182),T=e(6949),N=e(8144),s=e(8481);function i(O,J){if(1&O&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&O){const P=t.oxw().$implicit;t.xp6(1),t.hij(" ",P.name," ")}}function M(O,J){if(1&O&&(t.TgZ(0,"nz-option",6),t.TgZ(1,"nz-space"),t.YNc(2,i,2,1,"span",7),t.qZA(),t.qZA()),2&O){const P=J.$implicit;t.Q6J("nzLabel",P.name)("nzValue",P)}}function E(O,J){if(1&O&&(t.ynx(0),t.YNc(1,M,3,2,"nz-option",5),t.BQk()),2&O){const P=J.ngrxLet;t.xp6(1),t.Q6J("ngForOf",P)}}function c(O,J){1&O&&t._uU(0," No NCCN Guideline found in CIViC that matches the string provided. ")}function b(O,J){if(1&O){const P=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",2),t.NdJ("nzOnSearch",function(I){return t.CHM(P),t.oxw().onSearch(I)}),t.YNc(2,E,2,1,"ng-container",3),t.qZA(),t.YNc(3,c,1,0,"ng-template",null,4,t.W1O),t.BQk()}if(2&O){const P=t.MAs(4),z=t.oxw();t.xp6(1),t.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzNotFoundContent",P)("nzShowArrow",z.to.showArrow)("nzFilterOption",z.to.filterOption),t.xp6(1),t.Q6J("ngrxLet",z.guidelines$)}}function x(O,J){if(1&O&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&O){const P=t.oxw();t.xp6(1),t.Oqu(P.formControl.value.name)}}const Y={name:"nccn-guideline-input",extends:"select",wrappers:["form-field"],component:(()=>{class O extends n.fS{constructor(P){super(),this.nccnGuidelineGQL=P,this.destroy$=new a.xQ,this.searchVal=""}ngOnInit(){this.queryRef=this.nccnGuidelineGQL.watch({name:this.searchVal}),this.guidelines$=this.queryRef.valueChanges.pipe((0,S.R)(this.destroy$),(0,Z.U)(({data:P})=>P.nccnGuidelinesTypeahead))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSearch(P){var z;null===(z=this.queryRef)||void 0===z||z.refetch({name:P})}}return O.\u0275fac=function(P){return new(P||O)(t.Y36(l.lfy))},O.\u0275cmp=t.Xpm({type:O,selectors:[["cvc-nccn-guideline-input-type"]],features:[t.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["nccnItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[4,"nzSpaceItem"]],template:function(P,z){if(1&P&&(t.YNc(0,b,5,7,"ng-container",0),t.YNc(1,x,2,1,"ng-template",null,1,t.W1O)),2&P){const I=t.MAs(2);t.Q6J("ngIf",!(null!=z.formControl.value&&z.formControl.value.id))("ngIfElse",I)}},directives:[d.O5,v.Vq,m.JJ,m.oH,n.VQ,T.eJ,d.sg,v.Ip,N.NU,N.$1,s.j],styles:[""]}),O})(),defaultOptions:{templateOptions:{label:"NCCN Guideline",placeholder:"None specified",helpText:'If applicable, please provide cancer (e.g., Breast Cancer) and version (e.g., 5.2016) for the appropriate NCCN guideline.'},modelOptions:{debounce:{default:500}}}};let W=(()=>{class O{}return O.\u0275fac=function(P){return new(P||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({imports:[[d.ez,m.UX,T.WG,v.LV,N.zf,s.X,n.X0.forChild({types:[Y]})]]}),O})()},4902:(G,V,e)=>{e.d(V,{a:()=>l});var d=e(9808);const n={name:"nccn-version-input",extends:"input",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"NCCN Guideline Version",placeholder:"None specified"},validators:["format"],validation:{messages:{required:"If you specify an NCCN Guideline it must have a version."}},hideExpression:(v,m,T)=>!v.nccnGuideline,hooks:{onInit:v=>{if(v){const m=v.templateOptions,T=(null==v?void 0:v.form)?v.form.get("nccnGuideline"):null;if(!T||!m)return;m.ncSub=T.valueChanges.subscribe(N=>{N?m.required=!0:(m.required=!1,v.model[v.key]=void 0)})}},onDestroy:v=>{var m;if(v){const T=v.templateOptions;null===(m=null==T?void 0:T.ncSub)||void 0===m||m.unsubscribe()}}}}};var a=e(4182),S=e(8776),Z=e(5e3);function t(v){return/^\d{1,2}\.\d{4}$/.test(v.value)?{format:!0}:null}let l=(()=>{class v{}return v.\u0275fac=function(T){return new(T||v)},v.\u0275mod=Z.oAB({type:v}),v.\u0275inj=Z.cJS({imports:[[d.ez,a.UX,S.X0.forChild({types:[n],validators:[{name:"format",validation:t}],validationMessages:[{name:"format",message:"The NCCN Guideline version must be in the format {version number}.{year}."}]})]]}),v})()},9754:(G,V,e)=>{e.d(V,{K:()=>z});var d=e(9808),n=e(767),a=e(9444),S=e(6949),Z=e(8776),t=e(6042),l=e(7484),v=e(5482),m=e(4546),T=e(1894),N=e(647),s=e(3640),i=e(3610),M=e(8144),E=e(3618),c=e(5109),b=e(6789),x=e(5e3),$=e(2643),Y=e(2683),W=e(8965);function O(I,p){if(1&I){const h=x.EpF();x.TgZ(0,"cvc-evidence-table",4),x.NdJ("selectedEids",function(_){return x.CHM(h),x.oxw().onEidSelectionChange(_)}),x.qZA()}if(2&I){const h=x.oxw();x.Q6J("initialPageSize",15)("initialUserFilters",h.evidenceGridFilters)("initialSelectedEids",h.alreadySelected)}}const P={wrappers:[{name:"evidence-manager",component:(()=>{class I extends Z.n2{constructor(){super(...arguments),this.managerVisible=!1,this.alreadySelected=[],this.managerSelectedEids=[],this.evidenceGridFilters={eidInput:void 0,diseaseNameInput:void 0,drugNameInput:void 0,descriptionInput:void 0,evidenceLevelInput:void 0,evidenceTypeInput:void 0,evidenceDirectionInput:void 0,clinicalSignificanceInput:void 0,variantOriginInput:void 0,evidenceRatingInput:void 0,variantNameInput:void 0,geneSymbolInput:void 0}}handleOpen(){var h,C,_;if(null===(h=this.field.parent)||void 0===h?void 0:h.model){const o=null===(C=this.field.parent)||void 0===C?void 0:C.model;this.evidenceGridFilters.geneSymbolInput=1==(null===(_=o.gene)||void 0===_?void 0:_.length)&&o.gene[0]?o.gene[0].name:void 0,this.evidenceGridFilters.variantNameInput=1==o.variant.length&&o.variant[0]?o.variant[0].name:void 0,this.evidenceGridFilters.evidenceTypeInput=o.evidenceType?o.evidenceType:void 0,this.evidenceGridFilters.diseaseNameInput=1==o.disease.length&&o.disease[0]?o.disease[0].name:void 0}this.model&&(this.alreadySelected=this.model.filter(o=>o)),this.managerVisible=!0}handleCancel(){this.managerVisible=!1}handleOk(){this.managerVisible=!1;const h=this.managerSelectedEids;for(;this.formControl.value.lengthh.length;)this.to.remove(this.formControl.value.length-1);h.forEach((C,_)=>{this.field.formControl.controls[_].setValue(C)}),this.to.eidCallback&&this.to.eidCallback(h)}onEidSelectionChange(h){this.managerSelectedEids=h}}return I.\u0275fac=function(){let p;return function(C){return(p||(p=x.n5z(I)))(C||I)}}(),I.\u0275cmp=x.Xpm({type:I,selectors:[["cvc-with-evidence-manager-wrapper"]],features:[x.qOj],decls:7,vars:2,consts:[["fieldComponent",""],["nz-button","","type","button","nzType","default",3,"click"],["nzCentered","","nzClosable","","nzOkText","Select Evidence Items","nzWidth","100%",3,"nzVisible","nzContent","nzVisibleChange","nzOnCancel","nzOnOk"],["evidenceManager",""],["mode","select","cvcTitle","Evidence Manager",3,"initialPageSize","initialUserFilters","initialSelectedEids","selectedEids"]],template:function(h,C){if(1&h&&(x.GkF(0,null,0),x.TgZ(2,"button",1),x.NdJ("click",function(){return C.handleOpen()}),x._uU(3,"Show Evidence Manager"),x.qZA(),x.TgZ(4,"nz-modal",2),x.NdJ("nzVisibleChange",function(o){return C.managerVisible=o})("nzOnCancel",function(){return C.handleCancel()})("nzOnOk",function(){return C.handleOk()}),x.qZA(),x.YNc(5,O,1,3,"ng-template",null,3,x.W1O)),2&h){const _=x.MAs(6);x.xp6(4),x.Q6J("nzVisible",C.managerVisible)("nzContent",_)}},directives:[t.ix,$.dQ,Y.w,s.du,W.a],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),I})()}]};let z=(()=>{class I{}return I.\u0275fac=function(h){return new(h||I)},I.\u0275mod=x.oAB({type:I}),I.\u0275inj=x.cJS({imports:[[d.ez,S.WG,Z.X0.forChild(P),T.Jb,l.vh,v.cD,b._,c.s,m.U5,N.PV,t.sL,M.zf,i.$6,a.s,n.Q,E.ZJ,s.Qp]]}),I})()},5878:(G,V,e)=>{e.r(V),e.d(V,{AssertionsReviseModule:()=>qe});var d=e(9808),n=e(325),a=e(373),S=e(1059),Z=e(4850),t=e(5e3),l=e(712),v=e(9350),m=e(8992),T=e(8144),N=e(3618),s=e(3193),i=e(8664),M=e(1945),E=e(647),c=e(1894),b=e(8616),x=e(6949);function $(g,D){if(1&g&&(t.TgZ(0,"span",12),t.TgZ(1,"strong"),t._uU(2),t.qZA(),t._uU(3," Parents:"),t.qZA()),2&g){const r=t.oxw(2).ngIf;t.xp6(2),t.Oqu(r.name)}}function Y(g,D){if(1&g&&(t.TgZ(0,"span",13),t.TgZ(1,"a",14),t._UZ(2,"cvc-gene-tag",15),t.qZA(),t.TgZ(3,"a",14),t._UZ(4,"cvc-variant-tag",16),t.qZA(),t.qZA()),2&g){const r=t.oxw(2).ngIf;t.xp6(1),t.MGl("routerLink","/genes/",r.gene.id,""),t.xp6(1),t.Q6J("gene",r.gene),t.xp6(1),t.MGl("routerLink","/variants/",r.variant.id,""),t.xp6(1),t.Q6J("variant",r.variant)}}function W(g,D){1&g&&(t.TgZ(0,"nz-space",9),t.YNc(1,$,4,1,"span",10),t.YNc(2,Y,5,4,"span",11),t.qZA())}function O(g,D){1&g&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function J(g,D){1&g&&(t.TgZ(0,"nz-row",17),t.TgZ(1,"div",18),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}function P(g,D){if(1&g&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.YNc(2,W,3,0,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-page-header",3),t.TgZ(5,"nz-page-header-title",4),t._uU(6," REVISE "),t._UZ(7,"i",5),t._uU(8),t.qZA(),t.TgZ(9,"nz-page-header-content"),t.TgZ(10,"div",6),t.YNc(11,O,2,0,"div",7),t.ALo(12,"ngrxPush"),t.YNc(13,J,3,0,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&g){const r=D.ngIf,R=t.MAs(3),B=t.MAs(14),H=t.oxw();t.xp6(1),t.Q6J("displayName",r.name)("relationsTpl",R),t.xp6(7),t.hij(" ",r.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(12,5,H.isSignedIn$))("ngIfElse",B)}}let z=(()=>{class g{constructor(r,R,B){this.gql=r,this.route=R,this.viewerService=B,this.routeSub=this.route.params.subscribe(H=>{let F=this.gql.watch({assertionId:+H.assertionId}).valueChanges;this.loading$=F.pipe((0,a.j)("loading"),(0,S.O)(!0)),this.assertion$=F.pipe((0,a.j)("data","assertion"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,Z.U)(r=>r.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(l.A94),t.Y36(n.gz),t.Y36(v.a))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertions-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["assertionRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:assertion"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,R){1&r&&(t.YNc(0,P,15,7,"ng-container",0),t.ALo(1,"async")),2&r&&t.Q6J("ngIf",t.lcZ(1,1,R.assertion$))},directives:[d.O5,m.I,T.NU,T.$1,N.ZU,n.yS,s.H,i.I,M.$O,M.u9,E.Ls,M.u5,n.lC,c.SK,c.t3,b.u],pipes:[d.Ov,x.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),g})();var I=e(7484),p=e(6559),h=e(4182),C=e(5109),_=e(4546),o=e(2359),A=e(6042),f=e(7525),U=e(8776),j=e(1825),q=e(7008),ne=e(4375),te=e(7695),oe=e(7075),ie=e(8390),u=e(3773),L=e(5452),y=e(5743),Q=e(5457),w=e(8006),ae=e(7462),le=e(4623),de=e(3594),pe=e(3643),ge=e(1135),me=e(2789),ue=e(5932),ve=e(3416),he=e(2480),fe=e(1830),ye=e(4581),ze=e(1605),Ce=e(5926),Te=e(1270),xe=e(3314),Ae=e(3759),Oe=e(4902),Me=e(5486),Ie=e(464),_e=e(7795),Se=e(5472),Pe=e(9946),Ee=e(9754),Ze=e(4889);let Ne=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,n.Bz,h.UX,C.s,_.U5,o.L,c.Jb,A.sL,f.j,U.X0,j.A,q.B,ne.R,te.C,oe.l,ie.N,u.g,L.C,y.W,Q.$,w.I,ae.o,le.K,de.q,pe.q,ge.C,me.o,ue.A,ve.g,he.r,fe.S,ye.e,ze.e,Ce.J,Te.i,xe.p,Ae.D,Oe.a,Me.$,Ie.N,_e.k,Se.r,Pe.d,Ee.K,Ze.E]]}),g})(),Ve=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,x.WG,c.Jb,I.vh,p.H0,T.zf,Ne]]}),g})();var Le=e(6123),De=e(8929),Re=e(1837),K=e(6738),se=e(7625),Fe=e(9169),Ue=e(822);function Je(g,D){1&g&&t.GkF(0)}function be(g,D){if(1&g){const r=t.EpF();t.TgZ(0,"formly-form",6),t.NdJ("modelChange",function(B){return t.CHM(r),t.oxw(2).formModel=B}),t.qZA()}if(2&g){const r=t.oxw(2);t.Q6J("form",r.formGroup)("fields",r.formFields)("model",r.formModel)("options",r.formOptions)}}function Qe(g,D){if(1&g){const r=t.EpF();t.TgZ(0,"form",3),t.NdJ("ngSubmit",function(){t.CHM(r);const B=t.oxw();return B.reviseAssertion(B.formModel)}),t.YNc(1,Je,1,0,"ng-container",4),t.YNc(2,be,1,4,"formly-form",5),t.qZA()}if(2&g){const r=t.oxw(),R=t.MAs(3);t.Q6J("formGroup",r.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",R),t.xp6(1),t.Q6J("ngIf",!r.success)}}function Be(g,D){if(1&g&&(t.ynx(0),t.TgZ(1,"nz-form-item"),t._UZ(2,"cvc-form-errors-alert",8),t.qZA(),t.BQk()),2&g){const r=t.oxw(2);t.xp6(2),t.Q6J("errors",r.errorMessages)}}function Ge(g,D){1&g&&(t.TgZ(0,"p"),t._uU(1,"View it on the "),t.TgZ(2,"a",12),t._uU(3,"Revisions Page"),t.qZA(),t._uU(4,"."),t.qZA())}function Ye(g,D){if(1&g&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.YNc(2,Ge,5,0,"ng-template",10,11,t.W1O),t.BQk()),2&g){const r=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",r)}}function We(g,D){if(1&g&&(t.YNc(0,Be,3,1,"ng-container",7),t.YNc(1,Ye,4,1,"ng-container",7)),2&g){const r=t.oxw();t.Q6J("ngIf",r.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",r.success)}}let $e=(()=>{class g{constructor(r,R,B){this.suggestAssertionRevisionGQL=r,this.networkErrorService=R,this.revisableFieldsGQL=B,this.destroy$=new De.xQ,this.formGroup=new h.cw({}),this.formOptions={formState:new Re._},this.success=!1,this.errorMessages=[],this.loading=!0,this.reviseAssertion=k=>{let ce=this.toReviseInput(k);if(ce){let re=this.suggestAssertionRevisionMutator.mutate(this.suggestAssertionRevisionGQL,{input:ce});re.submitSuccess$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{ee&&(this.success=!0)}),re.submitError$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{ee&&(this.errorMessages=ee,this.success=!1)}),re.isSubmitting$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{this.loading=ee})}},this.suggestAssertionRevisionMutator=new Le.U(R),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Assertion Revision Form"},fieldGroup:[{key:"gene",type:"gene-array",templateOptions:{maxCount:1,required:!0}},{key:"variant",type:"variant-array",templateOptions:{required:!0,maxCount:1,allowCreate:!1}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1,allowCreate:!1}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{label:"Assertion Type",required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{label:"Assertion Direction",required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array",templateOptions:{allowCreate:!1}},{key:"drugInteractionType",type:"drug-interaction-select",templateOptions:{}},{key:"ampLevel",type:"amp-level-input",templateOptions:{}},{key:"acmgCodes",type:"acmg-code-array",templateOptions:{label:"ACMG/AMP Code(s)"}},{key:"phenotypes",type:"phenotype-array",templateOptions:{}},{key:"nccnGuideline",type:"nccn-guideline-input",templateOptions:{}},{key:"nccnGuidelineVersion",type:"nccn-version-input",templateOptions:{}},{key:"fdaRegulatoryApproval",type:"fda-approval-checkbox",templateOptions:{modelCallback:k=>{this.formModel.fields.fdaRegulatoryApproval=k}}},{key:"fdaCompanionTest",type:"fda-test-checkbox",templateOptions:{modelCallback:k=>{this.formModel.fields.fdaCompanionTest=k}}},{key:"summary",type:"cvc-textarea",templateOptions:{label:"Assertion Summary",helpText:"A short, one sentence summary of this new assertion",placeholder:"No description provided",required:!0}},{key:"description",type:"cvc-textarea",wrappers:["form-field"],templateOptions:{label:"Assertion Statement",helpText:"A complete, original description of this new assertion, limited to one paragraph",placeholder:"No description provided",required:!0}},{key:"evidenceItems",type:"multi-field",wrappers:["form-field","evidence-manager"],templateOptions:{label:"Evidence Items",helpText:"Evidence Items that support the assertion.",addText:"Add Evidence by ID",required:!0,eidCallback:k=>{this.formModel.fields.evidenceItems=k}},fieldArray:{type:"evidence-input",templateOptions:{required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Assertion Revision",submitSize:"large"}}]}]}toReviseInput(r){var R,B,H;if(r){const F=r.fields;return{id:F.id,comment:F.comment,organizationId:null===(R=F.organization)||void 0===R?void 0:R.id,fields:{description:K.xt(F.description),summary:K.xt(F.summary),variantId:F.variant[0].id,geneId:F.gene[0].id,variantOrigin:F.variantOrigin,assertionType:F.evidenceType,clinicalSignificance:F.clinicalSignificance,diseaseId:K.uP(null===(B=F.disease[0])||void 0===B?void 0:B.id),assertionDirection:F.evidenceDirection,phenotypeIds:F.phenotypes.map(X=>X.id),drugIds:F.drugs.map(X=>X.id),drugInteractionType:K.uP(F.drugInteractionType),ampLevel:K.uP(F.ampLevel),nccnGuidelineId:K.uP(null===(H=F.nccnGuideline)||void 0===H?void 0:H.id),nccnGuidelineVersion:K.xt(F.nccnGuidelineVersion),acmgCodeIds:F.acmgCodes.map(X=>X.id),fdaCompanionTest:K.uP(F.fdaCompanionTest),fdaRegulatoryApproval:K.uP(F.fdaRegulatoryApproval),evidenceItemIds:F.evidenceItems.map(X=>X.id)}}}}toFormModel(r){var R,B;return{fields:{id:r.id,description:r.description,summary:r.summary,variant:[r.variant],gene:[r.gene],variantOrigin:r.variantOrigin,evidenceType:r.assertionType,clinicalSignificance:r.clinicalSignificance,disease:[r.disease],evidenceDirection:r.assertionDirection,phenotypes:r.phenotypes,drugs:r.drugs,drugInteractionType:r.drugInteractionType,ampLevel:r.ampLevel,evidenceItems:r.evidenceItems,nccnGuideline:r.nccnGuideline,nccnGuidelineVersion:r.nccnGuidelineVersion,acmgCodes:r.acmgCodes,fdaCompanionTest:r.fdaCompanionTest,fdaRegulatoryApproval:r.regulatoryApproval,comment:null===(R=this.formModel)||void 0===R?void 0:R.fields.comment,organization:null===(B=this.formModel)||void 0===B?void 0:B.fields.organization}}}ngAfterViewInit(){this.assertionId&&this.revisableFieldsGQL.fetch({assertionId:this.assertionId}).subscribe(({data:{assertion:r}})=>{r&&(this.formModel=this.toFormModel(r),this.loading=!1)},r=>{console.error("Error retrieving assertion."),console.error(r)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const r=this.formGroup.get("fields.comment");r&&r.markAsUntouched()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(l.c$m),t.Y36(Fe.Y),t.Y36(l.bgg))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertion-revise-form"]],inputs:{assertionId:"assertionId"},decls:4,vars:2,consts:[[3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(r,R){1&r&&(t.TgZ(0,"nz-spin",0),t.YNc(1,Qe,3,3,"form",1),t.YNc(2,We,2,2,"ng-template",null,2,t.W1O),t.qZA()),2&r&&(t.Q6J("nzSpinning",R.loading),t.xp6(1),t.Q6J("ngIf",R.formModel))},directives:[f.W,d.O5,h._Y,h.JL,_.Lr,h.sg,d.tP,U.T7,c.SK,_.Nx,Ue.V,o.r,n.yS],styles:["[_nghost-%COMP%]{display:block}"]}),g})();const je=[{path:"",component:z,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class g{constructor(r){this.route=r,this.routeParams$=this.route.params.subscribe(R=>{this.assertionId=+R.assertionId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(n.gz))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertions-suggest-page"]],decls:1,vars:1,consts:[[3,"assertionId"]],template:function(r,R){1&r&&t._UZ(0,"cvc-assertion-revise-form",0),2&r&&t.Q6J("assertionId",R.assertionId)},directives:[$e],styles:[""]}),g})(),data:{breadcrumb:"Suggest Revision"}}]}];let we=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[n.Bz.forChild(je),Ve],n.Bz]}),g})();var He=e(5630),Ke=e(3309),Xe=e(4867),ke=e(9386);let qe=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,we,M.KJ,T.zf,E.PV,N.ZJ,T.zf,Ke.U,Xe.Q,He.D,le.K,x.WG,c.Jb,ke.a]]}),g})()},136:(G,V,e)=>{e.r(V),e.d(V,{AssertionsModule:()=>_});var d=e(9808),n=e(325),a=e(3618),S=e(1945),Z=e(1894),t=e(6949),l=e(6462),v=e(9441),m=e(647),T=e(5630),N=e(6042),s=e(8144),i=e(5e3);let M=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[d.ez,t.WG,n.Bz,m.PV,a.ZJ,S.KJ,Z.Jb,l.m,N.sL,s.zf,v.s,T.D]]}),o})();var E=e(9350),c=e(8992),b=e(2643),x=e(2683),$=e(3756);function Y(o,A){1&o&&(i.TgZ(0,"button",17),i._UZ(1,"i",18),i._uU(2," Submit New Assertion "),i.qZA())}function W(o,A){if(1&o&&(i.ynx(0),i.YNc(1,Y,3,0,"button",16),i.BQk()),2&o){const f=A.ngrxLet;i.xp6(1),i.Q6J("ngIf",f.signedIn)}}function O(o,A){if(1&o&&i.YNc(0,W,2,1,"ng-container",15),2&o){const f=i.oxw();i.Q6J("ngrxLet",f.viewer$)}}function J(o,A){1&o&&(i.TgZ(0,"a",19),i._UZ(1,"i",20),i._uU(2," View Assertion Model Docs "),i.qZA())}function P(o,A){1&o&&(i.TgZ(0,"a",21),i._UZ(1,"i",20),i._uU(2," View Assertion Curation Docs "),i.qZA())}const p=[{path:"",component:(()=>{class o{constructor(){}}return o.\u0275fac=function(f){return new(f||o)},o.\u0275cmp=i.Xpm({type:o,selectors:[["app-assertions"]],decls:1,vars:0,template:function(f,U){1&f&&i._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),o})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(f){this.viewerService=f,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return o.\u0275fac=function(f){return new(f||o)(i.Y36(E.a))},o.\u0275cmp=i.Xpm({type:o,selectors:[["assertions-home"]],decls:21,vars:3,consts:[[3,"actionsTpl"],["assertionActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:assertion"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Assertions"],[4,"ngrxLet"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/assertions.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock",""]],template:function(f,U){if(1&f&&(i._UZ(0,"cvc-section-navigation",0),i.YNc(1,O,1,1,"ng-template",null,1,i.W1O),i.TgZ(3,"nz-page-header",2),i.TgZ(4,"nz-page-header-content"),i.TgZ(5,"nz-row",3),i.TgZ(6,"nz-col",4),i._UZ(7,"i",5),i.qZA(),i.TgZ(8,"nz-col",6),i.TgZ(9,"h2"),i._uU(10,"Assertions"),i.qZA(),i.TgZ(11,"p",7),i._uU(12,"A CIViC Assertion summarizes a collection of Evidence Items that cover predictive/therapeutic, diagnostic, prognostic or predisposing clinical information for a variant in a specific cancer context."),i.qZA(),i.qZA(),i.TgZ(13,"nz-col",8),i.TgZ(14,"nz-space",9),i.YNc(15,J,3,0,"a",10),i.YNc(16,P,3,0,"a",11),i.qZA(),i.qZA(),i.qZA(),i.TgZ(17,"nz-row"),i.TgZ(18,"nz-col",12),i.TgZ(19,"div",13),i._UZ(20,"cvc-assertions-table",14),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&f){const j=i.MAs(2);i.Q6J("actionsTpl",j),i.xp6(11),i.Q6J("nzEllipsisRows",2),i.xp6(7),i.Q6J("nzSpan",24)}},directives:[c.I,t.eJ,d.O5,N.ix,b.dQ,n.rH,x.w,m.Ls,S.$O,S.u5,Z.SK,Z.t3,a.ZU,s.NU,s.$1,$.x],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),o})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>e.e(4456).then(e.bind(e,4456)).then(o=>o.AssertionAddModule),data:{breadcrumb:"Add"}},{path:":assertionId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(2738),e.e(55),e.e(4292),e.e(2043),e.e(3482),e.e(775),e.e(3438)]).then(e.bind(e,3438)).then(o=>o.AssertionsDetailModule)},{path:"revise",loadChildren:()=>Promise.resolve().then(e.bind(e,5878)).then(o=>o.AssertionsReviseModule),data:{breadcrumb:"Revise"}}]}]},{path:"revise",loadChildren:()=>e.e(4456).then(e.bind(e,4456)).then(o=>o.AssertionAddModule)}];let h=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[n.Bz.forChild(p),M],n.Bz]}),o})();var C=e(5878);let _=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[d.ez,h,C.AssertionsReviseModule]]}),o})()},6462:(G,V,e)=>{e.d(V,{i:()=>J,m:()=>P});var d=e(655),n=e(1159),a=e(5e3),S=e(4182),Z=e(8929),t=e(3753),l=e(7625),v=e(9439),m=e(1721),T=e(5664),N=e(226),s=e(2643),i=e(9808),M=e(647),E=e(969);const c=["switchElement"];function b(z,I){1&z&&a._UZ(0,"i",8)}function x(z,I){if(1&z&&(a.ynx(0),a._uU(1),a.BQk()),2&z){const p=a.oxw(2);a.xp6(1),a.Oqu(p.nzCheckedChildren)}}function $(z,I){if(1&z&&(a.ynx(0),a.YNc(1,x,2,1,"ng-container",9),a.BQk()),2&z){const p=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",p.nzCheckedChildren)}}function Y(z,I){if(1&z&&(a.ynx(0),a._uU(1),a.BQk()),2&z){const p=a.oxw(2);a.xp6(1),a.Oqu(p.nzUnCheckedChildren)}}function W(z,I){if(1&z&&a.YNc(0,Y,2,1,"ng-container",9),2&z){const p=a.oxw();a.Q6J("nzStringTemplateOutlet",p.nzUnCheckedChildren)}}let J=(()=>{class z{constructor(p,h,C,_,o,A){this.nzConfigService=p,this.host=h,this.ngZone=C,this.cdr=_,this.focusMonitor=o,this.directionality=A,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new Z.xQ}updateValue(p){this.isChecked!==p&&(this.isChecked=p,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,l.R)(this.destroy$)).subscribe(p=>{this.dir=p,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,t.R)(this.host.nativeElement,"click").pipe((0,l.R)(this.destroy$)).subscribe(p=>{p.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,t.R)(this.switchElement.nativeElement,"keydown").pipe((0,l.R)(this.destroy$)).subscribe(p=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:h}=p;h!==n.oh&&h!==n.SV&&h!==n.L_&&h!==n.K5||(p.preventDefault(),this.ngZone.run(()=>{h===n.oh?this.updateValue(!1):h===n.SV?this.updateValue(!0):(h===n.L_||h===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,l.R)(this.destroy$)).subscribe(p=>{p||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(p){this.isChecked=p,this.cdr.markForCheck()}registerOnChange(p){this.onChange=p}registerOnTouched(p){this.onTouched=p}setDisabledState(p){this.nzDisabled=p,this.cdr.markForCheck()}}return z.\u0275fac=function(p){return new(p||z)(a.Y36(v.jY),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(T.tE),a.Y36(N.Is,8))},z.\u0275cmp=a.Xpm({type:z,selectors:[["nz-switch"]],viewQuery:function(p,h){if(1&p&&a.Gf(c,7),2&p){let C;a.iGM(C=a.CRH())&&(h.switchElement=C.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[a._Bn([{provide:S.JU,useExisting:(0,a.Gpc)(()=>z),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(p,h){if(1&p&&(a.TgZ(0,"button",0,1),a.TgZ(2,"span",2),a.YNc(3,b,1,0,"i",3),a.qZA(),a.TgZ(4,"span",4),a.YNc(5,$,2,1,"ng-container",5),a.YNc(6,W,1,1,"ng-template",null,6,a.W1O),a.qZA(),a._UZ(8,"div",7),a.qZA()),2&p){const C=a.MAs(7);a.ekj("ant-switch-checked",h.isChecked)("ant-switch-loading",h.nzLoading)("ant-switch-disabled",h.nzDisabled)("ant-switch-small","small"===h.nzSize)("ant-switch-rtl","rtl"===h.dir),a.Q6J("disabled",h.nzDisabled)("nzWaveExtraNode",!0),a.xp6(3),a.Q6J("ngIf",h.nzLoading),a.xp6(2),a.Q6J("ngIf",h.isChecked)("ngIfElse",C)}},directives:[s.dQ,i.O5,M.Ls,E.f],encapsulation:2,changeDetection:0}),(0,d.gn)([(0,m.yF)()],z.prototype,"nzLoading",void 0),(0,d.gn)([(0,m.yF)()],z.prototype,"nzDisabled",void 0),(0,d.gn)([(0,m.yF)()],z.prototype,"nzControl",void 0),(0,d.gn)([(0,v.oS)()],z.prototype,"nzSize",void 0),z})(),P=(()=>{class z{}return z.\u0275fac=function(p){return new(p||z)},z.\u0275mod=a.oAB({type:z}),z.\u0275inj=a.cJS({imports:[[N.vT,i.ez,s.vG,M.PV,E.T]]}),z})()}}]); \ No newline at end of file diff --git a/server/public/9081.0ab72e89b7403f00.js b/server/public/9081.0ab72e89b7403f00.js deleted file mode 100644 index 3f5ac32c7..000000000 --- a/server/public/9081.0ab72e89b7403f00.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9081],{8616:(B,I,i)=>{i.d(I,{u:()=>o});var d=i(5e3),n=i(685),r=i(1912),b=i(3618),x=i(647);function e(v,_){1&v&&(d.TgZ(0,"span"),d._uU(1," You must be logged in to view this page. "),d.qZA())}function C(v,_){1&v&&d._UZ(0,"cvc-login-button")}function u(v,_){1&v&&(d.TgZ(0,"nz-typography",4),d._UZ(1,"i",5),d.qZA())}let o=(()=>{class v{}return v.\u0275fac=function(T){return new(T||v)},v.\u0275cmp=d.Xpm({type:v,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(T,O){if(1&T&&(d.TgZ(0,"nz-empty",0),d.YNc(1,e,2,0,"ng-template",null,1,d.W1O),d.YNc(3,C,1,0,"ng-template",null,2,d.W1O),d.qZA(),d.YNc(5,u,2,0,"ng-template",null,3,d.W1O)),2&T){const M=d.MAs(2),E=d.MAs(4),A=d.MAs(6);d.Q6J("nzNotFoundImage",A)("nzNotFoundContent",M)("nzNotFoundFooter",E)}},directives:[n.p9,r.s,b.ZU,x.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),v})()},9386:(B,I,i)=>{i.d(I,{a:()=>C});var d=i(9808),n=i(1844),r=i(685),b=i(647),x=i(3618),e=i(5e3);let C=(()=>{class u{}return u.\u0275fac=function(v){return new(v||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[[d.ez,n.B,r.Xo,b.PV,x.ZJ]]}),u})()},7701:(B,I,i)=>{i.d(I,{j:()=>F});var d=i(6654),n=i(5e3),r=i(9808),b=i(325),x=i(8481),e=i(3610),C=i(4850),u=i(712),o=i(7484),v=i(647),_=i(6550),T=i(3098),O=i(6949);function M(m,z){if(1&m&&(n._UZ(0,"i",7),n._uU(1)),2&m){const f=n.oxw().ngIf;n.xp6(1),n.hij(" ",f.name," ")}}function E(m,z){if(1&m&&(n.TgZ(0,"cvc-link-tag",9),n._uU(1),n.qZA()),2&m){const f=n.oxw(2).ngIf;n.Q6J("href",f.url),n.xp6(1),n.hij(" ",f.soid," ")}}function A(m,z){if(1&m&&n.YNc(0,E,2,2,"cvc-link-tag",8),2&m){const f=n.oxw().ngIf;n.Q6J("ngIf","N/A"!=f.soid)}}function D(m,z){if(1&m&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,M,2,1,"ng-template",null,3,n.W1O),n.YNc(4,A,1,1,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.TgZ(7,"nz-descriptions-item",6),n._uU(8),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&m){const f=z.ngIf,S=n.MAs(3),w=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",S)("nzExtra",w),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",f.variantCount," ")}}let R=(()=>{class m{constructor(f){this.gql=f}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,C.U)(({data:f})=>f.variantTypePopover))}}return m.\u0275fac=function(f){return new(f||m)(n.Y36(u.tw_))},m.\u0275cmp=n.Xpm({type:m,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(f,S){1&f&&(n.TgZ(0,"div",0),n.YNc(1,D,9,4,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&f&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,S.variantType$)))},directives:[r.O5,o.bd,v.Ls,_.l,T.R7,T.uj],pipes:[O.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),m})();function L(m,z){}function N(m,z){if(1&m&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,L,0,0,"ng-template",6),n.qZA(),n.BQk()),2&m){const f=n.oxw(),S=n.MAs(2);n.xp6(1),n.Q6J("routerLink",f.variantType.link),n.xp6(1),n.Q6J("ngTemplateOutlet",S)}}function J(m,z){}function U(m,z){if(1&m&&(n.TgZ(0,"nz-tag",9),n.YNc(1,J,0,0,"ng-template",6),n.qZA()),2&m){n.oxw();const f=n.MAs(2);n.oxw();const S=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",f),n.xp6(1),n.Q6J("ngTemplateOutlet",S)}}function Q(m,z){if(1&m&&n._UZ(0,"cvc-variant-type-popover",10),2&m){const f=n.oxw(2);n.Q6J("variantTypeId",f.variantType.id)}}function V(m,z){if(1&m&&(n.YNc(0,U,2,3,"nz-tag",7),n.YNc(1,Q,1,1,"ng-template",null,8,n.W1O)),2&m){const f=n.oxw(),S=n.MAs(6);n.Q6J("ngIf",f.enablePopover)("ngIfElse",S)}}function s(m,z){}function h(m,z){if(1&m&&n.YNc(0,s,0,0,"ng-template",6),2&m){n.oxw();const f=n.MAs(2);n.Q6J("ngTemplateOutlet",f)}}function l(m,z){}function g(m,z){if(1&m&&(n.TgZ(0,"nz-tag"),n.YNc(1,l,0,0,"ng-template",6),n.qZA()),2&m){n.oxw();const f=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",f)}}function P(m,z){if(1&m&&(n._UZ(0,"i",11),n._uU(1)),2&m){const f=n.oxw();n.xp6(1),n.hij(" ",f.variantType.name,"\n")}}let F=(()=>{class m extends d.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return m.\u0275fac=function(f){return new(f||m)},m.\u0275cmp=n.Xpm({type:m,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(f,S){if(1&f&&(n.YNc(0,N,3,2,"ng-container",0),n.YNc(1,V,3,2,"ng-template",null,1,n.W1O),n.YNc(3,h,1,1,"ng-template",null,2,n.W1O),n.YNc(5,g,2,1,"ng-template",null,3,n.W1O),n.YNc(7,P,2,1,"ng-template",null,4,n.W1O)),2&f){const w=n.MAs(4);n.Q6J("ngIf",S.linked)("ngIfElse",w)}},directives:[r.O5,b.yS,r.tP,x.j,e.lU,R,v.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),m})()},8645:(B,I,i)=>{i.d(I,{M:()=>T});var d=i(9808),n=i(325),r=i(8481),b=i(7484),x=i(3630),e=i(3098),C=i(6949),u=i(647),o=i(5e3);let v=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275mod=o.oAB({type:O}),O.\u0275inj=o.cJS({imports:[[d.ez,C.WG,u.PV,b.vh,e.q6,x.X]]}),O})();var _=i(3610);let T=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275mod=o.oAB({type:O}),O.\u0275inj=o.cJS({imports:[[d.ez,n.Bz,u.PV,r.X,_.$6,v]]}),O})()},7462:(B,I,i)=>{i.d(I,{o:()=>u});var d=i(9808),n=i(8776),r=i(5e3),b=i(1047),x=i(4182);const C={name:"cvc-textarea",component:(()=>{class o extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return o.\u0275fac=function(){let v;return function(T){return(v||(v=r.n5z(o)))(T||o)}}(),o.\u0275cmp=r.Xpm({type:o,selectors:[["cvc-textarea-base-type"]],features:[r.qOj],decls:1,vars:3,consts:[["nz-input","",3,"nzAutosize","formControl","formlyAttributes"]],template:function(_,T){1&_&&r._UZ(0,"textarea",0),2&_&&r.Q6J("nzAutosize",T.to.autosize)("formControl",T.formControl)("formlyAttributes",T.field)},directives:[b.Zp,b.rh,x.Fj,x.JJ,x.oH,n.VQ],styles:[""],changeDetection:0}),o})(),wrappers:["form-field"]};let u=(()=>{class o{}return o.\u0275fac=function(_){return new(_||o)},o.\u0275mod=r.oAB({type:o}),o.\u0275inj=r.cJS({imports:[[d.ez,x.u5,x.UX,n.X0.forChild({types:[C]}),b.o7]]}),o})()},6738:(B,I,i)=>{function d(u){let o={value:void 0,unset:void 0};return u&&u.trim().length>0?o.value=u.trim():o.unset=!0,o}function n(u){let o={value:void 0,unset:void 0};return void 0!==u?o.value=u:o.unset=!0,o}function r(u){let o,v;return u&&u.includes("N/A")?(u=void 0,v=void 0,o=!0):u||(u=void 0,o=void 0,v=!0),{ids:u?u.map(_=>+_):void 0,noneFound:v,notApplicable:o}}function b(u){return{chromosome:e(u.chromosome),representativeTranscript:e(u.representativeTranscript),start:u.start?+u.start:void 0,stop:u.stop?+u.stop:void 0}}function x(u){let o={value:void 0,unset:void 0};return u?o.value=u:o.unset=!0,o}function e(u){let o;return o=u&&u.length>0?u:void 0,o}i.d(I,{aP:()=>C,Zg:()=>r,_$:()=>b,uP:()=>n,dh:()=>x,xt:()=>d});const C=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7695:(B,I,i)=>{i.d(I,{C:()=>V});var d=i(9808),n=i(6949),r=i(8776),b=i(7484),x=i(5482),e=i(1894),C=i(5109),u=i(6789),o=i(5e3),v=i(19),_=i(647),T=i(404);function O(s,h){1&s&&o._UZ(0,"div",9),2&s&&o.Q6J("innerHtml",h.ngIf,o.oJD)}function M(s,h){1&s&&(o.TgZ(0,"div",10),o._uU(1,"Help not available for this field."),o.qZA())}function E(s,h){if(1&s&&(o.TgZ(0,"nz-collapse-panel",6),o.YNc(1,O,1,1,"div",7),o.YNc(2,M,2,0,"ng-template",null,8,o.W1O),o.qZA()),2&s){const l=h.ngIf,g=o.MAs(3),P=o.oxw().$implicit,F=o.MAs(3);o.Q6J("nzHeader",l)("nzActive",P.templateOptions.hasFocus)("nzExtra",F),o.xp6(1),o.Q6J("ngIf",null==P.templateOptions?null:P.templateOptions.helpText)("ngIfElse",g)}}function A(s,h){if(1&s&&o._UZ(0,"formly-validation-message",14),2&s){const l=o.oxw(4).$implicit;o.Q6J("field",l)}}function D(s,h){if(1&s&&(o.ynx(0),o._UZ(1,"i",12),o.YNc(2,A,1,1,"ng-template",null,13,o.W1O),o.BQk()),2&s){const l=o.MAs(3);o.xp6(1),o.Q6J("nzTooltipTitle",l)}}function R(s,h){if(1&s&&(o.ynx(0),o.YNc(1,D,4,1,"ng-container",11),o.BQk()),2&s){const l=h.ngIf;o.xp6(1),o.Q6J("ngIf","INVALID"===l)}}function L(s,h){if(1&s&&(o.YNc(0,R,2,1,"ng-container",11),o.ALo(1,"ngrxPush")),2&s){const l=o.oxw().$implicit;o.Q6J("ngIf",o.lcZ(1,1,l.formControl.statusChanges))}}function N(s,h){if(1&s&&(o.ynx(0),o.YNc(1,E,4,5,"nz-collapse-panel",4),o.YNc(2,L,2,3,"ng-template",null,5,o.W1O),o.BQk()),2&s){const l=h.$implicit;o.xp6(1),o.Q6J("ngIf",null==l.templateOptions?null:l.templateOptions.label)}}let J=(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(l){return new(l||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["cvc-form-info-card"]],inputs:{fieldGroup:"fieldGroup",affixTo:"affixTo"},decls:4,vars:4,consts:[[3,"nzOffsetTop","nzTarget"],["nzTitle","Form Assistant","nzSize","default",1,"form-helper-card"],[3,"nzBordered"],[4,"ngFor","ngForOf"],[3,"nzHeader","nzActive","nzExtra",4,"ngIf"],["fieldStatus",""],[3,"nzHeader","nzActive","nzExtra"],["class","help-text",3,"innerHtml",4,"ngIf","ngIfElse"],["noHelpText",""],[1,"help-text",3,"innerHtml"],[1,"help-text"],[4,"ngIf"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","#f5222d","nz-tooltip","","nzTooltipColor","red",3,"nzTooltipTitle"],["errorTooltip",""],[3,"field"]],template:function(l,g){1&l&&(o.TgZ(0,"nz-affix",0),o.TgZ(1,"nz-card",1),o.TgZ(2,"nz-collapse",2),o.YNc(3,N,4,1,"ng-container",3),o.qZA(),o.qZA(),o.qZA()),2&l&&(o.Q6J("nzOffsetTop",0)("nzTarget",g.affixTo),o.xp6(2),o.Q6J("nzBordered",!1),o.xp6(1),o.Q6J("ngForOf",g.fieldGroup))},directives:[v.$,b.bd,x.yH,d.sg,d.O5,x.Zv,_.Ls,T.SY,r.u_],pipes:[n.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}.help-text[_ngcontent-%COMP%]{padding:6px 8px;border:1px solid #EFEFEF;background:white;border-radius:6px}"]}),s})();const Q={name:"form-info",component:(()=>{class s extends r.n2{}return s.\u0275fac=function(){let h;return function(g){return(h||(h=o.n5z(s)))(g||s)}}(),s.\u0275cmp=o.Xpm({type:s,selectors:[["cvc-form-info-wrapper"]],features:[o.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(l,g){if(1&l&&(o.TgZ(0,"nz-row",0),o.TgZ(1,"nz-col",1),o.TgZ(2,"nz-card",2),o.GkF(3,null,3),o.qZA(),o.qZA(),o.TgZ(5,"nz-col",1),o.TgZ(6,"div",null,4),o._UZ(8,"cvc-form-info-card",5),o.qZA(),o.qZA(),o.qZA()),2&l){const P=o.MAs(7);o.xp6(1),o.Q6J("nzSpan",16),o.xp6(1),o.Q6J("nzTitle",g.to.label),o.xp6(3),o.Q6J("nzSpan",8),o.xp6(3),o.Q6J("fieldGroup",g.field.fieldGroup)("affixTo",P)}},directives:[e.SK,e.t3,b.bd,J],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),s})()};let V=(()=>{class s{}return s.\u0275fac=function(l){return new(l||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[d.ez,n.WG,r.X0.forChild({wrappers:[Q]}),e.Jb,b.vh,x.cD,u._,C.s]]}),s})()},9081:(B,I,i)=>{i.r(I),i.d(I,{VariantsReviseModule:()=>Le});var d=i(9808),n=i(325),r=i(373),b=i(1059),x=i(4850),e=i(5e3),C=i(712),u=i(9350),o=i(8992),v=i(1945),_=i(647),T=i(1894),O=i(8616),M=i(6949);function E(t,p){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function A(t,p){1&t&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function D(t,p){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,E,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,A,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const a=p.ngIf,c=e.MAs(14),y=e.oxw();e.xp6(1),e.Q6J("displayName",a.name),e.xp6(5),e.hij(" ",a.name," "),e.xp6(2),e.hij(" ",a.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,y.isSignedIn$))("ngIfElse",c)}}let R=(()=>{class t{constructor(a,c,y){this.gql=a,this.route=c,this.viewerService=y,this.routeSub=this.route.params.subscribe(Y=>{let X=this.gql.watch({variantId:+Y.variantId}).valueChanges;this.loading$=X.pipe((0,r.j)("loading"),(0,b.O)(!0)),this.variant$=X.pipe((0,r.j)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,r.j)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,r.j)("flags","totalCount")),this.revisionsTotal$=this.variant$.pipe((0,r.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,x.U)(a=>a.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(C.iJT),e.Y36(n.gz),e.Y36(u.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variants-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variant"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(a,c){1&a&&(e.YNc(0,D,15,7,"ng-container",0),e.ALo(1,"async")),2&a&&e.Q6J("ngIf",e.lcZ(1,1,c.variant$))},directives:[d.O5,o.I,v.$O,v.u9,_.Ls,v.yG,v.u5,n.lC,T.SK,T.t3,O.u],pipes:[d.Ov,M.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})();var L=i(3773),N=i(8390),J=i(4375),U=i(7008),Q=i(1825),V=i(8776),s=i(6042),h=i(2359),l=i(4546),g=i(4182),P=i(5109),F=i(8929),m=i(591),z=i(5284),f=i(7625),S=i(537),w=i(9169);let j=(()=>{class t{constructor(a,c){this.suggestVariantRevisionGQL=a,this.networkErrorService=c,this.destroy$=new F.xQ,this.isSubmitting$=new m.X(!1),this.submitSuccess$=new m.X(!1),this.submitError$=new m.X([])}suggest(a){this.storeObj={id:a.id,__typename:(0,z.e)("Variant")},this.isSubmitting$.next(!0),this.suggestVariantRevisionGQL.mutate({input:a},{update:(c,{data:{suggestVariantRevision:y}})=>{c.modify({id:c.identify(this.storeObj),fields:{revisions:(Y=[])=>y.variant.revisions}})}}).pipe((0,f.R)(this.destroy$),(0,S.x)(()=>{this.isSubmitting$.next(!1)})).subscribe({error:c=>{c.graphQLErrors.length>0?this.submitError$.next(c.graphQLErrors.map(y=>y.message)):c.networkError&&this.networkErrorService.networkError$.next(c.networkError)},complete:()=>{this.submitError$.next([]),this.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0)}})}cleanup(){this.submitError$.next([]),this.submitSuccess$.next(!1),this.isSubmitting$.next(!1),this.networkErrorService.networkError$.next(void 0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(a){return new(a||t)(e.LFG(C.Xft),e.LFG(w.Y))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac}),t})();var $=i(8054),K=i(7701);function H(t,p){if(1&t&&(e.TgZ(0,"nz-option",6),e._uU(1),e.qZA()),2&t){const a=p.$implicit;e.hYB("nzLabel","",a.name," (",a.soid,")"),e.Q6J("nzValue",a),e.xp6(1),e.AsE(" ",a.name," (",a.soid,") ")}}function k(t,p){if(1&t&&(e.ynx(0),e.YNc(1,H,2,5,"nz-option",5),e.BQk()),2&t){const a=p.ngrxLet;e.xp6(1),e.Q6J("ngForOf",a)}}function q(t,p){1&t&&e._uU(0," No variant type found in CIViC that matches the string provided. ")}function ee(t,p){if(1&t){const a=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",2),e.NdJ("nzOnSearch",function(y){return e.CHM(a),e.oxw().to.onSearch(y)}),e.YNc(2,k,2,1,"ng-container",3),e.qZA(),e.YNc(3,q,1,0,"ng-template",null,4,e.W1O),e.BQk()}if(2&t){const a=e.MAs(4),c=e.oxw();e.xp6(1),e.Q6J("formControl",c.formControl)("formlyAttributes",c.field)("nzPlaceHolder",c.to.placeholder?c.to.placeholder:null)("nzNotFoundContent",a)("nzShowArrow",c.to.showArrow)("nzFilterOption",c.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",c.variantTypes$)}}function te(t,p){if(1&t&&e._UZ(0,"cvc-variant-type-tag",7),2&t){const a=e.oxw();e.Q6J("variantType",a.formControl.value)}}const ne={name:"variant-type-input",component:(()=>{class t extends V.fS{constructor(a){super(),this.variantTypeTypeaheadQuery=a,this.destroy$=new F.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Variant Types",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.variantTypeTypeaheadQuery.watch({name:""}),this.variantTypes$=this.queryRef.valueChanges.pipe((0,f.R)(this.destroy$),(0,r.j)("data","variantTypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=a=>{var c;this.to.fieldValue=a,this.to.fieldLength=a.length,!(a.lengththis.to.maxLength)&&(null===(c=this.queryRef)||void 0===c||c.refetch({name:a}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(C.BnY))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variant-type-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"variantType"]],template:function(a,c){if(1&a&&(e.YNc(0,ee,5,7,"ng-container",0),e.YNc(1,te,1,1,"ng-template",null,1,e.W1O)),2&a){const y=e.MAs(2);e.Q6J("ngIf",!(null!=c.formControl.value&&c.formControl.value.id))("ngIfElse",y)}},directives:[d.O5,$.Vq,g.JJ,g.oH,V.VQ,M.eJ,d.sg,$.Ip,K.j],styles:[""]}),t})()};var oe=i(8645);let ie=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,g.UX,V.X0.forChild({types:[ne]}),M.WG,$.LV,oe.M]]}),t})();var W=i(7484),ae=i(5482),re=i(6462),se=i(7075),le=i(7695);const ce={name:"variant-coordinates-card",component:(()=>{class t extends V.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{isFusionVariant:!1}}}}return t.\u0275fac=function(){let p;return function(c){return(p||(p=e.n5z(t)))(c||t)}}(),t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variant-coordinates-card-type"]],features:[e.qOj],decls:3,vars:1,consts:[[3,"nzTitle"],["fieldComponent",""]],template:function(a,c){1&a&&(e.TgZ(0,"nz-card",0),e.GkF(1,null,1),e.qZA()),2&a&&e.Q6J("nzTitle",c.to.label)},directives:[W.bd],styles:[""],changeDetection:0}),t})()};let pe=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,g.UX,V.X0.forChild({types:[ce]}),W.vh]]}),t})();var de=i(4623),G=i(656);const ue={name:"ensembl-version",validation:(t,p)=>{if(void 0===t.value)return null;{let a=+t.value;return a<76||a>150?{"ensembl-version":!0}:null}}},ge={name:"ensembl-version",message:(t,p)=>{var a;return`${null===(a=p.formControl)||void 0===a?void 0:a.value} is not a valid version of Ensembl. Must be an number between 76 and the latest version of Ensembl.`}},fe={name:"cvc-ensembl-input",component:(()=>{class t extends V.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{label:"Ensembl Version",helpText:"Enter a valid Ensembl database version (e.g. 75)."},validators:{validation:["ensembl-version"]}}}}return t.\u0275fac=function(){let p;return function(c){return(p||(p=e.n5z(t)))(c||t)}}(),t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-ensembl-input-type"]],features:[e.qOj],decls:1,vars:2,consts:[[3,"formControl","formlyAttributes"]],template:function(a,c){1&a&&e._UZ(0,"nz-input-number",0),2&a&&e.Q6J("formControl",c.formControl)("formlyAttributes",c.field)},directives:[G._,g.JJ,g.oH,V.VQ],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})(),wrappers:["form-field"]};let ve=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,g.u5,g.UX,V.X0.forChild({types:[fe],validators:[ue],validationMessages:[ge]}),G.Z]]}),t})();var he=i(7462),ye=i(4889);let _e=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[j],imports:[[d.ez,n.Bz,M.WG,g.UX,V.X0,P.s,s.sL,W.vh,ae.cD,l.U5,h.L,T.Jb,_.PV,s.sL,re.m,se.l,Q.A,le.C,U.B,J.R,pe,de.K,N.N,L.g,ie,ve,he.o,ye.E,P.s]]}),t})(),Te=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,_e]]}),t})();var Z=i(6738),Ce=i(444);function ze(t){switch(t){case"GRCH37":return"GRCh37 (hg19)";case"GRCH38":return"GRCh38 (hg38)";case"NCBI36":return"NCBI36 (hg18)";default:return t}}var xe=i(822);function Oe(t,p){1&t&&e.GkF(0)}function be(t,p){1&t&&e.GkF(0)}function Ie(t,p){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",5),e.qZA()),2&t){const a=e.oxw().ngIf;e.xp6(1),e.Q6J("errors",a)}}function Me(t,p){if(1&t&&(e.ynx(0),e.YNc(1,Ie,2,1,"nz-form-item",4),e.BQk()),2&t){const a=p.ngIf;e.xp6(1),e.Q6J("ngIf",a.length>0)}}function Pe(t,p){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",9),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4," or suggest another revision below."),e.qZA())}function Ve(t,p){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",6),e.YNc(2,Pe,5,0,"ng-template",7,8,e.W1O),e.BQk()),2&t){const a=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",a)}}function Ee(t,p){if(1&t&&(e.YNc(0,Me,2,1,"ng-container",4),e.ALo(1,"async"),e.YNc(2,Ve,4,1,"ng-container",4),e.ALo(3,"async")),2&t){const a=e.oxw();e.Q6J("ngIf",e.lcZ(1,2,a.submitError$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,4,a.submitSuccess$))}}let Se=(()=>{class t{constructor(a,c){this.revisionService=a,this.revisableFieldsGQL=c,this.destroy$=new F.xQ,this.formGroup=new g.cw({}),this.formOptions={},this.submitError$=this.revisionService.submitError$,this.isSubmitting$=this.revisionService.isSubmitting$,this.submitSuccess$=this.revisionService.submitSuccess$,this.formFields=[{key:"fields",wrappers:["form-info"],templateOptions:{label:"Suggest Variant Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"description",type:"cvc-textarea",templateOptions:{label:"Variant Description",placeholder:"Enter a description for this variant.",helpText:'Provide a summary of the clinical relevance of this Variant. The Variant Summary should be a synthesis of the existing Evidence Statements for this variant. Basic information on recurrence rates and biological/functional impact of the Variant may be included, but the focus should be on the clinical impact (i.e. predictive, prognostic, diagnostic, or predisposing relevance). By submitting content to CIViC you agree to release it to the public domain as described by the Creative Commons Public Domain Dedication (CC0 1.0 Universal).',required:!0}},{key:"sources",type:"multi-field",templateOptions:{label:"Description Sources",addText:"Add another Source",helpText:"Add any Sources used as references for this Variant's Description above."},fieldArray:{type:"source-input",templateOptions:{required:!1}}},{key:"variantAliases",type:"multi-field",templateOptions:{label:"Variant Aliases",addText:"Add an Alias",helpText:"List any aliases commonly used to refer to this variant."},fieldArray:{type:"input",templateOptions:{required:!1,placeholder:"Add Alias",minLength:3}}},{key:"hgvsDescriptions",type:"multi-field",templateOptions:{label:"HGVS Descriptions",addText:"Add an HGVS Description",helpText:"Please specify any HGVS descriptions for this variant."},fieldArray:{type:"input",templateOptions:{required:!0,placeholder:"Enter an HGVS string"}}},{key:"clinvarIds",type:"multi-field",templateOptions:{label:"ClinVar IDs",addText:"Add a ClinVar ID",helpText:"Specify any corresponding ClinVar identifiers for this variant."},fieldArray:{type:"input",templateOptions:{required:!1,placeholder:"Enter a ClinVar ID"}}},{key:"variantTypes",type:"multi-field",templateOptions:{label:"Variant Types",addText:"Add a Variant Type",helpText:'Add one or more variant types from the Sequence Ontology (e.g., missense, loss-of-function). Be specific as possible, avoid the addition of root concepts, and use the sequence_variant tree of the sequence ontology.'},fieldArray:{type:"variant-type-input",templateOptions:{required:!1}}},{template:"

    Primary Coordinates

    "},{key:"referenceBuild",type:"select",defaultValue:C.JDX.Grch37,templateOptions:{label:"Reference Build",required:!1,helpText:"Specify the human genome reference sequence from which these coordinates are obtained.",options:(0,Ce.o6)(C.JDX).map(y=>({value:y,label:ze(y)}))}},{key:"ensemblVersion",type:"cvc-ensembl-input"},{key:"fivePrimeCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",helpText:"Specify the chromosome in which this variant occurs (e.g. 17).",required:!1,options:Z.aP}},{key:"fivePrimeCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"fivePrimeCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"fivePrimeCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{template:"

    Secondary Coordinates

    "},{key:"threePrimeCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",required:!1,options:Z.aP,helpText:"If this variant is a fusion (e.g. BCR-ABL1), specify the chromosome name, coordinates, and representative transcript for the 3-prime partner."}},{key:"threePrimeCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this 3-prime partner fusion variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"threePrimeCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this 3-prime partner fusion variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"threePrimeCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision to this variant.",helpText:"Please enter a comment describing your revision to this variant.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Revision",submitSize:"large"}}]}],this.submitSuccess$.pipe((0,f.R)(this.destroy$)).subscribe(y=>{y&&this.formOptions.resetModel&&this.formOptions.resetModel()})}ngOnInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).subscribe(({data:{variant:a}})=>{a&&(this.formModel=this.toFormModel(a)),this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue()},a=>{console.error("Error retrieving variant."),console.error(a)},()=>{this.formGroup.markAllAsTouched();const a=this.formGroup.get("fields.comment");a&&a.markAsUntouched()})}submitRevision(a){this.revisionService.suggest(this.toRevisionInput(a))}toFormModel(a){var c,y;return{id:a.id,fields:Object.assign(Object.assign({},a),{referenceBases:null===(c=a.fivePrimeCoordinates)||void 0===c?void 0:c.referenceBases,variantBases:null===(y=a.fivePrimeCoordinates)||void 0===y?void 0:y.variantBases,comment:this.formModel.fields.comment,organization:this.formModel.fields.organization})}}toRevisionInput(a){const c=a.fields;return Object.assign(Object.assign({},a),{fields:{name:c.name,geneId:c.gene.id,ensemblVersion:+c.ensemblVersion,description:Z.xt(c.description),clinvarIds:Z.Zg(c.clinvarIds),primaryCoordinates:Z._$(c.fivePrimeCoordinates),secondaryCoordinates:Z._$(c.threePrimeCoordinates),referenceBases:Z.xt(c.referenceBases),variantBases:Z.xt(c.variantBases),referenceBuild:Z.dh(c.referenceBuild),hgvsDescriptions:c.hgvsDescriptions,sourceIds:a.fields.sources.map(y=>+y.id),variantTypeIds:a.fields.variantTypes.map(y=>+y.id),aliases:a.fields.variantAliases},comment:a.fields.comment,organizationId:void 0===a.fields.organization?void 0:a.fields.organization.id})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.revisionService.cleanup()}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(j),e.Y36(C.nnL))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variant-revise-form"]],inputs:{variantId:"variantId"},decls:6,vars:7,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange"],["formMessages",""],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(a,c){if(1&a&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return c.submitRevision(c.formModel)}),e.YNc(1,Oe,1,0,"ng-container",1),e.TgZ(2,"formly-form",2),e.NdJ("modelChange",function(Y){return c.formModel=Y}),e.qZA(),e.YNc(3,be,1,0,"ng-container",1),e.qZA(),e.YNc(4,Ee,4,6,"ng-template",null,3,e.W1O)),2&a){const y=e.MAs(5);e.Q6J("formGroup",c.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",y),e.xp6(1),e.Q6J("form",c.formGroup)("fields",c.formFields)("model",c.formModel)("options",c.formOptions),e.xp6(1),e.Q6J("ngTemplateOutlet",y)}},directives:[g._Y,g.JL,l.Lr,g.sg,d.tP,V.T7,d.O5,T.SK,l.Nx,xe.V,h.r,n.yS],pipes:[d.Ov],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}"]}),t})();function Ae(t,p){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-variant-revise-form",2),e.BQk()),2&t){const a=e.oxw();e.xp6(1),e.Q6J("variantId",a.variantId)}}function Fe(t,p){1&t&&e._uU(0,"Loading Variant...")}const Ze=[{path:"",component:R,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(a){this.route=a,this.routeParams$=this.route.params.subscribe(c=>{this.variantId=+c.variantId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(n.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variants-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariant",""],[3,"variantId"]],template:function(a,c){if(1&a&&(e.YNc(0,Ae,2,1,"ng-container",0),e.YNc(1,Fe,1,0,"ng-template",null,1,e.W1O)),2&a){const y=e.MAs(2);e.Q6J("ngIf",c.variantId)("ngIfElse",y)}},directives:[d.O5,Se],styles:[""]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let Be=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[n.Bz.forChild(Ze),Te],n.Bz]}),t})();var De=i(5630),Re=i(9386);let Le=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,Be,v.KJ,_.PV,De.D,Re.a,M.WG,T.Jb]]}),t})()},6462:(B,I,i)=>{i.d(I,{i:()=>Q,m:()=>V});var d=i(655),n=i(1159),r=i(5e3),b=i(4182),x=i(8929),e=i(3753),C=i(7625),u=i(9439),o=i(1721),v=i(5664),_=i(226),T=i(2643),O=i(9808),M=i(647),E=i(969);const A=["switchElement"];function D(s,h){1&s&&r._UZ(0,"i",8)}function R(s,h){if(1&s&&(r.ynx(0),r._uU(1),r.BQk()),2&s){const l=r.oxw(2);r.xp6(1),r.Oqu(l.nzCheckedChildren)}}function L(s,h){if(1&s&&(r.ynx(0),r.YNc(1,R,2,1,"ng-container",9),r.BQk()),2&s){const l=r.oxw();r.xp6(1),r.Q6J("nzStringTemplateOutlet",l.nzCheckedChildren)}}function N(s,h){if(1&s&&(r.ynx(0),r._uU(1),r.BQk()),2&s){const l=r.oxw(2);r.xp6(1),r.Oqu(l.nzUnCheckedChildren)}}function J(s,h){if(1&s&&r.YNc(0,N,2,1,"ng-container",9),2&s){const l=r.oxw();r.Q6J("nzStringTemplateOutlet",l.nzUnCheckedChildren)}}let Q=(()=>{class s{constructor(l,g,P,F,m,z){this.nzConfigService=l,this.host=g,this.ngZone=P,this.cdr=F,this.focusMonitor=m,this.directionality=z,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new x.xQ}updateValue(l){this.isChecked!==l&&(this.isChecked=l,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.host.nativeElement,"click").pipe((0,C.R)(this.destroy$)).subscribe(l=>{l.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,e.R)(this.switchElement.nativeElement,"keydown").pipe((0,C.R)(this.destroy$)).subscribe(l=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:g}=l;g!==n.oh&&g!==n.SV&&g!==n.L_&&g!==n.K5||(l.preventDefault(),this.ngZone.run(()=>{g===n.oh?this.updateValue(!1):g===n.SV?this.updateValue(!0):(g===n.L_||g===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,C.R)(this.destroy$)).subscribe(l=>{l||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(l){this.isChecked=l,this.cdr.markForCheck()}registerOnChange(l){this.onChange=l}registerOnTouched(l){this.onTouched=l}setDisabledState(l){this.nzDisabled=l,this.cdr.markForCheck()}}return s.\u0275fac=function(l){return new(l||s)(r.Y36(u.jY),r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(v.tE),r.Y36(_.Is,8))},s.\u0275cmp=r.Xpm({type:s,selectors:[["nz-switch"]],viewQuery:function(l,g){if(1&l&&r.Gf(A,7),2&l){let P;r.iGM(P=r.CRH())&&(g.switchElement=P.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[r._Bn([{provide:b.JU,useExisting:(0,r.Gpc)(()=>s),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(l,g){if(1&l&&(r.TgZ(0,"button",0,1),r.TgZ(2,"span",2),r.YNc(3,D,1,0,"i",3),r.qZA(),r.TgZ(4,"span",4),r.YNc(5,L,2,1,"ng-container",5),r.YNc(6,J,1,1,"ng-template",null,6,r.W1O),r.qZA(),r._UZ(8,"div",7),r.qZA()),2&l){const P=r.MAs(7);r.ekj("ant-switch-checked",g.isChecked)("ant-switch-loading",g.nzLoading)("ant-switch-disabled",g.nzDisabled)("ant-switch-small","small"===g.nzSize)("ant-switch-rtl","rtl"===g.dir),r.Q6J("disabled",g.nzDisabled)("nzWaveExtraNode",!0),r.xp6(3),r.Q6J("ngIf",g.nzLoading),r.xp6(2),r.Q6J("ngIf",g.isChecked)("ngIfElse",P)}},directives:[T.dQ,O.O5,M.Ls,E.f],encapsulation:2,changeDetection:0}),(0,d.gn)([(0,o.yF)()],s.prototype,"nzLoading",void 0),(0,d.gn)([(0,o.yF)()],s.prototype,"nzDisabled",void 0),(0,d.gn)([(0,o.yF)()],s.prototype,"nzControl",void 0),(0,d.gn)([(0,u.oS)()],s.prototype,"nzSize",void 0),s})(),V=(()=>{class s{}return s.\u0275fac=function(l){return new(l||s)},s.\u0275mod=r.oAB({type:s}),s.\u0275inj=r.cJS({imports:[[_.vT,O.ez,T.vG,M.PV,E.T]]}),s})()}}]); \ No newline at end of file diff --git a/server/public/9484.aee7e3e6cb2747e5.js b/server/public/9484.aee7e3e6cb2747e5.js deleted file mode 100644 index b83d5c7e0..000000000 --- a/server/public/9484.aee7e3e6cb2747e5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9484],{7946:(F,I,o)=>{o.d(I,{x:()=>n});var _=o(9808),t=o(897),m=o(8481),C=o(3610),T=o(8018),A=o(3580),J=o(9476),y=o(5e3);let n=(()=>{class f{}return f.\u0275fac=function(M){return new(M||f)},f.\u0275mod=y.oAB({type:f}),f.\u0275inj=y.cJS({imports:[[_.ez,m.X,C.$6,t.$,T.e,A.Q,J.L]]}),f})()},9814:(F,I,o)=>{o.d(I,{O:()=>Un});var _=o(712),t=o(3154),m=o(8929),C=o(4850),T=o(373),A=o(1059),J=o(2986),y=o(13),n=o(5e3),f=o(9350),h=o(9169),M=o(7484),S=o(6949),u=o(1132),x=o(9808),d=o(8054),Z=o(4182),N=o(2166),Y=o(647),V=o(2683),L=o(404),$=o(125),D=o(6906),R=o(3193),B=o(8664),W=o(4022),O=o(6042),Q=o(2643),w=o(3610),P=o(7625),j=o(6123),z=o(8144),b=o(2359),E=o(822),H=o(1047),G=o(7525),K=o(9180),X=o(8227),q=o(1793);function k(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-alert",6),n.NdJ("nzOnClose",function(){return n.CHM(e),n.oxw().onSuccessBannerClose()}),n.qZA()}}function i(a,g){if(1&a&&n._UZ(0,"cvc-form-errors-alert",7),2&a){const e=n.oxw();n.Q6J("errors",e.errorMessages)}}function l(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"textarea",8),n.NdJ("ngModelChange",function(r){return n.CHM(e),n.oxw().reason=r}),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("ngModel",e.reason)}}function c(a,g){1&a&&n._UZ(0,"nz-option",13)}function v(a,g){1&a&&n._UZ(0,"nz-option",14)}function U(a,g){1&a&&n._UZ(0,"nz-option",15)}function nn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-select",9),n.NdJ("ngModelChange",function(r){return n.CHM(e),n.oxw().newStatus=r}),n.YNc(1,c,1,0,"nz-option",10),n.YNc(2,v,1,0,"nz-option",11),n.YNc(3,U,1,0,"nz-option",12),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("ngModel",e.newStatus),n.xp6(1),n.Q6J("ngIf","NEW"==e.currentStatus),n.xp6(1),n.Q6J("ngIf","NEW"!=e.currentStatus),n.xp6(1),n.Q6J("ngIf","NEW"==e.currentStatus)}}function tn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-spin",16),n.TgZ(1,"cvc-form-buttons"),n.TgZ(2,"cvc-org-selector-btn-group",17),n.NdJ("selectedOrgChange",function(r){return n.CHM(e),n.oxw().mostRecentOrg=r}),n.TgZ(3,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().updateSourceSuggestionStatus()}),n._uU(4," Update Source Suggestion status "),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("nzSpinning",e.loading),n.xp6(2),n.Q6J("selectedOrg",e.mostRecentOrg),n.xp6(1),n.Q6J("disabled",e.loading)}}let en=(()=>{class a{constructor(e,s,r){this.viewerService=e,this.networkErrorService=s,this.updateSuggestionStatusGql=r,this.commentAddedEvent=new n.vpe,this.destroy$=new m.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,P.R)(this.destroy$)).subscribe(p=>{this.organizations=p.organizations,this.mostRecentOrg=p.mostRecentOrg}),this.sourceSuggestionStatusMutator=new j.U(s)}selectOrg(e){this.mostRecentOrg=e}updateSourceSuggestionStatus(){var e;if(this.newStatus){let s=this.sourceSuggestionStatusMutator.mutate(this.updateSuggestionStatusGql,{input:{id:this.sourceSuggestionId,newStatus:this.newStatus,reason:this.reason,organizationId:null===(e=this.mostRecentOrg)||void 0===e?void 0:e.id}});s.submitSuccess$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{this.resetForm(),this.success=!0}),s.submitError$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{r&&(this.errorMessages=r)}),s.isSubmitting$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{this.loading=r})}}resetForm(){this.commentText=""}onSuccessBannerClose(){this.resetForm()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(f.a),n.Y36(h.Y),n.Y36(_.wRZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-update-source-suggestion-form"]],inputs:{sourceSuggestionId:"sourceSuggestionId",currentStatus:"currentStatus"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:7,vars:2,consts:[["nzDirection","vertical"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[3,"errors",4,"ngIf"],["rows","4","nz-input","",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzPlaceHolder","New Status","required","true",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"],["rows","4","nz-input","",3,"ngModel","ngModelChange"],["nzPlaceHolder","New Status","required","true",3,"ngModel","ngModelChange"],["nzValue","CURATED","nzLabel","Curated",4,"ngIf"],["nzValue","NEW","nzLabel","New",4,"ngIf"],["nzValue","REJECTED","nzLabel","Rejected",4,"ngIf"],["nzValue","CURATED","nzLabel","Curated"],["nzValue","NEW","nzLabel","New"],["nzValue","REJECTED","nzLabel","Rejected"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled","click"]],template:function(e,s){1&e&&(n.TgZ(0,"nz-card"),n.TgZ(1,"nz-space",0),n.YNc(2,k,1,0,"nz-alert",1),n.YNc(3,i,1,1,"cvc-form-errors-alert",2),n.YNc(4,l,1,1,"textarea",3),n.YNc(5,nn,4,4,"nz-select",4),n.YNc(6,tn,5,3,"nz-spin",5),n.qZA(),n.qZA()),2&e&&(n.xp6(2),n.Q6J("ngIf",s.success),n.xp6(1),n.Q6J("ngIf",s.errorMessages.length))},directives:[M.bd,z.NU,x.O5,b.r,E.V,z.$1,H.Zp,Z.Fj,Z.JJ,Z.On,d.Vq,Z.Q7,d.Ip,G.W,K.Z,X.q,O.ix,Q.dQ,q.m,V.w],styles:[""],encapsulation:2}),a})();var on=o(3618);function an(a,g){1&a&&(n.TgZ(0,"th",25),n._uU(1," Actions "),n.qZA())}function rn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"cvc-clearable-input-filter",26),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw(2).submitterInput=r}),n.qZA()}if(2&a){const e=n.oxw(2);n.Q6J("inputModel",e.submitterInput)("onInputChanged",e.textInputCallback)}}function cn(a,g){1&a&&n._UZ(0,"th")}function sn(a,g){if(1&a&&n._UZ(0,"i",35),2&a){const e=n.oxw().$implicit;n.Q6J("nzTooltipTitle",e.reason)}}function gn(a,g){if(1&a&&n._UZ(0,"cvc-user-tag",36),2&a){const e=n.oxw().$implicit;n.Q6J("user",e.user)}}function ln(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.source.displayType," ")}}function un(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.source.citationId," ")}}function pn(a,g){if(1&a&&n._UZ(0,"cvc-source-tag",37),2&a){const e=n.oxw().$implicit;n.Q6J("source",e.source)}}function dn(a,g){if(1&a&&n._UZ(0,"cvc-gene-tag",38),2&a){const e=n.oxw().$implicit;n.Q6J("gene",e.gene)}}function _n(a,g){if(1&a&&n._UZ(0,"cvc-variant-tag",39),2&a){const e=n.oxw().$implicit;n.Q6J("variant",e.variant)}}function mn(a,g){if(1&a&&n._UZ(0,"cvc-disease-tag",40),2&a){const e=n.oxw().$implicit;n.Q6J("disease",e.disease)}}function vn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"td"),n.TgZ(1,"nz-button-group"),n.TgZ(2,"button",41),n._UZ(3,"i",42),n.qZA(),n.TgZ(4,"button",43),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit;return n.oxw(2).setFormInputs(r.id,r.status)}),n._UZ(5,"i",44),n.qZA(),n.qZA(),n.qZA()}if(2&a){const e=n.oxw().$implicit;n.oxw();const s=n.MAs(54),r=n.oxw();n.xp6(2),n.Q6J("disabled",e.status!=r.status.New),n.xp6(2),n.Q6J("nzPopoverContent",s)}}function Cn(a,g){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._uU(2),n.ALo(3,"lowercase"),n.YNc(4,sn,1,1,"i",27),n.qZA(),n.TgZ(5,"td"),n.YNc(6,gn,1,1,"cvc-user-tag",28),n.qZA(),n.TgZ(7,"td"),n.YNc(8,ln,2,1,"ng-container",22),n.qZA(),n.TgZ(9,"td"),n.YNc(10,un,2,1,"ng-container",22),n.qZA(),n.TgZ(11,"td"),n.YNc(12,pn,1,1,"cvc-source-tag",29),n.qZA(),n.TgZ(13,"td"),n.YNc(14,dn,1,1,"cvc-gene-tag",30),n.qZA(),n.TgZ(15,"td"),n.YNc(16,_n,1,1,"cvc-variant-tag",31),n.qZA(),n.TgZ(17,"td"),n.YNc(18,mn,1,1,"cvc-disease-tag",32),n.qZA(),n.TgZ(19,"td",33),n._UZ(20,"i",34),n.qZA(),n.YNc(21,vn,6,2,"td",22),n.qZA()),2&a){const e=g.$implicit,s=n.oxw().ngrxLet;n.xp6(2),n.hij(" ",n.lcZ(3,11,e.status)," "),n.xp6(2),n.Q6J("ngIf",e.reason&&""!=e.reason),n.xp6(2),n.Q6J("ngIf",e.user),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.gene),n.xp6(2),n.Q6J("ngIf",e.variant),n.xp6(2),n.Q6J("ngIf",e.disease),n.xp6(1),n.Q6J("nzTooltipTitle",e.initialComment),n.xp6(2),n.Q6J("ngIf",s.signedIn)}}function fn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"button",47),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(r.endCursor)}),n._uU(1),n.qZA()}if(2&a){const e=n.oxw(4);n.xp6(1),n.hij("Load ",e.pageSize," More")}}function zn(a,g){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td",45),n.YNc(2,fn,2,1,"button",46),n.qZA(),n.qZA()),2&a){const e=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",e.hasNextPage)}}function Tn(a,g){if(1&a&&(n.ynx(0),n.YNc(1,zn,3,1,"tr",22),n.BQk()),2&a){const e=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function xn(a,g){if(1&a&&n._UZ(0,"cvc-update-source-suggestion-form",49),2&a){const e=n.oxw(3);n.Q6J("currentStatus",e.selectedStatus)("sourceSuggestionId",e.selectedSourceId)}}function hn(a,g){if(1&a&&n.YNc(0,xn,1,2,"cvc-update-source-suggestion-form",48),2&a){const e=n.oxw(2);n.Q6J("ngIf",e.selectedSourceId&&e.selectedStatus)}}function Sn(a,g){if(1&a){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",3,4),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",5),n.NdJ("nzSortOrderChange",function(r){return n.CHM(e),n.oxw().onSortChanged(r)}),n.TgZ(6,"tr"),n.TgZ(7,"th"),n._uU(8," Status "),n.qZA(),n.TgZ(9,"th",6),n._uU(10," Submitter "),n.qZA(),n.TgZ(11,"th",7),n._uU(12," Source Type "),n.qZA(),n.TgZ(13,"th",7),n._uU(14," Citation ID "),n.qZA(),n.TgZ(15,"th",8),n._uU(16," Citation "),n.qZA(),n.TgZ(17,"th",7),n._uU(18," Gene "),n.qZA(),n.TgZ(19,"th",7),n._uU(20," Variant "),n.qZA(),n.TgZ(21,"th",7),n._uU(22," Disease "),n.qZA(),n.TgZ(23,"th"),n._uU(24," Comment "),n.qZA(),n.YNc(25,an,2,0,"th",9),n.qZA(),n.TgZ(26,"tr"),n.TgZ(27,"th"),n.TgZ(28,"nz-select",10),n.NdJ("ngModelChange",function(){return n.CHM(e),n.oxw().onModelChanged()})("ngModelChange",function(r){return n.CHM(e),n.oxw().statusInput=r}),n._UZ(29,"nz-option",11),n._UZ(30,"nz-option",12),n._UZ(31,"nz-option",13),n.qZA(),n.qZA(),n.TgZ(32,"th"),n.YNc(33,rn,1,2,"cvc-clearable-input-filter",14),n.qZA(),n.TgZ(34,"th"),n.TgZ(35,"nz-select",10),n.NdJ("ngModelChange",function(){return n.CHM(e),n.oxw().onModelChanged()})("ngModelChange",function(r){return n.CHM(e),n.oxw().sourceTypeInput=r}),n._UZ(36,"nz-option",15),n._UZ(37,"nz-option",16),n.qZA(),n.qZA(),n.TgZ(38,"th"),n.TgZ(39,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().citationIdInput=r}),n.qZA(),n.qZA(),n.TgZ(40,"th"),n.TgZ(41,"cvc-clearable-input-filter",18),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().citationInput=r}),n.qZA(),n.qZA(),n.TgZ(42,"th"),n.TgZ(43,"cvc-clearable-input-filter",19),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().geneNameInput=r}),n.qZA(),n.qZA(),n.TgZ(44,"th"),n.TgZ(45,"cvc-clearable-input-filter",20),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().variantNameInput=r}),n.qZA(),n.qZA(),n.TgZ(46,"th"),n.TgZ(47,"cvc-clearable-input-filter",21),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().diseaseNameInput=r}),n.qZA(),n.qZA(),n._UZ(48,"th"),n.YNc(49,cn,1,0,"th",22),n.qZA(),n.qZA(),n.TgZ(50,"tbody"),n.YNc(51,Cn,22,13,"tr",23),n.YNc(52,Tn,2,1,"ng-container",1),n.qZA(),n.qZA(),n.YNc(53,hn,1,1,"ng-template",null,24,n.W1O),n.BQk()}if(2&a){const e=g.ngrxLet,s=n.MAs(2),r=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,35,r.sourceSuggestions$))("nzLoading",n.lcZ(4,37,r.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(8),n.Q6J("nzColumnKey",r.sortColumns.Submitter)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.SourceType)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.CitationId)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.Citation)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.GeneName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.VariantName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.DiseaseName)("nzSortFn",!0),n.xp6(4),n.Q6J("ngIf",e.signedIn),n.xp6(3),n.Q6J("ngModel",r.statusInput),n.xp6(5),n.Q6J("ngIf",!r.submitterId),n.xp6(2),n.Q6J("ngModel",r.sourceTypeInput),n.xp6(4),n.Q6J("inputModel",r.citationIdInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.citationInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.geneNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.variantNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.diseaseNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("ngIf",e.signedIn),n.xp6(2),n.Q6J("ngForOf",s.data),n.xp6(1),n.Q6J("ngrxLet",r.pageInfo$)}}function Zn(a,g){}function In(a,g){if(1&a&&(n.ynx(0),n.YNc(1,Zn,0,0,"ng-template",53),n.BQk()),2&a){const e=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function Mn(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw(2);n.xp6(1),n.hij(" ",e.cvcTitle," ")}}function An(a,g){if(1&a&&(n.TgZ(0,"span",54),n._uU(1),n.qZA()),2&a){const e=g.ngIf,s=n.oxw(2);n.xp6(1),n.lnq(" (",s.totalCount," new, showing ",s.visibleCount," of ",e," filtered) ")}}function yn(a,g){1&a&&(n.TgZ(0,"span",54),n._uU(1," (0 total) "),n.qZA())}function Jn(a,g){if(1&a&&(n._UZ(0,"i",50),n.YNc(1,In,2,1,"ng-container",22),n.YNc(2,Mn,2,1,"ng-container",22),n.YNc(3,An,2,3,"span",51),n.ALo(4,"ngrxPush"),n.YNc(5,yn,2,0,"ng-template",null,52,n.W1O)),2&a){const e=n.MAs(6),s=n.oxw();n.xp6(1),n.Q6J("ngIf",s.cvcTitleTemplate),n.xp6(1),n.Q6J("ngIf",s.cvcTitle),n.xp6(1),n.Q6J("ngIf",n.lcZ(4,4,s.filteredCount$))("ngIfElse",e)}}let Un=(()=>{class a{constructor(e,s,r){this.gql=e,this.viewerService=s,this.networkErrorService=r,this.debouncedQuery=new m.xQ,this.statusInput=_.F3s.New,this.pageSize=25,this.sortColumns=_.jw9,this.status=_.F3s,this.showManageForm=!1,this.visibleCount=this.pageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.pageSize,sourceId:this.sourceId,submitterId:this.submitterId,status:this.status.New}),this.viewer$=this.viewerService.viewer$,this.data$=this.queryRef.valueChanges.pipe((0,C.U)(e=>({data:e.data,loading:e.loading,networkStatus:e.networkStatus}))),this.isLoading$=this.data$.pipe((0,T.j)("loading"),(0,A.O)(!0)),this.sourceSuggestions$=this.data$.pipe((0,T.j)("data","sourceSuggestions","edges"),(0,C.U)(e=>e.map(s=>s.node))),this.pageInfo$=this.data$.pipe((0,T.j)("data","sourceSuggestions","pageInfo")),this.filteredCount$=this.data$.pipe((0,T.j)("data","sourceSuggestions","filteredCount")),this.filteredCount$.pipe((0,J.q)(1)).subscribe(e=>this.totalCount=e),this.filteredCount$.subscribe(e=>{ee&&(this.visibleCount=e))}),this.debouncedQuery.pipe((0,y.b)(500)).subscribe(e=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var e;this.loadedPages=1,null===(e=this.queryRef)||void 0===e||e.refetch({citationId:this.citationIdInput?+this.citationIdInput:void 0,sourceType:this.sourceTypeInput?this.sourceTypeInput:void 0,sourceId:this.sourceIdInput?+this.sourceIdInput:void 0,geneName:this.geneNameInput,variantName:this.variantNameInput,diseaseName:this.diseaseNameInput,comment:this.commentInput,submitter:this.submitterInput,citation:this.citationInput,status:this.statusInput?this.statusInput:void 0})}onSortChanged(e){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({sortBy:(0,t._)(e)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}setFormInputs(e,s){this.selectedSourceId=e,this.selectedStatus=s,this.showManageForm=!0}closePopover(){this.showManageForm=!1}loadMore(e){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{first:this.pageSize,after:e}}),this.loadedPages+=1}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(_.WRV),n.Y36(f.a),n.Y36(h.Y))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-source-suggestions-table"]],inputs:{sourceId:"sourceId",submitterId:"submitterId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:4,vars:2,consts:[[3,"nzTitle"],[4,"ngrxLet"],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["sourceSuggestionsTable",""],[3,"nzSortOrderChange"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],[3,"nzColumnKey","nzSortFn"],["nzWidth","25%",3,"nzColumnKey","nzSortFn"],["nzWidth","5%",4,"ngIf"],["nzAllowClear","","nzPlaceHolder","Choose",3,"ngModel","ngModelChange"],["nzValue","NEW","nzLabel","new"],["nzValue","CURATED","nzLabel","curated"],["nzValue","REJECTED","nzLabel","rejected"],["placeholderText","Submitter",3,"inputModel","onInputChanged","inputModelChange",4,"ngIf"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["placeholderText","ID",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Citation",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Gene",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Variant",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Disease",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["manageSuggestionTemplate",""],["nzWidth","5%"],["placeholderText","Submitter",3,"inputModel","onInputChanged","inputModelChange"],["nz-icon","","nz-tooltip","","nzType","info-circle",3,"nzTooltipTitle",4,"ngIf"],[3,"user",4,"ngIf"],[3,"source",4,"ngIf"],[3,"gene",4,"ngIf"],[3,"variant",4,"ngIf"],[3,"disease",4,"ngIf"],["nzAlign","center","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],["nz-icon","","nzType","comment"],["nz-icon","","nz-tooltip","","nzType","info-circle",3,"nzTooltipTitle"],[3,"user"],[3,"source"],[3,"gene"],[3,"variant"],[3,"disease"],["nz-button","","nzSize","small","nz-tooltip","","nzTooltipTitle","Curate an Evidence Item from this Source Suggestion",3,"disabled"],["nz-icon","","nzType","plus"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Manage Source Suggestion","nzPopoverPlacement","left","nzPopoverTrigger","click",3,"nzPopoverContent","click"],["nz-icon","","nzType","edit"],["colspan","10"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],[3,"currentStatus","sourceSuggestionId",4,"ngIf"],[3,"currentStatus","sourceSuggestionId"],["nz-icon","","nzType","civic:source"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(e,s){if(1&e&&(n.TgZ(0,"nz-card",0),n.YNc(1,Sn,55,39,"ng-container",1),n.qZA(),n.YNc(2,Jn,7,6,"ng-template",null,2,n.W1O)),2&e){const r=n.MAs(3);n.Q6J("nzTitle",r),n.xp6(1),n.Q6J("ngrxLet",s.viewer$)}},directives:[M.bd,S.eJ,u.N8,u.Om,u.$Z,u.Uo,u._C,u.qD,x.O5,d.Vq,Z.JJ,Z.On,d.Ip,N.p,u.p0,x.sg,Y.Ls,V.w,L.SY,$.I,D.T,R.H,B.I,W.n,u.UX,O.fY,O.ix,Q.dQ,w.lU,en,x.tP,on.ZU],pipes:[S.fM,x.i8],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),a})()},2832:(F,I,o)=>{o.d(I,{W:()=>j});var _=o(9808),t=o(1132),m=o(8054),C=o(4125),T=o(4182),A=o(6949),J=o(7345),y=o(9779),n=o(3309),f=o(4867),h=o(3580),M=o(647),S=o(6042),u=o(404),x=o(7008),d=o(3610),Z=o(8776),N=o(7484),Y=o(4546),V=o(1825),L=o(4375),$=o(868),D=o(7525),R=o(2359),B=o(1047),W=o(4509),O=o(8144),Q=o(5e3);let w=(()=>{class z{}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=Q.oAB({type:z}),z.\u0275inj=Q.cJS({imports:[[_.ez,T.UX,A.WG,S.sL,N.vh,$.we,Y.U5,D.j,R.L,B.o7,m.LV,O.zf,T.u5,Z.X0,x.B,V.A,L.R,W.w]]}),z})();var P=o(3618);let j=(()=>{class z{}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=Q.oAB({type:z}),z.\u0275inj=Q.cJS({imports:[[_.ez,T.u5,A.WG,t.HQ,m.LV,u.cg,M.PV,S.sL,d.$6,P.ZJ,N.vh,C.k,J.W,y.s,n.U,f.Q,h.Q,x.B,w]]}),z})()},7677:(F,I,o)=>{o.d(I,{G:()=>S});var _=o(9808),t=o(325),m=o(3610),C=o(8481),T=o(647),A=o(9779),J=o(4867),y=o(7484),n=o(3098),f=o(6949),h=o(5e3);let M=(()=>{class u{}return u.\u0275fac=function(d){return new(d||u)},u.\u0275mod=h.oAB({type:u}),u.\u0275inj=h.cJS({imports:[[_.ez,f.WG,y.vh,n.q6,A.s,J.Q]]}),u})(),S=(()=>{class u{}return u.\u0275fac=function(d){return new(d||u)},u.\u0275mod=h.oAB({type:u}),u.\u0275inj=h.cJS({imports:[[_.ez,t.Bz,m.$6,C.X,T.PV,M]]}),u})()},8664:(F,I,o)=>{o.d(I,{I:()=>k});var _=o(6654),t=o(5e3),m=o(9808),C=o(325),T=o(8481),A=o(3610),J=o(4850),y=o(712),n=o(7484),f=o(647),h=o(3193),M=o(3098),S=o(6550),u=o(1894),x=o(8144),d=o(6949);function Z(i,l){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const c=t.oxw().ngIf;t.xp6(1),t.hij(" ",c.name," ")}}function N(i,l){if(1&i&&t._UZ(0,"cvc-gene-tag",14),2&i){const c=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",c.gene)}}function Y(i,l){1&i&&(t.TgZ(0,"span"),t._uU(1,",\xa0"),t.qZA())}function V(i,l){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,Y,2,0,"span",1),t.qZA()),2&i){const c=l.$implicit,v=l.last;t.xp6(1),t.hij(" ",c,""),t.xp6(1),t.Q6J("ngIf",!v)}}function L(i,l){if(1&i&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,V,3,2,"span",16),t.qZA()),2&i){const c=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",c.variantAliases)}}function $(i,l){if(1&i&&(t.TgZ(0,"nz-descriptions-item",17),t.TgZ(1,"cvc-link-tag",18),t._uU(2),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",c.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",c.alleleRegistryId," ")}}function D(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",20),t._UZ(2,"i",21),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/flags"),t.xp6(3),t.hij(" Flags (",c.flags.totalCount,") ")}}function R(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",22),t._UZ(2,"i",23),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",c.revisions.totalCount,") ")}}function B(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",24),t._UZ(2,"i",25),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/comments"),t.xp6(3),t.hij(" Comments (",c.comments.totalCount,") ")}}function W(i,l){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,Z,2,1,"ng-template",null,3,t.W1O),t.YNc(4,N,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,L,2,1,"nz-descriptions-item",6),t.YNc(8,$,3,2,"nz-descriptions-item",7),t.TgZ(9,"nz-descriptions-item",8),t._uU(10),t.qZA(),t.qZA(),t.TgZ(11,"nz-row",9),t.TgZ(12,"nz-col",10),t.TgZ(13,"nz-space",11),t.YNc(14,D,4,2,"a",12),t.YNc(15,R,4,2,"a",12),t.YNc(16,B,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const c=l.ngIf,v=t.MAs(3),U=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",v)("nzExtra",U),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",c.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",c.alleleRegistryId),t.xp6(2),t.hij(" ",c.evidenceItems.totalCount," ")}}let O=(()=>{class i{constructor(c){this.gql=c}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,J.U)(({data:c})=>c.variant))}}return i.\u0275fac=function(c){return new(c||i)(t.Y36(y.ZYZ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(c,v){1&c&&(t.TgZ(0,"div",0),t.YNc(1,W,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&c&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,v.variant$)))},directives:[m.O5,n.bd,f.Ls,h.H,M.R7,M.uj,m.sg,S.l,u.SK,u.t3,x.NU,x.$1,C.yS,T.j],pipes:[d.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),i})();function Q(i,l){}function w(i,l){if(1&i&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,Q,0,0,"ng-template",6),t.qZA(),t.BQk()),2&i){const c=t.oxw(),v=t.MAs(2);t.xp6(1),t.Q6J("routerLink",c.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",v)}}function P(i,l){}function j(i,l){if(1&i){const c=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(U){return t.CHM(c),t.oxw(2).itemClosed(U)}),t.YNc(1,P,0,0,"ng-template",6),t.qZA()}if(2&i){t.oxw();const c=t.MAs(2),v=t.oxw(),U=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",v.onCloseClicked?0:.5)("nzPopoverContent",c)("nzMode",v.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",U)}}function z(i,l){if(1&i&&t._UZ(0,"cvc-variant-popover",11),2&i){const c=t.oxw(3);t.Q6J("variantId",c.variant.id)}}function b(i,l){if(1&i&&t.YNc(0,z,1,1,"cvc-variant-popover",10),2&i){const c=t.oxw(2);t.Q6J("ngIf",c.enablePopover)}}function E(i,l){if(1&i&&(t.YNc(0,j,2,4,"nz-tag",7),t.YNc(1,b,1,1,"ng-template",null,8,t.W1O)),2&i){const c=t.oxw(),v=t.MAs(4);t.Q6J("ngIf",c.enablePopover)("ngIfElse",v)}}function H(i,l){}function G(i,l){if(1&i){const c=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(U){return t.CHM(c),t.oxw().itemClosed(U)}),t.YNc(1,H,0,0,"ng-template",6),t.qZA()}if(2&i){const c=t.oxw(),v=t.MAs(8);t.Q6J("nzMode",c.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",v)}}function K(i,l){}function X(i,l){if(1&i&&t.YNc(0,K,0,0,"ng-template",6),2&i){t.oxw();const c=t.MAs(2);t.Q6J("ngTemplateOutlet",c)}}function q(i,l){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const c=t.oxw();t.xp6(1),t.hij(" ",c.variant.name,"\n")}}let k=(()=>{class i extends _.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return i.\u0275fac=function(c){return new(c||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[t.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(c,v){if(1&c&&(t.YNc(0,w,3,2,"ng-container",0),t.YNc(1,E,3,2,"ng-template",null,1,t.W1O),t.YNc(3,G,2,2,"ng-template",null,2,t.W1O),t.YNc(5,X,1,1,"ng-template",null,3,t.W1O),t.YNc(7,q,2,1,"ng-template",null,4,t.W1O)),2&c){const U=t.MAs(6);t.Q6J("ngIf",v.linked)("ngIfElse",U)}},directives:[m.O5,C.yS,m.tP,T.j,A.lU,O,f.Ls],styles:[""]}),i})()},4867:(F,I,o)=>{o.d(I,{Q:()=>x});var _=o(9808),t=o(325),m=o(8481),C=o(647),T=o(3610),A=o(6949),J=o(7484),y=o(1894),n=o(3098),f=o(8144),h=o(3309),M=o(3630),S=o(5e3);let u=(()=>{class d{}return d.\u0275fac=function(N){return new(N||d)},d.\u0275mod=S.oAB({type:d}),d.\u0275inj=S.cJS({imports:[[_.ez,t.Bz,A.WG,J.vh,y.Jb,n.q6,m.X,C.PV,f.zf,h.U,M.X]]}),d})(),x=(()=>{class d{}return d.\u0275fac=function(N){return new(N||d)},d.\u0275mod=S.oAB({type:d}),d.\u0275inj=S.cJS({imports:[[_.ez,t.Bz,m.X,T.$6,C.PV,u]]}),d})()},3154:(F,I,o)=>{o.d(I,{_:()=>t});var _=o(712);function t(m){var C;switch(m.value){case"ascend":C=_.SrV.Asc;break;case"descend":C=_.SrV.Desc;break;default:return}return{column:m.key,direction:C}}}}]); \ No newline at end of file diff --git a/server/public/9484.eba4a2cb1d41b5d4.js b/server/public/9484.eba4a2cb1d41b5d4.js new file mode 100644 index 000000000..a2e58b7fc --- /dev/null +++ b/server/public/9484.eba4a2cb1d41b5d4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9484],{7946:(F,I,o)=>{o.d(I,{x:()=>n});var _=o(9808),t=o(897),m=o(8481),C=o(3610),T=o(8018),A=o(3580),J=o(9476),y=o(5e3);let n=(()=>{class f{}return f.\u0275fac=function(M){return new(M||f)},f.\u0275mod=y.oAB({type:f}),f.\u0275inj=y.cJS({imports:[[_.ez,m.X,C.$6,t.$,T.e,A.Q,J.L]]}),f})()},9814:(F,I,o)=>{o.d(I,{O:()=>Un});var _=o(712),t=o(3154),m=o(8929),C=o(4850),T=o(373),A=o(1059),J=o(2986),y=o(13),n=o(5e3),f=o(9350),h=o(9169),M=o(7484),S=o(6949),u=o(1132),x=o(9808),d=o(8054),Z=o(4182),N=o(2166),Y=o(647),V=o(2683),L=o(404),$=o(125),D=o(6906),R=o(3193),B=o(8664),W=o(4022),O=o(6042),Q=o(2643),j=o(3610),P=o(7625),w=o(6123),z=o(8144),b=o(2359),E=o(822),H=o(1047),G=o(7525),K=o(9180),X=o(8227),q=o(1793);function k(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-alert",6),n.NdJ("nzOnClose",function(){return n.CHM(e),n.oxw().onSuccessBannerClose()}),n.qZA()}}function i(a,g){if(1&a&&n._UZ(0,"cvc-form-errors-alert",7),2&a){const e=n.oxw();n.Q6J("errors",e.errorMessages)}}function l(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"textarea",8),n.NdJ("ngModelChange",function(r){return n.CHM(e),n.oxw().reason=r}),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("ngModel",e.reason)}}function c(a,g){1&a&&n._UZ(0,"nz-option",13)}function v(a,g){1&a&&n._UZ(0,"nz-option",14)}function U(a,g){1&a&&n._UZ(0,"nz-option",15)}function nn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-select",9),n.NdJ("ngModelChange",function(r){return n.CHM(e),n.oxw().newStatus=r}),n.YNc(1,c,1,0,"nz-option",10),n.YNc(2,v,1,0,"nz-option",11),n.YNc(3,U,1,0,"nz-option",12),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("ngModel",e.newStatus),n.xp6(1),n.Q6J("ngIf","NEW"==e.currentStatus),n.xp6(1),n.Q6J("ngIf","NEW"!=e.currentStatus),n.xp6(1),n.Q6J("ngIf","NEW"==e.currentStatus)}}function tn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-spin",16),n.TgZ(1,"cvc-form-buttons"),n.TgZ(2,"cvc-org-selector-btn-group",17),n.NdJ("selectedOrgChange",function(r){return n.CHM(e),n.oxw().mostRecentOrg=r}),n.TgZ(3,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().updateSourceSuggestionStatus()}),n._uU(4," Update Source Suggestion status "),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("nzSpinning",e.loading),n.xp6(2),n.Q6J("selectedOrg",e.mostRecentOrg),n.xp6(1),n.Q6J("disabled",e.loading)}}let en=(()=>{class a{constructor(e,s,r){this.viewerService=e,this.networkErrorService=s,this.updateSuggestionStatusGql=r,this.commentAddedEvent=new n.vpe,this.destroy$=new m.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,P.R)(this.destroy$)).subscribe(p=>{this.organizations=p.organizations,this.mostRecentOrg=p.mostRecentOrg}),this.sourceSuggestionStatusMutator=new w.U(s)}selectOrg(e){this.mostRecentOrg=e}updateSourceSuggestionStatus(){var e;if(this.newStatus){let s=this.sourceSuggestionStatusMutator.mutate(this.updateSuggestionStatusGql,{input:{id:this.sourceSuggestionId,newStatus:this.newStatus,reason:this.reason,organizationId:null===(e=this.mostRecentOrg)||void 0===e?void 0:e.id}});s.submitSuccess$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{this.resetForm(),this.success=!0}),s.submitError$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{r&&(this.errorMessages=r)}),s.isSubmitting$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{this.loading=r})}}resetForm(){this.commentText=""}onSuccessBannerClose(){this.resetForm()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(f.a),n.Y36(h.Y),n.Y36(_.wRZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-update-source-suggestion-form"]],inputs:{sourceSuggestionId:"sourceSuggestionId",currentStatus:"currentStatus"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:7,vars:2,consts:[["nzDirection","vertical"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[3,"errors",4,"ngIf"],["rows","4","nz-input","",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzPlaceHolder","New Status","required","true",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"],["rows","4","nz-input","",3,"ngModel","ngModelChange"],["nzPlaceHolder","New Status","required","true",3,"ngModel","ngModelChange"],["nzValue","CURATED","nzLabel","Curated",4,"ngIf"],["nzValue","NEW","nzLabel","New",4,"ngIf"],["nzValue","REJECTED","nzLabel","Rejected",4,"ngIf"],["nzValue","CURATED","nzLabel","Curated"],["nzValue","NEW","nzLabel","New"],["nzValue","REJECTED","nzLabel","Rejected"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled","click"]],template:function(e,s){1&e&&(n.TgZ(0,"nz-card"),n.TgZ(1,"nz-space",0),n.YNc(2,k,1,0,"nz-alert",1),n.YNc(3,i,1,1,"cvc-form-errors-alert",2),n.YNc(4,l,1,1,"textarea",3),n.YNc(5,nn,4,4,"nz-select",4),n.YNc(6,tn,5,3,"nz-spin",5),n.qZA(),n.qZA()),2&e&&(n.xp6(2),n.Q6J("ngIf",s.success),n.xp6(1),n.Q6J("ngIf",s.errorMessages.length))},directives:[M.bd,z.NU,x.O5,b.r,E.V,z.$1,H.Zp,Z.Fj,Z.JJ,Z.On,d.Vq,Z.Q7,d.Ip,G.W,K.Z,X.q,O.ix,Q.dQ,q.m,V.w],styles:[""],encapsulation:2}),a})();var on=o(3618);function an(a,g){1&a&&(n.TgZ(0,"th",25),n._uU(1," Actions "),n.qZA())}function rn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"cvc-clearable-input-filter",26),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw(2).submitterInput=r}),n.qZA()}if(2&a){const e=n.oxw(2);n.Q6J("inputModel",e.submitterInput)("onInputChanged",e.textInputCallback)}}function cn(a,g){1&a&&n._UZ(0,"th")}function sn(a,g){if(1&a&&n._UZ(0,"i",35),2&a){const e=n.oxw().$implicit;n.Q6J("nzTooltipTitle",e.reason)}}function gn(a,g){if(1&a&&n._UZ(0,"cvc-user-tag",36),2&a){const e=n.oxw().$implicit;n.Q6J("user",e.user)}}function ln(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.source.displayType," ")}}function un(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.source.citationId," ")}}function pn(a,g){if(1&a&&n._UZ(0,"cvc-source-tag",37),2&a){const e=n.oxw().$implicit;n.Q6J("source",e.source)}}function dn(a,g){if(1&a&&n._UZ(0,"cvc-gene-tag",38),2&a){const e=n.oxw().$implicit;n.Q6J("gene",e.gene)}}function _n(a,g){if(1&a&&n._UZ(0,"cvc-variant-tag",39),2&a){const e=n.oxw().$implicit;n.Q6J("variant",e.variant)}}function mn(a,g){if(1&a&&n._UZ(0,"cvc-disease-tag",40),2&a){const e=n.oxw().$implicit;n.Q6J("disease",e.disease)}}function vn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"td"),n.TgZ(1,"nz-button-group"),n.TgZ(2,"button",41),n._UZ(3,"i",42),n.qZA(),n.TgZ(4,"button",43),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit;return n.oxw(2).setFormInputs(r.id,r.status)}),n._UZ(5,"i",44),n.qZA(),n.qZA(),n.qZA()}if(2&a){n.oxw(2);const e=n.MAs(54);n.xp6(2),n.Q6J("disabled",!0),n.xp6(2),n.Q6J("nzPopoverContent",e)}}function Cn(a,g){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._uU(2),n.ALo(3,"lowercase"),n.YNc(4,sn,1,1,"i",27),n.qZA(),n.TgZ(5,"td"),n.YNc(6,gn,1,1,"cvc-user-tag",28),n.qZA(),n.TgZ(7,"td"),n.YNc(8,ln,2,1,"ng-container",22),n.qZA(),n.TgZ(9,"td"),n.YNc(10,un,2,1,"ng-container",22),n.qZA(),n.TgZ(11,"td"),n.YNc(12,pn,1,1,"cvc-source-tag",29),n.qZA(),n.TgZ(13,"td"),n.YNc(14,dn,1,1,"cvc-gene-tag",30),n.qZA(),n.TgZ(15,"td"),n.YNc(16,_n,1,1,"cvc-variant-tag",31),n.qZA(),n.TgZ(17,"td"),n.YNc(18,mn,1,1,"cvc-disease-tag",32),n.qZA(),n.TgZ(19,"td",33),n._UZ(20,"i",34),n.qZA(),n.YNc(21,vn,6,2,"td",22),n.qZA()),2&a){const e=g.$implicit,s=n.oxw().ngrxLet;n.xp6(2),n.hij(" ",n.lcZ(3,11,e.status)," "),n.xp6(2),n.Q6J("ngIf",e.reason&&""!=e.reason),n.xp6(2),n.Q6J("ngIf",e.user),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.gene),n.xp6(2),n.Q6J("ngIf",e.variant),n.xp6(2),n.Q6J("ngIf",e.disease),n.xp6(1),n.Q6J("nzTooltipTitle",e.initialComment),n.xp6(2),n.Q6J("ngIf",s.signedIn)}}function fn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"button",47),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(r.endCursor)}),n._uU(1),n.qZA()}if(2&a){const e=n.oxw(4);n.xp6(1),n.hij("Load ",e.pageSize," More")}}function zn(a,g){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td",45),n.YNc(2,fn,2,1,"button",46),n.qZA(),n.qZA()),2&a){const e=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",e.hasNextPage)}}function Tn(a,g){if(1&a&&(n.ynx(0),n.YNc(1,zn,3,1,"tr",22),n.BQk()),2&a){const e=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function xn(a,g){if(1&a&&n._UZ(0,"cvc-update-source-suggestion-form",49),2&a){const e=n.oxw(3);n.Q6J("currentStatus",e.selectedStatus)("sourceSuggestionId",e.selectedSourceId)}}function hn(a,g){if(1&a&&n.YNc(0,xn,1,2,"cvc-update-source-suggestion-form",48),2&a){const e=n.oxw(2);n.Q6J("ngIf",e.selectedSourceId&&e.selectedStatus)}}function Sn(a,g){if(1&a){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",3,4),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",5),n.NdJ("nzSortOrderChange",function(r){return n.CHM(e),n.oxw().onSortChanged(r)}),n.TgZ(6,"tr"),n.TgZ(7,"th"),n._uU(8," Status "),n.qZA(),n.TgZ(9,"th",6),n._uU(10," Submitter "),n.qZA(),n.TgZ(11,"th",7),n._uU(12," Source Type "),n.qZA(),n.TgZ(13,"th",7),n._uU(14," Citation ID "),n.qZA(),n.TgZ(15,"th",8),n._uU(16," Citation "),n.qZA(),n.TgZ(17,"th",7),n._uU(18," Gene "),n.qZA(),n.TgZ(19,"th",7),n._uU(20," Variant "),n.qZA(),n.TgZ(21,"th",7),n._uU(22," Disease "),n.qZA(),n.TgZ(23,"th"),n._uU(24," Comment "),n.qZA(),n.YNc(25,an,2,0,"th",9),n.qZA(),n.TgZ(26,"tr"),n.TgZ(27,"th"),n.TgZ(28,"nz-select",10),n.NdJ("ngModelChange",function(){return n.CHM(e),n.oxw().onModelChanged()})("ngModelChange",function(r){return n.CHM(e),n.oxw().statusInput=r}),n._UZ(29,"nz-option",11),n._UZ(30,"nz-option",12),n._UZ(31,"nz-option",13),n.qZA(),n.qZA(),n.TgZ(32,"th"),n.YNc(33,rn,1,2,"cvc-clearable-input-filter",14),n.qZA(),n.TgZ(34,"th"),n.TgZ(35,"nz-select",10),n.NdJ("ngModelChange",function(){return n.CHM(e),n.oxw().onModelChanged()})("ngModelChange",function(r){return n.CHM(e),n.oxw().sourceTypeInput=r}),n._UZ(36,"nz-option",15),n._UZ(37,"nz-option",16),n.qZA(),n.qZA(),n.TgZ(38,"th"),n.TgZ(39,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().citationIdInput=r}),n.qZA(),n.qZA(),n.TgZ(40,"th"),n.TgZ(41,"cvc-clearable-input-filter",18),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().citationInput=r}),n.qZA(),n.qZA(),n.TgZ(42,"th"),n.TgZ(43,"cvc-clearable-input-filter",19),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().geneNameInput=r}),n.qZA(),n.qZA(),n.TgZ(44,"th"),n.TgZ(45,"cvc-clearable-input-filter",20),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().variantNameInput=r}),n.qZA(),n.qZA(),n.TgZ(46,"th"),n.TgZ(47,"cvc-clearable-input-filter",21),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().diseaseNameInput=r}),n.qZA(),n.qZA(),n._UZ(48,"th"),n.YNc(49,cn,1,0,"th",22),n.qZA(),n.qZA(),n.TgZ(50,"tbody"),n.YNc(51,Cn,22,13,"tr",23),n.YNc(52,Tn,2,1,"ng-container",1),n.qZA(),n.qZA(),n.YNc(53,hn,1,1,"ng-template",null,24,n.W1O),n.BQk()}if(2&a){const e=g.ngrxLet,s=n.MAs(2),r=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,35,r.sourceSuggestions$))("nzLoading",n.lcZ(4,37,r.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(8),n.Q6J("nzColumnKey",r.sortColumns.Submitter)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.SourceType)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.CitationId)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.Citation)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.GeneName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.VariantName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.DiseaseName)("nzSortFn",!0),n.xp6(4),n.Q6J("ngIf",e.signedIn),n.xp6(3),n.Q6J("ngModel",r.statusInput),n.xp6(5),n.Q6J("ngIf",!r.submitterId),n.xp6(2),n.Q6J("ngModel",r.sourceTypeInput),n.xp6(4),n.Q6J("inputModel",r.citationIdInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.citationInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.geneNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.variantNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.diseaseNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("ngIf",e.signedIn),n.xp6(2),n.Q6J("ngForOf",s.data),n.xp6(1),n.Q6J("ngrxLet",r.pageInfo$)}}function Zn(a,g){}function In(a,g){if(1&a&&(n.ynx(0),n.YNc(1,Zn,0,0,"ng-template",53),n.BQk()),2&a){const e=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function Mn(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw(2);n.xp6(1),n.hij(" ",e.cvcTitle," ")}}function An(a,g){if(1&a&&(n.TgZ(0,"span",54),n._uU(1),n.qZA()),2&a){const e=g.ngIf,s=n.oxw(2);n.xp6(1),n.lnq(" (",s.totalCount," new, showing ",s.visibleCount," of ",e," filtered) ")}}function yn(a,g){1&a&&(n.TgZ(0,"span",54),n._uU(1," (0 total) "),n.qZA())}function Jn(a,g){if(1&a&&(n._UZ(0,"i",50),n.YNc(1,In,2,1,"ng-container",22),n.YNc(2,Mn,2,1,"ng-container",22),n.YNc(3,An,2,3,"span",51),n.ALo(4,"ngrxPush"),n.YNc(5,yn,2,0,"ng-template",null,52,n.W1O)),2&a){const e=n.MAs(6),s=n.oxw();n.xp6(1),n.Q6J("ngIf",s.cvcTitleTemplate),n.xp6(1),n.Q6J("ngIf",s.cvcTitle),n.xp6(1),n.Q6J("ngIf",n.lcZ(4,4,s.filteredCount$))("ngIfElse",e)}}let Un=(()=>{class a{constructor(e,s,r){this.gql=e,this.viewerService=s,this.networkErrorService=r,this.debouncedQuery=new m.xQ,this.statusInput=_.F3s.New,this.pageSize=25,this.sortColumns=_.jw9,this.status=_.F3s,this.showManageForm=!1,this.visibleCount=this.pageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.pageSize,sourceId:this.sourceId,submitterId:this.submitterId,status:this.status.New}),this.viewer$=this.viewerService.viewer$,this.data$=this.queryRef.valueChanges.pipe((0,C.U)(e=>({data:e.data,loading:e.loading,networkStatus:e.networkStatus}))),this.isLoading$=this.data$.pipe((0,T.j)("loading"),(0,A.O)(!0)),this.sourceSuggestions$=this.data$.pipe((0,T.j)("data","sourceSuggestions","edges"),(0,C.U)(e=>e.map(s=>s.node))),this.pageInfo$=this.data$.pipe((0,T.j)("data","sourceSuggestions","pageInfo")),this.filteredCount$=this.data$.pipe((0,T.j)("data","sourceSuggestions","filteredCount")),this.filteredCount$.pipe((0,J.q)(1)).subscribe(e=>this.totalCount=e),this.filteredCount$.subscribe(e=>{ee&&(this.visibleCount=e))}),this.debouncedQuery.pipe((0,y.b)(500)).subscribe(e=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var e;this.loadedPages=1,null===(e=this.queryRef)||void 0===e||e.refetch({citationId:this.citationIdInput?+this.citationIdInput:void 0,sourceType:this.sourceTypeInput?this.sourceTypeInput:void 0,sourceId:this.sourceIdInput?+this.sourceIdInput:void 0,geneName:this.geneNameInput,variantName:this.variantNameInput,diseaseName:this.diseaseNameInput,comment:this.commentInput,submitter:this.submitterInput,citation:this.citationInput,status:this.statusInput?this.statusInput:void 0})}onSortChanged(e){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({sortBy:(0,t._)(e)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}setFormInputs(e,s){this.selectedSourceId=e,this.selectedStatus=s,this.showManageForm=!0}closePopover(){this.showManageForm=!1}loadMore(e){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{first:this.pageSize,after:e}}),this.loadedPages+=1}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(_.WRV),n.Y36(f.a),n.Y36(h.Y))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-source-suggestions-table"]],inputs:{sourceId:"sourceId",submitterId:"submitterId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:4,vars:2,consts:[[3,"nzTitle"],[4,"ngrxLet"],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["sourceSuggestionsTable",""],[3,"nzSortOrderChange"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],[3,"nzColumnKey","nzSortFn"],["nzWidth","25%",3,"nzColumnKey","nzSortFn"],["nzWidth","5%",4,"ngIf"],["nzAllowClear","","nzPlaceHolder","Choose",3,"ngModel","ngModelChange"],["nzValue","NEW","nzLabel","new"],["nzValue","CURATED","nzLabel","curated"],["nzValue","REJECTED","nzLabel","rejected"],["placeholderText","Submitter",3,"inputModel","onInputChanged","inputModelChange",4,"ngIf"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["placeholderText","ID",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Citation",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Gene",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Variant",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Disease",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["manageSuggestionTemplate",""],["nzWidth","5%"],["placeholderText","Submitter",3,"inputModel","onInputChanged","inputModelChange"],["nz-icon","","nz-tooltip","","nzType","info-circle",3,"nzTooltipTitle",4,"ngIf"],[3,"user",4,"ngIf"],[3,"source",4,"ngIf"],[3,"gene",4,"ngIf"],[3,"variant",4,"ngIf"],[3,"disease",4,"ngIf"],["nzAlign","center","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],["nz-icon","","nzType","comment"],["nz-icon","","nz-tooltip","","nzType","info-circle",3,"nzTooltipTitle"],[3,"user"],[3,"source"],[3,"gene"],[3,"variant"],[3,"disease"],["nz-button","","nzSize","small","nz-tooltip","","nzTooltipTitle","(Coming Soon) Curate an Evidence Item from this Source Suggestion",3,"disabled"],["nz-icon","","nzType","plus"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Manage Source Suggestion","nzPopoverPlacement","left","nzPopoverTrigger","click",3,"nzPopoverContent","click"],["nz-icon","","nzType","edit"],["colspan","10"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],[3,"currentStatus","sourceSuggestionId",4,"ngIf"],[3,"currentStatus","sourceSuggestionId"],["nz-icon","","nzType","civic:source"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(e,s){if(1&e&&(n.TgZ(0,"nz-card",0),n.YNc(1,Sn,55,39,"ng-container",1),n.qZA(),n.YNc(2,Jn,7,6,"ng-template",null,2,n.W1O)),2&e){const r=n.MAs(3);n.Q6J("nzTitle",r),n.xp6(1),n.Q6J("ngrxLet",s.viewer$)}},directives:[M.bd,S.eJ,u.N8,u.Om,u.$Z,u.Uo,u._C,u.qD,x.O5,d.Vq,Z.JJ,Z.On,d.Ip,N.p,u.p0,x.sg,Y.Ls,V.w,L.SY,$.I,D.T,R.H,B.I,W.n,u.UX,O.fY,O.ix,Q.dQ,j.lU,en,x.tP,on.ZU],pipes:[S.fM,x.i8],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),a})()},2832:(F,I,o)=>{o.d(I,{W:()=>w});var _=o(9808),t=o(1132),m=o(8054),C=o(4125),T=o(4182),A=o(6949),J=o(7345),y=o(9779),n=o(3309),f=o(4867),h=o(3580),M=o(647),S=o(6042),u=o(404),x=o(7008),d=o(3610),Z=o(8776),N=o(7484),Y=o(4546),V=o(1825),L=o(4375),$=o(868),D=o(7525),R=o(2359),B=o(1047),W=o(4509),O=o(8144),Q=o(5e3);let j=(()=>{class z{}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=Q.oAB({type:z}),z.\u0275inj=Q.cJS({imports:[[_.ez,T.UX,A.WG,S.sL,N.vh,$.we,Y.U5,D.j,R.L,B.o7,m.LV,O.zf,T.u5,Z.X0,x.B,V.A,L.R,W.w]]}),z})();var P=o(3618);let w=(()=>{class z{}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=Q.oAB({type:z}),z.\u0275inj=Q.cJS({imports:[[_.ez,T.u5,A.WG,t.HQ,m.LV,u.cg,M.PV,S.sL,d.$6,P.ZJ,N.vh,C.k,J.W,y.s,n.U,f.Q,h.Q,x.B,j]]}),z})()},7677:(F,I,o)=>{o.d(I,{G:()=>S});var _=o(9808),t=o(325),m=o(3610),C=o(8481),T=o(647),A=o(9779),J=o(4867),y=o(7484),n=o(3098),f=o(6949),h=o(5e3);let M=(()=>{class u{}return u.\u0275fac=function(d){return new(d||u)},u.\u0275mod=h.oAB({type:u}),u.\u0275inj=h.cJS({imports:[[_.ez,f.WG,y.vh,n.q6,A.s,J.Q]]}),u})(),S=(()=>{class u{}return u.\u0275fac=function(d){return new(d||u)},u.\u0275mod=h.oAB({type:u}),u.\u0275inj=h.cJS({imports:[[_.ez,t.Bz,m.$6,C.X,T.PV,M]]}),u})()},8664:(F,I,o)=>{o.d(I,{I:()=>k});var _=o(6654),t=o(5e3),m=o(9808),C=o(325),T=o(8481),A=o(3610),J=o(4850),y=o(712),n=o(7484),f=o(647),h=o(3193),M=o(3098),S=o(6550),u=o(1894),x=o(8144),d=o(6949);function Z(i,l){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const c=t.oxw().ngIf;t.xp6(1),t.hij(" ",c.name," ")}}function N(i,l){if(1&i&&t._UZ(0,"cvc-gene-tag",14),2&i){const c=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",c.gene)}}function Y(i,l){1&i&&(t.TgZ(0,"span"),t._uU(1,",\xa0"),t.qZA())}function V(i,l){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,Y,2,0,"span",1),t.qZA()),2&i){const c=l.$implicit,v=l.last;t.xp6(1),t.hij(" ",c,""),t.xp6(1),t.Q6J("ngIf",!v)}}function L(i,l){if(1&i&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,V,3,2,"span",16),t.qZA()),2&i){const c=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",c.variantAliases)}}function $(i,l){if(1&i&&(t.TgZ(0,"nz-descriptions-item",17),t.TgZ(1,"cvc-link-tag",18),t._uU(2),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",c.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",c.alleleRegistryId," ")}}function D(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",20),t._UZ(2,"i",21),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/flags"),t.xp6(3),t.hij(" Flags (",c.flags.totalCount,") ")}}function R(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",22),t._UZ(2,"i",23),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",c.revisions.totalCount,") ")}}function B(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",24),t._UZ(2,"i",25),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/comments"),t.xp6(3),t.hij(" Comments (",c.comments.totalCount,") ")}}function W(i,l){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,Z,2,1,"ng-template",null,3,t.W1O),t.YNc(4,N,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,L,2,1,"nz-descriptions-item",6),t.YNc(8,$,3,2,"nz-descriptions-item",7),t.TgZ(9,"nz-descriptions-item",8),t._uU(10),t.qZA(),t.qZA(),t.TgZ(11,"nz-row",9),t.TgZ(12,"nz-col",10),t.TgZ(13,"nz-space",11),t.YNc(14,D,4,2,"a",12),t.YNc(15,R,4,2,"a",12),t.YNc(16,B,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const c=l.ngIf,v=t.MAs(3),U=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",v)("nzExtra",U),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",c.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",c.alleleRegistryId),t.xp6(2),t.hij(" ",c.evidenceItems.totalCount," ")}}let O=(()=>{class i{constructor(c){this.gql=c}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,J.U)(({data:c})=>c.variant))}}return i.\u0275fac=function(c){return new(c||i)(t.Y36(y.ZYZ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(c,v){1&c&&(t.TgZ(0,"div",0),t.YNc(1,W,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&c&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,v.variant$)))},directives:[m.O5,n.bd,f.Ls,h.H,M.R7,M.uj,m.sg,S.l,u.SK,u.t3,x.NU,x.$1,C.yS,T.j],pipes:[d.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),i})();function Q(i,l){}function j(i,l){if(1&i&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,Q,0,0,"ng-template",6),t.qZA(),t.BQk()),2&i){const c=t.oxw(),v=t.MAs(2);t.xp6(1),t.Q6J("routerLink",c.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",v)}}function P(i,l){}function w(i,l){if(1&i){const c=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(U){return t.CHM(c),t.oxw(2).itemClosed(U)}),t.YNc(1,P,0,0,"ng-template",6),t.qZA()}if(2&i){t.oxw();const c=t.MAs(2),v=t.oxw(),U=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",v.onCloseClicked?0:.5)("nzPopoverContent",c)("nzMode",v.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",U)}}function z(i,l){if(1&i&&t._UZ(0,"cvc-variant-popover",11),2&i){const c=t.oxw(3);t.Q6J("variantId",c.variant.id)}}function b(i,l){if(1&i&&t.YNc(0,z,1,1,"cvc-variant-popover",10),2&i){const c=t.oxw(2);t.Q6J("ngIf",c.enablePopover)}}function E(i,l){if(1&i&&(t.YNc(0,w,2,4,"nz-tag",7),t.YNc(1,b,1,1,"ng-template",null,8,t.W1O)),2&i){const c=t.oxw(),v=t.MAs(4);t.Q6J("ngIf",c.enablePopover)("ngIfElse",v)}}function H(i,l){}function G(i,l){if(1&i){const c=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(U){return t.CHM(c),t.oxw().itemClosed(U)}),t.YNc(1,H,0,0,"ng-template",6),t.qZA()}if(2&i){const c=t.oxw(),v=t.MAs(8);t.Q6J("nzMode",c.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",v)}}function K(i,l){}function X(i,l){if(1&i&&t.YNc(0,K,0,0,"ng-template",6),2&i){t.oxw();const c=t.MAs(2);t.Q6J("ngTemplateOutlet",c)}}function q(i,l){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const c=t.oxw();t.xp6(1),t.hij(" ",c.variant.name,"\n")}}let k=(()=>{class i extends _.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return i.\u0275fac=function(c){return new(c||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[t.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(c,v){if(1&c&&(t.YNc(0,j,3,2,"ng-container",0),t.YNc(1,E,3,2,"ng-template",null,1,t.W1O),t.YNc(3,G,2,2,"ng-template",null,2,t.W1O),t.YNc(5,X,1,1,"ng-template",null,3,t.W1O),t.YNc(7,q,2,1,"ng-template",null,4,t.W1O)),2&c){const U=t.MAs(6);t.Q6J("ngIf",v.linked)("ngIfElse",U)}},directives:[m.O5,C.yS,m.tP,T.j,A.lU,O,f.Ls],styles:[""]}),i})()},4867:(F,I,o)=>{o.d(I,{Q:()=>x});var _=o(9808),t=o(325),m=o(8481),C=o(647),T=o(3610),A=o(6949),J=o(7484),y=o(1894),n=o(3098),f=o(8144),h=o(3309),M=o(3630),S=o(5e3);let u=(()=>{class d{}return d.\u0275fac=function(N){return new(N||d)},d.\u0275mod=S.oAB({type:d}),d.\u0275inj=S.cJS({imports:[[_.ez,t.Bz,A.WG,J.vh,y.Jb,n.q6,m.X,C.PV,f.zf,h.U,M.X]]}),d})(),x=(()=>{class d{}return d.\u0275fac=function(N){return new(N||d)},d.\u0275mod=S.oAB({type:d}),d.\u0275inj=S.cJS({imports:[[_.ez,t.Bz,m.X,T.$6,C.PV,u]]}),d})()},3154:(F,I,o)=>{o.d(I,{_:()=>t});var _=o(712);function t(m){var C;switch(m.value){case"ascend":C=_.SrV.Asc;break;case"descend":C=_.SrV.Desc;break;default:return}return{column:m.key,direction:C}}}}]); \ No newline at end of file diff --git a/server/public/9636.8eed820d942857de.js b/server/public/9636.fb2df4966b3986b1.js similarity index 55% rename from server/public/9636.8eed820d942857de.js rename to server/public/9636.fb2df4966b3986b1.js index b73cc5815..463725f88 100644 --- a/server/public/9636.8eed820d942857de.js +++ b/server/public/9636.fb2df4966b3986b1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9636],{9636:(k,S,a)=>{a.r(S),a.d(S,{EvidenceDetailModule:()=>jn});var o=a(9808),f=a(6949),I=a(5630),m=a(8144),y=a(3618),L=a(3309),b=a(4682),h=a(1945),Z=a(6042),E=a(8481),g=a(325),A=a(4867),x=a(647),u=a(712),v=a(373),C=a(1059),P=a(7625),B=a(8929),M=a(591),e=a(5e3),U=a(9350),N=a(8992),w=a(3193),r=a(8664),d=a(5623),c=a(8168),l=a(2683),_=a(2643),R=a(9077),F=a(8525),Y=a(2359),j=a(2233),T=a(1894),$=a(759),V=a(3997);function q(n,i){if(1&n&&(e.TgZ(0,"span",8),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Oqu(t.name)}}function W(n,i){if(1&n&&(e.TgZ(0,"span",9),e.TgZ(1,"a",10),e._UZ(2,"cvc-gene-tag",11),e.qZA(),e.TgZ(3,"a",10),e._UZ(4,"cvc-variant-tag",12),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.MGl("routerLink","/genes/",t.gene.id,""),e.xp6(1),e.Q6J("gene",t.gene),e.xp6(1),e.MGl("routerLink","/variants/",t.variant.id,""),e.xp6(1),e.Q6J("variant",t.variant)}}function G(n,i){1&n&&(e.TgZ(0,"nz-space",5),e.YNc(1,q,4,1,"span",6),e.YNc(2,W,5,4,"span",7),e.qZA())}function X(n,i){1&n&&(e.TgZ(0,"nz-tag",26),e._uU(1,"Flagged"),e.qZA()),2&n&&e.Q6J("nzColor","red")}const H=function(n){return["/evidence",n,"revise"]};function K(n,i){if(1&n&&(e.TgZ(0,"button",28,29),e._uU(2," Revise "),e.qZA()),2&n){const t=e.MAs(1),s=e.oxw(3).ngIf;e.Q6J("routerLink",e.VKq(2,H,s.id))("nzType",t.isActive?"primary":"default")}}function ee(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,K,3,4,"button",27),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ne(n,i){if(1&n&&(e.TgZ(0,"button",31,29),e._uU(2," Flag "),e.qZA()),2&n){const t=e.MAs(1);e.Q6J("nzType",t.isActive?"primary":"default")}}function te(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ne,3,1,"button",30),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ie(n,i){if(1&n&&e._UZ(0,"cvc-entity-subscription-button",33),2&n){const t=e.oxw(2).ngrxLet,s=e.oxw(2);e.Q6J("viewer",t)("subscribableId",s.subscribable.id)}}function ae(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ie,1,2,"cvc-entity-subscription-button",32),e.qZA()),2&n){const t=e.oxw().ngrxLet,s=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.signedIn&&s.subscribable)}}function oe(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-revert-entity-button",35),e.NdJ("onReverted",function(p){return e.CHM(t),e.oxw(4).onRevertCompleted(p)}),e.qZA()}if(2&n){const t=e.oxw(2).ngrxLet,s=e.oxw().ngIf;e.Q6J("viewer",t)("entityId",s.id)}}function se(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,oe,1,2,"cvc-revert-entity-button",34),e.qZA()),2&n){const t=e.oxw().ngrxLet,s=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"!=s.status)}}function ce(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",36),e.NdJ("nzOnClose",function(){const z=e.CHM(t).$implicit;return e.oxw(3).onErrorBannerClose(z)}),e.qZA()}2&n&&e.Q6J("nzMessage",i.$implicit)}function re(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",37),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(3).onSuccessBannerClose()}),e.qZA()}if(2&n){const t=e.oxw(3);e.Q6J("nzMessage",t.successMessage)}}function le(n,i){1&n&&e._UZ(0,"nz-alert",38)}function de(n,i){if(1&n&&(e.TgZ(0,"nz-col",39),e._UZ(1,"cvc-contributor-avatars",40),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("subscribable",t.subscribable)}}function pe(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-moderate-entity-buttons",42),e.NdJ("onModerated",function(p){return e.CHM(t),e.oxw(4).onModerateCompleted(p)}),e.qZA()}if(2&n){const t=e.oxw(2).ngrxLet,s=e.oxw().ngIf;e.Q6J("entityId",s.id)("viewer",t)}}function ge(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,pe,1,2,"cvc-moderate-entity-buttons",41),e.qZA()),2&n){const t=e.oxw().ngrxLet,s=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"==s.status)}}const _e=function(n){return{flagged:n}};function me(n,i){if(1&n&&(e.TgZ(0,"nz-page-header",13),e.TgZ(1,"nz-page-header-title",14),e._UZ(2,"i",15),e._uU(3),e.qZA(),e.TgZ(4,"nz-page-header-tags"),e.YNc(5,X,2,1,"nz-tag",16),e.qZA(),e.TgZ(6,"nz-page-header-extra"),e.TgZ(7,"nz-space",17),e.YNc(8,ee,2,1,"span",18),e.YNc(9,te,2,1,"span",18),e.YNc(10,ae,2,1,"span",18),e.YNc(11,se,2,1,"span",18),e.qZA(),e.qZA(),e.TgZ(12,"nz-page-header-content"),e.YNc(13,ce,1,1,"nz-alert",19),e.YNc(14,re,1,1,"nz-alert",20),e.YNc(15,le,1,0,"nz-alert",21),e.TgZ(16,"cvc-tab-navigation",22),e.ALo(17,"ngrxPush"),e.YNc(18,de,2,1,"ng-template",null,23,e.W1O),e.qZA(),e.TgZ(20,"nz-space",24),e.YNc(21,ge,2,1,"span",18),e.qZA(),e.TgZ(22,"div",25),e._UZ(23,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw().ngIf,s=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(9,_e,t.flags.totalCount>0)),e.xp6(2),e.hij(" ",t.name," "),e.xp6(2),e.Q6J("ngIf",!1),e.xp6(8),e.Q6J("ngForOf",s.errors),e.xp6(1),e.Q6J("ngIf",s.successMessage),e.xp6(1),e.Q6J("ngIf","SUBMITTED"==t.status),e.xp6(1),e.Q6J("tabs",e.lcZ(17,7,s.tabs$))}}function ue(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,G,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"div",3),e.ALo(5,"ngrxPush"),e.YNc(6,me,24,11,"nz-page-header",4),e.qZA(),e.BQk()),2&n){const t=i.ngIf,s=e.MAs(3),p=e.oxw();e.xp6(1),e.Q6J("displayName",t.name)("relationsTpl",s),e.xp6(3),e.Q6J("flags",e.lcZ(5,4,p.flagsTotal$)),e.xp6(2),e.Q6J("ngrxLet",p.viewer$)}}let ve=(()=>{class n{constructor(t,s,p){this.gql=t,this.viewerService=s,this.route=p,this.errors=[],this.destroy$=new B.xQ,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.tabs$=new M.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(z=>{this.queryRef=this.gql.watch({evidenceId:+z.evidenceId});let D=this.queryRef.valueChanges;this.loading$=D.pipe((0,v.j)("loading"),(0,C.O)(!0)),this.evidence$=D.pipe((0,v.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,v.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,v.j)("flags","totalCount")),this.evidence$.pipe((0,v.j)("revisions","totalCount"),(0,P.R)(this.destroy$)).subscribe({next:$n=>{this.tabs$.next(this.defaultTabs.map(O=>"Revisions"===O.tabLabel?Object.assign({badgeCount:$n},O):O))}}),this.subscribable={id:+z.evidenceId,entityType:u.o71.EvidenceItem},this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){var s;!0===t?(this.errors=[],this.successMessage="Evidence Item reverted to submitted status.",null===(s=this.queryRef)||void 0===s||s.refetch()):(this.errors=t,this.successMessage=void 0)}onModerateCompleted(t){var s;Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Evidence successfully ${t}.`,null===(s=this.queryRef)||void 0===s||s.refetch())}onErrorBannerClose(t){var s;this.errors=null===(s=this.errors)||void 0===s?void 0:s.filter(p=>p!=t)}onSuccessBannerClose(){this.successMessage=void 0}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.pHu),e.Y36(U.a),e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["evidence-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],["cvcFlaggable","",3,"flags"],["class","site-page-header",4,"ngrxLet"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:evidence"],[3,"nzColor",4,"ngIf"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning",4,"ngIf"],[3,"tabs"],["tabBarExtraContent",""],["nzDirection","vertical"],[1,"content"],[3,"nzColor"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["rlaComments","routerLinkActive"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","EvidenceItem",3,"viewer","subscribableId",4,"ngIf"],["typename","EvidenceItem",3,"viewer","subscribableId"],["entityType","EvidenceItem",3,"viewer","entityId","onReverted",4,"ngIf"],["entityType","EvidenceItem",3,"viewer","entityId","onReverted"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["id","contributors-col"],[3,"subscribable"],["entityType","EvidenceItem",3,"entityId","viewer","onModerated",4,"ngIf"],["entityType","EvidenceItem",3,"entityId","viewer","onModerated"]],template:function(t,s){1&t&&(e.YNc(0,ue,7,6,"ng-container",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,s.evidence$))},directives:[o.O5,N.I,m.NU,m.$1,y.ZU,g.yS,w.H,r.I,d.o,f.eJ,h.$O,h.u9,c.Y,o.mk,l.w,x.Ls,h.ZJ,E.j,h.Jp,Z.ix,_.dQ,g.Od,g.rH,R.Q,F.e,h.u5,o.sg,Y.r,j.P,T.t3,$.N,V.m,g.lC],pipes:[f.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),n})();var ze=a(2278);let fe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,ze.l]]}),n})();var he=a(3801);let ye=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.evidenceId,entityType:u.OfU.EvidenceItem}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,s){1&t&&e._UZ(0,"cvc-comment-list",0),2&t&&e.Q6J("commentable",s.commentable)},directives:[he.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var xe=a(7484),Te=a(6559),Ee=a(4271);let Se=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,T.Jb,xe.vh,m.zf,Te.H0,Ee.M]]}),n})();var Ze=a(7036);let Ce=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:u.sfv.EvidenceItem,id:+this.route.snapshot.params.evidenceId}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,s){1&t&&e._UZ(0,"cvc-flag-list-and-filter",0),2&t&&e.Q6J("flaggable",s.flaggable)},directives:[Ze.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ie=a(2914);let be=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,Ie.A]]}),n})();var Ae=a(8291);let Pe=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(s=>{this.eid=+s.evidenceId,this.entityType=u.oRL.EvidenceItem})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,s){1&t&&e._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&e.Q6J("id",s.eid)("entityType",s.entityType)},directives:[Ae.a],styles:[""]}),n})();var J=a(3098),Me=a(9444),Ne=a(3384),we=a(592),Je=a(7345),Qe=a(5453),De=a(6286),Oe=a(8018),Le=a(9441),Be=a(9779),Ue=a(897),Ye=a(3580),Q=a(8625),ke=a(7026);let Re=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,g.Bz,f.WG,T.Jb,m.zf,y.ZJ,Z.sL,E.X,x.PV,J.q6,Me.s,Ne.h,Ye.Q,we.x,Ue.$,Je.W,Qe.N,Be.s,De.y,Oe.e,Le.s,Q.$L.forChild({formatter:{useClass:ke.x,provide:Q.KP}})]]}),n})();function Fe(n,i){1&n&&e._UZ(0,"i",4)}function je(n,i){1&n&&e._UZ(0,"i",5)}function $e(n,i){if(1&n&&(e.ynx(0),e.YNc(1,Fe,1,0,"i",2),e.YNc(2,je,1,0,"i",3),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.filledStars),e.xp6(1),e.Q6J("ngForOf",t.emptyStars)}}function Ve(n,i){1&n&&e._uU(0," --\n")}let qe=(()=>{class n{constructor(){this.filledStars=[],this.emptyStars=[]}ngOnInit(){this.starRating&&(this.filledStars=Array(this.starRating),this.emptyStars=Array(5-this.starRating))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-rating"]],inputs:{starRating:"starRating"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noStars",""],["nzType","star","nzTheme","fill","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","outline","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","fill","nz-icon",""],["nzType","star","nzTheme","outline","nz-icon",""]],template:function(t,s){if(1&t&&(e.YNc(0,$e,3,2,"ng-container",0),e.YNc(1,Ve,1,0,"ng-template",null,1,e.W1O)),2&t){const p=e.MAs(2);e.Q6J("ngIf",s.starRating)("ngIfElse",p)}},directives:[o.O5,o.sg,x.Ls],styles:[""]}),n})();var We=a(4590),Ge=a(125),Xe=a(6906),He=a(4049),Ke=a(4022),en=a(6715),nn=a(7956),tn=a(7469),an=a(3756),on=a(4110);function sn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",11),e.TgZ(1,"nz-descriptions-item",12),e.TgZ(2,"p",13),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Q6J("nzEllipsisRows",14),e.xp6(1),e.Oqu(t.description)}}function cn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",14),e.TgZ(1,"nz-descriptions-item",15),e._uU(2),e.ALo(3,"evidenceEnumDisplay"),e.qZA(),e.TgZ(4,"nz-descriptions-item",16),e._uU(5),e.ALo(6,"evidenceEnumDisplay"),e.qZA(),e.TgZ(7,"nz-descriptions-item",17),e._uU(8),e.ALo(9,"evidenceEnumDisplay"),e.qZA(),e.TgZ(10,"nz-descriptions-item",18),e._uU(11),e.qZA(),e.TgZ(12,"nz-descriptions-item",19),e._UZ(13,"cvc-evidence-rating",20),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.Q6J("nzColumn",2),e.xp6(2),e.hij(" ",e.lcZ(3,6,t.evidenceType)," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,t.evidenceDirection)," "),e.xp6(3),e.hij(" ",e.lcZ(9,10,t.clinicalSignificance)," "),e.xp6(3),e.hij(" ",t.evidenceLevel," "),e.xp6(2),e.Q6J("starRating",t.evidenceRating)}}function rn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions-item",30),e._uU(1),e.ALo(2,"timeago"),e._UZ(3,"cvc-user-tag",25),e.qZA()),2&n){const t=e.oxw(4).ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,2,t.acceptanceEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.acceptanceEvent.originatingUser)}}function ln(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions-item",31),e._uU(1),e.ALo(2,"timeago"),e._UZ(3,"cvc-user-tag",25),e.qZA()),2&n){const t=e.oxw(4).ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,2,t.rejectionEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.rejectionEvent.originatingUser)}}function dn(n,i){if(1&n&&(e.ynx(0),e.ynx(1,27),e.YNc(2,rn,4,4,"nz-descriptions-item",28),e.YNc(3,ln,4,4,"nz-descriptions-item",29),e.BQk(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngSwitch",null===t.rejectionEvent),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1)}}function pn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",21),e.TgZ(1,"nz-descriptions-item",22),e._UZ(2,"cvc-status-tag",23),e.qZA(),e.TgZ(3,"nz-descriptions-item",24),e._uU(4),e.ALo(5,"timeago"),e._UZ(6,"cvc-user-tag",25),e.qZA(),e.YNc(7,dn,4,3,"ng-container",26),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Q6J("status",t.status),e.xp6(2),e.hij(" ",e.lcZ(5,4,t.submissionEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.submissionEvent.originatingUser),e.xp6(1),e.Q6J("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent)}}function gn(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-clinical-trial-tag",36),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("clinicalTrial",t)}}function _n(n,i){if(1&n&&(e.ynx(0),e.YNc(1,gn,2,1,"ng-container",35),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.source.clinicalTrials)}}function mn(n,i){1&n&&(e.ynx(0),e.TgZ(1,"span",37),e._uU(2,"None Specified"),e.qZA(),e.BQk())}function un(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",14),e.TgZ(1,"nz-descriptions-item",32),e._UZ(2,"cvc-source-tag",33),e.qZA(),e.TgZ(3,"nz-descriptions-item",34),e.YNc(4,_n,2,1,"ng-container",26),e.YNc(5,mn,3,0,"ng-container",26),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("source",t.source),e.xp6(1),e.Q6J("nzTitle",t.source.clinicalTrials.length>1?"Clinical Trials":"Clinical Trial"),e.xp6(1),e.Q6J("ngIf",t.source.clinicalTrials.length>0),e.xp6(1),e.Q6J("ngIf",0===t.source.clinicalTrials.length)}}function vn(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"a",43),e._UZ(2,"cvc-disease-tag",44),e.qZA(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.MGl("routerLink","/diseases/",t.disease.id,""),e.xp6(1),e.Q6J("disease",t.disease)}}function zn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"N/A"),e.qZA())}function fn(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-phenotype-tag",45),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("phenotype",t)}}function hn(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,fn,2,1,"ng-container",35),e.qZA(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(2),e.Q6J("ngForOf",t.phenotypes)}}function yn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"None Specified"),e.qZA())}function xn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",38),e.TgZ(1,"nz-descriptions-item",39),e.YNc(2,vn,3,2,"ng-container",26),e.YNc(3,zn,2,0,"span",40),e.qZA(),e.TgZ(4,"nz-descriptions-item",34),e.YNc(5,hn,3,1,"ng-container",41),e.YNc(6,yn,2,0,"ng-template",null,42,e.W1O),e.qZA(),e.qZA()),2&n){const t=e.MAs(7),s=e.oxw(2).ngIf;e.Q6J("nzColumn",void 0!==(null==s.disease?null:s.disease.name)&&s.phenotypes.length>0?1:2),e.xp6(2),e.Q6J("ngIf",s.disease),e.xp6(1),e.Q6J("ngIf",!s.disease),e.xp6(1),e.Q6J("nzTitle",s.phenotypes.length>1?"Phenotypes":"Phenotype"),e.xp6(1),e.Q6J("ngIf",s.phenotypes.length>0)("ngIfElse",t)}}function Tn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"N/A"),e.qZA())}function En(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-drug-tag",50),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("drug",t)}}function Sn(n,i){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,En,2,1,"ng-container",35),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.drugs)}}function Zn(n,i){1&n&&e._uU(0," Drug ")}function Cn(n,i){1&n&&e._uU(0," Drug ")}function In(n,i){if(1&n&&(e._uU(0),e.ALo(1,"titlecase")),2&n){const t=e.oxw(4).ngIf;e.hij(" Drugs (",e.lcZ(1,1,t.drugInteractionType),") ")}}function bn(n,i){if(1&n&&(e.ynx(0,46),e.YNc(1,Zn,1,0,"ng-template",47),e.YNc(2,Cn,1,0,"ng-template",51),e.YNc(3,In,2,3,"ng-template",48),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.Q6J("ngPlural",t.drugs.length)}}function An(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",11),e.TgZ(1,"nz-descriptions-item",34),e.ynx(2,46),e.YNc(3,Tn,2,0,"ng-template",47),e.YNc(4,Sn,2,1,"ng-template",48),e.BQk(),e.YNc(5,bn,4,1,"ng-template",null,49,e.W1O),e.qZA(),e.qZA()),2&n){const t=e.MAs(6),s=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTitle",t),e.xp6(1),e.Q6J("ngPlural",s.drugs.length)}}function Pn(n,i){1&n&&(e.TgZ(0,"nz-row",4),e.TgZ(1,"nz-col",5),e.TgZ(2,"nz-space",6),e.YNc(3,sn,4,2,"nz-descriptions",7),e.YNc(4,cn,14,12,"nz-descriptions",8),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",5),e.TgZ(6,"nz-space",6),e.YNc(7,pn,8,6,"nz-descriptions",9),e.YNc(8,un,6,5,"nz-descriptions",8),e.YNc(9,xn,8,6,"nz-descriptions",10),e.YNc(10,An,7,2,"nz-descriptions",7),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Q6J("nzGutter",16),e.xp6(1),e.Q6J("nzSpan",12),e.xp6(4),e.Q6J("nzSpan",12))}function Mn(n,i){if(1&n&&e._UZ(0,"cvc-assertions-table",52),2&n){const t=e.oxw().ngIf;e.MGl("cvcTitle","",t.name," Assertions"),e.Q6J("evidenceId",t.id)}}function Nn(n,i){1&n&&(e.TgZ(0,"nz-space",1),e.YNc(1,Pn,11,3,"nz-row",2),e.YNc(2,Mn,1,2,"cvc-assertions-table",3),e.qZA())}let wn=(()=>{class n{constructor(t,s){var p;if(this.gql=t,this.route=s,null==(p=this.evidenceId?this.evidenceId:+this.route.snapshot.params.evidenceId))throw new Error("Must pass in an evidence ID as an input or via the route.");this.queryRef=this.gql.watch({evidenceId:p});let z=this.queryRef.valueChanges;this.loading$=z.pipe((0,v.j)("loading"),(0,C.O)(!0)),this.evidence$=z.pipe((0,v.j)("data","evidenceItem")),this.subscribable={entityType:u.o71.EvidenceItem,id:p}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.sBY),e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-summary"]],inputs:{evidenceId:"evidenceId"},decls:2,vars:3,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],[3,"nzGutter",4,"nzSpaceItem"],[3,"evidenceId","cvcTitle",4,"nzSpaceItem"],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",4,"nzSpaceItem"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true","class","status-tags",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Level"],["nzTitle","Rating"],[3,"starRating"],["nzLayout","horizontal","nzSize","small","nzBordered","true",1,"status-tags"],["nzTitle","Status"],[3,"status"],["nzTitle","Submitted"],[3,"user"],[4,"ngIf"],[3,"ngSwitch"],["nzTitle","Accepted",4,"ngSwitchCase"],["nzTitle","Rejected",4,"ngSwitchCase"],["nzTitle","Accepted"],["nzTitle","Rejected"],["nzTitle","Source","nzSpan","2"],[3,"source"],[3,"nzTitle"],[4,"ngFor","ngForOf"],[3,"clinicalTrial"],["nz-typography","","nzType","secondary"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Disease"],["nz-typography","","nzType","secondary",4,"ngIf"],[4,"ngIf","ngIfElse"],["noPhenotypes",""],[3,"routerLink"],[3,"disease"],[3,"phenotype"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["drugsTitle",""],[3,"drug"],["ngPluralCase","=1"],[3,"evidenceId","cvcTitle"]],template:function(t,s){1&t&&(e.YNc(0,Nn,3,0,"nz-space",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,s.evidence$))},directives:[o.O5,m.NU,m.$1,T.SK,T.t3,J.R7,J.uj,y.ZU,qe,We.h,Ge.I,o.RF,o.n9,Xe.T,o.sg,He.G,g.yS,Ke.n,en.$,nn.i,o.iq,o.zE,tn.u,an.x],pipes:[f.fM,on.D,Q.wr,o.rS],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}.status-tags[_ngcontent-%COMP%] nz-tag{margin-right:0}.status-tags[_ngcontent-%COMP%] .ant-descriptions-item-label{white-space:nowrap}"]}),n})();var Jn=a(2011);let Qn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.evidenceId,entityType:u.o71.EvidenceItem}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,s){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("subscribable",s.subscribable)},directives:[Jn.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Dn=a(4292);let On=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,Dn.t]]}),n})();const Ln=[{path:"",component:ve,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:wn,data:{breadcrumb:"Summary"}},{path:"comments",component:ye,data:{breadcrumb:"Comments"}},{path:"revisions",component:Pe,data:{breadcrumb:"Revisions"}},{path:"flags",component:Ce,data:{breadcrumb:"Flags"}},{path:"events",component:Qn,data:{breadcrumb:"Events"}}]}];let Bn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[g.Bz.forChild(Ln),Re,fe,be,Se,On],g.Bz]}),n})();var Un=a(4609),Yn=a(694),kn=a(8766),Rn=a(8762),Fn=a(5750);let jn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,Bn,g.Bz,f.WG,m.zf,y.ZJ,h.KJ,Z.sL,E.X,x.PV,Y.L,T.Jb,I.D,L.U,b.m,A.Q,Un.g,Yn.G,kn.P,Rn.c,Fn.Z]]}),n})()},6559:(k,S,a)=>{a.d(S,{ng:()=>N,H0:()=>w});var o=a(5e3),f=a(1721),I=a(655),m=a(9808),y=a(226);const b=["nzType","avatar"];function E(r,d){if(1&r&&(o.TgZ(0,"div",5),o._UZ(1,"nz-skeleton-element",6),o.qZA()),2&r){const c=o.oxw(2);o.xp6(1),o.Q6J("nzSize",c.avatar.size||"default")("nzShape",c.avatar.shape||"circle")}}function g(r,d){if(1&r&&o._UZ(0,"h3",7),2&r){const c=o.oxw(2);o.Udp("width",c.toCSSUnit(c.title.width))}}function A(r,d){if(1&r&&o._UZ(0,"li"),2&r){const c=d.index,l=o.oxw(3);o.Udp("width",l.toCSSUnit(l.widthList[c]))}}function x(r,d){if(1&r&&(o.TgZ(0,"ul",8),o.YNc(1,A,1,2,"li",9),o.qZA()),2&r){const c=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",c.rowsList)}}function u(r,d){if(1&r&&(o.ynx(0),o.YNc(1,E,2,2,"div",1),o.TgZ(2,"div",2),o.YNc(3,g,1,2,"h3",3),o.YNc(4,x,2,1,"ul",4),o.qZA(),o.BQk()),2&r){const c=o.oxw();o.xp6(1),o.Q6J("ngIf",!!c.nzAvatar),o.xp6(2),o.Q6J("ngIf",!!c.nzTitle),o.xp6(1),o.Q6J("ngIf",!!c.nzParagraph)}}function v(r,d){1&r&&(o.ynx(0),o.Hsn(1),o.BQk())}const C=["*"];let P=(()=>{class r{constructor(){this.nzActive=!1,this.nzBlock=!1}}return r.\u0275fac=function(c){return new(c||r)},r.\u0275dir=o.lG2({type:r,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(c,l){2&c&&o.ekj("ant-skeleton-active",l.nzActive)("ant-skeleton-block",l.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,I.gn)([(0,f.yF)()],r.prototype,"nzBlock",void 0),r})(),M=(()=>{class r{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(c){if(c.nzSize&&"number"==typeof this.nzSize){const l=`${this.nzSize}px`;this.styleMap={width:l,height:l,"line-height":l}}else this.styleMap={}}}return r.\u0275fac=function(c){return new(c||r)},r.\u0275cmp=o.Xpm({type:r,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[o.TTD],attrs:b,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(c,l){1&c&&o._UZ(0,"span",0),2&c&&(o.ekj("ant-skeleton-avatar-square","square"===l.nzShape)("ant-skeleton-avatar-circle","circle"===l.nzShape)("ant-skeleton-avatar-lg","large"===l.nzSize)("ant-skeleton-avatar-sm","small"===l.nzSize),o.Q6J("ngStyle",l.styleMap))},directives:[m.PC],encapsulation:2,changeDetection:0}),r})(),N=(()=>{class r{constructor(c,l,_){this.cdr=c,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],l.addClass(_.nativeElement,"ant-skeleton")}toCSSUnit(c=""){return(0,f.WX)(c)}getTitleProps(){const c=!!this.nzAvatar,l=!!this.nzParagraph;let _="";return!c&&l?_="38%":c&&l&&(_="50%"),Object.assign({width:_},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const c=!!this.nzAvatar,l=!!this.nzTitle,_={};return(!c||!l)&&(_.width="61%"),_.rows=!c&&l?3:2,Object.assign(Object.assign({},_),this.getProps(this.nzParagraph))}getProps(c){return c&&"object"==typeof c?c:{}}getWidthList(){const{width:c,rows:l}=this.paragraph;let _=[];return c&&Array.isArray(c)?_=c:c&&!Array.isArray(c)&&(_=[],_[l-1]=c),_}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(c){(c.nzTitle||c.nzAvatar||c.nzParagraph)&&this.updateProps()}}return r.\u0275fac=function(c){return new(c||r)(o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(o.SBq))},r.\u0275cmp=o.Xpm({type:r,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(c,l){2&c&&o.ekj("ant-skeleton-with-avatar",!!l.nzAvatar)("ant-skeleton-active",l.nzActive)("ant-skeleton-round",!!l.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[o.TTD],ngContentSelectors:C,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(c,l){1&c&&(o.F$t(),o.YNc(0,u,5,3,"ng-container",0),o.YNc(1,v,2,0,"ng-container",0)),2&c&&(o.Q6J("ngIf",l.nzLoading),o.xp6(1),o.Q6J("ngIf",!l.nzLoading))},directives:[M,m.O5,P,m.sg],encapsulation:2,changeDetection:0}),r})(),w=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=o.oAB({type:r}),r.\u0275inj=o.cJS({imports:[[y.vT,m.ez]]}),r})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9636],{9636:(B,C,a)=>{a.r(C),a.d(C,{EvidenceDetailModule:()=>jn});var l=a(9808),f=a(6949),Z=a(5630),v=a(8144),y=a(3618),M=a(3309),D=a(4682),u=a(1945),x=a(6042),T=a(8481),d=a(325),J=a(4867),S=a(647),_=a(712),z=a(373),I=a(1059),k=a(7625),Q=a(8929),L=a(591),e=a(5e3),b=a(9350),c=a(8992),r=a(3193),s=a(8664),g=a(5623),E=a(8168),U=a(2683),R=a(2643),Y=a(9077),F=a(8525),O=a(2359),j=a(2233),h=a(1894),V=a(759),$=a(3997);function q(n,i){if(1&n&&(e.TgZ(0,"span",8),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Oqu(t.name)}}function W(n,i){if(1&n&&(e.TgZ(0,"span",9),e.TgZ(1,"a",10),e._UZ(2,"cvc-gene-tag",11),e.qZA(),e.TgZ(3,"a",10),e._UZ(4,"cvc-variant-tag",12),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.MGl("routerLink","/genes/",t.gene.id,""),e.xp6(1),e.Q6J("gene",t.gene),e.xp6(1),e.MGl("routerLink","/variants/",t.variant.id,""),e.xp6(1),e.Q6J("variant",t.variant)}}function G(n,i){1&n&&(e.TgZ(0,"nz-space",5),e.YNc(1,q,4,1,"span",6),e.YNc(2,W,5,4,"span",7),e.qZA())}function H(n,i){1&n&&(e.TgZ(0,"nz-tag",26),e._uU(1,"Flagged"),e.qZA()),2&n&&e.Q6J("nzColor","red")}const X=function(n){return["/evidence",n,"revise"]};function K(n,i){if(1&n&&(e.TgZ(0,"button",28,29),e._uU(2," Revise "),e.qZA()),2&n){const t=e.MAs(1),o=e.oxw(3).ngIf;e.Q6J("routerLink",e.VKq(2,X,o.id))("nzType",t.isActive?"primary":"default")}}function ee(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,K,3,4,"button",27),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ne(n,i){if(1&n&&(e.TgZ(0,"button",31,29),e._uU(2," Flag "),e.qZA()),2&n){const t=e.MAs(1);e.Q6J("nzType",t.isActive?"primary":"default")}}function te(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ne,3,1,"button",30),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ie(n,i){if(1&n&&e._UZ(0,"cvc-entity-subscription-button",33),2&n){const t=e.oxw(2).ngrxLet,o=e.oxw(2);e.Q6J("viewer",t)("subscribableId",o.subscribable.id)}}function ae(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ie,1,2,"cvc-entity-subscription-button",32),e.qZA()),2&n){const t=e.oxw().ngrxLet,o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.signedIn&&o.subscribable)}}function oe(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-revert-entity-button",35),e.NdJ("onReverted",function(p){return e.CHM(t),e.oxw(4).onRevertCompleted(p)}),e.qZA()}if(2&n){const t=e.oxw(2).ngrxLet,o=e.oxw().ngIf;e.Q6J("viewer",t)("entityId",o.id)}}function se(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,oe,1,2,"cvc-revert-entity-button",34),e.qZA()),2&n){const t=e.oxw().ngrxLet,o=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"!=o.status)}}function ce(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",36),e.NdJ("nzOnClose",function(){const m=e.CHM(t).$implicit;return e.oxw(3).onErrorBannerClose(m)}),e.qZA()}2&n&&e.Q6J("nzMessage",i.$implicit)}function re(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",37),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(3).onSuccessBannerClose()}),e.qZA()}if(2&n){const t=e.oxw(3);e.Q6J("nzMessage",t.successMessage)}}function le(n,i){1&n&&e._UZ(0,"nz-alert",38)}function pe(n,i){if(1&n&&(e.TgZ(0,"nz-col",39),e._UZ(1,"cvc-contributor-avatars",40),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("subscribable",t.subscribable)}}function de(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-moderate-entity-buttons",42),e.NdJ("onModerated",function(p){return e.CHM(t),e.oxw(4).onModerateCompleted(p)}),e.qZA()}if(2&n){const t=e.oxw(2).ngrxLet,o=e.oxw().ngIf;e.Q6J("entityId",o.id)("viewer",t)}}function ge(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,de,1,2,"cvc-moderate-entity-buttons",41),e.qZA()),2&n){const t=e.oxw().ngrxLet,o=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"==o.status)}}const _e=function(n){return{flagged:n}};function me(n,i){if(1&n&&(e.TgZ(0,"nz-page-header",13),e.TgZ(1,"nz-page-header-title",14),e._UZ(2,"i",15),e._uU(3),e.qZA(),e.TgZ(4,"nz-page-header-tags"),e.YNc(5,H,2,1,"nz-tag",16),e.qZA(),e.TgZ(6,"nz-page-header-extra"),e.TgZ(7,"nz-space",17),e.YNc(8,ee,2,1,"span",18),e.YNc(9,te,2,1,"span",18),e.YNc(10,ae,2,1,"span",18),e.YNc(11,se,2,1,"span",18),e.qZA(),e.qZA(),e.TgZ(12,"nz-page-header-content"),e.YNc(13,ce,1,1,"nz-alert",19),e.YNc(14,re,1,1,"nz-alert",20),e.YNc(15,le,1,0,"nz-alert",21),e.TgZ(16,"cvc-tab-navigation",22),e.ALo(17,"ngrxPush"),e.YNc(18,pe,2,1,"ng-template",null,23,e.W1O),e.qZA(),e.TgZ(20,"nz-space",24),e.YNc(21,ge,2,1,"span",18),e.qZA(),e.TgZ(22,"div",25),e._UZ(23,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw().ngIf,o=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(9,_e,t.flags.totalCount>0)),e.xp6(2),e.hij(" ",t.name," "),e.xp6(2),e.Q6J("ngIf",!1),e.xp6(8),e.Q6J("ngForOf",o.errors),e.xp6(1),e.Q6J("ngIf",o.successMessage),e.xp6(1),e.Q6J("ngIf","SUBMITTED"==t.status),e.xp6(1),e.Q6J("tabs",e.lcZ(17,7,o.tabs$))}}function ve(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,G,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"div",3),e.ALo(5,"ngrxPush"),e.YNc(6,me,24,11,"nz-page-header",4),e.qZA(),e.BQk()),2&n){const t=i.ngIf,o=e.MAs(3),p=e.oxw();e.xp6(1),e.Q6J("displayName",t.name)("relationsTpl",o),e.xp6(3),e.Q6J("flags",e.lcZ(5,4,p.flagsTotal$)),e.xp6(2),e.Q6J("ngrxLet",p.viewer$)}}let ue=(()=>{class n{constructor(t,o,p){this.gql=t,this.viewerService=o,this.route=p,this.errors=[],this.destroy$=new Q.xQ,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.tabs$=new L.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(m=>{this.queryRef=this.gql.watch({evidenceId:+m.evidenceId});let w=this.queryRef.valueChanges;this.loading$=w.pipe((0,z.j)("loading"),(0,I.O)(!0)),this.evidence$=w.pipe((0,z.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,z.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,z.j)("flags","totalCount")),this.evidence$.pipe((0,z.j)("revisions","totalCount"),(0,k.R)(this.destroy$)).subscribe({next:Vn=>{this.tabs$.next(this.defaultTabs.map(P=>"Revisions"===P.tabLabel?Object.assign({badgeCount:Vn},P):P))}}),this.subscribable={id:+m.evidenceId,entityType:_.o71.EvidenceItem},this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){var o;!0===t?(this.errors=[],this.successMessage="Evidence Item reverted to submitted status.",null===(o=this.queryRef)||void 0===o||o.refetch()):(this.errors=t,this.successMessage=void 0)}onModerateCompleted(t){var o;Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Evidence successfully ${t}.`,null===(o=this.queryRef)||void 0===o||o.refetch())}onErrorBannerClose(t){var o;this.errors=null===(o=this.errors)||void 0===o?void 0:o.filter(p=>p!=t)}onSuccessBannerClose(){this.successMessage=void 0}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(_.pHu),e.Y36(b.a),e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["evidence-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],["cvcFlaggable","",3,"flags"],["class","site-page-header",4,"ngrxLet"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:evidence"],[3,"nzColor",4,"ngIf"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning",4,"ngIf"],[3,"tabs"],["tabBarExtraContent",""],["nzDirection","vertical"],[1,"content"],[3,"nzColor"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["rlaComments","routerLinkActive"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","EvidenceItem",3,"viewer","subscribableId",4,"ngIf"],["typename","EvidenceItem",3,"viewer","subscribableId"],["entityType","EvidenceItem",3,"viewer","entityId","onReverted",4,"ngIf"],["entityType","EvidenceItem",3,"viewer","entityId","onReverted"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["id","contributors-col"],[3,"subscribable"],["entityType","EvidenceItem",3,"entityId","viewer","onModerated",4,"ngIf"],["entityType","EvidenceItem",3,"entityId","viewer","onModerated"]],template:function(t,o){1&t&&(e.YNc(0,ve,7,6,"ng-container",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,o.evidence$))},directives:[l.O5,c.I,v.NU,v.$1,y.ZU,d.yS,r.H,s.I,g.o,f.eJ,u.$O,u.u9,E.Y,l.mk,U.w,S.Ls,u.ZJ,T.j,u.Jp,x.ix,R.dQ,d.Od,d.rH,Y.Q,F.e,u.u5,l.sg,O.r,j.P,h.t3,V.N,$.m,d.lC],pipes:[f.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),n})();var ze=a(2278);let fe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,ze.l]]}),n})();var he=a(3801);let ye=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.evidenceId,entityType:_.OfU.EvidenceItem}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,o){1&t&&e._UZ(0,"cvc-comment-list",0),2&t&&e.Q6J("commentable",o.commentable)},directives:[he.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var xe=a(7484),Te=a(6559),Se=a(4271);let Ee=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,h.Jb,xe.vh,v.zf,Te.H0,Se.M]]}),n})();var Ce=a(7036);let Ze=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:_.sfv.EvidenceItem,id:+this.route.snapshot.params.evidenceId}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,o){1&t&&e._UZ(0,"cvc-flag-list-and-filter",0),2&t&&e.Q6J("flaggable",o.flaggable)},directives:[Ce.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ie=a(2914);let be=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,Ie.A]]}),n})();var Ae=a(8291);let Ne=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(o=>{this.eid=+o.evidenceId,this.entityType=_.oRL.EvidenceItem})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,o){1&t&&e._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&e.Q6J("id",o.eid)("entityType",o.entityType)},directives:[Ae.a],styles:[""]}),n})();var A=a(3098),we=a(9444),Pe=a(3384),Me=a(592),De=a(7345),Je=a(5453),ke=a(6286),Qe=a(8018),Le=a(9441),Oe=a(9779),Be=a(897),Ue=a(3580),N=a(8625),Re=a(7026);let Ye=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,d.Bz,f.WG,h.Jb,v.zf,y.ZJ,x.sL,T.X,S.PV,A.q6,we.s,Pe.h,Ue.Q,Me.x,Be.$,De.W,Je.N,Oe.s,ke.y,Qe.e,Le.s,N.$L.forChild({formatter:{useClass:Re.x,provide:N.KP}})]]}),n})();function Fe(n,i){1&n&&e._UZ(0,"i",4)}function je(n,i){1&n&&e._UZ(0,"i",5)}function Ve(n,i){if(1&n&&(e.ynx(0),e.YNc(1,Fe,1,0,"i",2),e.YNc(2,je,1,0,"i",3),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.filledStars),e.xp6(1),e.Q6J("ngForOf",t.emptyStars)}}function $e(n,i){1&n&&e._uU(0," --\n")}let qe=(()=>{class n{constructor(){this.filledStars=[],this.emptyStars=[]}ngOnInit(){this.starRating&&(this.filledStars=Array(this.starRating),this.emptyStars=Array(5-this.starRating))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-rating"]],inputs:{starRating:"starRating"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noStars",""],["nzType","star","nzTheme","fill","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","outline","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","fill","nz-icon",""],["nzType","star","nzTheme","outline","nz-icon",""]],template:function(t,o){if(1&t&&(e.YNc(0,Ve,3,2,"ng-container",0),e.YNc(1,$e,1,0,"ng-template",null,1,e.W1O)),2&t){const p=e.MAs(2);e.Q6J("ngIf",o.starRating)("ngIfElse",p)}},directives:[l.O5,l.sg,S.Ls],styles:[""]}),n})();var We=a(4590),Ge=a(125),He=a(6906),Xe=a(4049),Ke=a(4022),en=a(6715),nn=a(7956),tn=a(7469),an=a(3756),on=a(4110);function sn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",11),e.TgZ(1,"nz-descriptions-item",12),e.TgZ(2,"p",13),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Q6J("nzEllipsisRows",14),e.xp6(1),e.Oqu(t.description)}}function cn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",14),e.TgZ(1,"nz-descriptions-item",15),e._uU(2),e.ALo(3,"evidenceEnumDisplay"),e.qZA(),e.TgZ(4,"nz-descriptions-item",16),e._uU(5),e.ALo(6,"evidenceEnumDisplay"),e.qZA(),e.TgZ(7,"nz-descriptions-item",17),e._uU(8),e.ALo(9,"evidenceEnumDisplay"),e.qZA(),e.TgZ(10,"nz-descriptions-item",18),e._uU(11),e.qZA(),e.TgZ(12,"nz-descriptions-item",19),e._UZ(13,"cvc-evidence-rating",20),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.Q6J("nzColumn",2),e.xp6(2),e.hij(" ",e.lcZ(3,6,t.evidenceType)," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,t.evidenceDirection)," "),e.xp6(3),e.hij(" ",e.lcZ(9,10,t.clinicalSignificance)," "),e.xp6(3),e.hij(" ",t.evidenceLevel," "),e.xp6(2),e.Q6J("starRating",t.evidenceRating)}}function rn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions-item",30),e._uU(1),e.ALo(2,"timeago"),e._UZ(3,"cvc-user-tag",25),e.qZA()),2&n){const t=e.oxw(4).ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,2,t.acceptanceEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.acceptanceEvent.originatingUser)}}function ln(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions-item",31),e._uU(1),e.ALo(2,"timeago"),e._UZ(3,"cvc-user-tag",25),e.qZA()),2&n){const t=e.oxw(4).ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,2,t.rejectionEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.rejectionEvent.originatingUser)}}function pn(n,i){if(1&n&&(e.ynx(0),e.ynx(1,27),e.YNc(2,rn,4,4,"nz-descriptions-item",28),e.YNc(3,ln,4,4,"nz-descriptions-item",29),e.BQk(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngSwitch",null===t.rejectionEvent),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1)}}function dn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",21),e.TgZ(1,"nz-descriptions-item",22),e._UZ(2,"cvc-status-tag",23),e.qZA(),e.TgZ(3,"nz-descriptions-item",24),e._uU(4),e.ALo(5,"timeago"),e._UZ(6,"cvc-user-tag",25),e.qZA(),e.YNc(7,pn,4,3,"ng-container",26),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Q6J("status",t.status),e.xp6(2),e.hij(" ",e.lcZ(5,4,t.submissionEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.submissionEvent.originatingUser),e.xp6(1),e.Q6J("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent)}}function gn(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-clinical-trial-tag",36),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("clinicalTrial",t)}}function _n(n,i){if(1&n&&(e.ynx(0),e.YNc(1,gn,2,1,"ng-container",35),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.source.clinicalTrials)}}function mn(n,i){1&n&&(e.ynx(0),e.TgZ(1,"span",37),e._uU(2,"None Specified"),e.qZA(),e.BQk())}function vn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",14),e.TgZ(1,"nz-descriptions-item",32),e._UZ(2,"cvc-source-tag",33),e.qZA(),e.TgZ(3,"nz-descriptions-item",34),e.YNc(4,_n,2,1,"ng-container",26),e.YNc(5,mn,3,0,"ng-container",26),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("source",t.source),e.xp6(1),e.Q6J("nzTitle",t.source.clinicalTrials.length>1?"Clinical Trials":"Clinical Trial"),e.xp6(1),e.Q6J("ngIf",t.source.clinicalTrials.length>0),e.xp6(1),e.Q6J("ngIf",0===t.source.clinicalTrials.length)}}function un(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"a",43),e._UZ(2,"cvc-disease-tag",44),e.qZA(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.MGl("routerLink","/diseases/",t.disease.id,""),e.xp6(1),e.Q6J("disease",t.disease)}}function zn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"N/A"),e.qZA())}function fn(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-phenotype-tag",45),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("phenotype",t)}}function hn(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,fn,2,1,"ng-container",35),e.qZA(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(2),e.Q6J("ngForOf",t.phenotypes)}}function yn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"None Specified"),e.qZA())}function xn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",38),e.TgZ(1,"nz-descriptions-item",39),e.YNc(2,un,3,2,"ng-container",26),e.YNc(3,zn,2,0,"span",40),e.qZA(),e.TgZ(4,"nz-descriptions-item",34),e.YNc(5,hn,3,1,"ng-container",41),e.YNc(6,yn,2,0,"ng-template",null,42,e.W1O),e.qZA(),e.qZA()),2&n){const t=e.MAs(7),o=e.oxw(2).ngIf;e.Q6J("nzColumn",void 0!==(null==o.disease?null:o.disease.name)&&o.phenotypes.length>0?1:2),e.xp6(2),e.Q6J("ngIf",o.disease),e.xp6(1),e.Q6J("ngIf",!o.disease),e.xp6(1),e.Q6J("nzTitle",o.phenotypes.length>1?"Phenotypes":"Phenotype"),e.xp6(1),e.Q6J("ngIf",o.phenotypes.length>0)("ngIfElse",t)}}function Tn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"N/A"),e.qZA())}function Sn(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-drug-tag",50),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("drug",t)}}function En(n,i){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,Sn,2,1,"ng-container",35),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.drugs)}}function Cn(n,i){1&n&&e._uU(0," Drug ")}function Zn(n,i){1&n&&e._uU(0," Drug ")}function In(n,i){if(1&n&&(e._uU(0),e.ALo(1,"titlecase")),2&n){const t=e.oxw(4).ngIf;e.hij(" Drugs (",e.lcZ(1,1,t.drugInteractionType),") ")}}function bn(n,i){if(1&n&&(e.ynx(0,46),e.YNc(1,Cn,1,0,"ng-template",47),e.YNc(2,Zn,1,0,"ng-template",51),e.YNc(3,In,2,3,"ng-template",48),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.Q6J("ngPlural",t.drugs.length)}}function An(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",11),e.TgZ(1,"nz-descriptions-item",34),e.ynx(2,46),e.YNc(3,Tn,2,0,"ng-template",47),e.YNc(4,En,2,1,"ng-template",48),e.BQk(),e.YNc(5,bn,4,1,"ng-template",null,49,e.W1O),e.qZA(),e.qZA()),2&n){const t=e.MAs(6),o=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTitle",t),e.xp6(1),e.Q6J("ngPlural",o.drugs.length)}}function Nn(n,i){1&n&&(e.TgZ(0,"nz-row",4),e.TgZ(1,"nz-col",5),e.TgZ(2,"nz-space",6),e.YNc(3,sn,4,2,"nz-descriptions",7),e.YNc(4,cn,14,12,"nz-descriptions",8),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",5),e.TgZ(6,"nz-space",6),e.YNc(7,dn,8,6,"nz-descriptions",9),e.YNc(8,vn,6,5,"nz-descriptions",8),e.YNc(9,xn,8,6,"nz-descriptions",10),e.YNc(10,An,7,2,"nz-descriptions",7),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Q6J("nzGutter",16),e.xp6(1),e.Q6J("nzSpan",12),e.xp6(4),e.Q6J("nzSpan",12))}function wn(n,i){if(1&n&&e._UZ(0,"cvc-assertions-table",52),2&n){const t=e.oxw().ngIf;e.MGl("cvcTitle","",t.name," Assertions"),e.Q6J("evidenceId",t.id)}}function Pn(n,i){1&n&&(e.TgZ(0,"nz-space",1),e.YNc(1,Nn,11,3,"nz-row",2),e.YNc(2,wn,1,2,"cvc-assertions-table",3),e.qZA())}let Mn=(()=>{class n{constructor(t,o){var p;if(this.gql=t,this.route=o,null==(p=this.evidenceId?this.evidenceId:+this.route.snapshot.params.evidenceId))throw new Error("Must pass in an evidence ID as an input or via the route.");this.queryRef=this.gql.watch({evidenceId:p});let m=this.queryRef.valueChanges;this.loading$=m.pipe((0,z.j)("loading"),(0,I.O)(!0)),this.evidence$=m.pipe((0,z.j)("data","evidenceItem")),this.subscribable={entityType:_.o71.EvidenceItem,id:p}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(_.sBY),e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-summary"]],inputs:{evidenceId:"evidenceId"},decls:2,vars:3,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],[3,"nzGutter",4,"nzSpaceItem"],[3,"evidenceId","cvcTitle",4,"nzSpaceItem"],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",4,"nzSpaceItem"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true","class","status-tags",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Level"],["nzTitle","Rating"],[3,"starRating"],["nzLayout","horizontal","nzSize","small","nzBordered","true",1,"status-tags"],["nzTitle","Status"],[3,"status"],["nzTitle","Submitted"],[3,"user"],[4,"ngIf"],[3,"ngSwitch"],["nzTitle","Accepted",4,"ngSwitchCase"],["nzTitle","Rejected",4,"ngSwitchCase"],["nzTitle","Accepted"],["nzTitle","Rejected"],["nzTitle","Source","nzSpan","2"],[3,"source"],[3,"nzTitle"],[4,"ngFor","ngForOf"],[3,"clinicalTrial"],["nz-typography","","nzType","secondary"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Disease"],["nz-typography","","nzType","secondary",4,"ngIf"],[4,"ngIf","ngIfElse"],["noPhenotypes",""],[3,"routerLink"],[3,"disease"],[3,"phenotype"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["drugsTitle",""],[3,"drug"],["ngPluralCase","=1"],[3,"evidenceId","cvcTitle"]],template:function(t,o){1&t&&(e.YNc(0,Pn,3,0,"nz-space",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,o.evidence$))},directives:[l.O5,v.NU,v.$1,h.SK,h.t3,A.R7,A.uj,y.ZU,qe,We.h,Ge.I,l.RF,l.n9,He.T,l.sg,Xe.G,d.yS,Ke.n,en.$,nn.i,l.iq,l.zE,tn.u,an.x],pipes:[f.fM,on.D,N.wr,l.rS],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}.status-tags[_ngcontent-%COMP%] nz-tag{margin-right:0}.status-tags[_ngcontent-%COMP%] .ant-descriptions-item-label{white-space:nowrap}"]}),n})();var Dn=a(2011);let Jn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.evidenceId,entityType:_.o71.EvidenceItem}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,o){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("subscribable",o.subscribable)},directives:[Dn.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var kn=a(4292);let Qn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,kn.t]]}),n})();const Ln=[{path:"",component:ue,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Mn,data:{breadcrumb:"Summary"}},{path:"comments",component:ye,data:{breadcrumb:"Comments"}},{path:"revisions",component:Ne,data:{breadcrumb:"Revisions"}},{path:"flags",component:Ze,data:{breadcrumb:"Flags"}},{path:"events",component:Jn,data:{breadcrumb:"Events"}}]}];let On=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.Bz.forChild(Ln),Ye,fe,be,Ee,Qn],d.Bz]}),n})();var Bn=a(4609),Un=a(694),Rn=a(8766),Yn=a(8762),Fn=a(5750);let jn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,On,d.Bz,f.WG,v.zf,y.ZJ,u.KJ,x.sL,T.X,S.PV,O.L,h.Jb,Z.D,M.U,D.m,J.Q,Bn.g,Un.G,Rn.P,Yn.c,Fn.Z]]}),n})()},6559:(B,C,a)=>{a.d(C,{H0:()=>b});var l=a(5e3),f=a(9808),Z=a(226);let b=(()=>{class c{}return c.\u0275fac=function(s){return new(s||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[Z.vT,f.ez]]}),c})()}}]); \ No newline at end of file diff --git a/server/public/assets/.sprockets-manifest-0b0c8677246b646bb0889aeddbe910a3.json b/server/public/assets/.sprockets-manifest-8354fbb7c7cf2522fbdf49603160eca2.json similarity index 83% rename from server/public/assets/.sprockets-manifest-0b0c8677246b646bb0889aeddbe910a3.json rename to server/public/assets/.sprockets-manifest-8354fbb7c7cf2522fbdf49603160eca2.json index aaba5d4ef..5e61132bf 100644 --- a/server/public/assets/.sprockets-manifest-0b0c8677246b646bb0889aeddbe910a3.json +++ b/server/public/assets/.sprockets-manifest-8354fbb7c7cf2522fbdf49603160eca2.json @@ -1 +1 @@ -{"files":{"trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css":{"logical_path":"trestle/admin.css","mtime":"2022-04-09T15:20:13+00:00","size":325032,"digest":"9ea0ca00cd399964bc65f3868ac8949a16a6f9c1f423043202afc29085bc47c9","integrity":"sha256-nqDKAM05mWS8ZfOGisiUmham+cH0IwQyAq/CkIW8R8k="},"trestle/fa-regular-400-9c3b0d7842673b6863e8200b9a6790f5156015904c2e55d0a76eadeb1ad4f519.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2022-04-09T15:20:13+00:00","size":34350,"digest":"d7858047be52401462cf08a32a73fb8edc2f0824fab4bc3c928f97d5c1301550","integrity":"sha256-14WAR75SQBRizwijKnP7jtwvCCT6tLw8ko+X1cEwFVA="},"trestle/fa-regular-400-8bf7666bc5c4ed2d1549f41ed3960ee344a9da4ec470032baa2f082504fa2468.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2022-04-09T15:20:13+00:00","size":13588,"digest":"b3b8c21edfe6c5e402fdc607366fd8d15949a65914f58134733dc68922bc8d61","integrity":"sha256-s7jCHt/mxeQC/cYHNm/Y0VlJplkU9YE0cz3GiSK8jWE="},"trestle/fa-regular-400-057c0082f82431e4aedc10c25634b441374d11ffdbbc82246f404774c38376ba.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2022-04-09T15:20:13+00:00","size":16776,"digest":"59c188c0320df9e338aaf70ccba3ad4eae5714ff6a4a5b323fcad2937de164df","integrity":"sha256-WcGIwDIN+eM4qvcMy6OtTq5XFP9qSlsyP8rSk33hZN8="},"trestle/fa-regular-400-8e2aec2ce2fb87c2b7a12a94f02788f4da228f1906de09c095bf39735b77c989.ttf":{"logical_path":"trestle/fa-regular-400.ttf","mtime":"2022-04-09T15:20:13+00:00","size":34052,"digest":"96353a91851616607cf2e7f9f61519675d16119dd43b4d51be4930b28da20330","integrity":"sha256-ljU6kYUWFmB88uf59hUZZ10WEZ3UO01Rvkkwso2iAzA="},"trestle/fa-regular-400-0a73a2a6067e6f740b012ae8e43e742356f7b5da951980969a599e81f99a2a93.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2022-04-09T15:20:13+00:00","size":144714,"digest":"165101542d8b8339e451556c199d517cdc88833537fd1efecce7f5469bce3fe6","integrity":"sha256-FlEBVC2LgznkUVVsGZ1RfNyIgzU3/R7+zOf1RpvOP+Y="},"trestle/fa-solid-900-7911caac9acd6d976fa6726626ffc161c2c575664a13ef43d2cae15ee7d92221.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2022-04-09T15:20:13+00:00","size":204814,"digest":"7fa0a8d2ff9cf56367af3da926117e8c649d741ec2601ce016298984771a954c","integrity":"sha256-f6Co0v+c9WNnrz2pJhF+jGSddB7CYBzgFimJhHcalUw="},"trestle/fa-solid-900-8db4e70b05ee471ba02b2819249cb424eba5e7bd8b192b81c0bdc61a95e726bd.woff2":{"logical_path":"trestle/fa-solid-900.woff2","mtime":"2022-04-09T15:20:13+00:00","size":80252,"digest":"6c916669cf923b4f1b2db5c5107c83b6ca205e7ad0dcd840b251e63f0c8d28a2","integrity":"sha256-bJFmac+SO08bLbXFEHyDtsogXnrQ3NhAslHmPwyNKKI="},"trestle/fa-solid-900-0a59e8ea35b5acca3176699da5a8b9af85681a8afdd5e07b7adce32901733184.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2022-04-09T15:20:13+00:00","size":104280,"digest":"54b246419327b460f37af4f2dfaa4ac9cb901f62ea517ab95c06ae8605cf51e6","integrity":"sha256-VLJGQZMntGDzevTy36pKycuQH2LqUXq5XAauhgXPUeY="},"trestle/fa-solid-900-f5ac49b1523ec7ffe58ab6cf0efa50495c34782e75988e02e1b0f971b4d0bfdf.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2022-04-09T15:20:13+00:00","size":204528,"digest":"83027b10416216a20a0d7522c1e367a16948f450c0ac6b4c0d5af7b05ab9f207","integrity":"sha256-gwJ7EEFiFqIKDXUiweNnoWlI9FDArGtMDVr3sFq58gc="},"trestle/fa-solid-900-cc705c0da5bca6335d9c2e52de7c358870cb59968ec411d70f060d6bc684f721.svg":{"logical_path":"trestle/fa-solid-900.svg","mtime":"2022-04-09T15:20:13+00:00","size":917575,"digest":"a27b561face9f54ee9cb8db85baf678e307c1be3e6774fca606e97d316a0d040","integrity":"sha256-ontWH6zp9U7py424W69njjB8G+Pmd0/KYG6X0xag0EA="},"trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2022-04-09T15:20:13+00:00","size":136822,"digest":"9860d6f05386a150d5356afc249a4a67f5161372fee2c80c9b81eddd13259706","integrity":"sha256-mGDW8FOGoVDVNWr8JJpKZ/UWE3L+4sgMm4Ht3RMllwY="},"trestle/fa-brands-400-2279774165b8ac5d3a6e7b3157e6529c5c6d763c258b254dd3b7daa35b8f15b1.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2022-04-09T15:20:13+00:00","size":78472,"digest":"529d0a7b3944929222155bca3272ba1a87acc2faa09b2ed26a713872b7ff8794","integrity":"sha256-Up0KezlEkpIiFVvKMnK6Goeswvqgmy7SanE4crf/h5Q="},"trestle/fa-brands-400-dd64cb64f2ec1ed47c9c8087ee8111b5adb88d486477f4dd58a6c305af95aa2b.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2022-04-09T15:20:13+00:00","size":92136,"digest":"8d79ac2164bf3d60583e0c44707f79d73f8de3b55e365f9839c91ccb6b4e5e0f","integrity":"sha256-jXmsIWS/PWBYPgxEcH951z+N47VeNl+YOckcy2tOXg8="},"trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2022-04-09T15:20:13+00:00","size":136516,"digest":"dee03b559ef15082f4864001d7ecc562b2ff4dd2c1a761047c8fd52919a9ee04","integrity":"sha256-3uA7VZ7xUIL0hkAB1+zFYrL/TdLBp2EEfI/VKRmp7gQ="},"trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg":{"logical_path":"trestle/fa-brands-400.svg","mtime":"2022-04-09T15:20:13+00:00","size":747545,"digest":"8594ac7ea23505e2c5096659c6f642c610d2ef126d8ba718c42067ccc6338c32","integrity":"sha256-hZSsfqI1BeLFCWZZxvZCxhDS7xJti6cYxCBnzMYzjDI="},"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js":{"logical_path":"trestle/admin.js","mtime":"2022-04-09T15:20:13+00:00","size":391334,"digest":"74a613c3a1dcc91bf57578762da604c78518fcd895484cfe783f77d90ef2f940","integrity":"sha256-dKYTw6HcyRv1dXh2LaYEx4UY/NiVSEz+eD932Q7y+UA="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2022-04-09T15:20:13+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2022-04-09T15:20:13+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2022-04-09T15:20:13+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2022-04-09T15:20:13+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2022-04-09T15:20:13+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2022-04-09T15:20:13+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css":{"logical_path":"trestle/theme.css","mtime":"2022-04-09T15:20:13+00:00","size":18638,"digest":"c3ef17df680003ea4f56615a8e3cf3b4e121104811243e3c5c1046f5463fc80b","integrity":"sha256-w+8X32gAA+pPVmFajjzztOEhEEgRJD48XBBG9UY/yAs="}},"assets":{"trestle/admin.css":"trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css","trestle/fa-regular-400.eot":"trestle/fa-regular-400-9c3b0d7842673b6863e8200b9a6790f5156015904c2e55d0a76eadeb1ad4f519.eot","trestle/fa-regular-400.woff2":"trestle/fa-regular-400-8bf7666bc5c4ed2d1549f41ed3960ee344a9da4ec470032baa2f082504fa2468.woff2","trestle/fa-regular-400.woff":"trestle/fa-regular-400-057c0082f82431e4aedc10c25634b441374d11ffdbbc82246f404774c38376ba.woff","trestle/fa-regular-400.ttf":"trestle/fa-regular-400-8e2aec2ce2fb87c2b7a12a94f02788f4da228f1906de09c095bf39735b77c989.ttf","trestle/fa-regular-400.svg":"trestle/fa-regular-400-0a73a2a6067e6f740b012ae8e43e742356f7b5da951980969a599e81f99a2a93.svg","trestle/fa-solid-900.eot":"trestle/fa-solid-900-7911caac9acd6d976fa6726626ffc161c2c575664a13ef43d2cae15ee7d92221.eot","trestle/fa-solid-900.woff2":"trestle/fa-solid-900-8db4e70b05ee471ba02b2819249cb424eba5e7bd8b192b81c0bdc61a95e726bd.woff2","trestle/fa-solid-900.woff":"trestle/fa-solid-900-0a59e8ea35b5acca3176699da5a8b9af85681a8afdd5e07b7adce32901733184.woff","trestle/fa-solid-900.ttf":"trestle/fa-solid-900-f5ac49b1523ec7ffe58ab6cf0efa50495c34782e75988e02e1b0f971b4d0bfdf.ttf","trestle/fa-solid-900.svg":"trestle/fa-solid-900-cc705c0da5bca6335d9c2e52de7c358870cb59968ec411d70f060d6bc684f721.svg","trestle/fa-brands-400.eot":"trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot","trestle/fa-brands-400.woff2":"trestle/fa-brands-400-2279774165b8ac5d3a6e7b3157e6529c5c6d763c258b254dd3b7daa35b8f15b1.woff2","trestle/fa-brands-400.woff":"trestle/fa-brands-400-dd64cb64f2ec1ed47c9c8087ee8111b5adb88d486477f4dd58a6c305af95aa2b.woff","trestle/fa-brands-400.ttf":"trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf","trestle/fa-brands-400.svg":"trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg","trestle/admin.js":"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js","trestle/custom.css":"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css","trestle/search.css":"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css","manifest.js":"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js","application.css":"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css","graphiql/rails/application.css":"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css","graphiql/rails/application.js":"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js","trestle/theme.css":"trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css"}} \ No newline at end of file +{"files":{"trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css":{"logical_path":"trestle/admin.css","mtime":"2022-04-12T21:20:56+00:00","size":325032,"digest":"9ea0ca00cd399964bc65f3868ac8949a16a6f9c1f423043202afc29085bc47c9","integrity":"sha256-nqDKAM05mWS8ZfOGisiUmham+cH0IwQyAq/CkIW8R8k="},"trestle/fa-regular-400-9c3b0d7842673b6863e8200b9a6790f5156015904c2e55d0a76eadeb1ad4f519.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2022-04-12T21:20:56+00:00","size":34350,"digest":"d7858047be52401462cf08a32a73fb8edc2f0824fab4bc3c928f97d5c1301550","integrity":"sha256-14WAR75SQBRizwijKnP7jtwvCCT6tLw8ko+X1cEwFVA="},"trestle/fa-regular-400-8bf7666bc5c4ed2d1549f41ed3960ee344a9da4ec470032baa2f082504fa2468.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2022-04-12T21:20:56+00:00","size":13588,"digest":"b3b8c21edfe6c5e402fdc607366fd8d15949a65914f58134733dc68922bc8d61","integrity":"sha256-s7jCHt/mxeQC/cYHNm/Y0VlJplkU9YE0cz3GiSK8jWE="},"trestle/fa-regular-400-057c0082f82431e4aedc10c25634b441374d11ffdbbc82246f404774c38376ba.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2022-04-12T21:20:56+00:00","size":16776,"digest":"59c188c0320df9e338aaf70ccba3ad4eae5714ff6a4a5b323fcad2937de164df","integrity":"sha256-WcGIwDIN+eM4qvcMy6OtTq5XFP9qSlsyP8rSk33hZN8="},"trestle/fa-regular-400-8e2aec2ce2fb87c2b7a12a94f02788f4da228f1906de09c095bf39735b77c989.ttf":{"logical_path":"trestle/fa-regular-400.ttf","mtime":"2022-04-12T21:20:56+00:00","size":34052,"digest":"96353a91851616607cf2e7f9f61519675d16119dd43b4d51be4930b28da20330","integrity":"sha256-ljU6kYUWFmB88uf59hUZZ10WEZ3UO01Rvkkwso2iAzA="},"trestle/fa-regular-400-0a73a2a6067e6f740b012ae8e43e742356f7b5da951980969a599e81f99a2a93.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2022-04-12T21:20:56+00:00","size":144714,"digest":"165101542d8b8339e451556c199d517cdc88833537fd1efecce7f5469bce3fe6","integrity":"sha256-FlEBVC2LgznkUVVsGZ1RfNyIgzU3/R7+zOf1RpvOP+Y="},"trestle/fa-solid-900-7911caac9acd6d976fa6726626ffc161c2c575664a13ef43d2cae15ee7d92221.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2022-04-12T21:20:56+00:00","size":204814,"digest":"7fa0a8d2ff9cf56367af3da926117e8c649d741ec2601ce016298984771a954c","integrity":"sha256-f6Co0v+c9WNnrz2pJhF+jGSddB7CYBzgFimJhHcalUw="},"trestle/fa-solid-900-8db4e70b05ee471ba02b2819249cb424eba5e7bd8b192b81c0bdc61a95e726bd.woff2":{"logical_path":"trestle/fa-solid-900.woff2","mtime":"2022-04-12T21:20:56+00:00","size":80252,"digest":"6c916669cf923b4f1b2db5c5107c83b6ca205e7ad0dcd840b251e63f0c8d28a2","integrity":"sha256-bJFmac+SO08bLbXFEHyDtsogXnrQ3NhAslHmPwyNKKI="},"trestle/fa-solid-900-0a59e8ea35b5acca3176699da5a8b9af85681a8afdd5e07b7adce32901733184.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2022-04-12T21:20:56+00:00","size":104280,"digest":"54b246419327b460f37af4f2dfaa4ac9cb901f62ea517ab95c06ae8605cf51e6","integrity":"sha256-VLJGQZMntGDzevTy36pKycuQH2LqUXq5XAauhgXPUeY="},"trestle/fa-solid-900-f5ac49b1523ec7ffe58ab6cf0efa50495c34782e75988e02e1b0f971b4d0bfdf.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2022-04-12T21:20:56+00:00","size":204528,"digest":"83027b10416216a20a0d7522c1e367a16948f450c0ac6b4c0d5af7b05ab9f207","integrity":"sha256-gwJ7EEFiFqIKDXUiweNnoWlI9FDArGtMDVr3sFq58gc="},"trestle/fa-solid-900-cc705c0da5bca6335d9c2e52de7c358870cb59968ec411d70f060d6bc684f721.svg":{"logical_path":"trestle/fa-solid-900.svg","mtime":"2022-04-12T21:20:56+00:00","size":917575,"digest":"a27b561face9f54ee9cb8db85baf678e307c1be3e6774fca606e97d316a0d040","integrity":"sha256-ontWH6zp9U7py424W69njjB8G+Pmd0/KYG6X0xag0EA="},"trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2022-04-12T21:20:56+00:00","size":136822,"digest":"9860d6f05386a150d5356afc249a4a67f5161372fee2c80c9b81eddd13259706","integrity":"sha256-mGDW8FOGoVDVNWr8JJpKZ/UWE3L+4sgMm4Ht3RMllwY="},"trestle/fa-brands-400-2279774165b8ac5d3a6e7b3157e6529c5c6d763c258b254dd3b7daa35b8f15b1.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2022-04-12T21:20:56+00:00","size":78472,"digest":"529d0a7b3944929222155bca3272ba1a87acc2faa09b2ed26a713872b7ff8794","integrity":"sha256-Up0KezlEkpIiFVvKMnK6Goeswvqgmy7SanE4crf/h5Q="},"trestle/fa-brands-400-dd64cb64f2ec1ed47c9c8087ee8111b5adb88d486477f4dd58a6c305af95aa2b.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2022-04-12T21:20:56+00:00","size":92136,"digest":"8d79ac2164bf3d60583e0c44707f79d73f8de3b55e365f9839c91ccb6b4e5e0f","integrity":"sha256-jXmsIWS/PWBYPgxEcH951z+N47VeNl+YOckcy2tOXg8="},"trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2022-04-12T21:20:56+00:00","size":136516,"digest":"dee03b559ef15082f4864001d7ecc562b2ff4dd2c1a761047c8fd52919a9ee04","integrity":"sha256-3uA7VZ7xUIL0hkAB1+zFYrL/TdLBp2EEfI/VKRmp7gQ="},"trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg":{"logical_path":"trestle/fa-brands-400.svg","mtime":"2022-04-12T21:20:56+00:00","size":747545,"digest":"8594ac7ea23505e2c5096659c6f642c610d2ef126d8ba718c42067ccc6338c32","integrity":"sha256-hZSsfqI1BeLFCWZZxvZCxhDS7xJti6cYxCBnzMYzjDI="},"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js":{"logical_path":"trestle/admin.js","mtime":"2022-04-12T21:20:56+00:00","size":391334,"digest":"74a613c3a1dcc91bf57578762da604c78518fcd895484cfe783f77d90ef2f940","integrity":"sha256-dKYTw6HcyRv1dXh2LaYEx4UY/NiVSEz+eD932Q7y+UA="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2022-04-12T21:20:56+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2022-04-12T21:20:56+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2022-04-12T21:20:56+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2022-04-12T21:20:56+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2022-04-12T21:20:56+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2022-04-12T21:20:56+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css":{"logical_path":"trestle/theme.css","mtime":"2022-04-12T21:20:56+00:00","size":18638,"digest":"c3ef17df680003ea4f56615a8e3cf3b4e121104811243e3c5c1046f5463fc80b","integrity":"sha256-w+8X32gAA+pPVmFajjzztOEhEEgRJD48XBBG9UY/yAs="}},"assets":{"trestle/admin.css":"trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css","trestle/fa-regular-400.eot":"trestle/fa-regular-400-9c3b0d7842673b6863e8200b9a6790f5156015904c2e55d0a76eadeb1ad4f519.eot","trestle/fa-regular-400.woff2":"trestle/fa-regular-400-8bf7666bc5c4ed2d1549f41ed3960ee344a9da4ec470032baa2f082504fa2468.woff2","trestle/fa-regular-400.woff":"trestle/fa-regular-400-057c0082f82431e4aedc10c25634b441374d11ffdbbc82246f404774c38376ba.woff","trestle/fa-regular-400.ttf":"trestle/fa-regular-400-8e2aec2ce2fb87c2b7a12a94f02788f4da228f1906de09c095bf39735b77c989.ttf","trestle/fa-regular-400.svg":"trestle/fa-regular-400-0a73a2a6067e6f740b012ae8e43e742356f7b5da951980969a599e81f99a2a93.svg","trestle/fa-solid-900.eot":"trestle/fa-solid-900-7911caac9acd6d976fa6726626ffc161c2c575664a13ef43d2cae15ee7d92221.eot","trestle/fa-solid-900.woff2":"trestle/fa-solid-900-8db4e70b05ee471ba02b2819249cb424eba5e7bd8b192b81c0bdc61a95e726bd.woff2","trestle/fa-solid-900.woff":"trestle/fa-solid-900-0a59e8ea35b5acca3176699da5a8b9af85681a8afdd5e07b7adce32901733184.woff","trestle/fa-solid-900.ttf":"trestle/fa-solid-900-f5ac49b1523ec7ffe58ab6cf0efa50495c34782e75988e02e1b0f971b4d0bfdf.ttf","trestle/fa-solid-900.svg":"trestle/fa-solid-900-cc705c0da5bca6335d9c2e52de7c358870cb59968ec411d70f060d6bc684f721.svg","trestle/fa-brands-400.eot":"trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot","trestle/fa-brands-400.woff2":"trestle/fa-brands-400-2279774165b8ac5d3a6e7b3157e6529c5c6d763c258b254dd3b7daa35b8f15b1.woff2","trestle/fa-brands-400.woff":"trestle/fa-brands-400-dd64cb64f2ec1ed47c9c8087ee8111b5adb88d486477f4dd58a6c305af95aa2b.woff","trestle/fa-brands-400.ttf":"trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf","trestle/fa-brands-400.svg":"trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg","trestle/admin.js":"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js","trestle/custom.css":"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css","trestle/search.css":"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css","manifest.js":"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js","application.css":"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css","graphiql/rails/application.css":"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css","graphiql/rails/application.js":"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js","trestle/theme.css":"trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css"}} \ No newline at end of file diff --git a/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz b/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz index 02661a318397ae86e00eeef5b6a7e367d97c574b..8d4e50e49883975fb95cd97ca732f81ce7b037c1 100644 GIT binary patch delta 16 XcmZo+ZeeDZ@8)2zcpJKry_OLGBhCbP delta 16 XcmZo+ZeeDZ@8)38T@tvFy_OLGA-4n| diff --git a/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz b/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz index 0476f92e6ae85a6114ee5925db4a3d77dc9a39c7..fa52d23128f0b92bdc3f6448bd9cf26f1eefa695 100644 GIT binary patch delta 16 Xcmca)bIFEXzMF%=;%(?gc5gWVGUo+x delta 16 Xcmca)bIFEXzMF$VcS+zzc5gWVFwg}V diff --git a/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz b/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz index 518bbc575e96de6fea58f59d82625d0d47d5ee72..6248a06594194f96720695e710555b4097fed530 100644 GIT binary patch delta 75 zcmWN_IRS$}002S0usk7r0g!JVQJK%U&hl|GFWmWRgoE ZFDd28N@{7OmA7>AkzNKFWxAMu#|{4~5-|V( delta 75 zcmWN_NfCoU002R*FdQLV0#FbQaj;cL;xR7}fPh%Q!s>#4c05Bo1Iu0|-~YNHsbrE% aAulQA$x3Qzq?NaH@{wK!8D+Ydf5#2!dlA_H diff --git a/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz b/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz index 07128574f3a9ca03b6942cd79a4de28af6c106d2..d47b68fde06e283b4f476d76bc0bf76e9d898a97 100644 GIT binary patch literal 24 fcmb2|=3uaR8=Az#{P@wMM@$S>yF(&b7#J7;Y2^pS literal 24 fcmb2|=3vlW5}3rq{P@wMM@$S>yF(&b7#J7;V^#-k diff --git a/server/public/assets/trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js.gz b/server/public/assets/trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js.gz index f0998ff8f448ed55518342864b9640617ba90c2a..820c6925fb38baa676449969ecac4350d8b5de46 100644 GIT binary patch delta 21 dcmbRDjcwjHHg@@L4hD<2p^fZY*%`%m0{~lq2Y&zn delta 21 dcmbRDjcwjHHg@@L4hG#NfsO22*%`%m0{~cI2PXgk diff --git a/server/public/assets/trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css.gz b/server/public/assets/trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css.gz index 0d3bc1f968e8e455d73bca0985759fb6be00bdbb..66f411e2bfe7ec190247683eac4315e1abdd4290 100644 GIT binary patch delta 18 acmeymi}~v=W_I~*4hD<2p&Qxr?g9WyGzXgi delta 18 acmeymi}~v=W_I~*4hG#Nfg9QL?g9Ww9S1`I diff --git a/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz b/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz index be23763c7c51f1603a121ac46652cb863d93068c..de177fd028617c8e50cfecb67b7aa0c03ac16e3b 100644 GIT binary patch literal 20 Ucmb2|=3uaR8=Az#%*+4-04TcxmjD0& literal 20 Ucmb2|=3vlW5}3rq%*+4-03(b7KL7v# diff --git a/server/public/assets/trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg.gz b/server/public/assets/trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg.gz index 5fa019b027678f78759d77fb15b9a9ccb4b17944..33c2166eb3934fc3a804bde727f7977dd4cb6f45 100644 GIT binary patch delta 27 jcmexxg#W`4es=k84hD<2p^faV?2N7KOk3HRGamr}lE(>W delta 27 jcmexxg#W`4es=k84hG#NfsO2~?2N7KOk3HRGamr}jhG1! diff --git a/server/public/assets/trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf.gz b/server/public/assets/trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf.gz index 82aac13b3a92584b5eac6c3acffa58ebeb50aad5..b7a04065144b25510e3e62efa7584fd4e807e23f 100644 GIT binary patch delta 21 dcmex$nf2FYR(APr4hD<2p^fZY*%?1)0sv*W2zdYi delta 21 dcmex$nf2FYR(APr4hG#NfsO22*%?1)0svx}2q6Ff diff --git a/server/public/assets/trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot.gz b/server/public/assets/trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot.gz index f4c8343acc08f7c203fadc93af4371b86b07722a..a2e1d3414163226a920ae72b86690e0b25882e11 100644 GIT binary patch delta 21 ccmex{r.d(d,{h:()=>f});var t=r(9808),s=r(647),l=r(5e3);let f=(()=>{class c{}return c.\u0275fac=function(e){return new(e||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[t.ez,s.PV]]}),c})()},6064:(_,d,r)=>{r.d(d,{_:()=>l});var t=r(712),s=r(7905);class l extends s.nT{constructor(){super(s.yQ.EVIDENCE),this.validStates.set(t.kqt.Predictive,{entityType:t.kqt.Predictive,clinicalSignificance:[t._Aq.Sensitivityresponse,t._Aq.Resistance,t._Aq.AdverseResponse,t._Aq.ReducedSensitivity,t._Aq.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Diagnostic,{entityType:t.kqt.Diagnostic,clinicalSignificance:[t._Aq.Positive,t._Aq.Negative],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Prognostic,{entityType:t.kqt.Prognostic,clinicalSignificance:[t._Aq.BetterOutcome,t._Aq.PoorOutcome,t._Aq.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Oncogenic,{entityType:t.kqt.Oncogenic,clinicalSignificance:[t._Aq.Na],entityDirection:[t.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Predisposing,{entityType:t.kqt.Predisposing,clinicalSignificance:[t._Aq.Na],entityDirection:[t.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Functional,{entityType:t.kqt.Functional,clinicalSignificance:[t._Aq.GainOfFunction,t._Aq.LossOfFunction,t._Aq.UnalteredFunction,t._Aq.Neomorphic,t._Aq.DominantNegative,t._Aq.Unknown],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!1,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},1605:(_,d,r)=>{r.d(d,{e:()=>ee});var t=r(9808),s=r(4182),l=r(8776),f=r(3793),c=r(304),p=r(8054),e=r(5e3),v=r(1894),g=r(4546);let T=(()=>{class n{constructor(){console.log("FormCardDirective constructed.")}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275dir=e.lG2({type:n,selectors:[["",8,"cvc-form-card-control"]]}),n})();var y=r(7484),h=r(404);function u(n,i){1&n&&e._UZ(0,"i",7)}function A(n,i){if(1&n&&(e.TgZ(0,"nz-form-label",5),e._uU(1),e.YNc(2,u,1,0,"i",6),e.qZA()),2&n){const o=e.oxw();e.Q6J("nzRequired",o.to.required&&!0!==o.to.hideRequiredMarker)("nzFor",o.id),e.xp6(1),e.hij(" ",o.to.label," "),e.xp6(1),e.Q6J("ngIf",o.to.helpText)}}function z(n,i){if(1&n&&e._UZ(0,"formly-validation-message",9),2&n){const o=e.oxw(2);e.Q6J("field",o.field)}}function F(n,i){if(1&n&&e.YNc(0,z,1,1,"formly-validation-message",8),2&n){const o=e.oxw();e.Q6J("ngIf",o.showError)}}let O=(()=>{class n extends l.n2{constructor(){super()}get errorState(){return console.log(`form-card.wrapper showError: ${this.showError}`),this.showError?"error":""}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["form-card-wrapper"]],features:[e.qOj],decls:9,vars:4,consts:[[1,"cvc-form-card-control",3,"nzValidateStatus","nzErrorTip"],["nzSize","small","nzType","inner",3,"nzTitle","nzExtra"],["fieldComponent",""],["cardTitle",""],["cardExtra",""],[3,"nzRequired","nzFor"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText",4,"ngIf"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText"],[3,"field",4,"ngIf"],[3,"field"]],template:function(o,a){if(1&o&&(e.TgZ(0,"nz-form-item"),e.TgZ(1,"nz-form-control",0),e.TgZ(2,"nz-card",1),e.GkF(3,null,2),e.qZA(),e.YNc(5,A,3,4,"ng-template",null,3,e.W1O),e.YNc(7,F,1,1,"ng-template",null,4,e.W1O),e.qZA(),e.qZA()),2&o){const m=e.MAs(6),C=e.MAs(8);e.xp6(1),e.Q6J("nzValidateStatus",a.errorState)("nzErrorTip",C),e.xp6(1),e.Q6J("nzTitle",m)("nzExtra",C)}},directives:[v.SK,g.Nx,v.t3,g.Fd,T,y.bd,g.iK,t.O5,h.SY,l.u_],styles:["[_nghost-%COMP%]{display:block}.ant-form-item-label[_ngcontent-%COMP%]{padding:0}"],changeDetection:0}),n})();var q=r(647),D=r(5109);const M={wrappers:[{name:"form-card",component:O}]};let E=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[t.ez,s.UX,g.U5,y.vh,q.PV,h.cg,l.X0.forChild(M),D.s]]}),n})();var N=r(8929),G=r(7625),L=r(373),J=r(4850),P=r(712),S=r(6949),x=r(8144),I=r(3618),U=r(3193),Q=r(8926);function V(n,i){if(1&n&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&n){const o=e.oxw().$implicit,a=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.label,a.to.searchString),e.oJD)}}function Z(n,i){if(1&n&&(e._UZ(0,"span",12),e.ALo(1,"highlightTypeahead")),2&n){const o=e.oxw(2).$implicit,a=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.gene.geneAliases.join(", "),a.to.searchString),e.oJD)}}function R(n,i){1&n&&(e.ynx(0),e.YNc(1,Z,2,4,"span",11),e.BQk())}function W(n,i){if(1&n&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,V,2,4,"span",8),e.YNc(3,R,2,0,"ng-container",9),e.qZA(),e.qZA()),2&n){const o=i.$implicit;e.Q6J("nzLabel",o.tooltip)("nzValue",o.gene),e.xp6(3),e.Q6J("ngIf",o.gene.geneAliases.length>0)}}function $(n,i){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"json"),e.YNc(3,W,4,3,"nz-option",6),e.BQk()),2&n){const o=i.ngrxLet;e.xp6(1),e.hij(" ",e.lcZ(2,2,o)," "),e.xp6(2),e.Q6J("ngForOf",o)}}function j(n,i){1&n&&e._uU(0," No gene found in CIViC that matches the string provided. ")}function B(n,i){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",2,3),e.NdJ("nzOnSearch",function(m){return e.CHM(o),e.oxw().to.onSearch(m)}),e.YNc(3,$,4,4,"ng-container",4),e.qZA(),e.YNc(4,j,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&n){const o=e.MAs(5),a=e.oxw();e.xp6(1),e.Q6J("formControl",a.formControl)("formlyAttributes",a.field)("nzPlaceHolder",a.to.placeholder?a.to.placeholder:null)("nzNotFoundContent",o)("nzShowArrow",a.to.showArrow)("nzFilterOption",a.to.filterOption),e.xp6(2),e.Q6J("ngrxLet",a.genes$)}}function Y(n,i){if(1&n&&e._UZ(0,"cvc-gene-tag",13),2&n){const o=e.oxw();e.Q6J("gene",o.formControl.value)}}const w={name:"cvc-gene-input",component:(()=>{class n extends l.fS{constructor(o){super(),this.geneTypeaheadQuery=o,this.defaultOptions={templateOptions:{placeholder:"Search Genes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}},this.destroy$=new N.xQ}ngOnInit(){this.queryRef=this.geneTypeaheadQuery.watch({entrezSymbol:""}),this.genes$=this.queryRef.valueChanges.pipe((0,G.R)(this.destroy$),(0,L.j)("data","geneTypeahead"),(0,J.U)(o=>o.map(a=>{let m=a.geneAliases.length>0?`Aliases: ${a.geneAliases.join(", ")}`:"";return{value:a.id,tooltip:`${a.name} (${a.entrezId}) ${m}`,label:`${a.name} (${a.entrezId})`,gene:a}})))}ngAfterViewInit(){this.to.onSearch=o=>{o.length{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[t.ez,s.UX,S.WG,l.X0.forChild({types:[w]}),p.LV,x.zf,I.ZJ,H.U,X.s]]}),n})();var k=r(8390);const b={name:"gene-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Gene",helpText:"Entrez Gene name (e.g. BRAF). Gene name must be known to the Entrez database.",required:!1,addText:"Specify a Gene"},fieldArray:{type:"cvc-gene-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Gene be specified."}}}};let ee=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[t.ez,s.u5,s.UX,p.LV,c.F,f.F,l.X0.forChild({types:[b]}),K,k.N,E]]}),n})()},1270:(_,d,r)=>{r.d(d,{i:()=>h});var t=r(9808),s=r(4182),l=r(8776),f=r(3793),c=r(304),p=r(8054),e=r(3773),v=r(8390);const T={name:"source-array",extends:"multi-field",defaultOptions:{templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",required:!1,addText:"Specify a Source"},fieldArray:{type:"source-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"A Source is required."}}}};var y=r(5e3);let h=(()=>{class u{}return u.\u0275fac=function(z){return new(z||u)},u.\u0275mod=y.oAB({type:u}),u.\u0275inj=y.cJS({imports:[[t.ez,s.u5,s.UX,p.LV,c.F,f.F,l.X0.forChild({types:[T]}),e.g,v.N]]}),u})()}}]); \ No newline at end of file diff --git a/server/public/common.acceea69d48490b4.js b/server/public/common.acceea69d48490b4.js deleted file mode 100644 index 1af54ea35..000000000 --- a/server/public/common.acceea69d48490b4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8592],{3384:(v,p,r)=>{r.d(p,{h:()=>f});var n=r(9808),l=r(647),s=r(5e3);let f=(()=>{class c{}return c.\u0275fac=function(e){return new(e||c)},c.\u0275mod=s.oAB({type:c}),c.\u0275inj=s.cJS({imports:[[n.ez,l.PV]]}),c})()},5284:(v,p,r)=>{function n(l){return l.toLowerCase().split("_").map(s=>s[0].toUpperCase()+s.substring(1)).join("")}r.d(p,{e:()=>n})},6064:(v,p,r)=>{r.d(p,{_:()=>s});var n=r(712),l=r(7905);class s extends l.nT{constructor(){super(l.yQ.EVIDENCE),this.validStates.set(n.kqt.Predictive,{entityType:n.kqt.Predictive,clinicalSignificance:[n._Aq.Sensitivityresponse,n._Aq.Resistance,n._Aq.AdverseResponse,n._Aq.ReducedSensitivity,n._Aq.Na],entityDirection:[n.tI1.Supports,n.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(n.kqt.Diagnostic,{entityType:n.kqt.Diagnostic,clinicalSignificance:[n._Aq.Positive,n._Aq.Negative],entityDirection:[n.tI1.Supports,n.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(n.kqt.Prognostic,{entityType:n.kqt.Prognostic,clinicalSignificance:[n._Aq.BetterOutcome,n._Aq.PoorOutcome,n._Aq.Na],entityDirection:[n.tI1.Supports,n.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(n.kqt.Oncogenic,{entityType:n.kqt.Oncogenic,clinicalSignificance:[n._Aq.Na],entityDirection:[n.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(n.kqt.Predisposing,{entityType:n.kqt.Predisposing,clinicalSignificance:[n._Aq.Na],entityDirection:[n.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(n.kqt.Functional,{entityType:n.kqt.Functional,clinicalSignificance:[n._Aq.GainOfFunction,n._Aq.LossOfFunction,n._Aq.UnalteredFunction,n._Aq.Neomorphic,n._Aq.DominantNegative,n._Aq.Unknown],entityDirection:[n.tI1.Supports,n.tI1.DoesNotSupport],requiresDisease:!1,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},1605:(v,p,r)=>{r.d(p,{e:()=>ee});var n=r(9808),l=r(4182),s=r(8776),f=r(3793),c=r(304),u=r(8054),e=r(5e3),h=r(1894),g=r(4546);let T=(()=>{class t{constructor(){console.log("FormCardDirective constructed.")}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=e.lG2({type:t,selectors:[["",8,"cvc-form-card-control"]]}),t})();var y=r(7484),_=r(404);function d(t,i){1&t&&e._UZ(0,"i",7)}function A(t,i){if(1&t&&(e.TgZ(0,"nz-form-label",5),e._uU(1),e.YNc(2,d,1,0,"i",6),e.qZA()),2&t){const o=e.oxw();e.Q6J("nzRequired",o.to.required&&!0!==o.to.hideRequiredMarker)("nzFor",o.id),e.xp6(1),e.hij(" ",o.to.label," "),e.xp6(1),e.Q6J("ngIf",o.to.helpText)}}function z(t,i){if(1&t&&e._UZ(0,"formly-validation-message",9),2&t){const o=e.oxw(2);e.Q6J("field",o.field)}}function F(t,i){if(1&t&&e.YNc(0,z,1,1,"formly-validation-message",8),2&t){const o=e.oxw();e.Q6J("ngIf",o.showError)}}let O=(()=>{class t extends s.n2{constructor(){super()}get errorState(){return console.log(`form-card.wrapper showError: ${this.showError}`),this.showError?"error":""}ngOnInit(){}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["form-card-wrapper"]],features:[e.qOj],decls:9,vars:4,consts:[[1,"cvc-form-card-control",3,"nzValidateStatus","nzErrorTip"],["nzSize","small","nzType","inner",3,"nzTitle","nzExtra"],["fieldComponent",""],["cardTitle",""],["cardExtra",""],[3,"nzRequired","nzFor"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText",4,"ngIf"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText"],[3,"field",4,"ngIf"],[3,"field"]],template:function(o,a){if(1&o&&(e.TgZ(0,"nz-form-item"),e.TgZ(1,"nz-form-control",0),e.TgZ(2,"nz-card",1),e.GkF(3,null,2),e.qZA(),e.YNc(5,A,3,4,"ng-template",null,3,e.W1O),e.YNc(7,F,1,1,"ng-template",null,4,e.W1O),e.qZA(),e.qZA()),2&o){const m=e.MAs(6),x=e.MAs(8);e.xp6(1),e.Q6J("nzValidateStatus",a.errorState)("nzErrorTip",x),e.xp6(1),e.Q6J("nzTitle",m)("nzExtra",x)}},directives:[h.SK,g.Nx,h.t3,g.Fd,T,y.bd,g.iK,n.O5,_.SY,s.u_],styles:["[_nghost-%COMP%]{display:block}.ant-form-item-label[_ngcontent-%COMP%]{padding:0}"],changeDetection:0}),t})();var q=r(647),D=r(5109);const M={wrappers:[{name:"form-card",component:O}]};let E=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[n.ez,l.UX,g.U5,y.vh,q.PV,_.cg,s.X0.forChild(M),D.s]]}),t})();var N=r(8929),G=r(7625),L=r(373),J=r(4850),P=r(712),S=r(6949),C=r(8144),I=r(3618),U=r(3193),Q=r(8926);function V(t,i){if(1&t&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&t){const o=e.oxw().$implicit,a=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.label,a.to.searchString),e.oJD)}}function Z(t,i){if(1&t&&(e._UZ(0,"span",12),e.ALo(1,"highlightTypeahead")),2&t){const o=e.oxw(2).$implicit,a=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.gene.geneAliases.join(", "),a.to.searchString),e.oJD)}}function R(t,i){1&t&&(e.ynx(0),e.YNc(1,Z,2,4,"span",11),e.BQk())}function W(t,i){if(1&t&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,V,2,4,"span",8),e.YNc(3,R,2,0,"ng-container",9),e.qZA(),e.qZA()),2&t){const o=i.$implicit;e.Q6J("nzLabel",o.tooltip)("nzValue",o.gene),e.xp6(3),e.Q6J("ngIf",o.gene.geneAliases.length>0)}}function $(t,i){if(1&t&&(e.ynx(0),e._uU(1),e.ALo(2,"json"),e.YNc(3,W,4,3,"nz-option",6),e.BQk()),2&t){const o=i.ngrxLet;e.xp6(1),e.hij(" ",e.lcZ(2,2,o)," "),e.xp6(2),e.Q6J("ngForOf",o)}}function j(t,i){1&t&&e._uU(0," No gene found in CIViC that matches the string provided. ")}function w(t,i){if(1&t){const o=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",2,3),e.NdJ("nzOnSearch",function(m){return e.CHM(o),e.oxw().to.onSearch(m)}),e.YNc(3,$,4,4,"ng-container",4),e.qZA(),e.YNc(4,j,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&t){const o=e.MAs(5),a=e.oxw();e.xp6(1),e.Q6J("formControl",a.formControl)("formlyAttributes",a.field)("nzPlaceHolder",a.to.placeholder?a.to.placeholder:null)("nzNotFoundContent",o)("nzShowArrow",a.to.showArrow)("nzFilterOption",a.to.filterOption),e.xp6(2),e.Q6J("ngrxLet",a.genes$)}}function B(t,i){if(1&t&&e._UZ(0,"cvc-gene-tag",13),2&t){const o=e.oxw();e.Q6J("gene",o.formControl.value)}}const Y={name:"cvc-gene-input",component:(()=>{class t extends s.fS{constructor(o){super(),this.geneTypeaheadQuery=o,this.defaultOptions={templateOptions:{placeholder:"Search Genes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}},this.destroy$=new N.xQ}ngOnInit(){this.queryRef=this.geneTypeaheadQuery.watch({entrezSymbol:""}),this.genes$=this.queryRef.valueChanges.pipe((0,G.R)(this.destroy$),(0,L.j)("data","geneTypeahead"),(0,J.U)(o=>o.map(a=>{let m=a.geneAliases.length>0?`Aliases: ${a.geneAliases.join(", ")}`:"";return{value:a.id,tooltip:`${a.name} (${a.entrezId}) ${m}`,label:`${a.name} (${a.entrezId})`,gene:a}})))}ngAfterViewInit(){this.to.onSearch=o=>{o.length{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[n.ez,l.UX,S.WG,s.X0.forChild({types:[Y]}),u.LV,C.zf,I.ZJ,H.U,X.s]]}),t})();var k=r(8390);const b={name:"gene-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Gene",helpText:"Entrez Gene name (e.g. BRAF). Gene name must be known to the Entrez database.",required:!1,addText:"Specify a Gene"},fieldArray:{type:"cvc-gene-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Gene be specified."}}}};let ee=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[n.ez,l.u5,l.UX,u.LV,c.F,f.F,s.X0.forChild({types:[b]}),K,k.N,E]]}),t})()},1270:(v,p,r)=>{r.d(p,{i:()=>_});var n=r(9808),l=r(4182),s=r(8776),f=r(3793),c=r(304),u=r(8054),e=r(3773),h=r(8390);const T={name:"source-array",extends:"multi-field",defaultOptions:{templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",required:!1,addText:"Specify a Source"},fieldArray:{type:"source-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"A Source is required."}}}};var y=r(5e3);let _=(()=>{class d{}return d.\u0275fac=function(z){return new(z||d)},d.\u0275mod=y.oAB({type:d}),d.\u0275inj=y.cJS({imports:[[n.ez,l.u5,l.UX,u.LV,c.F,f.F,s.X0.forChild({types:[T]}),e.g,h.N]]}),d})()}}]); \ No newline at end of file diff --git a/server/public/index.html b/server/public/index.html index fc4d8b033..c2924e52a 100644 --- a/server/public/index.html +++ b/server/public/index.html @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/server/public/main.8b48a5649d5fb513.js b/server/public/main.8b48a5649d5fb513.js new file mode 100644 index 000000000..b2df23502 --- /dev/null +++ b/server/public/main.8b48a5649d5fb513.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[179],{6949:(Ft,Oe,c)=>{c.d(Oe,{eJ:()=>M,fM:()=>z,WG:()=>ie});var r=c(5e3),o=c(8929),l=c(8896),K=c(4715),m=c(5254),A=c(5778),b=c(7545),D=c(2868),C=c(7221);function E(ce){const ve=new o.xQ,Re=ve.pipe((0,A.x)()).pipe((0,b.w)(ae=>{if(null==ae)return ce.updateViewContextObserver.next(ae),ce.render(),l.E;const Ue=(0,K.b)(ae)?ae:(0,m.D)(ae);return ce.resetContextObserver.next(),ce.render(),Ue.pipe((0,A.x)(),(0,D.b)(ce.updateViewContextObserver),(0,D.b)(()=>ce.render()),(0,C.K)(He=>(ce.errorHandler.handleError(He),l.E)))}));return{nextPotentialObservable(ae){ve.next(ae)},subscribe:()=>Re.subscribe()}}function w(ce){return function ve(){!function S(ce){return ce instanceof r.R0b}(ce.ngZone)?ce.cdRef.detectChanges():ce.cdRef.markForCheck()}}let z=(()=>{class ce{constructor(Le,Re,ae){this.resetContextObserver={next:()=>this.renderedValue=void 0},this.updateViewContextObserver={next:Ue=>this.renderedValue=Ue},this.cdAware=E({render:w({cdRef:Le,ngZone:Re}),updateViewContextObserver:this.updateViewContextObserver,resetContextObserver:this.resetContextObserver,errorHandler:ae}),this.subscription=this.cdAware.subscribe({})}transform(Le){return this.cdAware.nextPotentialObservable(Le),this.renderedValue}ngOnDestroy(){this.subscription.unsubscribe()}}return ce.\u0275fac=function(Le){return new(Le||ce)(r.Y36(r.sBO,16),r.Y36(r.R0b,16),r.Y36(r.qLn,16))},ce.\u0275pipe=r.Yjl({name:"ngrxPush",type:ce,pure:!1}),ce})(),M=(()=>{class ce{constructor(Le,Re,ae,Ue,He){this.templateRef=ae,this.viewContainerRef=Ue,this.viewContext={$implicit:void 0,ngrxLet:void 0,$error:!1,$complete:!1},this.resetContextObserver={next:()=>{this.embeddedView&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.$error=!1,this.viewContext.$complete=!1)}},this.updateViewContextObserver={next:me=>{this.embeddedView||this.createEmbeddedView(),this.viewContext.$implicit=me,this.viewContext.ngrxLet=me},error:me=>{this.embeddedView||this.createEmbeddedView(),this.viewContext.$error=!0},complete:()=>{this.embeddedView||this.createEmbeddedView(),this.viewContext.$complete=!0}},this.cdAware=E({render:w({cdRef:Le,ngZone:Re}),resetContextObserver:this.resetContextObserver,updateViewContextObserver:this.updateViewContextObserver,errorHandler:He}),this.subscription=this.cdAware.subscribe({})}static ngTemplateContextGuard(Le,Re){return!0}set ngrxLet(Le){this.cdAware.nextPotentialObservable(Le)}createEmbeddedView(){this.embeddedView=this.viewContainerRef.createEmbeddedView(this.templateRef,this.viewContext)}ngOnDestroy(){this.subscription.unsubscribe()}}return ce.\u0275fac=function(Le){return new(Le||ce)(r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(r.qLn))},ce.\u0275dir=r.lG2({type:ce,selectors:[["","ngrxLet",""]],inputs:{ngrxLet:"ngrxLet"}}),ce})(),ie=(()=>{class ce{}return ce.\u0275fac=function(Le){return new(Le||ce)},ce.\u0275mod=r.oAB({type:ce}),ce.\u0275inj=r.cJS({}),ce})()},9169:(Ft,Oe,c)=>{c.d(Oe,{Y:()=>l});var r=c(591),o=c(5e3);let l=(()=>{class K{constructor(){this.networkError$=new r.X(void 0)}clearErrors(){this.networkError$.next(void 0)}}return K.\u0275fac=function(A){return new(A||K)},K.\u0275prov=o.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},7026:(Ft,Oe,c)=>{c.d(Oe,{x:()=>w});var r=c(8625),o=c(5e3);const K=3600,m=24*K,b=365*m,C=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),S=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let w=(()=>{class z extends r.KP{format(k){const N=Date.now(),ie=Math.round(Math.abs(N-k)/1e3);if(ie>=2592e3&&ie=b){let Re=new Date(k);return S.format(Re)}let ce,ve;return ie<60?(ce=Math.round(ie),ve="second"):ie1?"s":""} ago`}}return z.\u0275fac=function(){let M;return function(N){return(M||(M=o.n5z(z)))(N||z)}}(),z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),z})()},2340:(Ft,Oe,c)=>{c.d(Oe,{N:()=>r});const r={production:!0}},9726:(Ft,Oe,c)=>{var r=c(2313),o=c(5e3),l=c(9808);const K=void 0,A=["en",[["a","p"],["AM","PM"],K],[["AM","PM"],K,K],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],K,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],K,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",K,"{1} 'at' {0}",K],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function m(X){const I=Math.floor(Math.abs(X)),ee=X.toString().replace(/^[^.]*\.?/,"").length;return 1===I&&0===ee?1:5}];var b=c(520),D=c(6360),C=c(6949),E=c(2160);c(9193);const Ce=[{name:"adminFullcolor",data:''},{name:"assertionFullcolor",data:''},{name:"commentFullcolor",data:''},{name:"coordinatesystemFullcolor",data:''},{name:"curatorFullcolor",data:''},{name:"diseaseFullcolor",data:''},{name:"editorFullcolor",data:''},{name:"eventFullcolor",data:''},{name:"evidenceFullcolor",data:''},{name:"flagFullcolor",data:''},{name:"geneFullcolor",data:''},{name:"interventionFullcolor",data:''},{name:"molecularprofileFullcolor",data:''},{name:"organizationFullcolor",data:''},{name:"phenotypeFullcolor",data:''},{name:"revisionFullcolor",data:''},{name:"sourceFullcolor",data:''},{name:"userFullcolor",data:''},{name:"variant",data:''},{name:"variantgroupFullcolor",data:''},{name:"varianttypeFullcolor",data:''}],ke=function tt(X){const B=[];return X.forEach(I=>{const ee={name:Ht(I.name),theme:Xt(I.name),icon:I.data};B.push(ee)}),B}([{name:"adverseresponseOutline",data:''},{name:"benignOutline",data:''},{name:"betteroutcomeOutline",data:''},{name:"commongermlineOutline",data:''},{name:"diagnosticOutline",data:''},{name:"doesnotsupportOutline",data:''},{name:"dominantnegativeOutline",data:''},{name:"functionalOutline",data:''},{name:"gainoffunctionOutline",data:''},{name:"likelybenignOutline",data:''},{name:"likelypathogenicOutline",data:''},{name:"lossoffunctionOutline",data:''},{name:"naOutline",data:''},{name:"negativeOutline",data:''},{name:"neomorphicOutline",data:''},{name:"oncogenicOutline",data:''},{name:"unknownOutline",data:''},{name:"pathogenicOutline",data:''},{name:"positiveOutline",data:''},{name:"predictiveOutline",data:''},{name:"predisposingOutline",data:''},{name:"prognosticOutline",data:''},{name:"raregermlineOutline",data:''},{name:"reducedsensitivityOutline",data:''},{name:"resistanceOutline",data:''},{name:"sensitivityresponseOutline",data:''},{name:"significanceunknownOutline",data:''},{name:"somaticOutline",data:''},{name:"supportsOutline",data:''},{name:"unalteredfunctionOutline",data:''},{name:"uncertainsignificanceOutline",data:''},{name:"pooroutcomeOutline",data:''},{name:"adminOutline",data:''},{name:"assertionOutline",data:''},{name:"commentOutline",data:''},{name:"coordinatesystemOutline",data:''},{name:"curatorOutline",data:''},{name:"diseaseOutline",data:''},{name:"editorOutline",data:''},{name:"eventOutline",data:''},{name:"evidenceOutline",data:''},{name:"flagOutline",data:''},{name:"geneOutline",data:''},{name:"interventionOutline",data:''},{name:"molecularprofileOutline",data:''},{name:"organizationOutline",data:''},{name:"phenotypeOutline",data:''},{name:"revisionOutline",data:''},{name:"sourceOutline",data:''},{name:"userOutline",data:''},{name:"variantgroupOutline",data:''},{name:"varianttypeOutline",data:''},{name:"variantOutline",data:''},{name:"adminTwotone",data:''},{name:"assertionTwotone",data:''},{name:"commentTwotone",data:''},{name:"coordinatesystemTwotone",data:''},{name:"curatorTwotone",data:''},{name:"diseaseTwotone",data:''},{name:"editorTwotone",data:''},{name:"eventTwotone",data:''},{name:"evidenceTwotone",data:''},{name:"flagTwotone",data:''},{name:"geneTwotone",data:''},{name:"interventionTwotone",data:''},{name:"molecularprofileTwotone",data:''},{name:"organizationTwotone",data:''},{name:"phenotypeTwotone",data:''},{name:"revisionTwotone",data:''},{name:"sourceTwotone",data:''},{name:"userTwotone",data:''},{name:"variantTwotone",data:''},{name:"variantgroupTwotone",data:''},{name:"varianttypeTwotone",data:''}]);function Ht(X){return"civic-"+function S(X){return X.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}(X.replace(/Outline|Fill|TwoTone/i,""))}function Xt(X){return X.includes("Twotone")?"twotone":X.includes("Outline")?"outline":X.includes("Fill")?"fill":void 0}var dn=c(8625),Mn=c(8298),jn=c(5109),Ci=c(4170),ii=c(325);const si=[{path:"",loadChildren:()=>c.e(4024).then(c.bind(c,4024)).then(X=>X.LayoutModule)}],pi={paramsInheritanceStrategy:"always",anchorScrolling:"enabled",scrollOffset:[0,64],onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"};let Wi=(()=>{class X{}return X.\u0275fac=function(I){return new(I||X)},X.\u0275mod=o.oAB({type:X}),X.\u0275inj=o.cJS({imports:[[ii.Bz.forRoot(si,pi)],ii.Bz]}),X})();var oo=c(2340),Si=c(647),Ii=c(9169),qi=c(3640),Ro=c(9287),Ho=c(2359),wo=c(6042),Bo=c(2683),Co=c(2643);function Xi(X,B){if(1&X&&o._uU(0),2&X){const I=o.oxw().ngIf;o.lnq(" ",I.name," ",I.status," ",I.statusText," ")}}function bo(X,B){1&X&&o.GkF(0)}const Do=function(X){return{error:X}};function ro(X,B){if(1&X&&(o.ynx(0),o.YNc(1,bo,1,0,"ng-container",9),o.BQk()),2&X){const I=o.oxw().ngIf;o.oxw(2);const ee=o.MAs(7);o.xp6(1),o.Q6J("ngTemplateOutlet",ee)("ngTemplateOutletContext",o.VKq(2,Do,I[0]))}}function Jo(X,B){1&X&&o.GkF(0)}function To(X,B){if(1&X&&(o.TgZ(0,"li"),o.YNc(1,Jo,1,0,"ng-container",9),o.qZA()),2&X){const I=B.$implicit;o.oxw(4);const ee=o.MAs(7);o.xp6(1),o.Q6J("ngTemplateOutlet",ee)("ngTemplateOutletContext",o.VKq(2,Do,I))}}function qo(X,B){if(1&X&&(o.ynx(0),o.TgZ(1,"ul",10),o.YNc(2,To,2,4,"li",11),o.qZA(),o.BQk()),2&X){const I=o.oxw().ngIf;o.xp6(2),o.Q6J("ngForOf",I)}}function so(X,B){if(1&X&&(o.ynx(0),o.YNc(1,ro,2,4,"ng-container",8),o.YNc(2,qo,3,1,"ng-container",8),o.BQk()),2&X){const I=B.ngIf;o.xp6(1),o.Q6J("ngIf",1===I.length),o.xp6(1),o.Q6J("ngIf",I.length>1)}}function Mo(X,B){if(1&X&&o.YNc(0,so,3,2,"ng-container",8),2&X){const I=o.oxw().ngIf;o.Q6J("ngIf",I.error.errors)}}function So(X,B){if(1&X){const I=o.EpF();o.TgZ(0,"button",13),o.NdJ("click",function(){o.CHM(I);const Pe=o.oxw().error;o.oxw();const Ze=o.MAs(11),at=o.MAs(9);return o.oxw().showModal("Backtrace for '"+Pe.message+"'",Pe.backtrace,Ze,at)}),o._uU(1," View Backtrace "),o.qZA()}}function Vi(X,B){if(1&X&&(o._uU(0),o.YNc(1,So,2,0,"button",12)),2&X){const I=B.error;o.hij(" ",I.message," "),o.xp6(1),o.Q6J("ngIf",I.backtrace.length>0)}}function Xo(X,B){if(1&X&&(o.TgZ(0,"pre",14),o._uU(1),o.qZA()),2&X){const I=B.$implicit;o.xp6(1),o.Oqu(I.backtrace)}}function xi(X,B){if(1&X){const I=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){return o.CHM(I),o.oxw(2).copyToClipboard()}),o._uU(1,"Copy to Clipboard"),o.qZA(),o.TgZ(2,"button",16),o.NdJ("click",function(){const Ze=o.CHM(I).modalRef;return o.oxw(2).hideModal(Ze)}),o._uU(3,"OK"),o.qZA()}}function Yo(X,B){if(1&X){const I=o.EpF();o.TgZ(0,"div",1),o.TgZ(1,"nz-alert",2),o.NdJ("nzOnClose",function(){return o.CHM(I),o.oxw().onClose()}),o.qZA(),o.YNc(2,Xi,1,3,"ng-template",null,3,o.W1O),o.YNc(4,Mo,1,1,"ng-template",null,4,o.W1O),o.YNc(6,Vi,2,2,"ng-template",null,5,o.W1O),o.YNc(8,Xo,2,1,"ng-template",null,6,o.W1O),o.YNc(10,xi,4,0,"ng-template",null,7,o.W1O),o.qZA()}if(2&X){const I=o.MAs(3),ee=o.MAs(5);o.xp6(1),o.Q6J("nzMessage",I)("nzDescription",ee)}}let Yi=(()=>{class X{constructor(I,ee,Pe){this.modal=ee,this.clipboard=Pe,this.modalVisible=!1,this.errors=I}showModal(I,ee,Pe,Ze){this.modalContent=ee.join("\n"),this.modal.create({nzTitle:I,nzFooter:Pe,nzContent:Ze,nzWidth:800,nzBodyStyle:{"max-height":"500px",overflow:"hidden","overflow-y":"scroll"},nzClosable:!0,nzOkDisabled:!0,nzCancelDisabled:!0,nzComponentParams:{backtrace:this.modalContent}})}hideModal(I){I.destroy()}onClose(){this.errors.clearErrors()}copyToClipboard(){this.clipboard.copy(this.modalContent)}}return X.\u0275fac=function(I){return new(I||X)(o.Y36(Ii.Y),o.Y36(qi.Sf),o.Y36(Ro.TU))},X.\u0275cmp=o.Xpm({type:X,selectors:[["cvc-network-error-alert"]],decls:2,vars:3,consts:[["class","alert-container",4,"ngIf"],[1,"alert-container"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzDescription","nzOnClose"],["alertMessage",""],["alertDescription",""],["errorDisplay",""],["modalContent",""],["modalFooter",""],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"error-list"],[4,"ngFor","ngForOf"],["nz-button","","nzSize","small","nzType","link",3,"click",4,"ngIf"],["nz-button","","nzSize","small","nzType","link",3,"click"],[2,"white-space","pre-wrap","font-size","80%"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(I,ee){1&I&&(o.YNc(0,Yo,12,2,"div",0),o.ALo(1,"ngrxPush")),2&I&&o.Q6J("ngIf",o.lcZ(1,1,ee.errors.networkError$))},directives:[l.O5,Ho.r,l.tP,l.sg,wo.ix,Bo.w,Co.dQ],pipes:[C.fM],styles:["[_nghost-%COMP%]{display:block}.alert-container[_ngcontent-%COMP%]{display:block;width:100%;padding:12px 24px}[_nghost-%COMP%] nz-alert .ant-alert-banner{border-radius:8px;border:2px solid #cf1322}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"]}),X})(),po=(()=>{class X{constructor(I,ee){this.iconService=I,this.router=ee,this.addIcons(Ce),oo.N.production&&this.router.events.subscribe(Pe=>{Pe instanceof ii.m2&>ag("config","UA-60119642-1",{page_path:Pe.urlAfterRedirects})})}addIcons(I){I.forEach(ee=>{const Ze="civic:"+ee.name.replace(/Fullcolor/i,"");this.iconService.addIconLiteral(Ze,ee.data)})}}return X.\u0275fac=function(I){return new(I||X)(o.Y36(Si.H5),o.Y36(ii.F0))},X.\u0275cmp=o.Xpm({type:X,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"alert-container"],[1,"app-container"]],template:function(I,ee){1&I&&(o.TgZ(0,"div",0),o._UZ(1,"cvc-network-error-alert"),o.qZA(),o.TgZ(2,"div",1),o._UZ(3,"router-outlet"),o.qZA())},directives:[Yi,ii.lC],styles:[".alert-container[_ngcontent-%COMP%]{position:absolute;z-index:100;width:100%}.app-container[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;z-index:0;overflow-y:auto}"]}),X})();var mo=c(484),eo=c(4302),ao=c(4989),jo=c(7887),to=c.n(jo),$i=c(2916);class Oo extends mo.i{constructor(B,I){super(),this.httpClient=B,this.options=I,this.print=ao.S,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=ee=>new eo.y(Pe=>{const Ze=ee.getContext(),at=(Xn,ai)=>function Oi(...X){const B=X.find(I=>void 0!==I);return void 0===B?X[X.length-1]:B}(Ze[Xn],this.options[Xn],ai),Yt=at("includeQuery",!0),Gt=at("includeExtensions",!1),Nt=at("method","POST"),sn=at("uri","graphql"),ln=at("withCredentials"),gn=at("useMultipart"),wn={method:Nt,url:"function"==typeof sn?sn(ee):sn,body:{operationName:ee.operationName,variables:ee.variables},options:{withCredentials:ln,useMultipart:gn,headers:this.options.headers}};Gt&&(wn.body.extensions=ee.extensions),Yt&&(wn.body.query=this.print(ee.query));const Yn=function xo(X){let B=X.headers&&X.headers instanceof b.WM?X.headers:new b.WM(X.headers);if(X.clientAwareness){const{name:I,version:ee}=X.clientAwareness;I&&!B.has("apollographql-client-name")&&(B=B.set("apollographql-client-name",I)),ee&&!B.has("apollographql-client-version")&&(B=B.set("apollographql-client-version",ee))}return B}(Ze);wn.options.headers=((X,B)=>X&&B?B.keys().reduce((ee,Pe)=>ee.set(Pe,B.getAll(Pe)),X):B||X)(wn.options.headers,Yn);const Rn=((X,B,I)=>{const ee=-1!==["POST","PUT","PATCH"].indexOf(X.method.toUpperCase()),Ze=X.body.length;let Yt,at=X.options&&X.options.useMultipart;if(at){if(Ze)return new $i.y(Nt=>Nt.error(new Error("File upload is not available when combined with Batching")));if(!ee)return new $i.y(Nt=>Nt.error(new Error("File upload is not available when GET is used")));Yt=I(X.body),at=!!Yt.files.size}let Gt={};if(Ze){if(!ee)return new $i.y(Nt=>Nt.error(new Error("Batching is not available for GET requests")));Gt={body:X.body}}else{const Nt=at?Yt.clone:X.body;Gt=ee?{body:Nt}:{params:Object.keys(X.body).reduce((ln,gn)=>{const wn=X.body[gn];return ln[gn]=(Nt=>-1!==["variables","extensions"].indexOf(Nt.toLowerCase()))(gn)?JSON.stringify(wn):wn,ln},{})}}if(at&&ee){const Nt=new FormData;Nt.append("operations",JSON.stringify(Gt.body));const sn={},ln=Yt.files;let gn=0;ln.forEach(wn=>{sn[++gn]=wn}),Nt.append("map",JSON.stringify(sn)),gn=0,ln.forEach((wn,Yn)=>{Nt.append(++gn+"",Yn,Yn.name)}),Gt.body=Nt}return B.request(X.method,X.url,Object.assign(Object.assign({observe:"response",responseType:"json",reportProgress:!1},Gt),X.options))})(wn,this.httpClient,to()).subscribe({next:Xn=>{ee.setContext({response:Xn}),Pe.next(Xn.body)},error:Xn=>Pe.error(Xn),complete:()=>Pe.complete()});return()=>{Rn.closed||Rn.unsubscribe()}})}request(B){return this.requester(B)}}let Uo=(()=>{class X{constructor(I){this.httpClient=I}create(I){return new Oo(this.httpClient,I)}}return X.\u0275fac=function(I){return new(I||X)(o.LFG(b.eN))},X.\u0275prov=o.Yz7({factory:function(){return new X(o.LFG(b.eN))},token:X,providedIn:"root"}),X})();var ji=c(9298),zn=c(655),Zn=c(9349),j=c(9769),_e=c(7883),W=c(9661),ze=function(){function X(){this.getFragmentDoc=(0,j.re)(W.Yk)}return X.prototype.batch=function(B){var Pe,I=this;return this.performTransaction(function(){return Pe=B.update(I)},"string"==typeof B.optimistic?B.optimistic:!1===B.optimistic?null:void 0),Pe},X.prototype.recordOptimisticTransaction=function(B,I){this.performTransaction(B,I)},X.prototype.transformDocument=function(B){return B},X.prototype.identify=function(B){},X.prototype.gc=function(){return[]},X.prototype.modify=function(B){return!1},X.prototype.transformForLink=function(B){return B},X.prototype.readQuery=function(B,I){return void 0===I&&(I=!!B.optimistic),this.read((0,zn.pi)((0,zn.pi)({},B),{rootId:B.id||"ROOT_QUERY",optimistic:I}))},X.prototype.readFragment=function(B,I){return void 0===I&&(I=!!B.optimistic),this.read((0,zn.pi)((0,zn.pi)({},B),{query:this.getFragmentDoc(B.fragment,B.fragmentName),rootId:B.id,optimistic:I}))},X.prototype.writeQuery=function(B){var I=B.id,ee=B.data,Pe=(0,zn._T)(B,["id","data"]);return this.write(Object.assign(Pe,{dataId:I||"ROOT_QUERY",result:ee}))},X.prototype.writeFragment=function(B){var I=B.id,ee=B.data,Pe=B.fragment,Ze=B.fragmentName,at=(0,zn._T)(B,["id","data","fragment","fragmentName"]);return this.write(Object.assign(at,{query:this.getFragmentDoc(Pe,Ze),dataId:I,result:ee}))},X.prototype.updateQuery=function(B,I){return this.batch({update:function(ee){var Pe=ee.readQuery(B),Ze=I(Pe);return null==Ze?Pe:(ee.writeQuery((0,zn.pi)((0,zn.pi)({},B),{data:Ze})),Ze)}})},X.prototype.updateFragment=function(B,I){return this.batch({update:function(ee){var Pe=ee.readFragment(B),Ze=I(Pe);return null==Ze?Pe:(ee.writeFragment((0,zn.pi)((0,zn.pi)({},B),{data:Ze})),Ze)}})},X}(),st=function X(B,I,ee,Pe){this.message=B,this.path=I,this.query=ee,this.variables=Pe},bt=c(7634),Zt=c(3291),Cn=c(9545),li=c(3950),ni=c(9419),oi=c(7773),$n=c(9722),hi=c(7062);function no(X){return __DEV__&&function gi(X){var B=new Set([X]);return B.forEach(function(I){(0,hi.s)(I)&&function An(X){if(__DEV__&&!Object.isFrozen(X))try{Object.freeze(X)}catch(B){if(B instanceof TypeError)return null;throw B}return X}(I)===I&&Object.getOwnPropertyNames(I).forEach(function(ee){(0,hi.s)(I[ee])&&B.add(I[ee])})}),X}(X),X}var $=c(9428),L=Object.prototype.hasOwnProperty;function F(X,B){var I=X.__typename,ee=X.id,Pe=X._id;if("string"==typeof I&&(B&&(B.keyObject=void 0!==ee?{id:ee}:void 0!==Pe?{_id:Pe}:void 0),void 0===ee&&(ee=Pe),void 0!==ee))return"".concat(I,":").concat("number"==typeof ee||"string"==typeof ee?ee:JSON.stringify(ee))}var Te={dataIdFromObject:F,addTypename:!0,resultCaching:!0,canonizeResults:!1};function On(X){var B=X.canonizeResults;return void 0===B?Te.canonizeResults:B}var re=/^[_a-z][_0-9a-z]*/i;function u(X){var B=X.match(re);return B?B[0]:X}function d(X,B,I){return!!(0,hi.s)(B)&&(Array.isArray(B)?B.every(function(ee){return d(X,ee,I)}):X.selections.every(function(ee){if((0,bt.My)(ee)&&(0,$n.LZ)(ee,I)){var Pe=(0,bt.u2)(ee);return L.call(B,Pe)&&(!ee.selectionSet||d(ee.selectionSet,B[Pe],I))}return!0}))}function x(X){return(0,hi.s)(X)&&!(0,bt.Yk)(X)&&!Array.isArray(X)}var X,B,Se=Object.create(null),qe=function(){return Se},nt=Object.create(null),Ot=function(){function X(B,I){var ee=this;this.policies=B,this.group=I,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(Pe,Ze){return no((0,bt.Yk)(Pe)?ee.get(Pe.__ref,Ze):Pe&&Pe[Ze])},this.canRead=function(Pe){return(0,bt.Yk)(Pe)?ee.has(Pe.__ref):"object"==typeof Pe},this.toReference=function(Pe,Ze){if("string"==typeof Pe)return(0,bt.kQ)(Pe);if((0,bt.Yk)(Pe))return Pe;var at=ee.policies.identify(Pe)[0];if(at){var Yt=(0,bt.kQ)(at);return Ze&&ee.merge(at,Pe),Yt}}}return X.prototype.toObject=function(){return(0,zn.pi)({},this.data)},X.prototype.has=function(B){return void 0!==this.lookup(B,!0)},X.prototype.get=function(B,I){if(this.group.depend(B,I),L.call(this.data,B)){var ee=this.data[B];if(ee&&L.call(ee,I))return ee[I]}return"__typename"===I&&L.call(this.policies.rootTypenamesById,B)?this.policies.rootTypenamesById[B]:this instanceof Pn?this.parent.get(B,I):void 0},X.prototype.lookup=function(B,I){return I&&this.group.depend(B,"__exists"),L.call(this.data,B)?this.data[B]:this instanceof Pn?this.parent.lookup(B,I):this.policies.rootTypenamesById[B]?Object.create(null):void 0},X.prototype.merge=function(B,I){var Pe,ee=this;(0,bt.Yk)(B)&&(B=B.__ref),(0,bt.Yk)(I)&&(I=I.__ref);var Ze="string"==typeof B?this.lookup(Pe=B):B,at="string"==typeof I?this.lookup(Pe=I):I;if(at){__DEV__?(0,Zn.kG)("string"==typeof Pe,"store.merge expects a string ID"):(0,Zn.kG)("string"==typeof Pe,1);var Yt=new oi.w0(In).merge(Ze,at);if(this.data[Pe]=Yt,Yt!==Ze&&(delete this.refs[Pe],this.group.caching)){var Gt=Object.create(null);Ze||(Gt.__exists=1),Object.keys(at).forEach(function(Nt){if(!Ze||Ze[Nt]!==Yt[Nt]){Gt[Nt]=1;var sn=u(Nt);sn!==Nt&&!ee.policies.hasKeyArgs(Yt.__typename,sn)&&(Gt[sn]=1),void 0===Yt[Nt]&&!(ee instanceof Pn)&&delete Yt[Nt]}}),Gt.__typename&&!(Ze&&Ze.__typename)&&this.policies.rootTypenamesById[Pe]===Yt.__typename&&delete Gt.__typename,Object.keys(Gt).forEach(function(Nt){return ee.group.dirty(Pe,Nt)})}}},X.prototype.modify=function(B,I){var ee=this,Pe=this.lookup(B);if(Pe){var Ze=Object.create(null),at=!1,Yt=!0,Gt={DELETE:Se,INVALIDATE:nt,isReference:bt.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(Nt,sn){return ee.policies.readField("string"==typeof Nt?{fieldName:Nt,from:sn||(0,bt.kQ)(B)}:Nt,{store:ee})}};if(Object.keys(Pe).forEach(function(Nt){var sn=u(Nt),ln=Pe[Nt];if(void 0!==ln){var gn="function"==typeof I?I:I[Nt]||I[sn];if(gn){var wn=gn===qe?Se:gn(no(ln),(0,zn.pi)((0,zn.pi)({},Gt),{fieldName:sn,storeFieldName:Nt,storage:ee.getStorage(B,Nt)}));wn===nt?ee.group.dirty(B,Nt):(wn===Se&&(wn=void 0),wn!==ln&&(Ze[Nt]=wn,at=!0,ln=wn))}void 0!==ln&&(Yt=!1)}}),at)return this.merge(B,Ze),Yt&&(this instanceof Pn?this.data[B]=void 0:delete this.data[B],this.group.dirty(B,"__exists")),!0}return!1},X.prototype.delete=function(B,I,ee){var Pe,Ze=this.lookup(B);if(Ze){var at=this.getFieldValue(Ze,"__typename"),Yt=I&&ee?this.policies.getStoreFieldName({typename:at,fieldName:I,args:ee}):I;return this.modify(B,Yt?((Pe={})[Yt]=qe,Pe):qe)}return!1},X.prototype.evict=function(B,I){var ee=!1;return B.id&&(L.call(this.data,B.id)&&(ee=this.delete(B.id,B.fieldName,B.args)),this instanceof Pn&&this!==I&&(ee=this.parent.evict(B,I)||ee),(B.fieldName||ee)&&this.group.dirty(B.id,B.fieldName||"__exists")),ee},X.prototype.clear=function(){this.replace(null)},X.prototype.extract=function(){var B=this,I=this.toObject(),ee=[];return this.getRootIdSet().forEach(function(Pe){L.call(B.policies.rootTypenamesById,Pe)||ee.push(Pe)}),ee.length&&(I.__META={extraRootIds:ee.sort()}),I},X.prototype.replace=function(B){var I=this;if(Object.keys(this.data).forEach(function(Ze){B&&L.call(B,Ze)||I.delete(Ze)}),B){var ee=B.__META,Pe=(0,zn._T)(B,["__META"]);Object.keys(Pe).forEach(function(Ze){I.merge(Ze,Pe[Ze])}),ee&&ee.extraRootIds.forEach(this.retain,this)}},X.prototype.retain=function(B){return this.rootIds[B]=(this.rootIds[B]||0)+1},X.prototype.release=function(B){if(this.rootIds[B]>0){var I=--this.rootIds[B];return I||delete this.rootIds[B],I}return 0},X.prototype.getRootIdSet=function(B){return void 0===B&&(B=new Set),Object.keys(this.rootIds).forEach(B.add,B),this instanceof Pn?this.parent.getRootIdSet(B):Object.keys(this.policies.rootTypenamesById).forEach(B.add,B),B},X.prototype.gc=function(){var B=this,I=this.getRootIdSet(),ee=this.toObject();I.forEach(function(at){L.call(ee,at)&&(Object.keys(B.findChildRefIds(at)).forEach(I.add,I),delete ee[at])});var Pe=Object.keys(ee);if(Pe.length){for(var Ze=this;Ze instanceof Pn;)Ze=Ze.parent;Pe.forEach(function(at){return Ze.delete(at)})}return Pe},X.prototype.findChildRefIds=function(B){if(!L.call(this.refs,B)){var I=this.refs[B]=Object.create(null),ee=this.data[B];if(!ee)return I;var Pe=new Set([ee]);Pe.forEach(function(Ze){(0,bt.Yk)(Ze)&&(I[Ze.__ref]=!0),(0,hi.s)(Ze)&&Object.keys(Ze).forEach(function(at){var Yt=Ze[at];(0,hi.s)(Yt)&&Pe.add(Yt)})})}return this.refs[B]},X.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},X}(),Wt=function(){function X(B,I){void 0===I&&(I=null),this.caching=B,this.parent=I,this.d=null,this.resetCaching()}return X.prototype.resetCaching=function(){this.d=this.caching?(0,j.dP)():null,this.keyMaker=new $.B(Cn.mr)},X.prototype.depend=function(B,I){if(this.d){this.d(hn(B,I));var ee=u(I);ee!==I&&this.d(hn(B,ee)),this.parent&&this.parent.depend(B,I)}},X.prototype.dirty=function(B,I){this.d&&this.d.dirty(hn(B,I),"__exists"===I?"forget":"setDirty")},X}();function hn(X,B){return B+"#"+X}function Sn(X,B){Vn(X)&&X.group.depend(B,"__exists")}B=function(I){function ee(Pe){var at=Pe.resultCaching,Gt=Pe.seed,Nt=I.call(this,Pe.policies,new Wt(void 0===at||at))||this;return Nt.stump=new Wn(Nt),Nt.storageTrie=new $.B(Cn.mr),Gt&&Nt.replace(Gt),Nt}return(0,zn.ZT)(ee,I),ee.prototype.addLayer=function(Pe,Ze){return this.stump.addLayer(Pe,Ze)},ee.prototype.removeLayer=function(){return this},ee.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},ee}(X=Ot||(Ot={})),X.Root=B;var Pn=function(X){function B(I,ee,Pe,Ze){var at=X.call(this,ee.policies,Ze)||this;return at.id=I,at.parent=ee,at.replay=Pe,at.group=Ze,Pe(at),at}return(0,zn.ZT)(B,X),B.prototype.addLayer=function(I,ee){return new B(I,this,ee,this.group)},B.prototype.removeLayer=function(I){var ee=this,Pe=this.parent.removeLayer(I);return I===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(Ze){var at=ee.data[Ze],Yt=Pe.lookup(Ze);Yt?at?at!==Yt&&Object.keys(at).forEach(function(Gt){(0,_e.D)(at[Gt],Yt[Gt])||ee.group.dirty(Ze,Gt)}):(ee.group.dirty(Ze,"__exists"),Object.keys(Yt).forEach(function(Gt){ee.group.dirty(Ze,Gt)})):ee.delete(Ze)}),Pe):Pe===this.parent?this:Pe.addLayer(this.id,this.replay)},B.prototype.toObject=function(){return(0,zn.pi)((0,zn.pi)({},this.parent.toObject()),this.data)},B.prototype.findChildRefIds=function(I){var ee=this.parent.findChildRefIds(I);return L.call(this.data,I)?(0,zn.pi)((0,zn.pi)({},ee),X.prototype.findChildRefIds.call(this,I)):ee},B.prototype.getStorage=function(){for(var I=this.parent;I.parent;)I=I.parent;return I.getStorage.apply(I,arguments)},B}(Ot),Wn=function(X){function B(I){return X.call(this,"EntityStore.Stump",I,function(){},new Wt(I.group.caching,I.group))||this}return(0,zn.ZT)(B,X),B.prototype.removeLayer=function(){return this},B.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},B}(Pn);function In(X,B,I){var ee=X[I],Pe=B[I];return(0,_e.D)(ee,Pe)?ee:Pe}function Vn(X){return!!(X instanceof Ot&&X.group.caching)}var Hn=c(3750);function bi(X){return[X.selectionSet,X.objectOrReference,X.context,X.context.canonizeResults]}var Ei=function(){function X(B){var I=this;this.knownResults=new(Cn.mr?WeakMap:Map),this.config=(0,li.o)(B,{addTypename:!1!==B.addTypename,canonizeResults:On(B)}),this.canon=B.canon||new Hn.h,this.executeSelectionSet=(0,j.re)(function(ee){var Pe,Ze=ee.context.canonizeResults,at=bi(ee);at[3]=!Ze;var Yt=(Pe=I.executeSelectionSet).peek.apply(Pe,at);return Yt?Ze?(0,zn.pi)((0,zn.pi)({},Yt),{result:I.canon.admit(Yt.result)}):Yt:(Sn(ee.context.store,ee.enclosingRef.__ref),I.execSelectionSetImpl(ee))},{max:this.config.resultCacheMaxSize,keyArgs:bi,makeCacheKey:function(ee,Pe,Ze,at){if(Vn(Ze.store))return Ze.store.makeCacheKey(ee,(0,bt.Yk)(Pe)?Pe.__ref:Pe,Ze.varString,at)}}),this.executeSubSelectedArray=(0,j.re)(function(ee){return Sn(ee.context.store,ee.enclosingRef.__ref),I.execSubSelectedArrayImpl(ee)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(ee){var Pe=ee.field,Ze=ee.array,at=ee.context;if(Vn(at.store))return at.store.makeCacheKey(Pe,Ze,at.varString)}})}return X.prototype.resetCanon=function(){this.canon=new Hn.h},X.prototype.diffQueryAgainstStore=function(B){var I=B.store,ee=B.query,Pe=B.rootId,Ze=void 0===Pe?"ROOT_QUERY":Pe,at=B.variables,Yt=B.returnPartialData,Gt=void 0===Yt||Yt,Nt=B.canonizeResults,sn=void 0===Nt?this.config.canonizeResults:Nt,ln=this.config.cache.policies;at=(0,zn.pi)((0,zn.pi)({},(0,ni.O4)((0,ni.iW)(ee))),at);var Rn,gn=(0,bt.kQ)(Ze),wn=new oi.w0,Yn=this.executeSelectionSet({selectionSet:(0,ni.p$)(ee).selectionSet,objectOrReference:gn,enclosingRef:gn,context:{store:I,query:ee,policies:ln,variables:at,varString:(0,Hn.B)(at),canonizeResults:sn,fragmentMap:(0,W.F)((0,ni.kU)(ee)),merge:function(Xn,ai){return wn.merge(Xn,ai)}}});if(Yn.missing&&(Rn=[new st(Ai(Yn.missing),Yn.missing,ee,at)],!Gt))throw Rn[0];return{result:Yn.result,complete:!Rn,missing:Rn}},X.prototype.isFresh=function(B,I,ee,Pe){if(Vn(Pe.store)&&this.knownResults.get(B)===ee){var Ze=this.executeSelectionSet.peek(ee,I,Pe,this.canon.isKnown(B));if(Ze&&B===Ze.result)return!0}return!1},X.prototype.execSelectionSetImpl=function(B){var I=this,ee=B.selectionSet,Pe=B.objectOrReference,Ze=B.enclosingRef,at=B.context;if((0,bt.Yk)(Pe)&&!at.policies.rootTypenamesById[Pe.__ref]&&!at.store.has(Pe.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(Pe.__ref," object")};var gn,Yt=at.variables,Gt=at.policies,sn=at.store.getFieldValue(Pe,"__typename"),ln={};function wn(ai,Di){var di;return ai.missing&&(gn=at.merge(gn,((di={})[Di]=ai.missing,di))),ai.result}this.config.addTypename&&"string"==typeof sn&&!Gt.rootIdsByTypename[sn]&&(ln={__typename:sn});var Yn=new Set(ee.selections);Yn.forEach(function(ai){var Di,di;if((0,$n.LZ)(ai,Yt))if((0,bt.My)(ai)){var ri=Gt.readField({fieldName:ai.name.value,field:ai,variables:at.variables,from:Pe},at),ci=(0,bt.u2)(ai);void 0===ri?Zt.Gw.added(ai)||(gn=at.merge(gn,((Di={})[ci]="Can't find field '".concat(ai.name.value,"' on ").concat((0,bt.Yk)(Pe)?Pe.__ref+" object":"object "+JSON.stringify(Pe,null,2)),Di))):Array.isArray(ri)?ri=wn(I.executeSubSelectedArray({field:ai,array:ri,enclosingRef:Ze,context:at}),ci):ai.selectionSet?null!=ri&&(ri=wn(I.executeSelectionSet({selectionSet:ai.selectionSet,objectOrReference:ri,enclosingRef:(0,bt.Yk)(ri)?ri:Ze,context:at}),ci)):at.canonizeResults&&(ri=I.canon.pass(ri)),void 0!==ri&&(ln=at.merge(ln,((di={})[ci]=ri,di)))}else{var Go=(0,W.hi)(ai,at.fragmentMap);Go&&Gt.fragmentMatches(Go,sn)&&Go.selectionSet.selections.forEach(Yn.add,Yn)}});var Rn={result:ln,missing:gn},Xn=at.canonizeResults?this.canon.admit(Rn):no(Rn);return Xn.result&&this.knownResults.set(Xn.result,ee),Xn},X.prototype.execSubSelectedArrayImpl=function(B){var Yt,I=this,ee=B.field,Pe=B.array,Ze=B.enclosingRef,at=B.context;function Gt(Nt,sn){var ln;return Nt.missing&&(Yt=at.merge(Yt,((ln={})[sn]=Nt.missing,ln))),Nt.result}return ee.selectionSet&&(Pe=Pe.filter(at.store.canRead)),Pe=Pe.map(function(Nt,sn){return null===Nt?null:Array.isArray(Nt)?Gt(I.executeSubSelectedArray({field:ee,array:Nt,enclosingRef:Ze,context:at}),sn):ee.selectionSet?Gt(I.executeSelectionSet({selectionSet:ee.selectionSet,objectOrReference:Nt,enclosingRef:(0,bt.Yk)(Nt)?Nt:Ze,context:at}),sn):(__DEV__&&function Fi(X,B,I){if(!B.selectionSet){var ee=new Set([I]);ee.forEach(function(Pe){(0,hi.s)(Pe)&&(__DEV__?(0,Zn.kG)(!(0,bt.Yk)(Pe),"Missing selection set for object of type ".concat(function Kt(X,B){return(0,bt.Yk)(B)?X.get(B.__ref,"__typename"):B&&B.__typename}(X,Pe)," returned for query field ").concat(B.name.value)):(0,Zn.kG)(!(0,bt.Yk)(Pe),5),Object.values(Pe).forEach(ee.add,ee))})}}(at.store,ee,Nt),Nt)}),{result:at.canonizeResults?this.canon.admit(Pe):Pe,missing:Yt}},X}();function Ai(X){try{JSON.stringify(X,function(B,I){if("string"==typeof I)throw I;return I})}catch(B){return B}}var co=c(396),Ri=c(5355),Pi=c(8561),Ui=c(6430),io=Object.create(null);function Po(X){var B=JSON.stringify(X);return io[B]||(io[B]=Object.create(null))}function Ao(X){var B=Po(X);return B.keyFieldsFn||(B.keyFieldsFn=function(I,ee){var Pe=function(at,Yt){return ee.readField(Yt,at)},Ze=ee.keyObject=Fo(X,function(at){var Yt=kn(ee.storeObject,at,Pe);return void 0===Yt&&I!==ee.storeObject&&L.call(I,at[0])&&(Yt=kn(I,at,Tn)),__DEV__?(0,Zn.kG)(void 0!==Yt,"Missing field '".concat(at.join("."),"' while extracting keyFields from ").concat(JSON.stringify(I))):(0,Zn.kG)(void 0!==Yt,2),Yt});return"".concat(ee.typename,":").concat(JSON.stringify(Ze))})}function go(X){var B=Po(X);return B.keyArgsFn||(B.keyArgsFn=function(I,ee){var Pe=ee.field,Ze=ee.variables,at=ee.fieldName,Yt=Fo(X,function(Nt){var sn=Nt[0],ln=sn.charAt(0);if("@"!==ln)if("$"!==ln){if(I)return kn(I,Nt)}else{var Rn=sn.slice(1);if(Ze&&L.call(Ze,Rn)){var Xn=Nt.slice(0);return Xn[0]=Rn,kn(Ze,Xn)}}else if(Pe&&(0,Ri.O)(Pe.directives)){var gn=sn.slice(1),wn=Pe.directives.find(function(ai){return ai.name.value===gn}),Yn=wn&&(0,bt.NC)(wn,Ze);return Yn&&kn(Yn,Nt.slice(1))}}),Gt=JSON.stringify(Yt);return(I||"{}"!==Gt)&&(at+=":"+Gt),at})}function Fo(X,B){var I=new oi.w0;return sr(X).reduce(function(ee,Pe){var Ze,at=B(Pe);if(void 0!==at){for(var Yt=Pe.length-1;Yt>=0;--Yt)(Ze={})[Pe[Yt]]=at,at=Ze;ee=I.merge(ee,at)}return ee},Object.create(null))}function sr(X){var B=Po(X);if(!B.paths){var I=B.paths=[],ee=[];X.forEach(function(Pe,Ze){Array.isArray(Pe)?(sr(Pe).forEach(function(at){return I.push(ee.concat(at))}),ee.length=0):(ee.push(Pe),Array.isArray(X[Ze+1])||(I.push(ee.slice(0)),ee.length=0))})}return B.paths}function Tn(X,B){return X[B]}function kn(X,B,I){return I=I||Tn,Ln(B.reduce(function ee(Pe,Ze){return Array.isArray(Pe)?Pe.map(function(at){return ee(at,Ze)}):Pe&&I(Pe,Ze)},X))}function Ln(X){return(0,hi.s)(X)?Array.isArray(X)?X.map(Ln):Fo(Object.keys(X).sort(),function(B){return kn(X,B)}):X}function Bn(X){return void 0!==X.args?X.args:X.field?(0,bt.NC)(X.field,X.variables):null}bt.PT.setStringify(Hn.B);var yi=function(){},ui=function(X,B){return B.fieldName},ki=function(X,B,I){return(0,I.mergeObjects)(X,B)},vo=function(X,B){return B},_i=function(){function X(B){this.config=B,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,zn.pi)({dataIdFromObject:F},B),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),B.possibleTypes&&this.addPossibleTypes(B.possibleTypes),B.typePolicies&&this.addTypePolicies(B.typePolicies)}return X.prototype.identify=function(B,I){var ee,Pe=this,Ze=I&&(I.typename||(null===(ee=I.storeObject)||void 0===ee?void 0:ee.__typename))||B.__typename;if(Ze===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var Gt,at=I&&I.storeObject||B,Yt=(0,zn.pi)((0,zn.pi)({},I),{typename:Ze,storeObject:at,readField:I&&I.readField||function(){var gn=br(arguments,at);return Pe.readField(gn,{store:Pe.cache.data,variables:gn.variables})}}),Nt=Ze&&this.getTypePolicy(Ze),sn=Nt&&Nt.keyFn||this.config.dataIdFromObject;sn;){var ln=sn(B,Yt);if(!Array.isArray(ln)){Gt=ln;break}sn=Ao(ln)}return Gt=Gt?String(Gt):void 0,Yt.keyObject?[Gt,Yt.keyObject]:[Gt]},X.prototype.addTypePolicies=function(B){var I=this;Object.keys(B).forEach(function(ee){var Pe=B[ee],Ze=Pe.queryType,at=Pe.mutationType,Yt=Pe.subscriptionType,Gt=(0,zn._T)(Pe,["queryType","mutationType","subscriptionType"]);Ze&&I.setRootTypename("Query",ee),at&&I.setRootTypename("Mutation",ee),Yt&&I.setRootTypename("Subscription",ee),L.call(I.toBeAdded,ee)?I.toBeAdded[ee].push(Gt):I.toBeAdded[ee]=[Gt]})},X.prototype.updateTypePolicy=function(B,I){var ee=this,Pe=this.getTypePolicy(B),Ze=I.keyFields,at=I.fields;function Yt(Gt,Nt){Gt.merge="function"==typeof Nt?Nt:!0===Nt?ki:!1===Nt?vo:Gt.merge}Yt(Pe,I.merge),Pe.keyFn=!1===Ze?yi:Array.isArray(Ze)?Ao(Ze):"function"==typeof Ze?Ze:Pe.keyFn,at&&Object.keys(at).forEach(function(Gt){var Nt=ee.getFieldPolicy(B,Gt,!0),sn=at[Gt];if("function"==typeof sn)Nt.read=sn;else{var ln=sn.keyArgs,gn=sn.read,wn=sn.merge;Nt.keyFn=!1===ln?ui:Array.isArray(ln)?go(ln):"function"==typeof ln?ln:Nt.keyFn,"function"==typeof gn&&(Nt.read=gn),Yt(Nt,wn)}Nt.read&&Nt.merge&&(Nt.keyFn=Nt.keyFn||ui)})},X.prototype.setRootTypename=function(B,I){void 0===I&&(I=B);var ee="ROOT_"+B.toUpperCase(),Pe=this.rootTypenamesById[ee];I!==Pe&&(__DEV__?(0,Zn.kG)(!Pe||Pe===B,"Cannot change root ".concat(B," __typename more than once")):(0,Zn.kG)(!Pe||Pe===B,3),Pe&&delete this.rootIdsByTypename[Pe],this.rootIdsByTypename[I]=ee,this.rootTypenamesById[ee]=I)},X.prototype.addPossibleTypes=function(B){var I=this;this.usingPossibleTypes=!0,Object.keys(B).forEach(function(ee){I.getSupertypeSet(ee,!0),B[ee].forEach(function(Pe){I.getSupertypeSet(Pe,!0).add(ee);var Ze=Pe.match(re);(!Ze||Ze[0]!==Pe)&&I.fuzzySubtypes.set(Pe,new RegExp(Pe))})})},X.prototype.getTypePolicy=function(B){var I=this;if(!L.call(this.typePolicies,B)){var ee=this.typePolicies[B]=Object.create(null);ee.fields=Object.create(null);var Pe=this.supertypeMap.get(B);Pe&&Pe.size&&Pe.forEach(function(at){var Yt=I.getTypePolicy(at),Gt=Yt.fields,Nt=(0,zn._T)(Yt,["fields"]);Object.assign(ee,Nt),Object.assign(ee.fields,Gt)})}var Ze=this.toBeAdded[B];return Ze&&Ze.length&&Ze.splice(0).forEach(function(at){I.updateTypePolicy(B,at)}),this.typePolicies[B]},X.prototype.getFieldPolicy=function(B,I,ee){if(B){var Pe=this.getTypePolicy(B).fields;return Pe[I]||ee&&(Pe[I]=Object.create(null))}},X.prototype.getSupertypeSet=function(B,I){var ee=this.supertypeMap.get(B);return!ee&&I&&this.supertypeMap.set(B,ee=new Set),ee},X.prototype.fragmentMatches=function(B,I,ee,Pe){var Ze=this;if(!B.typeCondition)return!0;if(!I)return!1;var at=B.typeCondition.name.value;if(I===at)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(at))for(var Yt=this.getSupertypeSet(I,!0),Gt=[Yt],Nt=function(Yn){var Rn=Ze.getSupertypeSet(Yn,!1);Rn&&Rn.size&&Gt.indexOf(Rn)<0&&Gt.push(Rn)},sn=!(!ee||!this.fuzzySubtypes.size),ln=!1,gn=0;gn1?X[1]:B}:(at=(0,zn.pi)({},ee),L.call(at,"from")||(at.from=B)),__DEV__&&void 0===at.from&&__DEV__&&Zn.kG.warn("Undefined 'from' passed to readField with arguments ".concat(function Ki(X){var B=(0,Pi.X)("stringifyForDisplay");return JSON.stringify(X,function(I,ee){return void 0===ee?B:ee}).split(JSON.stringify(B)).join("")}(Array.from(X)))),void 0===at.variables&&(at.variables=I),at}function mi(X){return function(I,ee){if(Array.isArray(I)||Array.isArray(ee))throw __DEV__?new Zn.ej("Cannot automatically merge arrays"):new Zn.ej(4);if((0,hi.s)(I)&&(0,hi.s)(ee)){var Pe=X.getFieldValue(I,"__typename"),Ze=X.getFieldValue(ee,"__typename");if(Pe&&Ze&&Pe!==Ze)return ee;if((0,bt.Yk)(I)&&x(ee))return X.merge(I.__ref,ee),I;if(x(I)&&(0,bt.Yk)(ee))return X.merge(I,ee.__ref),ee;if(x(I)&&x(ee))return(0,zn.pi)((0,zn.pi)({},I),ee)}return ee}}function Qi(X,B,I){var ee="".concat(B).concat(I),Pe=X.flavors.get(ee);return Pe||X.flavors.set(ee,Pe=X.clientOnly===B&&X.deferred===I?X:(0,zn.pi)((0,zn.pi)({},X),{clientOnly:B,deferred:I})),Pe}var Hi=function(){function X(B,I){this.cache=B,this.reader=I}return X.prototype.writeToStore=function(B,I){var ee=this,Pe=I.query,Ze=I.result,at=I.dataId,Yt=I.variables,Gt=I.overwrite,Nt=(0,ni.$H)(Pe),sn=function he(){return new oi.w0}();Yt=(0,zn.pi)((0,zn.pi)({},(0,ni.O4)(Nt)),Yt);var ln={store:B,written:Object.create(null),merge:function(wn,Yn){return sn.merge(wn,Yn)},variables:Yt,varString:(0,Hn.B)(Yt),fragmentMap:(0,W.F)((0,ni.kU)(Pe)),overwrite:!!Gt,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},gn=this.processSelectionSet({result:Ze||Object.create(null),dataId:at,selectionSet:Nt.selectionSet,mergeTree:{map:new Map},context:ln});if(!(0,bt.Yk)(gn))throw __DEV__?new Zn.ej("Could not identify object ".concat(JSON.stringify(Ze))):new Zn.ej(6);return ln.incomingById.forEach(function(wn,Yn){var Rn=wn.storeObject,Xn=wn.mergeTree,ai=wn.fieldNodeSet,Di=(0,bt.kQ)(Yn);if(Xn&&Xn.map.size){var di=ee.applyMerges(Xn,Di,Rn,ln);if((0,bt.Yk)(di))return;Rn=di}if(__DEV__&&!ln.overwrite){var ri=Object.create(null);ai.forEach(function(lo){lo.selectionSet&&(ri[lo.name.value]=!0)}),Object.keys(Rn).forEach(function(lo){(function(lo){return!0===ri[u(lo)]})(lo)&&!function(lo){var uo=Xn&&Xn.map.get(lo);return Boolean(uo&&uo.info&&uo.info.merge)}(lo)&&function gs(X,B,I,ee){var Pe=function(ln){var gn=ee.getFieldValue(ln,I);return"object"==typeof gn&&gn},Ze=Pe(X);if(Ze){var at=Pe(B);if(at&&!(0,bt.Yk)(Ze)&&!(0,_e.D)(Ze,at)&&!Object.keys(Ze).every(function(ln){return void 0!==ee.getFieldValue(at,ln)})){var Yt=ee.getFieldValue(X,"__typename")||ee.getFieldValue(B,"__typename"),Gt=u(I),Nt="".concat(Yt,".").concat(Gt);if(!tr.has(Nt)){tr.add(Nt);var sn=[];!Array.isArray(Ze)&&!Array.isArray(at)&&[Ze,at].forEach(function(ln){var gn=ee.getFieldValue(ln,"__typename");"string"==typeof gn&&!sn.includes(gn)&&sn.push(gn)}),__DEV__&&Zn.kG.warn("Cache data may be lost when replacing the ".concat(Gt," field of a ").concat(Yt," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(sn.length?"either ensure all objects of type "+sn.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(Nt," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(Ze).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(at).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(Di,Rn,lo,ln.store)})}B.merge(Yn,Rn)}),B.retain(gn.__ref),gn},X.prototype.processSelectionSet=function(B){var I=this,ee=B.dataId,Pe=B.result,Ze=B.selectionSet,at=B.context,Yt=B.mergeTree,Gt=this.cache.policies,Nt=Object.create(null),sn=ee&&Gt.rootTypenamesById[ee]||(0,bt.qw)(Pe,Ze,at.fragmentMap)||ee&&at.store.get(ee,"__typename");"string"==typeof sn&&(Nt.__typename=sn);var ln=function(){var di=br(arguments,Nt,at.variables);if((0,bt.Yk)(di.from)){var ri=at.incomingById.get(di.from.__ref);if(ri){var ci=Gt.readField((0,zn.pi)((0,zn.pi)({},di),{from:ri.storeObject}),at);if(void 0!==ci)return ci}}return Gt.readField(di,at)},gn=new Set;this.flattenFields(Ze,Pe,at,sn).forEach(function(di,ri){var ci,Go=(0,bt.u2)(ri),lo=Pe[Go];if(gn.add(ri),void 0!==lo){var uo=Gt.getStoreFieldName({typename:sn,fieldName:ri.name.value,field:ri,variables:di.variables}),bs=yo(Yt,uo),Ms=I.processFieldValue(lo,ri,ri.selectionSet?Qi(di,!1,!1):di,bs),Ia=void 0;ri.selectionSet&&((0,bt.Yk)(Ms)||x(Ms))&&(Ia=ln("__typename",Ms));var Va=Gt.getMergeFunction(sn,ri.name.value,Ia);Va?bs.info={field:ri,typename:sn,merge:Va}:Io(Yt,uo),Nt=di.merge(Nt,((ci={})[uo]=Ms,ci))}else __DEV__&&!di.clientOnly&&!di.deferred&&!Zt.Gw.added(ri)&&!Gt.getReadFunction(sn,ri.name.value)&&__DEV__&&Zn.kG.error("Missing field '".concat((0,bt.u2)(ri),"' while writing result ").concat(JSON.stringify(Pe,null,2)).substring(0,1e3))});try{var wn=Gt.identify(Pe,{typename:sn,selectionSet:Ze,fragmentMap:at.fragmentMap,storeObject:Nt,readField:ln}),Rn=wn[1];ee=ee||wn[0],Rn&&(Nt=at.merge(Nt,Rn))}catch(di){if(!ee)throw di}if("string"==typeof ee){var Xn=(0,bt.kQ)(ee),ai=at.written[ee]||(at.written[ee]=[]);if(ai.indexOf(Ze)>=0||(ai.push(Ze),this.reader&&this.reader.isFresh(Pe,Xn,Ze,at)))return Xn;var Di=at.incomingById.get(ee);return Di?(Di.storeObject=at.merge(Di.storeObject,Nt),Di.mergeTree=ko(Di.mergeTree,Yt),gn.forEach(function(di){return Di.fieldNodeSet.add(di)})):at.incomingById.set(ee,{storeObject:Nt,mergeTree:cr(Yt)?void 0:Yt,fieldNodeSet:gn}),Xn}return Nt},X.prototype.processFieldValue=function(B,I,ee,Pe){var Ze=this;return I.selectionSet&&null!==B?Array.isArray(B)?B.map(function(at,Yt){var Gt=Ze.processFieldValue(at,I,ee,yo(Pe,Yt));return Io(Pe,Yt),Gt}):this.processSelectionSet({result:B,selectionSet:I.selectionSet,context:ee,mergeTree:Pe}):__DEV__?(0,co.X)(B):B},X.prototype.flattenFields=function(B,I,ee,Pe){void 0===Pe&&(Pe=(0,bt.qw)(I,B,ee.fragmentMap));var Ze=new Map,at=this.cache.policies,Yt=new $.B(!1);return function Gt(Nt,sn){var ln=Yt.lookup(Nt,sn.clientOnly,sn.deferred);ln.visited||(ln.visited=!0,Nt.selections.forEach(function(gn){if((0,$n.LZ)(gn,ee.variables)){var wn=sn.clientOnly,Yn=sn.deferred;if(!(wn&&Yn)&&(0,Ri.O)(gn.directives)&&gn.directives.forEach(function(ai){var Di=ai.name.value;if("client"===Di&&(wn=!0),"defer"===Di){var di=(0,bt.NC)(ai,ee.variables);(!di||!1!==di.if)&&(Yn=!0)}}),(0,bt.My)(gn)){var Rn=Ze.get(gn);Rn&&(wn=wn&&Rn.clientOnly,Yn=Yn&&Rn.deferred),Ze.set(gn,Qi(ee,wn,Yn))}else{var Xn=(0,W.hi)(gn,ee.fragmentMap);Xn&&at.fragmentMatches(Xn,Pe,I,ee.variables)&&Gt(Xn.selectionSet,Qi(ee,wn,Yn))}}}))}(B,ee),Ze},X.prototype.applyMerges=function(B,I,ee,Pe,Ze){var at,Yt=this;if(B.map.size&&!(0,bt.Yk)(ee)){var Gt=Array.isArray(ee)||!(0,bt.Yk)(I)&&!x(I)?void 0:I,Nt=ee;Gt&&!Ze&&(Ze=[(0,bt.Yk)(Gt)?Gt.__ref:Gt]);var sn,ln=function(gn,wn){return Array.isArray(gn)?"number"==typeof wn?gn[wn]:void 0:Pe.store.getFieldValue(gn,String(wn))};B.map.forEach(function(gn,wn){var Yn=ln(Gt,wn),Rn=ln(Nt,wn);if(void 0!==Rn){Ze&&Ze.push(wn);var Xn=Yt.applyMerges(gn,Yn,Rn,Pe,Ze);Xn!==Rn&&(sn=sn||new Map).set(wn,Xn),Ze&&(0,Zn.kG)(Ze.pop()===wn)}}),sn&&(ee=Array.isArray(Nt)?Nt.slice(0):(0,zn.pi)({},Nt),sn.forEach(function(gn,wn){ee[wn]=gn}))}return B.info?this.cache.policies.runMergeFunction(I,ee,B.info,Pe,Ze&&(at=Pe.store).getStorage.apply(at,Ze)):ee},X}(),Bi=[];function yo(X,B){var I=X.map;return I.has(B)||I.set(B,Bi.pop()||{map:new Map}),I.get(B)}function ko(X,B){if(X===B||!B||cr(B))return X;if(!X||cr(X))return B;var I=X.info&&B.info?(0,zn.pi)((0,zn.pi)({},X.info),B.info):X.info||B.info,ee=X.map.size&&B.map.size,Ze={info:I,map:ee?new Map:X.map.size?X.map:B.map};if(ee){var at=new Set(B.map.keys());X.map.forEach(function(Yt,Gt){Ze.map.set(Gt,ko(Yt,B.map.get(Gt))),at.delete(Gt)}),at.forEach(function(Yt){Ze.map.set(Yt,ko(B.map.get(Yt),X.map.get(Yt)))})}return Ze}function cr(X){return!X||!(X.info||X.map.size)}function Io(X,B){var I=X.map,ee=I.get(B);ee&&cr(ee)&&(Bi.push(ee),I.delete(B))}var tr=new Set,Ur=function(X){function B(I){void 0===I&&(I={});var ee=X.call(this)||this;return ee.watches=new Set,ee.typenameDocumentCache=new Map,ee.makeVar=Ui.QS,ee.txCount=0,ee.config=function Ut(X){return(0,li.o)(Te,X)}(I),ee.addTypename=!!ee.config.addTypename,ee.policies=new _i({cache:ee,dataIdFromObject:ee.config.dataIdFromObject,possibleTypes:ee.config.possibleTypes,typePolicies:ee.config.typePolicies}),ee.init(),ee}return(0,zn.ZT)(B,X),B.prototype.init=function(){var I=this.data=new Ot.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=I.stump,this.resetResultCache()},B.prototype.resetResultCache=function(I){var ee=this,Pe=this.storeReader;this.storeWriter=new Hi(this,this.storeReader=new Ei({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:On(this.config),canon:I?void 0:Pe&&Pe.canon})),this.maybeBroadcastWatch=(0,j.re)(function(Ze,at){return ee.broadcastWatch(Ze,at)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(Ze){var at=Ze.optimistic?ee.optimisticData:ee.data;if(Vn(at))return at.makeCacheKey(Ze.query,Ze.callback,(0,Hn.B)({optimistic:Ze.optimistic,rootId:Ze.rootId,variables:Ze.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(Ze){return Ze.resetCaching()})},B.prototype.restore=function(I){return this.init(),I&&this.data.replace(I),this},B.prototype.extract=function(I){return void 0===I&&(I=!1),(I?this.optimisticData:this.data).extract()},B.prototype.read=function(I){var ee=I.returnPartialData,Pe=void 0!==ee&ⅇtry{return this.storeReader.diffQueryAgainstStore((0,zn.pi)((0,zn.pi)({},I),{store:I.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:Pe})).result||null}catch(Ze){if(Ze instanceof st)return null;throw Ze}},B.prototype.write=function(I){try{return++this.txCount,this.storeWriter.writeToStore(this.data,I)}finally{!--this.txCount&&!1!==I.broadcast&&this.broadcastWatches()}},B.prototype.modify=function(I){if(L.call(I,"id")&&!I.id)return!1;var ee=I.optimistic?this.optimisticData:this.data;try{return++this.txCount,ee.modify(I.id||"ROOT_QUERY",I.fields)}finally{!--this.txCount&&!1!==I.broadcast&&this.broadcastWatches()}},B.prototype.diff=function(I){return this.storeReader.diffQueryAgainstStore((0,zn.pi)((0,zn.pi)({},I),{store:I.optimistic?this.optimisticData:this.data,rootId:I.id||"ROOT_QUERY",config:this.config}))},B.prototype.watch=function(I){var ee=this;return this.watches.size||(0,Ui._v)(this),this.watches.add(I),I.immediate&&this.maybeBroadcastWatch(I),function(){ee.watches.delete(I)&&!ee.watches.size&&(0,Ui.li)(ee),ee.maybeBroadcastWatch.forget(I)}},B.prototype.gc=function(I){Hn.B.reset();var ee=this.optimisticData.gc();return I&&!this.txCount&&(I.resetResultCache?this.resetResultCache(I.resetResultIdentities):I.resetResultIdentities&&this.storeReader.resetCanon()),ee},B.prototype.retain=function(I,ee){return(ee?this.optimisticData:this.data).retain(I)},B.prototype.release=function(I,ee){return(ee?this.optimisticData:this.data).release(I)},B.prototype.identify=function(I){if((0,bt.Yk)(I))return I.__ref;try{return this.policies.identify(I)[0]}catch(ee){__DEV__&&Zn.kG.warn(ee)}},B.prototype.evict=function(I){if(!I.id){if(L.call(I,"id"))return!1;I=(0,zn.pi)((0,zn.pi)({},I),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(I,this.data)}finally{!--this.txCount&&!1!==I.broadcast&&this.broadcastWatches()}},B.prototype.reset=function(I){var ee=this;return this.init(),Hn.B.reset(),I&&I.discardWatches?(this.watches.forEach(function(Pe){return ee.maybeBroadcastWatch.forget(Pe)}),this.watches.clear(),(0,Ui.li)(this)):this.broadcastWatches(),Promise.resolve()},B.prototype.removeOptimistic=function(I){var ee=this.optimisticData.removeLayer(I);ee!==this.optimisticData&&(this.optimisticData=ee,this.broadcastWatches())},B.prototype.batch=function(I){var Nt,ee=this,Pe=I.update,Ze=I.optimistic,at=void 0===Ze||Ze,Yt=I.removeOptimistic,Gt=I.onWatchUpdated,sn=function(gn){var Yn=ee.data,Rn=ee.optimisticData;++ee.txCount,gn&&(ee.data=ee.optimisticData=gn);try{return Nt=Pe(ee)}finally{--ee.txCount,ee.data=Yn,ee.optimisticData=Rn}},ln=new Set;return Gt&&!this.txCount&&this.broadcastWatches((0,zn.pi)((0,zn.pi)({},I),{onWatchUpdated:function(gn){return ln.add(gn),!1}})),"string"==typeof at?this.optimisticData=this.optimisticData.addLayer(at,sn):!1===at?sn(this.data):sn(),"string"==typeof Yt&&(this.optimisticData=this.optimisticData.removeLayer(Yt)),Gt&&ln.size?(this.broadcastWatches((0,zn.pi)((0,zn.pi)({},I),{onWatchUpdated:function(gn,wn){var Yn=Gt.call(this,gn,wn);return!1!==Yn&&ln.delete(gn),Yn}})),ln.size&&ln.forEach(function(gn){return ee.maybeBroadcastWatch.dirty(gn)})):this.broadcastWatches(I),Nt},B.prototype.performTransaction=function(I,ee){return this.batch({update:I,optimistic:ee||null!==ee})},B.prototype.transformDocument=function(I){if(this.addTypename){var ee=this.typenameDocumentCache.get(I);return ee||(ee=(0,Zt.Gw)(I),this.typenameDocumentCache.set(I,ee),this.typenameDocumentCache.set(ee,ee)),ee}return I},B.prototype.broadcastWatches=function(I){var ee=this;this.txCount||this.watches.forEach(function(Pe){return ee.maybeBroadcastWatch(Pe,I)})},B.prototype.broadcastWatch=function(I,ee){var Pe=I.lastDiff,Ze=this.diff(I);ee&&(I.optimistic&&"string"==typeof ee.optimistic&&(Ze.fromOptimisticTransaction=!0),ee.onWatchUpdated&&!1===ee.onWatchUpdated.call(this,I,Ze,Pe))||(!Pe||!(0,_e.D)(Pe.result,Ze.result))&&I.callback(I.lastDiff=Ze,Pe)},B}(ze);function wi(X){return void 0===X&&(X=!1),{keyArgs:X,read:function(B,I){var ee=I.canRead,Pe=I.readField;if(!B)return B;var Ze=[],at="",Yt="";B.edges.forEach(function(ln){ee(Pe("node",ln))&&(Ze.push(ln),ln.cursor&&(at=at||ln.cursor||"",Yt=ln.cursor||Yt))});var Gt=B.pageInfo||{},Nt=Gt.startCursor,sn=Gt.endCursor;return(0,zn.pi)((0,zn.pi)({},Vo(B)),{edges:Ze,pageInfo:(0,zn.pi)((0,zn.pi)({},B.pageInfo),{startCursor:Nt||at,endCursor:sn||Yt})})},merge:function(B,I,ee){var Pe=ee.args,Ze=ee.isReference,at=ee.readField;if(B||(B={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!I)return B;var Yt=I.edges?I.edges.map(function(uo){return Ze(uo=(0,zn.pi)({},uo))&&(uo.cursor=at("cursor",uo)),uo}):[];if(I.pageInfo){var Gt=I.pageInfo,Nt=Gt.startCursor,sn=Gt.endCursor,ln=Yt[0],gn=Yt[Yt.length-1];ln&&Nt&&(ln.cursor=Nt),gn&&sn&&(gn.cursor=sn);var wn=ln&&ln.cursor;wn&&!Nt&&(I=(0,oi.Ee)(I,{pageInfo:{startCursor:wn}}));var Yn=gn&&gn.cursor;Yn&&!sn&&(I=(0,oi.Ee)(I,{pageInfo:{endCursor:Yn}}))}var Rn=B.edges,Xn=[];if(Pe&&Pe.after)(ai=Rn.findIndex(function(uo){return uo.cursor===Pe.after}))>=0&&(Rn=Rn.slice(0,ai+1));else if(Pe&&Pe.before){var ai;Xn=(ai=Rn.findIndex(function(bs){return bs.cursor===Pe.before}))<0?Rn:Rn.slice(ai),Rn=[]}else I.edges&&(Rn=[]);var Di=(0,zn.ev)((0,zn.ev)((0,zn.ev)([],Rn,!0),Yt,!0),Xn,!0),di=(0,zn.pi)((0,zn.pi)({},I.pageInfo),B.pageInfo);if(I.pageInfo){var ri=I.pageInfo,ci=ri.hasPreviousPage,Go=ri.hasNextPage,lo=(Nt=ri.startCursor,sn=ri.endCursor,(0,zn._T)(ri,["hasPreviousPage","hasNextPage","startCursor","endCursor"]));Object.assign(di,lo),Rn.length||(void 0!==ci&&(di.hasPreviousPage=ci),void 0!==Nt&&(di.startCursor=Nt)),Xn.length||(void 0!==Go&&(di.hasNextPage=Go),void 0!==sn&&(di.endCursor=sn))}return(0,zn.pi)((0,zn.pi)((0,zn.pi)({},Vo(B)),Vo(I)),{edges:Di,pageInfo:di})}}}var Vo=function(X){return(0,zn._T)(X,vs)},vs=["edges","pageInfo"];const Or={Gene:{fields:{comments:wi(),revisions:wi(),events:wi(),variants:wi()}},Query:{fields:{browseGenes:wi(["entrezSymbol","drugName","geneAlias","diseaseName"]),browseVariants:wi(["variantName","entrezSymbol","diseaseName","drugName","variantTypeId","variantGroupId"]),browseVariantGroups:wi(["name","geneNames","variantNames","variantId"]),browseSources:wi(["name","year","sourceType","citationId","author","journal","clinicalTrialId","id"]),sourceSuggestions:wi(["sourceType","citationId","sourceId","geneName","variantName","diseaseName","comment","submitter","citation","status","submitterId"]),browseDiseases:wi(["name","doid","geneNames","id"]),events:wi(["subject","organizationId","originatingUserId","eventType"]),variants:wi(["geneId","name","evidenceStatusFilter"]),comments:wi(["originatingUserId","subject"]),evidenceItems:wi(["diseaseName","drugName","id","description","evidenceLevel","evidenceDirection","clinicalSignificance","evidenceType","evidenceRating","variantOrigin","variantId","assertionId","organizationId","userId","phenotypeId","diseaseId","drugId","sourceId","geneSymbol","variantName","status","clinicalTrialId"]),assertions:wi(["diseaseName","drugName","id","name","summary","assertionDirection","clinicalSignificance","assertionType","variantId","ampLevel","geneName","variantName","evidenceId","organizationId","userId","phenotypeId","diseaseId","drugId","status"]),organizations:wi(["name","id"]),flags:wi(["flaggable","flaggingUserId","resolvingUserId","state"]),phenotypes:wi(["hpoId","name","id"]),variantTypes:wi(["soid","name","id"]),drugs:wi(["ncitId","name","id"]),clinicalTrials:wi(["nctId","name","id"]),notifications:wi(["notificationReason","subscriptionId","originatingObject","eventType","originatingUserId","organizationId","includeRead"]),revisions:wi(["subject","status","originatingUserId","fieldName","revisionsetId"]),users:wi(["userName","orgName","userRole"])}}},Ir={__schema:{types:[{kind:"UNION",name:"CommentBodySegment",possibleTypes:[{name:"CommentTagSegment"},{name:"CommentTextSegment"},{name:"User"}]},{kind:"INTERFACE",name:"Commentable",possibleTypes:[{name:"Assertion"},{name:"EvidenceItem"},{name:"Flag"},{name:"Gene"},{name:"Revision"},{name:"Source"},{name:"SourcePopover"},{name:"Variant"},{name:"VariantGroup"}]},{kind:"INTERFACE",name:"EventOriginObject",possibleTypes:[{name:"Assertion"},{name:"Comment"},{name:"EvidenceItem"},{name:"Flag"},{name:"Revision"},{name:"SourceSuggestion"},{name:"Variant"}]},{kind:"INTERFACE",name:"EventSubject",possibleTypes:[{name:"Assertion"},{name:"EvidenceItem"},{name:"Gene"},{name:"Revision"},{name:"Source"},{name:"SourcePopover"},{name:"SourceSuggestion"},{name:"Variant"},{name:"VariantGroup"}]},{kind:"INTERFACE",name:"Flaggable",possibleTypes:[{name:"Assertion"},{name:"EvidenceItem"},{name:"Gene"},{name:"Variant"},{name:"VariantGroup"}]},{kind:"UNION",name:"ModeratedField",possibleTypes:[{name:"ObjectField"},{name:"ScalarField"}]},{kind:"UNION",name:"ModeratedFieldDiff",possibleTypes:[{name:"ObjectFieldDiff"},{name:"ScalarFieldDiff"}]},{kind:"INTERFACE",name:"WithRevisions",possibleTypes:[{name:"Assertion"},{name:"EvidenceItem"},{name:"Gene"},{name:"Variant"},{name:"VariantGroup"}]}]}},Gr=Or;function Vr(X){let B=X.create({uri:"/api/graphql",withCredentials:!0});return{link:new mo.i((ee,Pe)=>(ee.setContext({headers:{"Civic-Client-Name":"civic-frontend"}}),Pe(ee))).concat(B),cache:new Ur({possibleTypes:Cs(Ir),typePolicies:Gr}),defaultOptions:{watchQuery:{fetchPolicy:"cache-first",errorPolicy:"all",notifyOnNetworkStatusChange:!1}}}}let lr=(()=>{class X{}return X.\u0275fac=function(I){return new(I||X)},X.\u0275mod=o.oAB({type:X}),X.\u0275inj=o.cJS({providers:[{provide:ji.zu,useFactory:Vr,deps:[Uo]}]}),X})();const Cs=X=>{const B={};return X.__schema.types.forEach(I=>{I.possibleTypes&&(B[I.name]=I.possibleTypes.map(ee=>ee.name))}),B};var ur=c(3618);let Ar=(()=>{class X{}return X.\u0275fac=function(I){return new(I||X)},X.\u0275mod=o.oAB({type:X}),X.\u0275inj=o.cJS({imports:[[l.ez,C.WG,Ho.L,wo.sL,qi.Qp,ur.ZJ]]}),X})();var qs=c(7026),hr=c(4182),Lr=c(8776);const H={extras:{immutable:!0},validationMessages:[{name:"required",message:"This field is required."},{name:"minlength",message:(X,B)=>{var I;return`This field has a minimum length of ${null===(I=B.templateOptions)||void 0===I?void 0:I.minLength}.`}},{name:"maxlength",message:(X,B)=>{var I;return`This field has a maximum length of ${null===(I=B.templateOptions)||void 0===I?void 0:I.maxLength}.`}},{name:"min",message:(X,B)=>{var I;return`This field has a minimum value of ${null===(I=B.templateOptions)||void 0===I?void 0:I.min}.`}},{name:"max",message:(X,B)=>{var I;return`This field has a maximum value of ${null===(I=B.templateOptions)||void 0===I?void 0:I.max}.`}},{name:"pattern",message:(X,B)=>{var I;return`This field's value must fit the pattern ${null===(I=B.templateOptions)||void 0===I?void 0:I.pattern}.`}},{name:"integer",message:(X,B)=>"Value must be an integer."},{name:"nucleotide",message:(X,B)=>"Value must only contain A, C, T, G, and/or /."},{name:"clinvar",message:(X,B)=>"Value must be an integer."}],validators:[{name:"integer",validation:(X,B)=>""===X.value||null==X.value||/^\d+$/.test(X.value)?null:{integer:!0}},{name:"nucleotide",validation:(X,B)=>""===X.value||null==X.value||/^[ACTG\/]+$/.test(X.value)?null:{nucleotide:!0}},{name:"clinvar",validation:(X,B)=>{for(var I of X.value)if(""!==I&&null!=I&&!/^\d+$/.test(I))return{clinvar:!0};return null}}],extensions:[{name:"has-focus",extension:{prePopulate(X){var B;(null===(B=X.expressionProperties)||void 0===B?void 0:B.hasFocus)||(X.expressionProperties=Object.assign(Object.assign({},X.expressionProperties),{"templateOptions.hasFocus":(I,ee,Pe)=>Pe.focus}))}}}]};var q=c(9139);let be=(()=>{class X{}return X.\u0275fac=function(I){return new(I||X)},X.\u0275mod=o.oAB({type:X}),X.\u0275inj=o.cJS({imports:[[l.ez,hr.u5,hr.UX,C.WG,Lr.X0.forRoot(H),q.u],hr.u5,hr.UX,Lr.X0,q.u]}),X})(),$e=(()=>{class X{handleError(I){/Loading chunk [\d]+ failed/.test(I.message)&&confirm("There is an updated version of CiVIC available. Click OK to reload.")&&window.location.reload()}}return X.\u0275fac=function(I){return new(I||X)},X.\u0275prov=o.Yz7({token:X,factory:X.\u0275fac}),X})();function ht(X){return()=>X.get("/api/status")}(0,l.qS)(A);let $t=(()=>{class X{}return X.\u0275fac=function(I){return new(I||X)},X.\u0275mod=o.oAB({type:X,bootstrap:[po]}),X.\u0275inj=o.cJS({providers:[E.N,{provide:o.qLn,useClass:$e},{provide:Ci.u7,useValue:Ci.iF},{provide:o.ip1,useFactory:ht,deps:[b.eN],multi:!0}],imports:[[Wi,D.PW,r.b2,lr,b.JF,b.PD,b.Ed,Mn.f9.forRoot({timestampFormat:"mediumTime",level:oo.N.production?Mn._z.OFF:Mn._z.TRACE,enableSourceMaps:!0,serverLogLevel:Mn._z.ERROR}),jn.s,Si.PV.forRoot(ke),C.WG,dn.$L.forRoot({formatter:{provide:dn.KP,useClass:qs.x}}),be,Ar]]}),X})();oo.N.production&&(0,o.G48)(),r.q6().bootstrapModule($t).catch(X=>console.error(X))},3793:(Ft,Oe,c)=>{c.d(Oe,{F:()=>A,w:()=>m});var r=c(2916),o=c(1086),l=c(4850),K=c(5e3);let m=(()=>{class b{transform(C,E){return C instanceof r.y||(C=(0,o.of)(C)),C.pipe((0,l.U)(S=>this.toOptions(S,E||{})))}toOptions(C,E){const S=[],w={},z=E.templateOptions||{};return z._flatOptions=!0,C.map(M=>{this.getGroupProp(M,z)?(z._flatOptions=!1,w[this.getGroupProp(M,z)]||(w[this.getGroupProp(M,z)]=[],S.push({label:this.getGroupProp(M,z),group:w[this.getGroupProp(M,z)]})),w[this.getGroupProp(M,z)].push(this.toOption(M,z))):S.push(this.toOption(M,z))}),S}toOption(C,E){return{label:this.getLabelProp(C,E),value:this.getValueProp(C,E),disabled:this.getDisabledProp(C,E)||!1}}getLabelProp(C,E){return"function"==typeof E.labelProp?E.labelProp(C):this.shouldUseLegacyOption(C,E)?(console.warn("NgxFormly: legacy select option '{key, value}' is deprecated since v5.5, use '{value, label}' instead."),C.value):C[E.labelProp||"label"]}getValueProp(C,E){return"function"==typeof E.valueProp?E.valueProp(C):this.shouldUseLegacyOption(C,E)?C.key:C[E.valueProp||"value"]}getDisabledProp(C,E){return"function"==typeof E.disabledProp?E.disabledProp(C):C[E.disabledProp||"disabled"]}getGroupProp(C,E){return"function"==typeof E.groupProp?E.groupProp(C):C[E.groupProp||"group"]}shouldUseLegacyOption(C,E){return!E.valueProp&&!E.labelProp&&null!=C&&"object"==typeof C&&"key"in C&&"value"in C}}return b.\u0275fac=function(C){return new(C||b)},b.\u0275pipe=K.Yjl({name:"formlySelectOptions",type:b,pure:!0}),b})(),A=(()=>{class b{}return b.\u0275fac=function(C){return new(C||b)},b.\u0275mod=K.oAB({type:b}),b.\u0275inj=K.cJS({}),b})()},8776:(Ft,Oe,c)=>{c.d(Oe,{hv:()=>Ge,fS:()=>Dt,n2:()=>St,VQ:()=>un,cw:()=>_n,T7:()=>yn,X0:()=>Jt,u_:()=>xt});var r=c(9808),o=c(5e3);function A(te,T){var p={};for(var h in te)Object.prototype.hasOwnProperty.call(te,h)&&T.indexOf(h)<0&&(p[h]=te[h]);if(null!=te&&"function"==typeof Object.getOwnPropertySymbols){var y=0;for(h=Object.getOwnPropertySymbols(te);yEe[et]||{},h.model)[y]}else!function Ve(te,T,p){for(let h=0;h{for(let h in p)Mt(te[h])||Y(te[h])?te[h]=vt(p[h]):Q(te[h],p[h])&&yt(te[h],p[h])}),te}function Mt(te){return null==te}function Ke(te){return void 0===te}function Y(te){return""===te}function G(te){return"function"==typeof te}function Q(te,T){return Fe(te)&&Fe(T)&&Object.getPrototypeOf(te)===Object.getPrototypeOf(T)&&!(Array.isArray(te)||Array.isArray(T))}function Fe(te){return null!=te&&"object"==typeof te}function vt(te){if(!Fe(te)||(0,rt.b)(te)||te instanceof o.Rgc||te.changingThisBreaksApplicationSecurity||-1!==["RegExp","FileList","File","Blob"].indexOf(te.constructor.name))return te;if(te instanceof Set)return new Set(te);if(te instanceof Map)return new Map(te);if(te._isAMomentObject&&G(te.clone))return te.clone();if(te instanceof We.TO)return null;if(te instanceof Date)return new Date(te.getTime());if(Array.isArray(te))return te.slice(0).map(h=>vt(h));const T=Object.getPrototypeOf(te);let p=Object.create(T);return p=Object.setPrototypeOf(p,T),Object.keys(te).reduce((h,y)=>{const R=Object.getOwnPropertyDescriptor(te,y);return R.get?Object.defineProperty(h,y,R):h[y]=vt(te[y]),h},p)}function Tt(te,T,p){Object.defineProperty(te,T,{enumerable:!1,writable:!0,configurable:!0}),te[T]=p}function je(te,T,p){te._observers||Tt(te,"_observers",{}),te._observers[T]||(te._observers[T]=[]);let h=te._observers[T];return-1===h.indexOf(p)&&(h.push(p),p({currentValue:te[T],firstChange:!0}),1===h.length&&(Tt(te,`___$${T}`,te[T]),Object.defineProperty(te,T,{configurable:!0,get:()=>te[`___$${T}`],set:y=>{if(y!==te[`___$${T}`]){const R=te[`___$${T}`];te[`___$${T}`]=y,h.forEach(Ee=>Ee({previousValue:R,currentValue:y,firstChange:!1}))}}}))),()=>h.splice(h.indexOf(p),1)}const zt=new o.OlP("FORMLY_CONFIG");class jt{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.templateManipulators={preWrapper:[],postWrapper:[]},this.extras={checkExpressionOn:"changeDetectionCheck",lazyRender:!1,showError:function(T){return T.formControl&&T.formControl.invalid&&(T.formControl.touched||T.options.parentForm&&T.options.parentForm.submitted||!(!T.field.validation||!T.field.validation.show))}},this.extensions={}}addConfig(T){T.types&&T.types.forEach(p=>this.setType(p)),T.validators&&T.validators.forEach(p=>this.setValidator(p)),T.wrappers&&T.wrappers.forEach(p=>this.setWrapper(p)),T.manipulators&&(console.warn("NgxFormly: passing 'manipulators' config is deprecated, use custom extension instead."),T.manipulators.forEach(p=>this.setManipulator(p))),T.validationMessages&&T.validationMessages.forEach(p=>this.addValidatorMessage(p.name,p.message)),T.extensions&&T.extensions.forEach(p=>this.extensions[p.name]=p.extension),T.extras&&(this.extras=Object.assign({},this.extras,T.extras))}setType(T){Array.isArray(T)?T.forEach(p=>this.setType(p)):(this.types[T.name]||(this.types[T.name]={name:T.name}),["component","extends","defaultOptions","wrappers"].forEach(p=>{T.hasOwnProperty(p)&&(this.types[T.name][p]=T[p])}))}getType(T){if(!this.types[T])throw new Error(`[Formly Error] The type "${T}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.mergeExtendedType(T),this.types[T]}getMergedField(T={}){const p=this.getType(T.type);p.defaultOptions&&yt(T,p.defaultOptions);const h=p.extends&&this.getType(p.extends).defaultOptions;h&&yt(T,h),T&&T.optionsTypes&&T.optionsTypes.forEach(R=>{const Ee=this.getType(R).defaultOptions;Ee&&yt(T,Ee)});const y=this.resolveFieldTypeRef(T);y&&y.instance&&y.instance.defaultOptions&&yt(T,y.instance.defaultOptions),!T.wrappers&&p.wrappers&&(T.wrappers=[...p.wrappers])}resolveFieldTypeRef(T={}){if(!T.type)return null;const p=this.getType(T.type);if(!p.component||p._componentRef)return p._componentRef;const{_resolver:h,_injector:y}=T.parent.options,R=h.resolveComponentFactory(p.component).create(y);return Tt(p,"_componentRef",R),R.destroy(),p._componentRef}setWrapper(T){this.wrappers[T.name]=T,T.types&&T.types.forEach(p=>{this.setTypeWrapper(p,T.name)})}getWrapper(T){if(!this.wrappers[T])throw new Error(`[Formly Error] The wrapper "${T}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[T]}setTypeWrapper(T,p){this.types[T]||(this.types[T]={}),this.types[T].wrappers||(this.types[T].wrappers=[]),-1===this.types[T].wrappers.indexOf(p)&&this.types[T].wrappers.push(p)}setValidator(T){this.validators[T.name]=T}getValidator(T){if(!this.validators[T])throw new Error(`[Formly Error] The validator "${T}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[T]}addValidatorMessage(T,p){this.messages[T]=p}getValidatorMessage(T){return this.messages[T]}setManipulator(T){(new T.class)[T.method](this)}mergeExtendedType(T){if(!this.types[T].extends)return;const p=this.getType(this.types[T].extends);this.types[T].component||(this.types[T].component=p.component),this.types[T].wrappers||(this.types[T].wrappers=p.wrappers)}}jt.\u0275fac=function(T){return new(T||jt)},jt.\u0275prov=o.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"}),jt.ngInjectableDef=(0,o.Ez6)({factory:function(){return new jt},token:jt,providedIn:"root"});class Bt{constructor(T,p,h){this.formlyConfig=T,this.componentFactoryResolver=p,this.injector=h}buildForm(T,p=[],h,y){if(!this.formlyConfig.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");const R={fieldGroup:p,model:h,formControl:T,options:this._setOptions(y)};(function pt(te,T){const p=te._updateTreeValidity.bind(te);te._updateTreeValidity=()=>{},T(),te._updateTreeValidity=p})(T,()=>this._buildForm(R)),R.options._checkField(R,!0)}_buildForm(T){this.getExtensions().forEach(p=>p.prePopulate&&p.prePopulate(T)),this.getExtensions().forEach(p=>p.onPopulate&&p.onPopulate(T)),T.fieldGroup&&T.fieldGroup.forEach(p=>this._buildForm(p)),this.getExtensions().forEach(p=>p.postPopulate&&p.postPopulate(T))}getExtensions(){return Object.keys(this.formlyConfig.extensions).map(T=>this.formlyConfig.extensions[T])}_setOptions(T){return(T=T||{}).formState=T.formState||{},T.showError||(T.showError=this.formlyConfig.extras.showError),T.fieldChanges||Tt(T,"fieldChanges",new wt.xQ),T._resolver||Tt(T,"_resolver",this.componentFactoryResolver),T._injector||Tt(T,"_injector",this.injector),T._hiddenFieldsForCheck||(T._hiddenFieldsForCheck=[]),T._markForCheck||(T._markForCheck=p=>{p._componentRefs&&p._componentRefs.forEach(h=>{h.injector.get(o.sBO).markForCheck()}),p.fieldGroup&&p.fieldGroup.forEach(h=>T._markForCheck(h))}),T._buildField||(T._buildField=p=>(this.buildForm(p.form,p.fieldGroup,p.model,p.options),p)),T}}function vn(te,T=!1){const p=te.formControl,h=p._fields?p._fields.indexOf(te):-1;-1!==h&&p._fields.splice(h,1);const y=p.parent;if(!y)return;const R={emitEvent:T};if(y instanceof We.Oe){const Ee=y.controls.findIndex(et=>et===p);-1!==Ee&&Gn(y,R,()=>y.removeAt(Ee))}else if(y instanceof We.cw){const Ee=ot(te),et=Ee[Ee.length-1];y.get([et])===p&&Gn(y,R,()=>y.removeControl(et))}p.setParent(null)}function cn(te){if(te.formControl)return te.formControl;if(!1===te.shareFormControl)return null;const T=te.parent.formControl;return T?T.get(ot(te)):null}function an(te,T,p=!1){(T=T||te.formControl)._fields||Tt(T,"_fields",[]),-1===T._fields.indexOf(te)&&T._fields.push(te),!te.formControl&&T&&(Tt(te,"formControl",T),T.setValidators(null),T.setAsyncValidators(null),te.templateOptions.disabled=!!te.templateOptions.disabled,je(te.templateOptions,"disabled",({firstChange:et,currentValue:gt})=>{et||(gt?te.formControl.disable():te.formControl.enable())}),T.registerOnDisabledChange&&T.registerOnDisabledChange(et=>{te.templateOptions.___$disabled=et,te.options&&te.options._markForCheck(te)}));let h=te.parent.formControl;if(!h||!te.key)return;const y=ot(te),R=ye(te);(!Mt(T.value)||!Mt(R))&&T.value!==R&&T instanceof We.NI&&T.patchValue(R);for(let et=0;eth.setControl(gt,new We.cw({}))),h=h.get([gt])}const Ee=y[y.length-1];!te._hide&&h.get([Ee])!==T&&Gn(h,{emitEvent:p},()=>h.setControl(Ee,T))}function nn(te,T=!1){const p=te.status,h=te.value;te.updateValueAndValidity({emitEvent:!1,onlySelf:T}),p!==te.status&&te.statusChanges.emit(te.status),h!==te.value&&te.valueChanges.emit(te.value)}function Gn(te,T,p){te instanceof We.cw&&!te.__patchForEachChild&&(Tt(te,"__patchForEachChild",!0),te._forEachChild=y=>{Object.keys(te.controls).forEach(R=>te.controls[R]&&y(te.controls[R],R))});const h=te.updateValueAndValidity.bind(te);!1===T.emitEvent&&(te.updateValueAndValidity=y=>{h(Object.assign({},y||{},{emitEvent:!1}))}),p(),!1===T.emitEvent&&(te.updateValueAndValidity=h)}function xn(te){te._fields&&delete te._fields,te.setValidators(null),te.setAsyncValidators(null),(te instanceof We.cw||te instanceof We.Oe)&&Object.keys(te.controls).forEach(T=>xn(te.controls[T]))}Bt.\u0275fac=function(T){return new(T||Bt)(o.LFG(jt),o.LFG(o._Vd),o.LFG(o.zs3))},Bt.\u0275prov=o.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt.ngInjectableDef=(0,o.Ez6)({factory:function(){return new Bt((0,o.f3M)(jt),(0,o.f3M)(o._Vd),(0,o.f3M)(o.gxx))},token:Bt,providedIn:"root"});let yn=(()=>{class te{constructor(p,h,y,R,Ee){this.formlyBuilder=p,this.formlyConfig=h,this.ngZone=y,this.parentFormGroup=Ee,this.modelChange=new o.vpe,this.immutable=!1,this._modelChangeValue={},this.modelChangeSubs=[],this.modelChange$=new wt.xQ,this.modelChangeSub=this.modelChange$.pipe((0,U.w)(()=>this.ngZone.onStable.asObservable().pipe((0,J.q)(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=vt(this.model))})),null!==R&&console.warn("NgxFormly: passing 'immutable' attribute to 'formly-form' component is deprecated since v5.5, enable immutable mode through NgModule declaration instead."),this.immutable=null!==R||!!h.extras.immutable}set model(p){this._model=this.immutable?vt(p):p}get model(){return this._model||(this._model={}),this._model}set fields(p){this._fields=this.immutable?vt(p):p}get fields(){return this._fields||[]}set options(p){this._options=this.immutable?vt(p):p}get options(){return this._options}set content(p){if(p){let h=!1,y=p.nativeElement.nextSibling;for(;y&&!h;)(y.nodeType===Node.ELEMENT_NODE||y.nodeType===Node.TEXT_NODE&&y.textContent&&""!==y.textContent.trim())&&(h=!0),y=y.nextSibling;h&&console.warn("NgxFormly: content projection for 'formly-form' component is deprecated since v5.5, you should avoid passing content inside the 'formly-form' tag.")}}ngDoCheck(){"changeDetectionCheck"===this.formlyConfig.extras.checkExpressionOn&&this.checkExpressionChange()}ngOnChanges(p){p.model&&this.field&&(this.field.model=this.model),p.fields&&this.form&&xn(this.form),(p.fields||p.form||p.model&&this._modelChangeValue!==p.model.currentValue)&&(this.form=this.form||new We.cw({}),this.setOptions(),this.options.updateInitialValue(),this.clearModelSubscriptions(),this.formlyBuilder.buildForm(this.form,this.fields,this.model,this.options),this.trackModelChanges(this.fields))}ngOnDestroy(){this.modelChangeSub.unsubscribe(),this.clearModelSubscriptions()}changeModel({value:h,field:y}){Ne(y,h),this.modelChange$.next()}setOptions(){this.options||(this.options={}),this.options.resetModel||(this.options.resetModel=p=>{p=vt(Mt(p)?this.options._initialModel:p),this.model&&(Object.keys(this.model).forEach(h=>delete this.model[h]),Object.assign(this.model,p||{})),this.options._buildForm(),this.options.parentForm&&this.options.parentForm.control===this.form?this.options.parentForm.resetForm(this.model):this.form.reset(this.model)}),!this.options.parentForm&&this.parentFormGroup&&(Tt(this.options,"parentForm",this.parentFormGroup),je(this.options.parentForm,"submitted",({firstChange:p})=>{p||(this.checkExpressionChange(),this.options._markForCheck({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options}))})),this.options.updateInitialValue||(this.options.updateInitialValue=()=>this.options._initialModel=vt(this.model)),this.options._buildForm||(this.options._buildForm=(p=!1)=>{this.clearModelSubscriptions(),this.formlyBuilder.buildForm(this.form,this.fields,this.model,this.options),this.trackModelChanges(this.fields),p&&this.modelChange.emit(this._modelChangeValue=vt(this.model))})}checkExpressionChange(){this.options&&this.options._checkField&&this.options._checkField({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options})}trackModelChanges(p,h=[]){p.forEach(y=>{if(y.key&&!y.fieldGroup&&y.formControl){const R=y.formControl;let Ee=R.valueChanges.pipe((0,Me.x)((_t,Rt)=>!(_t!==Rt||Array.isArray(_t)||Fe(_t))));const{updateOn:et,debounce:gt}=y.modelOptions;(!et||"change"===et)&>&>.default>0&&(Ee=R.valueChanges.pipe((0,se.b)(gt.default))),this.modelChangeSubs.push(Ee.subscribe(_t=>{R instanceof We.NI&&R._fields&&R._fields.length>1&&R.patchValue(_t,{emitEvent:!1,onlySelf:!0}),y.parsers&&y.parsers.length>0&&y.parsers.forEach(Rt=>_t=Rt(_t)),this.changeModel({key:[...h,...ot(y)].join("."),value:_t,field:y})}));const Qe=R.valueChanges.observers;Qe&&Qe.length>1&&Qe.unshift(Qe.pop())}y.fieldGroup&&y.fieldGroup.length>0&&this.trackModelChanges(y.fieldGroup,y.key?[...h,...ot(y)]:h)})}clearModelSubscriptions(){this.modelChangeSubs.forEach(p=>p.unsubscribe()),this.modelChangeSubs=[]}get field(){return this.fields&&this.fields[0]&&this.fields[0].parent}}return te.\u0275fac=function(p){return new(p||te)(o.Y36(Bt),o.Y36(jt),o.Y36(o.R0b),o.$8M("immutable"),o.Y36(We.sg,8))},te.\u0275cmp=o.Xpm({type:te,selectors:[["formly-form"]],viewQuery:function(p,h){if(1&p&&o.Gf(It,5),2&p){let y;o.iGM(y=o.CRH())&&(h.content=y.first)}},inputs:{model:"model",fields:"fields",options:"options",form:"form"},outputs:{modelChange:"modelChange"},features:[o._Bn([Bt]),o.TTD],ngContentSelectors:lt,decls:4,vars:1,consts:[["hide-deprecation","",3,"form","options","model","field",4,"ngFor","ngForOf"],["content",""],["hide-deprecation","",3,"form","options","model","field"]],template:function(p,h){1&p&&(o.F$t(),o.YNc(0,Xe,1,4,"formly-field",0),o.ynx(1,null,1),o.Hsn(3),o.BQk()),2&p&&o.Q6J("ngForOf",h.fields)},directives:function(){return[r.sg,_n]},encapsulation:2}),te})(),_n=(()=>{class te{constructor(p,h,y,R,Ee){this.formlyConfig=p,this.renderer=h,this.resolver=y,this.elementRef=R,this.warnDeprecation=!1,this.modelChange=new o.vpe,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.warnDeprecation=null===Ee}set model(p){this.warnDeprecation&&console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}set form(p){this.warnDeprecation&&console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}set options(p){this.warnDeprecation&&console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterContentChecked(){this.triggerHook("afterContentChecked")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngAfterViewChecked(){this.triggerHook("afterViewChecked")}ngDoCheck(){this.triggerHook("doCheck"),this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(p){this.triggerHook("onChanges",p)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(p=>p()),this.hooksObservers.forEach(p=>p()),this.triggerHook("onDestroy")}renderField(p,h,y=[]){if(this.containerRef===p&&(this.resetRefs(this.field),this.containerRef.clear(),y=this.field?this.field.wrappers:[]),y&&y.length>0){const[R,...Ee]=y,{component:et}=this.formlyConfig.getWrapper(R),gt=p.createComponent(this.resolver.resolveComponentFactory(et));this.attachComponentRef(gt,h),je(gt.instance,"fieldComponent",({firstChange:Qe,previousValue:_t,currentValue:Rt})=>{if(Rt){if(_t&&_t._lContainer===Rt._lContainer)return;const qt=_t?_t.detach():null;qt&&!qt.destroyed?Rt.insert(qt):this.renderField(Rt,h,Ee),!Qe&>.changeDetectorRef.detectChanges()}})}else if(h&&h.type){const{component:R}=this.formlyConfig.getType(h.type),Ee=p.createComponent(this.resolver.resolveComponentFactory(R));this.attachComponentRef(Ee,h)}}triggerHook(p,h){if(this.field&&this.field.hooks&&this.field.hooks[p]&&(!h||h.field)){const y=this.field.hooks[p](this.field);if((0,rt.b)(y)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(p)){const R=y.subscribe();this.hooksObservers.push(()=>R.unsubscribe())}}this.field&&this.field.lifecycle&&this.field.lifecycle[p]&&this.field.lifecycle[p](this.field.form,this.field,this.field.model,this.field.options),"onChanges"===p&&h.field&&(this.resetRefs(h.field.previousValue),this.render())}attachComponentRef(p,h){this.componentRefs.push(p),h._componentRefs.push(p),Object.assign(p.instance,{field:h})}render(){if(this.field){if(!this.field.options)return void(this.detectFieldBuild=!0);this.detectFieldBuild=!1,this.hostObservers.forEach(p=>p()),this.hostObservers=[je(this.field,"hide",({firstChange:p,currentValue:h})=>{this.formlyConfig.extras.lazyRender?h?(this.containerRef.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(this.containerRef,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)):(p&&this.renderField(this.containerRef,this.field),(!p||p&&h)&&this.renderer.setStyle(this.elementRef.nativeElement,"display",h?"none":""))}),je(this.field,"className",({firstChange:p,currentValue:h})=>{(!p||p&&h)&&(!this.formlyConfig.extras.lazyRender||!0!==this.field.hide)&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",h)})]}}resetRefs(p){p&&(p._componentRefs?p._componentRefs=p._componentRefs.filter(h=>-1===this.componentRefs.indexOf(h)):Tt(this.field,"_componentRefs",[])),this.componentRefs=[]}}return te.\u0275fac=function(p){return new(p||te)(o.Y36(jt),o.Y36(o.Qsj),o.Y36(o._Vd),o.Y36(o.SBq),o.$8M("hide-deprecation"))},te.\u0275cmp=o.Xpm({type:te,selectors:[["formly-field"]],viewQuery:function(p,h){if(1&p&&o.Gf(ct,7,o.s_b),2&p){let y;o.iGM(y=o.CRH())&&(h.containerRef=y.first)}},inputs:{model:"model",form:"form",options:"options",field:"field"},outputs:{modelChange:"modelChange"},features:[o.TTD],decls:2,vars:0,consts:[["container",""]],template:function(p,h){1&p&&o.YNc(0,Lt,0,0,"ng-template",null,0,o.W1O)},encapsulation:2}),te})(),un=(()=>{class te{constructor(p,h,y){this.renderer=p,this.elementRef=h,this.uiAttributesCache={},this.uiAttributes=null,this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change"],callback:(R,Ee)=>{switch(R){case"focus":return this.onFocus(Ee);case"blur":return this.onBlur(Ee);case"change":return this.onChange(Ee);default:return this.to[R](this.field,Ee)}}},this.document=y}get to(){return this.field.templateOptions||{}}get fieldAttrElements(){return this.field&&this.field._elementRefs||[]}ngOnChanges(p){p.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(h=>h()),this.uiEvents.events.forEach(h=>{(this.to&&this.to[h]||-1!==["focus","blur","change"].indexOf(h))&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,h,y=>this.uiEvents.callback(h,y)))}),this.to&&this.to.attributes&&je(this.to,"attributes",({currentValue:h,previousValue:y})=>{y&&Object.keys(y).forEach(R=>this.removeAttribute(R)),h&&Object.keys(h).forEach(R=>{null!=h[R]&&this.setAttribute(R,h[R])})}),this.detachElementRef(p.field.previousValue),this.attachElementRef(p.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),je(this.field,"focus",({currentValue:h})=>{this.toggleFocus(h)}))),p.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){const p=this.elementRef.nativeElement;this.uiAttributes=[...en,"tabindex","placeholder","readonly","disabled","step"].filter(h=>!p.hasAttribute||!p.hasAttribute(h))}this.uiAttributes.forEach(p=>{const h=this.to[p];this.uiAttributesCache[p]!==h&&(!this.to.attributes||!this.to.attributes.hasOwnProperty(p.toLowerCase()))&&(this.uiAttributesCache[p]=h,h||0===h?this.setAttribute(p,!0===h?p:`${h}`):this.removeAttribute(p))})}ngOnDestroy(){this.uiEvents.listeners.forEach(p=>p()),this.detachElementRef(this.field)}toggleFocus(p){const h=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!h||!h.nativeElement.focus)return;const y=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:R})=>this.document.activeElement===R||R.contains(this.document.activeElement));p&&!y?h.nativeElement.focus():!p&&y&&h.nativeElement.blur()}onFocus(p){this.field.___$focus=!0,this.to.focus&&this.to.focus(this.field,p)}onBlur(p){this.field.___$focus=!1,this.to.blur&&this.to.blur(this.field,p)}onChange(p){this.to.change&&this.to.change(this.field,p),this.field.formControl&&this.field.formControl.markAsDirty()}attachElementRef(p){!p||(p._elementRefs&&-1===p._elementRefs.indexOf(this.elementRef)?p._elementRefs.push(this.elementRef):Tt(p,"_elementRefs",[this.elementRef]))}detachElementRef(p){const h=p&&p._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==h&&this.field._elementRefs.splice(h,1)}setAttribute(p,h){this.renderer.setAttribute(this.elementRef.nativeElement,p,h)}removeAttribute(p){this.renderer.removeAttribute(this.elementRef.nativeElement,p)}}return te.\u0275fac=function(p){return new(p||te)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(r.K0))},te.\u0275dir=o.lG2({type:te,selectors:[["","formlyAttributes",""]],inputs:{field:["formlyAttributes","field"],id:"id"},features:[o.TTD]}),te})(),Dt=(()=>{class te{get model(){return this.field.model}set model(p){console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get form(){return this.field.parent.formControl}set form(p){console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get options(){return this.field.options}set options(p){console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get key(){return this.field.key}get formControl(){return this.field.formControl}get to(){return this.field.templateOptions||{}}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options.formState||{}}}return te.\u0275fac=function(p){return new(p||te)},te.\u0275dir=o.lG2({type:te,inputs:{model:"model",form:"form",options:"options",field:"field"}}),te})(),Ge=(()=>{class te extends Dt{constructor(p){super(),this.defaultOptions={defaultValue:[]},p instanceof Bt&&console.warn(`NgxFormly: passing 'FormlyFormBuilder' to '${this.constructor.name}' type is not required anymore, you may remove it!`)}get formControl(){return this.field.formControl}onPopulate(p){!p.formControl&&p.key&&an(p,cn(p)||new We.Oe([],{updateOn:p.modelOptions.updateOn})),p.fieldGroup=p.fieldGroup||[];const h=p.model?p.model.length:0;if(p.fieldGroup.length>h)for(let y=p.fieldGroup.length-1;y>=h;--y)vn(p.fieldGroup[y]),p.fieldGroup.splice(y,1);for(let y=p.fieldGroup.length;yy.key=`${R}`),this.options._buildForm(!0),h&&this.formControl.markAsDirty()}}return te.\u0275fac=function(p){return new(p||te)(o.Y36(zt,8))},te.\u0275dir=o.lG2({type:te,selectors:[["fieldArray"]],features:[o.qOj]}),te})(),St=(()=>{class te extends Dt{}return te.\u0275fac=function(){let T;return function(h){return(T||(T=o.n5z(te)))(h||te)}}(),te.\u0275dir=o.lG2({type:te,viewQuery:function(p,h){if(1&p&&o.Gf(Ie,5,o.s_b),2&p){let y;o.iGM(y=o.CRH())&&(h.fieldComponent=y.first)}},features:[o.qOj]}),te})(),xe=(()=>{class te extends Dt{constructor(){super(...arguments),this.defaultOptions={defaultValue:{}}}}return te.\u0275fac=function(){let T;return function(h){return(T||(T=o.n5z(te)))(h||te)}}(),te.\u0275cmp=o.Xpm({type:te,selectors:[["formly-group"]],hostVars:2,hostBindings:function(p,h){2&p&&o.Tol(h.field.fieldGroupClassName||"")},features:[o.qOj],ngContentSelectors:lt,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(p,h){1&p&&(o.F$t(),o.YNc(0,Pt,1,1,"formly-field",0),o.Hsn(1)),2&p&&o.Q6J("ngForOf",h.field.fieldGroup)},directives:[r.sg,_n],encapsulation:2}),te})(),xt=(()=>{class te{constructor(p){this.formlyConfig=p}ngOnChanges(){this.errorMessage$=(0,Ae.T)(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe((0,we.h)(({field:p,type:h,property:y})=>p===this.field&&"expressionChanges"===h&&-1!==y.indexOf("validation"))):(0,mt.of)(null)).pipe((0,ue.O)(null),(0,U.w)(()=>(0,rt.b)(this.errorMessage)?this.errorMessage:(0,mt.of)(this.errorMessage)))}get errorMessage(){const p=this.field.formControl;for(let h in p.errors)if(p.errors.hasOwnProperty(h)){let y=this.formlyConfig.getValidatorMessage(h);if(Fe(p.errors[h])){if(p.errors[h].errorPath)return;p.errors[h].message&&(y=p.errors[h].message)}return this.field.validation&&this.field.validation.messages&&this.field.validation.messages[h]&&(y=this.field.validation.messages[h]),this.field.validators&&this.field.validators[h]&&this.field.validators[h].message&&(y=this.field.validators[h].message),this.field.asyncValidators&&this.field.asyncValidators[h]&&this.field.asyncValidators[h].message&&(y=this.field.asyncValidators[h].message),"function"==typeof y?y(p.errors[h],this.field):y}}}return te.\u0275fac=function(p){return new(p||te)(o.Y36(jt))},te.\u0275cmp=o.Xpm({type:te,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[o.TTD],decls:2,vars:3,template:function(p,h){1&p&&(o._uU(0),o.ALo(1,"async")),2&p&&o.Oqu(o.lcZ(1,1,h.errorMessage$))},pipes:[r.Ov],encapsulation:2,changeDetection:0}),te})(),ge=(()=>{class te extends Dt{constructor(p){super(),this.sanitizer=p,this.innerHtml={content:null,template:null}}get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.to.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}}return te.\u0275fac=function(p){return new(p||te)(o.Y36(Ct.H7))},te.\u0275cmp=o.Xpm({type:te,selectors:[["formly-template"]],features:[o.qOj],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(p,h){1&p&&o._UZ(0,"div",0),2&p&&o.Q6J("innerHtml",h.template,o.oJD)},encapsulation:2}),te})();function ut(te,T,p){return te instanceof Function?te.apply(T,p):!!te}class V{prePopulate(T){if(T.parent||T.options._checkField)return;let p=!1;T.options._checkField=(h,y)=>{p||(p=!0,this.checkField(h,y),p=!1)}}postPopulate(T){if(T.parent&&!T._expressionProperties){if(Tt(T,"_expressionProperties",{}),T.expressionProperties)for(const p in T.expressionProperties){const h=T.expressionProperties[p];if("string"==typeof h||G(h))T._expressionProperties[p]={expression:this._evalExpression(p,h,"templateOptions.disabled"===p&&T.parent.expressionProperties&&T.parent.expressionProperties.hasOwnProperty("templateOptions.disabled")?()=>T.parent.templateOptions.disabled:void 0)},"templateOptions.disabled"===p&&Object.defineProperty(T._expressionProperties[p],"expressionValue",{get:()=>T.templateOptions.disabled,set:()=>{},enumerable:!0,configurable:!0});else if(h instanceof kt.y){const y=()=>h.subscribe(gt=>{this.setExprValue(T,p,gt),T.options&&T.options._markForCheck&&T.options._markForCheck(T)});let R=y();const Ee=T.hooks.onInit;T.hooks.onInit=()=>(null===R&&(R=y()),Ee&&Ee(T));const et=T.hooks.onDestroy;T.hooks.onDestroy=()=>{et&&et(T),R.unsubscribe(),R=null}}}T.hideExpression?(delete T.hide,T.hideExpression=this._evalExpression("hide",T.hideExpression,()=>{let p=T.parent;for(;p.parent&&!p.hide;)p=p.parent;return p.hide})):je(T,"hide",({currentValue:p,firstChange:h})=>{T._hide=p,(!h||h&&!0===p)&&T.options._hiddenFieldsForCheck.push(T)})}}_evalExpression(T,p,h){return(...y)=>{try{return"string"==typeof p&&(p=function de(te,T){try{return-1!==te.indexOf("this.field")&&console.warn("NgxFormly: using 'this.field' in expressionProperties is deprecated since v5.1, use 'field' instead."),Function(...T,`return ${te};`)}catch(p){console.error(p)}}(p,["model","formState","field"])),"function"!=typeof p&&(p=()=>!!p),h&&h()||p(...y)}catch(R){throw R.message=`[Formly Error] [Expression "${T}"] ${R.message}`,R}}}checkField(T,p=!1){const h=this._checkField(T,p);T.options._hiddenFieldsForCheck.sort(y=>y.hide?-1:1).forEach(y=>this.toggleFormControl(y,!!y.hide,!p)),T.options._hiddenFieldsForCheck=[],h&&(this.checkField(T),T.options&&T.options._markForCheck&&T.options._markForCheck(T))}_checkField(T,p=!1){let h=!1;return T.fieldGroup.forEach(y=>{!y.options||(this.checkFieldExpressionChange(y,p)&&(h=!0),this.checkFieldVisibilityChange(y,p)&&(T.options._hiddenFieldsForCheck.push(y),h=!0),y.fieldGroup&&y.fieldGroup.length>0&&this._checkField(y,p)&&(h=!0))}),h}checkFieldExpressionChange(T,p){if(!T||!T._expressionProperties)return!1;let h=!1;const y=T._expressionProperties;for(const R in y){let Ee=ut(y[R].expression,{field:T},[T.model,T.options.formState,T,p]);"templateOptions.disabled"===R&&(Ee=!!Ee),(p||y[R].expressionValue!==Ee&&(!Fe(Ee)&&!G(Ee)||G(Ee)&&""+y[R].expressionValue!=""+Ee||(0,rt.b)(Ee)||JSON.stringify(Ee)!==JSON.stringify(y[R].expressionValue)))&&(h=!0,y[R].expressionValue=Ee,this.setExprValue(T,R,Ee))}return h}checkFieldVisibilityChange(T,p){if(!T||Mt(T.hideExpression))return!1;const h=!!ut(T.hideExpression,{field:T},[T.model,T.options.formState,T,p]);let y=!1;return(h!==T.hide||p)&&(y=!0,T.hide=h,T.templateOptions.hidden=h),y}setDisabledState(T,p){T.fieldGroup&&T.fieldGroup.filter(h=>!h.expressionProperties||!h.expressionProperties.hasOwnProperty("templateOptions.disabled")).forEach(h=>this.setDisabledState(h,p)),T.key&&T.templateOptions.disabled!==p&&(T.templateOptions.disabled=p)}toggleFormControl(T,p,h){if(T.fieldGroup&&T.fieldGroup.filter(y=>!y.hideExpression).forEach(y=>this.toggleFormControl(y,p,h)),T.formControl&&T.key){Tt(T,"_hide",!(!p&&!T.hide));const y=T.formControl;y._fields&&y._fields.length>1&&nn(y),!0!==p||y._fields&&!y._fields.every(R=>!!R._hide)?!1===p&&(T.resetOnHide&&T.parent&&!Ke(T.defaultValue)&&Ke(ye(T))&&Ne(T,T.defaultValue),an(T,void 0,!0),T.resetOnHide&&T.fieldArray&&(T.fieldGroup||[]).length!==(T.model||[]).length&&T.options._buildForm(!0)):(vn(T,!0),h&&T.resetOnHide&&(T.formControl.reset({value:void 0,disabled:T.formControl.disabled}),T.fieldGroup&&(Ne(T,void 0),T.formControl instanceof We.Oe&&(T.fieldGroup.length=0))))}T.options.fieldChanges&&T.options.fieldChanges.next({field:T,type:"hidden",value:p})}setExprValue(T,p,h){try{let y=T;const R=-1===p.indexOf("[")?p.split("."):p.replace(/\'|\"/g,"").split(/[[\]]{1,2}/).filter(et=>et),Ee=R.length-1;for(let et=0;etthis.wrapNgValidatorFn(T,R))):h.push(this.wrapNgValidatorFn(T,T[p][y],y));Tt(T,"_"+p,h)}getPredefinedFieldValidation(T){let p=[];return en.forEach(h=>je(T.templateOptions,h,({currentValue:y,firstChange:R})=>{p=p.filter(Ee=>Ee!==h),null!=y&&!1!==y&&p.push(h),!R&&T.formControl&&nn(T.formControl)})),h=>0===p.length?null:We.kI.compose(p.map(y=>()=>{const R=T.templateOptions[y];switch(y){case"required":return We.kI.required(h);case"pattern":return We.kI.pattern(R)(h);case"minLength":return We.kI.minLength(R)(h);case"maxLength":return We.kI.maxLength(R)(h);case"min":return We.kI.min(R)(h);case"max":return We.kI.max(R)(h)}}))(h)}wrapNgValidatorFn(T,p,h){let y=null;if("string"==typeof p&&(y=vt(this.formlyConfig.getValidator(p))),"object"==typeof p&&p.name&&(y=vt(this.formlyConfig.getValidator(p.name)),p.options&&(y.options=p.options)),"object"==typeof p&&p.expression){const{expression:R}=p,Ee=A(p,["expression"]);y={name:h,validation:R,options:Object.keys(Ee).length>0?Ee:null}}return"function"==typeof p&&(y={name:h,validation:p}),R=>{const Ee=y.validation(R,T,y.options);return function Je(te){return!!te&&"function"==typeof te.then}(Ee)?Ee.then(et=>this.handleAsyncResult(T,h?!!et:et,y)):(0,rt.b)(Ee)?Ee.pipe((0,Ye.U)(et=>this.handleAsyncResult(T,h?!!et:et,y))):this.handleResult(T,h?!!Ee:Ee,y)}}handleAsyncResult(T,p,h){return T.options&&T.options._markForCheck&&T.options._markForCheck(T),this.handleResult(T,p,h)}handleResult(T,p,{name:h,options:y}){"boolean"==typeof p&&(p=p?null:{[h]:y||!0});const R=T.formControl;return R._childrenErrors&&R._childrenErrors[h]&&R._childrenErrors[h](),Fe(p)&&Object.keys(p).forEach(Ee=>{const et=p[Ee].errorPath?p[Ee].errorPath:(y||{}).errorPath,gt=et?T.formControl.get(et):null;if(gt){const _t=A(p[Ee],["errorPath"]);gt.setErrors(Object.assign({},gt.errors||{},{[Ee]:_t})),!R._childrenErrors&&Tt(R,"_childrenErrors",{}),R._childrenErrors[Ee]=()=>{const Vt=A(gt.errors||{},["symbol"==typeof Ee?Ee:Ee+""]);gt.setErrors(0===Object.keys(Vt).length?null:Vt)}}}),p}}class oe{constructor(T){this.config=T}onPopulate(T){!T.parent||(T.fieldGroup&&!T.key?Tt(T,"formControl",T.parent.formControl):this.addFormControl(T))}postPopulate(T){T.parent||this.setValidators(T)}addFormControl(T){let p=cn(T);if(!p){const h={updateOn:T.modelOptions.updateOn},y=T.key?ye(T):T.defaultValue,R=this.config?this.config.resolveFieldTypeRef(T):null;if(R&&R.componentType&&R.componentType.createControl){const Ee=R.componentType;console.warn(`NgxFormly: '${Ee.name}::createControl' is deprecated since v5.0, use 'prePopulate' hook instead.`),p=Ee.createControl(y,T)}else p=T.fieldGroup?new We.cw({},h):new We.NI(y,h)}an(T,p)}setValidators(T,p=!1){let h=!1;if(!1===p&&T.key&&T.templateOptions&&T.templateOptions.disabled&&(p=!0),(T.fieldGroup||[]).forEach(y=>this.setValidators(y,p)&&(h=!0)),T.key||!T.parent||!T.key&&!T.fieldGroup){const{formControl:y}=T;T.templateOptions=T.templateOptions||{},T.key&&y&&y instanceof We.NI&&(p&&y.enabled&&(y.disable({emitEvent:!1,onlySelf:!0}),h=!0),!p&&y.disabled&&(y.enable({emitEvent:!1,onlySelf:!0}),h=!0)),y&&(null===y.validator||null===y.asyncValidator)&&(y.setValidators(()=>{const R=We.kI.compose(this.mergeValidators(T,"_validators"));return R?R(y):null}),y.setAsyncValidators(()=>{const R=We.kI.composeAsync(this.mergeValidators(T,"_asyncValidators"));return R?R(y):(0,mt.of)(null)}),h=!0),h&&nn(y,!0)}return h}mergeValidators(T,p){const h=[],y=T.formControl;return y&&y._fields&&y._fields.length>1?y._fields.filter(R=>!R._hide).forEach(R=>h.push(...R[p])):T[p]&&h.push(...T[p]),T.fieldGroup&&T.fieldGroup.filter(R=>!R.key&&R.fieldGroup).forEach(R=>h.push(...this.mergeValidators(R,p))),h}}class De{constructor(T){this.formlyConfig=T,this.formId=0}prePopulate(T){if(this.getFieldComponentInstance(T).prePopulate(),T.parent)return;const p=T.options&&T.options.fieldTransform||this.formlyConfig.extras.fieldTransform;(Array.isArray(p)?p:[p]).forEach(h=>{if(h&&(console.warn("NgxFormly: fieldTransform is deprecated since v5.0, use custom extension instead."),!h(T.fieldGroup,T.model,T.formControl,T.options)))throw new Error("fieldTransform must return an array of fields")})}onPopulate(T){this.initFieldOptions(T),this.getFieldComponentInstance(T).onPopulate(),T.fieldGroup&&T.fieldGroup.forEach((p,h)=>{Object.defineProperty(p,"parent",{get:()=>T,configurable:!0}),Object.defineProperty(p,"index",{get:()=>h,configurable:!0}),this.formId++})}postPopulate(T){this.getFieldComponentInstance(T).postPopulate()}initFieldOptions(T){const p=T.parent;if(p){if(Object.defineProperty(T,"form",{get:()=>p.formControl,configurable:!0}),Object.defineProperty(T,"options",{get:()=>p.options,configurable:!0}),Object.defineProperty(T,"model",{get:()=>T.key&&T.fieldGroup?ye(T):p.model,configurable:!0}),yt(T,{id:Et(`formly_${this.formId}`,T,T.index),hooks:{},modelOptions:{},validation:{messages:{}},templateOptions:T.type&&T.key?{label:"",placeholder:"",focus:!1,disabled:!1}:{}}),this.formlyConfig.extras.resetFieldOnHide&&!1!==T.resetOnHide&&(T.resetOnHide=!0),T.lifecycle&&console.warn("NgxFormly: 'lifecycle' is deprecated since v5.0, use 'hooks' instead."),"formly-template"!==T.type&&(T.template||T.expressionProperties&&T.expressionProperties.template)&&(T.type&&console.warn("NgxFormly: passing 'type' property is not allowed when 'template' is set."),T.type="formly-template"),!T.type&&T.fieldGroup&&(T.type="formly-group"),T.type&&this.formlyConfig.getMergedField(T),T.parent){let h=!Ke(T.key)&&!Ke(T.defaultValue)&&Ke(ye(T))&&(!T.resetOnHide||!(T.hide||T.hideExpression));if(h&&T.resetOnHide){let y=T.parent;for(;y&&!y.hideExpression&&!y.hide;)y=y.parent;h=!y||!(y.hideExpression||y.hide)}h&&Ne(T,T.defaultValue)}this.initFieldWrappers(T)}}initFieldWrappers(T){T.wrappers=T.wrappers||[];const p=Object.assign({preWrapper:[],postWrapper:[]},T.templateOptions.templateManipulators||{});T.wrappers=[...this.formlyConfig.templateManipulators.preWrapper.map(h=>h(T)),...p.preWrapper.map(h=>h(T)),...T.wrappers,...this.formlyConfig.templateManipulators.postWrapper.map(h=>h(T)),...p.postWrapper.map(h=>h(T))].filter((h,y,R)=>h&&y===R.indexOf(h))}getFieldComponentInstance(T){const p=this.formlyConfig.resolveFieldTypeRef(T),h=p?p.instance:{};return{prePopulate:()=>h.prePopulate&&h.prePopulate(T),onPopulate:()=>h.onPopulate&&h.onPopulate(T),postPopulate:()=>h.postPopulate&&h.postPopulate(T)}}}function ft(te){return{types:[{name:"formly-group",component:xe},{name:"formly-template",component:ge}],extensions:[{name:"core",extension:new De(te)},{name:"field-validation",extension:new Z(te)},{name:"field-form",extension:new oe(te)},{name:"field-expression",extension:new V}]}}let Jt=(()=>{class te{constructor(p,h=[]){!h||h.forEach(y=>p.addConfig(y))}static forRoot(p={}){return{ngModule:te,providers:[{provide:zt,multi:!0,useFactory:ft,deps:[jt]},{provide:zt,useValue:p,multi:!0},{provide:o.deG,useValue:p,multi:!0},jt,Bt]}}static forChild(p={}){return{ngModule:te,providers:[{provide:zt,multi:!0,useFactory:ft,deps:[jt]},{provide:zt,useValue:p,multi:!0},{provide:o.deG,useValue:p,multi:!0},Bt]}}}return te.\u0275fac=function(p){return new(p||te)(o.LFG(jt),o.LFG(zt,8))},te.\u0275mod=o.oAB({type:te}),te.\u0275inj=o.cJS({imports:[[r.ez]]}),te})()},304:(Ft,Oe,c)=>{c.d(Oe,{F:()=>E});var r=c(9808),o=c(8776),l=c(4182),K=c(4546),m=c(5e3),A=c(1894);function b(S,w){if(1&S&&(m.ynx(0),m.TgZ(1,"nz-form-label",4),m._uU(2),m.qZA(),m.BQk()),2&S){const z=m.oxw();m.xp6(1),m.Q6J("nzRequired",z.to.required&&!0!==z.to.hideRequiredMarker)("nzFor",z.id),m.xp6(1),m.hij(" ",z.to.label," ")}}function D(S,w){if(1&S&&m._UZ(0,"formly-validation-message",5),2&S){const z=m.oxw();m.Q6J("field",z.field)}}let C=(()=>{class S extends o.n2{get errorState(){return this.showError?"error":""}}return S.\u0275fac=function(){let w;return function(M){return(w||(w=m.n5z(S)))(M||S)}}(),S.\u0275cmp=m.Xpm({type:S,selectors:[["formly-wrapper-nz-form-field"]],features:[m.qOj],decls:7,vars:3,consts:[[4,"ngIf"],[3,"nzValidateStatus","nzErrorTip"],["fieldComponent",""],["errorTpl",""],[3,"nzRequired","nzFor"],[3,"field"]],template:function(z,M){if(1&z&&(m.TgZ(0,"nz-form-item"),m.YNc(1,b,3,3,"ng-container",0),m.TgZ(2,"nz-form-control",1),m.GkF(3,null,2),m.YNc(5,D,1,1,"ng-template",null,3,m.W1O),m.qZA(),m.qZA()),2&z){const k=m.MAs(6);m.xp6(1),m.Q6J("ngIf",M.to.label&&!0!==M.to.hideLabel),m.xp6(1),m.Q6J("nzValidateStatus",M.errorState)("nzErrorTip",k)}},directives:[A.SK,K.Nx,r.O5,A.t3,K.iK,K.Fd,o.u_],encapsulation:2}),S})(),E=(()=>{class S{}return S.\u0275fac=function(z){return new(z||S)},S.\u0275mod=m.oAB({type:S}),S.\u0275inj=m.cJS({imports:[[r.ez,l.UX,K.U5,o.X0.forChild({wrappers:[{name:"form-field",component:C}]})]]}),S})()},9139:(Ft,Oe,c)=>{c.d(Oe,{u:()=>Me});var r=c(304),o=c(9808),l=c(8776),K=c(4182),m=c(1047),A=c(656),b=c(5e3);function D(se,we){if(1&se&&b._UZ(0,"input",2),2&se){const ue=b.oxw();b.Q6J("formControl",ue.formControl)("type",ue.to.type||"text")("formlyAttributes",ue.field)}}function C(se,we){if(1&se&&b._UZ(0,"nz-input-number",3),2&se){const ue=b.oxw();b.Q6J("formControl",ue.formControl)("formlyAttributes",ue.field)}}let E=(()=>{class se extends l.fS{}return se.\u0275fac=function(){let we;return function(Ye){return(we||(we=b.n5z(se)))(Ye||se)}}(),se.\u0275cmp=b.Xpm({type:se,selectors:[["formly-field-nz-input"]],features:[b.qOj],decls:3,vars:2,consts:[["nz-input","",3,"formControl","type","formlyAttributes",4,"ngIf","ngIfElse"],["numberTmp",""],["nz-input","",3,"formControl","type","formlyAttributes"],[3,"formControl","formlyAttributes"]],template:function(ue,Ye){if(1&ue&&(b.YNc(0,D,1,3,"input",0),b.YNc(1,C,1,2,"ng-template",null,1,b.W1O)),2&ue){const We=b.MAs(2);b.Q6J("ngIf","number"!==Ye.to.type)("ngIfElse",We)}},directives:[o.O5,m.Zp,K.Fj,K.JJ,K.oH,l.VQ,A._],encapsulation:2}),se})(),S=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[o.ez,K.UX,m.o7,A.Z,r.F,l.X0.forChild({types:[{name:"input",component:E,wrappers:["form-field"]}]})]]}),se})(),w=(()=>{class se extends l.fS{}return se.\u0275fac=function(){let we;return function(Ye){return(we||(we=b.n5z(se)))(Ye||se)}}(),se.\u0275cmp=b.Xpm({type:se,selectors:[["formly-field-nz-textarea"]],features:[b.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(ue,Ye){1&ue&&b._UZ(0,"textarea",0),2&ue&&b.Q6J("formControl",Ye.formControl)("formlyAttributes",Ye.field)},directives:[m.Zp,K.Fj,K.JJ,K.oH,l.VQ],encapsulation:2}),se})(),z=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[o.ez,K.UX,m.o7,r.F,l.X0.forChild({types:[{name:"textarea",component:w,wrappers:["form-field"]}]})]]}),se})();var M=c(3793),k=c(3868);function N(se,we){if(1&se&&(b.TgZ(0,"label",2),b._uU(1),b.qZA()),2&se){const ue=we.$implicit;b.Q6J("nzValue",ue.value),b.xp6(1),b.hij(" ",ue.label," ")}}let ie=(()=>{class se extends l.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{options:[]}}}}return se.\u0275fac=function(){let we;return function(Ye){return(we||(we=b.n5z(se)))(Ye||se)}}(),se.\u0275cmp=b.Xpm({type:se,selectors:[["formly-field-nz-radio"]],features:[b.qOj],decls:4,vars:7,consts:[[3,"formControl"],["nz-radio","",3,"nzValue",4,"ngFor","ngForOf"],["nz-radio","",3,"nzValue"]],template:function(ue,Ye){1&ue&&(b.TgZ(0,"nz-radio-group",0),b.YNc(1,N,2,2,"label",1),b.ALo(2,"async"),b.ALo(3,"formlySelectOptions"),b.qZA()),2&ue&&(b.Q6J("formControl",Ye.formControl),b.xp6(1),b.Q6J("ngForOf",b.lcZ(2,2,b.xi3(3,4,Ye.to.options,Ye.field))))},directives:[k.Dg,K.JJ,K.oH,o.sg,k.Of],pipes:[o.Ov,M.w],encapsulation:2}),se})(),ce=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[o.ez,K.UX,k.aF,r.F,M.F,l.X0.forChild({types:[{name:"radio",component:ie,wrappers:["form-field"]}]})]]}),se})();var ve=c(6114);let Le=(()=>{class se extends l.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{indeterminate:!0,hideLabel:!0}}}}return se.\u0275fac=function(){let we;return function(Ye){return(we||(we=b.n5z(se)))(Ye||se)}}(),se.\u0275cmp=b.Xpm({type:se,selectors:[["formly-field-nz-checkbox"]],features:[b.qOj],decls:2,vars:4,consts:[["nz-checkbox","",3,"nzIndeterminate","formControl","formlyAttributes"]],template:function(ue,Ye){1&ue&&(b.TgZ(0,"label",0),b._uU(1),b.qZA()),2&ue&&(b.Q6J("nzIndeterminate",Ye.to.indeterminate&&null==Ye.formControl.value)("formControl",Ye.formControl)("formlyAttributes",Ye.field),b.xp6(1),b.hij(" ",Ye.to.label," "))},directives:[ve.Ie,K.JJ,K.oH,l.VQ],encapsulation:2}),se})(),Re=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[o.ez,K.UX,ve.Wr,r.F,l.X0.forChild({types:[{name:"checkbox",component:Le,wrappers:["form-field"]}]})]]}),se})();var ae=c(8054);function Ue(se,we){if(1&se&&b._UZ(0,"nz-option",6),2&se){const ue=we.$implicit;b.Q6J("nzValue",ue.value)("nzDisabled",ue.disabled)("nzLabel",ue.label)}}function He(se,we){if(1&se&&(b.TgZ(0,"nz-option-group",4),b.YNc(1,Ue,1,3,"nz-option",5),b.qZA()),2&se){const ue=b.oxw().$implicit;b.Q6J("nzLabel",ue.label),b.xp6(1),b.Q6J("ngForOf",ue.group)}}function me(se,we){if(1&se&&b._UZ(0,"nz-option",6),2&se){const ue=b.oxw().$implicit;b.Q6J("nzValue",ue.value)("nzDisabled",ue.disabled)("nzLabel",ue.label)}}function fe(se,we){if(1&se&&(b.ynx(0),b.YNc(1,He,2,2,"nz-option-group",2),b.YNc(2,me,1,3,"nz-option",3),b.BQk()),2&se){const ue=we.$implicit;b.xp6(1),b.Q6J("ngIf",ue.group),b.xp6(1),b.Q6J("ngIf",!ue.group)}}let U=(()=>{class se extends l.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{options:[]}}}}return se.\u0275fac=function(){let we;return function(Ye){return(we||(we=b.n5z(se)))(Ye||se)}}(),se.\u0275cmp=b.Xpm({type:se,selectors:[["formly-field-nz-select"]],features:[b.qOj],decls:4,vars:12,consts:[[3,"nzPlaceHolder","formControl","formlyAttributes","nzMode"],[4,"ngFor","ngForOf"],[3,"nzLabel",4,"ngIf"],[3,"nzValue","nzDisabled","nzLabel",4,"ngIf"],[3,"nzLabel"],[3,"nzValue","nzDisabled","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzDisabled","nzLabel"]],template:function(ue,Ye){1&ue&&(b.TgZ(0,"nz-select",0),b.YNc(1,fe,3,2,"ng-container",1),b.ALo(2,"async"),b.ALo(3,"formlySelectOptions"),b.qZA()),2&ue&&(b.ekj("ng-dirty",Ye.showError),b.Q6J("nzPlaceHolder",Ye.to.placeholder)("formControl",Ye.formControl)("formlyAttributes",Ye.field)("nzMode",Ye.to.multiple?"multiple":"default"),b.xp6(1),b.Q6J("ngForOf",b.lcZ(2,7,b.xi3(3,9,Ye.to.options,Ye.field))))},directives:[ae.Vq,K.JJ,K.oH,l.VQ,o.sg,o.O5,ae.Yy,ae.Ip],pipes:[o.Ov,M.w],encapsulation:2}),se})(),J=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[o.ez,K.UX,ae.LV,r.F,M.F,l.X0.forChild({types:[{name:"select",component:U,wrappers:["form-field"]}]})]]}),se})(),Me=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[r.F,S,z,ce,Re,J]]}),se})()},3119:(Ft,Oe,c)=>{c.d(Oe,{g7:()=>b});var r=null,o={},l=1,m="@wry/context:Slot",A=Array,b=A[m]||function(){var k=function(){function k(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return k.prototype.hasValue=function(){for(var N=r;N;N=N.parent)if(this.id in N.slots){var ie=N.slots[this.id];if(ie===o)break;return N!==r&&(r.slots[this.id]=ie),!0}return r&&(r.slots[this.id]=o),!1},k.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},k.prototype.withValue=function(N,ie,ce,ve){var Le,Re=((Le={__proto__:null})[this.id]=N,Le),ae=r;r={parent:ae,slots:Re};try{return ie.apply(ve,ce)}finally{r=ae}},k.bind=function(N){var ie=r;return function(){var ce=r;try{return r=ie,N.apply(this,arguments)}finally{r=ce}}},k.noContext=function(N,ie,ce){if(!r)return N.apply(ce,ie);var ve=r;try{return r=null,N.apply(ce,ie)}finally{r=ve}},k}();try{Object.defineProperty(A,m,{value:A[m]=k,enumerable:!1,writable:!1,configurable:!1})}finally{return k}}()},7883:(Ft,Oe,c)=>{c.d(Oe,{D:()=>A});var r=Object.prototype,o=r.toString,l=r.hasOwnProperty,K=Function.prototype.toString,m=new Map;function A(z,M){try{return b(z,M)}finally{m.clear()}}function b(z,M){if(z===M)return!0;var k=o.call(z);if(k!==o.call(M))return!1;switch(k){case"[object Array]":if(z.length!==M.length)return!1;case"[object Object]":if(w(z,M))return!0;var ie=D(z),ce=D(M),ve=ie.length;if(ve!==ce.length)return!1;for(var Le=0;Le=0&&z.indexOf(M,k)===k}(Me,E)}return!1}function D(z){return Object.keys(z).filter(C,z)}function C(z){return void 0!==this[z]}var E="{ [native code] }";function w(z,M){var k=m.get(z);if(k){if(k.has(M))return!0}else m.set(z,k=new Set);return k.add(M),!1}},9428:(Ft,Oe,c)=>{c.d(Oe,{B:()=>m});var r=function(){return Object.create(null)},o=Array.prototype,l=o.forEach,K=o.slice,m=function(){function b(D,C){void 0===D&&(D=!0),void 0===C&&(C=r),this.weakness=D,this.makeData=C}return b.prototype.lookup=function(){for(var D=[],C=0;C{c.d(Oe,{zu:()=>V,_M:()=>De,mm:()=>te,AE:()=>Jt});var r=c(5e3),o=c(655),l=c(9349),K=c(484),m=K.i.execute,A=c(3950),D=c(1335),C=c(4302),E=function(p,h){var y;try{y=JSON.stringify(p)}catch(Ee){var R=__DEV__?new l.ej("Network request failed. ".concat(h," is not serializable: ").concat(Ee.message)):new l.ej(21);throw R.parseError=Ee,R}return y},w=function(p,h,y){var R=new Error(y);throw R.name="ServerError",R.response=p,R.statusCode=p.status,R.result=h,R},z=Object.prototype.hasOwnProperty,N=c(4989),Le={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Re=function(p,h){return h(p)};function He(p){if(p){var h=Object.create(null);return Object.keys(Object(p)).forEach(function(y){h[y.toLowerCase()]=p[y]}),h}return p}function U(p){return new C.y(function(h){h.error(p)})}var J=(0,l.wY)(function(){return fetch}),Me=function(p){void 0===p&&(p={});var h=p.uri,y=void 0===h?"/graphql":h,R=p.fetch,Ee=p.print,et=void 0===Ee?Re:Ee,gt=p.includeExtensions,Qe=p.useGETForQueries,_t=p.includeUnusedVariables,Rt=void 0!==_t&&_t,qt=(0,o._T)(p,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(p){if(!p&&"undefined"==typeof fetch)throw __DEV__?new l.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new l.ej(20)}(R||J);var on={http:{includeExtensions:gt},options:qt.fetchOptions,credentials:qt.credentials,headers:qt.headers};return new K.i(function(Vt){var bn=function(p,h){return p.getContext().uri||("function"==typeof h?h(p):h||"/graphql")}(Vt,y),mn=Vt.getContext(),fn={};if(mn.clientAwareness){var Dn=mn.clientAwareness,rn=Dn.name,Nn=Dn.version;rn&&(fn["apollographql-client-name"]=rn),Nn&&(fn["apollographql-client-version"]=Nn)}var le,Qn=(0,o.pi)((0,o.pi)({},fn),mn.headers),Jn=function Ue(p,h){for(var y=[],R=2;R=300&&w(h,y,"Response not successful: Received status code ".concat(h.status)),!Array.isArray(y)&&!z.call(y,"data")&&!z.call(y,"errors")&&w(h,y,"Server response was missing for query '".concat(Array.isArray(p)?p.map(function(R){return R.operationName}):p.operationName,"'.")),y})}}(Vt)).then(function(pi){return ii.next(pi),ii.complete(),pi}).catch(function(pi){"AbortError"!==pi.name&&(pi.result&&pi.result.errors&&pi.result.data&&ii.next(pi.result),ii.error(pi))}),function(){le&&le.abort()}})})},se=function(p){function h(y){void 0===y&&(y={});var R=p.call(this,Me(y).request)||this;return R.options=y,R}return(0,o.ZT)(h,p),h}(K.i),we=c(7883),ue=c(3750),Ye=c(9545);function We(p,h,y){return new C.y(function(R){var Ee=R.next,et=R.error,gt=R.complete,Qe=0,_t=!1,Rt={then:function(bn){return new Promise(function(mn){return mn(bn())})}};function qt(bn,mn){return bn?function(fn){++Qe;var Dn=function(){return bn(fn)};Rt=Rt.then(Dn,Dn).then(function(rn){--Qe,Ee&&Ee.call(R,rn),_t&&on.complete()},function(rn){throw--Qe,rn}).catch(function(rn){et&&et.call(R,rn)})}:function(fn){return mn&&mn.call(R,fn)}}var on={next:qt(h,Ee),error:qt(y,et),complete:function(){_t=!0,Qe||gt&>.call(R)}},Vt=p.subscribe(on);return function(){return Vt.unsubscribe()}})}function rt(p){return p.errors&&p.errors.length>0||!1}var wt=c(9419),Ae=c(3291),mt=c(9722),kt=c(7634),Ct=c(7062),It=c(8561);function Xe(p,h,y){var R=[];p.forEach(function(Ee){return Ee[h]&&R.push(Ee)}),R.forEach(function(Ee){return Ee[h](y)})}function lt(p){function h(y){Object.defineProperty(p,y,{value:C.y})}return Ye.aS&&Symbol.species&&h(Symbol.species),h("@@species"),p}function ct(p){return p&&"function"==typeof p.then}var Lt=function(p){function h(y){var R=p.call(this,function(Ee){return R.addObserver(Ee),function(){return R.removeObserver(Ee)}})||this;return R.observers=new Set,R.addCount=0,R.promise=new Promise(function(Ee,et){R.resolve=Ee,R.reject=et}),R.handlers={next:function(Ee){null!==R.sub&&(R.latest=["next",Ee],Xe(R.observers,"next",Ee))},error:function(Ee){var et=R.sub;null!==et&&(et&&setTimeout(function(){return et.unsubscribe()}),R.sub=null,R.latest=["error",Ee],R.reject(Ee),Xe(R.observers,"error",Ee))},complete:function(){if(null!==R.sub){var Ee=R.sources.shift();Ee?ct(Ee)?Ee.then(function(et){return R.sub=et.subscribe(R.handlers)}):R.sub=Ee.subscribe(R.handlers):(R.sub=null,R.latest&&"next"===R.latest[0]?R.resolve(R.latest[1]):R.resolve(),Xe(R.observers,"complete"))}}},R.cancel=function(Ee){R.reject(Ee),R.sources=[],R.handlers.complete()},R.promise.catch(function(Ee){}),"function"==typeof y&&(y=[new C.y(y)]),ct(y)?y.then(function(Ee){return R.start(Ee)},R.handlers.error):R.start(y),R}return(0,o.ZT)(h,p),h.prototype.start=function(y){void 0===this.sub&&(this.sources=Array.from(y),this.handlers.complete())},h.prototype.deliverLastMessage=function(y){if(this.latest){var R=this.latest[0],Ee=y[R];Ee&&Ee.call(y,this.latest[1]),null===this.sub&&"next"===R&&y.complete&&y.complete()}},h.prototype.addObserver=function(y){this.observers.has(y)||(this.deliverLastMessage(y),this.observers.add(y),++this.addCount)},h.prototype.removeObserver=function(y,R){this.observers.delete(y)&&--this.addCount<1&&!R&&this.handlers.error(new Error("Observable cancelled prematurely"))},h.prototype.cleanup=function(y){var R=this,Ee=!1,et=function(){Ee||(Ee=!0,R.observers.delete(gt),y())},gt={next:et,error:et,complete:et},Qe=this.addCount;this.addObserver(gt),this.addCount=Qe},h}(C.y);lt(Lt);var Ie=c(5355),Et=function(p){function h(y){var R=y.graphQLErrors,Ee=y.clientErrors,et=y.networkError,gt=y.errorMessage,Qe=y.extraInfo,_t=p.call(this,gt)||this;return _t.graphQLErrors=R||[],_t.clientErrors=Ee||[],_t.networkError=et||null,_t.message=gt||function(p){var h="";return((0,Ie.O)(p.graphQLErrors)||(0,Ie.O)(p.clientErrors))&&(p.graphQLErrors||[]).concat(p.clientErrors||[]).forEach(function(R){h+="".concat(R?R.message:"Error message not found.","\n")}),p.networkError&&(h+="".concat(p.networkError.message,"\n")),h=h.replace(/\n$/,"")}(_t),_t.extraInfo=Qe,_t.__proto__=h.prototype,_t}return(0,o.ZT)(h,p),h}(Error),ot=(()=>{return(p=ot||(ot={}))[p.loading=1]="loading",p[p.setVariables=2]="setVariables",p[p.fetchMore=3]="fetchMore",p[p.refetch=4]="refetch",p[p.poll=6]="poll",p[p.ready=7]="ready",p[p.error=8]="error",ot;var p})();function en(p){return!!p&&p<7}var Ne=c(396),Ve=Object.assign,ye=Object.hasOwnProperty,yt=!1,Mt=function(p){function h(y){var R=y.queryManager,Ee=y.queryInfo,et=y.options,gt=p.call(this,function(_t){try{var Rt=_t._subscription._observer;Rt&&!Rt.error&&(Rt.error=Ke)}catch(Vt){}var qt=!gt.observers.size;gt.observers.add(_t);var on=gt.last;return on&&on.error?_t.error&&_t.error(on.error):on&&on.result&&_t.next&&_t.next(on.result),qt&>.reobserve().catch(function(){}),function(){gt.observers.delete(_t)&&!gt.observers.size&>.tearDownQuery()}})||this;gt.observers=new Set,gt.subscriptions=new Set,gt.isTornDown=!1,gt.options=et,gt.queryId=Ee.queryId||R.generateQueryId();var Qe=(0,wt.$H)(et.query);return gt.queryName=Qe&&Qe.name&&Qe.name.value,gt.initialFetchPolicy=et.fetchPolicy||"cache-first",gt.queryManager=R,gt.queryInfo=Ee,gt}return(0,o.ZT)(h,p),Object.defineProperty(h.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),h.prototype.result=function(){var y=this;return new Promise(function(R,Ee){var et={next:function(Qe){R(Qe),y.observers.delete(et),y.observers.size||y.queryManager.removeQuery(y.queryId),setTimeout(function(){gt.unsubscribe()},0)},error:Ee},gt=y.subscribe(et)})},h.prototype.getCurrentResult=function(y){void 0===y&&(y=!0);var R=this.getLastResult(!0),Ee=this.queryInfo.networkStatus||R&&R.networkStatus||ot.ready,et=(0,o.pi)((0,o.pi)({},R),{loading:en(Ee),networkStatus:Ee}),gt=this.options.fetchPolicy,Qe=void 0===gt?"cache-first":gt;if("network-only"!==Qe&&"no-cache"!==Qe&&"standby"!==Qe&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var _t=this.queryInfo.getDiff();(_t.complete||this.options.returnPartialData)&&(et.data=_t.result),(0,we.D)(et.data,{})&&(et.data=void 0),_t.complete?(delete et.partial,_t.complete&&et.networkStatus===ot.loading&&("cache-first"===Qe||"cache-only"===Qe)&&(et.networkStatus=ot.ready,et.loading=!1)):et.partial=!0,__DEV__&&!_t.complete&&!this.options.partialRefetch&&!et.loading&&!et.data&&!et.error&&Y(_t.missing)}return y&&this.updateLastResult(et),et},h.prototype.isDifferentFromLastResult=function(y){return!this.last||!(0,we.D)(this.last.result,y)},h.prototype.getLast=function(y,R){var Ee=this.last;if(Ee&&Ee[y]&&(!R||(0,we.D)(Ee.variables,this.variables)))return Ee[y]},h.prototype.getLastResult=function(y){return this.getLast("result",y)},h.prototype.getLastError=function(y){return this.getLast("error",y)},h.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},h.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},h.prototype.refetch=function(y){var R,Ee={pollInterval:0},et=this.options.fetchPolicy;if(Ee.fetchPolicy="cache-and-network"===et?et:"no-cache"===et?"no-cache":"network-only",__DEV__&&y&&ye.call(y,"variables")){var gt=(0,wt.iW)(this.options.query),Qe=gt.variableDefinitions;(!Qe||!Qe.some(function(_t){return"variables"===_t.variable.name.value}))&&__DEV__&&l.kG.warn("Called refetch(".concat(JSON.stringify(y),") for query ").concat((null===(R=gt.name)||void 0===R?void 0:R.value)||JSON.stringify(gt),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return y&&!(0,we.D)(this.options.variables,y)&&(Ee.variables=this.options.variables=(0,o.pi)((0,o.pi)({},this.options.variables),y)),this.queryInfo.resetLastWrite(),this.reobserve(Ee,ot.refetch)},h.prototype.fetchMore=function(y){var R=this,Ee=(0,o.pi)((0,o.pi)({},y.query?y:(0,o.pi)((0,o.pi)((0,o.pi)({},this.options),y),{variables:(0,o.pi)((0,o.pi)({},this.options.variables),y.variables)})),{fetchPolicy:"no-cache"}),et=this.queryManager.generateQueryId();return Ee.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=ot.fetchMore,this.observe()),this.queryManager.fetchQuery(et,Ee,ot.fetchMore).then(function(gt){var Qe=gt.data,_t=y.updateQuery;return _t?(__DEV__&&!yt&&(__DEV__&&l.kG.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),yt=!0),R.updateQuery(function(Rt){return _t(Rt,{fetchMoreResult:Qe,variables:Ee.variables})})):R.queryManager.cache.writeQuery({query:Ee.query,variables:Ee.variables,data:Qe}),gt}).finally(function(){R.queryManager.stopQuery(et),R.reobserve()})},h.prototype.subscribeToMore=function(y){var R=this,Ee=this.queryManager.startGraphQLSubscription({query:y.document,variables:y.variables,context:y.context}).subscribe({next:function(et){var gt=y.updateQuery;gt&&R.updateQuery(function(Qe,_t){return gt(Qe,{subscriptionData:et,variables:_t.variables})})},error:function(et){y.onError?y.onError(et):__DEV__&&l.kG.error("Unhandled GraphQL subscription error",et)}});return this.subscriptions.add(Ee),function(){R.subscriptions.delete(Ee)&&Ee.unsubscribe()}},h.prototype.setOptions=function(y){return this.reobserve(y)},h.prototype.setVariables=function(y){return(0,we.D)(this.variables,y)?this.observers.size?this.result():Promise.resolve():(this.options.variables=y,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:y},ot.setVariables):Promise.resolve())},h.prototype.updateQuery=function(y){var R=this.queryManager,et=y(R.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});et&&(R.cache.writeQuery({query:this.options.query,data:et,variables:this.variables}),R.broadcastQueries())},h.prototype.startPolling=function(y){this.options.pollInterval=y,this.updatePolling()},h.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},h.prototype.fetch=function(y,R){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,y,R)},h.prototype.updatePolling=function(){var y=this;if(!this.queryManager.ssrMode){var Ee=this.pollingInfo,et=this.options.pollInterval;if(!et)return void(Ee&&(clearTimeout(Ee.timeout),delete this.pollingInfo));if(!Ee||Ee.interval!==et){__DEV__?(0,l.kG)(et,"Attempted to start a polling query without a polling interval."):(0,l.kG)(et,10),(Ee||(this.pollingInfo={})).interval=et;var Qe=function(){y.pollingInfo&&(en(y.queryInfo.networkStatus)?_t():y.reobserve({fetchPolicy:"network-only"},ot.poll).then(_t,_t))},_t=function(){var Rt=y.pollingInfo;Rt&&(clearTimeout(Rt.timeout),Rt.timeout=setTimeout(Qe,Rt.interval))};_t()}}},h.prototype.updateLastResult=function(y,R){return void 0===R&&(R=this.variables),this.last=(0,o.pi)((0,o.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?y:(0,Ne.X)(y),variables:R}),(0,Ie.O)(y.errors)||delete this.last.error,this.last},h.prototype.reobserve=function(y,R){var Ee=this;this.isTornDown=!1;var et=R===ot.refetch||R===ot.fetchMore||R===ot.poll,gt=this.options.variables,Qe=et?(0,A.o)(this.options,y):Ve(this.options,(0,A.o)(y));et||(this.updatePolling(),y&&y.variables&&!y.fetchPolicy&&!(0,we.D)(y.variables,gt)&&(Qe.fetchPolicy=this.initialFetchPolicy,void 0===R&&(R=ot.setVariables)));var _t=Qe.variables&&(0,o.pi)({},Qe.variables),Rt=this.fetch(Qe,R),qt={next:function(on){Ee.reportResult(on,_t)},error:function(on){Ee.reportError(on,_t)}};return et||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=Rt,this.observer=qt),Rt.addObserver(qt),Rt.promise},h.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},h.prototype.reportResult=function(y,R){(this.getLastError()||this.isDifferentFromLastResult(y))&&(this.updateLastResult(y,R),Xe(this.observers,"next",y))},h.prototype.reportError=function(y,R){var Ee=(0,o.pi)((0,o.pi)({},this.getLastResult()),{error:y,errors:y.graphQLErrors,networkStatus:ot.error,loading:!1});this.updateLastResult(Ee,R),Xe(this.observers,"error",this.last.error=y)},h.prototype.hasObservers=function(){return this.observers.size>0},h.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(y){return y.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},h}(C.y);function Ke(p){__DEV__&&l.kG.error("Unhandled error",p.message,p.stack)}function Y(p){__DEV__&&p&&__DEV__&&l.kG.debug("Missing cache result fields: ".concat(JSON.stringify(p)),p)}lt(Mt);var Q=c(7773),Fe=c(9661),Je=c(6430),vt=function(){function p(h){var R=h.client,Ee=h.resolvers,et=h.fragmentMatcher;this.cache=h.cache,R&&(this.client=R),Ee&&this.addResolvers(Ee),et&&this.setFragmentMatcher(et)}return p.prototype.addResolvers=function(h){var y=this;this.resolvers=this.resolvers||{},Array.isArray(h)?h.forEach(function(R){y.resolvers=(0,Q.Ee)(y.resolvers,R)}):this.resolvers=(0,Q.Ee)(this.resolvers,h)},p.prototype.setResolvers=function(h){this.resolvers={},this.addResolvers(h)},p.prototype.getResolvers=function(){return this.resolvers||{}},p.prototype.runResolvers=function(h){var y=h.document,R=h.remoteResult,Ee=h.context,et=h.variables,gt=h.onlyRunForcedResolvers,Qe=void 0!==gt&>return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(_t){return y?[2,this.resolveDocument(y,R.data,Ee,et,this.fragmentMatcher,Qe).then(function(Rt){return(0,o.pi)((0,o.pi)({},R),{data:Rt.result})})]:[2,R]})})},p.prototype.setFragmentMatcher=function(h){this.fragmentMatcher=h},p.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},p.prototype.clientQuery=function(h){return(0,mt.FS)(["client"],h)&&this.resolvers?h:null},p.prototype.serverQuery=function(h){return(0,Ae.ob)(h)},p.prototype.prepareContext=function(h){var y=this.cache;return(0,o.pi)((0,o.pi)({},h),{cache:y,getCacheKey:function(R){return y.identify(R)}})},p.prototype.addExportedVariables=function(h,y,R){return void 0===y&&(y={}),void 0===R&&(R={}),(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(Ee){return h?[2,this.resolveDocument(h,this.buildRootValueFromCache(h,y)||{},this.prepareContext(R),y).then(function(et){return(0,o.pi)((0,o.pi)({},y),et.exportedVariables)})]:[2,(0,o.pi)({},y)]})})},p.prototype.shouldForceResolvers=function(h){var y=!1;return(0,D.Vn)(h,{Directive:{enter:function(R){if("client"===R.name.value&&R.arguments&&(y=R.arguments.some(function(Ee){return"always"===Ee.name.value&&"BooleanValue"===Ee.value.kind&&!0===Ee.value.value})))return D.$_}}}),y},p.prototype.buildRootValueFromCache=function(h,y){return this.cache.diff({query:(0,Ae.aL)(h),variables:y,returnPartialData:!0,optimistic:!1}).result},p.prototype.resolveDocument=function(h,y,R,Ee,et,gt){return void 0===R&&(R={}),void 0===Ee&&(Ee={}),void 0===et&&(et=function(){return!0}),void 0===gt&&(gt=!1),(0,o.mG)(this,void 0,void 0,function(){var Qe,_t,Rt,qt,on,Vt,bn,mn,fn;return(0,o.Jh)(this,function(Dn){return Qe=(0,wt.p$)(h),_t=(0,wt.kU)(h),Rt=(0,Fe.F)(_t),on=(qt=Qe.operation)?qt.charAt(0).toUpperCase()+qt.slice(1):"Query",bn=(Vt=this).cache,mn=Vt.client,fn={fragmentMap:Rt,context:(0,o.pi)((0,o.pi)({},R),{cache:bn,client:mn}),variables:Ee,fragmentMatcher:et,defaultOperationType:on,exportedVariables:{},onlyRunForcedResolvers:gt},[2,this.resolveSelectionSet(Qe.selectionSet,y,fn).then(function(rn){return{result:rn,exportedVariables:fn.exportedVariables}})]})})},p.prototype.resolveSelectionSet=function(h,y,R){return(0,o.mG)(this,void 0,void 0,function(){var Ee,et,gt,Qe,Rt=this;return(0,o.Jh)(this,function(qt){return Ee=R.fragmentMap,et=R.context,gt=R.variables,Qe=[y],[2,Promise.all(h.selections.map(function(on){return(0,o.mG)(Rt,void 0,void 0,function(){var Vt;return(0,o.Jh)(this,function(mn){return(0,mt.LZ)(on,gt)?(0,kt.My)(on)?[2,this.resolveField(on,y,R).then(function(fn){var Dn;void 0!==fn&&Qe.push(((Dn={})[(0,kt.u2)(on)]=fn,Dn))})]:((0,kt.Ao)(on)?Vt=on:(Vt=Ee[on.name.value],__DEV__?(0,l.kG)(Vt,"No fragment named ".concat(on.name.value)):(0,l.kG)(Vt,9)),Vt&&Vt.typeCondition&&R.fragmentMatcher(y,Vt.typeCondition.name.value,et)?[2,this.resolveSelectionSet(Vt.selectionSet,y,R).then(function(fn){Qe.push(fn)})]:[2]):[2]})})})).then(function(){return(0,Q.bw)(Qe)})]})})},p.prototype.resolveField=function(h,y,R){return(0,o.mG)(this,void 0,void 0,function(){var Ee,et,gt,Qe,_t,Rt,qt,on,Vt,bn=this;return(0,o.Jh)(this,function(mn){return Ee=R.variables,et=h.name.value,gt=(0,kt.u2)(h),Qe=et!==gt,_t=y[gt]||y[et],Rt=Promise.resolve(_t),(!R.onlyRunForcedResolvers||this.shouldForceResolvers(h))&&(qt=y.__typename||R.defaultOperationType,(on=this.resolvers&&this.resolvers[qt])&&(Vt=on[Qe?et:gt])&&(Rt=Promise.resolve(Je.ab.withValue(this.cache,Vt,[y,(0,kt.NC)(h,Ee),R.context,{field:h,fragmentMap:R.fragmentMap}])))),[2,Rt.then(function(fn){return void 0===fn&&(fn=_t),h.directives&&h.directives.forEach(function(Dn){"export"===Dn.name.value&&Dn.arguments&&Dn.arguments.forEach(function(rn){"as"===rn.name.value&&"StringValue"===rn.value.kind&&(R.exportedVariables[rn.value.value]=fn)})}),h.selectionSet&&null!=fn?Array.isArray(fn)?bn.resolveSubSelectedArray(h,fn,R):h.selectionSet?bn.resolveSelectionSet(h.selectionSet,fn,R):void 0:fn})]})})},p.prototype.resolveSubSelectedArray=function(h,y,R){var Ee=this;return Promise.all(y.map(function(et){return null===et?null:Array.isArray(et)?Ee.resolveSubSelectedArray(h,et,R):h.selectionSet?Ee.resolveSelectionSet(h.selectionSet,et,R):void 0}))},p}(),Tt=new(Ye.mr?WeakMap:Map);function je(p,h){var y=p[h];"function"==typeof y&&(p[h]=function(){return Tt.set(p,(Tt.get(p)+1)%1e15),y.apply(this,arguments)})}function zt(p){p.notifyTimeout&&(clearTimeout(p.notifyTimeout),p.notifyTimeout=void 0)}var jt=function(){function p(h,y){void 0===y&&(y=h.generateQueryId()),this.queryId=y,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var R=this.cache=h.cache;Tt.has(R)||(Tt.set(R,0),je(R,"evict"),je(R,"modify"),je(R,"reset"))}return p.prototype.init=function(h){var y=h.networkStatus||ot.loading;return this.variables&&this.networkStatus!==ot.loading&&!(0,we.D)(this.variables,h.variables)&&(y=ot.setVariables),(0,we.D)(h.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:h.document,variables:h.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:y}),h.observableQuery&&this.setObservableQuery(h.observableQuery),h.lastRequestId&&(this.lastRequestId=h.lastRequestId),this},p.prototype.reset=function(){zt(this),this.lastDiff=void 0,this.dirty=!1},p.prototype.getDiff=function(h){void 0===h&&(h=this.variables);var y=this.getDiffOptions(h);if(this.lastDiff&&(0,we.D)(y,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=h);var R=this.observableQuery;if(R&&"no-cache"===R.options.fetchPolicy)return{complete:!1};var Ee=this.cache.diff(y);return this.updateLastDiff(Ee,y),Ee},p.prototype.updateLastDiff=function(h,y){this.lastDiff=h?{diff:h,options:y||this.getDiffOptions()}:void 0},p.prototype.getDiffOptions=function(h){var y;return void 0===h&&(h=this.variables),{query:this.document,variables:h,returnPartialData:!0,optimistic:!0,canonizeResults:null===(y=this.observableQuery)||void 0===y?void 0:y.options.canonizeResults}},p.prototype.setDiff=function(h){var y=this,R=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(h),!this.dirty&&!(0,we.D)(R&&R.result,h&&h.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return y.notify()},0)))},p.prototype.setObservableQuery=function(h){var y=this;h!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=h,h?(h.queryInfo=this,this.listeners.add(this.oqListener=function(){y.getDiff().fromOptimisticTransaction?h.observe():h.reobserve()})):delete this.oqListener)},p.prototype.notify=function(){var h=this;zt(this),this.shouldNotify()&&this.listeners.forEach(function(y){return y(h)}),this.dirty=!1},p.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(en(this.networkStatus)&&this.observableQuery){var h=this.observableQuery.options.fetchPolicy;if("cache-only"!==h&&"cache-and-network"!==h)return!1}return!0},p.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=p.prototype.cancel,this.subscriptions.forEach(function(y){return y.unsubscribe()});var h=this.observableQuery;h&&h.stopPolling()}},p.prototype.cancel=function(){},p.prototype.updateWatch=function(h){var y=this;void 0===h&&(h=this.variables);var R=this.observableQuery;if(!R||"no-cache"!==R.options.fetchPolicy){var Ee=(0,o.pi)((0,o.pi)({},this.getDiffOptions(h)),{watcher:this,callback:function(et){return y.setDiff(et)}});(!this.lastWatch||!(0,we.D)(Ee,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=Ee))}},p.prototype.resetLastWrite=function(){this.lastWrite=void 0},p.prototype.shouldWrite=function(h,y){var R=this.lastWrite;return!(R&&R.dmCount===Tt.get(this.cache)&&(0,we.D)(y,R.variables)&&(0,we.D)(h.data,R.result.data))},p.prototype.markResult=function(h,y,R){var Ee=this;this.graphQLErrors=(0,Ie.O)(h.errors)?h.errors:[],this.reset(),"no-cache"===y.fetchPolicy?this.updateLastDiff({result:h.data,complete:!0},this.getDiffOptions(y.variables)):0!==R&&(Bt(h,y.errorPolicy)?this.cache.performTransaction(function(et){if(Ee.shouldWrite(h,y.variables))et.writeQuery({query:Ee.document,data:h.data,variables:y.variables,overwrite:1===R}),Ee.lastWrite={result:h,variables:y.variables,dmCount:Tt.get(Ee.cache)};else if(Ee.lastDiff&&Ee.lastDiff.diff.complete)return void(h.data=Ee.lastDiff.diff.result);var gt=Ee.getDiffOptions(y.variables),Qe=et.diff(gt);Ee.stopped||Ee.updateWatch(y.variables),Ee.updateLastDiff(Qe,gt),Qe.complete&&(h.data=Qe.result)}):this.lastWrite=void 0)},p.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ot.ready},p.prototype.markError=function(h){return this.networkStatus=ot.error,this.lastWrite=void 0,this.reset(),h.graphQLErrors&&(this.graphQLErrors=h.graphQLErrors),h.networkError&&(this.networkError=h.networkError),h},p}();function Bt(p,h){void 0===h&&(h="none");var y="ignore"===h||"all"===h,R=!rt(p);return!R&&y&&p.data&&(R=!0),R}var vn=Object.prototype.hasOwnProperty,cn=function(){function p(h){var y=h.cache,R=h.link,Ee=h.queryDeduplication,et=void 0!==Ee&&Ee,gt=h.onBroadcast,Qe=h.ssrMode,_t=void 0!==Qe&&Qe,Rt=h.clientAwareness,qt=void 0===Rt?{}:Rt,on=h.localState,Vt=h.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Ye.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=y,this.link=R,this.queryDeduplication=et,this.clientAwareness=qt,this.localState=on||new vt({cache:y}),this.ssrMode=_t,this.assumeImmutableResults=!!Vt,(this.onBroadcast=gt)&&(this.mutationStore=Object.create(null))}return p.prototype.stop=function(){var h=this;this.queries.forEach(function(y,R){h.stopQueryNoBroadcast(R)}),this.cancelPendingFetches(__DEV__?new l.ej("QueryManager stopped while query was in flight"):new l.ej(11))},p.prototype.cancelPendingFetches=function(h){this.fetchCancelFns.forEach(function(y){return y(h)}),this.fetchCancelFns.clear()},p.prototype.mutate=function(h){var y=h.mutation,R=h.variables,Ee=h.optimisticResponse,et=h.updateQueries,gt=h.refetchQueries,Qe=void 0===gt?[]:gt,_t=h.awaitRefetchQueries,Rt=void 0!==_t&&_t,qt=h.update,on=h.onQueryUpdated,Vt=h.errorPolicy,bn=void 0===Vt?"none":Vt,mn=h.fetchPolicy,fn=void 0===mn?"network-only":mn,Dn=h.keepRootFields,rn=h.context;return(0,o.mG)(this,void 0,void 0,function(){var Nn,Qn,ti;return(0,o.Jh)(this,function(Jn){switch(Jn.label){case 0:return __DEV__?(0,l.kG)(y,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,l.kG)(y,12),__DEV__?(0,l.kG)("network-only"===fn||"no-cache"===fn,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,l.kG)("network-only"===fn||"no-cache"===fn,13),Nn=this.generateMutationId(),y=this.transform(y).document,R=this.getVariables(y,R),this.transform(y).hasClientExports?[4,this.localState.addExportedVariables(y,R,rn)]:[3,2];case 1:R=Jn.sent(),Jn.label=2;case 2:return Qn=this.mutationStore&&(this.mutationStore[Nn]={mutation:y,variables:R,loading:!0,error:null}),Ee&&this.markMutationOptimistic(Ee,{mutationId:Nn,document:y,variables:R,fetchPolicy:fn,errorPolicy:bn,context:rn,updateQueries:et,update:qt,keepRootFields:Dn}),this.broadcastQueries(),ti=this,[2,new Promise(function(qn,Ce){return We(ti.getObservableFromLink(y,(0,o.pi)((0,o.pi)({},rn),{optimisticResponse:Ee}),R,!1),function(ke){if(rt(ke)&&"none"===bn)throw new Et({graphQLErrors:ke.errors});Qn&&(Qn.loading=!1,Qn.error=null);var le=(0,o.pi)({},ke);return"function"==typeof Qe&&(Qe=Qe(le)),"ignore"===bn&&rt(le)&&delete le.errors,ti.markMutationResult({mutationId:Nn,result:le,document:y,variables:R,fetchPolicy:fn,errorPolicy:bn,context:rn,update:qt,updateQueries:et,awaitRefetchQueries:Rt,refetchQueries:Qe,removeOptimistic:Ee?Nn:void 0,onQueryUpdated:on,keepRootFields:Dn})}).subscribe({next:function(ke){ti.broadcastQueries(),qn(ke)},error:function(ke){Qn&&(Qn.loading=!1,Qn.error=ke),Ee&&ti.cache.removeOptimistic(Nn),ti.broadcastQueries(),Ce(ke instanceof Et?ke:new Et({networkError:ke}))}})})]}})})},p.prototype.markMutationResult=function(h,y){var R=this;void 0===y&&(y=this.cache);var Ee=h.result,et=[],gt="no-cache"===h.fetchPolicy;if(!gt&&Bt(Ee,h.errorPolicy)){et.push({result:Ee.data,dataId:"ROOT_MUTATION",query:h.document,variables:h.variables});var Qe=h.updateQueries;Qe&&this.queries.forEach(function(Rt,qt){var on=Rt.observableQuery,Vt=on&&on.queryName;if(Vt&&vn.call(Qe,Vt)){var bn=Qe[Vt],mn=R.queries.get(qt),fn=mn.document,Dn=mn.variables,rn=y.diff({query:fn,variables:Dn,returnPartialData:!0,optimistic:!1}),Nn=rn.result;if(rn.complete&&Nn){var ti=bn(Nn,{mutationResult:Ee,queryName:fn&&(0,wt.rY)(fn)||void 0,queryVariables:Dn});ti&&et.push({result:ti,dataId:"ROOT_QUERY",query:fn,variables:Dn})}}})}if(et.length>0||h.refetchQueries||h.update||h.onQueryUpdated||h.removeOptimistic){var _t=[];if(this.refetchQueries({updateCache:function(Rt){gt||et.forEach(function(Vt){return Rt.write(Vt)});var qt=h.update;if(qt){if(!gt){var on=Rt.diff({id:"ROOT_MUTATION",query:R.transform(h.document).asQuery,variables:h.variables,optimistic:!1,returnPartialData:!0});on.complete&&(Ee=(0,o.pi)((0,o.pi)({},Ee),{data:on.result}))}qt(Rt,Ee,{context:h.context,variables:h.variables})}!gt&&!h.keepRootFields&&Rt.modify({id:"ROOT_MUTATION",fields:function(Vt,bn){return"__typename"===bn.fieldName?Vt:bn.DELETE}})},include:h.refetchQueries,optimistic:!1,removeOptimistic:h.removeOptimistic,onQueryUpdated:h.onQueryUpdated||null}).forEach(function(Rt){return _t.push(Rt)}),h.awaitRefetchQueries||h.onQueryUpdated)return Promise.all(_t).then(function(){return Ee})}return Promise.resolve(Ee)},p.prototype.markMutationOptimistic=function(h,y){var R=this,Ee="function"==typeof h?h(y.variables):h;return this.cache.recordOptimisticTransaction(function(et){try{R.markMutationResult((0,o.pi)((0,o.pi)({},y),{result:{data:Ee}}),et)}catch(gt){__DEV__&&l.kG.error(gt)}},y.mutationId)},p.prototype.fetchQuery=function(h,y,R){return this.fetchQueryObservable(h,y,R).promise},p.prototype.getQueryStore=function(){var h=Object.create(null);return this.queries.forEach(function(y,R){h[R]={variables:y.variables,networkStatus:y.networkStatus,networkError:y.networkError,graphQLErrors:y.graphQLErrors}}),h},p.prototype.resetErrors=function(h){var y=this.queries.get(h);y&&(y.networkError=void 0,y.graphQLErrors=[])},p.prototype.transform=function(h){var y=this.transformCache;if(!y.has(h)){var R=this.cache.transformDocument(h),Ee=(0,Ae.Fo)(this.cache.transformForLink(R)),et=this.localState.clientQuery(R),gt=Ee&&this.localState.serverQuery(Ee),Qe={document:R,hasClientExports:(0,mt.mj)(R),hasForcedResolvers:this.localState.shouldForceResolvers(R),clientQuery:et,serverQuery:gt,defaultVars:(0,wt.O4)((0,wt.$H)(R)),asQuery:(0,o.pi)((0,o.pi)({},R),{definitions:R.definitions.map(function(Rt){return"OperationDefinition"===Rt.kind&&"query"!==Rt.operation?(0,o.pi)((0,o.pi)({},Rt),{operation:"query"}):Rt})})},_t=function(Rt){Rt&&!y.has(Rt)&&y.set(Rt,Qe)};_t(h),_t(R),_t(et),_t(gt)}return y.get(h)},p.prototype.getVariables=function(h,y){return(0,o.pi)((0,o.pi)({},this.transform(h).defaultVars),y)},p.prototype.watchQuery=function(h){void 0===(h=(0,o.pi)((0,o.pi)({},h),{variables:this.getVariables(h.query,h.variables)})).notifyOnNetworkStatusChange&&(h.notifyOnNetworkStatusChange=!1);var y=new jt(this),R=new Mt({queryManager:this,queryInfo:y,options:h});return this.queries.set(R.queryId,y),y.init({document:h.query,observableQuery:R,variables:h.variables}),R},p.prototype.query=function(h,y){var R=this;return void 0===y&&(y=this.generateQueryId()),__DEV__?(0,l.kG)(h.query,"query option is required. You must specify your GraphQL document in the query option."):(0,l.kG)(h.query,14),__DEV__?(0,l.kG)("Document"===h.query.kind,'You must wrap the query string in a "gql" tag.'):(0,l.kG)("Document"===h.query.kind,15),__DEV__?(0,l.kG)(!h.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,l.kG)(!h.returnPartialData,16),__DEV__?(0,l.kG)(!h.pollInterval,"pollInterval option only supported on watchQuery."):(0,l.kG)(!h.pollInterval,17),this.fetchQuery(y,h).finally(function(){return R.stopQuery(y)})},p.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},p.prototype.generateRequestId=function(){return this.requestIdCounter++},p.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},p.prototype.stopQueryInStore=function(h){this.stopQueryInStoreNoBroadcast(h),this.broadcastQueries()},p.prototype.stopQueryInStoreNoBroadcast=function(h){var y=this.queries.get(h);y&&y.stop()},p.prototype.clearStore=function(h){return void 0===h&&(h={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new l.ej("Store reset while query was in flight (not completed in link chain)"):new l.ej(18)),this.queries.forEach(function(y){y.observableQuery?y.networkStatus=ot.loading:y.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(h)},p.prototype.getObservableQueries=function(h){var y=this;void 0===h&&(h="active");var R=new Map,Ee=new Map,et=new Set;return Array.isArray(h)&&h.forEach(function(gt){"string"==typeof gt?Ee.set(gt,!1):(0,kt.JW)(gt)?Ee.set(y.transform(gt).document,!1):(0,Ct.s)(gt)&>.query&&et.add(gt)}),this.queries.forEach(function(gt,Qe){var _t=gt.observableQuery,Rt=gt.document;if(_t){if("all"===h)return void R.set(Qe,_t);var qt=_t.queryName;if("standby"===_t.options.fetchPolicy||"active"===h&&!_t.hasObservers())return;("active"===h||qt&&Ee.has(qt)||Rt&&Ee.has(Rt))&&(R.set(Qe,_t),qt&&Ee.set(qt,!0),Rt&&Ee.set(Rt,!0))}}),et.size&&et.forEach(function(gt){var Qe=(0,It.X)("legacyOneTimeQuery"),_t=y.getQuery(Qe).init({document:gt.query,variables:gt.variables}),Rt=new Mt({queryManager:y,queryInfo:_t,options:(0,o.pi)((0,o.pi)({},gt),{fetchPolicy:"network-only"})});(0,l.kG)(Rt.queryId===Qe),_t.setObservableQuery(Rt),R.set(Qe,Rt)}),__DEV__&&Ee.size&&Ee.forEach(function(gt,Qe){gt||__DEV__&&l.kG.warn("Unknown query ".concat("string"==typeof Qe?"named ":"").concat(JSON.stringify(Qe,null,2)," requested in refetchQueries options.include array"))}),R},p.prototype.reFetchObservableQueries=function(h){var y=this;void 0===h&&(h=!1);var R=[];return this.getObservableQueries(h?"all":"active").forEach(function(Ee,et){var gt=Ee.options.fetchPolicy;Ee.resetLastResults(),(h||"standby"!==gt&&"cache-only"!==gt)&&R.push(Ee.refetch()),y.getQuery(et).setDiff(null)}),this.broadcastQueries(),Promise.all(R)},p.prototype.setObservableQuery=function(h){this.getQuery(h.queryId).setObservableQuery(h)},p.prototype.startGraphQLSubscription=function(h){var y=this,R=h.query,Ee=h.fetchPolicy,et=h.errorPolicy,gt=h.variables,Qe=h.context,_t=void 0===Qe?{}:Qe;R=this.transform(R).document,gt=this.getVariables(R,gt);var Rt=function(on){return y.getObservableFromLink(R,_t,on).map(function(Vt){if("no-cache"!==Ee&&(Bt(Vt,et)&&y.cache.write({query:R,result:Vt.data,dataId:"ROOT_SUBSCRIPTION",variables:on}),y.broadcastQueries()),rt(Vt))throw new Et({graphQLErrors:Vt.errors});return Vt})};if(this.transform(R).hasClientExports){var qt=this.localState.addExportedVariables(R,gt,_t).then(Rt);return new C.y(function(on){var Vt=null;return qt.then(function(bn){return Vt=bn.subscribe(on)},on.error),function(){return Vt&&Vt.unsubscribe()}})}return Rt(gt)},p.prototype.stopQuery=function(h){this.stopQueryNoBroadcast(h),this.broadcastQueries()},p.prototype.stopQueryNoBroadcast=function(h){this.stopQueryInStoreNoBroadcast(h),this.removeQuery(h)},p.prototype.removeQuery=function(h){this.fetchCancelFns.delete(h),this.getQuery(h).stop(),this.queries.delete(h)},p.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(h){return h.notify()})},p.prototype.getLocalState=function(){return this.localState},p.prototype.getObservableFromLink=function(h,y,R,Ee){var gt,et=this;void 0===Ee&&(Ee=null!==(gt=null==y?void 0:y.queryDeduplication)&&void 0!==gt?gt:this.queryDeduplication);var Qe,_t=this.transform(h).serverQuery;if(_t){var qt=this.inFlightLinkObservables,on=this.link,Vt={query:_t,variables:R,operationName:(0,wt.rY)(_t)||void 0,context:this.prepareContext((0,o.pi)((0,o.pi)({},y),{forceFetch:!Ee}))};if(y=Vt.context,Ee){var bn=qt.get(_t)||new Map;qt.set(_t,bn);var mn=(0,ue.B)(R);if(!(Qe=bn.get(mn))){var fn=new Lt([m(on,Vt)]);bn.set(mn,Qe=fn),fn.cleanup(function(){bn.delete(mn)&&bn.size<1&&qt.delete(_t)})}}else Qe=new Lt([m(on,Vt)])}else Qe=new Lt([C.y.of({data:{}})]),y=this.prepareContext(y);var Dn=this.transform(h).clientQuery;return Dn&&(Qe=We(Qe,function(rn){return et.localState.runResolvers({document:Dn,remoteResult:rn,context:y,variables:R})})),Qe},p.prototype.getResultsFromLink=function(h,y,R){var Ee=h.lastRequestId=this.generateRequestId();return We(this.getObservableFromLink(h.document,R.context,R.variables),function(et){var gt=(0,Ie.O)(et.errors);if(Ee>=h.lastRequestId){if(gt&&"none"===R.errorPolicy)throw h.markError(new Et({graphQLErrors:et.errors}));h.markResult(et,R,y),h.markReady()}var Qe={data:et.data,loading:!1,networkStatus:h.networkStatus||ot.ready};return gt&&"ignore"!==R.errorPolicy&&(Qe.errors=et.errors),Qe},function(et){var gt=function Pt(p){return p.hasOwnProperty("graphQLErrors")}(et)?et:new Et({networkError:et});throw Ee>=h.lastRequestId&&h.markError(gt),gt})},p.prototype.fetchQueryObservable=function(h,y,R){var Ee=this;void 0===R&&(R=ot.loading);var et=this.transform(y.query).document,gt=this.getVariables(et,y.variables),Qe=this.getQuery(h),_t=y.fetchPolicy,qt=y.errorPolicy,Vt=y.returnPartialData,mn=y.notifyOnNetworkStatusChange,Dn=y.context,Nn=Object.assign({},y,{query:et,variables:gt,fetchPolicy:void 0===_t?"cache-first":_t,errorPolicy:void 0===qt?"none":qt,returnPartialData:void 0!==Vt&&Vt,notifyOnNetworkStatusChange:void 0!==mn&&mn,context:void 0===Dn?{}:Dn}),Qn=function(Jn){return Nn.variables=Jn,Ee.fetchQueryByPolicy(Qe,Nn,R)};this.fetchCancelFns.set(h,function(Jn){setTimeout(function(){return ti.cancel(Jn)})});var ti=new Lt(this.transform(Nn.query).hasClientExports?this.localState.addExportedVariables(Nn.query,Nn.variables,Nn.context).then(Qn):Qn(Nn.variables));return ti.cleanup(function(){Ee.fetchCancelFns.delete(h),function G(p){var h=p.fetchPolicy,R=p.nextFetchPolicy;R&&(p.fetchPolicy="function"==typeof R?R.call(p,void 0===h?"cache-first":h):R)}(y)}),ti},p.prototype.refetchQueries=function(h){var y=this,R=h.updateCache,Ee=h.include,et=h.optimistic,gt=void 0!==et&&et,Qe=h.removeOptimistic,_t=void 0===Qe?gt?(0,It.X)("refetchQueries"):void 0:Qe,Rt=h.onQueryUpdated,qt=new Map;Ee&&this.getObservableQueries(Ee).forEach(function(Vt,bn){qt.set(bn,{oq:Vt,lastDiff:y.getQuery(bn).getDiff()})});var on=new Map;return R&&this.cache.batch({update:R,optimistic:gt&&_t||!1,removeOptimistic:_t,onWatchUpdated:function(Vt,bn,mn){var fn=Vt.watcher instanceof jt&&Vt.watcher.observableQuery;if(fn){if(Rt){qt.delete(fn.queryId);var Dn=Rt(fn,bn,mn);return!0===Dn&&(Dn=fn.refetch()),!1!==Dn&&on.set(fn,Dn),Dn}null!==Rt&&qt.set(fn.queryId,{oq:fn,lastDiff:mn,diff:bn})}}}),qt.size&&qt.forEach(function(Vt,bn){var rn,mn=Vt.oq,fn=Vt.lastDiff,Dn=Vt.diff;if(Rt){if(!Dn){var Nn=mn.queryInfo;Nn.reset(),Dn=Nn.getDiff()}rn=Rt(mn,Dn,fn)}(!Rt||!0===rn)&&(rn=mn.refetch()),!1!==rn&&on.set(mn,rn),bn.indexOf("legacyOneTimeQuery")>=0&&y.stopQueryNoBroadcast(bn)}),_t&&this.cache.removeOptimistic(_t),on},p.prototype.fetchQueryByPolicy=function(h,y,R){var Ee=this,et=y.query,gt=y.variables,Qe=y.fetchPolicy,_t=y.refetchWritePolicy,Rt=y.errorPolicy,qt=y.returnPartialData,on=y.context,Vt=y.notifyOnNetworkStatusChange,bn=h.networkStatus;h.init({document:et,variables:gt,networkStatus:R});var mn=function(){return h.getDiff(gt)},fn=function(ti,Jn){void 0===Jn&&(Jn=h.networkStatus||ot.loading);var qn=ti.result;__DEV__&&!qt&&!(0,we.D)(qn,{})&&Y(ti.missing);var Ce=function(ke){return C.y.of((0,o.pi)({data:ke,loading:en(Jn),networkStatus:Jn},ti.complete?null:{partial:!0}))};return qn&&Ee.transform(et).hasForcedResolvers?Ee.localState.runResolvers({document:et,remoteResult:{data:qn},context:on,variables:gt,onlyRunForcedResolvers:!0}).then(function(ke){return Ce(ke.data||void 0)}):Ce(qn)},Dn="no-cache"===Qe?0:R===ot.refetch&&"merge"!==_t?1:2,rn=function(){return Ee.getResultsFromLink(h,Dn,{variables:gt,context:on,fetchPolicy:Qe,errorPolicy:Rt})},Nn=Vt&&"number"==typeof bn&&bn!==R&&en(R);switch(Qe){default:case"cache-first":return(Qn=mn()).complete?[fn(Qn,h.markReady())]:qt||Nn?[fn(Qn),rn()]:[rn()];case"cache-and-network":var Qn;return(Qn=mn()).complete||qt||Nn?[fn(Qn),rn()]:[rn()];case"cache-only":return[fn(mn(),h.markReady())];case"network-only":return Nn?[fn(mn()),rn()]:[rn()];case"no-cache":return Nn?[fn(h.getDiff()),rn()]:[rn()];case"standby":return[]}},p.prototype.getQuery=function(h){return h&&!this.queries.has(h)&&this.queries.set(h,new jt(this,h)),this.queries.get(h)},p.prototype.prepareContext=function(h){void 0===h&&(h={});var y=this.localState.prepareContext(h);return(0,o.pi)((0,o.pi)({},y),{clientAwareness:this.clientAwareness})},p}(),an=!1;function nn(p,h){return(0,A.o)(p,h,h.variables&&{variables:(0,o.pi)((0,o.pi)({},p.variables),h.variables)})}var Gn=function(){function p(h){var y=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var R=h.uri,gt=h.cache,Qe=h.ssrMode,_t=void 0!==Qe&&Qe,Rt=h.ssrForceFetchDelay,qt=void 0===Rt?0:Rt,on=h.connectToDevTools,Vt=void 0===on?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:on,bn=h.queryDeduplication,mn=void 0===bn||bn,fn=h.defaultOptions,Dn=h.assumeImmutableResults,rn=void 0!==Dn&&Dn,Nn=h.resolvers,Qn=h.typeDefs,ti=h.fragmentMatcher,Jn=h.name,qn=h.version,Ce=h.link;if(Ce||(Ce=R?new se({uri:R,credentials:h.credentials,headers:h.headers}):K.i.empty()),!gt)throw __DEV__?new l.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new l.ej(7);if(this.link=Ce,this.cache=gt,this.disableNetworkFetches=_t||qt>0,this.queryDeduplication=mn,this.defaultOptions=fn||{},this.typeDefs=Qn,qt&&setTimeout(function(){return y.disableNetworkFetches=!1},qt),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),Vt&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!an&&__DEV__&&(an=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var ke=window.navigator,le=ke&&ke.userAgent,tt=void 0;"string"==typeof le&&(le.indexOf("Chrome/")>-1?tt="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":le.indexOf("Firefox/")>-1&&(tt="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),tt&&__DEV__&&l.kG.log("Download the Apollo DevTools for a better development experience: "+tt)}this.version="3.5.8",this.localState=new vt({cache:gt,client:this,resolvers:Nn,fragmentMatcher:ti}),this.queryManager=new cn({cache:this.cache,link:this.link,queryDeduplication:mn,ssrMode:_t,clientAwareness:{name:Jn,version:qn},localState:this.localState,assumeImmutableResults:rn,onBroadcast:Vt?function(){y.devToolsHookCb&&y.devToolsHookCb({action:{},state:{queries:y.queryManager.getQueryStore(),mutations:y.queryManager.mutationStore||{}},dataWithOptimisticResults:y.cache.extract(!0)})}:void 0})}return p.prototype.stop=function(){this.queryManager.stop()},p.prototype.watchQuery=function(h){return this.defaultOptions.watchQuery&&(h=nn(this.defaultOptions.watchQuery,h)),this.disableNetworkFetches&&("network-only"===h.fetchPolicy||"cache-and-network"===h.fetchPolicy)&&(h=(0,o.pi)((0,o.pi)({},h),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(h)},p.prototype.query=function(h){return this.defaultOptions.query&&(h=nn(this.defaultOptions.query,h)),__DEV__?(0,l.kG)("cache-and-network"!==h.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,l.kG)("cache-and-network"!==h.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===h.fetchPolicy&&(h=(0,o.pi)((0,o.pi)({},h),{fetchPolicy:"cache-first"})),this.queryManager.query(h)},p.prototype.mutate=function(h){return this.defaultOptions.mutate&&(h=nn(this.defaultOptions.mutate,h)),this.queryManager.mutate(h)},p.prototype.subscribe=function(h){return this.queryManager.startGraphQLSubscription(h)},p.prototype.readQuery=function(h,y){return void 0===y&&(y=!1),this.cache.readQuery(h,y)},p.prototype.readFragment=function(h,y){return void 0===y&&(y=!1),this.cache.readFragment(h,y)},p.prototype.writeQuery=function(h){this.cache.writeQuery(h),this.queryManager.broadcastQueries()},p.prototype.writeFragment=function(h){this.cache.writeFragment(h),this.queryManager.broadcastQueries()},p.prototype.__actionHookForDevTools=function(h){this.devToolsHookCb=h},p.prototype.__requestRaw=function(h){return m(this.link,h)},p.prototype.resetStore=function(){var h=this;return Promise.resolve().then(function(){return h.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(h.resetStoreCallbacks.map(function(y){return y()}))}).then(function(){return h.reFetchObservableQueries()})},p.prototype.clearStore=function(){var h=this;return Promise.resolve().then(function(){return h.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(h.clearStoreCallbacks.map(function(y){return y()}))})},p.prototype.onResetStore=function(h){var y=this;return this.resetStoreCallbacks.push(h),function(){y.resetStoreCallbacks=y.resetStoreCallbacks.filter(function(R){return R!==h})}},p.prototype.onClearStore=function(h){var y=this;return this.clearStoreCallbacks.push(h),function(){y.clearStoreCallbacks=y.clearStoreCallbacks.filter(function(R){return R!==h})}},p.prototype.reFetchObservableQueries=function(h){return this.queryManager.reFetchObservableQueries(h)},p.prototype.refetchQueries=function(h){var y=this.queryManager.refetchQueries(h),R=[],Ee=[];y.forEach(function(gt,Qe){R.push(Qe),Ee.push(gt)});var et=Promise.all(Ee);return et.queries=R,et.results=Ee,et.catch(function(gt){__DEV__&&l.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(gt))}),et},p.prototype.getObservableQueries=function(h){return void 0===h&&(h="active"),this.queryManager.getObservableQueries(h)},p.prototype.extract=function(h){return this.cache.extract(h)},p.prototype.restore=function(h){return this.cache.restore(h)},p.prototype.addResolvers=function(h){this.localState.addResolvers(h)},p.prototype.setResolvers=function(h){this.localState.setResolvers(h)},p.prototype.getResolvers=function(){return this.localState.getResolvers()},p.prototype.setLocalStateFragmentMatcher=function(h){this.localState.setFragmentMatcher(h)},p.prototype.setLink=function(h){this.link=this.queryManager.link=h},p}(),xn=c(2916),yn=c(341),_n=c(3821),un=c(5254),Dt=c(7770),it=c(1059);function Ge(p){return new xn.y(h=>(p().then(y=>{h.closed||(h.next(y),h.complete())},y=>{h.closed||h.error(y)}),()=>h.unsubscribe()))}class St{constructor(h){this.zone=h,this.now=Date.now?Date.now:()=>+new Date}schedule(h,y=0,R){return this.zone.run(()=>yn.N.schedule(h,y,R))}}function xe(p){return p[_n.L]=()=>p,p}function xt(p,h){return p.pipe((0,Dt.QV)(new St(h)))}class de{constructor(h,y,R){this.obsQuery=h;const Ee=xt((0,un.D)(xe(this.obsQuery)),y);this.valueChanges=R.useInitialLoading?Ee.pipe((0,it.O)(Object.assign(Object.assign({},this.obsQuery.getCurrentResult(!1)),{error:void 0,partial:void 0,stale:!0}))):Ee,this.queryId=this.obsQuery.queryId}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(h){return this.obsQuery.refetch(h)}fetchMore(h){return this.obsQuery.fetchMore(h)}subscribeToMore(h){return this.obsQuery.subscribeToMore(h)}updateQuery(h){return this.obsQuery.updateQuery(h)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(h){return this.obsQuery.startPolling(h)}setOptions(h){return this.obsQuery.setOptions(h)}setVariables(h){return this.obsQuery.setVariables(h)}}const ut=new r.OlP("APOLLO_FLAGS"),V=new r.OlP("APOLLO_OPTIONS"),Z=new r.OlP("APOLLO_NAMED_OPTIONS");class oe{constructor(h,y,R){this.ngZone=h,this.flags=y,this._client=R,this.useInitialLoading=function ge(p,h,y){return p&&void 0!==p[h]?p[h]:y}(y,"useInitialLoading",!1)}watchQuery(h){return new de(this.ensureClient().watchQuery(Object.assign({},h)),this.ngZone,Object.assign({useInitialLoading:this.useInitialLoading},h))}query(h){return Ge(()=>this.ensureClient().query(Object.assign({},h)))}mutate(h){return Ge(()=>this.ensureClient().mutate(Object.assign({},h)))}subscribe(h,y){const R=(0,un.D)(xe(this.ensureClient().subscribe(Object.assign({},h))));return y&&!0!==y.useZone?R:xt(R,this.ngZone)}getClient(){return this.client}setClient(h){this.client=h}get client(){return this._client}set client(h){if(this._client)throw new Error("Client has been already defined");this._client=h}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let De=(()=>{class p extends oe{constructor(y,R,Ee,et){if(super(y,et),this._ngZone=y,this.map=new Map,R&&this.createDefault(R),Ee&&"object"==typeof Ee)for(let gt in Ee)Ee.hasOwnProperty(gt)&&this.createNamed(gt,Ee[gt])}create(y,R){ft(R)?this.createDefault(y):this.createNamed(R,y)}default(){return this}use(y){return ft(y)?this.default():this.map.get(y)}createDefault(y){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new Gn(y))}createNamed(y,R){if(this.map.has(y))throw new Error(`Client ${y} has been already created`);this.map.set(y,new oe(this._ngZone,this.flags,new Gn(R)))}removeClient(y){ft(y)?this._client=void 0:this.map.delete(y)}}return p.\u0275fac=function(y){return new(y||p)(r.LFG(r.R0b),r.LFG(V,8),r.LFG(Z,8),r.LFG(ut,8))},p.\u0275prov=r.Yz7({factory:function(){return new p(r.LFG(r.R0b),r.LFG(V,8),r.LFG(Z,8),r.LFG(ut,8))},token:p,providedIn:"root"}),p})();function ft(p){return!p||"default"===p}let Jt=(()=>{class p{constructor(y){this.apollo=y,this.client="default"}watch(y,R){return this.apollo.use(this.client).watchQuery(Object.assign(Object.assign({},R),{variables:y,query:this.document}))}fetch(y,R){return this.apollo.use(this.client).query(Object.assign(Object.assign({},R),{variables:y,query:this.document}))}}return p.\u0275fac=function(y){return new(y||p)(r.LFG(De))},p.\u0275prov=r.Yz7({token:p,factory:p.\u0275fac}),p})(),te=(()=>{class p{constructor(y){this.apollo=y,this.client="default"}mutate(y,R){return this.apollo.use(this.client).mutate(Object.assign(Object.assign({},R),{variables:y,mutation:this.document}))}}return p.\u0275fac=function(y){return new(y||p)(r.LFG(De))},p.\u0275prov=r.Yz7({token:p,factory:p.\u0275fac}),p})()},9664:Ft=>{Ft.exports=function(c){var o=c.name,l=c.type;this.uri=c.uri,this.name=o,this.type=l}},7887:(Ft,Oe,c)=>{var r=c(2001);Ft.exports=function o(l,K,m){void 0===K&&(K=""),void 0===m&&(m=r);var A,b=new Map;function D(w,z){var M=b.get(z);M?M.push.apply(M,w):b.set(z,w)}if(m(l))A=null,D([K],l);else{var C=K?K+".":"";if("undefined"!=typeof FileList&&l instanceof FileList)A=Array.prototype.map.call(l,function(w,z){return D([""+C+z],w),null});else if(Array.isArray(l))A=l.map(function(w,z){var M=o(w,""+C+z,m);return M.files.forEach(D),M.clone});else if(l&&l.constructor===Object)for(var E in A={},l){var S=o(l[E],""+C+E,m);S.files.forEach(D),A[E]=S.clone}else A=l}return{clone:A,files:b}}},2001:(Ft,Oe,c)=>{var r=c(9664);Ft.exports=function(l){return"undefined"!=typeof File&&l instanceof File||"undefined"!=typeof Blob&&l instanceof Blob||l instanceof r}},5109:(Ft,Oe,c)=>{c.d(Oe,{s:()=>E});var r=c(9808),o=c(5e3);let E=(()=>{class S{}return S.\u0275fac=function(z){return new(z||S)},S.\u0275mod=o.oAB({type:S}),S.\u0275inj=o.cJS({imports:[[r.ez]]}),S})()},8625:(Ft,Oe,c)=>{c.d(Oe,{KP:()=>fe,$L:()=>we,wr:()=>se});var r=c(1086),o=c(8723),l=c(8896),K=c(8929),m=c(1177);class b{constructor(Ye,We,rt){this.project=Ye,this.concurrent=We,this.scheduler=rt}call(Ye,We){return We.subscribe(new D(Ye,this.project,this.concurrent,this.scheduler))}}class D extends m.Ds{constructor(Ye,We,rt,wt){super(Ye),this.project=We,this.concurrent=rt,this.scheduler=wt,this.index=0,this.active=0,this.hasCompleted=!1,rt0&&this._next(Ye.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var C=c(1307),E=c(2198),S=c(5e3);const N=3600;class Re{}let ae=(()=>{class ue extends Re{tick(We){return(0,r.of)(0).pipe(function A(ue,Ye=Number.POSITIVE_INFINITY,We){return Ye=(Ye||0)<1?Number.POSITIVE_INFINITY:Ye,rt=>rt.lift(new b(ue,Ye,We))}(()=>{const rt=Date.now(),wt=Math.round(Math.abs(rt-We)/1e3),Ae=wt<60?1e3:wt{class ue{constructor(){this.changes=new K.xQ}}return ue.\u0275fac=function(We){return new(We||ue)},ue.\u0275prov=S.Yz7({token:ue,factory:ue.\u0275fac}),ue})();class fe{}let U=(()=>{class ue extends fe{format(We){const{suffix:rt,value:wt,unit:Ae}=function(ue){const Ye=Date.now(),We=Math.round(Math.abs(Ye-ue)/1e3),rt=ue{class ue{constructor(We,rt,wt,Ae){this.clock=Ae,this.live=!0,this.stateChanges=new K.xQ,We&&(this.intlSubscription=We.changes.subscribe(()=>this.stateChanges.next())),this.stateChanges.subscribe(()=>{this.value=wt.format(this.date),rt.markForCheck()})}transform(We,...rt){const wt=function M(ue){const Ye=new Date(ue);if(!Number.isNaN(Ye.valueOf()))return Ye;const We=String(ue).match(/\d+/g);if(null===We||We.length<=2)return Ye;{const[rt,wt,...Ae]=We.map(mt=>parseInt(mt,10));return new Date(Date.UTC(rt,wt-1,...Ae))}}(We).valueOf();let Ae;if(Ae=function w(ue){return null!=ue}(rt[0])?function z(ue){return null!=ue&&"false"!=`${ue}`}(rt[0]):this.live,this.date===wt&&this.live===Ae)return this.value;if(this.date=wt,this.live=Ae,!this.date)throw new SyntaxError(`Wrong parameter in TimeagoPipe. Expected a valid date, received: ${We}`);return this.clockSubscription&&(this.clockSubscription.unsubscribe(),this.clockSubscription=void 0),this.clockSubscription=this.clock.tick(this.date).pipe((0,E.h)(()=>this.live,this)).subscribe(()=>this.stateChanges.next()),this.stateChanges.next(),this.value}ngOnDestroy(){this.intlSubscription&&(this.intlSubscription.unsubscribe(),this.intlSubscription=void 0),this.clockSubscription&&(this.clockSubscription.unsubscribe(),this.clockSubscription=void 0),this.stateChanges.complete()}}return ue.\u0275fac=function(We){return new(We||ue)(S.Y36(Ue,24),S.Y36(S.sBO,16),S.Y36(fe,16),S.Y36(Re,16))},ue.\u0275pipe=S.Yjl({name:"timeago",type:ue,pure:!1}),ue.\u0275prov=S.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),we=(()=>{class ue{static forRoot(We={}){return{ngModule:ue,providers:[We.clock||{provide:Re,useClass:ae},We.intl||[],We.formatter||{provide:fe,useClass:U}]}}static forChild(We={}){return{ngModule:ue,providers:[We.clock||{provide:Re,useClass:ae},We.intl||[],We.formatter||{provide:fe,useClass:U}]}}}return ue.\u0275fac=function(We){return new(We||ue)},ue.\u0275mod=S.oAB({type:ue}),ue.\u0275inj=S.cJS({}),ue})()},9769:(Ft,Oe,c)=>{c.d(Oe,{dP:()=>ue,re:()=>wt});var r=c(9428),o=c(3119);function l(){}var A,K=function(){function Ae(mt,kt){void 0===mt&&(mt=1/0),void 0===kt&&(kt=l),this.max=mt,this.dispose=kt,this.map=new Map,this.newest=null,this.oldest=null}return Ae.prototype.has=function(mt){return this.map.has(mt)},Ae.prototype.get=function(mt){var kt=this.getNode(mt);return kt&&kt.value},Ae.prototype.getNode=function(mt){var kt=this.map.get(mt);if(kt&&kt!==this.newest){var Ct=kt.older,It=kt.newer;It&&(It.older=Ct),Ct&&(Ct.newer=It),kt.older=this.newest,kt.older.newer=kt,kt.newer=null,this.newest=kt,kt===this.oldest&&(this.oldest=It)}return kt},Ae.prototype.set=function(mt,kt){var Ct=this.getNode(mt);return Ct?Ct.value=kt:(Ct={key:mt,value:kt,newer:null,older:this.newest},this.newest&&(this.newest.newer=Ct),this.newest=Ct,this.oldest=this.oldest||Ct,this.map.set(mt,Ct),Ct.value)},Ae.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},Ae.prototype.delete=function(mt){var kt=this.map.get(mt);return!!kt&&(kt===this.newest&&(this.newest=kt.older),kt===this.oldest&&(this.oldest=kt.newer),kt.newer&&(kt.newer.older=kt.older),kt.older&&(kt.older.newer=kt.newer),this.map.delete(mt),this.dispose(kt.value,mt),!0)},Ae}(),m=new o.g7,b=Object.prototype.hasOwnProperty,D=void 0===(A=Array.from)?function(Ae){var mt=[];return Ae.forEach(function(kt){return mt.push(kt)}),mt}:A;function C(Ae){var mt=Ae.unsubscribe;"function"==typeof mt&&(Ae.unsubscribe=void 0,mt())}var E=[];function w(Ae,mt){if(!Ae)throw new Error(mt||"assertion failure")}function M(Ae){switch(Ae.length){case 0:throw new Error("unknown value");case 1:return Ae[0];case 2:throw Ae[1]}}var N=function(){function Ae(mt){this.fn=mt,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Ae.count}return Ae.prototype.peek=function(){if(1===this.value.length&&!Le(this))return ie(this),this.value[0]},Ae.prototype.recompute=function(mt){return w(!this.recomputing,"already recomputing"),ie(this),Le(this)?function ce(Ae,mt){return J(Ae),m.withValue(Ae,ve,[Ae,mt]),function se(Ae,mt){if("function"==typeof Ae.subscribe)try{C(Ae),Ae.unsubscribe=Ae.subscribe.apply(null,mt)}catch(kt){return Ae.setDirty(),!1}return!0}(Ae,mt)&&function Re(Ae){Ae.dirty=!1,!Le(Ae)&&Ue(Ae)}(Ae),M(Ae.value)}(this,mt):M(this.value)},Ae.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,ae(this),C(this))},Ae.prototype.dispose=function(){var mt=this;this.setDirty(),J(this),He(this,function(kt,Ct){kt.setDirty(),Me(kt,mt)})},Ae.prototype.forget=function(){this.dispose()},Ae.prototype.dependOn=function(mt){mt.add(this),this.deps||(this.deps=E.pop()||new Set),this.deps.add(mt)},Ae.prototype.forgetDeps=function(){var mt=this;this.deps&&(D(this.deps).forEach(function(kt){return kt.delete(mt)}),this.deps.clear(),E.push(this.deps),this.deps=null)},Ae.count=0,Ae}();function ie(Ae){var mt=m.getValue();if(mt)return Ae.parents.add(mt),mt.childValues.has(Ae)||mt.childValues.set(Ae,[]),Le(Ae)?me(mt,Ae):fe(mt,Ae),mt}function ve(Ae,mt){Ae.recomputing=!0,Ae.value.length=0;try{Ae.value[0]=Ae.fn.apply(null,mt)}catch(kt){Ae.value[1]=kt}Ae.recomputing=!1}function Le(Ae){return Ae.dirty||!(!Ae.dirtyChildren||!Ae.dirtyChildren.size)}function ae(Ae){He(Ae,me)}function Ue(Ae){He(Ae,fe)}function He(Ae,mt){var kt=Ae.parents.size;if(kt)for(var Ct=D(Ae.parents),It=0;It0&&kt===mt.length&&Ae[kt-1]===mt[kt-1]}(kt,mt.value)||Ae.setDirty(),U(Ae,mt),!Le(Ae)&&Ue(Ae)}function U(Ae,mt){var kt=Ae.dirtyChildren;kt&&(kt.delete(mt),0===kt.size&&(E.length<100&&E.push(kt),Ae.dirtyChildren=null))}function J(Ae){Ae.childValues.size>0&&Ae.childValues.forEach(function(mt,kt){Me(Ae,kt)}),Ae.forgetDeps(),w(null===Ae.dirtyChildren)}function Me(Ae,mt){mt.parents.delete(Ae),Ae.childValues.delete(mt),U(Ae,mt)}var we={setDirty:!0,dispose:!0,forget:!0};function ue(Ae){var mt=new Map,kt=Ae&&Ae.subscribe;function Ct(It){var Xe=m.getValue();if(Xe){var lt=mt.get(It);lt||mt.set(It,lt=new Set),Xe.dependOn(lt),"function"==typeof kt&&(C(lt),lt.unsubscribe=kt(It))}}return Ct.dirty=function(Xe,lt){var ct=mt.get(Xe);if(ct){var Lt=lt&&b.call(we,lt)?lt:"setDirty";D(ct).forEach(function(Ie){return Ie[Lt]()}),mt.delete(Xe),C(ct)}},Ct}function Ye(){var Ae=new r.B("function"==typeof WeakMap);return function(){return Ae.lookupArray(arguments)}}Ye();var rt=new Set;function wt(Ae,mt){void 0===mt&&(mt=Object.create(null));var kt=new K(mt.max||Math.pow(2,16),function(Ie){return Ie.dispose()}),Ct=mt.keyArgs,It=mt.makeCacheKey||Ye(),Xe=function(){var Ie=It.apply(null,Ct?Ct.apply(null,arguments):arguments);if(void 0===Ie)return Ae.apply(null,arguments);var Pt=kt.get(Ie);Pt||(kt.set(Ie,Pt=new N(Ae)),Pt.subscribe=mt.subscribe,Pt.forget=function(){return kt.delete(Ie)});var pt=Pt.recompute(Array.prototype.slice.call(arguments));return kt.set(Ie,Pt),rt.add(kt),m.hasValue()||(rt.forEach(function(Et){return Et.clean()}),rt.clear()),pt};function lt(Ie){var Pt=kt.get(Ie);Pt&&Pt.setDirty()}function ct(Ie){var Pt=kt.get(Ie);if(Pt)return Pt.peek()}function Lt(Ie){return kt.delete(Ie)}return Object.defineProperty(Xe,"size",{get:function(){return kt.map.size},configurable:!1,enumerable:!1}),Xe.dirtyKey=lt,Xe.dirty=function(){lt(It.apply(null,arguments))},Xe.peekKey=ct,Xe.peek=function(){return ct(It.apply(null,arguments))},Xe.forgetKey=Lt,Xe.forget=function(){return Lt(It.apply(null,arguments))},Xe.makeCacheKey=It,Xe.getKey=Ct?function(){return It.apply(null,Ct.apply(null,arguments))}:It,Object.freeze(Xe)}},591:(Ft,Oe,c)=>{c.d(Oe,{X:()=>l});var r=c(8929),o=c(5279);class l extends r.xQ{constructor(m){super(),this._value=m}get value(){return this.getValue()}_subscribe(m){const A=super._subscribe(m);return A&&!A.closed&&m.next(this._value),A}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.N;return this._value}next(m){super.next(this._value=m)}}},9312:(Ft,Oe,c)=>{c.d(Oe,{P:()=>m});var r=c(8896),o=c(1086),l=c(1737);class m{constructor(b,D,C){this.kind=b,this.value=D,this.error=C,this.hasValue="N"===b}observe(b){switch(this.kind){case"N":return b.next&&b.next(this.value);case"E":return b.error&&b.error(this.error);case"C":return b.complete&&b.complete()}}do(b,D,C){switch(this.kind){case"N":return b&&b(this.value);case"E":return D&&D(this.error);case"C":return C&&C()}}accept(b,D,C){return b&&"function"==typeof b.next?this.observe(b):this.do(b,D,C)}toObservable(){switch(this.kind){case"N":return(0,o.of)(this.value);case"E":return(0,l._)(this.error);case"C":return(0,r.c)()}throw new Error("unexpected notification kind value")}static createNext(b){return void 0!==b?new m("N",b):m.undefinedValueNotification}static createError(b){return new m("E",void 0,b)}static createComplete(){return m.completeNotification}}m.completeNotification=new m("C"),m.undefinedValueNotification=new m("N",void 0)},2916:(Ft,Oe,c)=>{c.d(Oe,{y:()=>S});var r=c(3489),l=c(7668),K=c(3292),A=c(3821),b=c(5379);var E=c(2830);let S=(()=>{class z{constructor(k){this._isScalar=!1,k&&(this._subscribe=k)}lift(k){const N=new z;return N.source=this,N.operator=k,N}subscribe(k,N,ie){const{operator:ce}=this,ve=function m(z,M,k){if(z){if(z instanceof r.L)return z;if(z[l.b])return z[l.b]()}return z||M||k?new r.L(z,M,k):new r.L(K.c)}(k,N,ie);if(ve.add(ce?ce.call(ve,this.source):this.source||E.v.useDeprecatedSynchronousErrorHandling&&!ve.syncErrorThrowable?this._subscribe(ve):this._trySubscribe(ve)),E.v.useDeprecatedSynchronousErrorHandling&&ve.syncErrorThrowable&&(ve.syncErrorThrowable=!1,ve.syncErrorThrown))throw ve.syncErrorValue;return ve}_trySubscribe(k){try{return this._subscribe(k)}catch(N){E.v.useDeprecatedSynchronousErrorHandling&&(k.syncErrorThrown=!0,k.syncErrorValue=N),function o(z){for(;z;){const{closed:M,destination:k,isStopped:N}=z;if(M||N)return!1;z=k&&k instanceof r.L?k:null}return!0}(k)?k.error(N):console.warn(N)}}forEach(k,N){return new(N=w(N))((ie,ce)=>{let ve;ve=this.subscribe(Le=>{try{k(Le)}catch(Re){ce(Re),ve&&ve.unsubscribe()}},ce,ie)})}_subscribe(k){const{source:N}=this;return N&&N.subscribe(k)}[A.L](){return this}pipe(...k){return 0===k.length?this:function C(z){return 0===z.length?b.y:1===z.length?z[0]:function(k){return z.reduce((N,ie)=>ie(N),k)}}(k)(this)}toPromise(k){return new(k=w(k))((N,ie)=>{let ce;this.subscribe(ve=>ce=ve,ve=>ie(ve),()=>N(ce))})}}return z.create=M=>new z(M),z})();function w(z){if(z||(z=E.v.Promise||Promise),!z)throw new Error("no Promise impl found");return z}},3292:(Ft,Oe,c)=>{c.d(Oe,{c:()=>l});var r=c(2830),o=c(2782);const l={closed:!0,next(K){},error(K){if(r.v.useDeprecatedSynchronousErrorHandling)throw K;(0,o.z)(K)},complete(){}}},839:(Ft,Oe,c)=>{c.d(Oe,{t:()=>b});var r=c(8929),o=c(341),l=c(2654),K=c(7770),m=c(5279),A=c(5283);class b extends r.xQ{constructor(E=Number.POSITIVE_INFINITY,S=Number.POSITIVE_INFINITY,w){super(),this.scheduler=w,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=E<1?1:E,this._windowTime=S<1?1:S,S===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(E){if(!this.isStopped){const S=this._events;S.push(E),S.length>this._bufferSize&&S.shift()}super.next(E)}nextTimeWindow(E){this.isStopped||(this._events.push(new D(this._getNow(),E)),this._trimBufferThenGetEvents()),super.next(E)}_subscribe(E){const S=this._infiniteTimeWindow,w=S?this._events:this._trimBufferThenGetEvents(),z=this.scheduler,M=w.length;let k;if(this.closed)throw new m.N;if(this.isStopped||this.hasError?k=l.w.EMPTY:(this.observers.push(E),k=new A.W(this,E)),z&&E.add(E=new K.ht(E,z)),S)for(let N=0;NS&&(k=Math.max(k,M-S)),k>0&&z.splice(0,k),z}}class D{constructor(E,S){this.time=E,this.value=S}}},8929:(Ft,Oe,c)=>{c.d(Oe,{Yc:()=>b,xQ:()=>D});var r=c(2916),o=c(3489),l=c(2654),K=c(5279),m=c(5283),A=c(7668);class b extends o.L{constructor(S){super(S),this.destination=S}}let D=(()=>{class E extends r.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[A.b](){return new b(this)}lift(w){const z=new C(this,this);return z.operator=w,z}next(w){if(this.closed)throw new K.N;if(!this.isStopped){const{observers:z}=this,M=z.length,k=z.slice();for(let N=0;Nnew C(S,w),E})();class C extends D{constructor(S,w){super(),this.destination=S,this.source=w}next(S){const{destination:w}=this;w&&w.next&&w.next(S)}error(S){const{destination:w}=this;w&&w.error&&this.destination.error(S)}complete(){const{destination:S}=this;S&&S.complete&&this.destination.complete()}_subscribe(S){const{source:w}=this;return w?this.source.subscribe(S):l.w.EMPTY}}},5283:(Ft,Oe,c)=>{c.d(Oe,{W:()=>o});var r=c(2654);class o extends r.w{constructor(K,m){super(),this.subject=K,this.subscriber=m,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const K=this.subject,m=K.observers;if(this.subject=null,!m||0===m.length||K.isStopped||K.closed)return;const A=m.indexOf(this.subscriber);-1!==A&&m.splice(A,1)}}},3489:(Ft,Oe,c)=>{c.d(Oe,{L:()=>b});var r=c(7043),o=c(3292),l=c(2654),K=c(7668),m=c(2830),A=c(2782);class b extends l.w{constructor(E,S,w){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.c;break;case 1:if(!E){this.destination=o.c;break}if("object"==typeof E){E instanceof b?(this.syncErrorThrowable=E.syncErrorThrowable,this.destination=E,E.add(this)):(this.syncErrorThrowable=!0,this.destination=new D(this,E));break}default:this.syncErrorThrowable=!0,this.destination=new D(this,E,S,w)}}[K.b](){return this}static create(E,S,w){const z=new b(E,S,w);return z.syncErrorThrowable=!1,z}next(E){this.isStopped||this._next(E)}error(E){this.isStopped||(this.isStopped=!0,this._error(E))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(E){this.destination.next(E)}_error(E){this.destination.error(E),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:E}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=E,this}}class D extends b{constructor(E,S,w,z){super(),this._parentSubscriber=E;let M,k=this;(0,r.m)(S)?M=S:S&&(M=S.next,w=S.error,z=S.complete,S!==o.c&&(k=Object.create(S),(0,r.m)(k.unsubscribe)&&this.add(k.unsubscribe.bind(k)),k.unsubscribe=this.unsubscribe.bind(this))),this._context=k,this._next=M,this._error=w,this._complete=z}next(E){if(!this.isStopped&&this._next){const{_parentSubscriber:S}=this;m.v.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable?this.__tryOrSetError(S,this._next,E)&&this.unsubscribe():this.__tryOrUnsub(this._next,E)}}error(E){if(!this.isStopped){const{_parentSubscriber:S}=this,{useDeprecatedSynchronousErrorHandling:w}=m.v;if(this._error)w&&S.syncErrorThrowable?(this.__tryOrSetError(S,this._error,E),this.unsubscribe()):(this.__tryOrUnsub(this._error,E),this.unsubscribe());else if(S.syncErrorThrowable)w?(S.syncErrorValue=E,S.syncErrorThrown=!0):(0,A.z)(E),this.unsubscribe();else{if(this.unsubscribe(),w)throw E;(0,A.z)(E)}}}complete(){if(!this.isStopped){const{_parentSubscriber:E}=this;if(this._complete){const S=()=>this._complete.call(this._context);m.v.useDeprecatedSynchronousErrorHandling&&E.syncErrorThrowable?(this.__tryOrSetError(E,S),this.unsubscribe()):(this.__tryOrUnsub(S),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(E,S){try{E.call(this._context,S)}catch(w){if(this.unsubscribe(),m.v.useDeprecatedSynchronousErrorHandling)throw w;(0,A.z)(w)}}__tryOrSetError(E,S,w){if(!m.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{S.call(this._context,w)}catch(z){return m.v.useDeprecatedSynchronousErrorHandling?(E.syncErrorValue=z,E.syncErrorThrown=!0,!0):((0,A.z)(z),!0)}return!1}_unsubscribe(){const{_parentSubscriber:E}=this;this._context=null,this._parentSubscriber=null,E.unsubscribe()}}},2654:(Ft,Oe,c)=>{c.d(Oe,{w:()=>A});var r=c(6688),o=c(7830),l=c(7043);const m=(()=>{function D(C){return Error.call(this),this.message=C?`${C.length} errors occurred during unsubscription:\n${C.map((E,S)=>`${S+1}) ${E.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=C,this}return D.prototype=Object.create(Error.prototype),D})();class A{constructor(C){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,C&&(this._ctorUnsubscribe=!0,this._unsubscribe=C)}unsubscribe(){let C;if(this.closed)return;let{_parentOrParents:E,_ctorUnsubscribe:S,_unsubscribe:w,_subscriptions:z}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,E instanceof A)E.remove(this);else if(null!==E)for(let M=0;MC.concat(E instanceof m?E.errors:E),[])}A.EMPTY=((D=new A).closed=!0,D)},2830:(Ft,Oe,c)=>{c.d(Oe,{v:()=>o});let r=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(l){if(l){const K=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+K.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=l},get useDeprecatedSynchronousErrorHandling(){return r}}},1177:(Ft,Oe,c)=>{c.d(Oe,{IY:()=>K,Ds:()=>A,ft:()=>D});var r=c(3489),o=c(2916),l=c(9249);class K extends r.L{constructor(E){super(),this.parent=E}_next(E){this.parent.notifyNext(E)}_error(E){this.parent.notifyError(E),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class A extends r.L{notifyNext(E){this.destination.next(E)}notifyError(E){this.destination.error(E)}notifyComplete(){this.destination.complete()}}function D(C,E){if(E.closed)return;if(C instanceof o.y)return C.subscribe(E);let S;try{S=(0,l.s)(C)(E)}catch(w){E.error(w)}return S}},1762:(Ft,Oe,c)=>{c.d(Oe,{c:()=>m,N:()=>A});var r=c(8929),o=c(2916),l=c(2654),K=c(4327);class m extends o.y{constructor(S,w){super(),this.source=S,this.subjectFactory=w,this._refCount=0,this._isComplete=!1}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let S=this._connection;return S||(this._isComplete=!1,S=this._connection=new l.w,S.add(this.source.subscribe(new b(this.getSubject(),this))),S.closed&&(this._connection=null,S=l.w.EMPTY)),S}refCount(){return(0,K.x)()(this)}}const A=(()=>{const E=m.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:E._subscribe},_isComplete:{value:E._isComplete,writable:!0},getSubject:{value:E.getSubject},connect:{value:E.connect},refCount:{value:E.refCount}}})();class b extends r.Yc{constructor(S,w){super(S),this.connectable=w}_error(S){this._unsubscribe(),super._error(S)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const S=this.connectable;if(S){this.connectable=null;const w=S._connection;S._refCount=0,S._subject=null,S._connection=null,w&&w.unsubscribe()}}}},3426:(Ft,Oe,c)=>{c.d(Oe,{aj:()=>S});var r=c(2866),o=c(6688),l=c(3489);class K extends l.L{notifyNext(k,N,ie,ce,ve){this.destination.next(N)}notifyError(k,N){this.destination.error(k)}notifyComplete(k){this.destination.complete()}}class m extends l.L{constructor(k,N,ie){super(),this.parent=k,this.outerValue=N,this.outerIndex=ie,this.index=0}_next(k){this.parent.notifyNext(this.outerValue,k,this.outerIndex,this.index++,this)}_error(k){this.parent.notifyError(k,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var A=c(9249),b=c(2916);function D(M,k,N,ie,ce=new m(M,N,ie)){if(!ce.closed)return k instanceof b.y?k.subscribe(ce):(0,A.s)(k)(ce)}var C=c(3009);const E={};function S(...M){let k,N;return(0,r.K)(M[M.length-1])&&(N=M.pop()),"function"==typeof M[M.length-1]&&(k=M.pop()),1===M.length&&(0,o.k)(M[0])&&(M=M[0]),(0,C.n)(M,N).lift(new w(k))}class w{constructor(k){this.resultSelector=k}call(k,N){return N.subscribe(new z(k,this.resultSelector))}}class z extends K{constructor(k,N){super(k),this.resultSelector=N,this.active=0,this.values=[],this.observables=[]}_next(k){this.values.push(E),this.observables.push(k)}_complete(){const k=this.observables,N=k.length;if(0===N)this.destination.complete();else{this.active=N,this.toRespond=N;for(let ie=0;ie{c.d(Oe,{z:()=>K});var r=c(1086),o=c(9146);function K(...m){return function l(){return(0,o.J)(1)}()((0,r.of)(...m))}},8514:(Ft,Oe,c)=>{c.d(Oe,{P:()=>K});var r=c(2916),o=c(5254),l=c(8896);function K(m){return new r.y(A=>{let b;try{b=m()}catch(C){return void A.error(C)}return(b?(0,o.D)(b):(0,l.c)()).subscribe(A)})}},8896:(Ft,Oe,c)=>{c.d(Oe,{E:()=>o,c:()=>l});var r=c(2916);const o=new r.y(m=>m.complete());function l(m){return m?function K(m){return new r.y(A=>m.schedule(()=>A.complete()))}(m):o}},5254:(Ft,Oe,c)=>{c.d(Oe,{D:()=>k});var r=c(2916),o=c(9249),l=c(2654),K=c(3821),b=c(6454),D=c(5430),S=c(8955),w=c(8515);function k(N,ie){return ie?function M(N,ie){if(null!=N){if(function E(N){return N&&"function"==typeof N[K.L]}(N))return function m(N,ie){return new r.y(ce=>{const ve=new l.w;return ve.add(ie.schedule(()=>{const Le=N[K.L]();ve.add(Le.subscribe({next(Re){ve.add(ie.schedule(()=>ce.next(Re)))},error(Re){ve.add(ie.schedule(()=>ce.error(Re)))},complete(){ve.add(ie.schedule(()=>ce.complete()))}}))})),ve})}(N,ie);if((0,S.t)(N))return function A(N,ie){return new r.y(ce=>{const ve=new l.w;return ve.add(ie.schedule(()=>N.then(Le=>{ve.add(ie.schedule(()=>{ce.next(Le),ve.add(ie.schedule(()=>ce.complete()))}))},Le=>{ve.add(ie.schedule(()=>ce.error(Le)))}))),ve})}(N,ie);if((0,w.z)(N))return(0,b.r)(N,ie);if(function z(N){return N&&"function"==typeof N[D.hZ]}(N)||"string"==typeof N)return function C(N,ie){if(!N)throw new Error("Iterable cannot be null");return new r.y(ce=>{const ve=new l.w;let Le;return ve.add(()=>{Le&&"function"==typeof Le.return&&Le.return()}),ve.add(ie.schedule(()=>{Le=N[D.hZ](),ve.add(ie.schedule(function(){if(ce.closed)return;let Re,ae;try{const Ue=Le.next();Re=Ue.value,ae=Ue.done}catch(Ue){return void ce.error(Ue)}ae?ce.complete():(ce.next(Re),this.schedule())}))})),ve})}(N,ie)}throw new TypeError((null!==N&&typeof N||N)+" is not observable")}(N,ie):N instanceof r.y?N:new r.y((0,o.s)(N))}},3009:(Ft,Oe,c)=>{c.d(Oe,{n:()=>K});var r=c(2916),o=c(3650),l=c(6454);function K(m,A){return A?(0,l.r)(m,A):new r.y((0,o.V)(m))}},3753:(Ft,Oe,c)=>{c.d(Oe,{R:()=>A});var r=c(2916),o=c(6688),l=c(7043),K=c(4850);function A(S,w,z,M){return(0,l.m)(z)&&(M=z,z=void 0),M?A(S,w,z).pipe((0,K.U)(k=>(0,o.k)(k)?M(...k):M(k))):new r.y(k=>{b(S,w,function N(ie){k.next(arguments.length>1?Array.prototype.slice.call(arguments):ie)},k,z)})}function b(S,w,z,M,k){let N;if(function E(S){return S&&"function"==typeof S.addEventListener&&"function"==typeof S.removeEventListener}(S)){const ie=S;S.addEventListener(w,z,k),N=()=>ie.removeEventListener(w,z,k)}else if(function C(S){return S&&"function"==typeof S.on&&"function"==typeof S.off}(S)){const ie=S;S.on(w,z),N=()=>ie.off(w,z)}else if(function D(S){return S&&"function"==typeof S.addListener&&"function"==typeof S.removeListener}(S)){const ie=S;S.addListener(w,z),N=()=>ie.removeListener(w,z)}else{if(!S||!S.length)throw new TypeError("Invalid event target");for(let ie=0,ce=S.length;ie{c.d(Oe,{T:()=>m});var r=c(2916),o=c(2866),l=c(9146),K=c(3009);function m(...A){let b=Number.POSITIVE_INFINITY,D=null,C=A[A.length-1];return(0,o.K)(C)?(D=A.pop(),A.length>1&&"number"==typeof A[A.length-1]&&(b=A.pop())):"number"==typeof C&&(b=A.pop()),null===D&&1===A.length&&A[0]instanceof r.y?A[0]:(0,l.J)(b)((0,K.n)(A,D))}},1086:(Ft,Oe,c)=>{c.d(Oe,{of:()=>K});var r=c(2866),o=c(3009),l=c(6454);function K(...m){let A=m[m.length-1];return(0,r.K)(A)?(m.pop(),(0,l.r)(m,A)):(0,o.n)(m)}},1737:(Ft,Oe,c)=>{c.d(Oe,{_:()=>o});var r=c(2916);function o(K,m){return new r.y(m?A=>m.schedule(l,0,{error:K,subscriber:A}):A=>A.error(K))}function l({error:K,subscriber:m}){m.error(K)}},8723:(Ft,Oe,c)=>{c.d(Oe,{H:()=>m});var r=c(2916),o=c(353),l=c(4241),K=c(2866);function m(b=0,D,C){let E=-1;return(0,l.k)(D)?E=Number(D)<1?1:Number(D):(0,K.K)(D)&&(C=D),(0,K.K)(C)||(C=o.P),new r.y(S=>{const w=(0,l.k)(b)?b:+b-C.now();return C.schedule(A,w,{index:0,period:E,subscriber:S})})}function A(b){const{index:D,period:C,subscriber:E}=b;if(E.next(D),!E.closed){if(-1===C)return E.complete();b.index=D+1,this.schedule(b,C)}}},7138:(Ft,Oe,c)=>{c.d(Oe,{e:()=>b});var r=c(353),o=c(1177);class K{constructor(C){this.durationSelector=C}call(C,E){return E.subscribe(new m(C,this.durationSelector))}}class m extends o.Ds{constructor(C,E){super(C),this.durationSelector=E,this.hasValue=!1}_next(C){if(this.value=C,this.hasValue=!0,!this.throttled){let E;try{const{durationSelector:w}=this;E=w(C)}catch(w){return this.destination.error(w)}const S=(0,o.ft)(E,new o.IY(this));!S||S.closed?this.clearThrottle():this.add(this.throttled=S)}}clearThrottle(){const{value:C,hasValue:E,throttled:S}=this;S&&(this.remove(S),this.throttled=void 0,S.unsubscribe()),E&&(this.value=void 0,this.hasValue=!1,this.destination.next(C))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var A=c(8723);function b(D,C=r.P){return function l(D){return function(E){return E.lift(new K(D))}}(()=>(0,A.H)(D,C))}},7221:(Ft,Oe,c)=>{c.d(Oe,{K:()=>o});var r=c(1177);function o(m){return function(b){const D=new l(m),C=b.lift(D);return D.caught=C}}class l{constructor(A){this.selector=A}call(A,b){return b.subscribe(new K(A,this.selector,this.caught))}}class K extends r.Ds{constructor(A,b,D){super(A),this.selector=b,this.caught=D}error(A){if(!this.isStopped){let b;try{b=this.selector(A,this.caught)}catch(E){return void super.error(E)}this._unsubscribeAndRecycle();const D=new r.IY(this);this.add(D);const C=(0,r.ft)(b,D);C!==D&&this.add(C)}}}},1406:(Ft,Oe,c)=>{c.d(Oe,{b:()=>o});var r=c(1709);function o(l,K){return(0,r.zg)(l,K,1)}},13:(Ft,Oe,c)=>{c.d(Oe,{b:()=>l});var r=c(3489),o=c(353);function l(b,D=o.P){return C=>C.lift(new K(b,D))}class K{constructor(D,C){this.dueTime=D,this.scheduler=C}call(D,C){return C.subscribe(new m(D,this.dueTime,this.scheduler))}}class m extends r.L{constructor(D,C,E){super(D),this.dueTime=C,this.scheduler=E,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(D){this.clearDebounce(),this.lastValue=D,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(A,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:D}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(D)}}clearDebounce(){const D=this.debouncedSubscription;null!==D&&(this.remove(D),D.unsubscribe(),this.debouncedSubscription=null)}}function A(b){b.debouncedNext()}},7314:(Ft,Oe,c)=>{c.d(Oe,{d:()=>o});var r=c(3489);function o(m=null){return A=>A.lift(new l(m))}class l{constructor(A){this.defaultValue=A}call(A,b){return b.subscribe(new K(A,this.defaultValue))}}class K extends r.L{constructor(A,b){super(A),this.defaultValue=b,this.isEmpty=!0}_next(A){this.isEmpty=!1,this.destination.next(A)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},5778:(Ft,Oe,c)=>{c.d(Oe,{x:()=>o});var r=c(3489);function o(m,A){return b=>b.lift(new l(m,A))}class l{constructor(A,b){this.compare=A,this.keySelector=b}call(A,b){return b.subscribe(new K(A,this.compare,this.keySelector))}}class K extends r.L{constructor(A,b,D){super(A),this.keySelector=D,this.hasKey=!1,"function"==typeof b&&(this.compare=b)}compare(A,b){return A===b}_next(A){let b;try{const{keySelector:C}=this;b=C?C(A):A}catch(C){return this.destination.error(C)}let D=!1;if(this.hasKey)try{const{compare:C}=this;D=C(this.key,b)}catch(C){return this.destination.error(C)}else this.hasKey=!0;D||(this.key=b,this.destination.next(A))}}},2198:(Ft,Oe,c)=>{c.d(Oe,{h:()=>o});var r=c(3489);function o(m,A){return function(D){return D.lift(new l(m,A))}}class l{constructor(A,b){this.predicate=A,this.thisArg=b}call(A,b){return b.subscribe(new K(A,this.predicate,this.thisArg))}}class K extends r.L{constructor(A,b,D){super(A),this.predicate=b,this.thisArg=D,this.count=0}_next(A){let b;try{b=this.predicate.call(this.thisArg,A,this.count++)}catch(D){return void this.destination.error(D)}b&&this.destination.next(A)}}},537:(Ft,Oe,c)=>{c.d(Oe,{x:()=>l});var r=c(3489),o=c(2654);function l(A){return b=>b.lift(new K(A))}class K{constructor(b){this.callback=b}call(b,D){return D.subscribe(new m(b,this.callback))}}class m extends r.L{constructor(b,D){super(b),this.add(new o.w(D))}}},7224:(Ft,Oe,c)=>{c.d(Oe,{P:()=>b});var r=c(4450),o=c(2198),l=c(2986),K=c(7314),m=c(4907),A=c(5379);function b(D,C){const E=arguments.length>=2;return S=>S.pipe(D?(0,o.h)((w,z)=>D(w,z,S)):A.y,(0,l.q)(1),E?(0,K.d)(C):(0,m.T)(()=>new r.K))}},4850:(Ft,Oe,c)=>{c.d(Oe,{U:()=>o});var r=c(3489);function o(m,A){return function(D){if("function"!=typeof m)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return D.lift(new l(m,A))}}class l{constructor(A,b){this.project=A,this.thisArg=b}call(A,b){return b.subscribe(new K(A,this.project,this.thisArg))}}class K extends r.L{constructor(A,b,D){super(A),this.project=b,this.count=0,this.thisArg=D||this}_next(A){let b;try{b=this.project.call(this.thisArg,A,this.count++)}catch(D){return void this.destination.error(D)}this.destination.next(b)}}},7604:(Ft,Oe,c)=>{c.d(Oe,{h:()=>o});var r=c(3489);function o(m){return A=>A.lift(new l(m))}class l{constructor(A){this.value=A}call(A,b){return b.subscribe(new K(A,this.value))}}class K extends r.L{constructor(A,b){super(A),this.value=b}_next(A){this.destination.next(this.value)}}},9146:(Ft,Oe,c)=>{c.d(Oe,{J:()=>l});var r=c(1709),o=c(5379);function l(K=Number.POSITIVE_INFINITY){return(0,r.zg)(o.y,K)}},1709:(Ft,Oe,c)=>{c.d(Oe,{zg:()=>K});var r=c(4850),o=c(5254),l=c(1177);function K(D,C,E=Number.POSITIVE_INFINITY){return"function"==typeof C?S=>S.pipe(K((w,z)=>(0,o.D)(D(w,z)).pipe((0,r.U)((M,k)=>C(w,M,z,k))),E)):("number"==typeof C&&(E=C),S=>S.lift(new m(D,E)))}class m{constructor(C,E=Number.POSITIVE_INFINITY){this.project=C,this.concurrent=E}call(C,E){return E.subscribe(new A(C,this.project,this.concurrent))}}class A extends l.Ds{constructor(C,E,S=Number.POSITIVE_INFINITY){super(C),this.project=E,this.concurrent=S,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(C){this.active0?this._next(C.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},7770:(Ft,Oe,c)=>{c.d(Oe,{QV:()=>l,ht:()=>m});var r=c(3489),o=c(9312);function l(b,D=0){return function(E){return E.lift(new K(b,D))}}class K{constructor(D,C=0){this.scheduler=D,this.delay=C}call(D,C){return C.subscribe(new m(D,this.scheduler,this.delay))}}class m extends r.L{constructor(D,C,E=0){super(D),this.scheduler=C,this.delay=E}static dispatch(D){const{notification:C,destination:E}=D;C.observe(E),this.unsubscribe()}scheduleMessage(D){this.destination.add(this.scheduler.schedule(m.dispatch,this.delay,new A(D,this.destination)))}_next(D){this.scheduleMessage(o.P.createNext(D))}_error(D){this.scheduleMessage(o.P.createError(D)),this.unsubscribe()}_complete(){this.scheduleMessage(o.P.createComplete()),this.unsubscribe()}}class A{constructor(D,C){this.notification=D,this.destination=C}}},4327:(Ft,Oe,c)=>{c.d(Oe,{x:()=>o});var r=c(3489);function o(){return function(A){return A.lift(new l(A))}}class l{constructor(A){this.connectable=A}call(A,b){const{connectable:D}=this;D._refCount++;const C=new K(A,D),E=b.subscribe(C);return C.closed||(C.connection=D.connect()),E}}class K extends r.L{constructor(A,b){super(A),this.connectable=b}_unsubscribe(){const{connectable:A}=this;if(!A)return void(this.connection=null);this.connectable=null;const b=A._refCount;if(b<=0)return void(this.connection=null);if(A._refCount=b-1,b>1)return void(this.connection=null);const{connection:D}=this,C=A._connection;this.connection=null,C&&(!D||C===D)&&C.unsubscribe()}}},2474:(Ft,Oe,c)=>{c.d(Oe,{B:()=>b});var r=c(1762);class l{constructor(C,E){this.subjectFactory=C,this.selector=E}call(C,E){const{selector:S}=this,w=this.subjectFactory(),z=S(w).subscribe(C);return z.add(E.subscribe(w)),z}}var K=c(4327),m=c(8929);function A(){return new m.xQ}function b(){return D=>(0,K.x)()(function o(D,C){return function(S){let w;if(w="function"==typeof D?D:function(){return D},"function"==typeof C)return S.lift(new l(w,C));const z=Object.create(S,r.N);return z.source=S,z.subjectFactory=w,z}}(A)(D))}},5154:(Ft,Oe,c)=>{c.d(Oe,{d:()=>o});var r=c(839);function o(K,m,A){let b;return b=K&&"object"==typeof K?K:{bufferSize:K,windowTime:m,refCount:!1,scheduler:A},D=>D.lift(function l({bufferSize:K=Number.POSITIVE_INFINITY,windowTime:m=Number.POSITIVE_INFINITY,refCount:A,scheduler:b}){let D,E,C=0,S=!1,w=!1;return function(M){let k;C++,!D||S?(S=!1,D=new r.t(K,m,b),k=D.subscribe(this),E=M.subscribe({next(N){D.next(N)},error(N){S=!0,D.error(N)},complete(){w=!0,E=void 0,D.complete()}}),w&&(E=void 0)):k=D.subscribe(this),this.add(()=>{C--,k.unsubscribe(),k=void 0,E&&!w&&A&&0===C&&(E.unsubscribe(),E=void 0,D=void 0)})}}(b))}},1307:(Ft,Oe,c)=>{c.d(Oe,{T:()=>o});var r=c(3489);function o(m){return A=>A.lift(new l(m))}class l{constructor(A){this.total=A}call(A,b){return b.subscribe(new K(A,this.total))}}class K extends r.L{constructor(A,b){super(A),this.total=b,this.count=0}_next(A){++this.count>this.total&&this.destination.next(A)}}},1059:(Ft,Oe,c)=>{c.d(Oe,{O:()=>l});var r=c(1221),o=c(2866);function l(...K){const m=K[K.length-1];return(0,o.K)(m)?(K.pop(),A=>(0,r.z)(K,A,m)):A=>(0,r.z)(K,A)}},7545:(Ft,Oe,c)=>{c.d(Oe,{w:()=>K});var r=c(4850),o=c(5254),l=c(1177);function K(b,D){return"function"==typeof D?C=>C.pipe(K((E,S)=>(0,o.D)(b(E,S)).pipe((0,r.U)((w,z)=>D(E,w,S,z))))):C=>C.lift(new m(b))}class m{constructor(D){this.project=D}call(D,C){return C.subscribe(new A(D,this.project))}}class A extends l.Ds{constructor(D,C){super(D),this.project=C,this.index=0}_next(D){let C;const E=this.index++;try{C=this.project(D,E)}catch(S){return void this.destination.error(S)}this._innerSub(C)}_innerSub(D){const C=this.innerSubscription;C&&C.unsubscribe();const E=new l.IY(this),S=this.destination;S.add(E),this.innerSubscription=(0,l.ft)(D,E),this.innerSubscription!==E&&S.add(this.innerSubscription)}_complete(){const{innerSubscription:D}=this;(!D||D.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(D){this.destination.next(D)}}},2986:(Ft,Oe,c)=>{c.d(Oe,{q:()=>K});var r=c(3489),o=c(4231),l=c(8896);function K(b){return D=>0===b?(0,l.c)():D.lift(new m(b))}class m{constructor(D){if(this.total=D,this.total<0)throw new o.W}call(D,C){return C.subscribe(new A(D,this.total))}}class A extends r.L{constructor(D,C){super(D),this.total=C,this.count=0}_next(D){const C=this.total,E=++this.count;E<=C&&(this.destination.next(D),E===C&&(this.destination.complete(),this.unsubscribe()))}}},7625:(Ft,Oe,c)=>{c.d(Oe,{R:()=>o});var r=c(1177);function o(m){return A=>A.lift(new l(m))}class l{constructor(A){this.notifier=A}call(A,b){const D=new K(A),C=(0,r.ft)(this.notifier,new r.IY(D));return C&&!D.seenValue?(D.add(C),b.subscribe(D)):D}}class K extends r.Ds{constructor(A){super(A),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2868:(Ft,Oe,c)=>{c.d(Oe,{b:()=>K});var r=c(3489);function o(){}var l=c(7043);function K(b,D,C){return function(S){return S.lift(new m(b,D,C))}}class m{constructor(D,C,E){this.nextOrObserver=D,this.error=C,this.complete=E}call(D,C){return C.subscribe(new A(D,this.nextOrObserver,this.error,this.complete))}}class A extends r.L{constructor(D,C,E,S){super(D),this._tapNext=o,this._tapError=o,this._tapComplete=o,this._tapError=E||o,this._tapComplete=S||o,(0,l.m)(C)?(this._context=this,this._tapNext=C):C&&(this._context=C,this._tapNext=C.next||o,this._tapError=C.error||o,this._tapComplete=C.complete||o)}_next(D){try{this._tapNext.call(this._context,D)}catch(C){return void this.destination.error(C)}this.destination.next(D)}_error(D){try{this._tapError.call(this._context,D)}catch(C){return void this.destination.error(C)}this.destination.error(D)}_complete(){try{this._tapComplete.call(this._context)}catch(D){return void this.destination.error(D)}return this.destination.complete()}}},4907:(Ft,Oe,c)=>{c.d(Oe,{T:()=>l});var r=c(4450),o=c(3489);function l(b=A){return D=>D.lift(new K(b))}class K{constructor(D){this.errorFactory=D}call(D,C){return C.subscribe(new m(D,this.errorFactory))}}class m extends o.L{constructor(D,C){super(D),this.errorFactory=C,this.hasValue=!1}_next(D){this.hasValue=!0,this.destination.next(D)}_complete(){if(this.hasValue)return this.destination.complete();{let D;try{D=this.errorFactory()}catch(C){D=C}this.destination.error(D)}}}function A(){return new r.K}},6454:(Ft,Oe,c)=>{c.d(Oe,{r:()=>l});var r=c(2916),o=c(2654);function l(K,m){return new r.y(A=>{const b=new o.w;let D=0;return b.add(m.schedule(function(){D!==K.length?(A.next(K[D++]),A.closed||b.add(this.schedule())):A.complete()})),b})}},6686:(Ft,Oe,c)=>{c.d(Oe,{o:()=>l});var r=c(2654);class o extends r.w{constructor(m,A){super()}schedule(m,A=0){return this}}class l extends o{constructor(m,A){super(m,A),this.scheduler=m,this.work=A,this.pending=!1}schedule(m,A=0){if(this.closed)return this;this.state=m;const b=this.id,D=this.scheduler;return null!=b&&(this.id=this.recycleAsyncId(D,b,A)),this.pending=!0,this.delay=A,this.id=this.id||this.requestAsyncId(D,this.id,A),this}requestAsyncId(m,A,b=0){return setInterval(m.flush.bind(m,this),b)}recycleAsyncId(m,A,b=0){if(null!==b&&this.delay===b&&!1===this.pending)return A;clearInterval(A)}execute(m,A){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const b=this._execute(m,A);if(b)return b;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(m,A){let D,b=!1;try{this.work(m)}catch(C){b=!0,D=!!C&&C||new Error(C)}if(b)return this.unsubscribe(),D}_unsubscribe(){const m=this.id,A=this.scheduler,b=A.actions,D=b.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==D&&b.splice(D,1),null!=m&&(this.id=this.recycleAsyncId(A,m,null)),this.delay=null}}},2268:(Ft,Oe,c)=>{c.d(Oe,{v:()=>o});let r=(()=>{class l{constructor(m,A=l.now){this.SchedulerAction=m,this.now=A}schedule(m,A=0,b){return new this.SchedulerAction(this,m).schedule(b,A)}}return l.now=()=>Date.now(),l})();class o extends r{constructor(K,m=r.now){super(K,()=>o.delegate&&o.delegate!==this?o.delegate.now():m()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(K,m=0,A){return o.delegate&&o.delegate!==this?o.delegate.schedule(K,m,A):super.schedule(K,m,A)}flush(K){const{actions:m}=this;if(this.active)return void m.push(K);let A;this.active=!0;do{if(A=K.execute(K.state,K.delay))break}while(K=m.shift());if(this.active=!1,A){for(;K=m.shift();)K.unsubscribe();throw A}}}},352:(Ft,Oe,c)=>{c.d(Oe,{Z:()=>m});var r=c(6686),l=c(2268);const m=new class K extends l.v{flush(D){this.active=!0,this.scheduled=void 0;const{actions:C}=this;let E,S=-1,w=C.length;D=D||C.shift();do{if(E=D.execute(D.state,D.delay))break}while(++S0?super.requestAsyncId(D,C,E):(D.actions.push(this),D.scheduled||(D.scheduled=requestAnimationFrame(()=>D.flush(null))))}recycleAsyncId(D,C,E=0){if(null!==E&&E>0||null===E&&this.delay>0)return super.recycleAsyncId(D,C,E);0===D.actions.length&&(cancelAnimationFrame(C),D.scheduled=void 0)}})},8139:(Ft,Oe,c)=>{c.d(Oe,{E:()=>S});let r=1;const o=Promise.resolve(),l={};function K(z){return z in l&&(delete l[z],!0)}const m={setImmediate(z){const M=r++;return l[M]=!0,o.then(()=>K(M)&&z()),M},clearImmediate(z){K(z)}};var b=c(6686),C=c(2268);const S=new class E extends C.v{flush(M){this.active=!0,this.scheduled=void 0;const{actions:k}=this;let N,ie=-1,ce=k.length;M=M||k.shift();do{if(N=M.execute(M.state,M.delay))break}while(++ie0?super.requestAsyncId(M,k,N):(M.actions.push(this),M.scheduled||(M.scheduled=m.setImmediate(M.flush.bind(M,null))))}recycleAsyncId(M,k,N=0){if(null!==N&&N>0||null===N&&this.delay>0)return super.recycleAsyncId(M,k,N);0===M.actions.length&&(m.clearImmediate(k),M.scheduled=void 0)}})},353:(Ft,Oe,c)=>{c.d(Oe,{P:()=>K});var r=c(6686);const K=new(c(2268).v)(r.o)},341:(Ft,Oe,c)=>{c.d(Oe,{c:()=>A,N:()=>m});var r=c(6686),l=c(2268);const m=new class K extends l.v{}(class o extends r.o{constructor(D,C){super(D,C),this.scheduler=D,this.work=C}schedule(D,C=0){return C>0?super.schedule(D,C):(this.delay=C,this.state=D,this.scheduler.flush(this),this)}execute(D,C){return C>0||this.closed?super.execute(D,C):this._execute(D,C)}requestAsyncId(D,C,E=0){return null!==E&&E>0||null===E&&this.delay>0?super.requestAsyncId(D,C,E):D.flush(this)}}),A=m},5430:(Ft,Oe,c)=>{c.d(Oe,{hZ:()=>o});const o=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Ft,Oe,c)=>{c.d(Oe,{L:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Ft,Oe,c)=>{c.d(Oe,{b:()=>r});const r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Ft,Oe,c)=>{c.d(Oe,{W:()=>o});const o=(()=>{function l(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return l.prototype=Object.create(Error.prototype),l})()},4450:(Ft,Oe,c)=>{c.d(Oe,{K:()=>o});const o=(()=>{function l(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return l.prototype=Object.create(Error.prototype),l})()},5279:(Ft,Oe,c)=>{c.d(Oe,{N:()=>o});const o=(()=>{function l(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return l.prototype=Object.create(Error.prototype),l})()},2782:(Ft,Oe,c)=>{function r(o){setTimeout(()=>{throw o},0)}c.d(Oe,{z:()=>r})},5379:(Ft,Oe,c)=>{function r(o){return o}c.d(Oe,{y:()=>r})},6688:(Ft,Oe,c)=>{c.d(Oe,{k:()=>r});const r=Array.isArray||(o=>o&&"number"==typeof o.length)},8515:(Ft,Oe,c)=>{c.d(Oe,{z:()=>r});const r=o=>o&&"number"==typeof o.length&&"function"!=typeof o},7043:(Ft,Oe,c)=>{function r(o){return"function"==typeof o}c.d(Oe,{m:()=>r})},4241:(Ft,Oe,c)=>{c.d(Oe,{k:()=>o});var r=c(6688);function o(l){return!(0,r.k)(l)&&l-parseFloat(l)+1>=0}},7830:(Ft,Oe,c)=>{function r(o){return null!==o&&"object"==typeof o}c.d(Oe,{K:()=>r})},4715:(Ft,Oe,c)=>{c.d(Oe,{b:()=>o});var r=c(2916);function o(l){return!!l&&(l instanceof r.y||"function"==typeof l.lift&&"function"==typeof l.subscribe)}},8955:(Ft,Oe,c)=>{function r(o){return!!o&&"function"!=typeof o.subscribe&&"function"==typeof o.then}c.d(Oe,{t:()=>r})},2866:(Ft,Oe,c)=>{function r(o){return o&&"function"==typeof o.schedule}c.d(Oe,{K:()=>r})},9249:(Ft,Oe,c)=>{c.d(Oe,{s:()=>S});var r=c(3650),o=c(2782),K=c(5430),A=c(3821),D=c(8515),C=c(8955),E=c(7830);const S=w=>{if(w&&"function"==typeof w[A.L])return(w=>z=>{const M=w[A.L]();if("function"!=typeof M.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return M.subscribe(z)})(w);if((0,D.z)(w))return(0,r.V)(w);if((0,C.t)(w))return(w=>z=>(w.then(M=>{z.closed||(z.next(M),z.complete())},M=>z.error(M)).then(null,o.z),z))(w);if(w&&"function"==typeof w[K.hZ])return(w=>z=>{const M=w[K.hZ]();for(;;){let k;try{k=M.next()}catch(N){return z.error(N),z}if(k.done){z.complete();break}if(z.next(k.value),z.closed)break}return"function"==typeof M.return&&z.add(()=>{M.return&&M.return()}),z})(w);{const M=`You provided ${(0,E.K)(w)?"an invalid object":`'${w}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(M)}}},3650:(Ft,Oe,c)=>{c.d(Oe,{V:()=>r});const r=o=>l=>{for(let K=0,m=o.length;K{c.d(Oe,{ZT:()=>o,pi:()=>l,_T:()=>K,gn:()=>m,mG:()=>D,Jh:()=>C,ev:()=>N});var r=function(U,J){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,se){Me.__proto__=se}||function(Me,se){for(var we in se)Object.prototype.hasOwnProperty.call(se,we)&&(Me[we]=se[we])})(U,J)};function o(U,J){if("function"!=typeof J&&null!==J)throw new TypeError("Class extends value "+String(J)+" is not a constructor or null");function Me(){this.constructor=U}r(U,J),U.prototype=null===J?Object.create(J):(Me.prototype=J.prototype,new Me)}var l=function(){return l=Object.assign||function(J){for(var Me,se=1,we=arguments.length;se=0;We--)(Ye=U[We])&&(ue=(we<3?Ye(ue):we>3?Ye(J,Me,ue):Ye(J,Me))||ue);return we>3&&ue&&Object.defineProperty(J,Me,ue),ue}function D(U,J,Me,se){return new(Me||(Me=Promise))(function(ue,Ye){function We(Ae){try{wt(se.next(Ae))}catch(mt){Ye(mt)}}function rt(Ae){try{wt(se.throw(Ae))}catch(mt){Ye(mt)}}function wt(Ae){Ae.done?ue(Ae.value):function we(ue){return ue instanceof Me?ue:new Me(function(Ye){Ye(ue)})}(Ae.value).then(We,rt)}wt((se=se.apply(U,J||[])).next())})}function C(U,J){var se,we,ue,Ye,Me={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return Ye={next:We(0),throw:We(1),return:We(2)},"function"==typeof Symbol&&(Ye[Symbol.iterator]=function(){return this}),Ye;function We(wt){return function(Ae){return function rt(wt){if(se)throw new TypeError("Generator is already executing.");for(;Me;)try{if(se=1,we&&(ue=2&wt[0]?we.return:wt[0]?we.throw||((ue=we.return)&&ue.call(we),0):we.next)&&!(ue=ue.call(we,wt[1])).done)return ue;switch(we=0,ue&&(wt=[2&wt[0],ue.value]),wt[0]){case 0:case 1:ue=wt;break;case 4:return Me.label++,{value:wt[1],done:!1};case 5:Me.label++,we=wt[1],wt=[0];continue;case 7:wt=Me.ops.pop(),Me.trys.pop();continue;default:if(!(ue=(ue=Me.trys).length>0&&ue[ue.length-1])&&(6===wt[0]||2===wt[0])){Me=0;continue}if(3===wt[0]&&(!ue||wt[1]>ue[0]&&wt[1]{c.d(Oe,{l3:()=>l,_j:()=>r,LC:()=>o,ZN:()=>ce,jt:()=>m,IO:()=>k,vP:()=>b,EY:()=>N,SB:()=>C,oB:()=>D,eR:()=>S,X$:()=>K,ZE:()=>ve,k1:()=>Le});class r{}class o{}const l="*";function K(Re,ae){return{type:7,name:Re,definitions:ae,options:{}}}function m(Re,ae=null){return{type:4,styles:ae,timings:Re}}function b(Re,ae=null){return{type:2,steps:Re,options:ae}}function D(Re){return{type:6,styles:Re,offset:null}}function C(Re,ae,Ue){return{type:0,name:Re,styles:ae,options:Ue}}function S(Re,ae,Ue=null){return{type:1,expr:Re,animation:ae,options:Ue}}function k(Re,ae,Ue=null){return{type:11,selector:Re,animation:ae,options:Ue}}function N(Re,ae){return{type:12,timings:Re,animation:ae}}function ie(Re){Promise.resolve(null).then(Re)}class ce{constructor(ae=0,Ue=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ae+Ue}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ae=>ae()),this._onDoneFns=[])}onStart(ae){this._onStartFns.push(ae)}onDone(ae){this._onDoneFns.push(ae)}onDestroy(ae){this._onDestroyFns.push(ae)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ie(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ae=>ae()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ae=>ae()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ae){this._position=this.totalTime?ae*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ae){const Ue="start"==ae?this._onStartFns:this._onDoneFns;Ue.forEach(He=>He()),Ue.length=0}}class ve{constructor(ae){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ae;let Ue=0,He=0,me=0;const fe=this.players.length;0==fe?ie(()=>this._onFinish()):this.players.forEach(U=>{U.onDone(()=>{++Ue==fe&&this._onFinish()}),U.onDestroy(()=>{++He==fe&&this._onDestroy()}),U.onStart(()=>{++me==fe&&this._onStart()})}),this.totalTime=this.players.reduce((U,J)=>Math.max(U,J.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ae=>ae()),this._onDoneFns=[])}init(){this.players.forEach(ae=>ae.init())}onStart(ae){this._onStartFns.push(ae)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ae=>ae()),this._onStartFns=[])}onDone(ae){this._onDoneFns.push(ae)}onDestroy(ae){this._onDestroyFns.push(ae)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ae=>ae.play())}pause(){this.players.forEach(ae=>ae.pause())}restart(){this.players.forEach(ae=>ae.restart())}finish(){this._onFinish(),this.players.forEach(ae=>ae.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ae=>ae.destroy()),this._onDestroyFns.forEach(ae=>ae()),this._onDestroyFns=[])}reset(){this.players.forEach(ae=>ae.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ae){const Ue=ae*this.totalTime;this.players.forEach(He=>{const me=He.totalTime?Math.min(1,Ue/He.totalTime):1;He.setPosition(me)})}getPosition(){const ae=this.players.reduce((Ue,He)=>null===Ue||He.totalTime>Ue.totalTime?He:Ue,null);return null!=ae?ae.getPosition():0}beforeDestroy(){this.players.forEach(ae=>{ae.beforeDestroy&&ae.beforeDestroy()})}triggerCallback(ae){const Ue="start"==ae?this._onStartFns:this._onDoneFns;Ue.forEach(He=>He()),Ue.length=0}}const Le="!"},5664:(Ft,Oe,c)=>{c.d(Oe,{rt:()=>un,kH:()=>nn,Em:()=>We,tE:()=>an,qV:()=>ot,X6:()=>Ke,yG:()=>Y});var r=c(9808),o=c(5e3),l=c(8929),K=c(2654),m=c(591),A=c(1086),b=c(1159),D=c(2868),C=c(13),E=c(2198),S=c(4850),w=c(2986),z=c(1307),M=c(5778),k=c(7625),N=c(3191),ie=c(925),ce=c(7144);class We extends class ue{constructor(it){this._items=it,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new l.xQ,this._typeaheadSubscription=K.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Ge=>Ge.disabled,this._pressedLetters=[],this.tabOut=new l.xQ,this.change=new l.xQ,it instanceof o.n_E&&it.changes.subscribe(Ge=>{if(this._activeItem){const xe=Ge.toArray().indexOf(this._activeItem);xe>-1&&xe!==this._activeItemIndex&&(this._activeItemIndex=xe)}})}skipPredicate(it){return this._skipPredicateFn=it,this}withWrap(it=!0){return this._wrap=it,this}withVerticalOrientation(it=!0){return this._vertical=it,this}withHorizontalOrientation(it){return this._horizontal=it,this}withAllowedModifierKeys(it){return this._allowedModifierKeys=it,this}withTypeAhead(it=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)(Ge=>this._pressedLetters.push(Ge)),(0,C.b)(it),(0,E.h)(()=>this._pressedLetters.length>0),(0,S.U)(()=>this._pressedLetters.join(""))).subscribe(Ge=>{const St=this._getItemsArray();for(let xe=1;xe!it[xt]||this._allowedModifierKeys.indexOf(xt)>-1);switch(Ge){case b.Mf:return void this.tabOut.next();case b.JH:if(this._vertical&&xe){this.setNextItemActive();break}return;case b.LH:if(this._vertical&&xe){this.setPreviousItemActive();break}return;case b.SV:if(this._horizontal&&xe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case b.oh:if(this._horizontal&&xe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case b.Sd:if(this._homeAndEnd&&xe){this.setFirstItemActive();break}return;case b.uR:if(this._homeAndEnd&&xe){this.setLastItemActive();break}return;default:return void((xe||(0,b.Vb)(it,"shiftKey"))&&(it.key&&1===it.key.length?this._letterKeyStream.next(it.key.toLocaleUpperCase()):(Ge>=b.A&&Ge<=b.Z||Ge>=b.xE&&Ge<=b.aO)&&this._letterKeyStream.next(String.fromCharCode(Ge))))}this._pressedLetters=[],it.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(it){const Ge=this._getItemsArray(),St="number"==typeof it?it:Ge.indexOf(it),xe=Ge[St];this._activeItem=null==xe?null:xe,this._activeItemIndex=St}_setActiveItemByDelta(it){this._wrap?this._setActiveInWrapMode(it):this._setActiveInDefaultMode(it)}_setActiveInWrapMode(it){const Ge=this._getItemsArray();for(let St=1;St<=Ge.length;St++){const xe=(this._activeItemIndex+it*St+Ge.length)%Ge.length;if(!this._skipPredicateFn(Ge[xe]))return void this.setActiveItem(xe)}}_setActiveInDefaultMode(it){this._setActiveItemByIndex(this._activeItemIndex+it,it)}_setActiveItemByIndex(it,Ge){const St=this._getItemsArray();if(St[it]){for(;this._skipPredicateFn(St[it]);)if(!St[it+=Ge])return;this.setActiveItem(it)}}_getItemsArray(){return this._items instanceof o.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(it){return this._origin=it,this}setActiveItem(it){super.setActiveItem(it),this.activeItem&&this.activeItem.focus(this._origin)}}let wt=(()=>{class Dt{constructor(Ge){this._platform=Ge}isDisabled(Ge){return Ge.hasAttribute("disabled")}isVisible(Ge){return function mt(Dt){return!!(Dt.offsetWidth||Dt.offsetHeight||"function"==typeof Dt.getClientRects&&Dt.getClientRects().length)}(Ge)&&"visible"===getComputedStyle(Ge).visibility}isTabbable(Ge){if(!this._platform.isBrowser)return!1;const St=function Ae(Dt){try{return Dt.frameElement}catch(it){return null}}(function pt(Dt){return Dt.ownerDocument&&Dt.ownerDocument.defaultView||window}(Ge));if(St&&(-1===Lt(St)||!this.isVisible(St)))return!1;let xe=Ge.nodeName.toLowerCase(),xt=Lt(Ge);return Ge.hasAttribute("contenteditable")?-1!==xt:!("iframe"===xe||"object"===xe||this._platform.WEBKIT&&this._platform.IOS&&!function Ie(Dt){let it=Dt.nodeName.toLowerCase(),Ge="input"===it&&Dt.type;return"text"===Ge||"password"===Ge||"select"===it||"textarea"===it}(Ge))&&("audio"===xe?!!Ge.hasAttribute("controls")&&-1!==xt:"video"===xe?-1!==xt&&(null!==xt||this._platform.FIREFOX||Ge.hasAttribute("controls")):Ge.tabIndex>=0)}isFocusable(Ge,St){return function Pt(Dt){return!function Ct(Dt){return function Xe(Dt){return"input"==Dt.nodeName.toLowerCase()}(Dt)&&"hidden"==Dt.type}(Dt)&&(function kt(Dt){let it=Dt.nodeName.toLowerCase();return"input"===it||"select"===it||"button"===it||"textarea"===it}(Dt)||function It(Dt){return function lt(Dt){return"a"==Dt.nodeName.toLowerCase()}(Dt)&&Dt.hasAttribute("href")}(Dt)||Dt.hasAttribute("contenteditable")||ct(Dt))}(Ge)&&!this.isDisabled(Ge)&&((null==St?void 0:St.ignoreVisibility)||this.isVisible(Ge))}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(ie.t4))},Dt.\u0275prov=o.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function ct(Dt){if(!Dt.hasAttribute("tabindex")||void 0===Dt.tabIndex)return!1;let it=Dt.getAttribute("tabindex");return!(!it||isNaN(parseInt(it,10)))}function Lt(Dt){if(!ct(Dt))return null;const it=parseInt(Dt.getAttribute("tabindex")||"",10);return isNaN(it)?-1:it}class Et{constructor(it,Ge,St,xe,xt=!1){this._element=it,this._checker=Ge,this._ngZone=St,this._document=xe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,xt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(it){this._enabled=it,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(it,this._startAnchor),this._toggleAnchorTabIndex(it,this._endAnchor))}destroy(){const it=this._startAnchor,Ge=this._endAnchor;it&&(it.removeEventListener("focus",this.startAnchorListener),it.remove()),Ge&&(Ge.removeEventListener("focus",this.endAnchorListener),Ge.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(it){return new Promise(Ge=>{this._executeOnStable(()=>Ge(this.focusInitialElement(it)))})}focusFirstTabbableElementWhenReady(it){return new Promise(Ge=>{this._executeOnStable(()=>Ge(this.focusFirstTabbableElement(it)))})}focusLastTabbableElementWhenReady(it){return new Promise(Ge=>{this._executeOnStable(()=>Ge(this.focusLastTabbableElement(it)))})}_getRegionBoundary(it){const Ge=this._element.querySelectorAll(`[cdk-focus-region-${it}], [cdkFocusRegion${it}], [cdk-focus-${it}]`);return"start"==it?Ge.length?Ge[0]:this._getFirstTabbableElement(this._element):Ge.length?Ge[Ge.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(it){const Ge=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Ge){if(!this._checker.isFocusable(Ge)){const St=this._getFirstTabbableElement(Ge);return null==St||St.focus(it),!!St}return Ge.focus(it),!0}return this.focusFirstTabbableElement(it)}focusFirstTabbableElement(it){const Ge=this._getRegionBoundary("start");return Ge&&Ge.focus(it),!!Ge}focusLastTabbableElement(it){const Ge=this._getRegionBoundary("end");return Ge&&Ge.focus(it),!!Ge}hasAttached(){return this._hasAttached}_getFirstTabbableElement(it){if(this._checker.isFocusable(it)&&this._checker.isTabbable(it))return it;const Ge=it.children;for(let St=0;St=0;St--){const xe=Ge[St].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Ge[St]):null;if(xe)return xe}return null}_createAnchor(){const it=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,it),it.classList.add("cdk-visually-hidden"),it.classList.add("cdk-focus-trap-anchor"),it.setAttribute("aria-hidden","true"),it}_toggleAnchorTabIndex(it,Ge){it?Ge.setAttribute("tabindex","0"):Ge.removeAttribute("tabindex")}toggleAnchors(it){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(it,this._startAnchor),this._toggleAnchorTabIndex(it,this._endAnchor))}_executeOnStable(it){this._ngZone.isStable?it():this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(it)}}let ot=(()=>{class Dt{constructor(Ge,St,xe){this._checker=Ge,this._ngZone=St,this._document=xe}create(Ge,St=!1){return new Et(Ge,this._checker,this._ngZone,this._document,St)}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(wt),o.LFG(o.R0b),o.LFG(r.K0))},Dt.\u0275prov=o.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function Ke(Dt){return 0===Dt.offsetX&&0===Dt.offsetY}function Y(Dt){const it=Dt.touches&&Dt.touches[0]||Dt.changedTouches&&Dt.changedTouches[0];return!(!it||-1!==it.identifier||null!=it.radiusX&&1!==it.radiusX||null!=it.radiusY&&1!==it.radiusY)}const G=new o.OlP("cdk-input-modality-detector-options"),Q={ignoreKeys:[b.zL,b.jx,b.b2,b.MW,b.JU]},Je=(0,ie.i$)({passive:!0,capture:!0});let vt=(()=>{class Dt{constructor(Ge,St,xe,xt){this._platform=Ge,this._mostRecentTarget=null,this._modality=new m.X(null),this._lastTouchMs=0,this._onKeydown=ge=>{var de,ut;(null===(ut=null===(de=this._options)||void 0===de?void 0:de.ignoreKeys)||void 0===ut?void 0:ut.some(V=>V===ge.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ie.sA)(ge))},this._onMousedown=ge=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ke(ge)?"keyboard":"mouse"),this._mostRecentTarget=(0,ie.sA)(ge))},this._onTouchstart=ge=>{Y(ge)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ie.sA)(ge))},this._options=Object.assign(Object.assign({},Q),xt),this.modalityDetected=this._modality.pipe((0,z.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,M.x)()),Ge.isBrowser&&St.runOutsideAngular(()=>{xe.addEventListener("keydown",this._onKeydown,Je),xe.addEventListener("mousedown",this._onMousedown,Je),xe.addEventListener("touchstart",this._onTouchstart,Je)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Je),document.removeEventListener("mousedown",this._onMousedown,Je),document.removeEventListener("touchstart",this._onTouchstart,Je))}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(ie.t4),o.LFG(o.R0b),o.LFG(r.K0),o.LFG(G,8))},Dt.\u0275prov=o.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();const vn=new o.OlP("cdk-focus-monitor-default-options"),cn=(0,ie.i$)({passive:!0,capture:!0});let an=(()=>{class Dt{constructor(Ge,St,xe,xt,ge){this._ngZone=Ge,this._platform=St,this._inputModalityDetector=xe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new l.xQ,this._rootNodeFocusAndBlurListener=de=>{const ut=(0,ie.sA)(de),V="focus"===de.type?this._onFocus:this._onBlur;for(let Z=ut;Z;Z=Z.parentElement)V.call(this,de,Z)},this._document=xt,this._detectionMode=(null==ge?void 0:ge.detectionMode)||0}monitor(Ge,St=!1){const xe=(0,N.fI)(Ge);if(!this._platform.isBrowser||1!==xe.nodeType)return(0,A.of)(null);const xt=(0,ie.kV)(xe)||this._getDocument(),ge=this._elementInfo.get(xe);if(ge)return St&&(ge.checkChildren=!0),ge.subject;const de={checkChildren:St,subject:new l.xQ,rootNode:xt};return this._elementInfo.set(xe,de),this._registerGlobalListeners(de),de.subject}stopMonitoring(Ge){const St=(0,N.fI)(Ge),xe=this._elementInfo.get(St);xe&&(xe.subject.complete(),this._setClasses(St),this._elementInfo.delete(St),this._removeGlobalListeners(xe))}focusVia(Ge,St,xe){const xt=(0,N.fI)(Ge);xt===this._getDocument().activeElement?this._getClosestElementsInfo(xt).forEach(([de,ut])=>this._originChanged(de,St,ut)):(this._setOrigin(St),"function"==typeof xt.focus&&xt.focus(xe))}ngOnDestroy(){this._elementInfo.forEach((Ge,St)=>this.stopMonitoring(St))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Ge){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ge)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(Ge){return 1===this._detectionMode||!!(null==Ge?void 0:Ge.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(Ge,St){Ge.classList.toggle("cdk-focused",!!St),Ge.classList.toggle("cdk-touch-focused","touch"===St),Ge.classList.toggle("cdk-keyboard-focused","keyboard"===St),Ge.classList.toggle("cdk-mouse-focused","mouse"===St),Ge.classList.toggle("cdk-program-focused","program"===St)}_setOrigin(Ge,St=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Ge,this._originFromTouchInteraction="touch"===Ge&&St,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Ge,St){const xe=this._elementInfo.get(St),xt=(0,ie.sA)(Ge);!xe||!xe.checkChildren&&St!==xt||this._originChanged(St,this._getFocusOrigin(xt),xe)}_onBlur(Ge,St){const xe=this._elementInfo.get(St);!xe||xe.checkChildren&&Ge.relatedTarget instanceof Node&&St.contains(Ge.relatedTarget)||(this._setClasses(St),this._emitOrigin(xe.subject,null))}_emitOrigin(Ge,St){this._ngZone.run(()=>Ge.next(St))}_registerGlobalListeners(Ge){if(!this._platform.isBrowser)return;const St=Ge.rootNode,xe=this._rootNodeFocusListenerCount.get(St)||0;xe||this._ngZone.runOutsideAngular(()=>{St.addEventListener("focus",this._rootNodeFocusAndBlurListener,cn),St.addEventListener("blur",this._rootNodeFocusAndBlurListener,cn)}),this._rootNodeFocusListenerCount.set(St,xe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,k.R)(this._stopInputModalityDetector)).subscribe(xt=>{this._setOrigin(xt,!0)}))}_removeGlobalListeners(Ge){const St=Ge.rootNode;if(this._rootNodeFocusListenerCount.has(St)){const xe=this._rootNodeFocusListenerCount.get(St);xe>1?this._rootNodeFocusListenerCount.set(St,xe-1):(St.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cn),St.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cn),this._rootNodeFocusListenerCount.delete(St))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Ge,St,xe){this._setClasses(Ge,St),this._emitOrigin(xe.subject,St),this._lastFocusOrigin=St}_getClosestElementsInfo(Ge){const St=[];return this._elementInfo.forEach((xe,xt)=>{(xt===Ge||xe.checkChildren&&xt.contains(Ge))&&St.push([xt,xe])}),St}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(o.R0b),o.LFG(ie.t4),o.LFG(vt),o.LFG(r.K0,8),o.LFG(vn,8))},Dt.\u0275prov=o.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})(),nn=(()=>{class Dt{constructor(Ge,St){this._elementRef=Ge,this._focusMonitor=St,this.cdkFocusChange=new o.vpe}ngAfterViewInit(){const Ge=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Ge,1===Ge.nodeType&&Ge.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(St=>this.cdkFocusChange.emit(St))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.Y36(o.SBq),o.Y36(an))},Dt.\u0275dir=o.lG2({type:Dt,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Dt})();const Gn="cdk-high-contrast-black-on-white",xn="cdk-high-contrast-white-on-black",yn="cdk-high-contrast-active";let _n=(()=>{class Dt{constructor(Ge,St){this._platform=Ge,this._document=St}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Ge=this._document.createElement("div");Ge.style.backgroundColor="rgb(1,2,3)",Ge.style.position="absolute",this._document.body.appendChild(Ge);const St=this._document.defaultView||window,xe=St&&St.getComputedStyle?St.getComputedStyle(Ge):null,xt=(xe&&xe.backgroundColor||"").replace(/ /g,"");switch(Ge.remove(),xt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Ge=this._document.body.classList;Ge.remove(yn),Ge.remove(Gn),Ge.remove(xn),this._hasCheckedHighContrastMode=!0;const St=this.getHighContrastMode();1===St?(Ge.add(yn),Ge.add(Gn)):2===St&&(Ge.add(yn),Ge.add(xn))}}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(ie.t4),o.LFG(r.K0))},Dt.\u0275prov=o.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})(),un=(()=>{class Dt{constructor(Ge){Ge._applyBodyHighContrastModeCssClasses()}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(_n))},Dt.\u0275mod=o.oAB({type:Dt}),Dt.\u0275inj=o.cJS({imports:[[ie.ud,ce.Q8]]}),Dt})()},226:(Ft,Oe,c)=>{c.d(Oe,{vT:()=>C,Is:()=>b});var r=c(5e3),o=c(9808);const l=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function K(){return(0,r.f3M)(o.K0)}}),m=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let b=(()=>{class E{constructor(w){if(this.value="ltr",this.change=new r.vpe,w){const M=w.documentElement?w.documentElement.dir:null;this.value=function A(E){const S=(null==E?void 0:E.toLowerCase())||"";return"auto"===S&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?m.test(navigator.language)?"rtl":"ltr":"rtl"===S?"rtl":"ltr"}((w.body?w.body.dir:null)||M||"ltr")}}ngOnDestroy(){this.change.complete()}}return E.\u0275fac=function(w){return new(w||E)(r.LFG(l,8))},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})(),C=(()=>{class E{}return E.\u0275fac=function(w){return new(w||E)},E.\u0275mod=r.oAB({type:E}),E.\u0275inj=r.cJS({}),E})()},9287:(Ft,Oe,c)=>{c.d(Oe,{TU:()=>K,Iq:()=>b});var r=c(9808),o=c(5e3);class l{constructor(C,E){this._document=E;const S=this._textarea=this._document.createElement("textarea"),w=S.style;w.position="fixed",w.top=w.opacity="0",w.left="-999em",S.setAttribute("aria-hidden","true"),S.value=C,this._document.body.appendChild(S)}copy(){const C=this._textarea;let E=!1;try{if(C){const S=this._document.activeElement;C.select(),C.setSelectionRange(0,C.value.length),E=this._document.execCommand("copy"),S&&S.focus()}}catch(S){}return E}destroy(){const C=this._textarea;C&&(C.remove(),this._textarea=void 0)}}let K=(()=>{class D{constructor(E){this._document=E}copy(E){const S=this.beginCopy(E),w=S.copy();return S.destroy(),w}beginCopy(E){return new l(E,this._document)}}return D.\u0275fac=function(E){return new(E||D)(o.LFG(r.K0))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),b=(()=>{class D{}return D.\u0275fac=function(E){return new(E||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({}),D})()},3191:(Ft,Oe,c)=>{c.d(Oe,{t6:()=>K,Eq:()=>m,Ig:()=>o,HM:()=>A,fI:()=>b,su:()=>l});var r=c(5e3);function o(C){return null!=C&&"false"!=`${C}`}function l(C,E=0){return K(C)?Number(C):E}function K(C){return!isNaN(parseFloat(C))&&!isNaN(Number(C))}function m(C){return Array.isArray(C)?C:[C]}function A(C){return null==C?"":"string"==typeof C?C:`${C}px`}function b(C){return C instanceof r.SBq?C.nativeElement:C}},1159:(Ft,Oe,c)=>{c.d(Oe,{A:()=>kt,zL:()=>D,ZH:()=>o,jx:()=>b,JH:()=>Le,uR:()=>k,K5:()=>m,hY:()=>S,Sd:()=>N,oh:()=>ie,b2:()=>ke,MW:()=>je,aO:()=>We,SV:()=>ve,JU:()=>A,L_:()=>w,Mf:()=>l,LH:()=>ce,Z:()=>Tt,xE:()=>me,Vb:()=>le});const o=8,l=9,m=13,A=16,b=17,D=18,S=27,w=32,k=35,N=36,ie=37,ce=38,ve=39,Le=40,me=48,We=57,kt=65,Tt=90,je=91,ke=224;function le(tt,...Ht){return Ht.length?Ht.some(Xt=>tt[Xt]):tt.altKey||tt.shiftKey||tt.ctrlKey||tt.metaKey}},5113:(Ft,Oe,c)=>{c.d(Oe,{xu:()=>l,vx:()=>A});var r=c(5e3),o=c(925);let l=(()=>{class w{}return w.\u0275fac=function(M){return new(M||w)},w.\u0275mod=r.oAB({type:w}),w.\u0275inj=r.cJS({}),w})();const K=new Set;let m,A=(()=>{class w{constructor(M){this._platform=M,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):D}matchMedia(M){return(this._platform.WEBKIT||this._platform.BLINK)&&function b(w){if(!K.has(w))try{m||(m=document.createElement("style"),m.setAttribute("type","text/css"),document.head.appendChild(m)),m.sheet&&(m.sheet.insertRule(`@media ${w} {body{ }}`,0),K.add(w))}catch(z){console.error(z)}}(M),this._matchMedia(M)}}return w.\u0275fac=function(M){return new(M||w)(r.LFG(o.t4))},w.\u0275prov=r.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();function D(w){return{matches:"all"===w||""===w,media:w,addListener:()=>{},removeListener:()=>{}}}},7144:(Ft,Oe,c)=>{c.d(Oe,{Q8:()=>m});var r=c(5e3);let o=(()=>{class A{create(D){return"undefined"==typeof MutationObserver?null:new MutationObserver(D)}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=r.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),m=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275mod=r.oAB({type:A}),A.\u0275inj=r.cJS({providers:[o]}),A})()},2845:(Ft,Oe,c)=>{c.d(Oe,{pI:()=>Ne,xu:()=>en,tR:()=>J,aV:()=>pt,X_:()=>U,U8:()=>yt,Iu:()=>Ye});var r=c(2321),o=c(9808),l=c(5e3),K=c(3191),m=c(925),A=c(226),b=c(7429),D=c(8929),C=c(2654),E=c(6787),S=c(3489);class z{constructor(Y,G){this.predicate=Y,this.inclusive=G}call(Y,G){return G.subscribe(new M(Y,this.predicate,this.inclusive))}}class M extends S.L{constructor(Y,G,Q){super(Y),this.predicate=G,this.inclusive=Q,this.index=0}_next(Y){const G=this.destination;let Q;try{Q=this.predicate(Y,this.index++)}catch(Fe){return void G.error(Fe)}this.nextOrComplete(Y,Q)}nextOrComplete(Y,G){const Q=this.destination;Boolean(G)?Q.next(Y):(this.inclusive&&Q.next(Y),Q.complete())}}var k=c(2986),N=c(7625),ie=c(1159);const ce=(0,m.Mq)();class ve{constructor(Y,G){this._viewportRuler=Y,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=G}attach(){}enable(){if(this._canBeEnabled()){const Y=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Y.style.left||"",this._previousHTMLStyles.top=Y.style.top||"",Y.style.left=(0,K.HM)(-this._previousScrollPosition.left),Y.style.top=(0,K.HM)(-this._previousScrollPosition.top),Y.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Y=this._document.documentElement,Q=Y.style,Fe=this._document.body.style,Je=Q.scrollBehavior||"",vt=Fe.scrollBehavior||"";this._isEnabled=!1,Q.left=this._previousHTMLStyles.left,Q.top=this._previousHTMLStyles.top,Y.classList.remove("cdk-global-scrollblock"),ce&&(Q.scrollBehavior=Fe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ce&&(Q.scrollBehavior=Je,Fe.scrollBehavior=vt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const G=this._document.body,Q=this._viewportRuler.getViewportSize();return G.scrollHeight>Q.height||G.scrollWidth>Q.width}}class Re{constructor(Y,G,Q,Fe){this._scrollDispatcher=Y,this._ngZone=G,this._viewportRuler=Q,this._config=Fe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(Y){this._overlayRef=Y}enable(){if(this._scrollSubscription)return;const Y=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Y.subscribe(()=>{const G=this._viewportRuler.getViewportScrollPosition().top;Math.abs(G-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Y.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ae{enable(){}disable(){}attach(){}}function Ue(Ke,Y){return Y.some(G=>Ke.bottomG.bottom||Ke.rightG.right)}function He(Ke,Y){return Y.some(G=>Ke.topG.bottom||Ke.leftG.right)}class me{constructor(Y,G,Q,Fe){this._scrollDispatcher=Y,this._viewportRuler=G,this._ngZone=Q,this._config=Fe,this._scrollSubscription=null}attach(Y){this._overlayRef=Y}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const G=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Q,height:Fe}=this._viewportRuler.getViewportSize();Ue(G,[{width:Q,height:Fe,bottom:Fe,right:Q,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let fe=(()=>{class Ke{constructor(G,Q,Fe,Je){this._scrollDispatcher=G,this._viewportRuler=Q,this._ngZone=Fe,this.noop=()=>new ae,this.close=vt=>new Re(this._scrollDispatcher,this._ngZone,this._viewportRuler,vt),this.block=()=>new ve(this._viewportRuler,this._document),this.reposition=vt=>new me(this._scrollDispatcher,this._viewportRuler,this._ngZone,vt),this._document=Je}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(r.mF),l.LFG(r.rL),l.LFG(l.R0b),l.LFG(o.K0))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})();class U{constructor(Y){if(this.scrollStrategy=new ae,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Y){const G=Object.keys(Y);for(const Q of G)void 0!==Y[Q]&&(this[Q]=Y[Q])}}}class J{constructor(Y,G,Q,Fe,Je){this.offsetX=Q,this.offsetY=Fe,this.panelClass=Je,this.originX=Y.originX,this.originY=Y.originY,this.overlayX=G.overlayX,this.overlayY=G.overlayY}}class se{constructor(Y,G){this.connectionPair=Y,this.scrollableViewProperties=G}}class Ye{constructor(Y,G,Q,Fe,Je,vt,Tt,je,zt){this._portalOutlet=Y,this._host=G,this._pane=Q,this._config=Fe,this._ngZone=Je,this._keyboardDispatcher=vt,this._document=Tt,this._location=je,this._outsideClickDispatcher=zt,this._backdropElement=null,this._backdropClick=new D.xQ,this._attachments=new D.xQ,this._detachments=new D.xQ,this._locationChanges=C.w.EMPTY,this._backdropClickHandler=jt=>this._backdropClick.next(jt),this._keydownEvents=new D.xQ,this._outsidePointerEvents=new D.xQ,Fe.scrollStrategy&&(this._scrollStrategy=Fe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Fe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Y){let G=this._portalOutlet.attach(Y);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),G}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Y=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Y}dispose(){var Y;const G=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(Y=this._host)||void 0===Y||Y.remove(),this._previousHostParent=this._pane=this._host=null,G&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(Y){Y!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Y,this.hasAttached()&&(Y.attach(this),this.updatePosition()))}updateSize(Y){this._config=Object.assign(Object.assign({},this._config),Y),this._updateElementSize()}setDirection(Y){this._config=Object.assign(Object.assign({},this._config),{direction:Y}),this._updateElementDirection()}addPanelClass(Y){this._pane&&this._toggleClasses(this._pane,Y,!0)}removePanelClass(Y){this._pane&&this._toggleClasses(this._pane,Y,!1)}getDirection(){const Y=this._config.direction;return Y?"string"==typeof Y?Y:Y.value:"ltr"}updateScrollStrategy(Y){Y!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Y,this.hasAttached()&&(Y.attach(this),Y.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Y=this._pane.style;Y.width=(0,K.HM)(this._config.width),Y.height=(0,K.HM)(this._config.height),Y.minWidth=(0,K.HM)(this._config.minWidth),Y.minHeight=(0,K.HM)(this._config.minHeight),Y.maxWidth=(0,K.HM)(this._config.maxWidth),Y.maxHeight=(0,K.HM)(this._config.maxHeight)}_togglePointerEvents(Y){this._pane.style.pointerEvents=Y?"":"none"}_attachBackdrop(){const Y="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(Y)})}):this._backdropElement.classList.add(Y)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Y=this._backdropElement;if(!Y)return;let G;const Q=()=>{Y&&(Y.removeEventListener("click",this._backdropClickHandler),Y.removeEventListener("transitionend",Q),this._disposeBackdrop(Y)),this._config.backdropClass&&this._toggleClasses(Y,this._config.backdropClass,!1),clearTimeout(G)};Y.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Y.addEventListener("transitionend",Q)}),Y.style.pointerEvents="none",G=this._ngZone.runOutsideAngular(()=>setTimeout(Q,500))}_toggleClasses(Y,G,Q){const Fe=(0,K.Eq)(G||[]).filter(Je=>!!Je);Fe.length&&(Q?Y.classList.add(...Fe):Y.classList.remove(...Fe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const Y=this._ngZone.onStable.pipe((0,N.R)((0,E.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),Y.unsubscribe())})})}_disposeScrollStrategy(){const Y=this._scrollStrategy;Y&&(Y.disable(),Y.detach&&Y.detach())}_disposeBackdrop(Y){Y&&(Y.remove(),this._backdropElement===Y&&(this._backdropElement=null))}}let We=(()=>{class Ke{constructor(G,Q){this._platform=Q,this._document=G}ngOnDestroy(){var G;null===(G=this._containerElement)||void 0===G||G.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const G="cdk-overlay-container";if(this._platform.isBrowser||(0,m.Oy)()){const Fe=this._document.querySelectorAll(`.${G}[platform="server"], .${G}[platform="test"]`);for(let Je=0;Je{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const Y=this._originRect,G=this._overlayRect,Q=this._viewportRect,Fe=[];let Je;for(let vt of this._preferredPositions){let Tt=this._getOriginPoint(Y,vt),je=this._getOverlayPoint(Tt,G,vt),zt=this._getOverlayFit(je,G,Q,vt);if(zt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(vt,Tt);this._canFitWithFlexibleDimensions(zt,je,Q)?Fe.push({position:vt,origin:Tt,overlayRect:G,boundingBoxRect:this._calculateBoundingBoxRect(Tt,vt)}):(!Je||Je.overlayFit.visibleAreaTt&&(Tt=zt,vt=je)}return this._isPushed=!1,void this._applyPosition(vt.position,vt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Je.position,Je.originPoint);this._applyPosition(Je.position,Je.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(rt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const Y=this._lastPosition||this._preferredPositions[0],G=this._getOriginPoint(this._originRect,Y);this._applyPosition(Y,G)}}withScrollableContainers(Y){return this._scrollables=Y,this}withPositions(Y){return this._preferredPositions=Y,-1===Y.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Y){return this._viewportMargin=Y,this}withFlexibleDimensions(Y=!0){return this._hasFlexibleDimensions=Y,this}withGrowAfterOpen(Y=!0){return this._growAfterOpen=Y,this}withPush(Y=!0){return this._canPush=Y,this}withLockedPosition(Y=!0){return this._positionLocked=Y,this}setOrigin(Y){return this._origin=Y,this}withDefaultOffsetX(Y){return this._offsetX=Y,this}withDefaultOffsetY(Y){return this._offsetY=Y,this}withTransformOriginOn(Y){return this._transformOriginSelector=Y,this}_getOriginPoint(Y,G){let Q,Fe;if("center"==G.originX)Q=Y.left+Y.width/2;else{const Je=this._isRtl()?Y.right:Y.left,vt=this._isRtl()?Y.left:Y.right;Q="start"==G.originX?Je:vt}return Fe="center"==G.originY?Y.top+Y.height/2:"top"==G.originY?Y.top:Y.bottom,{x:Q,y:Fe}}_getOverlayPoint(Y,G,Q){let Fe,Je;return Fe="center"==Q.overlayX?-G.width/2:"start"===Q.overlayX?this._isRtl()?-G.width:0:this._isRtl()?0:-G.width,Je="center"==Q.overlayY?-G.height/2:"top"==Q.overlayY?0:-G.height,{x:Y.x+Fe,y:Y.y+Je}}_getOverlayFit(Y,G,Q,Fe){const Je=Ct(G);let{x:vt,y:Tt}=Y,je=this._getOffset(Fe,"x"),zt=this._getOffset(Fe,"y");je&&(vt+=je),zt&&(Tt+=zt);let vn=0-Tt,cn=Tt+Je.height-Q.height,an=this._subtractOverflows(Je.width,0-vt,vt+Je.width-Q.width),nn=this._subtractOverflows(Je.height,vn,cn),Gn=an*nn;return{visibleArea:Gn,isCompletelyWithinViewport:Je.width*Je.height===Gn,fitsInViewportVertically:nn===Je.height,fitsInViewportHorizontally:an==Je.width}}_canFitWithFlexibleDimensions(Y,G,Q){if(this._hasFlexibleDimensions){const Fe=Q.bottom-G.y,Je=Q.right-G.x,vt=kt(this._overlayRef.getConfig().minHeight),Tt=kt(this._overlayRef.getConfig().minWidth),zt=Y.fitsInViewportHorizontally||null!=Tt&&Tt<=Je;return(Y.fitsInViewportVertically||null!=vt&&vt<=Fe)&&zt}return!1}_pushOverlayOnScreen(Y,G,Q){if(this._previousPushAmount&&this._positionLocked)return{x:Y.x+this._previousPushAmount.x,y:Y.y+this._previousPushAmount.y};const Fe=Ct(G),Je=this._viewportRect,vt=Math.max(Y.x+Fe.width-Je.width,0),Tt=Math.max(Y.y+Fe.height-Je.height,0),je=Math.max(Je.top-Q.top-Y.y,0),zt=Math.max(Je.left-Q.left-Y.x,0);let jt=0,Bt=0;return jt=Fe.width<=Je.width?zt||-vt:Y.xan&&!this._isInitialRender&&!this._growAfterOpen&&(vt=Y.y-an/2)}if("end"===G.overlayX&&!Fe||"start"===G.overlayX&&Fe)vn=Q.width-Y.x+this._viewportMargin,jt=Y.x-this._viewportMargin;else if("start"===G.overlayX&&!Fe||"end"===G.overlayX&&Fe)Bt=Y.x,jt=Q.right-Y.x;else{const cn=Math.min(Q.right-Y.x+Q.left,Y.x),an=this._lastBoundingBoxSize.width;jt=2*cn,Bt=Y.x-cn,jt>an&&!this._isInitialRender&&!this._growAfterOpen&&(Bt=Y.x-an/2)}return{top:vt,left:Bt,bottom:Tt,right:vn,width:jt,height:Je}}_setBoundingBoxStyles(Y,G){const Q=this._calculateBoundingBoxRect(Y,G);!this._isInitialRender&&!this._growAfterOpen&&(Q.height=Math.min(Q.height,this._lastBoundingBoxSize.height),Q.width=Math.min(Q.width,this._lastBoundingBoxSize.width));const Fe={};if(this._hasExactPosition())Fe.top=Fe.left="0",Fe.bottom=Fe.right=Fe.maxHeight=Fe.maxWidth="",Fe.width=Fe.height="100%";else{const Je=this._overlayRef.getConfig().maxHeight,vt=this._overlayRef.getConfig().maxWidth;Fe.height=(0,K.HM)(Q.height),Fe.top=(0,K.HM)(Q.top),Fe.bottom=(0,K.HM)(Q.bottom),Fe.width=(0,K.HM)(Q.width),Fe.left=(0,K.HM)(Q.left),Fe.right=(0,K.HM)(Q.right),Fe.alignItems="center"===G.overlayX?"center":"end"===G.overlayX?"flex-end":"flex-start",Fe.justifyContent="center"===G.overlayY?"center":"bottom"===G.overlayY?"flex-end":"flex-start",Je&&(Fe.maxHeight=(0,K.HM)(Je)),vt&&(Fe.maxWidth=(0,K.HM)(vt))}this._lastBoundingBoxSize=Q,mt(this._boundingBox.style,Fe)}_resetBoundingBoxStyles(){mt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Y,G){const Q={},Fe=this._hasExactPosition(),Je=this._hasFlexibleDimensions,vt=this._overlayRef.getConfig();if(Fe){const jt=this._viewportRuler.getViewportScrollPosition();mt(Q,this._getExactOverlayY(G,Y,jt)),mt(Q,this._getExactOverlayX(G,Y,jt))}else Q.position="static";let Tt="",je=this._getOffset(G,"x"),zt=this._getOffset(G,"y");je&&(Tt+=`translateX(${je}px) `),zt&&(Tt+=`translateY(${zt}px)`),Q.transform=Tt.trim(),vt.maxHeight&&(Fe?Q.maxHeight=(0,K.HM)(vt.maxHeight):Je&&(Q.maxHeight="")),vt.maxWidth&&(Fe?Q.maxWidth=(0,K.HM)(vt.maxWidth):Je&&(Q.maxWidth="")),mt(this._pane.style,Q)}_getExactOverlayY(Y,G,Q){let Fe={top:"",bottom:""},Je=this._getOverlayPoint(G,this._overlayRect,Y);this._isPushed&&(Je=this._pushOverlayOnScreen(Je,this._overlayRect,Q));let vt=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return Je.y-=vt,"bottom"===Y.overlayY?Fe.bottom=this._document.documentElement.clientHeight-(Je.y+this._overlayRect.height)+"px":Fe.top=(0,K.HM)(Je.y),Fe}_getExactOverlayX(Y,G,Q){let vt,Fe={left:"",right:""},Je=this._getOverlayPoint(G,this._overlayRect,Y);return this._isPushed&&(Je=this._pushOverlayOnScreen(Je,this._overlayRect,Q)),vt=this._isRtl()?"end"===Y.overlayX?"left":"right":"end"===Y.overlayX?"right":"left","right"===vt?Fe.right=this._document.documentElement.clientWidth-(Je.x+this._overlayRect.width)+"px":Fe.left=(0,K.HM)(Je.x),Fe}_getScrollVisibility(){const Y=this._getOriginRect(),G=this._pane.getBoundingClientRect(),Q=this._scrollables.map(Fe=>Fe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:He(Y,Q),isOriginOutsideView:Ue(Y,Q),isOverlayClipped:He(G,Q),isOverlayOutsideView:Ue(G,Q)}}_subtractOverflows(Y,...G){return G.reduce((Q,Fe)=>Q-Math.max(Fe,0),Y)}_getNarrowedViewportRect(){const Y=this._document.documentElement.clientWidth,G=this._document.documentElement.clientHeight,Q=this._viewportRuler.getViewportScrollPosition();return{top:Q.top+this._viewportMargin,left:Q.left+this._viewportMargin,right:Q.left+Y-this._viewportMargin,bottom:Q.top+G-this._viewportMargin,width:Y-2*this._viewportMargin,height:G-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Y,G){return"x"===G?null==Y.offsetX?this._offsetX:Y.offsetX:null==Y.offsetY?this._offsetY:Y.offsetY}_validatePositions(){}_addPanelClasses(Y){this._pane&&(0,K.Eq)(Y).forEach(G=>{""!==G&&-1===this._appliedPanelClasses.indexOf(G)&&(this._appliedPanelClasses.push(G),this._pane.classList.add(G))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Y=>{this._pane.classList.remove(Y)}),this._appliedPanelClasses=[])}_getOriginRect(){const Y=this._origin;if(Y instanceof l.SBq)return Y.nativeElement.getBoundingClientRect();if(Y instanceof Element)return Y.getBoundingClientRect();const G=Y.width||0,Q=Y.height||0;return{top:Y.y,bottom:Y.y+Q,left:Y.x,right:Y.x+G,height:Q,width:G}}}function mt(Ke,Y){for(let G in Y)Y.hasOwnProperty(G)&&(Ke[G]=Y[G]);return Ke}function kt(Ke){if("number"!=typeof Ke&&null!=Ke){const[Y,G]=Ke.split(wt);return G&&"px"!==G?null:parseFloat(Y)}return Ke||null}function Ct(Ke){return{top:Math.floor(Ke.top),right:Math.floor(Ke.right),bottom:Math.floor(Ke.bottom),left:Math.floor(Ke.left),width:Math.floor(Ke.width),height:Math.floor(Ke.height)}}const It="cdk-global-overlay-wrapper";class Xe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(Y){const G=Y.getConfig();this._overlayRef=Y,this._width&&!G.width&&Y.updateSize({width:this._width}),this._height&&!G.height&&Y.updateSize({height:this._height}),Y.hostElement.classList.add(It),this._isDisposed=!1}top(Y=""){return this._bottomOffset="",this._topOffset=Y,this._alignItems="flex-start",this}left(Y=""){return this._rightOffset="",this._leftOffset=Y,this._justifyContent="flex-start",this}bottom(Y=""){return this._topOffset="",this._bottomOffset=Y,this._alignItems="flex-end",this}right(Y=""){return this._leftOffset="",this._rightOffset=Y,this._justifyContent="flex-end",this}width(Y=""){return this._overlayRef?this._overlayRef.updateSize({width:Y}):this._width=Y,this}height(Y=""){return this._overlayRef?this._overlayRef.updateSize({height:Y}):this._height=Y,this}centerHorizontally(Y=""){return this.left(Y),this._justifyContent="center",this}centerVertically(Y=""){return this.top(Y),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Y=this._overlayRef.overlayElement.style,G=this._overlayRef.hostElement.style,Q=this._overlayRef.getConfig(),{width:Fe,height:Je,maxWidth:vt,maxHeight:Tt}=Q,je=!("100%"!==Fe&&"100vw"!==Fe||vt&&"100%"!==vt&&"100vw"!==vt),zt=!("100%"!==Je&&"100vh"!==Je||Tt&&"100%"!==Tt&&"100vh"!==Tt);Y.position=this._cssPosition,Y.marginLeft=je?"0":this._leftOffset,Y.marginTop=zt?"0":this._topOffset,Y.marginBottom=this._bottomOffset,Y.marginRight=this._rightOffset,je?G.justifyContent="flex-start":"center"===this._justifyContent?G.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?G.justifyContent="flex-end":"flex-end"===this._justifyContent&&(G.justifyContent="flex-start"):G.justifyContent=this._justifyContent,G.alignItems=zt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Y=this._overlayRef.overlayElement.style,G=this._overlayRef.hostElement,Q=G.style;G.classList.remove(It),Q.justifyContent=Q.alignItems=Y.marginTop=Y.marginBottom=Y.marginLeft=Y.marginRight=Y.position="",this._overlayRef=null,this._isDisposed=!0}}let lt=(()=>{class Ke{constructor(G,Q,Fe,Je){this._viewportRuler=G,this._document=Q,this._platform=Fe,this._overlayContainer=Je}global(){return new Xe}flexibleConnectedTo(G){return new Ae(G,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(r.rL),l.LFG(o.K0),l.LFG(m.t4),l.LFG(We))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),ct=(()=>{class Ke{constructor(G){this._attachedOverlays=[],this._document=G}ngOnDestroy(){this.detach()}add(G){this.remove(G),this._attachedOverlays.push(G)}remove(G){const Q=this._attachedOverlays.indexOf(G);Q>-1&&this._attachedOverlays.splice(Q,1),0===this._attachedOverlays.length&&this.detach()}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(o.K0))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Lt=(()=>{class Ke extends ct{constructor(G){super(G),this._keydownListener=Q=>{const Fe=this._attachedOverlays;for(let Je=Fe.length-1;Je>-1;Je--)if(Fe[Je]._keydownEvents.observers.length>0){Fe[Je]._keydownEvents.next(Q);break}}}add(G){super.add(G),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(o.K0))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Ie=(()=>{class Ke extends ct{constructor(G,Q){super(G),this._platform=Q,this._cursorStyleIsSet=!1,this._pointerDownListener=Fe=>{this._pointerDownEventTarget=(0,m.sA)(Fe)},this._clickListener=Fe=>{const Je=(0,m.sA)(Fe),vt="click"===Fe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Je;this._pointerDownEventTarget=null;const Tt=this._attachedOverlays.slice();for(let je=Tt.length-1;je>-1;je--){const zt=Tt[je];if(!(zt._outsidePointerEvents.observers.length<1)&&zt.hasAttached()){if(zt.overlayElement.contains(Je)||zt.overlayElement.contains(vt))break;zt._outsidePointerEvents.next(Fe)}}}}add(G){if(super.add(G),!this._isAttached){const Q=this._document.body;Q.addEventListener("pointerdown",this._pointerDownListener,!0),Q.addEventListener("click",this._clickListener,!0),Q.addEventListener("auxclick",this._clickListener,!0),Q.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Q.style.cursor,Q.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const G=this._document.body;G.removeEventListener("pointerdown",this._pointerDownListener,!0),G.removeEventListener("click",this._clickListener,!0),G.removeEventListener("auxclick",this._clickListener,!0),G.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(G.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(o.K0),l.LFG(m.t4))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Pt=0,pt=(()=>{class Ke{constructor(G,Q,Fe,Je,vt,Tt,je,zt,jt,Bt,vn){this.scrollStrategies=G,this._overlayContainer=Q,this._componentFactoryResolver=Fe,this._positionBuilder=Je,this._keyboardDispatcher=vt,this._injector=Tt,this._ngZone=je,this._document=zt,this._directionality=jt,this._location=Bt,this._outsideClickDispatcher=vn}create(G){const Q=this._createHostElement(),Fe=this._createPaneElement(Q),Je=this._createPortalOutlet(Fe),vt=new U(G);return vt.direction=vt.direction||this._directionality.value,new Ye(Je,Q,Fe,vt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(G){const Q=this._document.createElement("div");return Q.id="cdk-overlay-"+Pt++,Q.classList.add("cdk-overlay-pane"),G.appendChild(Q),Q}_createHostElement(){const G=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(G),G}_createPortalOutlet(G){return this._appRef||(this._appRef=this._injector.get(l.z2F)),new b.u0(G,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(fe),l.LFG(We),l.LFG(l._Vd),l.LFG(lt),l.LFG(Lt),l.LFG(l.zs3),l.LFG(l.R0b),l.LFG(o.K0),l.LFG(A.Is),l.LFG(o.Ye),l.LFG(Ie))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();const Et=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ot=new l.OlP("cdk-connected-overlay-scroll-strategy");let en=(()=>{class Ke{constructor(G){this.elementRef=G}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.Y36(l.SBq))},Ke.\u0275dir=l.lG2({type:Ke,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Ke})(),Ne=(()=>{class Ke{constructor(G,Q,Fe,Je,vt){this._overlay=G,this._dir=vt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=C.w.EMPTY,this._attachSubscription=C.w.EMPTY,this._detachSubscription=C.w.EMPTY,this._positionSubscription=C.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new l.vpe,this.positionChange=new l.vpe,this.attach=new l.vpe,this.detach=new l.vpe,this.overlayKeydown=new l.vpe,this.overlayOutsideClick=new l.vpe,this._templatePortal=new b.UE(Q,Fe),this._scrollStrategyFactory=Je,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(G){this._offsetX=G,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(G){this._offsetY=G,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(G){this._hasBackdrop=(0,K.Ig)(G)}get lockPosition(){return this._lockPosition}set lockPosition(G){this._lockPosition=(0,K.Ig)(G)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(G){this._flexibleDimensions=(0,K.Ig)(G)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(G){this._growAfterOpen=(0,K.Ig)(G)}get push(){return this._push}set push(G){this._push=(0,K.Ig)(G)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(G){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),G.origin&&this.open&&this._position.apply()),G.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Et);const G=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=G.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=G.detachments().subscribe(()=>this.detach.emit()),G.keydownEvents().subscribe(Q=>{this.overlayKeydown.next(Q),Q.keyCode===ie.hY&&!this.disableClose&&!(0,ie.Vb)(Q)&&(Q.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Q=>{this.overlayOutsideClick.next(Q)})}_buildConfig(){const G=this._position=this.positionStrategy||this._createPositionStrategy(),Q=new U({direction:this._dir,positionStrategy:G,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Q.width=this.width),(this.height||0===this.height)&&(Q.height=this.height),(this.minWidth||0===this.minWidth)&&(Q.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Q.minHeight=this.minHeight),this.backdropClass&&(Q.backdropClass=this.backdropClass),this.panelClass&&(Q.panelClass=this.panelClass),Q}_updatePositionStrategy(G){const Q=this.positions.map(Fe=>({originX:Fe.originX,originY:Fe.originY,overlayX:Fe.overlayX,overlayY:Fe.overlayY,offsetX:Fe.offsetX||this.offsetX,offsetY:Fe.offsetY||this.offsetY,panelClass:Fe.panelClass||void 0}));return G.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Q).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const G=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(G),G}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof en?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(G=>{this.backdropClick.emit(G)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function w(Ke,Y=!1){return G=>G.lift(new z(Ke,Y))}(()=>this.positionChange.observers.length>0)).subscribe(G=>{this.positionChange.emit(G),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.Y36(pt),l.Y36(l.Rgc),l.Y36(l.s_b),l.Y36(ot),l.Y36(A.Is,8))},Ke.\u0275dir=l.lG2({type:Ke,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[l.TTD]}),Ke})();const ye={provide:ot,deps:[pt],useFactory:function Ve(Ke){return()=>Ke.scrollStrategies.reposition()}};let yt=(()=>{class Ke{}return Ke.\u0275fac=function(G){return new(G||Ke)},Ke.\u0275mod=l.oAB({type:Ke}),Ke.\u0275inj=l.cJS({providers:[pt,ye],imports:[[A.vT,b.eL,r.Cl],r.Cl]}),Ke})()},925:(Ft,Oe,c)=>{c.d(Oe,{t4:()=>K,ud:()=>m,sA:()=>Le,kV:()=>ce,Oy:()=>Re,_i:()=>k,i$:()=>S,Mq:()=>M});var r=c(5e3),o=c(9808);let l;try{l="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ae){l=!1}let C,w,z,N,K=(()=>{class ae{constructor(He){this._platformId=He,this.isBrowser=this._platformId?(0,o.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!l)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return ae.\u0275fac=function(He){return new(He||ae)(r.LFG(r.Lbi))},ae.\u0275prov=r.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),m=(()=>{class ae{}return ae.\u0275fac=function(He){return new(He||ae)},ae.\u0275mod=r.oAB({type:ae}),ae.\u0275inj=r.cJS({}),ae})();function S(ae){return function E(){if(null==C&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>C=!0}))}finally{C=C||!1}return C}()?ae:!!ae.capture}function M(){if(null==z){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return z=!1,z;if("scrollBehavior"in document.documentElement.style)z=!0;else{const ae=Element.prototype.scrollTo;z=!!ae&&!/\{\s*\[native code\]\s*\}/.test(ae.toString())}}return z}function k(){if("object"!=typeof document||!document)return 0;if(null==w){const ae=document.createElement("div"),Ue=ae.style;ae.dir="rtl",Ue.width="1px",Ue.overflow="auto",Ue.visibility="hidden",Ue.pointerEvents="none",Ue.position="absolute";const He=document.createElement("div"),me=He.style;me.width="2px",me.height="1px",ae.appendChild(He),document.body.appendChild(ae),w=0,0===ae.scrollLeft&&(ae.scrollLeft=1,w=0===ae.scrollLeft?1:2),ae.remove()}return w}function ce(ae){if(function ie(){if(null==N){const ae="undefined"!=typeof document?document.head:null;N=!(!ae||!ae.createShadowRoot&&!ae.attachShadow)}return N}()){const Ue=ae.getRootNode?ae.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Ue instanceof ShadowRoot)return Ue}return null}function Le(ae){return ae.composedPath?ae.composedPath()[0]:ae.target}function Re(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Ft,Oe,c)=>{c.d(Oe,{en:()=>z,Pl:()=>ve,C5:()=>E,u0:()=>k,eL:()=>Re,UE:()=>S});var r=c(5e3),o=c(9808);class C{attach(He){return this._attachedHost=He,He.attach(this)}detach(){let He=this._attachedHost;null!=He&&(this._attachedHost=null,He.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(He){this._attachedHost=He}}class E extends C{constructor(He,me,fe,U){super(),this.component=He,this.viewContainerRef=me,this.injector=fe,this.componentFactoryResolver=U}}class S extends C{constructor(He,me,fe){super(),this.templateRef=He,this.viewContainerRef=me,this.context=fe}get origin(){return this.templateRef.elementRef}attach(He,me=this.context){return this.context=me,super.attach(He)}detach(){return this.context=void 0,super.detach()}}class w extends C{constructor(He){super(),this.element=He instanceof r.SBq?He.nativeElement:He}}class z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(He){return He instanceof E?(this._attachedPortal=He,this.attachComponentPortal(He)):He instanceof S?(this._attachedPortal=He,this.attachTemplatePortal(He)):this.attachDomPortal&&He instanceof w?(this._attachedPortal=He,this.attachDomPortal(He)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(He){this._disposeFn=He}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class k extends z{constructor(He,me,fe,U,J){super(),this.outletElement=He,this._componentFactoryResolver=me,this._appRef=fe,this._defaultInjector=U,this.attachDomPortal=Me=>{const se=Me.element,we=this._document.createComment("dom-portal");se.parentNode.insertBefore(we,se),this.outletElement.appendChild(se),this._attachedPortal=Me,super.setDisposeFn(()=>{we.parentNode&&we.parentNode.replaceChild(se,we)})},this._document=J}attachComponentPortal(He){const fe=(He.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(He.component);let U;return He.viewContainerRef?(U=He.viewContainerRef.createComponent(fe,He.viewContainerRef.length,He.injector||He.viewContainerRef.injector),this.setDisposeFn(()=>U.destroy())):(U=fe.create(He.injector||this._defaultInjector),this._appRef.attachView(U.hostView),this.setDisposeFn(()=>{this._appRef.detachView(U.hostView),U.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(U)),this._attachedPortal=He,U}attachTemplatePortal(He){let me=He.viewContainerRef,fe=me.createEmbeddedView(He.templateRef,He.context);return fe.rootNodes.forEach(U=>this.outletElement.appendChild(U)),fe.detectChanges(),this.setDisposeFn(()=>{let U=me.indexOf(fe);-1!==U&&me.remove(U)}),this._attachedPortal=He,fe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(He){return He.hostView.rootNodes[0]}}let ve=(()=>{class Ue extends z{constructor(me,fe,U){super(),this._componentFactoryResolver=me,this._viewContainerRef=fe,this._isInitialized=!1,this.attached=new r.vpe,this.attachDomPortal=J=>{const Me=J.element,se=this._document.createComment("dom-portal");J.setAttachedHost(this),Me.parentNode.insertBefore(se,Me),this._getRootNode().appendChild(Me),this._attachedPortal=J,super.setDisposeFn(()=>{se.parentNode&&se.parentNode.replaceChild(Me,se)})},this._document=U}get portal(){return this._attachedPortal}set portal(me){this.hasAttached()&&!me&&!this._isInitialized||(this.hasAttached()&&super.detach(),me&&super.attach(me),this._attachedPortal=me||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(me){me.setAttachedHost(this);const fe=null!=me.viewContainerRef?me.viewContainerRef:this._viewContainerRef,J=(me.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(me.component),Me=fe.createComponent(J,fe.length,me.injector||fe.injector);return fe!==this._viewContainerRef&&this._getRootNode().appendChild(Me.hostView.rootNodes[0]),super.setDisposeFn(()=>Me.destroy()),this._attachedPortal=me,this._attachedRef=Me,this.attached.emit(Me),Me}attachTemplatePortal(me){me.setAttachedHost(this);const fe=this._viewContainerRef.createEmbeddedView(me.templateRef,me.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=me,this._attachedRef=fe,this.attached.emit(fe),fe}_getRootNode(){const me=this._viewContainerRef.element.nativeElement;return me.nodeType===me.ELEMENT_NODE?me:me.parentNode}}return Ue.\u0275fac=function(me){return new(me||Ue)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(o.K0))},Ue.\u0275dir=r.lG2({type:Ue,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),Ue})(),Re=(()=>{class Ue{}return Ue.\u0275fac=function(me){return new(me||Ue)},Ue.\u0275mod=r.oAB({type:Ue}),Ue.\u0275inj=r.cJS({}),Ue})()},2321:(Ft,Oe,c)=>{c.d(Oe,{xd:()=>kt,ZD:()=>ot,x0:()=>Et,N7:()=>Pt,mF:()=>It,Cl:()=>en,rL:()=>ct});var r=c(3191),o=c(5e3),l=c(8929),K=c(1086),m=c(2916),A=c(3753),b=c(352),D=c(8139),C=c(2654),E=c(4715),S=c(3489);class z{call(Ve,ye){return ye.subscribe(new M(Ve))}}class M extends S.L{constructor(Ve){super(Ve),this.hasPrev=!1}_next(Ve){let ye;this.hasPrev?ye=[this.prev,Ve]:this.hasPrev=!0,this.prev=Ve,ye&&this.destination.next(ye)}}var k=c(5778),N=c(7138),ie=c(2198),ce=c(7625),ve=c(1059),Le=c(7545),Re=c(5154),ae=c(9808),Ue=c(925),He=c(226);class U extends class me{}{constructor(Ve){super(),this._data=Ve}connect(){return(0,E.b)(this._data)?this._data:(0,K.of)(this._data)}disconnect(){}}class Me{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(Ve,ye,yt,Mt,Ke){Ve.forEachOperation((Y,G,Q)=>{let Fe,Je;null==Y.previousIndex?(Fe=this._insertView(()=>yt(Y,G,Q),Q,ye,Mt(Y)),Je=Fe?1:0):null==Q?(this._detachAndCacheView(G,ye),Je=3):(Fe=this._moveView(G,Q,ye,Mt(Y)),Je=2),Ke&&Ke({context:null==Fe?void 0:Fe.context,operation:Je,record:Y})})}detach(){for(const Ve of this._viewCache)Ve.destroy();this._viewCache=[]}_insertView(Ve,ye,yt,Mt){const Ke=this._insertViewFromCache(ye,yt);if(Ke)return void(Ke.context.$implicit=Mt);const Y=Ve();return yt.createEmbeddedView(Y.templateRef,Y.context,Y.index)}_detachAndCacheView(Ve,ye){const yt=ye.detach(Ve);this._maybeCacheView(yt,ye)}_moveView(Ve,ye,yt,Mt){const Ke=yt.get(Ve);return yt.move(Ke,ye),Ke.context.$implicit=Mt,Ke}_maybeCacheView(Ve,ye){if(this._viewCache.length0?Ke/this._itemSize:0;if(ye.end>Mt){const Q=Math.ceil(yt/this._itemSize),Fe=Math.max(0,Math.min(Y,Mt-Q));Y!=Fe&&(Y=Fe,Ke=Fe*this._itemSize,ye.start=Math.floor(Y)),ye.end=Math.max(0,Math.min(Mt,ye.start+Q))}const G=Ke-ye.start*this._itemSize;if(G0&&(ye.end=Math.min(Mt,ye.end+Fe),ye.start=Math.max(0,Math.floor(Y-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(ye),this._viewport.setRenderedContentOffset(this._itemSize*ye.start),this._scrolledIndexChange.next(Math.floor(Y))}}function mt(Ne){return Ne._scrollStrategy}let kt=(()=>{class Ne{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Ae(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(ye){this._itemSize=(0,r.su)(ye)}get minBufferPx(){return this._minBufferPx}set minBufferPx(ye){this._minBufferPx=(0,r.su)(ye)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(ye){this._maxBufferPx=(0,r.su)(ye)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Ne.\u0275fac=function(ye){return new(ye||Ne)},Ne.\u0275dir=o.lG2({type:Ne,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[o._Bn([{provide:wt,useFactory:mt,deps:[(0,o.Gpc)(()=>Ne)]}]),o.TTD]}),Ne})(),It=(()=>{class Ne{constructor(ye,yt,Mt){this._ngZone=ye,this._platform=yt,this._scrolled=new l.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Mt}register(ye){this.scrollContainers.has(ye)||this.scrollContainers.set(ye,ye.elementScrolled().subscribe(()=>this._scrolled.next(ye)))}deregister(ye){const yt=this.scrollContainers.get(ye);yt&&(yt.unsubscribe(),this.scrollContainers.delete(ye))}scrolled(ye=20){return this._platform.isBrowser?new m.y(yt=>{this._globalSubscription||this._addGlobalListener();const Mt=ye>0?this._scrolled.pipe((0,N.e)(ye)).subscribe(yt):this._scrolled.subscribe(yt);return this._scrolledCount++,()=>{Mt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,K.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ye,yt)=>this.deregister(yt)),this._scrolled.complete()}ancestorScrolled(ye,yt){const Mt=this.getAncestorScrollContainers(ye);return this.scrolled(yt).pipe((0,ie.h)(Ke=>!Ke||Mt.indexOf(Ke)>-1))}getAncestorScrollContainers(ye){const yt=[];return this.scrollContainers.forEach((Mt,Ke)=>{this._scrollableContainsElement(Ke,ye)&&yt.push(Ke)}),yt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ye,yt){let Mt=(0,r.fI)(yt),Ke=ye.getElementRef().nativeElement;do{if(Mt==Ke)return!0}while(Mt=Mt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ye=this._getWindow();return(0,A.R)(ye.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Ne.\u0275fac=function(ye){return new(ye||Ne)(o.LFG(o.R0b),o.LFG(Ue.t4),o.LFG(ae.K0,8))},Ne.\u0275prov=o.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),Xe=(()=>{class Ne{constructor(ye,yt,Mt,Ke){this.elementRef=ye,this.scrollDispatcher=yt,this.ngZone=Mt,this.dir=Ke,this._destroyed=new l.xQ,this._elementScrolled=new m.y(Y=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,ce.R)(this._destroyed)).subscribe(Y)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ye){const yt=this.elementRef.nativeElement,Mt=this.dir&&"rtl"==this.dir.value;null==ye.left&&(ye.left=Mt?ye.end:ye.start),null==ye.right&&(ye.right=Mt?ye.start:ye.end),null!=ye.bottom&&(ye.top=yt.scrollHeight-yt.clientHeight-ye.bottom),Mt&&0!=(0,Ue._i)()?(null!=ye.left&&(ye.right=yt.scrollWidth-yt.clientWidth-ye.left),2==(0,Ue._i)()?ye.left=ye.right:1==(0,Ue._i)()&&(ye.left=ye.right?-ye.right:ye.right)):null!=ye.right&&(ye.left=yt.scrollWidth-yt.clientWidth-ye.right),this._applyScrollToOptions(ye)}_applyScrollToOptions(ye){const yt=this.elementRef.nativeElement;(0,Ue.Mq)()?yt.scrollTo(ye):(null!=ye.top&&(yt.scrollTop=ye.top),null!=ye.left&&(yt.scrollLeft=ye.left))}measureScrollOffset(ye){const yt="left",Ke=this.elementRef.nativeElement;if("top"==ye)return Ke.scrollTop;if("bottom"==ye)return Ke.scrollHeight-Ke.clientHeight-Ke.scrollTop;const Y=this.dir&&"rtl"==this.dir.value;return"start"==ye?ye=Y?"right":yt:"end"==ye&&(ye=Y?yt:"right"),Y&&2==(0,Ue._i)()?ye==yt?Ke.scrollWidth-Ke.clientWidth-Ke.scrollLeft:Ke.scrollLeft:Y&&1==(0,Ue._i)()?ye==yt?Ke.scrollLeft+Ke.scrollWidth-Ke.clientWidth:-Ke.scrollLeft:ye==yt?Ke.scrollLeft:Ke.scrollWidth-Ke.clientWidth-Ke.scrollLeft}}return Ne.\u0275fac=function(ye){return new(ye||Ne)(o.Y36(o.SBq),o.Y36(It),o.Y36(o.R0b),o.Y36(He.Is,8))},Ne.\u0275dir=o.lG2({type:Ne,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Ne})(),ct=(()=>{class Ne{constructor(ye,yt,Mt){this._platform=ye,this._change=new l.xQ,this._changeListener=Ke=>{this._change.next(Ke)},this._document=Mt,yt.runOutsideAngular(()=>{if(ye.isBrowser){const Ke=this._getWindow();Ke.addEventListener("resize",this._changeListener),Ke.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ye=this._getWindow();ye.removeEventListener("resize",this._changeListener),ye.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ye={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ye}getViewportRect(){const ye=this.getViewportScrollPosition(),{width:yt,height:Mt}=this.getViewportSize();return{top:ye.top,left:ye.left,bottom:ye.top+Mt,right:ye.left+yt,height:Mt,width:yt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ye=this._document,yt=this._getWindow(),Mt=ye.documentElement,Ke=Mt.getBoundingClientRect();return{top:-Ke.top||ye.body.scrollTop||yt.scrollY||Mt.scrollTop||0,left:-Ke.left||ye.body.scrollLeft||yt.scrollX||Mt.scrollLeft||0}}change(ye=20){return ye>0?this._change.pipe((0,N.e)(ye)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ye=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ye.innerWidth,height:ye.innerHeight}:{width:0,height:0}}}return Ne.\u0275fac=function(ye){return new(ye||Ne)(o.LFG(Ue.t4),o.LFG(o.R0b),o.LFG(ae.K0,8))},Ne.\u0275prov=o.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})();const Ie="undefined"!=typeof requestAnimationFrame?b.Z:D.E;let Pt=(()=>{class Ne extends Xe{constructor(ye,yt,Mt,Ke,Y,G,Q){super(ye,G,Mt,Y),this.elementRef=ye,this._changeDetectorRef=yt,this._scrollStrategy=Ke,this._detachedSubject=new l.xQ,this._renderedRangeSubject=new l.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new m.y(Fe=>this._scrollStrategy.scrolledIndexChange.subscribe(Je=>Promise.resolve().then(()=>this.ngZone.run(()=>Fe.next(Je))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=C.w.EMPTY,this._viewportChanges=Q.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(ye){this._orientation!==ye&&(this._orientation=ye,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(ye){this._appendOnly=(0,r.Ig)(ye)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,ve.O)(null),(0,N.e)(0,Ie)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(ye){this.ngZone.runOutsideAngular(()=>{this._forOf=ye,this._forOf.dataStream.pipe((0,ce.R)(this._detachedSubject)).subscribe(yt=>{const Mt=yt.length;Mt!==this._dataLength&&(this._dataLength=Mt,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(ye){this._totalContentSize!==ye&&(this._totalContentSize=ye,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(ye){(function Lt(Ne,Ve){return Ne.start==Ve.start&&Ne.end==Ve.end})(this._renderedRange,ye)||(this.appendOnly&&(ye={start:0,end:Math.max(this._renderedRange.end,ye.end)}),this._renderedRangeSubject.next(this._renderedRange=ye),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(ye,yt="to-start"){const Ke="horizontal"==this.orientation,Y=Ke?"X":"Y";let Q=`translate${Y}(${Number((Ke&&this.dir&&"rtl"==this.dir.value?-1:1)*ye)}px)`;this._renderedContentOffset=ye,"to-end"===yt&&(Q+=` translate${Y}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Q&&(this._renderedContentTransform=Q,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(ye,yt="auto"){const Mt={behavior:yt};"horizontal"===this.orientation?Mt.start=ye:Mt.top=ye,this.scrollTo(Mt)}scrollToIndex(ye,yt="auto"){this._scrollStrategy.scrollToIndex(ye,yt)}measureScrollOffset(ye){return super.measureScrollOffset(ye||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const ye=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?ye.offsetWidth:ye.offsetHeight}measureRangeSize(ye){return this._forOf?this._forOf.measureRangeSize(ye,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const ye=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?ye.clientWidth:ye.clientHeight}_markChangeDetectionNeeded(ye){ye&&this._runAfterChangeDetection.push(ye),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const ye=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const yt of ye)yt()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Ne.\u0275fac=function(ye){return new(ye||Ne)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(wt,8),o.Y36(He.Is,8),o.Y36(It),o.Y36(ct))},Ne.\u0275cmp=o.Xpm({type:Ne,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(ye,yt){if(1&ye&&o.Gf(We,7),2&ye){let Mt;o.iGM(Mt=o.CRH())&&(yt._contentWrapper=Mt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(ye,yt){2&ye&&o.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===yt.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==yt.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[o._Bn([{provide:Xe,useExisting:Ne}]),o.qOj],ngContentSelectors:rt,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(ye,yt){1&ye&&(o.F$t(),o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA(),o._UZ(3,"div",2)),2&ye&&(o.xp6(3),o.Udp("width",yt._totalContentWidth)("height",yt._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),Ne})();function pt(Ne,Ve,ye){if(!ye.getBoundingClientRect)return 0;const Mt=ye.getBoundingClientRect();return"horizontal"===Ne?"start"===Ve?Mt.left:Mt.right:"start"===Ve?Mt.top:Mt.bottom}let Et=(()=>{class Ne{constructor(ye,yt,Mt,Ke,Y,G){this._viewContainerRef=ye,this._template=yt,this._differs=Mt,this._viewRepeater=Ke,this._viewport=Y,this.viewChange=new l.xQ,this._dataSourceChanges=new l.xQ,this.dataStream=this._dataSourceChanges.pipe((0,ve.O)(null),function w(){return Ne=>Ne.lift(new z)}(),(0,Le.w)(([Q,Fe])=>this._changeDataSource(Q,Fe)),(0,Re.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new l.xQ,this.dataStream.subscribe(Q=>{this._data=Q,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,ce.R)(this._destroyed)).subscribe(Q=>{this._renderedRange=Q,G.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(ye){this._cdkVirtualForOf=ye,function fe(Ne){return Ne&&"function"==typeof Ne.connect}(ye)?this._dataSourceChanges.next(ye):this._dataSourceChanges.next(new U((0,E.b)(ye)?ye:Array.from(ye||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(ye){this._needsUpdate=!0,this._cdkVirtualForTrackBy=ye?(yt,Mt)=>ye(yt+(this._renderedRange?this._renderedRange.start:0),Mt):void 0}set cdkVirtualForTemplate(ye){ye&&(this._needsUpdate=!0,this._template=ye)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(ye){this._viewRepeater.viewCacheSize=(0,r.su)(ye)}measureRangeSize(ye,yt){if(ye.start>=ye.end)return 0;const Mt=ye.start-this._renderedRange.start,Ke=ye.end-ye.start;let Y,G;for(let Q=0;Q-1;Q--){const Fe=this._viewContainerRef.get(Q+Mt);if(Fe&&Fe.rootNodes.length){G=Fe.rootNodes[Fe.rootNodes.length-1];break}}return Y&&G?pt(yt,"end",G)-pt(yt,"start",Y):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const ye=this._differ.diff(this._renderedItems);ye?this._applyChanges(ye):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((ye,yt)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(ye,yt):yt)),this._needsUpdate=!0)}_changeDataSource(ye,yt){return ye&&ye.disconnect(this),this._needsUpdate=!0,yt?yt.connect(this):(0,K.of)()}_updateContext(){const ye=this._data.length;let yt=this._viewContainerRef.length;for(;yt--;){const Mt=this._viewContainerRef.get(yt);Mt.context.index=this._renderedRange.start+yt,Mt.context.count=ye,this._updateComputedContextProperties(Mt.context),Mt.detectChanges()}}_applyChanges(ye){this._viewRepeater.applyChanges(ye,this._viewContainerRef,(Ke,Y,G)=>this._getEmbeddedViewArgs(Ke,G),Ke=>Ke.item),ye.forEachIdentityChange(Ke=>{this._viewContainerRef.get(Ke.currentIndex).context.$implicit=Ke.item});const yt=this._data.length;let Mt=this._viewContainerRef.length;for(;Mt--;){const Ke=this._viewContainerRef.get(Mt);Ke.context.index=this._renderedRange.start+Mt,Ke.context.count=yt,this._updateComputedContextProperties(Ke.context)}}_updateComputedContextProperties(ye){ye.first=0===ye.index,ye.last=ye.index===ye.count-1,ye.even=ye.index%2==0,ye.odd=!ye.even}_getEmbeddedViewArgs(ye,yt){return{templateRef:this._template,context:{$implicit:ye.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:yt}}}return Ne.\u0275fac=function(ye){return new(ye||Ne)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(Ye),o.Y36(Pt,4),o.Y36(o.R0b))},Ne.\u0275dir=o.lG2({type:Ne,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[o._Bn([{provide:Ye,useClass:Me}])]}),Ne})(),ot=(()=>{class Ne{}return Ne.\u0275fac=function(ye){return new(ye||Ne)},Ne.\u0275mod=o.oAB({type:Ne}),Ne.\u0275inj=o.cJS({}),Ne})(),en=(()=>{class Ne{}return Ne.\u0275fac=function(ye){return new(ye||Ne)},Ne.\u0275mod=o.oAB({type:Ne}),Ne.\u0275inj=o.cJS({imports:[[He.vT,Ue.ud,ot],He.vT,ot]}),Ne})()},9808:(Ft,Oe,c)=>{c.d(Oe,{mr:()=>ve,Ov:()=>wo,ez:()=>ao,K0:()=>b,uU:()=>ro,JJ:()=>Xo,Do:()=>Re,Ts:()=>so,Nd:()=>So,V_:()=>E,Ye:()=>ae,S$:()=>ie,i8:()=>Bo,mk:()=>Qn,sg:()=>qn,O5:()=>le,iq:()=>ii,zE:()=>si,PC:()=>pi,RF:()=>dn,n9:()=>Mn,ED:()=>jn,tP:()=>Wi,wE:()=>ue,b0:()=>Le,lw:()=>D,rS:()=>Xi,gd:()=>bo,EM:()=>zi,JF:()=>Zn,dv:()=>ct,NF:()=>Ti,qS:()=>rn,w_:()=>A,bD:()=>jo,q:()=>l,Mx:()=>Nn,HT:()=>m});var r=c(5e3);let o=null;function l(){return o}function m(j){o||(o=j)}class A{}const b=new r.OlP("DocumentToken");let D=(()=>{class j{historyGo(W){throw new Error("Not implemented")}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275prov=r.Yz7({token:j,factory:function(){return function C(){return(0,r.LFG)(S)}()},providedIn:"platform"}),j})();const E=new r.OlP("Location Initialized");let S=(()=>{class j extends D{constructor(W){super(),this._doc=W,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return l().getBaseHref(this._doc)}onPopState(W){const ze=l().getGlobalEventTarget(this._doc,"window");return ze.addEventListener("popstate",W,!1),()=>ze.removeEventListener("popstate",W)}onHashChange(W){const ze=l().getGlobalEventTarget(this._doc,"window");return ze.addEventListener("hashchange",W,!1),()=>ze.removeEventListener("hashchange",W)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(W){this.location.pathname=W}pushState(W,ze,st){w()?this._history.pushState(W,ze,st):this.location.hash=st}replaceState(W,ze,st){w()?this._history.replaceState(W,ze,st):this.location.hash=st}forward(){this._history.forward()}back(){this._history.back()}historyGo(W=0){this._history.go(W)}getState(){return this._history.state}}return j.\u0275fac=function(W){return new(W||j)(r.LFG(b))},j.\u0275prov=r.Yz7({token:j,factory:function(){return function z(){return new S((0,r.LFG)(b))}()},providedIn:"platform"}),j})();function w(){return!!window.history.pushState}function M(j,_e){if(0==j.length)return _e;if(0==_e.length)return j;let W=0;return j.endsWith("/")&&W++,_e.startsWith("/")&&W++,2==W?j+_e.substring(1):1==W?j+_e:j+"/"+_e}function k(j){const _e=j.match(/#|\?|$/),W=_e&&_e.index||j.length;return j.slice(0,W-("/"===j[W-1]?1:0))+j.slice(W)}function N(j){return j&&"?"!==j[0]?"?"+j:j}let ie=(()=>{class j{historyGo(W){throw new Error("Not implemented")}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275prov=r.Yz7({token:j,factory:function(){return function ce(j){const _e=(0,r.LFG)(b).location;return new Le((0,r.LFG)(D),_e&&_e.origin||"")}()},providedIn:"root"}),j})();const ve=new r.OlP("appBaseHref");let Le=(()=>{class j extends ie{constructor(W,ze){if(super(),this._platformLocation=W,this._removeListenerFns=[],null==ze&&(ze=this._platformLocation.getBaseHrefFromDOM()),null==ze)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=ze}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(W){this._removeListenerFns.push(this._platformLocation.onPopState(W),this._platformLocation.onHashChange(W))}getBaseHref(){return this._baseHref}prepareExternalUrl(W){return M(this._baseHref,W)}path(W=!1){const ze=this._platformLocation.pathname+N(this._platformLocation.search),st=this._platformLocation.hash;return st&&W?`${ze}${st}`:ze}pushState(W,ze,st,bt){const Zt=this.prepareExternalUrl(st+N(bt));this._platformLocation.pushState(W,ze,Zt)}replaceState(W,ze,st,bt){const Zt=this.prepareExternalUrl(st+N(bt));this._platformLocation.replaceState(W,ze,Zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(W=0){var ze,st;null===(st=(ze=this._platformLocation).historyGo)||void 0===st||st.call(ze,W)}}return j.\u0275fac=function(W){return new(W||j)(r.LFG(D),r.LFG(ve,8))},j.\u0275prov=r.Yz7({token:j,factory:j.\u0275fac}),j})(),Re=(()=>{class j extends ie{constructor(W,ze){super(),this._platformLocation=W,this._baseHref="",this._removeListenerFns=[],null!=ze&&(this._baseHref=ze)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(W){this._removeListenerFns.push(this._platformLocation.onPopState(W),this._platformLocation.onHashChange(W))}getBaseHref(){return this._baseHref}path(W=!1){let ze=this._platformLocation.hash;return null==ze&&(ze="#"),ze.length>0?ze.substring(1):ze}prepareExternalUrl(W){const ze=M(this._baseHref,W);return ze.length>0?"#"+ze:ze}pushState(W,ze,st,bt){let Zt=this.prepareExternalUrl(st+N(bt));0==Zt.length&&(Zt=this._platformLocation.pathname),this._platformLocation.pushState(W,ze,Zt)}replaceState(W,ze,st,bt){let Zt=this.prepareExternalUrl(st+N(bt));0==Zt.length&&(Zt=this._platformLocation.pathname),this._platformLocation.replaceState(W,ze,Zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(W=0){var ze,st;null===(st=(ze=this._platformLocation).historyGo)||void 0===st||st.call(ze,W)}}return j.\u0275fac=function(W){return new(W||j)(r.LFG(D),r.LFG(ve,8))},j.\u0275prov=r.Yz7({token:j,factory:j.\u0275fac}),j})(),ae=(()=>{class j{constructor(W,ze){this._subject=new r.vpe,this._urlChangeListeners=[],this._platformStrategy=W;const st=this._platformStrategy.getBaseHref();this._platformLocation=ze,this._baseHref=k(me(st)),this._platformStrategy.onPopState(bt=>{this._subject.emit({url:this.path(!0),pop:!0,state:bt.state,type:bt.type})})}path(W=!1){return this.normalize(this._platformStrategy.path(W))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(W,ze=""){return this.path()==this.normalize(W+N(ze))}normalize(W){return j.stripTrailingSlash(function He(j,_e){return j&&_e.startsWith(j)?_e.substring(j.length):_e}(this._baseHref,me(W)))}prepareExternalUrl(W){return W&&"/"!==W[0]&&(W="/"+W),this._platformStrategy.prepareExternalUrl(W)}go(W,ze="",st=null){this._platformStrategy.pushState(st,"",W,ze),this._notifyUrlChangeListeners(this.prepareExternalUrl(W+N(ze)),st)}replaceState(W,ze="",st=null){this._platformStrategy.replaceState(st,"",W,ze),this._notifyUrlChangeListeners(this.prepareExternalUrl(W+N(ze)),st)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(W=0){var ze,st;null===(st=(ze=this._platformStrategy).historyGo)||void 0===st||st.call(ze,W)}onUrlChange(W){this._urlChangeListeners.push(W),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ze=>{this._notifyUrlChangeListeners(ze.url,ze.state)}))}_notifyUrlChangeListeners(W="",ze){this._urlChangeListeners.forEach(st=>st(W,ze))}subscribe(W,ze,st){return this._subject.subscribe({next:W,error:ze,complete:st})}}return j.normalizeQueryParams=N,j.joinWithSlash=M,j.stripTrailingSlash=k,j.\u0275fac=function(W){return new(W||j)(r.LFG(ie),r.LFG(D))},j.\u0275prov=r.Yz7({token:j,factory:function(){return function Ue(){return new ae((0,r.LFG)(ie),(0,r.LFG)(D))}()},providedIn:"root"}),j})();function me(j){return j.replace(/\/index.html$/,"")}var U=(()=>((U=U||{})[U.Decimal=0]="Decimal",U[U.Percent=1]="Percent",U[U.Currency=2]="Currency",U[U.Scientific=3]="Scientific",U))(),J=(()=>((J=J||{})[J.Zero=0]="Zero",J[J.One=1]="One",J[J.Two=2]="Two",J[J.Few=3]="Few",J[J.Many=4]="Many",J[J.Other=5]="Other",J))(),Me=(()=>((Me=Me||{})[Me.Format=0]="Format",Me[Me.Standalone=1]="Standalone",Me))(),se=(()=>((se=se||{})[se.Narrow=0]="Narrow",se[se.Abbreviated=1]="Abbreviated",se[se.Wide=2]="Wide",se[se.Short=3]="Short",se))(),we=(()=>((we=we||{})[we.Short=0]="Short",we[we.Medium=1]="Medium",we[we.Long=2]="Long",we[we.Full=3]="Full",we))(),ue=(()=>((ue=ue||{})[ue.Decimal=0]="Decimal",ue[ue.Group=1]="Group",ue[ue.List=2]="List",ue[ue.PercentSign=3]="PercentSign",ue[ue.PlusSign=4]="PlusSign",ue[ue.MinusSign=5]="MinusSign",ue[ue.Exponential=6]="Exponential",ue[ue.SuperscriptingExponent=7]="SuperscriptingExponent",ue[ue.PerMille=8]="PerMille",ue[ue.Infinity=9]="Infinity",ue[ue.NaN=10]="NaN",ue[ue.TimeSeparator=11]="TimeSeparator",ue[ue.CurrencyDecimal=12]="CurrencyDecimal",ue[ue.CurrencyGroup=13]="CurrencyGroup",ue))();function It(j,_e){return yt((0,r.cg1)(j)[r.wAp.DateFormat],_e)}function Xe(j,_e){return yt((0,r.cg1)(j)[r.wAp.TimeFormat],_e)}function lt(j,_e){return yt((0,r.cg1)(j)[r.wAp.DateTimeFormat],_e)}function ct(j,_e){const W=(0,r.cg1)(j),ze=W[r.wAp.NumberSymbols][_e];if(void 0===ze){if(_e===ue.CurrencyDecimal)return W[r.wAp.NumberSymbols][ue.Decimal];if(_e===ue.CurrencyGroup)return W[r.wAp.NumberSymbols][ue.Group]}return ze}const ot=r.kL8;function en(j){if(!j[r.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${j[r.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function yt(j,_e){for(let W=_e;W>-1;W--)if(void 0!==j[W])return j[W];throw new Error("Locale data API: locale data undefined")}function Mt(j){const[_e,W]=j.split(":");return{hours:+_e,minutes:+W}}const Q=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Fe={},Je=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var vt=(()=>((vt=vt||{})[vt.Short=0]="Short",vt[vt.ShortGMT=1]="ShortGMT",vt[vt.Long=2]="Long",vt[vt.Extended=3]="Extended",vt))(),Tt=(()=>((Tt=Tt||{})[Tt.FullYear=0]="FullYear",Tt[Tt.Month=1]="Month",Tt[Tt.Date=2]="Date",Tt[Tt.Hours=3]="Hours",Tt[Tt.Minutes=4]="Minutes",Tt[Tt.Seconds=5]="Seconds",Tt[Tt.FractionalSeconds=6]="FractionalSeconds",Tt[Tt.Day=7]="Day",Tt))(),je=(()=>((je=je||{})[je.DayPeriods=0]="DayPeriods",je[je.Days=1]="Days",je[je.Months=2]="Months",je[je.Eras=3]="Eras",je))();function zt(j,_e,W,ze){let st=function Z(j){if(De(j))return j;if("number"==typeof j&&!isNaN(j))return new Date(j);if("string"==typeof j){if(j=j.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(j)){const[st,bt=1,Zt=1]=j.split("-").map(Cn=>+Cn);return jt(st,bt-1,Zt)}const W=parseFloat(j);if(!isNaN(j-W))return new Date(W);let ze;if(ze=j.match(Q))return function oe(j){const _e=new Date(0);let W=0,ze=0;const st=j[8]?_e.setUTCFullYear:_e.setFullYear,bt=j[8]?_e.setUTCHours:_e.setHours;j[9]&&(W=Number(j[9]+j[10]),ze=Number(j[9]+j[11])),st.call(_e,Number(j[1]),Number(j[2])-1,Number(j[3]));const Zt=Number(j[4]||0)-W,Cn=Number(j[5]||0)-ze,li=Number(j[6]||0),ni=Math.floor(1e3*parseFloat("0."+(j[7]||0)));return bt.call(_e,Zt,Cn,li,ni),_e}(ze)}const _e=new Date(j);if(!De(_e))throw new Error(`Unable to convert "${j}" into a date`);return _e}(j);_e=Bt(W,_e)||_e;let Cn,Zt=[];for(;_e;){if(Cn=Je.exec(_e),!Cn){Zt.push(_e);break}{Zt=Zt.concat(Cn.slice(1));const oi=Zt.pop();if(!oi)break;_e=oi}}let li=st.getTimezoneOffset();ze&&(li=de(ze,li),st=function V(j,_e,W){const ze=W?-1:1,st=j.getTimezoneOffset();return function ut(j,_e){return(j=new Date(j.getTime())).setMinutes(j.getMinutes()+_e),j}(j,ze*(de(_e,st)-st))}(st,ze,!0));let ni="";return Zt.forEach(oi=>{const $n=function ge(j){if(xt[j])return xt[j];let _e;switch(j){case"G":case"GG":case"GGG":_e=xn(je.Eras,se.Abbreviated);break;case"GGGG":_e=xn(je.Eras,se.Wide);break;case"GGGGG":_e=xn(je.Eras,se.Narrow);break;case"y":_e=nn(Tt.FullYear,1,0,!1,!0);break;case"yy":_e=nn(Tt.FullYear,2,0,!0,!0);break;case"yyy":_e=nn(Tt.FullYear,3,0,!1,!0);break;case"yyyy":_e=nn(Tt.FullYear,4,0,!1,!0);break;case"Y":_e=xe(1);break;case"YY":_e=xe(2,!0);break;case"YYY":_e=xe(3);break;case"YYYY":_e=xe(4);break;case"M":case"L":_e=nn(Tt.Month,1,1);break;case"MM":case"LL":_e=nn(Tt.Month,2,1);break;case"MMM":_e=xn(je.Months,se.Abbreviated);break;case"MMMM":_e=xn(je.Months,se.Wide);break;case"MMMMM":_e=xn(je.Months,se.Narrow);break;case"LLL":_e=xn(je.Months,se.Abbreviated,Me.Standalone);break;case"LLLL":_e=xn(je.Months,se.Wide,Me.Standalone);break;case"LLLLL":_e=xn(je.Months,se.Narrow,Me.Standalone);break;case"w":_e=St(1);break;case"ww":_e=St(2);break;case"W":_e=St(1,!0);break;case"d":_e=nn(Tt.Date,1);break;case"dd":_e=nn(Tt.Date,2);break;case"c":case"cc":_e=nn(Tt.Day,1);break;case"ccc":_e=xn(je.Days,se.Abbreviated,Me.Standalone);break;case"cccc":_e=xn(je.Days,se.Wide,Me.Standalone);break;case"ccccc":_e=xn(je.Days,se.Narrow,Me.Standalone);break;case"cccccc":_e=xn(je.Days,se.Short,Me.Standalone);break;case"E":case"EE":case"EEE":_e=xn(je.Days,se.Abbreviated);break;case"EEEE":_e=xn(je.Days,se.Wide);break;case"EEEEE":_e=xn(je.Days,se.Narrow);break;case"EEEEEE":_e=xn(je.Days,se.Short);break;case"a":case"aa":case"aaa":_e=xn(je.DayPeriods,se.Abbreviated);break;case"aaaa":_e=xn(je.DayPeriods,se.Wide);break;case"aaaaa":_e=xn(je.DayPeriods,se.Narrow);break;case"b":case"bb":case"bbb":_e=xn(je.DayPeriods,se.Abbreviated,Me.Standalone,!0);break;case"bbbb":_e=xn(je.DayPeriods,se.Wide,Me.Standalone,!0);break;case"bbbbb":_e=xn(je.DayPeriods,se.Narrow,Me.Standalone,!0);break;case"B":case"BB":case"BBB":_e=xn(je.DayPeriods,se.Abbreviated,Me.Format,!0);break;case"BBBB":_e=xn(je.DayPeriods,se.Wide,Me.Format,!0);break;case"BBBBB":_e=xn(je.DayPeriods,se.Narrow,Me.Format,!0);break;case"h":_e=nn(Tt.Hours,1,-12);break;case"hh":_e=nn(Tt.Hours,2,-12);break;case"H":_e=nn(Tt.Hours,1);break;case"HH":_e=nn(Tt.Hours,2);break;case"m":_e=nn(Tt.Minutes,1);break;case"mm":_e=nn(Tt.Minutes,2);break;case"s":_e=nn(Tt.Seconds,1);break;case"ss":_e=nn(Tt.Seconds,2);break;case"S":_e=nn(Tt.FractionalSeconds,1);break;case"SS":_e=nn(Tt.FractionalSeconds,2);break;case"SSS":_e=nn(Tt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":_e=_n(vt.Short);break;case"ZZZZZ":_e=_n(vt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":_e=_n(vt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":_e=_n(vt.Long);break;default:return null}return xt[j]=_e,_e}(oi);ni+=$n?$n(st,W,li):"''"===oi?"'":oi.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ni}function jt(j,_e,W){const ze=new Date(0);return ze.setFullYear(j,_e,W),ze.setHours(0,0,0),ze}function Bt(j,_e){const W=function We(j){return(0,r.cg1)(j)[r.wAp.LocaleId]}(j);if(Fe[W]=Fe[W]||{},Fe[W][_e])return Fe[W][_e];let ze="";switch(_e){case"shortDate":ze=It(j,we.Short);break;case"mediumDate":ze=It(j,we.Medium);break;case"longDate":ze=It(j,we.Long);break;case"fullDate":ze=It(j,we.Full);break;case"shortTime":ze=Xe(j,we.Short);break;case"mediumTime":ze=Xe(j,we.Medium);break;case"longTime":ze=Xe(j,we.Long);break;case"fullTime":ze=Xe(j,we.Full);break;case"short":const st=Bt(j,"shortTime"),bt=Bt(j,"shortDate");ze=vn(lt(j,we.Short),[st,bt]);break;case"medium":const Zt=Bt(j,"mediumTime"),Cn=Bt(j,"mediumDate");ze=vn(lt(j,we.Medium),[Zt,Cn]);break;case"long":const li=Bt(j,"longTime"),ni=Bt(j,"longDate");ze=vn(lt(j,we.Long),[li,ni]);break;case"full":const oi=Bt(j,"fullTime"),$n=Bt(j,"fullDate");ze=vn(lt(j,we.Full),[oi,$n])}return ze&&(Fe[W][_e]=ze),ze}function vn(j,_e){return _e&&(j=j.replace(/\{([^}]+)}/g,function(W,ze){return null!=_e&&ze in _e?_e[ze]:W})),j}function cn(j,_e,W="-",ze,st){let bt="";(j<0||st&&j<=0)&&(st?j=1-j:(j=-j,bt=W));let Zt=String(j);for(;Zt.length<_e;)Zt="0"+Zt;return ze&&(Zt=Zt.substr(Zt.length-_e)),bt+Zt}function nn(j,_e,W=0,ze=!1,st=!1){return function(bt,Zt){let Cn=function Gn(j,_e){switch(j){case Tt.FullYear:return _e.getFullYear();case Tt.Month:return _e.getMonth();case Tt.Date:return _e.getDate();case Tt.Hours:return _e.getHours();case Tt.Minutes:return _e.getMinutes();case Tt.Seconds:return _e.getSeconds();case Tt.FractionalSeconds:return _e.getMilliseconds();case Tt.Day:return _e.getDay();default:throw new Error(`Unknown DateType value "${j}".`)}}(j,bt);if((W>0||Cn>-W)&&(Cn+=W),j===Tt.Hours)0===Cn&&-12===W&&(Cn=12);else if(j===Tt.FractionalSeconds)return function an(j,_e){return cn(j,3).substr(0,_e)}(Cn,_e);const li=ct(Zt,ue.MinusSign);return cn(Cn,_e,li,ze,st)}}function xn(j,_e,W=Me.Format,ze=!1){return function(st,bt){return function yn(j,_e,W,ze,st,bt){switch(W){case je.Months:return function Ae(j,_e,W){const ze=(0,r.cg1)(j),bt=yt([ze[r.wAp.MonthsFormat],ze[r.wAp.MonthsStandalone]],_e);return yt(bt,W)}(_e,st,ze)[j.getMonth()];case je.Days:return function wt(j,_e,W){const ze=(0,r.cg1)(j),bt=yt([ze[r.wAp.DaysFormat],ze[r.wAp.DaysStandalone]],_e);return yt(bt,W)}(_e,st,ze)[j.getDay()];case je.DayPeriods:const Zt=j.getHours(),Cn=j.getMinutes();if(bt){const ni=function Ne(j){const _e=(0,r.cg1)(j);return en(_e),(_e[r.wAp.ExtraData][2]||[]).map(ze=>"string"==typeof ze?Mt(ze):[Mt(ze[0]),Mt(ze[1])])}(_e),oi=function Ve(j,_e,W){const ze=(0,r.cg1)(j);en(ze);const bt=yt([ze[r.wAp.ExtraData][0],ze[r.wAp.ExtraData][1]],_e)||[];return yt(bt,W)||[]}(_e,st,ze),$n=ni.findIndex(hi=>{if(Array.isArray(hi)){const[gi,An]=hi,no=Zt>=gi.hours&&Cn>=gi.minutes,$=Zt0?Math.floor(st/60):Math.ceil(st/60);switch(j){case vt.Short:return(st>=0?"+":"")+cn(Zt,2,bt)+cn(Math.abs(st%60),2,bt);case vt.ShortGMT:return"GMT"+(st>=0?"+":"")+cn(Zt,1,bt);case vt.Long:return"GMT"+(st>=0?"+":"")+cn(Zt,2,bt)+":"+cn(Math.abs(st%60),2,bt);case vt.Extended:return 0===ze?"Z":(st>=0?"+":"")+cn(Zt,2,bt)+":"+cn(Math.abs(st%60),2,bt);default:throw new Error(`Unknown zone width "${j}"`)}}}function Ge(j){return jt(j.getFullYear(),j.getMonth(),j.getDate()+(4-j.getDay()))}function St(j,_e=!1){return function(W,ze){let st;if(_e){const bt=new Date(W.getFullYear(),W.getMonth(),1).getDay()-1,Zt=W.getDate();st=1+Math.floor((Zt+bt)/7)}else{const bt=Ge(W),Zt=function it(j){const _e=jt(j,0,1).getDay();return jt(j,0,1+(_e<=4?4:11)-_e)}(bt.getFullYear()),Cn=bt.getTime()-Zt.getTime();st=1+Math.round(Cn/6048e5)}return cn(st,j,ct(ze,ue.MinusSign))}}function xe(j,_e=!1){return function(W,ze){return cn(Ge(W).getFullYear(),j,ct(ze,ue.MinusSign),_e)}}const xt={};function de(j,_e){j=j.replace(/:/g,"");const W=Date.parse("Jan 01, 1970 00:00:00 "+j)/6e4;return isNaN(W)?_e:W}function De(j){return j instanceof Date&&!isNaN(j.valueOf())}const ft=/^(\d+)?\.((\d+)(-(\d+))?)?$/,T="0";function bn(j){const _e=parseInt(j);if(isNaN(_e))throw new Error("Invalid integer literal when parsing "+j);return _e}class mn{}let Dn=(()=>{class j extends mn{constructor(W){super(),this.locale=W}getPluralCategory(W,ze){switch(ot(ze||this.locale)(W)){case J.Zero:return"zero";case J.One:return"one";case J.Two:return"two";case J.Few:return"few";case J.Many:return"many";default:return"other"}}}return j.\u0275fac=function(W){return new(W||j)(r.LFG(r.soG))},j.\u0275prov=r.Yz7({token:j,factory:j.\u0275fac}),j})();function rn(j,_e,W){return(0,r.dwT)(j,_e,W)}function Nn(j,_e){_e=encodeURIComponent(_e);for(const W of j.split(";")){const ze=W.indexOf("="),[st,bt]=-1==ze?[W,""]:[W.slice(0,ze),W.slice(ze+1)];if(st.trim()===_e)return decodeURIComponent(bt)}return null}let Qn=(()=>{class j{constructor(W,ze,st,bt){this._iterableDiffers=W,this._keyValueDiffers=ze,this._ngEl=st,this._renderer=bt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(W){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof W?W.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(W){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof W?W.split(/\s+/):W,this._rawClass&&((0,r.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const W=this._iterableDiffer.diff(this._rawClass);W&&this._applyIterableChanges(W)}else if(this._keyValueDiffer){const W=this._keyValueDiffer.diff(this._rawClass);W&&this._applyKeyValueChanges(W)}}_applyKeyValueChanges(W){W.forEachAddedItem(ze=>this._toggleClass(ze.key,ze.currentValue)),W.forEachChangedItem(ze=>this._toggleClass(ze.key,ze.currentValue)),W.forEachRemovedItem(ze=>{ze.previousValue&&this._toggleClass(ze.key,!1)})}_applyIterableChanges(W){W.forEachAddedItem(ze=>{if("string"!=typeof ze.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,r.AaK)(ze.item)}`);this._toggleClass(ze.item,!0)}),W.forEachRemovedItem(ze=>this._toggleClass(ze.item,!1))}_applyClasses(W){W&&(Array.isArray(W)||W instanceof Set?W.forEach(ze=>this._toggleClass(ze,!0)):Object.keys(W).forEach(ze=>this._toggleClass(ze,!!W[ze])))}_removeClasses(W){W&&(Array.isArray(W)||W instanceof Set?W.forEach(ze=>this._toggleClass(ze,!1)):Object.keys(W).forEach(ze=>this._toggleClass(ze,!1)))}_toggleClass(W,ze){(W=W.trim())&&W.split(/\s+/g).forEach(st=>{ze?this._renderer.addClass(this._ngEl.nativeElement,st):this._renderer.removeClass(this._ngEl.nativeElement,st)})}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.ZZ4),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Qsj))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),j})();class Jn{constructor(_e,W,ze,st){this.$implicit=_e,this.ngForOf=W,this.index=ze,this.count=st}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let qn=(()=>{class j{constructor(W,ze,st){this._viewContainer=W,this._template=ze,this._differs=st,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(W){this._ngForOf=W,this._ngForOfDirty=!0}set ngForTrackBy(W){this._trackByFn=W}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(W){W&&(this._template=W)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const W=this._ngForOf;!this._differ&&W&&(this._differ=this._differs.find(W).create(this.ngForTrackBy))}if(this._differ){const W=this._differ.diff(this._ngForOf);W&&this._applyChanges(W)}}_applyChanges(W){const ze=this._viewContainer;W.forEachOperation((st,bt,Zt)=>{if(null==st.previousIndex)ze.createEmbeddedView(this._template,new Jn(st.item,this._ngForOf,-1,-1),null===Zt?void 0:Zt);else if(null==Zt)ze.remove(null===bt?void 0:bt);else if(null!==bt){const Cn=ze.get(bt);ze.move(Cn,Zt),Ce(Cn,st)}});for(let st=0,bt=ze.length;st{Ce(ze.get(st.currentIndex),st)})}static ngTemplateContextGuard(W,ze){return!0}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),j})();function Ce(j,_e){j.context.$implicit=_e.item}let le=(()=>{class j{constructor(W,ze){this._viewContainer=W,this._context=new tt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ze}set ngIf(W){this._context.$implicit=this._context.ngIf=W,this._updateView()}set ngIfThen(W){Ht("ngIfThen",W),this._thenTemplateRef=W,this._thenViewRef=null,this._updateView()}set ngIfElse(W){Ht("ngIfElse",W),this._elseTemplateRef=W,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(W,ze){return!0}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.s_b),r.Y36(r.Rgc))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),j})();class tt{constructor(){this.$implicit=null,this.ngIf=null}}function Ht(j,_e){if(_e&&!_e.createEmbeddedView)throw new Error(`${j} must be a TemplateRef, but received '${(0,r.AaK)(_e)}'.`)}class Xt{constructor(_e,W){this._viewContainerRef=_e,this._templateRef=W,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(_e){_e&&!this._created?this.create():!_e&&this._created&&this.destroy()}}let dn=(()=>{class j{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(W){this._ngSwitch=W,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(W){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(W)}_matchCase(W){const ze=W==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ze,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ze}_updateDefaultCases(W){if(this._defaultViews&&W!==this._defaultUsed){this._defaultUsed=W;for(let ze=0;ze{class j{constructor(W,ze,st){this.ngSwitch=st,st._addCase(),this._view=new Xt(W,ze)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(dn,9))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),j})(),jn=(()=>{class j{constructor(W,ze,st){st._addDefault(new Xt(W,ze))}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(dn,9))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngSwitchDefault",""]]}),j})(),ii=(()=>{class j{constructor(W){this._localization=W,this._caseViews={}}set ngPlural(W){this._switchValue=W,this._updateView()}addCase(W,ze){this._caseViews[W]=ze}_updateView(){this._clearViews();const W=Object.keys(this._caseViews),ze=function fn(j,_e,W,ze){let st=`=${j}`;if(_e.indexOf(st)>-1||(st=W.getPluralCategory(j,ze),_e.indexOf(st)>-1))return st;if(_e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${j}"`)}(this._switchValue,W,this._localization);this._activateView(this._caseViews[ze])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(W){W&&(this._activeView=W,this._activeView.create())}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(mn))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),j})(),si=(()=>{class j{constructor(W,ze,st,bt){this.value=W;const Zt=!isNaN(Number(W));bt.addCase(Zt?`=${W}`:W,new Xt(st,ze))}}return j.\u0275fac=function(W){return new(W||j)(r.$8M("ngPluralCase"),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(ii,1))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngPluralCase",""]]}),j})(),pi=(()=>{class j{constructor(W,ze,st){this._ngEl=W,this._differs=ze,this._renderer=st,this._ngStyle=null,this._differ=null}set ngStyle(W){this._ngStyle=W,!this._differ&&W&&(this._differ=this._differs.find(W).create())}ngDoCheck(){if(this._differ){const W=this._differ.diff(this._ngStyle);W&&this._applyChanges(W)}}_setStyle(W,ze){const[st,bt]=W.split(".");null!=(ze=null!=ze&&bt?`${ze}${bt}`:ze)?this._renderer.setStyle(this._ngEl.nativeElement,st,ze):this._renderer.removeStyle(this._ngEl.nativeElement,st)}_applyChanges(W){W.forEachRemovedItem(ze=>this._setStyle(ze.key,null)),W.forEachAddedItem(ze=>this._setStyle(ze.key,ze.currentValue)),W.forEachChangedItem(ze=>this._setStyle(ze.key,ze.currentValue))}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.SBq),r.Y36(r.aQg),r.Y36(r.Qsj))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),j})(),Wi=(()=>{class j{constructor(W){this._viewContainerRef=W,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(W){if(W.ngTemplateOutlet){const ze=this._viewContainerRef;this._viewRef&&ze.remove(ze.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ze.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&W.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.s_b))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.TTD]}),j})();function Si(j,_e){return new r.vHH(2100,"")}class Ii{createSubscription(_e,W){return _e.subscribe({next:W,error:ze=>{throw ze}})}dispose(_e){_e.unsubscribe()}onDestroy(_e){_e.unsubscribe()}}class qi{createSubscription(_e,W){return _e.then(W,ze=>{throw ze})}dispose(_e){}onDestroy(_e){}}const Ro=new qi,Ho=new Ii;let wo=(()=>{class j{constructor(W){this._ref=W,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(W){return this._obj?W!==this._obj?(this._dispose(),this.transform(W)):this._latestValue:(W&&this._subscribe(W),this._latestValue)}_subscribe(W){this._obj=W,this._strategy=this._selectStrategy(W),this._subscription=this._strategy.createSubscription(W,ze=>this._updateLatestValue(W,ze))}_selectStrategy(W){if((0,r.QGY)(W))return Ro;if((0,r.F4k)(W))return Ho;throw Si()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(W,ze){W===this._obj&&(this._latestValue=ze,this._ref.markForCheck())}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.sBO,16))},j.\u0275pipe=r.Yjl({name:"async",type:j,pure:!1}),j})(),Bo=(()=>{class j{transform(W){if(null==W)return null;if("string"!=typeof W)throw Si();return W.toLowerCase()}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275pipe=r.Yjl({name:"lowercase",type:j,pure:!0}),j})();const Co=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Xi=(()=>{class j{transform(W){if(null==W)return null;if("string"!=typeof W)throw Si();return W.replace(Co,ze=>ze[0].toUpperCase()+ze.substr(1).toLowerCase())}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275pipe=r.Yjl({name:"titlecase",type:j,pure:!0}),j})(),bo=(()=>{class j{transform(W){if(null==W)return null;if("string"!=typeof W)throw Si();return W.toUpperCase()}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275pipe=r.Yjl({name:"uppercase",type:j,pure:!0}),j})();const Do=new r.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let ro=(()=>{class j{constructor(W,ze){this.locale=W,this.defaultTimezone=ze}transform(W,ze="mediumDate",st,bt){var Zt;if(null==W||""===W||W!=W)return null;try{return zt(W,ze,bt||this.locale,null!==(Zt=null!=st?st:this.defaultTimezone)&&void 0!==Zt?Zt:void 0)}catch(Cn){throw Si()}}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.soG,16),r.Y36(Do,24))},j.\u0275pipe=r.Yjl({name:"date",type:j,pure:!0}),j})(),so=(()=>{class j{transform(W){return JSON.stringify(W,null,2)}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275pipe=r.Yjl({name:"json",type:j,pure:!1}),j})(),So=(()=>{class j{constructor(W){this.differs=W,this.keyValues=[],this.compareFn=Vi}transform(W,ze=Vi){if(!W||!(W instanceof Map)&&"object"!=typeof W)return null;this.differ||(this.differ=this.differs.find(W).create());const st=this.differ.diff(W),bt=ze!==this.compareFn;return st&&(this.keyValues=[],st.forEachItem(Zt=>{this.keyValues.push(function Mo(j,_e){return{key:j,value:_e}}(Zt.key,Zt.currentValue))})),(st||bt)&&(this.keyValues.sort(ze),this.compareFn=ze),this.keyValues}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.aQg,16))},j.\u0275pipe=r.Yjl({name:"keyvalue",type:j,pure:!1}),j})();function Vi(j,_e){const W=j.key,ze=_e.key;if(W===ze)return 0;if(void 0===W)return 1;if(void 0===ze)return-1;if(null===W)return 1;if(null===ze)return-1;if("string"==typeof W&&"string"==typeof ze)return W{class j{constructor(W){this._locale=W}transform(W,ze,st){if(!function Yi(j){return!(null==j||""===j||j!=j)}(W))return null;st=st||this._locale;try{return function _t(j,_e,W){return function et(j,_e,W,ze,st,bt,Zt=!1){let Cn="",li=!1;if(isFinite(j)){let ni=function on(j){let ze,st,bt,Zt,Cn,_e=Math.abs(j)+"",W=0;for((st=_e.indexOf("."))>-1&&(_e=_e.replace(".","")),(bt=_e.search(/e/i))>0?(st<0&&(st=bt),st+=+_e.slice(bt+1),_e=_e.substring(0,bt)):st<0&&(st=_e.length),bt=0;_e.charAt(bt)===T;bt++);if(bt===(Cn=_e.length))ze=[0],st=1;else{for(Cn--;_e.charAt(Cn)===T;)Cn--;for(st-=bt,ze=[],Zt=0;bt<=Cn;bt++,Zt++)ze[Zt]=Number(_e.charAt(bt))}return st>22&&(ze=ze.splice(0,21),W=st-1,st=1),{digits:ze,exponent:W,integerLen:st}}(j);Zt&&(ni=function qt(j){if(0===j.digits[0])return j;const _e=j.digits.length-j.integerLen;return j.exponent?j.exponent+=2:(0===_e?j.digits.push(0,0):1===_e&&j.digits.push(0),j.integerLen+=2),j}(ni));let oi=_e.minInt,$n=_e.minFrac,hi=_e.maxFrac;if(bt){const F=bt.match(ft);if(null===F)throw new Error(`${bt} is not a valid digit info`);const Te=F[1],Ut=F[3],On=F[5];null!=Te&&(oi=bn(Te)),null!=Ut&&($n=bn(Ut)),null!=On?hi=bn(On):null!=Ut&&$n>hi&&(hi=$n)}!function Vt(j,_e,W){if(_e>W)throw new Error(`The minimum number of digits after fraction (${_e}) is higher than the maximum (${W}).`);let ze=j.digits,st=ze.length-j.integerLen;const bt=Math.min(Math.max(_e,st),W);let Zt=bt+j.integerLen,Cn=ze[Zt];if(Zt>0){ze.splice(Math.max(j.integerLen,Zt));for(let $n=Zt;$n=5)if(Zt-1<0){for(let $n=0;$n>Zt;$n--)ze.unshift(0),j.integerLen++;ze.unshift(1),j.integerLen++}else ze[Zt-1]++;for(;st=ni?An.pop():li=!1),hi>=10?1:0},0);oi&&(ze.unshift(oi),j.integerLen++)}(ni,$n,hi);let gi=ni.digits,An=ni.integerLen;const no=ni.exponent;let $=[];for(li=gi.every(F=>!F);An0?$=gi.splice(An,gi.length):($=gi,gi=[0]);const L=[];for(gi.length>=_e.lgSize&&L.unshift(gi.splice(-_e.lgSize,gi.length).join(""));gi.length>_e.gSize;)L.unshift(gi.splice(-_e.gSize,gi.length).join(""));gi.length&&L.unshift(gi.join("")),Cn=L.join(ct(W,ze)),$.length&&(Cn+=ct(W,st)+$.join("")),no&&(Cn+=ct(W,ue.Exponential)+"+"+no)}else Cn=ct(W,ue.Infinity);return Cn=j<0&&!li?_e.negPre+Cn+_e.negSuf:_e.posPre+Cn+_e.posSuf,Cn}(j,function Rt(j,_e="-"){const W={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ze=j.split(";"),st=ze[0],bt=ze[1],Zt=-1!==st.indexOf(".")?st.split("."):[st.substring(0,st.lastIndexOf(T)+1),st.substring(st.lastIndexOf(T)+1)],Cn=Zt[0],li=Zt[1]||"";W.posPre=Cn.substr(0,Cn.indexOf("#"));for(let oi=0;oi{class j{}return j.\u0275fac=function(W){return new(W||j)},j.\u0275mod=r.oAB({type:j}),j.\u0275inj=r.cJS({providers:[{provide:mn,useClass:Dn}]}),j})();const jo="browser";function Ti(j){return j===jo}let zi=(()=>{class j{}return j.\u0275prov=(0,r.Yz7)({token:j,providedIn:"root",factory:()=>new er((0,r.LFG)(b),window)}),j})();class er{constructor(_e,W){this.document=_e,this.window=W,this.offset=()=>[0,0]}setOffset(_e){this.offset=Array.isArray(_e)?()=>_e:_e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(_e){this.supportsScrolling()&&this.window.scrollTo(_e[0],_e[1])}scrollToAnchor(_e){if(!this.supportsScrolling())return;const W=function ji(j,_e){const W=j.getElementById(_e)||j.getElementsByName(_e)[0];if(W)return W;if("function"==typeof j.createTreeWalker&&j.body&&(j.body.createShadowRoot||j.body.attachShadow)){const ze=j.createTreeWalker(j.body,NodeFilter.SHOW_ELEMENT);let st=ze.currentNode;for(;st;){const bt=st.shadowRoot;if(bt){const Zt=bt.getElementById(_e)||bt.querySelector(`[name="${_e}"]`);if(Zt)return Zt}st=ze.nextNode()}}return null}(this.document,_e);W&&(this.scrollToElement(W),this.attemptFocus(W))}setHistoryScrollRestoration(_e){if(this.supportScrollRestoration()){const W=this.window.history;W&&W.scrollRestoration&&(W.scrollRestoration=_e)}}scrollToElement(_e){const W=_e.getBoundingClientRect(),ze=W.left+this.window.pageXOffset,st=W.top+this.window.pageYOffset,bt=this.offset();this.window.scrollTo(ze-bt[0],st-bt[1])}attemptFocus(_e){return _e.focus(),this.document.activeElement===_e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const _e=vi(this.window.history)||vi(Object.getPrototypeOf(this.window.history));return!(!_e||!_e.writable&&!_e.set)}catch(_e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(_e){return!1}}}function vi(j){return Object.getOwnPropertyDescriptor(j,"scrollRestoration")}class Zn{}},520:(Ft,Oe,c)=>{c.d(Oe,{jN:()=>C,eN:()=>ue,Ed:()=>Mt,JF:()=>yt,PD:()=>ye,WM:()=>E,LE:()=>ie,aW:()=>me,Zn:()=>Me});var r=c(9808),o=c(5e3),l=c(1086),K=c(2916),m=c(1406),A=c(2198),b=c(4850);class D{}class C{}class E{constructor(G){this.normalizedNames=new Map,this.lazyUpdate=null,G?this.lazyInit="string"==typeof G?()=>{this.headers=new Map,G.split("\n").forEach(Q=>{const Fe=Q.indexOf(":");if(Fe>0){const Je=Q.slice(0,Fe),vt=Je.toLowerCase(),Tt=Q.slice(Fe+1).trim();this.maybeSetNormalizedName(Je,vt),this.headers.has(vt)?this.headers.get(vt).push(Tt):this.headers.set(vt,[Tt])}})}:()=>{this.headers=new Map,Object.keys(G).forEach(Q=>{let Fe=G[Q];const Je=Q.toLowerCase();"string"==typeof Fe&&(Fe=[Fe]),Fe.length>0&&(this.headers.set(Je,Fe),this.maybeSetNormalizedName(Q,Je))})}:this.headers=new Map}has(G){return this.init(),this.headers.has(G.toLowerCase())}get(G){this.init();const Q=this.headers.get(G.toLowerCase());return Q&&Q.length>0?Q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(G){return this.init(),this.headers.get(G.toLowerCase())||null}append(G,Q){return this.clone({name:G,value:Q,op:"a"})}set(G,Q){return this.clone({name:G,value:Q,op:"s"})}delete(G,Q){return this.clone({name:G,value:Q,op:"d"})}maybeSetNormalizedName(G,Q){this.normalizedNames.has(Q)||this.normalizedNames.set(Q,G)}init(){this.lazyInit&&(this.lazyInit instanceof E?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(G=>this.applyUpdate(G)),this.lazyUpdate=null))}copyFrom(G){G.init(),Array.from(G.headers.keys()).forEach(Q=>{this.headers.set(Q,G.headers.get(Q)),this.normalizedNames.set(Q,G.normalizedNames.get(Q))})}clone(G){const Q=new E;return Q.lazyInit=this.lazyInit&&this.lazyInit instanceof E?this.lazyInit:this,Q.lazyUpdate=(this.lazyUpdate||[]).concat([G]),Q}applyUpdate(G){const Q=G.name.toLowerCase();switch(G.op){case"a":case"s":let Fe=G.value;if("string"==typeof Fe&&(Fe=[Fe]),0===Fe.length)return;this.maybeSetNormalizedName(G.name,Q);const Je=("a"===G.op?this.headers.get(Q):void 0)||[];Je.push(...Fe),this.headers.set(Q,Je);break;case"d":const vt=G.value;if(vt){let Tt=this.headers.get(Q);if(!Tt)return;Tt=Tt.filter(je=>-1===vt.indexOf(je)),0===Tt.length?(this.headers.delete(Q),this.normalizedNames.delete(Q)):this.headers.set(Q,Tt)}else this.headers.delete(Q),this.normalizedNames.delete(Q)}}forEach(G){this.init(),Array.from(this.normalizedNames.keys()).forEach(Q=>G(this.normalizedNames.get(Q),this.headers.get(Q)))}}class S{encodeKey(G){return k(G)}encodeValue(G){return k(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}const z=/%(\d[a-f0-9])/gi,M={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function k(Y){return encodeURIComponent(Y).replace(z,(G,Q)=>{var Fe;return null!==(Fe=M[Q])&&void 0!==Fe?Fe:G})}function N(Y){return`${Y}`}class ie{constructor(G={}){if(this.updates=null,this.cloneFrom=null,this.encoder=G.encoder||new S,G.fromString){if(G.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function w(Y,G){const Q=new Map;return Y.length>0&&Y.replace(/^\?/,"").split("&").forEach(Je=>{const vt=Je.indexOf("="),[Tt,je]=-1==vt?[G.decodeKey(Je),""]:[G.decodeKey(Je.slice(0,vt)),G.decodeValue(Je.slice(vt+1))],zt=Q.get(Tt)||[];zt.push(je),Q.set(Tt,zt)}),Q}(G.fromString,this.encoder)}else G.fromObject?(this.map=new Map,Object.keys(G.fromObject).forEach(Q=>{const Fe=G.fromObject[Q];this.map.set(Q,Array.isArray(Fe)?Fe:[Fe])})):this.map=null}has(G){return this.init(),this.map.has(G)}get(G){this.init();const Q=this.map.get(G);return Q?Q[0]:null}getAll(G){return this.init(),this.map.get(G)||null}keys(){return this.init(),Array.from(this.map.keys())}append(G,Q){return this.clone({param:G,value:Q,op:"a"})}appendAll(G){const Q=[];return Object.keys(G).forEach(Fe=>{const Je=G[Fe];Array.isArray(Je)?Je.forEach(vt=>{Q.push({param:Fe,value:vt,op:"a"})}):Q.push({param:Fe,value:Je,op:"a"})}),this.clone(Q)}set(G,Q){return this.clone({param:G,value:Q,op:"s"})}delete(G,Q){return this.clone({param:G,value:Q,op:"d"})}toString(){return this.init(),this.keys().map(G=>{const Q=this.encoder.encodeKey(G);return this.map.get(G).map(Fe=>Q+"="+this.encoder.encodeValue(Fe)).join("&")}).filter(G=>""!==G).join("&")}clone(G){const Q=new ie({encoder:this.encoder});return Q.cloneFrom=this.cloneFrom||this,Q.updates=(this.updates||[]).concat(G),Q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(G=>this.map.set(G,this.cloneFrom.map.get(G))),this.updates.forEach(G=>{switch(G.op){case"a":case"s":const Q=("a"===G.op?this.map.get(G.param):void 0)||[];Q.push(N(G.value)),this.map.set(G.param,Q);break;case"d":if(void 0===G.value){this.map.delete(G.param);break}{let Fe=this.map.get(G.param)||[];const Je=Fe.indexOf(N(G.value));-1!==Je&&Fe.splice(Je,1),Fe.length>0?this.map.set(G.param,Fe):this.map.delete(G.param)}}}),this.cloneFrom=this.updates=null)}}class ve{constructor(){this.map=new Map}set(G,Q){return this.map.set(G,Q),this}get(G){return this.map.has(G)||this.map.set(G,G.defaultValue()),this.map.get(G)}delete(G){return this.map.delete(G),this}has(G){return this.map.has(G)}keys(){return this.map.keys()}}function Re(Y){return"undefined"!=typeof ArrayBuffer&&Y instanceof ArrayBuffer}function ae(Y){return"undefined"!=typeof Blob&&Y instanceof Blob}function Ue(Y){return"undefined"!=typeof FormData&&Y instanceof FormData}class me{constructor(G,Q,Fe,Je){let vt;if(this.url=Q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=G.toUpperCase(),function Le(Y){switch(Y){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Je?(this.body=void 0!==Fe?Fe:null,vt=Je):vt=Fe,vt&&(this.reportProgress=!!vt.reportProgress,this.withCredentials=!!vt.withCredentials,vt.responseType&&(this.responseType=vt.responseType),vt.headers&&(this.headers=vt.headers),vt.context&&(this.context=vt.context),vt.params&&(this.params=vt.params)),this.headers||(this.headers=new E),this.context||(this.context=new ve),this.params){const Tt=this.params.toString();if(0===Tt.length)this.urlWithParams=Q;else{const je=Q.indexOf("?");this.urlWithParams=Q+(-1===je?"?":jecn.set(an,G.setHeaders[an]),jt)),G.setParams&&(Bt=Object.keys(G.setParams).reduce((cn,an)=>cn.set(an,G.setParams[an]),Bt)),new me(Fe,Je,Tt,{params:Bt,headers:jt,context:vn,reportProgress:zt,responseType:vt,withCredentials:je})}}var fe=(()=>((fe=fe||{})[fe.Sent=0]="Sent",fe[fe.UploadProgress=1]="UploadProgress",fe[fe.ResponseHeader=2]="ResponseHeader",fe[fe.DownloadProgress=3]="DownloadProgress",fe[fe.Response=4]="Response",fe[fe.User=5]="User",fe))();class U{constructor(G,Q=200,Fe="OK"){this.headers=G.headers||new E,this.status=void 0!==G.status?G.status:Q,this.statusText=G.statusText||Fe,this.url=G.url||null,this.ok=this.status>=200&&this.status<300}}class J extends U{constructor(G={}){super(G),this.type=fe.ResponseHeader}clone(G={}){return new J({headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class Me extends U{constructor(G={}){super(G),this.type=fe.Response,this.body=void 0!==G.body?G.body:null}clone(G={}){return new Me({body:void 0!==G.body?G.body:this.body,headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class se extends U{constructor(G){super(G,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${G.url||"(unknown url)"}`:`Http failure response for ${G.url||"(unknown url)"}: ${G.status} ${G.statusText}`,this.error=G.error||null}}function we(Y,G){return{body:G,headers:Y.headers,context:Y.context,observe:Y.observe,params:Y.params,reportProgress:Y.reportProgress,responseType:Y.responseType,withCredentials:Y.withCredentials}}let ue=(()=>{class Y{constructor(Q){this.handler=Q}request(Q,Fe,Je={}){let vt;if(Q instanceof me)vt=Q;else{let zt,jt;zt=Je.headers instanceof E?Je.headers:new E(Je.headers),Je.params&&(jt=Je.params instanceof ie?Je.params:new ie({fromObject:Je.params})),vt=new me(Q,Fe,void 0!==Je.body?Je.body:null,{headers:zt,context:Je.context,params:jt,reportProgress:Je.reportProgress,responseType:Je.responseType||"json",withCredentials:Je.withCredentials})}const Tt=(0,l.of)(vt).pipe((0,m.b)(zt=>this.handler.handle(zt)));if(Q instanceof me||"events"===Je.observe)return Tt;const je=Tt.pipe((0,A.h)(zt=>zt instanceof Me));switch(Je.observe||"body"){case"body":switch(vt.responseType){case"arraybuffer":return je.pipe((0,b.U)(zt=>{if(null!==zt.body&&!(zt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return zt.body}));case"blob":return je.pipe((0,b.U)(zt=>{if(null!==zt.body&&!(zt.body instanceof Blob))throw new Error("Response is not a Blob.");return zt.body}));case"text":return je.pipe((0,b.U)(zt=>{if(null!==zt.body&&"string"!=typeof zt.body)throw new Error("Response is not a string.");return zt.body}));default:return je.pipe((0,b.U)(zt=>zt.body))}case"response":return je;default:throw new Error(`Unreachable: unhandled observe type ${Je.observe}}`)}}delete(Q,Fe={}){return this.request("DELETE",Q,Fe)}get(Q,Fe={}){return this.request("GET",Q,Fe)}head(Q,Fe={}){return this.request("HEAD",Q,Fe)}jsonp(Q,Fe){return this.request("JSONP",Q,{params:(new ie).append(Fe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Q,Fe={}){return this.request("OPTIONS",Q,Fe)}patch(Q,Fe,Je={}){return this.request("PATCH",Q,we(Je,Fe))}post(Q,Fe,Je={}){return this.request("POST",Q,we(Je,Fe))}put(Q,Fe,Je={}){return this.request("PUT",Q,we(Je,Fe))}}return Y.\u0275fac=function(Q){return new(Q||Y)(o.LFG(D))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class Ye{constructor(G,Q){this.next=G,this.interceptor=Q}handle(G){return this.interceptor.intercept(G,this.next)}}const We=new o.OlP("HTTP_INTERCEPTORS");let rt=(()=>{class Y{intercept(Q,Fe){return Fe.handle(Q)}}return Y.\u0275fac=function(Q){return new(Q||Y)},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),wt=0;class Ct{}let It=(()=>{class Y{constructor(Q,Fe){this.callbackMap=Q,this.document=Fe,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+wt++}handle(Q){if("JSONP"!==Q.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==Q.responseType)throw new Error("JSONP requests must use Json response type.");return new K.y(Fe=>{const Je=this.nextCallback(),vt=Q.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${Je}$1`),Tt=this.document.createElement("script");Tt.src=vt;let je=null,zt=!1,jt=!1;this.callbackMap[Je]=an=>{delete this.callbackMap[Je],!jt&&(je=an,zt=!0)};const Bt=()=>{Tt.parentNode&&Tt.parentNode.removeChild(Tt),delete this.callbackMap[Je]},vn=an=>{jt||this.resolvedPromise.then(()=>{Bt(),zt?(Fe.next(new Me({body:je,status:200,statusText:"OK",url:vt})),Fe.complete()):Fe.error(new se({url:vt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},cn=an=>{jt||(Bt(),Fe.error(new se({error:an,status:0,statusText:"JSONP Error",url:vt})))};return Tt.addEventListener("load",vn),Tt.addEventListener("error",cn),this.document.body.appendChild(Tt),Fe.next({type:fe.Sent}),()=>{jt=!0,Tt.removeEventListener("load",vn),Tt.removeEventListener("error",cn),Bt()}})}}return Y.\u0275fac=function(Q){return new(Q||Y)(o.LFG(Ct),o.LFG(r.K0))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),Xe=(()=>{class Y{constructor(Q){this.jsonp=Q}intercept(Q,Fe){return"JSONP"===Q.method?this.jsonp.handle(Q):Fe.handle(Q)}}return Y.\u0275fac=function(Q){return new(Q||Y)(o.LFG(It))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac}),Y})();const lt=/^\)\]\}',?\n/;let Lt=(()=>{class Y{constructor(Q){this.xhrFactory=Q}handle(Q){if("JSONP"===Q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new K.y(Fe=>{const Je=this.xhrFactory.build();if(Je.open(Q.method,Q.urlWithParams),Q.withCredentials&&(Je.withCredentials=!0),Q.headers.forEach((an,nn)=>Je.setRequestHeader(an,nn.join(","))),Q.headers.has("Accept")||Je.setRequestHeader("Accept","application/json, text/plain, */*"),!Q.headers.has("Content-Type")){const an=Q.detectContentTypeHeader();null!==an&&Je.setRequestHeader("Content-Type",an)}if(Q.responseType){const an=Q.responseType.toLowerCase();Je.responseType="json"!==an?an:"text"}const vt=Q.serializeBody();let Tt=null;const je=()=>{if(null!==Tt)return Tt;const an=1223===Je.status?204:Je.status,nn=Je.statusText||"OK",Gn=new E(Je.getAllResponseHeaders()),xn=function ct(Y){return"responseURL"in Y&&Y.responseURL?Y.responseURL:/^X-Request-URL:/m.test(Y.getAllResponseHeaders())?Y.getResponseHeader("X-Request-URL"):null}(Je)||Q.url;return Tt=new J({headers:Gn,status:an,statusText:nn,url:xn}),Tt},zt=()=>{let{headers:an,status:nn,statusText:Gn,url:xn}=je(),yn=null;204!==nn&&(yn=void 0===Je.response?Je.responseText:Je.response),0===nn&&(nn=yn?200:0);let _n=nn>=200&&nn<300;if("json"===Q.responseType&&"string"==typeof yn){const un=yn;yn=yn.replace(lt,"");try{yn=""!==yn?JSON.parse(yn):null}catch(Dt){yn=un,_n&&(_n=!1,yn={error:Dt,text:yn})}}_n?(Fe.next(new Me({body:yn,headers:an,status:nn,statusText:Gn,url:xn||void 0})),Fe.complete()):Fe.error(new se({error:yn,headers:an,status:nn,statusText:Gn,url:xn||void 0}))},jt=an=>{const{url:nn}=je(),Gn=new se({error:an,status:Je.status||0,statusText:Je.statusText||"Unknown Error",url:nn||void 0});Fe.error(Gn)};let Bt=!1;const vn=an=>{Bt||(Fe.next(je()),Bt=!0);let nn={type:fe.DownloadProgress,loaded:an.loaded};an.lengthComputable&&(nn.total=an.total),"text"===Q.responseType&&!!Je.responseText&&(nn.partialText=Je.responseText),Fe.next(nn)},cn=an=>{let nn={type:fe.UploadProgress,loaded:an.loaded};an.lengthComputable&&(nn.total=an.total),Fe.next(nn)};return Je.addEventListener("load",zt),Je.addEventListener("error",jt),Je.addEventListener("timeout",jt),Je.addEventListener("abort",jt),Q.reportProgress&&(Je.addEventListener("progress",vn),null!==vt&&Je.upload&&Je.upload.addEventListener("progress",cn)),Je.send(vt),Fe.next({type:fe.Sent}),()=>{Je.removeEventListener("error",jt),Je.removeEventListener("abort",jt),Je.removeEventListener("load",zt),Je.removeEventListener("timeout",jt),Q.reportProgress&&(Je.removeEventListener("progress",vn),null!==vt&&Je.upload&&Je.upload.removeEventListener("progress",cn)),Je.readyState!==Je.DONE&&Je.abort()}})}}return Y.\u0275fac=function(Q){return new(Q||Y)(o.LFG(r.JF))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac}),Y})();const Ie=new o.OlP("XSRF_COOKIE_NAME"),Pt=new o.OlP("XSRF_HEADER_NAME");class pt{}let Et=(()=>{class Y{constructor(Q,Fe,Je){this.doc=Q,this.platform=Fe,this.cookieName=Je,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Q=this.doc.cookie||"";return Q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,r.Mx)(Q,this.cookieName),this.lastCookieString=Q),this.lastToken}}return Y.\u0275fac=function(Q){return new(Q||Y)(o.LFG(r.K0),o.LFG(o.Lbi),o.LFG(Ie))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),ot=(()=>{class Y{constructor(Q,Fe){this.tokenService=Q,this.headerName=Fe}intercept(Q,Fe){const Je=Q.url.toLowerCase();if("GET"===Q.method||"HEAD"===Q.method||Je.startsWith("http://")||Je.startsWith("https://"))return Fe.handle(Q);const vt=this.tokenService.getToken();return null!==vt&&!Q.headers.has(this.headerName)&&(Q=Q.clone({headers:Q.headers.set(this.headerName,vt)})),Fe.handle(Q)}}return Y.\u0275fac=function(Q){return new(Q||Y)(o.LFG(pt),o.LFG(Pt))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),en=(()=>{class Y{constructor(Q,Fe){this.backend=Q,this.injector=Fe,this.chain=null}handle(Q){if(null===this.chain){const Fe=this.injector.get(We,[]);this.chain=Fe.reduceRight((Je,vt)=>new Ye(Je,vt),this.backend)}return this.chain.handle(Q)}}return Y.\u0275fac=function(Q){return new(Q||Y)(o.LFG(C),o.LFG(o.zs3))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac}),Y})();function Ve(){return"object"==typeof window?window:{}}let ye=(()=>{class Y{static disable(){return{ngModule:Y,providers:[{provide:ot,useClass:rt}]}}static withOptions(Q={}){return{ngModule:Y,providers:[Q.cookieName?{provide:Ie,useValue:Q.cookieName}:[],Q.headerName?{provide:Pt,useValue:Q.headerName}:[]]}}}return Y.\u0275fac=function(Q){return new(Q||Y)},Y.\u0275mod=o.oAB({type:Y}),Y.\u0275inj=o.cJS({providers:[ot,{provide:We,useExisting:ot,multi:!0},{provide:pt,useClass:Et},{provide:Ie,useValue:"XSRF-TOKEN"},{provide:Pt,useValue:"X-XSRF-TOKEN"}]}),Y})(),yt=(()=>{class Y{}return Y.\u0275fac=function(Q){return new(Q||Y)},Y.\u0275mod=o.oAB({type:Y}),Y.\u0275inj=o.cJS({providers:[ue,{provide:D,useClass:en},Lt,{provide:C,useExisting:Lt}],imports:[[ye.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Y})(),Mt=(()=>{class Y{}return Y.\u0275fac=function(Q){return new(Q||Y)},Y.\u0275mod=o.oAB({type:Y}),Y.\u0275inj=o.cJS({providers:[It,{provide:Ct,useFactory:Ve},{provide:We,useClass:Xe,multi:!0}]}),Y})()},5e3:(Ft,Oe,c)=>{c.d(Oe,{deG:()=>Go,tb:()=>wh,AFp:()=>Mh,ip1:()=>a2,CZH:()=>Js,hGG:()=>Qp,z2F:()=>Fa,sBO:()=>wp,Sil:()=>l2,_Vd:()=>Da,EJc:()=>Th,SBq:()=>Ta,qLn:()=>ks,vpe:()=>Sr,gxx:()=>va,tBr:()=>xs,XFs:()=>Ve,OlP:()=>ci,zs3:()=>$o,ZZ4:()=>sl,aQg:()=>al,soG:()=>ol,YKP:()=>x0,h0i:()=>Ks,PXZ:()=>vp,R0b:()=>Qo,FiY:()=>Nr,Lbi:()=>Eh,g9A:()=>zh,n_E:()=>qc,Qsj:()=>r7,FYo:()=>w0,JOm:()=>pr,q3G:()=>Li,tp0:()=>$r,Rgc:()=>Pa,dDg:()=>Oh,DyG:()=>Xs,GfV:()=>D0,s_b:()=>el,ifc:()=>vt,eFA:()=>Fh,Ez6:()=>Xe,G48:()=>Ep,Gpc:()=>S,f3M:()=>B2,X6Q:()=>zp,_c5:()=>Yp,VLi:()=>pp,c2e:()=>Dh,zSh:()=>Ac,wAp:()=>Kn,vHH:()=>k,EiD:()=>Al,mCW:()=>Ps,qzn:()=>Zr,JVY:()=>a3,pB0:()=>u3,eBb:()=>El,L6k:()=>c3,LAX:()=>l3,cg1:()=>N4,kL8:()=>K8,yhl:()=>zl,dqk:()=>Bt,sIi:()=>Hs,CqO:()=>i8,QGY:()=>w4,F4k:()=>n8,dwT:()=>e5,RDi:()=>Uo,AaK:()=>D,z3N:()=>Er,qOj:()=>Nc,TTD:()=>Yi,_Bn:()=>M0,xp6:()=>v1,uIk:()=>Bc,Tol:()=>z8,Gre:()=>L8,ekj:()=>A4,Suo:()=>eh,Xpm:()=>Ge,lG2:()=>Z,Yz7:()=>It,cJS:()=>lt,oAB:()=>de,Yjl:()=>oe,Y36:()=>Ca,_UZ:()=>Xu,GkF:()=>e8,BQk:()=>E4,ynx:()=>z4,qZA:()=>M4,TgZ:()=>b4,EpF:()=>t8,n5z:()=>sn,LFG:()=>Zi,$8M:()=>gn,$Z:()=>qu,NdJ:()=>D4,CRH:()=>th,O4$:()=>ki,oxw:()=>s8,ALo:()=>j0,lcZ:()=>U0,xi3:()=>G0,Dn7:()=>W0,Hsn:()=>c8,F$t:()=>a8,Q6J:()=>_4,s9C:()=>x4,MGl:()=>jc,hYB:()=>O4,DdM:()=>F0,VKq:()=>k0,WLB:()=>I0,kEZ:()=>V0,l5B:()=>L0,iGM:()=>q0,MAs:()=>Bu,CHM:()=>u,oJD:()=>Fl,LSH:()=>$a,B6R:()=>St,kYT:()=>ut,Akn:()=>vr,Udp:()=>P4,WFA:()=>T4,d8E:()=>L4,YNc:()=>Hu,W1O:()=>rh,_uU:()=>O8,Oqu:()=>k4,hij:()=>Gc,AsE:()=>I4,lnq:()=>V4,Gf:()=>X0});var r=c(8929),o=c(2654),l=c(2916),K=c(6787),m=c(2474);function A(e){for(let t in e)if(e[t]===A)return t;throw Error("Could not find renamed property on target object.")}function b(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function D(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(D).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function C(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const E=A({__forward_ref__:A});function S(e){return e.__forward_ref__=S,e.toString=function(){return D(this())},e}function w(e){return z(e)?e():e}function z(e){return"function"==typeof e&&e.hasOwnProperty(E)&&e.__forward_ref__===S}class k extends Error{constructor(t,n){super(function N(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function ie(e){return"string"==typeof e?e:null==e?"":String(e)}function ce(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ie(e)}function ae(e,t){const n=t?` in ${t}`:"";throw new k(-201,`No provider for ${ce(e)} found${n}`)}function wt(e,t){null==e&&function Ae(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function It(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Xe=It;function lt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ct(e){return Lt(e,Et)||Lt(e,en)}function Lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function pt(e){return e&&(e.hasOwnProperty(ot)||e.hasOwnProperty(Ne))?e[ot]:null}const Et=A({\u0275prov:A}),ot=A({\u0275inj:A}),en=A({ngInjectableDef:A}),Ne=A({ngInjectorDef:A});var Ve=(()=>((Ve=Ve||{})[Ve.Default=0]="Default",Ve[Ve.Host=1]="Host",Ve[Ve.Self=2]="Self",Ve[Ve.SkipSelf=4]="SkipSelf",Ve[Ve.Optional=8]="Optional",Ve))();let ye;function Mt(e){const t=ye;return ye=e,t}function Ke(e,t,n){const i=ct(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ve.Optional?null:void 0!==t?t:void ae(D(e),"Injector")}function G(e){return{toString:e}.toString()}var Q=(()=>((Q=Q||{})[Q.OnPush=0]="OnPush",Q[Q.Default=1]="Default",Q))(),vt=(()=>{return(e=vt||(vt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",vt;var e})();const Tt="undefined"!=typeof globalThis&&globalThis,je="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bt=Tt||"undefined"!=typeof global&&global||je||zt,an={},nn=[],Gn=A({\u0275cmp:A}),xn=A({\u0275dir:A}),yn=A({\u0275pipe:A}),_n=A({\u0275mod:A}),un=A({\u0275fac:A}),Dt=A({__NG_ELEMENT_ID__:A});let it=0;function Ge(e){return G(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Q.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||nn,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||vt.Emulated,id:"c",styles:e.styles||nn,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,a=e.features,f=e.pipes;return i.id+=it++,i.inputs=V(e.inputs,n),i.outputs=V(e.outputs),a&&a.forEach(_=>_(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(xe):null,i.pipeDefs=f?()=>("function"==typeof f?f():f).map(xt):null,i})}function St(e,t,n){const i=e.\u0275cmp;i.directiveDefs=()=>t.map(xe),i.pipeDefs=()=>n.map(xt)}function xe(e){return De(e)||function ft(e){return e[xn]||null}(e)}function xt(e){return function Jt(e){return e[yn]||null}(e)}const ge={};function de(e){return G(()=>{const t={type:e.type,bootstrap:e.bootstrap||nn,declarations:e.declarations||nn,imports:e.imports||nn,exports:e.exports||nn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ge[e.id]=e.type),t})}function ut(e,t){return G(()=>{const n=te(e,!0);n.declarations=t.declarations||nn,n.imports=t.imports||nn,n.exports=t.exports||nn})}function V(e,t){if(null==e)return an;const n={};for(const i in e)if(e.hasOwnProperty(i)){let s=e[i],a=s;Array.isArray(s)&&(a=s[1],s=s[0]),n[s]=i,t&&(t[s]=a)}return n}const Z=Ge;function oe(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function De(e){return e[Gn]||null}function te(e,t){const n=e[_n]||null;if(!n&&!0===t)throw new Error(`Type ${D(e)} does not have '\u0275mod' property.`);return n}function dn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Mn(e){return Array.isArray(e)&&!0===e[1]}function jn(e){return 0!=(8&e.flags)}function Ci(e){return 2==(2&e.flags)}function ii(e){return 1==(1&e.flags)}function si(e){return null!==e.template}function pi(e){return 0!=(512&e[2])}function xi(e,t){return e.hasOwnProperty(un)?e[un]:null}class Yo{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Yi(){return po}function po(e){return e.type.prototype.ngOnChanges&&(e.setInput=eo),mo}function mo(){const e=jo(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===an)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function eo(e,t,n,i){const s=jo(e)||function to(e,t){return e[ao]=t}(e,{previous:an,current:null}),a=s.current||(s.current={}),f=s.previous,_=this.declaredInputs[n],P=f[_];a[_]=new Yo(P&&P.currentValue,t,f===an),e[i]=t}Yi.ngInherit=!0;const ao="__ngSimpleChanges__";function jo(e){return e[ao]||null}const Oi="http://www.w3.org/2000/svg";let Oo;function Uo(e){Oo=e}function zi(){return void 0!==Oo?Oo:"undefined"!=typeof document?document:void 0}function vi(e){return!!e.listen}const ji={createRenderer:(e,t)=>zi()};function Zn(e){for(;Array.isArray(e);)e=e[0];return e}function W(e,t){return Zn(t[e])}function ze(e,t){return Zn(t[e.index])}function bt(e,t){return e.data[t]}function Zt(e,t){return e[t]}function Cn(e,t){const n=t[e];return dn(n)?n:n[0]}function li(e){return 4==(4&e[2])}function ni(e){return 128==(128&e[2])}function $n(e,t){return null==t?null:e[t]}function hi(e){e[18]=0}function gi(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const An={lFrame:go(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Te(){return An.bindingsEnabled}function Kt(){return An.lFrame.lView}function re(){return An.lFrame.tView}function u(e){return An.lFrame.contextLView=e,e[8]}function d(){let e=x();for(;null!==e&&64===e.type;)e=e.parent;return e}function x(){return An.lFrame.currentTNode}function Se(e,t){const n=An.lFrame;n.currentTNode=e,n.isParent=t}function qe(){return An.lFrame.isParent}function nt(){An.lFrame.isParent=!1}function hn(){return An.isInCheckNoChangesMode}function Sn(e){An.isInCheckNoChangesMode=e}function Pn(){const e=An.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wn(){return An.lFrame.bindingIndex}function Vn(){return An.lFrame.bindingIndex++}function Hn(e){const t=An.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ai(e,t){const n=An.lFrame;n.bindingIndex=n.bindingRootIndex=e,co(t)}function co(e){An.lFrame.currentDirectiveIndex=e}function Ri(e){const t=An.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Pi(){return An.lFrame.currentQueryIndex}function Ki(e){An.lFrame.currentQueryIndex=e}function Ui(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function io(e,t,n){if(n&Ve.SkipSelf){let s=t,a=e;for(;!(s=s.parent,null!==s||n&Ve.Host||(s=Ui(a),null===s||(a=a[15],10&s.type))););if(null===s)return!1;t=s,e=a}const i=An.lFrame=Ao();return i.currentTNode=t,i.lView=e,!0}function Po(e){const t=Ao(),n=e[1];An.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ao(){const e=An.lFrame,t=null===e?null:e.child;return null===t?go(e):t}function go(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Fo(){const e=An.lFrame;return An.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const sr=Fo;function Tn(){const e=Fo();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Bn(){return An.lFrame.selectedIndex}function yi(e){An.lFrame.selectedIndex=e}function ui(){const e=An.lFrame;return bt(e.tView,e.selectedIndex)}function ki(){An.lFrame.currentNamespace=Oi}function Qi(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[P]<0&&(e[18]+=65536),(_>11>16&&(3&e[2])===t){e[2]+=2048;try{a.call(_)}finally{}}}else try{a.call(_)}finally{}}class tr{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Or(e,t,n){const i=vi(e);let s=0;for(;st){f=a-1;break}}}for(;a>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let ur=!0;function Ar(e){const t=ur;return ur=e,t}let ka=0;function v(e,t){const n=H(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,g(i.data,e),g(t,null),g(i.blueprint,null));const s=q(e,t),a=e.injectorIndex;if(Vr(s)){const f=lr(s),_=zr(s,t),P=_[1].data;for(let ne=0;ne<8;ne++)t[a+ne]=_[f+ne]|P[f+ne]}return t[a+8]=s,a}function g(e,t){e.push(0,0,0,0,0,0,0,0,t)}function H(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function q(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,s=t;for(;null!==s;){const a=s[1],f=a.type;if(i=2===f?a.declTNode:1===f?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function be(e,t,n){!function O(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Dt)&&(i=n[Dt]),null==i&&(i=n[Dt]=ka++);const s=255&i;t.data[e+(s>>5)]|=1<=0?255&t:I:t}(n);if("function"==typeof a){if(!io(t,e,i))return i&Ve.Host?ht(s,n,i):$t(t,n,i,s);try{const f=a(i);if(null!=f||i&Ve.Optional)return f;ae(n)}finally{sr()}}else if("number"==typeof a){let f=null,_=H(e,t),P=-1,ne=i&Ve.Host?t[16][6]:null;for((-1===_||i&Ve.SkipSelf)&&(P=-1===_?q(e,t):t[_+8],-1!==P&&Gt(i,!1)?(f=t[1],_=lr(P),t=zr(P,t)):_=-1);-1!==_;){const pe=t[1];if(Yt(a,_,pe.data)){const Be=ee(_,t,n,f,i,ne);if(Be!==B)return Be}P=t[_+8],-1!==P&&Gt(i,t[1].data[_+8]===ne)&&Yt(a,_,t)?(f=pe,_=lr(P),t=zr(P,t)):_=-1}}}return $t(t,n,i,s)}const B={};function I(){return new Nt(d(),Kt())}function ee(e,t,n,i,s,a){const f=t[1],_=f.data[e+8],pe=Pe(_,f,n,null==i?Ci(_)&&ur:i!=f&&0!=(3&_.type),s&Ve.Host&&a===_);return null!==pe?Ze(t,f,pe,_):B}function Pe(e,t,n,i,s){const a=e.providerIndexes,f=t.data,_=1048575&a,P=e.directiveStart,pe=a>>20,dt=s?_+pe:e.directiveEnd;for(let At=i?_:_+pe;At=P&&Qt.type===n)return At}if(s){const At=f[P];if(At&&si(At)&&At.type===n)return P}return null}function Ze(e,t,n,i){let s=e[n];const a=t.data;if(function gs(e){return e instanceof tr}(s)){const f=s;f.resolving&&function ve(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new k(-200,`Circular dependency in DI detected for ${e}${n}`)}(ce(a[n]));const _=Ar(f.canSeeViewProviders);f.resolving=!0;const P=f.injectImpl?Mt(f.injectImpl):null;io(e,i,Ve.Default);try{s=e[n]=f.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function mi(e,t,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:a}=t.type.prototype;if(i){const f=po(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,f),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,f)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==P&&Mt(P),Ar(_),f.resolving=!1,sr()}}return s}function Yt(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[un]||ln(t),i=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==i;){const a=s[un]||ln(s);if(a&&a!==n)return a;s=Object.getPrototypeOf(s)}return a=>new a})}function ln(e){return z(e)?()=>{const t=ln(w(e));return t&&t()}:xi(e)}function gn(e){return function $e(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let s=0;for(;s{const i=function ai(e){return function(...n){if(e){const i=e(...n);for(const s in i)this[s]=i[s]}}}(t);function s(...a){if(this instanceof s)return i.apply(this,a),this;const f=new s(...a);return _.annotation=f,_;function _(P,ne,pe){const Be=P.hasOwnProperty(Yn)?P[Yn]:Object.defineProperty(P,Yn,{value:[]})[Yn];for(;Be.length<=pe;)Be.push(null);return(Be[pe]=Be[pe]||[]).push(f),P}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}class ci{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=It({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Go=new ci("AnalyzeForEntryComponents"),Xs=Function;function Wo(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?nr(n,t):t(n))}function cl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ea(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ws(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function O2(e,t,n,i){let s=e.length;if(s==t)e.push(n,i);else if(1===s)e.push(i,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function La(e,t){const n=Wr(e,t);if(n>=0)return e[1|n]}function Wr(e,t){return function hl(e,t,n){let i=0,s=e.length>>n;for(;s!==i;){const a=i+(s-i>>1),f=e[a<t?s=a:i=a+1}return~(s<({token:e})),-1),Nr=Ss(Di("Optional"),8),$r=Ss(Di("SkipSelf"),4);let ra,sa;function Qr(e){var t;return(null===(t=function Ba(){if(void 0===ra&&(ra=null,Bt.trustedTypes))try{ra=Bt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ra}())||void 0===t?void 0:t.createHTML(e))||e}function Cl(e){var t;return(null===(t=function Ya(){if(void 0===sa&&(sa=null,Bt.trustedTypes))try{sa=Bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sa}())||void 0===t?void 0:t.createHTML(e))||e}class Rr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class t3 extends Rr{getTypeName(){return"HTML"}}class n3 extends Rr{getTypeName(){return"Style"}}class o3 extends Rr{getTypeName(){return"Script"}}class r3 extends Rr{getTypeName(){return"URL"}}class s3 extends Rr{getTypeName(){return"ResourceURL"}}function Er(e){return e instanceof Rr?e.changingThisBreaksApplicationSecurity:e}function Zr(e,t){const n=zl(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function zl(e){return e instanceof Rr&&e.getTypeName()||null}function a3(e){return new t3(e)}function c3(e){return new n3(e)}function El(e){return new o3(e)}function l3(e){return new r3(e)}function u3(e){return new s3(e)}class h3{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Qr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class d3{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Qr(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Qr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let s=n.length-1;0Ps(t.trim())).join(", ")),this.buf.push(" ",f,'="',Pl(P),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();ja.hasOwnProperty(n)&&!Tl.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Pl(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const y3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_3=/([^\#-~ |!])/g;function Pl(e){return e.replace(/&/g,"&").replace(y3,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(_3,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let aa;function Al(e,t){let n=null;try{aa=aa||function wl(e){const t=new d3(e);return function f3(){try{return!!(new window.DOMParser).parseFromString(Qr(""),"text/html")}catch(e){return!1}}()?new h3(t):t}(e);let i=t?String(t):"";n=aa.getInertBodyElement(i);let s=5,a=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=a,a=n.innerHTML,n=aa.getInertBodyElement(i)}while(i!==a);return Qr((new v3).sanitizeChildren(Wa(n)||n))}finally{if(n){const i=Wa(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Wa(e){return"content"in e&&function C3(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Li=(()=>((Li=Li||{})[Li.NONE=0]="NONE",Li[Li.HTML=1]="HTML",Li[Li.STYLE=2]="STYLE",Li[Li.SCRIPT=3]="SCRIPT",Li[Li.URL=4]="URL",Li[Li.RESOURCE_URL=5]="RESOURCE_URL",Li))();function Fl(e){const t=As();return t?Cl(t.sanitize(Li.HTML,e)||""):Zr(e,"HTML")?Cl(Er(e)):Al(zi(),ie(e))}function $a(e){const t=As();return t?t.sanitize(Li.URL,e)||"":Zr(e,"URL")?Er(e):Ps(ie(e))}function As(){const e=Kt();return e&&e[12]}const Ll="__ngContext__";function ho(e,t){e[Ll]=t}function Qa(e){const t=function Fs(e){return e[Ll]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ca(e){return e.ngOriginalError}function F3(e,...t){e.error(...t)}class ks{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function A3(e){return e&&e.ngErrorLogger||F3}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ca(t);for(;n&&ca(n);)n=ca(n);return n||null}}const Ul=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Bt))();function fr(e){return e instanceof Function?e():e}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();function qa(e,t){return undefined(e,t)}function Is(e){const t=e[3];return Mn(t)?t[3]:t}function Xa(e){return Ql(e[13])}function ec(e){return Ql(e[4])}function Ql(e){for(;null!==e&&!Mn(e);)e=e[4];return e}function Xr(e,t,n,i,s){if(null!=i){let a,f=!1;Mn(i)?a=i:dn(i)&&(f=!0,i=i[0]);const _=Zn(i);0===e&&null!==n?null==s?t1(t,n,_):Hr(t,n,_,s||null,!0):1===e&&null!==n?Hr(t,n,_,s||null,!0):2===e?function u1(e,t,n){const i=la(e,t);i&&function n6(e,t,n,i){vi(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,_,f):3===e&&t.destroyNode(_),null!=a&&function o6(e,t,n,i,s){const a=n[7];a!==Zn(n)&&Xr(t,e,i,a,s);for(let _=10;_0&&(e[n-1][4]=i[4]);const a=ea(e,10+t);!function K3(e,t){Vs(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const f=a[19];null!==f&&f.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function ql(e,t){if(!(256&t[2])){const n=t[11];vi(n)&&n.destroyNode&&Vs(e,t,n,3,null,null),function J3(e){let t=e[13];if(!t)return oc(e[1],e);for(;t;){let n=null;if(dn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)dn(t)&&oc(t[1],t),t=t[3];null===t&&(t=e),dn(t)&&oc(t[1],t),n=t&&t[4]}t=n}}(t)}}function oc(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function t6(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[s=ne]():i[s=-ne].unsubscribe(),a+=2}else{const f=i[s=n[a+1]];n[a].call(f)}if(null!==i){for(let a=s+1;aa?"":s[Be+1].toLowerCase();const At=8&i?dt:null;if(At&&-1!==f1(At,ne,0)||2&i&&ne!==dt){if(ir(i))return!1;f=!0}}}}else{if(!f&&!ir(i)&&!ir(P))return!1;if(f&&ir(P))continue;f=!1,i=P|1&i}}return ir(i)||f}function ir(e){return 0==(1&e)}function l6(e,t,n,i){if(null===t)return-1;let s=0;if(i||!n){let a=!1;for(;s-1)for(n++;n0?'="'+_+'"':"")+"]"}else 8&i?s+="."+f:4&i&&(s+=" "+f);else""!==s&&!ir(f)&&(t+=lc(a,s),s=""),i=f,a=a||!ir(i);n++}return""!==s&&(t+=lc(a,s)),t}const ei={};function v1(e){y1(re(),Kt(),Bn()+e,hn())}function y1(e,t,n,i){if(!i)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&Hi(t,a,n)}else{const a=e.preOrderHooks;null!==a&&Bi(t,a,0,n)}yi(n)}function da(e,t){return e<<17|t<<2}function or(e){return e>>17&32767}function uc(e){return 2|e}function wr(e){return(131068&e)>>2}function hc(e,t){return-131069&e|t<<2}function dc(e){return 1|e}function O1(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&y1(e,t,20,hn()),n(i,s)}finally{yi(a)}}function A1(e,t,n){if(jn(t)){const s=t.directiveEnd;for(let a=t.directiveStart;a0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(_)!=P&&_.push(P),_.push(i,s,f)}}function H1(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function wc(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function j6(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&Tc(n)}}function Tc(e){for(let i=Xa(e);null!==i;i=ec(i))for(let s=10;s0&&Tc(a)}const n=e[1].components;if(null!==n)for(let i=0;i0&&Tc(s)}}function Q6(e,t){const n=Cn(t,e),i=n[1];(function Z6(e,t){for(let n=t.length;nPromise.resolve(null))();function W1(e){return e[7]||(e[7]=[])}function $1(e){return e.cleanup||(e.cleanup=[])}function K1(e,t,n){return(null===e||si(e))&&(n=function j(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Q1(e,t){const n=e[9],i=n?n.get(ks,null):null;i&&i.handleError(t)}function Z1(e,t,n,i,s){for(let a=0;athis.processProvider(_,t,n)),nr([t],_=>this.processInjectorType(_,[],a)),this.records.set(va,os(void 0,this));const f=this.records.get(Ac);this.scope=null!=f?f.value:null,this.source=s||("object"==typeof t?null:D(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Ds,i=Ve.Default){this.assertNotDestroyed();const s=pl(this),a=Mt(void 0);try{if(!(i&Ve.SkipSelf)){let _=this.records.get(t);if(void 0===_){const P=function hu(e){return"function"==typeof e||"object"==typeof e&&e instanceof ci}(t)&&ct(t);_=P&&this.injectableDefInScope(P)?os(kc(t),Rs):null,this.records.set(t,_)}if(null!=_)return this.hydrate(t,_)}return(i&Ve.Self?q1():this.parent).get(t,n=i&Ve.Optional&&n===Ds?null:n)}catch(f){if("NullInjectorError"===f.name){if((f[ia]=f[ia]||[]).unshift(D(t)),s)throw f;return function j2(e,t,n,i){const s=e[ia];throw t[fl]&&s.unshift(t[fl]),e.message=function U2(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=D(t);if(Array.isArray(t))s=t.map(D).join(" -> ");else if("object"==typeof t){let a=[];for(let f in t)if(t.hasOwnProperty(f)){let _=t[f];a.push(f+":"+("string"==typeof _?JSON.stringify(_):D(_)))}s=`{${a.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${e.replace(L2,"\n ")}`}("\n"+e.message,s,n,i),e.ngTokenPath=s,e[ia]=null,e}(f,t,"R3InjectorError",this.source)}throw f}finally{Mt(a),pl(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,s)=>t.push(D(s))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,"")}processInjectorType(t,n,i){if(!(t=w(t)))return!1;let s=pt(t);const a=null==s&&t.ngModule||void 0,f=void 0===a?t:a,_=-1!==i.indexOf(f);if(void 0!==a&&(s=pt(a)),null==s)return!1;if(null!=s.imports&&!_){let pe;i.push(f);try{nr(s.imports,Be=>{this.processInjectorType(Be,n,i)&&(void 0===pe&&(pe=[]),pe.push(Be))})}finally{}if(void 0!==pe)for(let Be=0;Bethis.processProvider(Qt,dt,At||nn))}}this.injectorDefTypes.add(f);const P=xi(f)||(()=>new f);this.records.set(f,os(P,Rs));const ne=s.providers;if(null!=ne&&!_){const pe=t;nr(ne,Be=>this.processProvider(Be,pe,ne))}return void 0!==a&&void 0!==t.providers}processProvider(t,n,i){let s=rs(t=w(t))?t:w(t&&t.provide);const a=function su(e,t,n){return n4(e)?os(void 0,e.useValue):os(t4(e),Rs)}(t);if(rs(t)||!0!==t.multi)this.records.get(s);else{let f=this.records.get(s);f||(f=os(void 0,Rs,!0),f.factory=()=>Ra(f.multi),this.records.set(s,f)),s=t,f.multi.push(t)}this.records.set(s,a)}hydrate(t,n){return n.value===Rs&&(n.value=iu,n.value=n.factory()),"object"==typeof n.value&&n.value&&function i4(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=w(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function kc(e){const t=ct(e),n=null!==t?t.factory:xi(e);if(null!==n)return n;if(e instanceof ci)throw new k(204,"");if(e instanceof Function)return function ru(e){const t=e.length;if(t>0)throw ws(t,"?"),new k(204,"");const n=function Ie(e){const t=e&&(e[Et]||e[en]);if(t){const n=function Pt(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new k(204,"")}function t4(e,t,n){let i;if(rs(e)){const s=w(e);return xi(s)||kc(s)}if(n4(e))i=()=>w(e.useValue);else if(function cu(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Ra(e.deps||[]));else if(function au(e){return!(!e||!e.useExisting)}(e))i=()=>Zi(w(e.useExisting));else{const s=w(e&&(e.useClass||e.provide));if(!function uu(e){return!!e.deps}(e))return xi(s)||kc(s);i=()=>new s(...Ra(e.deps))}return i}function os(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function n4(e){return null!==e&&"object"==typeof e&&R2 in e}function rs(e){return"function"==typeof e}let $o=(()=>{class e{static create(n,i){var s;if(Array.isArray(n))return X1({name:""},i,n,"");{const a=null!==(s=n.name)&&void 0!==s?s:"";return X1({name:a},n.parent,n.providers,a)}}}return e.THROW_IF_NOT_FOUND=Ds,e.NULL=new J1,e.\u0275prov=It({token:e,providedIn:"any",factory:()=>Zi(va)}),e.__NG_ELEMENT_ID__=-1,e})();function Cu(e,t){Qi(Qa(e)[1],d())}function Nc(e){let t=function p4(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let s;if(si(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new k(903,"");s=t.\u0275dir}if(s){if(n){i.push(s);const f=e;f.inputs=Rc(e.inputs),f.declaredInputs=Rc(e.declaredInputs),f.outputs=Rc(e.outputs);const _=s.hostBindings;_&&Eu(e,_);const P=s.viewQuery,ne=s.contentQueries;if(P&&Mu(e,P),ne&&zu(e,ne),b(e.inputs,s.inputs),b(e.declaredInputs,s.declaredInputs),b(e.outputs,s.outputs),si(s)&&s.data.animation){const pe=e.data;pe.animation=(pe.animation||[]).concat(s.data.animation)}}const a=s.features;if(a)for(let f=0;f=0;i--){const s=e[i];s.hostVars=t+=s.hostVars,s.hostAttrs=Pr(s.hostAttrs,n=Pr(n,s.hostAttrs))}}(i)}function Rc(e){return e===an?{}:e===nn?[]:e}function Mu(e,t){const n=e.viewQuery;e.viewQuery=n?(i,s)=>{t(i,s),n(i,s)}:t}function zu(e,t){const n=e.contentQueries;e.contentQueries=n?(i,s,a)=>{t(i,s,a),n(i,s,a)}:t}function Eu(e,t){const n=e.hostBindings;e.hostBindings=n?(i,s)=>{t(i,s),n(i,s)}:t}let ya=null;function ss(){if(!ya){const e=Bt.Symbol;if(e&&e.iterator)ya=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n_(Zn(fi[i.index])):i.index;if(vi(n)){let fi=null;if(!_&&P&&(fi=function gf(e,t,n,i){const s=e.cleanup;if(null!=s)for(let a=0;aP?_[P]:null}"string"==typeof f&&(a+=2)}return null}(e,t,s,i.index)),null!==fi)(fi.__ngLastListenerFn__||fi).__ngNextListenerFn__=a,fi.__ngLastListenerFn__=a,At=!1;else{a=S4(i,t,Be,a,!1);const Mi=n.listen(Fn,s,a);dt.push(a,Mi),pe&&pe.push(s,Un,tn,tn+1)}}else a=S4(i,t,Be,a,!0),Fn.addEventListener(s,a,f),dt.push(a),pe&&pe.push(s,Un,tn,f)}else a=S4(i,t,Be,a,!1);const Qt=i.outputs;let pn;if(At&&null!==Qt&&(pn=Qt[s])){const En=pn.length;if(En)for(let Fn=0;Fn0;)t=t[15],e--;return t}(e,An.lFrame.contextLView))[8]}(e)}function vf(e,t){let n=null;const i=function u6(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let s=0;s=0}const Ji={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function v8(e){return e.substring(Ji.key,Ji.keyEnd)}function bf(e){return e.substring(Ji.value,Ji.valueEnd)}function y8(e,t){const n=Ji.textEnd;return n===t?-1:(t=Ji.keyEnd=function Ef(e,t,n){for(;t32;)t++;return t}(e,Ji.key=t,n),Us(e,t,n))}function _8(e,t){const n=Ji.textEnd;let i=Ji.key=Us(e,t,n);return n===i?-1:(i=Ji.keyEnd=function wf(e,t,n){let i;for(;t=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=b8(e,i,n),i=Ji.value=Us(e,i,n),i=Ji.valueEnd=function Df(e,t,n){let i=-1,s=-1,a=-1,f=t,_=f;for(;f32&&(_=f),a=s,s=i,i=-33&P}return _}(e,i,n),b8(e,i,n))}function C8(e){Ji.key=0,Ji.keyEnd=0,Ji.value=0,Ji.valueEnd=0,Ji.textEnd=e.length}function Us(e,t,n){for(;t=0;n=_8(t,n))D8(e,v8(t),bf(t))}function z8(e){_r(Lo,Tr,e,!0)}function Tr(e,t){for(let n=function Mf(e){return C8(e),y8(e,Us(e,0,Ji.textEnd))}(t);n>=0;n=y8(t,n))Lo(e,v8(t),!0)}function yr(e,t,n,i){const s=Kt(),a=re(),f=Hn(2);a.firstUpdatePass&&w8(a,e,f,i),t!==ei&&fo(s,f,t)&&T8(a,a.data[Bn()],s,s[11],e,s[f+1]=function kf(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=D(Er(e)))),e}(t,n),i,f)}function _r(e,t,n,i){const s=re(),a=Hn(2);s.firstUpdatePass&&w8(s,null,a,i);const f=Kt();if(n!==ei&&fo(f,a,n)){const _=s.data[Bn()];if(x8(_,i)&&!E8(s,a)){let P=i?_.classesWithoutHost:_.stylesWithoutHost;null!==P&&(n=C(P,n||"")),C4(s,_,f,n,i)}else!function Ff(e,t,n,i,s,a,f,_){s===ei&&(s=nn);let P=0,ne=0,pe=0=e.expandoStartIndex}function w8(e,t,n,i){const s=e.data;if(null===s[n+1]){const a=s[Bn()],f=E8(e,n);x8(a,i)&&null===t&&!f&&(t=!1),t=function Sf(e,t,n,i){const s=Ri(e);let a=i?t.residualClasses:t.residualStyles;if(null===s)0===(i?t.classBindings:t.styleBindings)&&(n=ba(n=F4(null,e,t,n,i),t.attrs,i),a=null);else{const f=t.directiveStylingLast;if(-1===f||e[f]!==s)if(n=F4(s,e,t,n,i),null===a){let P=function xf(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==wr(i))return e[or(i)]}(e,t,i);void 0!==P&&Array.isArray(P)&&(P=F4(null,e,t,P[1],i),P=ba(P,t.attrs,i),function Of(e,t,n,i){e[or(n?t.classBindings:t.styleBindings)]=i}(e,t,i,P))}else a=function Pf(e,t,n){let i;const s=t.directiveEnd;for(let a=1+t.directiveStylingLast;a0)&&(ne=!0)}else pe=n;if(s)if(0!==P){const dt=or(e[_+1]);e[i+1]=da(dt,_),0!==dt&&(e[dt+1]=hc(e[dt+1],i)),e[_+1]=function v6(e,t){return 131071&e|t<<17}(e[_+1],i)}else e[i+1]=da(_,0),0!==_&&(e[_+1]=hc(e[_+1],i)),_=i;else e[i+1]=da(P,0),0===_?_=i:e[P+1]=hc(e[P+1],i),P=i;ne&&(e[i+1]=uc(e[i+1])),g8(e,pe,i,!0),g8(e,pe,i,!1),function _f(e,t,n,i,s){const a=s?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&Wr(a,t)>=0&&(n[i+1]=dc(n[i+1]))}(t,pe,e,i,a),f=da(_,P),a?t.classBindings=f:t.styleBindings=f}(s,a,t,n,f,i)}}function F4(e,t,n,i,s){let a=null;const f=n.directiveEnd;let _=n.directiveStylingLast;for(-1===_?_=n.directiveStart:_++;_0;){const P=e[s],ne=Array.isArray(P),pe=ne?P[1]:P,Be=null===pe;let dt=n[s+1];dt===ei&&(dt=Be?nn:void 0);let At=Be?La(dt,i):pe===i?dt:void 0;if(ne&&!Uc(At)&&(At=La(P,i)),Uc(At)&&(_=At,f))return _;const Qt=e[s+1];s=f?or(Qt):wr(Qt)}if(null!==t){let P=a?t.residualClasses:t.residualStyles;null!=P&&(_=La(P,i))}return _}function Uc(e){return void 0!==e}function x8(e,t){return 0!=(e.flags&(t?16:32))}function O8(e,t=""){const n=Kt(),i=re(),s=e+20,a=i.firstCreatePass?ts(i,s,1,t,null):i.data[s],f=n[s]=function tc(e,t){return vi(e)?e.createText(t):e.createTextNode(t)}(n[11],t);ua(i,n,f,a),Se(a,!1)}function k4(e){return Gc("",e,""),k4}function Gc(e,t,n){const i=Kt(),s=as(i,e,t,n);return s!==ei&&Dr(i,Bn(),s),Gc}function I4(e,t,n,i,s){const a=Kt(),f=cs(a,e,t,n,i,s);return f!==ei&&Dr(a,Bn(),f),I4}function V4(e,t,n,i,s,a,f){const _=Kt(),P=function ls(e,t,n,i,s,a,f,_){const ne=_a(e,Wn(),n,s,f);return Hn(3),ne?t+ie(n)+i+ie(s)+a+ie(f)+_:ei}(_,e,t,n,i,s,a,f);return P!==ei&&Dr(_,Bn(),P),V4}function L8(e,t,n){_r(Lo,Tr,as(Kt(),e,t,n),!0)}function L4(e,t,n){const i=Kt();if(fo(i,Vn(),t)){const a=re(),f=ui();No(a,f,i,e,t,K1(Ri(a.data),f,i),n,!0)}return L4}const fs=void 0;var Xf=["en",[["a","p"],["AM","PM"],fs],[["AM","PM"],fs,fs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],fs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],fs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",fs,"{1} 'at' {0}",fs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function qf(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Gs={};function e5(e,t,n){"string"!=typeof t&&(n=t,t=e[Kn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Gs[t]=e,n&&(Gs[t][Kn.ExtraData]=n)}function N4(e){const t=function t5(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Q8(t);if(n)return n;const i=t.split("-")[0];if(n=Q8(i),n)return n;if("en"===i)return Xf;throw new Error(`Missing locale data for the locale "${e}".`)}function K8(e){return N4(e)[Kn.PluralCase]}function Q8(e){return e in Gs||(Gs[e]=Bt.ng&&Bt.ng.common&&Bt.ng.common.locales&&Bt.ng.common.locales[e]),Gs[e]}var Kn=(()=>((Kn=Kn||{})[Kn.LocaleId=0]="LocaleId",Kn[Kn.DayPeriodsFormat=1]="DayPeriodsFormat",Kn[Kn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Kn[Kn.DaysFormat=3]="DaysFormat",Kn[Kn.DaysStandalone=4]="DaysStandalone",Kn[Kn.MonthsFormat=5]="MonthsFormat",Kn[Kn.MonthsStandalone=6]="MonthsStandalone",Kn[Kn.Eras=7]="Eras",Kn[Kn.FirstDayOfWeek=8]="FirstDayOfWeek",Kn[Kn.WeekendRange=9]="WeekendRange",Kn[Kn.DateFormat=10]="DateFormat",Kn[Kn.TimeFormat=11]="TimeFormat",Kn[Kn.DateTimeFormat=12]="DateTimeFormat",Kn[Kn.NumberSymbols=13]="NumberSymbols",Kn[Kn.NumberFormats=14]="NumberFormats",Kn[Kn.CurrencyCode=15]="CurrencyCode",Kn[Kn.CurrencySymbol=16]="CurrencySymbol",Kn[Kn.CurrencyName=17]="CurrencyName",Kn[Kn.Currencies=18]="Currencies",Kn[Kn.Directionality=19]="Directionality",Kn[Kn.PluralCase=20]="PluralCase",Kn[Kn.ExtraData=21]="ExtraData",Kn))();const Wc="en-US";let Z8=Wc;function B4(e,t,n,i,s){if(e=w(e),Array.isArray(e))for(let a=0;a>20;if(rs(e)||!e.multi){const At=new tr(P,s,Ca),Qt=j4(_,t,s?pe:pe+dt,Be);-1===Qt?(be(v(ne,f),a,_),Y4(a,e,t.length),t.push(_),ne.directiveStart++,ne.directiveEnd++,s&&(ne.providerIndexes+=1048576),n.push(At),f.push(At)):(n[Qt]=At,f[Qt]=At)}else{const At=j4(_,t,pe+dt,Be),Qt=j4(_,t,pe,pe+dt),pn=At>=0&&n[At],En=Qt>=0&&n[Qt];if(s&&!En||!s&&!pn){be(v(ne,f),a,_);const Fn=function X5(e,t,n,i,s){const a=new tr(e,n,Ca);return a.multi=[],a.index=t,a.componentProviders=0,b0(a,s,i&&!n),a}(s?q5:J5,n.length,s,i,P);!s&&En&&(n[Qt].providerFactory=Fn),Y4(a,e,t.length,0),t.push(_),ne.directiveStart++,ne.directiveEnd++,s&&(ne.providerIndexes+=1048576),n.push(Fn),f.push(Fn)}else Y4(a,e,At>-1?At:Qt,b0(n[s?Qt:At],P,!s&&i));!s&&i&&En&&n[Qt].componentProviders++}}}function Y4(e,t,n,i){const s=rs(t),a=function lu(e){return!!e.useClass}(t);if(s||a){const P=(a?w(t.useClass):t).prototype.ngOnDestroy;if(P){const ne=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const pe=ne.indexOf(n);-1===pe?ne.push(n,[i,P]):ne[pe+1].push(i,P)}else ne.push(n,P)}}}function b0(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function j4(e,t,n,i){for(let s=n;s{n.providersResolver=(i,s)=>function Z5(e,t,n){const i=re();if(i.firstCreatePass){const s=si(e);B4(n,i.data,i.blueprint,s,!0),B4(t,i.data,i.blueprint,s,!1)}}(i,s?s(e):e,t)}}class z0{}class n7{resolveComponentFactory(t){throw function t7(e){const t=Error(`No component factory found for ${D(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Da=(()=>{class e{}return e.NULL=new n7,e})();function i7(){return $s(d(),Kt())}function $s(e,t){return new Ta(ze(e,t))}let Ta=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=i7,e})();function o7(e){return e instanceof Ta?e.nativeElement:e}class w0{}let r7=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function a7(){const e=Kt(),n=Cn(d().index,e);return function s7(e){return e[11]}(dn(n)?n:e)}(),e})(),c7=(()=>{class e{}return e.\u0275prov=It({token:e,providedIn:"root",factory:()=>null}),e})();class D0{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const l7=new D0("13.1.3"),G4={};function Jc(e,t,n,i,s=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&i.push(Zn(a)),Mn(a))for(let _=10;_-1&&(ic(t,i),ea(n,i))}this._attachedToViewContainer=!1}ql(this._lView[1],this._lView)}onDestroy(t){V1(this._lView[1],this._lView,null,t)}markForCheck(){Sc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Oc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function q6(e,t,n){Sn(!0);try{Oc(e,t,n)}finally{Sn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new k(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Z3(e,t){Vs(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new k(902,"");this._appRef=t}}class u7 extends Sa{constructor(t){super(t),this._view=t}detectChanges(){G1(this._view)}checkNoChanges(){!function X6(e){Sn(!0);try{G1(e)}finally{Sn(!1)}}(this._view)}get context(){return null}}class T0 extends Da{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=De(t);return new W4(n,this.ngModule)}}function S0(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const d7=new ci("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ul});class W4 extends z0{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function m6(e){return e.map(p6).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return S0(this.componentDef.inputs)}get outputs(){return S0(this.componentDef.outputs)}create(t,n,i,s){const a=(s=s||this.ngModule)?function f7(e,t){return{get:(n,i,s)=>{const a=e.get(n,G4,s);return a!==G4||i===G4?a:t.get(n,i,s)}}}(t,s.injector):t,f=a.get(w0,ji),_=a.get(c7,null),P=f.createRenderer(null,this.componentDef),ne=this.componentDef.selectors[0][0]||"div",pe=i?function I1(e,t,n){if(vi(e))return e.selectRootElement(t,n===vt.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(P,i,this.componentDef.encapsulation):nc(f.createRenderer(null,this.componentDef),ne,function h7(e){const t=e.toLowerCase();return"svg"===t?Oi:"math"===t?"http://www.w3.org/1998/MathML/":null}(ne)),Be=this.componentDef.onPush?576:528,dt=function Lc(e,t){return{components:[],scheduler:e||Ul,clean:eu,playerHandler:t||null,flags:0}}(),At=ma(0,null,null,1,0,null,null,null,null,null),Qt=es(null,At,dt,Be,null,null,f,P,_,a);let pn,En;Po(Qt);try{const Fn=function d4(e,t,n,i,s,a){const f=n[1];n[20]=e;const P=ts(f,20,2,"#host",null),ne=P.mergedAttrs=t.hostAttrs;null!==ne&&(Ns(P,ne,!0),null!==e&&(Or(s,e,ne),null!==P.classes&&cc(s,e,P.classes),null!==P.styles&&d1(s,e,P.styles)));const pe=i.createRenderer(e,t),Be=es(n,F1(t),null,t.onPush?64:16,n[20],P,i,pe,a||null,null);return f.firstCreatePass&&(be(v(P,n),f,t.type),wc(f,P),B1(P,n.length,1)),ga(n,Be),n[20]=Be}(pe,this.componentDef,Qt,f,P);if(pe)if(i)Or(P,pe,["ng-version",l7.full]);else{const{attrs:tn,classes:Un}=function g6(e){const t=[],n=[];let i=1,s=2;for(;i0&&cc(P,pe,Un.join(" "))}if(En=bt(At,20),void 0!==n){const tn=En.projection=[];for(let Un=0;UnP(f,t)),t.contentQueries){const P=d();t.contentQueries(1,f,P.directiveStart)}const _=d();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(yi(_.index),R1(n[1],_,0,_.directiveStart,_.directiveEnd,t),H1(t,f)),f}(Fn,this.componentDef,Qt,dt,[Cu]),Ls(At,Qt,null)}finally{Tn()}return new m7(this.componentType,pn,$s(En,Qt),Qt,En)}}class m7 extends class e7{}{constructor(t,n,i,s,a){super(),this.location=i,this._rootLView=s,this._tNode=a,this.instance=n,this.hostView=this.changeDetectorRef=new u7(s),this.componentType=t}get injector(){return new Nt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Ks{}class x0{}const Qs=new Map;class A0 extends Ks{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new T0(this);const i=te(t);this._bootstrapComponents=fr(i.bootstrap),this._r3Injector=e4(t,n,[{provide:Ks,useValue:this},{provide:Da,useValue:this.componentFactoryResolver}],D(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=$o.THROW_IF_NOT_FOUND,i=Ve.Default){return t===$o||t===Ks||t===va?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class $4 extends x0{constructor(t){super(),this.moduleType=t,null!==te(t)&&function v7(e){const t=new Set;!function n(i){const s=te(i,!0),a=s.id;null!==a&&(function O0(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${D(t)} vs ${D(t.name)}`)}(a,Qs.get(a),i),Qs.set(a,i));const f=fr(s.imports);for(const _ of f)t.has(_)||(t.add(_),n(_))}(e)}(t)}create(t){return new A0(this.moduleType,t)}}function F0(e,t,n){const i=Pn()+e,s=Kt();return s[i]===ei?gr(s,i,n?t.call(n):t()):function Bs(e,t){return e[t]}(s,i)}function k0(e,t,n,i){return N0(Kt(),Pn(),e,t,n,i)}function I0(e,t,n,i,s){return R0(Kt(),Pn(),e,t,n,i,s)}function V0(e,t,n,i,s,a){return H0(Kt(),Pn(),e,t,n,i,s,a)}function L0(e,t,n,i,s,a,f){return function B0(e,t,n,i,s,a,f,_,P){const ne=t+n;return function Ko(e,t,n,i,s,a){const f=Br(e,t,n,i);return Br(e,t+2,s,a)||f}(e,ne,s,a,f,_)?gr(e,ne+4,P?i.call(P,s,a,f,_):i(s,a,f,_)):xa(e,ne+4)}(Kt(),Pn(),e,t,n,i,s,a,f)}function xa(e,t){const n=e[t];return n===ei?void 0:n}function N0(e,t,n,i,s,a){const f=t+n;return fo(e,f,s)?gr(e,f+1,a?i.call(a,s):i(s)):xa(e,f+1)}function R0(e,t,n,i,s,a,f){const _=t+n;return Br(e,_,s,a)?gr(e,_+2,f?i.call(f,s,a):i(s,a)):xa(e,_+2)}function H0(e,t,n,i,s,a,f,_){const P=t+n;return _a(e,P,s,a,f)?gr(e,P+3,_?i.call(_,s,a,f):i(s,a,f)):xa(e,P+3)}function j0(e,t){const n=re();let i;const s=e+20;n.firstCreatePass?(i=function z7(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const a=i.factory||(i.factory=xi(i.type)),f=Mt(Ca);try{const _=Ar(!1),P=a();return Ar(_),function $d(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Kt(),s,P),P}finally{Mt(f)}}function U0(e,t,n){const i=e+20,s=Kt(),a=Zt(s,i);return Oa(s,i)?N0(s,Pn(),t,a.transform,n,a):a.transform(n)}function G0(e,t,n,i){const s=e+20,a=Kt(),f=Zt(a,s);return Oa(a,s)?R0(a,Pn(),t,f.transform,n,i,f):f.transform(n,i)}function W0(e,t,n,i,s){const a=e+20,f=Kt(),_=Zt(f,a);return Oa(f,a)?H0(f,Pn(),t,_.transform,n,i,s,_):_.transform(n,i,s)}function Oa(e,t){return e[1].data[t].pure}function K4(e){return t=>{setTimeout(e,void 0,t)}}const Sr=class D7 extends r.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var s,a,f;let _=t,P=n||(()=>null),ne=i;if(t&&"object"==typeof t){const Be=t;_=null===(s=Be.next)||void 0===s?void 0:s.bind(Be),P=null===(a=Be.error)||void 0===a?void 0:a.bind(Be),ne=null===(f=Be.complete)||void 0===f?void 0:f.bind(Be)}this.__isAsync&&(P=K4(P),_&&(_=K4(_)),ne&&(ne=K4(ne)));const pe=super.subscribe({next:_,error:P,complete:ne});return t instanceof o.w&&t.add(pe),pe}};function T7(){return this._results[ss()]()}class qc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=ss(),i=qc.prototype;i[n]||(i[n]=T7)}get changes(){return this._changes||(this._changes=new Sr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const s=Wo(t);(this._changesDetected=!function S2(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=O7,e})();const S7=Pa,x7=class extends S7{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=es(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(i[19]=a.createEmbeddedView(n)),Ls(n,i,t),new Sa(i)}};function O7(){return Xc(d(),Kt())}function Xc(e,t){return 4&e.type?new x7(t,e,$s(e,t)):null}let el=(()=>{class e{}return e.__NG_ELEMENT_ID__=P7,e})();function P7(){return Q0(d(),Kt())}const A7=el,$0=class extends A7{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return $s(this._hostTNode,this._hostLView)}get injector(){return new Nt(this._hostTNode,this._hostLView)}get parentInjector(){const t=q(this._hostTNode,this._hostLView);if(Vr(t)){const n=zr(t,this._hostLView),i=lr(t);return new Nt(n[1].data[i+8],n)}return new Nt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=K0(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const s=t.createEmbeddedView(n||{});return this.insert(s,i),s}createComponent(t,n,i,s,a){const f=t&&!function Es(e){return"function"==typeof e}(t);let _;if(f)_=n;else{const Be=n||{};_=Be.index,i=Be.injector,s=Be.projectableNodes,a=Be.ngModuleRef}const P=f?t:new W4(De(t)),ne=i||this.parentInjector;if(!a&&null==P.ngModule&&ne){const Be=ne.get(Ks,null);Be&&(a=Be)}const pe=P.create(ne,s,void 0,a);return this.insert(pe.hostView,_),pe}insert(t,n){const i=t._lView,s=i[1];if(function oi(e){return Mn(e[3])}(i)){const pe=this.indexOf(t);if(-1!==pe)this.detach(pe);else{const Be=i[3],dt=new $0(Be,Be[6],Be[3]);dt.detach(dt.indexOf(t))}}const a=this._adjustIndex(n),f=this._lContainer;!function q3(e,t,n,i){const s=10+i,a=n.length;i>0&&(n[s-1][4]=t),i0)i.push(f[_/2]);else{const ne=a[_+1],pe=t[-P];for(let Be=10;Be{class e{constructor(n){this.appInits=n,this.resolve=il,this.reject=il,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{a.subscribe({complete:_,error:P})});n.push(f)}}Promise.all(n).then(()=>{i()}).catch(s=>{this.reject(s)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Zi(a2,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();const Mh=new ci("AppId"),op={provide:Mh,useFactory:function ip(){return`${c2()}${c2()}${c2()}`},deps:[]};function c2(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const zh=new ci("Platform Initializer"),Eh=new ci("Platform ID"),wh=new ci("appBootstrapListener");let Dh=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();const ol=new ci("LocaleId"),Th=new ci("DefaultCurrencyCode");class rp{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let l2=(()=>{class e{compileModuleSync(n){return new $4(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),a=fr(te(n).declarations).reduce((f,_)=>{const P=De(_);return P&&f.push(new W4(P)),f},[]);return new rp(i,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();const ap=(()=>Promise.resolve(0))();function u2(e){"undefined"==typeof Zone?ap.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Qo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Sr(!1),this.onMicrotaskEmpty=new Sr(!1),this.onStable=new Sr(!1),this.onError=new Sr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&n,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function cp(){let e=Bt.requestAnimationFrame,t=Bt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function hp(e){const t=()=>{!function up(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,d2(e),e.isCheckStableRunning=!0,h2(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),d2(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,a,f,_)=>{try{return Sh(e),n.invokeTask(s,a,f,_)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),xh(e)}},onInvoke:(n,i,s,a,f,_,P)=>{try{return Sh(e),n.invoke(s,a,f,_,P)}finally{e.shouldCoalesceRunChangeDetection&&t(),xh(e)}},onHasTask:(n,i,s,a)=>{n.hasTask(s,a),i===s&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,d2(e),h2(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,i,s,a)=>(n.handleError(s,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(s)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Qo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Qo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,s){const a=this._inner,f=a.scheduleEventTask("NgZoneEvent: "+s,t,lp,il,il);try{return a.runTask(f,n,i)}finally{a.cancelTask(f)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const lp={};function h2(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function d2(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Sh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function xh(e){e._nesting--,h2(e)}class dp{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Sr,this.onMicrotaskEmpty=new Sr,this.onStable=new Sr,this.onError=new Sr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,s){return t.apply(n,i)}}let Oh=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Qo.assertNotInAngularZone(),u2(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())u2(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,s){let a=-1;i&&i>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(f=>f.timeoutId!==a),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:s})}whenStable(n,i,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,s){return[]}}return e.\u0275fac=function(n){return new(n||e)(Zi(Qo))},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})(),Ph=(()=>{class e{constructor(){this._applications=new Map,f2.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return f2.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();class fp{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function pp(e){f2=e}let Cr,f2=new fp;const Ah=new ci("AllowMultipleToken");class vp{constructor(t,n){this.name=t,this.token=n}}function Fh(e,t,n=[]){const i=`Platform: ${t}`,s=new ci(i);return(a=[])=>{let f=kh();if(!f||f.injector.get(Ah,!1))if(e)e(n.concat(a).concat({provide:s,useValue:!0}));else{const _=n.concat(a).concat({provide:s,useValue:!0},{provide:Ac,useValue:"platform"});!function yp(e){if(Cr&&!Cr.destroyed&&!Cr.injector.get(Ah,!1))throw new k(400,"");Cr=e.get(Ih);const t=e.get(zh,null);t&&t.forEach(n=>n())}($o.create({providers:_,name:i}))}return function _p(e){const t=kh();if(!t)throw new k(401,"");return t}()}}function kh(){return Cr&&!Cr.destroyed?Cr:null}let Ih=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const _=function Cp(e,t){let n;return n="noop"===e?new dp:("zone.js"===e?void 0:e)||new Qo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),P=[{provide:Qo,useValue:_}];return _.run(()=>{const ne=$o.create({providers:P,parent:this.injector,name:n.moduleType.name}),pe=n.create(ne),Be=pe.injector.get(ks,null);if(!Be)throw new k(402,"");return _.runOutsideAngular(()=>{const dt=_.onError.subscribe({next:At=>{Be.handleError(At)}});pe.onDestroy(()=>{p2(this._modules,pe),dt.unsubscribe()})}),function bp(e,t,n){try{const i=n();return w4(i)?i.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(Be,_,()=>{const dt=pe.injector.get(Js);return dt.runInitializers(),dt.donePromise.then(()=>(function r5(e){wt(e,"Expected localeId to be defined"),"string"==typeof e&&(Z8=e.toLowerCase().replace(/_/g,"-"))}(pe.injector.get(ol,Wc)||Wc),this._moduleDoBootstrap(pe),pe))})})}bootstrapModule(n,i=[]){const s=Vh({},i);return function mp(e,t,n){const i=new $4(n);return Promise.resolve(i)}(0,0,n).then(a=>this.bootstrapModuleFactory(a,s))}_moduleDoBootstrap(n){const i=n.injector.get(Fa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new k(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new k(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Zi($o))},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();function Vh(e,t){return Array.isArray(t)?t.reduce(Vh,e):Object.assign(Object.assign({},e),t)}let Fa=(()=>{class e{constructor(n,i,s,a,f){this._zone=n,this._injector=i,this._exceptionHandler=s,this._componentFactoryResolver=a,this._initStatus=f,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const _=new l.y(ne=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ne.next(this._stable),ne.complete()})}),P=new l.y(ne=>{let pe;this._zone.runOutsideAngular(()=>{pe=this._zone.onStable.subscribe(()=>{Qo.assertNotInAngularZone(),u2(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ne.next(!0))})})});const Be=this._zone.onUnstable.subscribe(()=>{Qo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ne.next(!1)}))});return()=>{pe.unsubscribe(),Be.unsubscribe()}});this.isStable=(0,K.T)(_,P.pipe((0,m.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new k(405,"");let s;s=n instanceof z0?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function gp(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Ks),_=s.create($o.NULL,[],i||s.selector,a),P=_.location.nativeElement,ne=_.injector.get(Oh,null),pe=ne&&_.injector.get(Ph);return ne&&pe&&pe.registerApplication(P,ne),_.onDestroy(()=>{this.detachView(_.hostView),p2(this.components,_),pe&&pe.unregisterApplication(P)}),this._loadComponent(_),_}tick(){if(this._runningTick)throw new k(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;p2(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(wh,[]).concat(this._bootstrapListeners).forEach(s=>s(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(Zi(Qo),Zi($o),Zi(ks),Zi(Da),Zi(Js))},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();function p2(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Nh=!0,Rh=!1;function zp(){return Rh=!0,Nh}function Ep(){if(Rh)throw new Error("Cannot enable prod mode after platform setup.");Nh=!1}let wp=(()=>{class e{}return e.__NG_ELEMENT_ID__=Dp,e})();function Dp(e){return function Tp(e,t,n){if(Ci(e)&&!n){const i=Cn(e.index,t);return new Sa(i,i)}return 47&e.type?new Sa(t[16],t):null}(d(),Kt(),16==(16&e))}class Gh{constructor(){}supports(t){return Hs(t)}create(t){return new Fp(t)}}const Ap=(e,t)=>t;class Fp{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ap}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,s=0,a=null;for(;n||i;){const f=!i||n&&n.currentIndex<$h(i,s,a)?n:i,_=$h(f,s,a),P=f.currentIndex;if(f===i)s--,i=i._nextRemoved;else if(n=n._next,null==f.previousIndex)s++;else{a||(a=[]);const ne=_-s,pe=P-s;if(ne!=pe){for(let dt=0;dt{f=this._trackByFn(s,_),null!==n&&Object.is(n.trackById,f)?(i&&(n=this._verifyReinsertion(n,_,f,s)),Object.is(n.item,_)||this._addIdentityChange(n,_)):(n=this._mismatch(n,_,f,s),i=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,s){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,a,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,s)):t=this._addAfter(new kp(n,i),a,s),t}_verifyReinsertion(t,n,i,s){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==a?t=this._reinsertAfter(a,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,a=t._nextRemoved;return null===s?this._removalsHead=a:s._nextRemoved=a,null===a?this._removalsTail=s:a._prevRemoved=s,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Wh),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Wh),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class kp{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ip{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Wh{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new Ip,this.map.set(n,i)),i.add(t)}get(t,n){const s=this.map.get(t);return s?s.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $h(e,t,n){const i=e.previousIndex;if(null===i)return i;let s=0;return n&&i{if(n&&n.key===s)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(s,i);n=this._insertBeforeOrAppend(n,a)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const a=s._prev,f=s._next;return a&&(a._next=f),f&&(f._prev=a),s._next=null,s._prev=null,s}const i=new Lp(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class Lp{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Qh(){return new sl([new Gh])}let sl=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const s=i.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Qh()),deps:[[e,new $r,new Nr]]}}find(n){const i=this.factories.find(s=>s.supports(n));if(null!=i)return i;throw new k(901,"")}}return e.\u0275prov=It({token:e,providedIn:"root",factory:Qh}),e})();function Zh(){return new al([new Kh])}let al=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const s=i.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Zh()),deps:[[e,new $r,new Nr]]}}find(n){const i=this.factories.find(a=>a.supports(n));if(i)return i;throw new k(901,"")}}return e.\u0275prov=It({token:e,providedIn:"root",factory:Zh}),e})();const Np=[new Kh],Hp=new sl([new Gh]),Bp=new al(Np),Yp=Fh(null,"core",[{provide:Eh,useValue:"unknown"},{provide:Ih,deps:[$o]},{provide:Ph,deps:[]},{provide:Dh,deps:[]}]),$p=[{provide:Fa,useClass:Fa,deps:[Qo,$o,ks,Da,Js]},{provide:d7,deps:[Qo],useFactory:function Kp(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Js,useClass:Js,deps:[[new Nr,a2]]},{provide:l2,useClass:l2,deps:[]},op,{provide:sl,useFactory:function jp(){return Hp},deps:[]},{provide:al,useFactory:function Up(){return Bp},deps:[]},{provide:ol,useFactory:function Gp(e){return e||function Wp(){return"undefined"!=typeof $localize&&$localize.locale||Wc}()},deps:[[new xs(ol),new Nr,new $r]]},{provide:Th,useValue:"USD"}];let Qp=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Zi(Fa))},e.\u0275mod=de({type:e}),e.\u0275inj=lt({providers:$p}),e})()},4182:(Ft,Oe,c)=>{c.d(Oe,{TO:()=>Nn,ve:()=>ie,Wl:()=>M,Fj:()=>ce,Oe:()=>Jn,NI:()=>Qn,oH:()=>bo,u:()=>Vi,cw:()=>ti,sg:()=>ro,u5:()=>$n,JU:()=>w,a5:()=>Ne,JJ:()=>Ke,JL:()=>Y,F:()=>ke,On:()=>si,UX:()=>hi,Q7:()=>ji,kI:()=>He,_Y:()=>pi});var r=c(5e3),o=c(9808),l=c(2916),K=c(6688),m=c(4850),A=c(7830),b=c(5254);function C($,L){return new l.y(F=>{const Te=$.length;if(0===Te)return void F.complete();const Ut=new Array(Te);let On=0,Kt=0;for(let re=0;re{d||(d=!0,Kt++),Ut[re]=x},error:x=>F.error(x),complete:()=>{On++,(On===Te||!d)&&(Kt===Te&&F.next(L?L.reduce((x,he,Se)=>(x[he]=Ut[Se],x),{}):Ut),F.complete())}}))}})}let E=(()=>{class ${constructor(F,Te){this._renderer=F,this._elementRef=Te,this.onChange=Ut=>{},this.onTouched=()=>{}}setProperty(F,Te){this._renderer.setProperty(this._elementRef.nativeElement,F,Te)}registerOnTouched(F){this.onTouched=F}registerOnChange(F){this.onChange=F}setDisabledState(F){this.setProperty("disabled",F)}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(r.Qsj),r.Y36(r.SBq))},$.\u0275dir=r.lG2({type:$}),$})(),S=(()=>{class $ extends E{}return $.\u0275fac=function(){let L;return function(Te){return(L||(L=r.n5z($)))(Te||$)}}(),$.\u0275dir=r.lG2({type:$,features:[r.qOj]}),$})();const w=new r.OlP("NgValueAccessor"),z={provide:w,useExisting:(0,r.Gpc)(()=>M),multi:!0};let M=(()=>{class $ extends S{writeValue(F){this.setProperty("checked",F)}}return $.\u0275fac=function(){let L;return function(Te){return(L||(L=r.n5z($)))(Te||$)}}(),$.\u0275dir=r.lG2({type:$,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(F,Te){1&F&&r.NdJ("change",function(On){return Te.onChange(On.target.checked)})("blur",function(){return Te.onTouched()})},features:[r._Bn([z]),r.qOj]}),$})();const k={provide:w,useExisting:(0,r.Gpc)(()=>ce),multi:!0},ie=new r.OlP("CompositionEventMode");let ce=(()=>{class $ extends E{constructor(F,Te,Ut){super(F,Te),this._compositionMode=Ut,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function N(){const $=(0,o.q)()?(0,o.q)().getUserAgent():"";return/android (\d+)/.test($.toLowerCase())}())}writeValue(F){this.setProperty("value",null==F?"":F)}_handleInput(F){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(F)}_compositionStart(){this._composing=!0}_compositionEnd(F){this._composing=!1,this._compositionMode&&this.onChange(F)}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(ie,8))},$.\u0275dir=r.lG2({type:$,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(F,Te){1&F&&r.NdJ("input",function(On){return Te._handleInput(On.target.value)})("blur",function(){return Te.onTouched()})("compositionstart",function(){return Te._compositionStart()})("compositionend",function(On){return Te._compositionEnd(On.target.value)})},features:[r._Bn([k]),r.qOj]}),$})();function ve($){return null==$||0===$.length}function Le($){return null!=$&&"number"==typeof $.length}const Re=new r.OlP("NgValidators"),ae=new r.OlP("NgAsyncValidators"),Ue=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class He{static min(L){return function me($){return L=>{if(ve(L.value)||ve($))return null;const F=parseFloat(L.value);return!isNaN(F)&&F<$?{min:{min:$,actual:L.value}}:null}}(L)}static max(L){return function fe($){return L=>{if(ve(L.value)||ve($))return null;const F=parseFloat(L.value);return!isNaN(F)&&F>$?{max:{max:$,actual:L.value}}:null}}(L)}static required(L){return U(L)}static requiredTrue(L){return function J($){return!0===$.value?null:{required:!0}}(L)}static email(L){return function Me($){return ve($.value)||Ue.test($.value)?null:{email:!0}}(L)}static minLength(L){return function se($){return L=>ve(L.value)||!Le(L.value)?null:L.value.length<$?{minlength:{requiredLength:$,actualLength:L.value.length}}:null}(L)}static maxLength(L){return function we($){return L=>Le(L.value)&&L.value.length>$?{maxlength:{requiredLength:$,actualLength:L.value.length}}:null}(L)}static pattern(L){return function ue($){if(!$)return Ye;let L,F;return"string"==typeof $?(F="","^"!==$.charAt(0)&&(F+="^"),F+=$,"$"!==$.charAt($.length-1)&&(F+="$"),L=new RegExp(F)):(F=$.toString(),L=$),Te=>{if(ve(Te.value))return null;const Ut=Te.value;return L.test(Ut)?null:{pattern:{requiredPattern:F,actualValue:Ut}}}}(L)}static nullValidator(L){return null}static compose(L){return Ct(L)}static composeAsync(L){return Xe(L)}}function U($){return ve($.value)?{required:!0}:null}function Ye($){return null}function We($){return null!=$}function rt($){const L=(0,r.QGY)($)?(0,b.D)($):$;return(0,r.CqO)(L),L}function wt($){let L={};return $.forEach(F=>{L=null!=F?Object.assign(Object.assign({},L),F):L}),0===Object.keys(L).length?null:L}function Ae($,L){return L.map(F=>F($))}function kt($){return $.map(L=>function mt($){return!$.validate}(L)?L:F=>L.validate(F))}function Ct($){if(!$)return null;const L=$.filter(We);return 0==L.length?null:function(F){return wt(Ae(F,L))}}function It($){return null!=$?Ct(kt($)):null}function Xe($){if(!$)return null;const L=$.filter(We);return 0==L.length?null:function(F){return function D(...$){if(1===$.length){const L=$[0];if((0,K.k)(L))return C(L,null);if((0,A.K)(L)&&Object.getPrototypeOf(L)===Object.prototype){const F=Object.keys(L);return C(F.map(Te=>L[Te]),F)}}if("function"==typeof $[$.length-1]){const L=$.pop();return C($=1===$.length&&(0,K.k)($[0])?$[0]:$,null).pipe((0,m.U)(F=>L(...F)))}return C($,null)}(Ae(F,L).map(rt)).pipe((0,m.U)(wt))}}function lt($){return null!=$?Xe(kt($)):null}function ct($,L){return null===$?[L]:Array.isArray($)?[...$,L]:[$,L]}function Lt($){return $._rawValidators}function Ie($){return $._rawAsyncValidators}function Pt($){return $?Array.isArray($)?$:[$]:[]}function pt($,L){return Array.isArray($)?$.includes(L):$===L}function Et($,L){const F=Pt(L);return Pt($).forEach(Ut=>{pt(F,Ut)||F.push(Ut)}),F}function ot($,L){return Pt(L).filter(F=>!pt($,F))}class en{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(L){this._rawValidators=L||[],this._composedValidatorFn=It(this._rawValidators)}_setAsyncValidators(L){this._rawAsyncValidators=L||[],this._composedAsyncValidatorFn=lt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(L){this._onDestroyCallbacks.push(L)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(L=>L()),this._onDestroyCallbacks=[]}reset(L){this.control&&this.control.reset(L)}hasError(L,F){return!!this.control&&this.control.hasError(L,F)}getError(L,F){return this.control?this.control.getError(L,F):null}}class Ne extends en{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ve extends en{get formDirective(){return null}get path(){return null}}class ye{constructor(L){this._cd=L}is(L){var F,Te,Ut;return"submitted"===L?!!(null===(F=this._cd)||void 0===F?void 0:F.submitted):!!(null===(Ut=null===(Te=this._cd)||void 0===Te?void 0:Te.control)||void 0===Ut?void 0:Ut[L])}}let Ke=(()=>{class $ extends ye{constructor(F){super(F)}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(Ne,2))},$.\u0275dir=r.lG2({type:$,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(F,Te){2&F&&r.ekj("ng-untouched",Te.is("untouched"))("ng-touched",Te.is("touched"))("ng-pristine",Te.is("pristine"))("ng-dirty",Te.is("dirty"))("ng-valid",Te.is("valid"))("ng-invalid",Te.is("invalid"))("ng-pending",Te.is("pending"))},features:[r.qOj]}),$})(),Y=(()=>{class $ extends ye{constructor(F){super(F)}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(Ve,10))},$.\u0275dir=r.lG2({type:$,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(F,Te){2&F&&r.ekj("ng-untouched",Te.is("untouched"))("ng-touched",Te.is("touched"))("ng-pristine",Te.is("pristine"))("ng-dirty",Te.is("dirty"))("ng-valid",Te.is("valid"))("ng-invalid",Te.is("invalid"))("ng-pending",Te.is("pending"))("ng-submitted",Te.is("submitted"))},features:[r.qOj]}),$})();function yn($,L){return[...L.path,$]}function _n($,L){Ge($,L),L.valueAccessor.writeValue($.value),function xe($,L){L.valueAccessor.registerOnChange(F=>{$._pendingValue=F,$._pendingChange=!0,$._pendingDirty=!0,"change"===$.updateOn&&ge($,L)})}($,L),function de($,L){const F=(Te,Ut)=>{L.valueAccessor.writeValue(Te),Ut&&L.viewToModelUpdate(Te)};$.registerOnChange(F),L._registerOnDestroy(()=>{$._unregisterOnChange(F)})}($,L),function xt($,L){L.valueAccessor.registerOnTouched(()=>{$._pendingTouched=!0,"blur"===$.updateOn&&$._pendingChange&&ge($,L),"submit"!==$.updateOn&&$.markAsTouched()})}($,L),function it($,L){if(L.valueAccessor.setDisabledState){const F=Te=>{L.valueAccessor.setDisabledState(Te)};$.registerOnDisabledChange(F),L._registerOnDestroy(()=>{$._unregisterOnDisabledChange(F)})}}($,L)}function un($,L,F=!0){const Te=()=>{};L.valueAccessor&&(L.valueAccessor.registerOnChange(Te),L.valueAccessor.registerOnTouched(Te)),St($,L),$&&(L._invokeOnDestroyCallbacks(),$._registerOnCollectionChange(()=>{}))}function Dt($,L){$.forEach(F=>{F.registerOnValidatorChange&&F.registerOnValidatorChange(L)})}function Ge($,L){const F=Lt($);null!==L.validator?$.setValidators(ct(F,L.validator)):"function"==typeof F&&$.setValidators([F]);const Te=Ie($);null!==L.asyncValidator?$.setAsyncValidators(ct(Te,L.asyncValidator)):"function"==typeof Te&&$.setAsyncValidators([Te]);const Ut=()=>$.updateValueAndValidity();Dt(L._rawValidators,Ut),Dt(L._rawAsyncValidators,Ut)}function St($,L){let F=!1;if(null!==$){if(null!==L.validator){const Ut=Lt($);if(Array.isArray(Ut)&&Ut.length>0){const On=Ut.filter(Kt=>Kt!==L.validator);On.length!==Ut.length&&(F=!0,$.setValidators(On))}}if(null!==L.asyncValidator){const Ut=Ie($);if(Array.isArray(Ut)&&Ut.length>0){const On=Ut.filter(Kt=>Kt!==L.asyncValidator);On.length!==Ut.length&&(F=!0,$.setAsyncValidators(On))}}}const Te=()=>{};return Dt(L._rawValidators,Te),Dt(L._rawAsyncValidators,Te),F}function ge($,L){$._pendingDirty&&$.markAsDirty(),$.setValue($._pendingValue,{emitModelToViewChange:!1}),L.viewToModelUpdate($._pendingValue),$._pendingChange=!1}function ut($,L){Ge($,L)}function De($,L){if(!$.hasOwnProperty("model"))return!1;const F=$.model;return!!F.isFirstChange()||!Object.is(L,F.currentValue)}function Jt($,L){$._syncPendingControls(),L.forEach(F=>{const Te=F.control;"submit"===Te.updateOn&&Te._pendingChange&&(F.viewToModelUpdate(Te._pendingValue),Te._pendingChange=!1)})}function te($,L){if(!L)return null;let F,Te,Ut;return Array.isArray(L),L.forEach(On=>{On.constructor===ce?F=On:function ft($){return Object.getPrototypeOf($.constructor)===S}(On)?Te=On:Ut=On}),Ut||Te||F||null}function T($,L){const F=$.indexOf(L);F>-1&&$.splice(F,1)}const y="VALID",R="INVALID",Ee="PENDING",et="DISABLED";function Qe($){return(on($)?$.validators:$)||null}function _t($){return Array.isArray($)?It($):$||null}function Rt($,L){return(on(L)?L.asyncValidators:$)||null}function qt($){return Array.isArray($)?lt($):$||null}function on($){return null!=$&&!Array.isArray($)&&"object"==typeof $}const Vt=$=>$ instanceof Qn,bn=$=>$ instanceof ti;function fn($){return Vt($)?$.value:$.getRawValue()}function Dn($,L){const F=bn($),Te=$.controls;if(!(F?Object.keys(Te):Te).length)throw new r.vHH(1e3,"");if(!Te[L])throw new r.vHH(1001,"")}function rn($,L){bn($),$._forEachChild((Te,Ut)=>{if(void 0===L[Ut])throw new r.vHH(1002,"")})}class Nn{constructor(L,F){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=L,this._rawAsyncValidators=F,this._composedValidatorFn=_t(this._rawValidators),this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(L){this._rawValidators=this._composedValidatorFn=L}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(L){this._rawAsyncValidators=this._composedAsyncValidatorFn=L}get parent(){return this._parent}get valid(){return this.status===y}get invalid(){return this.status===R}get pending(){return this.status==Ee}get disabled(){return this.status===et}get enabled(){return this.status!==et}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(L){this._rawValidators=L,this._composedValidatorFn=_t(L)}setAsyncValidators(L){this._rawAsyncValidators=L,this._composedAsyncValidatorFn=qt(L)}addValidators(L){this.setValidators(Et(L,this._rawValidators))}addAsyncValidators(L){this.setAsyncValidators(Et(L,this._rawAsyncValidators))}removeValidators(L){this.setValidators(ot(L,this._rawValidators))}removeAsyncValidators(L){this.setAsyncValidators(ot(L,this._rawAsyncValidators))}hasValidator(L){return pt(this._rawValidators,L)}hasAsyncValidator(L){return pt(this._rawAsyncValidators,L)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(L={}){this.touched=!0,this._parent&&!L.onlySelf&&this._parent.markAsTouched(L)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(L=>L.markAllAsTouched())}markAsUntouched(L={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(F=>{F.markAsUntouched({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}markAsDirty(L={}){this.pristine=!1,this._parent&&!L.onlySelf&&this._parent.markAsDirty(L)}markAsPristine(L={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(F=>{F.markAsPristine({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}markAsPending(L={}){this.status=Ee,!1!==L.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!L.onlySelf&&this._parent.markAsPending(L)}disable(L={}){const F=this._parentMarkedDirty(L.onlySelf);this.status=et,this.errors=null,this._forEachChild(Te=>{Te.disable(Object.assign(Object.assign({},L),{onlySelf:!0}))}),this._updateValue(),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},L),{skipPristineCheck:F})),this._onDisabledChange.forEach(Te=>Te(!0))}enable(L={}){const F=this._parentMarkedDirty(L.onlySelf);this.status=y,this._forEachChild(Te=>{Te.enable(Object.assign(Object.assign({},L),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},L),{skipPristineCheck:F})),this._onDisabledChange.forEach(Te=>Te(!1))}_updateAncestors(L){this._parent&&!L.onlySelf&&(this._parent.updateValueAndValidity(L),L.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(L){this._parent=L}updateValueAndValidity(L={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===y||this.status===Ee)&&this._runAsyncValidator(L.emitEvent)),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!L.onlySelf&&this._parent.updateValueAndValidity(L)}_updateTreeValidity(L={emitEvent:!0}){this._forEachChild(F=>F._updateTreeValidity(L)),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?et:y}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(L){if(this.asyncValidator){this.status=Ee,this._hasOwnPendingAsyncValidator=!0;const F=rt(this.asyncValidator(this));this._asyncValidationSubscription=F.subscribe(Te=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Te,{emitEvent:L})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(L,F={}){this.errors=L,this._updateControlsErrors(!1!==F.emitEvent)}get(L){return function gt($,L,F){if(null==L||(Array.isArray(L)||(L=L.split(F)),Array.isArray(L)&&0===L.length))return null;let Te=$;return L.forEach(Ut=>{Te=bn(Te)?Te.controls.hasOwnProperty(Ut)?Te.controls[Ut]:null:($=>$ instanceof Jn)(Te)&&Te.at(Ut)||null}),Te}(this,L,".")}getError(L,F){const Te=F?this.get(F):this;return Te&&Te.errors?Te.errors[L]:null}hasError(L,F){return!!this.getError(L,F)}get root(){let L=this;for(;L._parent;)L=L._parent;return L}_updateControlsErrors(L){this.status=this._calculateStatus(),L&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(L)}_initObservables(){this.valueChanges=new r.vpe,this.statusChanges=new r.vpe}_calculateStatus(){return this._allControlsDisabled()?et:this.errors?R:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ee)?Ee:this._anyControlsHaveStatus(R)?R:y}_anyControlsHaveStatus(L){return this._anyControls(F=>F.status===L)}_anyControlsDirty(){return this._anyControls(L=>L.dirty)}_anyControlsTouched(){return this._anyControls(L=>L.touched)}_updatePristine(L={}){this.pristine=!this._anyControlsDirty(),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}_updateTouched(L={}){this.touched=this._anyControlsTouched(),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}_isBoxedValue(L){return"object"==typeof L&&null!==L&&2===Object.keys(L).length&&"value"in L&&"disabled"in L}_registerOnCollectionChange(L){this._onCollectionChange=L}_setUpdateStrategy(L){on(L)&&null!=L.updateOn&&(this._updateOn=L.updateOn)}_parentMarkedDirty(L){return!L&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Qn extends Nn{constructor(L=null,F,Te){super(Qe(F),Rt(Te,F)),this._onChange=[],this._pendingChange=!1,this._applyFormState(L),this._setUpdateStrategy(F),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(L,F={}){this.value=this._pendingValue=L,this._onChange.length&&!1!==F.emitModelToViewChange&&this._onChange.forEach(Te=>Te(this.value,!1!==F.emitViewToModelChange)),this.updateValueAndValidity(F)}patchValue(L,F={}){this.setValue(L,F)}reset(L=null,F={}){this._applyFormState(L),this.markAsPristine(F),this.markAsUntouched(F),this.setValue(this.value,F),this._pendingChange=!1}_updateValue(){}_anyControls(L){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(L){this._onChange.push(L)}_unregisterOnChange(L){T(this._onChange,L)}registerOnDisabledChange(L){this._onDisabledChange.push(L)}_unregisterOnDisabledChange(L){T(this._onDisabledChange,L)}_forEachChild(L){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(L){this._isBoxedValue(L)?(this.value=this._pendingValue=L.value,L.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=L}}class ti extends Nn{constructor(L,F,Te){super(Qe(F),Rt(Te,F)),this.controls=L,this._initObservables(),this._setUpdateStrategy(F),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(L,F){return this.controls[L]?this.controls[L]:(this.controls[L]=F,F.setParent(this),F._registerOnCollectionChange(this._onCollectionChange),F)}addControl(L,F,Te={}){this.registerControl(L,F),this.updateValueAndValidity({emitEvent:Te.emitEvent}),this._onCollectionChange()}removeControl(L,F={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],this.updateValueAndValidity({emitEvent:F.emitEvent}),this._onCollectionChange()}setControl(L,F,Te={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],F&&this.registerControl(L,F),this.updateValueAndValidity({emitEvent:Te.emitEvent}),this._onCollectionChange()}contains(L){return this.controls.hasOwnProperty(L)&&this.controls[L].enabled}setValue(L,F={}){rn(this,L),Object.keys(L).forEach(Te=>{Dn(this,Te),this.controls[Te].setValue(L[Te],{onlySelf:!0,emitEvent:F.emitEvent})}),this.updateValueAndValidity(F)}patchValue(L,F={}){null!=L&&(Object.keys(L).forEach(Te=>{this.controls[Te]&&this.controls[Te].patchValue(L[Te],{onlySelf:!0,emitEvent:F.emitEvent})}),this.updateValueAndValidity(F))}reset(L={},F={}){this._forEachChild((Te,Ut)=>{Te.reset(L[Ut],{onlySelf:!0,emitEvent:F.emitEvent})}),this._updatePristine(F),this._updateTouched(F),this.updateValueAndValidity(F)}getRawValue(){return this._reduceChildren({},(L,F,Te)=>(L[Te]=fn(F),L))}_syncPendingControls(){let L=this._reduceChildren(!1,(F,Te)=>!!Te._syncPendingControls()||F);return L&&this.updateValueAndValidity({onlySelf:!0}),L}_forEachChild(L){Object.keys(this.controls).forEach(F=>{const Te=this.controls[F];Te&&L(Te,F)})}_setUpControls(){this._forEachChild(L=>{L.setParent(this),L._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(L){for(const F of Object.keys(this.controls)){const Te=this.controls[F];if(this.contains(F)&&L(Te))return!0}return!1}_reduceValue(){return this._reduceChildren({},(L,F,Te)=>((F.enabled||this.disabled)&&(L[Te]=F.value),L))}_reduceChildren(L,F){let Te=L;return this._forEachChild((Ut,On)=>{Te=F(Te,Ut,On)}),Te}_allControlsDisabled(){for(const L of Object.keys(this.controls))if(this.controls[L].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Jn extends Nn{constructor(L,F,Te){super(Qe(F),Rt(Te,F)),this.controls=L,this._initObservables(),this._setUpdateStrategy(F),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(L){return this.controls[L]}push(L,F={}){this.controls.push(L),this._registerControl(L),this.updateValueAndValidity({emitEvent:F.emitEvent}),this._onCollectionChange()}insert(L,F,Te={}){this.controls.splice(L,0,F),this._registerControl(F),this.updateValueAndValidity({emitEvent:Te.emitEvent})}removeAt(L,F={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),this.controls.splice(L,1),this.updateValueAndValidity({emitEvent:F.emitEvent})}setControl(L,F,Te={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),this.controls.splice(L,1),F&&(this.controls.splice(L,0,F),this._registerControl(F)),this.updateValueAndValidity({emitEvent:Te.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(L,F={}){rn(this,L),L.forEach((Te,Ut)=>{Dn(this,Ut),this.at(Ut).setValue(Te,{onlySelf:!0,emitEvent:F.emitEvent})}),this.updateValueAndValidity(F)}patchValue(L,F={}){null!=L&&(L.forEach((Te,Ut)=>{this.at(Ut)&&this.at(Ut).patchValue(Te,{onlySelf:!0,emitEvent:F.emitEvent})}),this.updateValueAndValidity(F))}reset(L=[],F={}){this._forEachChild((Te,Ut)=>{Te.reset(L[Ut],{onlySelf:!0,emitEvent:F.emitEvent})}),this._updatePristine(F),this._updateTouched(F),this.updateValueAndValidity(F)}getRawValue(){return this.controls.map(L=>fn(L))}clear(L={}){this.controls.length<1||(this._forEachChild(F=>F._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:L.emitEvent}))}_syncPendingControls(){let L=this.controls.reduce((F,Te)=>!!Te._syncPendingControls()||F,!1);return L&&this.updateValueAndValidity({onlySelf:!0}),L}_forEachChild(L){this.controls.forEach((F,Te)=>{L(F,Te)})}_updateValue(){this.value=this.controls.filter(L=>L.enabled||this.disabled).map(L=>L.value)}_anyControls(L){return this.controls.some(F=>F.enabled&&L(F))}_setUpControls(){this._forEachChild(L=>this._registerControl(L))}_allControlsDisabled(){for(const L of this.controls)if(L.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(L){L.setParent(this),L._registerOnCollectionChange(this._onCollectionChange)}}const qn={provide:Ve,useExisting:(0,r.Gpc)(()=>ke)},Ce=(()=>Promise.resolve(null))();let ke=(()=>{class $ extends Ve{constructor(F,Te){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.vpe,this.form=new ti({},It(F),lt(Te))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(F){Ce.then(()=>{const Te=this._findContainer(F.path);F.control=Te.registerControl(F.name,F.control),_n(F.control,F),F.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(F)})}getControl(F){return this.form.get(F.path)}removeControl(F){Ce.then(()=>{const Te=this._findContainer(F.path);Te&&Te.removeControl(F.name),T(this._directives,F)})}addFormGroup(F){Ce.then(()=>{const Te=this._findContainer(F.path),Ut=new ti({});ut(Ut,F),Te.registerControl(F.name,Ut),Ut.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(F){Ce.then(()=>{const Te=this._findContainer(F.path);Te&&Te.removeControl(F.name)})}getFormGroup(F){return this.form.get(F.path)}updateModel(F,Te){Ce.then(()=>{this.form.get(F.path).setValue(Te)})}setValue(F){this.control.setValue(F)}onSubmit(F){return this.submitted=!0,Jt(this.form,this._directives),this.ngSubmit.emit(F),!1}onReset(){this.resetForm()}resetForm(F){this.form.reset(F),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(F){return F.pop(),F.length?this.form.get(F):this.form}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(Re,10),r.Y36(ae,10))},$.\u0275dir=r.lG2({type:$,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(F,Te){1&F&&r.NdJ("submit",function(On){return Te.onSubmit(On)})("reset",function(){return Te.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r._Bn([qn]),r.qOj]}),$})();const Ci={provide:Ne,useExisting:(0,r.Gpc)(()=>si)},ii=(()=>Promise.resolve(null))();let si=(()=>{class $ extends Ne{constructor(F,Te,Ut,On){super(),this.control=new Qn,this._registered=!1,this.update=new r.vpe,this._parent=F,this._setValidators(Te),this._setAsyncValidators(Ut),this.valueAccessor=te(0,On)}ngOnChanges(F){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in F&&this._updateDisabled(F),De(F,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?yn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(F){this.viewModel=F,this.update.emit(F)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){_n(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(F){ii.then(()=>{this.control.setValue(F,{emitViewToModelChange:!1})})}_updateDisabled(F){const Te=F.isDisabled.currentValue,Ut=""===Te||Te&&"false"!==Te;ii.then(()=>{Ut&&!this.control.disabled?this.control.disable():!Ut&&this.control.disabled&&this.control.enable()})}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(Ve,9),r.Y36(Re,10),r.Y36(ae,10),r.Y36(w,10))},$.\u0275dir=r.lG2({type:$,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r._Bn([Ci]),r.qOj,r.TTD]}),$})(),pi=(()=>{class ${}return $.\u0275fac=function(F){return new(F||$)},$.\u0275dir=r.lG2({type:$,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),$})(),qi=(()=>{class ${}return $.\u0275fac=function(F){return new(F||$)},$.\u0275mod=r.oAB({type:$}),$.\u0275inj=r.cJS({}),$})();const Co=new r.OlP("NgModelWithFormControlWarning"),Xi={provide:Ne,useExisting:(0,r.Gpc)(()=>bo)};let bo=(()=>{class $ extends Ne{constructor(F,Te,Ut,On){super(),this._ngModelWarningConfig=On,this.update=new r.vpe,this._ngModelWarningSent=!1,this._setValidators(F),this._setAsyncValidators(Te),this.valueAccessor=te(0,Ut)}set isDisabled(F){}ngOnChanges(F){if(this._isControlChanged(F)){const Te=F.form.previousValue;Te&&un(Te,this,!1),_n(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}De(F,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&un(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(F){this.viewModel=F,this.update.emit(F)}_isControlChanged(F){return F.hasOwnProperty("form")}}return $._ngModelWarningSentOnce=!1,$.\u0275fac=function(F){return new(F||$)(r.Y36(Re,10),r.Y36(ae,10),r.Y36(w,10),r.Y36(Co,8))},$.\u0275dir=r.lG2({type:$,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r._Bn([Xi]),r.qOj,r.TTD]}),$})();const Do={provide:Ve,useExisting:(0,r.Gpc)(()=>ro)};let ro=(()=>{class $ extends Ve{constructor(F,Te){super(),this.validators=F,this.asyncValidators=Te,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r.vpe,this._setValidators(F),this._setAsyncValidators(Te)}ngOnChanges(F){this._checkFormPresent(),F.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(St(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(F){const Te=this.form.get(F.path);return _n(Te,F),Te.updateValueAndValidity({emitEvent:!1}),this.directives.push(F),Te}getControl(F){return this.form.get(F.path)}removeControl(F){un(F.control||null,F,!1),T(this.directives,F)}addFormGroup(F){this._setUpFormContainer(F)}removeFormGroup(F){this._cleanUpFormContainer(F)}getFormGroup(F){return this.form.get(F.path)}addFormArray(F){this._setUpFormContainer(F)}removeFormArray(F){this._cleanUpFormContainer(F)}getFormArray(F){return this.form.get(F.path)}updateModel(F,Te){this.form.get(F.path).setValue(Te)}onSubmit(F){return this.submitted=!0,Jt(this.form,this.directives),this.ngSubmit.emit(F),!1}onReset(){this.resetForm()}resetForm(F){this.form.reset(F),this.submitted=!1}_updateDomValue(){this.directives.forEach(F=>{const Te=F.control,Ut=this.form.get(F.path);Te!==Ut&&(un(Te||null,F),Vt(Ut)&&(_n(Ut,F),F.control=Ut))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(F){const Te=this.form.get(F.path);ut(Te,F),Te.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(F){if(this.form){const Te=this.form.get(F.path);Te&&function V($,L){return St($,L)}(Te,F)&&Te.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ge(this.form,this),this._oldForm&&St(this._oldForm,this)}_checkFormPresent(){}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(Re,10),r.Y36(ae,10))},$.\u0275dir=r.lG2({type:$,selectors:[["","formGroup",""]],hostBindings:function(F,Te){1&F&&r.NdJ("submit",function(On){return Te.onSubmit(On)})("reset",function(){return Te.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r._Bn([Do]),r.qOj,r.TTD]}),$})();const So={provide:Ne,useExisting:(0,r.Gpc)(()=>Vi)};let Vi=(()=>{class $ extends Ne{constructor(F,Te,Ut,On,Kt){super(),this._ngModelWarningConfig=Kt,this._added=!1,this.update=new r.vpe,this._ngModelWarningSent=!1,this._parent=F,this._setValidators(Te),this._setAsyncValidators(Ut),this.valueAccessor=te(0,On)}set isDisabled(F){}ngOnChanges(F){this._added||this._setUpControl(),De(F,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(F){this.viewModel=F,this.update.emit(F)}get path(){return yn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return $._ngModelWarningSentOnce=!1,$.\u0275fac=function(F){return new(F||$)(r.Y36(Ve,13),r.Y36(Re,10),r.Y36(ae,10),r.Y36(w,10),r.Y36(Co,8))},$.\u0275dir=r.lG2({type:$,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r._Bn([So]),r.qOj,r.TTD]}),$})();const er={provide:Re,useExisting:(0,r.Gpc)(()=>ji),multi:!0};let ji=(()=>{class ${constructor(){this._required=!1}get required(){return this._required}set required(F){this._required=null!=F&&!1!==F&&"false"!=`${F}`,this._onChange&&this._onChange()}validate(F){return this.required?U(F):null}registerOnValidatorChange(F){this._onChange=F}}return $.\u0275fac=function(F){return new(F||$)},$.\u0275dir=r.lG2({type:$,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(F,Te){2&F&&r.uIk("required",Te.required?"":null)},inputs:{required:"required"},features:[r._Bn([er])]}),$})(),oi=(()=>{class ${}return $.\u0275fac=function(F){return new(F||$)},$.\u0275mod=r.oAB({type:$}),$.\u0275inj=r.cJS({imports:[[qi]]}),$})(),$n=(()=>{class ${}return $.\u0275fac=function(F){return new(F||$)},$.\u0275mod=r.oAB({type:$}),$.\u0275inj=r.cJS({imports:[oi]}),$})(),hi=(()=>{class ${static withConfig(F){return{ngModule:$,providers:[{provide:Co,useValue:F.warnOnNgModelWithFormControl}]}}}return $.\u0275fac=function(F){return new(F||$)},$.\u0275mod=r.oAB({type:$}),$.\u0275inj=r.cJS({imports:[oi]}),$})()},6360:(Ft,Oe,c)=>{c.d(Oe,{Qb:()=>L,PW:()=>On});var r=c(5e3),o=c(2313),l=c(1777);function K(){return"undefined"!=typeof window&&void 0!==window.document}function m(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function A(re){switch(re.length){case 0:return new l.ZN;case 1:return re[0];default:return new l.ZE(re)}}function b(re,u,d,x,he={},Se={}){const qe=[],nt=[];let Ot=-1,Wt=null;if(x.forEach(hn=>{const Sn=hn.offset,Pn=Sn==Ot,Wn=Pn&&Wt||{};Object.keys(hn).forEach(In=>{let Vn=In,Hn=hn[In];if("offset"!==In)switch(Vn=u.normalizePropertyName(Vn,qe),Hn){case l.k1:Hn=he[In];break;case l.l3:Hn=Se[In];break;default:Hn=u.normalizeStyleValue(In,Vn,Hn,qe)}Wn[Vn]=Hn}),Pn||nt.push(Wn),Wt=Wn,Ot=Sn}),qe.length){const hn="\n - ";throw new Error(`Unable to animate due to the following errors:${hn}${qe.join(hn)}`)}return nt}function D(re,u,d,x){switch(u){case"start":re.onStart(()=>x(d&&C(d,"start",re)));break;case"done":re.onDone(()=>x(d&&C(d,"done",re)));break;case"destroy":re.onDestroy(()=>x(d&&C(d,"destroy",re)))}}function C(re,u,d){const x=d.totalTime,Se=E(re.element,re.triggerName,re.fromState,re.toState,u||re.phaseName,null==x?re.totalTime:x,!!d.disabled),qe=re._data;return null!=qe&&(Se._data=qe),Se}function E(re,u,d,x,he="",Se=0,qe){return{element:re,triggerName:u,fromState:d,toState:x,phaseName:he,totalTime:Se,disabled:!!qe}}function S(re,u,d){let x;return re instanceof Map?(x=re.get(u),x||re.set(u,x=d)):(x=re[u],x||(x=re[u]=d)),x}function w(re){const u=re.indexOf(":");return[re.substring(1,u),re.substr(u+1)]}let z=(re,u)=>!1,M=(re,u,d)=>[];(m()||"undefined"!=typeof Element)&&(z=K()?(re,u)=>{for(;u&&u!==document.documentElement;){if(u===re)return!0;u=u.parentNode||u.host}return!1}:(re,u)=>re.contains(u),M=(re,u,d)=>{if(d)return Array.from(re.querySelectorAll(u));const x=re.querySelector(u);return x?[x]:[]});let ie=null,ce=!1;function ve(re){ie||(ie=function Le(){return"undefined"!=typeof document?document.body:null}()||{},ce=!!ie.style&&"WebkitAppearance"in ie.style);let u=!0;return ie.style&&!function N(re){return"ebkit"==re.substring(1,6)}(re)&&(u=re in ie.style,!u&&ce&&(u="Webkit"+re.charAt(0).toUpperCase()+re.substr(1)in ie.style)),u}const Re=z,ae=M;function Ue(re){const u={};return Object.keys(re).forEach(d=>{const x=d.replace(/([a-z])([A-Z])/g,"$1-$2");u[x]=re[d]}),u}let He=(()=>{class re{validateStyleProperty(d){return ve(d)}matchesElement(d,x){return!1}containsElement(d,x){return Re(d,x)}query(d,x,he){return ae(d,x,he)}computeStyle(d,x,he){return he||""}animate(d,x,he,Se,qe,nt=[],Ot){return new l.ZN(he,Se)}}return re.\u0275fac=function(d){return new(d||re)},re.\u0275prov=r.Yz7({token:re,factory:re.\u0275fac}),re})(),me=(()=>{class re{}return re.NOOP=new He,re})();const Me="ng-enter",se="ng-leave",we="ng-trigger",ue=".ng-trigger",Ye="ng-animating",We=".ng-animating";function rt(re){if("number"==typeof re)return re;const u=re.match(/^(-?[\.\d]+)(m?s)/);return!u||u.length<2?0:wt(parseFloat(u[1]),u[2])}function wt(re,u){return"s"===u?1e3*re:re}function Ae(re,u,d){return re.hasOwnProperty("duration")?re:function mt(re,u,d){let he,Se=0,qe="";if("string"==typeof re){const nt=re.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===nt)return u.push(`The provided timing value "${re}" is invalid.`),{duration:0,delay:0,easing:""};he=wt(parseFloat(nt[1]),nt[2]);const Ot=nt[3];null!=Ot&&(Se=wt(parseFloat(Ot),nt[4]));const Wt=nt[5];Wt&&(qe=Wt)}else he=re;if(!d){let nt=!1,Ot=u.length;he<0&&(u.push("Duration values below 0 are not allowed for this animation step."),nt=!0),Se<0&&(u.push("Delay values below 0 are not allowed for this animation step."),nt=!0),nt&&u.splice(Ot,0,`The provided timing value "${re}" is invalid.`)}return{duration:he,delay:Se,easing:qe}}(re,u,d)}function kt(re,u={}){return Object.keys(re).forEach(d=>{u[d]=re[d]}),u}function It(re,u,d={}){if(u)for(let x in re)d[x]=re[x];else kt(re,d);return d}function Xe(re,u,d){return d?u+":"+d+";":""}function lt(re){let u="";for(let d=0;d{const he=Ve(x);d&&!d.hasOwnProperty(x)&&(d[x]=re.style[he]),re.style[he]=u[x]}),m()&<(re))}function Lt(re,u){re.style&&(Object.keys(u).forEach(d=>{const x=Ve(d);re.style[x]=""}),m()&<(re))}function Ie(re){return Array.isArray(re)?1==re.length?re[0]:(0,l.vP)(re):re}const pt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Et(re){let u=[];if("string"==typeof re){let d;for(;d=pt.exec(re);)u.push(d[1]);pt.lastIndex=0}return u}function ot(re,u,d){const x=re.toString(),he=x.replace(pt,(Se,qe)=>{let nt=u[qe];return u.hasOwnProperty(qe)||(d.push(`Please provide a value for the animation param ${qe}`),nt=""),nt.toString()});return he==x?re:he}function en(re){const u=[];let d=re.next();for(;!d.done;)u.push(d.value),d=re.next();return u}const Ne=/-+([a-z0-9])/g;function Ve(re){return re.replace(Ne,(...u)=>u[1].toUpperCase())}function ye(re){return re.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function yt(re,u){return 0===re||0===u}function Mt(re,u,d){const x=Object.keys(d);if(x.length&&u.length){let Se=u[0],qe=[];if(x.forEach(nt=>{Se.hasOwnProperty(nt)||qe.push(nt),Se[nt]=d[nt]}),qe.length)for(var he=1;hefunction Fe(re,u,d){if(":"==re[0]){const Ot=function Je(re,u){switch(re){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(d,x)=>parseFloat(x)>parseFloat(d);case":decrement":return(d,x)=>parseFloat(x) *"}}(re,d);if("function"==typeof Ot)return void u.push(Ot);re=Ot}const x=re.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==x||x.length<4)return d.push(`The provided transition expression "${re}" is not supported`),u;const he=x[1],Se=x[2],qe=x[3];u.push(je(he,qe));"<"==Se[0]&&!(he==G&&qe==G)&&u.push(je(qe,he))}(x,d,u)):d.push(re),d}const vt=new Set(["true","1"]),Tt=new Set(["false","0"]);function je(re,u){const d=vt.has(re)||Tt.has(re),x=vt.has(u)||Tt.has(u);return(he,Se)=>{let qe=re==G||re==he,nt=u==G||u==Se;return!qe&&d&&"boolean"==typeof he&&(qe=he?vt.has(re):Tt.has(re)),!nt&&x&&"boolean"==typeof Se&&(nt=Se?vt.has(u):Tt.has(u)),qe&&nt}}const jt=new RegExp("s*:selfs*,?","g");function Bt(re,u,d){return new cn(re).build(u,d)}class cn{constructor(u){this._driver=u}build(u,d){const x=new Gn(d);return this._resetContextStyleTimingState(x),Ke(this,Ie(u),x)}_resetContextStyleTimingState(u){u.currentQuerySelector="",u.collectedStyles={},u.collectedStyles[""]={},u.currentTime=0}visitTrigger(u,d){let x=d.queryCount=0,he=d.depCount=0;const Se=[],qe=[];return"@"==u.name.charAt(0)&&d.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),u.definitions.forEach(nt=>{if(this._resetContextStyleTimingState(d),0==nt.type){const Ot=nt,Wt=Ot.name;Wt.toString().split(/\s*,\s*/).forEach(hn=>{Ot.name=hn,Se.push(this.visitState(Ot,d))}),Ot.name=Wt}else if(1==nt.type){const Ot=this.visitTransition(nt,d);x+=Ot.queryCount,he+=Ot.depCount,qe.push(Ot)}else d.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:u.name,states:Se,transitions:qe,queryCount:x,depCount:he,options:null}}visitState(u,d){const x=this.visitStyle(u.styles,d),he=u.options&&u.options.params||null;if(x.containsDynamicStyles){const Se=new Set,qe=he||{};if(x.styles.forEach(nt=>{if(yn(nt)){const Ot=nt;Object.keys(Ot).forEach(Wt=>{Et(Ot[Wt]).forEach(hn=>{qe.hasOwnProperty(hn)||Se.add(hn)})})}}),Se.size){const nt=en(Se.values());d.errors.push(`state("${u.name}", ...) must define default values for all the following style substitutions: ${nt.join(", ")}`)}}return{type:0,name:u.name,style:x,options:he?{params:he}:null}}visitTransition(u,d){d.queryCount=0,d.depCount=0;const x=Ke(this,Ie(u.animation),d);return{type:1,matchers:Q(u.expr,d.errors),animation:x,queryCount:d.queryCount,depCount:d.depCount,options:un(u.options)}}visitSequence(u,d){return{type:2,steps:u.steps.map(x=>Ke(this,x,d)),options:un(u.options)}}visitGroup(u,d){const x=d.currentTime;let he=0;const Se=u.steps.map(qe=>{d.currentTime=x;const nt=Ke(this,qe,d);return he=Math.max(he,d.currentTime),nt});return d.currentTime=he,{type:3,steps:Se,options:un(u.options)}}visitAnimate(u,d){const x=function _n(re,u){let d=null;if(re.hasOwnProperty("duration"))d=re;else if("number"==typeof re)return Dt(Ae(re,u).duration,0,"");const x=re;if(x.split(/\s+/).some(Se=>"{"==Se.charAt(0)&&"{"==Se.charAt(1))){const Se=Dt(0,0,"");return Se.dynamic=!0,Se.strValue=x,Se}return d=d||Ae(x,u),Dt(d.duration,d.delay,d.easing)}(u.timings,d.errors);d.currentAnimateTimings=x;let he,Se=u.styles?u.styles:(0,l.oB)({});if(5==Se.type)he=this.visitKeyframes(Se,d);else{let qe=u.styles,nt=!1;if(!qe){nt=!0;const Wt={};x.easing&&(Wt.easing=x.easing),qe=(0,l.oB)(Wt)}d.currentTime+=x.duration+x.delay;const Ot=this.visitStyle(qe,d);Ot.isEmptyStep=nt,he=Ot}return d.currentAnimateTimings=null,{type:4,timings:x,style:he,options:null}}visitStyle(u,d){const x=this._makeStyleAst(u,d);return this._validateStyleAst(x,d),x}_makeStyleAst(u,d){const x=[];Array.isArray(u.styles)?u.styles.forEach(qe=>{"string"==typeof qe?qe==l.l3?x.push(qe):d.errors.push(`The provided style string value ${qe} is not allowed.`):x.push(qe)}):x.push(u.styles);let he=!1,Se=null;return x.forEach(qe=>{if(yn(qe)){const nt=qe,Ot=nt.easing;if(Ot&&(Se=Ot,delete nt.easing),!he)for(let Wt in nt)if(nt[Wt].toString().indexOf("{{")>=0){he=!0;break}}}),{type:6,styles:x,easing:Se,offset:u.offset,containsDynamicStyles:he,options:null}}_validateStyleAst(u,d){const x=d.currentAnimateTimings;let he=d.currentTime,Se=d.currentTime;x&&Se>0&&(Se-=x.duration+x.delay),u.styles.forEach(qe=>{"string"!=typeof qe&&Object.keys(qe).forEach(nt=>{if(!this._driver.validateStyleProperty(nt))return void d.errors.push(`The provided animation property "${nt}" is not a supported CSS property for animations`);const Ot=d.collectedStyles[d.currentQuerySelector],Wt=Ot[nt];let hn=!0;Wt&&(Se!=he&&Se>=Wt.startTime&&he<=Wt.endTime&&(d.errors.push(`The CSS property "${nt}" that exists between the times of "${Wt.startTime}ms" and "${Wt.endTime}ms" is also being animated in a parallel animation between the times of "${Se}ms" and "${he}ms"`),hn=!1),Se=Wt.startTime),hn&&(Ot[nt]={startTime:Se,endTime:he}),d.options&&function Pt(re,u,d){const x=u.params||{},he=Et(re);he.length&&he.forEach(Se=>{x.hasOwnProperty(Se)||d.push(`Unable to resolve the local animation param ${Se} in the given list of values`)})}(qe[nt],d.options,d.errors)})})}visitKeyframes(u,d){const x={type:5,styles:[],options:null};if(!d.currentAnimateTimings)return d.errors.push("keyframes() must be placed inside of a call to animate()"),x;let Se=0;const qe=[];let nt=!1,Ot=!1,Wt=0;const hn=u.steps.map(bi=>{const Ei=this._makeStyleAst(bi,d);let Ai=null!=Ei.offset?Ei.offset:function xn(re){if("string"==typeof re)return null;let u=null;if(Array.isArray(re))re.forEach(d=>{if(yn(d)&&d.hasOwnProperty("offset")){const x=d;u=parseFloat(x.offset),delete x.offset}});else if(yn(re)&&re.hasOwnProperty("offset")){const d=re;u=parseFloat(d.offset),delete d.offset}return u}(Ei.styles),Fi=0;return null!=Ai&&(Se++,Fi=Ei.offset=Ai),Ot=Ot||Fi<0||Fi>1,nt=nt||Fi0&&Se{const Ai=Pn>0?Ei==Wn?1:Pn*Ei:qe[Ei],Fi=Ai*Hn;d.currentTime=In+Vn.delay+Fi,Vn.duration=Fi,this._validateStyleAst(bi,d),bi.offset=Ai,x.styles.push(bi)}),x}visitReference(u,d){return{type:8,animation:Ke(this,Ie(u.animation),d),options:un(u.options)}}visitAnimateChild(u,d){return d.depCount++,{type:9,options:un(u.options)}}visitAnimateRef(u,d){return{type:10,animation:this.visitReference(u.animation,d),options:un(u.options)}}visitQuery(u,d){const x=d.currentQuerySelector,he=u.options||{};d.queryCount++,d.currentQuery=u;const[Se,qe]=function an(re){const u=!!re.split(/\s*,\s*/).find(d=>":self"==d);return u&&(re=re.replace(jt,"")),re=re.replace(/@\*/g,ue).replace(/@\w+/g,d=>ue+"-"+d.substr(1)).replace(/:animating/g,We),[re,u]}(u.selector);d.currentQuerySelector=x.length?x+" "+Se:Se,S(d.collectedStyles,d.currentQuerySelector,{});const nt=Ke(this,Ie(u.animation),d);return d.currentQuery=null,d.currentQuerySelector=x,{type:11,selector:Se,limit:he.limit||0,optional:!!he.optional,includeSelf:qe,animation:nt,originalSelector:u.selector,options:un(u.options)}}visitStagger(u,d){d.currentQuery||d.errors.push("stagger() can only be used inside of query()");const x="full"===u.timings?{duration:0,delay:0,easing:"full"}:Ae(u.timings,d.errors,!0);return{type:12,animation:Ke(this,Ie(u.animation),d),timings:x,options:null}}}class Gn{constructor(u){this.errors=u,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function yn(re){return!Array.isArray(re)&&"object"==typeof re}function un(re){return re?(re=kt(re)).params&&(re.params=function nn(re){return re?kt(re):null}(re.params)):re={},re}function Dt(re,u,d){return{duration:re,delay:u,easing:d}}function it(re,u,d,x,he,Se,qe=null,nt=!1){return{type:1,element:re,keyframes:u,preStyleProps:d,postStyleProps:x,duration:he,delay:Se,totalTime:he+Se,easing:qe,subTimeline:nt}}class Ge{constructor(){this._map=new Map}get(u){return this._map.get(u)||[]}append(u,d){let x=this._map.get(u);x||this._map.set(u,x=[]),x.push(...d)}has(u){return this._map.has(u)}clear(){this._map.clear()}}const xt=new RegExp(":enter","g"),de=new RegExp(":leave","g");function ut(re,u,d,x,he,Se={},qe={},nt,Ot,Wt=[]){return(new V).buildKeyframes(re,u,d,x,he,Se,qe,nt,Ot,Wt)}class V{buildKeyframes(u,d,x,he,Se,qe,nt,Ot,Wt,hn=[]){Wt=Wt||new Ge;const Sn=new oe(u,d,Wt,he,Se,hn,[]);Sn.options=Ot,Sn.currentTimeline.setStyles([qe],null,Sn.errors,Ot),Ke(this,x,Sn);const Pn=Sn.timelines.filter(Wn=>Wn.containsAnimation());if(Object.keys(nt).length){let Wn;for(let In=Pn.length-1;In>=0;In--){const Vn=Pn[In];if(Vn.element===d){Wn=Vn;break}}Wn&&!Wn.allowOnlyTimelineStyles()&&Wn.setStyles([nt],null,Sn.errors,Ot)}return Pn.length?Pn.map(Wn=>Wn.buildKeyframes()):[it(d,[],[],[],0,0,"",!1)]}visitTrigger(u,d){}visitState(u,d){}visitTransition(u,d){}visitAnimateChild(u,d){const x=d.subInstructions.get(d.element);if(x){const he=d.createSubContext(u.options),Se=d.currentTimeline.currentTime,qe=this._visitSubInstructions(x,he,he.options);Se!=qe&&d.transformIntoNewTimeline(qe)}d.previousNode=u}visitAnimateRef(u,d){const x=d.createSubContext(u.options);x.transformIntoNewTimeline(),this.visitReference(u.animation,x),d.transformIntoNewTimeline(x.currentTimeline.currentTime),d.previousNode=u}_visitSubInstructions(u,d,x){let Se=d.currentTimeline.currentTime;const qe=null!=x.duration?rt(x.duration):null,nt=null!=x.delay?rt(x.delay):null;return 0!==qe&&u.forEach(Ot=>{const Wt=d.appendInstructionToTimeline(Ot,qe,nt);Se=Math.max(Se,Wt.duration+Wt.delay)}),Se}visitReference(u,d){d.updateOptions(u.options,!0),Ke(this,u.animation,d),d.previousNode=u}visitSequence(u,d){const x=d.subContextCount;let he=d;const Se=u.options;if(Se&&(Se.params||Se.delay)&&(he=d.createSubContext(Se),he.transformIntoNewTimeline(),null!=Se.delay)){6==he.previousNode.type&&(he.currentTimeline.snapshotCurrentStyles(),he.previousNode=Z);const qe=rt(Se.delay);he.delayNextStep(qe)}u.steps.length&&(u.steps.forEach(qe=>Ke(this,qe,he)),he.currentTimeline.applyStylesToKeyframe(),he.subContextCount>x&&he.transformIntoNewTimeline()),d.previousNode=u}visitGroup(u,d){const x=[];let he=d.currentTimeline.currentTime;const Se=u.options&&u.options.delay?rt(u.options.delay):0;u.steps.forEach(qe=>{const nt=d.createSubContext(u.options);Se&&nt.delayNextStep(Se),Ke(this,qe,nt),he=Math.max(he,nt.currentTimeline.currentTime),x.push(nt.currentTimeline)}),x.forEach(qe=>d.currentTimeline.mergeTimelineCollectedStyles(qe)),d.transformIntoNewTimeline(he),d.previousNode=u}_visitTiming(u,d){if(u.dynamic){const x=u.strValue;return Ae(d.params?ot(x,d.params,d.errors):x,d.errors)}return{duration:u.duration,delay:u.delay,easing:u.easing}}visitAnimate(u,d){const x=d.currentAnimateTimings=this._visitTiming(u.timings,d),he=d.currentTimeline;x.delay&&(d.incrementTime(x.delay),he.snapshotCurrentStyles());const Se=u.style;5==Se.type?this.visitKeyframes(Se,d):(d.incrementTime(x.duration),this.visitStyle(Se,d),he.applyStylesToKeyframe()),d.currentAnimateTimings=null,d.previousNode=u}visitStyle(u,d){const x=d.currentTimeline,he=d.currentAnimateTimings;!he&&x.getCurrentStyleProperties().length&&x.forwardFrame();const Se=he&&he.easing||u.easing;u.isEmptyStep?x.applyEmptyStep(Se):x.setStyles(u.styles,Se,d.errors,d.options),d.previousNode=u}visitKeyframes(u,d){const x=d.currentAnimateTimings,he=d.currentTimeline.duration,Se=x.duration,nt=d.createSubContext().currentTimeline;nt.easing=x.easing,u.styles.forEach(Ot=>{nt.forwardTime((Ot.offset||0)*Se),nt.setStyles(Ot.styles,Ot.easing,d.errors,d.options),nt.applyStylesToKeyframe()}),d.currentTimeline.mergeTimelineCollectedStyles(nt),d.transformIntoNewTimeline(he+Se),d.previousNode=u}visitQuery(u,d){const x=d.currentTimeline.currentTime,he=u.options||{},Se=he.delay?rt(he.delay):0;Se&&(6===d.previousNode.type||0==x&&d.currentTimeline.getCurrentStyleProperties().length)&&(d.currentTimeline.snapshotCurrentStyles(),d.previousNode=Z);let qe=x;const nt=d.invokeQuery(u.selector,u.originalSelector,u.limit,u.includeSelf,!!he.optional,d.errors);d.currentQueryTotal=nt.length;let Ot=null;nt.forEach((Wt,hn)=>{d.currentQueryIndex=hn;const Sn=d.createSubContext(u.options,Wt);Se&&Sn.delayNextStep(Se),Wt===d.element&&(Ot=Sn.currentTimeline),Ke(this,u.animation,Sn),Sn.currentTimeline.applyStylesToKeyframe(),qe=Math.max(qe,Sn.currentTimeline.currentTime)}),d.currentQueryIndex=0,d.currentQueryTotal=0,d.transformIntoNewTimeline(qe),Ot&&(d.currentTimeline.mergeTimelineCollectedStyles(Ot),d.currentTimeline.snapshotCurrentStyles()),d.previousNode=u}visitStagger(u,d){const x=d.parentContext,he=d.currentTimeline,Se=u.timings,qe=Math.abs(Se.duration),nt=qe*(d.currentQueryTotal-1);let Ot=qe*d.currentQueryIndex;switch(Se.duration<0?"reverse":Se.easing){case"reverse":Ot=nt-Ot;break;case"full":Ot=x.currentStaggerTime}const hn=d.currentTimeline;Ot&&hn.delayNextStep(Ot);const Sn=hn.currentTime;Ke(this,u.animation,d),d.previousNode=u,x.currentStaggerTime=he.currentTime-Sn+(he.startTime-x.currentTimeline.startTime)}}const Z={};class oe{constructor(u,d,x,he,Se,qe,nt,Ot){this._driver=u,this.element=d,this.subInstructions=x,this._enterClassName=he,this._leaveClassName=Se,this.errors=qe,this.timelines=nt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Z,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ot||new De(this._driver,d,0),nt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(u,d){if(!u)return;const x=u;let he=this.options;null!=x.duration&&(he.duration=rt(x.duration)),null!=x.delay&&(he.delay=rt(x.delay));const Se=x.params;if(Se){let qe=he.params;qe||(qe=this.options.params={}),Object.keys(Se).forEach(nt=>{(!d||!qe.hasOwnProperty(nt))&&(qe[nt]=ot(Se[nt],qe,this.errors))})}}_copyOptions(){const u={};if(this.options){const d=this.options.params;if(d){const x=u.params={};Object.keys(d).forEach(he=>{x[he]=d[he]})}}return u}createSubContext(u=null,d,x){const he=d||this.element,Se=new oe(this._driver,he,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(he,x||0));return Se.previousNode=this.previousNode,Se.currentAnimateTimings=this.currentAnimateTimings,Se.options=this._copyOptions(),Se.updateOptions(u),Se.currentQueryIndex=this.currentQueryIndex,Se.currentQueryTotal=this.currentQueryTotal,Se.parentContext=this,this.subContextCount++,Se}transformIntoNewTimeline(u){return this.previousNode=Z,this.currentTimeline=this.currentTimeline.fork(this.element,u),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(u,d,x){const he={duration:null!=d?d:u.duration,delay:this.currentTimeline.currentTime+(null!=x?x:0)+u.delay,easing:""},Se=new ft(this._driver,u.element,u.keyframes,u.preStyleProps,u.postStyleProps,he,u.stretchStartingKeyframe);return this.timelines.push(Se),he}incrementTime(u){this.currentTimeline.forwardTime(this.currentTimeline.duration+u)}delayNextStep(u){u>0&&this.currentTimeline.delayNextStep(u)}invokeQuery(u,d,x,he,Se,qe){let nt=[];if(he&&nt.push(this.element),u.length>0){u=(u=u.replace(xt,"."+this._enterClassName)).replace(de,"."+this._leaveClassName);let Wt=this._driver.query(this.element,u,1!=x);0!==x&&(Wt=x<0?Wt.slice(Wt.length+x,Wt.length):Wt.slice(0,x)),nt.push(...Wt)}return!Se&&0==nt.length&&qe.push(`\`query("${d}")\` returned zero elements. (Use \`query("${d}", { optional: true })\` if you wish to allow this.)`),nt}}class De{constructor(u,d,x,he){this._driver=u,this.element=d,this.startTime=x,this._elementTimelineStylesLookup=he,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(d),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(d,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(u){const d=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||d?(this.forwardTime(this.currentTime+u),d&&this.snapshotCurrentStyles()):this.startTime+=u}fork(u,d){return this.applyStylesToKeyframe(),new De(this._driver,u,d||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(u){this.applyStylesToKeyframe(),this.duration=u,this._loadKeyframe()}_updateStyle(u,d){this._localTimelineStyles[u]=d,this._globalTimelineStyles[u]=d,this._styleSummary[u]={time:this.currentTime,value:d}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(u){u&&(this._previousKeyframe.easing=u),Object.keys(this._globalTimelineStyles).forEach(d=>{this._backFill[d]=this._globalTimelineStyles[d]||l.l3,this._currentKeyframe[d]=l.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(u,d,x,he){d&&(this._previousKeyframe.easing=d);const Se=he&&he.params||{},qe=function te(re,u){const d={};let x;return re.forEach(he=>{"*"===he?(x=x||Object.keys(u),x.forEach(Se=>{d[Se]=l.l3})):It(he,!1,d)}),d}(u,this._globalTimelineStyles);Object.keys(qe).forEach(nt=>{const Ot=ot(qe[nt],Se,x);this._pendingStyles[nt]=Ot,this._localTimelineStyles.hasOwnProperty(nt)||(this._backFill[nt]=this._globalTimelineStyles.hasOwnProperty(nt)?this._globalTimelineStyles[nt]:l.l3),this._updateStyle(nt,Ot)})}applyStylesToKeyframe(){const u=this._pendingStyles,d=Object.keys(u);0!=d.length&&(this._pendingStyles={},d.forEach(x=>{this._currentKeyframe[x]=u[x]}),Object.keys(this._localTimelineStyles).forEach(x=>{this._currentKeyframe.hasOwnProperty(x)||(this._currentKeyframe[x]=this._localTimelineStyles[x])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(u=>{const d=this._localTimelineStyles[u];this._pendingStyles[u]=d,this._updateStyle(u,d)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const u=[];for(let d in this._currentKeyframe)u.push(d);return u}mergeTimelineCollectedStyles(u){Object.keys(u._styleSummary).forEach(d=>{const x=this._styleSummary[d],he=u._styleSummary[d];(!x||he.time>x.time)&&this._updateStyle(d,he.value)})}buildKeyframes(){this.applyStylesToKeyframe();const u=new Set,d=new Set,x=1===this._keyframes.size&&0===this.duration;let he=[];this._keyframes.forEach((nt,Ot)=>{const Wt=It(nt,!0);Object.keys(Wt).forEach(hn=>{const Sn=Wt[hn];Sn==l.k1?u.add(hn):Sn==l.l3&&d.add(hn)}),x||(Wt.offset=Ot/this.duration),he.push(Wt)});const Se=u.size?en(u.values()):[],qe=d.size?en(d.values()):[];if(x){const nt=he[0],Ot=kt(nt);nt.offset=0,Ot.offset=1,he=[nt,Ot]}return it(this.element,he,Se,qe,this.duration,this.startTime,this.easing,!1)}}class ft extends De{constructor(u,d,x,he,Se,qe,nt=!1){super(u,d,qe.delay),this.keyframes=x,this.preStyleProps=he,this.postStyleProps=Se,this._stretchStartingKeyframe=nt,this.timings={duration:qe.duration,delay:qe.delay,easing:qe.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let u=this.keyframes,{delay:d,duration:x,easing:he}=this.timings;if(this._stretchStartingKeyframe&&d){const Se=[],qe=x+d,nt=d/qe,Ot=It(u[0],!1);Ot.offset=0,Se.push(Ot);const Wt=It(u[0],!1);Wt.offset=Jt(nt),Se.push(Wt);const hn=u.length-1;for(let Sn=1;Sn<=hn;Sn++){let Pn=It(u[Sn],!1);Pn.offset=Jt((d+Pn.offset*x)/qe),Se.push(Pn)}x=qe,d=0,he="",u=Se}return it(this.element,u,this.preStyleProps,this.postStyleProps,x,d,he,!0)}}function Jt(re,u=3){const d=Math.pow(10,u-1);return Math.round(re*d)/d}class p{}class y extends p{normalizePropertyName(u,d){return Ve(u)}normalizeStyleValue(u,d,x,he){let Se="";const qe=x.toString().trim();if(R[d]&&0!==x&&"0"!==x)if("number"==typeof x)Se="px";else{const nt=x.match(/^[+-]?[\d\.]+([a-z]*)$/);nt&&0==nt[1].length&&he.push(`Please provide a CSS unit value for ${u}:${x}`)}return qe+Se}}const R=(()=>function Ee(re){const u={};return re.forEach(d=>u[d]=!0),u}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function et(re,u,d,x,he,Se,qe,nt,Ot,Wt,hn,Sn,Pn){return{type:0,element:re,triggerName:u,isRemovalTransition:he,fromState:d,fromStyles:Se,toState:x,toStyles:qe,timelines:nt,queriedElements:Ot,preStyleProps:Wt,postStyleProps:hn,totalTime:Sn,errors:Pn}}const gt={};class Qe{constructor(u,d,x){this._triggerName=u,this.ast=d,this._stateStyles=x}match(u,d,x,he){return function _t(re,u,d,x,he){return re.some(Se=>Se(u,d,x,he))}(this.ast.matchers,u,d,x,he)}buildStyles(u,d,x){const he=this._stateStyles["*"],Se=this._stateStyles[u],qe=he?he.buildStyles(d,x):{};return Se?Se.buildStyles(d,x):qe}build(u,d,x,he,Se,qe,nt,Ot,Wt,hn){const Sn=[],Pn=this.ast.options&&this.ast.options.params||gt,In=this.buildStyles(x,nt&&nt.params||gt,Sn),Vn=Ot&&Ot.params||gt,Hn=this.buildStyles(he,Vn,Sn),bi=new Set,Ei=new Map,Ai=new Map,Fi="void"===he,co={params:Object.assign(Object.assign({},Pn),Vn)},Ri=hn?[]:ut(u,d,this.ast.animation,Se,qe,In,Hn,co,Wt,Sn);let Pi=0;if(Ri.forEach(Ui=>{Pi=Math.max(Ui.duration+Ui.delay,Pi)}),Sn.length)return et(d,this._triggerName,x,he,Fi,In,Hn,[],[],Ei,Ai,Pi,Sn);Ri.forEach(Ui=>{const io=Ui.element,Po=S(Ei,io,{});Ui.preStyleProps.forEach(go=>Po[go]=!0);const Ao=S(Ai,io,{});Ui.postStyleProps.forEach(go=>Ao[go]=!0),io!==d&&bi.add(io)});const Ki=en(bi.values());return et(d,this._triggerName,x,he,Fi,In,Hn,Ri,Ki,Ei,Ai,Pi)}}class Rt{constructor(u,d,x){this.styles=u,this.defaultParams=d,this.normalizer=x}buildStyles(u,d){const x={},he=kt(this.defaultParams);return Object.keys(u).forEach(Se=>{const qe=u[Se];null!=qe&&(he[Se]=qe)}),this.styles.styles.forEach(Se=>{if("string"!=typeof Se){const qe=Se;Object.keys(qe).forEach(nt=>{let Ot=qe[nt];Ot.length>1&&(Ot=ot(Ot,he,d));const Wt=this.normalizer.normalizePropertyName(nt,d);Ot=this.normalizer.normalizeStyleValue(nt,Wt,Ot,d),x[Wt]=Ot})}}),x}}class on{constructor(u,d,x){this.name=u,this.ast=d,this._normalizer=x,this.transitionFactories=[],this.states={},d.states.forEach(he=>{this.states[he.name]=new Rt(he.style,he.options&&he.options.params||{},x)}),bn(this.states,"true","1"),bn(this.states,"false","0"),d.transitions.forEach(he=>{this.transitionFactories.push(new Qe(u,he,this.states))}),this.fallbackTransition=function Vt(re,u,d){return new Qe(re,{type:1,animation:{type:2,steps:[],options:null},matchers:[(qe,nt)=>!0],options:null,queryCount:0,depCount:0},u)}(u,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(u,d,x,he){return this.transitionFactories.find(qe=>qe.match(u,d,x,he))||null}matchStyles(u,d,x){return this.fallbackTransition.buildStyles(u,d,x)}}function bn(re,u,d){re.hasOwnProperty(u)?re.hasOwnProperty(d)||(re[d]=re[u]):re.hasOwnProperty(d)&&(re[u]=re[d])}const mn=new Ge;class fn{constructor(u,d,x){this.bodyNode=u,this._driver=d,this._normalizer=x,this._animations={},this._playersById={},this.players=[]}register(u,d){const x=[],he=Bt(this._driver,d,x);if(x.length)throw new Error(`Unable to build the animation due to the following errors: ${x.join("\n")}`);this._animations[u]=he}_buildPlayer(u,d,x){const he=u.element,Se=b(0,this._normalizer,0,u.keyframes,d,x);return this._driver.animate(he,Se,u.duration,u.delay,u.easing,[],!0)}create(u,d,x={}){const he=[],Se=this._animations[u];let qe;const nt=new Map;if(Se?(qe=ut(this._driver,d,Se,Me,se,{},{},x,mn,he),qe.forEach(hn=>{const Sn=S(nt,hn.element,{});hn.postStyleProps.forEach(Pn=>Sn[Pn]=null)})):(he.push("The requested animation doesn't exist or has already been destroyed"),qe=[]),he.length)throw new Error(`Unable to create the animation due to the following errors: ${he.join("\n")}`);nt.forEach((hn,Sn)=>{Object.keys(hn).forEach(Pn=>{hn[Pn]=this._driver.computeStyle(Sn,Pn,l.l3)})});const Wt=A(qe.map(hn=>{const Sn=nt.get(hn.element);return this._buildPlayer(hn,{},Sn)}));return this._playersById[u]=Wt,Wt.onDestroy(()=>this.destroy(u)),this.players.push(Wt),Wt}destroy(u){const d=this._getPlayer(u);d.destroy(),delete this._playersById[u];const x=this.players.indexOf(d);x>=0&&this.players.splice(x,1)}_getPlayer(u){const d=this._playersById[u];if(!d)throw new Error(`Unable to find the timeline player referenced by ${u}`);return d}listen(u,d,x,he){const Se=E(d,"","","");return D(this._getPlayer(u),x,Se,he),()=>{}}command(u,d,x,he){if("register"==x)return void this.register(u,he[0]);if("create"==x)return void this.create(u,d,he[0]||{});const Se=this._getPlayer(u);switch(x){case"play":Se.play();break;case"pause":Se.pause();break;case"reset":Se.reset();break;case"restart":Se.restart();break;case"finish":Se.finish();break;case"init":Se.init();break;case"setPosition":Se.setPosition(parseFloat(he[0]));break;case"destroy":this.destroy(u)}}}const Dn="ng-animate-queued",Nn="ng-animate-disabled",qn=[],Ce={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ke={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},le="__ng_removed";class tt{constructor(u,d=""){this.namespaceId=d;const x=u&&u.hasOwnProperty("value");if(this.value=function ii(re){return null!=re?re:null}(x?u.value:u),x){const Se=kt(u);delete Se.value,this.options=Se}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(u){const d=u.params;if(d){const x=this.options.params;Object.keys(d).forEach(he=>{null==x[he]&&(x[he]=d[he])})}}}const Ht="void",Xt=new tt(Ht);class dn{constructor(u,d,x){this.id=u,this.hostElement=d,this._engine=x,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+u,Ii(d,this._hostClassName)}listen(u,d,x,he){if(!this._triggers.hasOwnProperty(d))throw new Error(`Unable to listen on the animation trigger event "${x}" because the animation trigger "${d}" doesn't exist!`);if(null==x||0==x.length)throw new Error(`Unable to listen on the animation trigger "${d}" because the provided event is undefined!`);if(!function pi(re){return"start"==re||"done"==re}(x))throw new Error(`The provided animation trigger event "${x}" for the animation trigger "${d}" is not supported!`);const Se=S(this._elementListeners,u,[]),qe={name:d,phase:x,callback:he};Se.push(qe);const nt=S(this._engine.statesByElement,u,{});return nt.hasOwnProperty(d)||(Ii(u,we),Ii(u,we+"-"+d),nt[d]=Xt),()=>{this._engine.afterFlush(()=>{const Ot=Se.indexOf(qe);Ot>=0&&Se.splice(Ot,1),this._triggers[d]||delete nt[d]})}}register(u,d){return!this._triggers[u]&&(this._triggers[u]=d,!0)}_getTrigger(u){const d=this._triggers[u];if(!d)throw new Error(`The provided animation trigger "${u}" has not been registered!`);return d}trigger(u,d,x,he=!0){const Se=this._getTrigger(d),qe=new jn(this.id,d,u);let nt=this._engine.statesByElement.get(u);nt||(Ii(u,we),Ii(u,we+"-"+d),this._engine.statesByElement.set(u,nt={}));let Ot=nt[d];const Wt=new tt(x,this.id);if(!(x&&x.hasOwnProperty("value"))&&Ot&&Wt.absorbOptions(Ot.options),nt[d]=Wt,Ot||(Ot=Xt),Wt.value!==Ht&&Ot.value===Wt.value){if(!function Bo(re,u){const d=Object.keys(re),x=Object.keys(u);if(d.length!=x.length)return!1;for(let he=0;he{Lt(u,Hn),ct(u,bi)})}return}const Pn=S(this._engine.playersByElement,u,[]);Pn.forEach(Vn=>{Vn.namespaceId==this.id&&Vn.triggerName==d&&Vn.queued&&Vn.destroy()});let Wn=Se.matchTransition(Ot.value,Wt.value,u,Wt.params),In=!1;if(!Wn){if(!he)return;Wn=Se.fallbackTransition,In=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:d,transition:Wn,fromState:Ot,toState:Wt,player:qe,isFallbackTransition:In}),In||(Ii(u,Dn),qe.onStart(()=>{qi(u,Dn)})),qe.onDone(()=>{let Vn=this.players.indexOf(qe);Vn>=0&&this.players.splice(Vn,1);const Hn=this._engine.playersByElement.get(u);if(Hn){let bi=Hn.indexOf(qe);bi>=0&&Hn.splice(bi,1)}}),this.players.push(qe),Pn.push(qe),qe}deregister(u){delete this._triggers[u],this._engine.statesByElement.forEach((d,x)=>{delete d[u]}),this._elementListeners.forEach((d,x)=>{this._elementListeners.set(x,d.filter(he=>he.name!=u))})}clearElementCache(u){this._engine.statesByElement.delete(u),this._elementListeners.delete(u);const d=this._engine.playersByElement.get(u);d&&(d.forEach(x=>x.destroy()),this._engine.playersByElement.delete(u))}_signalRemovalForInnerTriggers(u,d){const x=this._engine.driver.query(u,ue,!0);x.forEach(he=>{if(he[le])return;const Se=this._engine.fetchNamespacesByElement(he);Se.size?Se.forEach(qe=>qe.triggerLeaveAnimation(he,d,!1,!0)):this.clearElementCache(he)}),this._engine.afterFlushAnimationsDone(()=>x.forEach(he=>this.clearElementCache(he)))}triggerLeaveAnimation(u,d,x,he){const Se=this._engine.statesByElement.get(u),qe=new Map;if(Se){const nt=[];if(Object.keys(Se).forEach(Ot=>{if(qe.set(Ot,Se[Ot].value),this._triggers[Ot]){const Wt=this.trigger(u,Ot,Ht,he);Wt&&nt.push(Wt)}}),nt.length)return this._engine.markElementAsRemoved(this.id,u,!0,d,qe),x&&A(nt).onDone(()=>this._engine.processLeaveNode(u)),!0}return!1}prepareLeaveAnimationListeners(u){const d=this._elementListeners.get(u),x=this._engine.statesByElement.get(u);if(d&&x){const he=new Set;d.forEach(Se=>{const qe=Se.name;if(he.has(qe))return;he.add(qe);const Ot=this._triggers[qe].fallbackTransition,Wt=x[qe]||Xt,hn=new tt(Ht),Sn=new jn(this.id,qe,u);this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:qe,transition:Ot,fromState:Wt,toState:hn,player:Sn,isFallbackTransition:!0})})}}removeNode(u,d){const x=this._engine;if(u.childElementCount&&this._signalRemovalForInnerTriggers(u,d),this.triggerLeaveAnimation(u,d,!0))return;let he=!1;if(x.totalAnimations){const Se=x.players.length?x.playersByQueriedElement.get(u):[];if(Se&&Se.length)he=!0;else{let qe=u;for(;qe=qe.parentNode;)if(x.statesByElement.get(qe)){he=!0;break}}}if(this.prepareLeaveAnimationListeners(u),he)x.markElementAsRemoved(this.id,u,!1,d);else{const Se=u[le];(!Se||Se===Ce)&&(x.afterFlush(()=>this.clearElementCache(u)),x.destroyInnerAnimations(u),x._onRemovalComplete(u,d))}}insertNode(u,d){Ii(u,this._hostClassName)}drainQueuedTransitions(u){const d=[];return this._queue.forEach(x=>{const he=x.player;if(he.destroyed)return;const Se=x.element,qe=this._elementListeners.get(Se);qe&&qe.forEach(nt=>{if(nt.name==x.triggerName){const Ot=E(Se,x.triggerName,x.fromState.value,x.toState.value);Ot._data=u,D(x.player,nt.phase,Ot,nt.callback)}}),he.markedForDestroy?this._engine.afterFlush(()=>{he.destroy()}):d.push(x)}),this._queue=[],d.sort((x,he)=>{const Se=x.transition.ast.depCount,qe=he.transition.ast.depCount;return 0==Se||0==qe?Se-qe:this._engine.driver.containsElement(x.element,he.element)?1:-1})}destroy(u){this.players.forEach(d=>d.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,u)}elementContainsData(u){let d=!1;return this._elementListeners.has(u)&&(d=!0),d=!!this._queue.find(x=>x.element===u)||d,d}}class Mn{constructor(u,d,x){this.bodyNode=u,this.driver=d,this._normalizer=x,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(he,Se)=>{}}_onRemovalComplete(u,d){this.onRemovalComplete(u,d)}get queuedPlayers(){const u=[];return this._namespaceList.forEach(d=>{d.players.forEach(x=>{x.queued&&u.push(x)})}),u}createNamespace(u,d){const x=new dn(u,d,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,d)?this._balanceNamespaceList(x,d):(this.newHostElements.set(d,x),this.collectEnterElement(d)),this._namespaceLookup[u]=x}_balanceNamespaceList(u,d){const x=this._namespaceList.length-1;if(x>=0){let he=!1;for(let Se=x;Se>=0;Se--)if(this.driver.containsElement(this._namespaceList[Se].hostElement,d)){this._namespaceList.splice(Se+1,0,u),he=!0;break}he||this._namespaceList.splice(0,0,u)}else this._namespaceList.push(u);return this.namespacesByHostElement.set(d,u),u}register(u,d){let x=this._namespaceLookup[u];return x||(x=this.createNamespace(u,d)),x}registerTrigger(u,d,x){let he=this._namespaceLookup[u];he&&he.register(d,x)&&this.totalAnimations++}destroy(u,d){if(!u)return;const x=this._fetchNamespace(u);this.afterFlush(()=>{this.namespacesByHostElement.delete(x.hostElement),delete this._namespaceLookup[u];const he=this._namespaceList.indexOf(x);he>=0&&this._namespaceList.splice(he,1)}),this.afterFlushAnimationsDone(()=>x.destroy(d))}_fetchNamespace(u){return this._namespaceLookup[u]}fetchNamespacesByElement(u){const d=new Set,x=this.statesByElement.get(u);if(x){const he=Object.keys(x);for(let Se=0;Se=0&&this.collectedLeaveElements.splice(qe,1)}if(u){const qe=this._fetchNamespace(u);qe&&qe.insertNode(d,x)}he&&this.collectEnterElement(d)}collectEnterElement(u){this.collectedEnterElements.push(u)}markElementAsDisabled(u,d){d?this.disabledNodes.has(u)||(this.disabledNodes.add(u),Ii(u,Nn)):this.disabledNodes.has(u)&&(this.disabledNodes.delete(u),qi(u,Nn))}removeNode(u,d,x,he){if(si(d)){const Se=u?this._fetchNamespace(u):null;if(Se?Se.removeNode(d,he):this.markElementAsRemoved(u,d,!1,he),x){const qe=this.namespacesByHostElement.get(d);qe&&qe.id!==u&&qe.removeNode(d,he)}}else this._onRemovalComplete(d,he)}markElementAsRemoved(u,d,x,he,Se){this.collectedLeaveElements.push(d),d[le]={namespaceId:u,setForRemoval:he,hasAnimation:x,removedBeforeQueried:!1,previousTriggersValues:Se}}listen(u,d,x,he,Se){return si(d)?this._fetchNamespace(u).listen(d,x,he,Se):()=>{}}_buildInstruction(u,d,x,he,Se){return u.transition.build(this.driver,u.element,u.fromState.value,u.toState.value,x,he,u.fromState.options,u.toState.options,d,Se)}destroyInnerAnimations(u){let d=this.driver.query(u,ue,!0);d.forEach(x=>this.destroyActiveAnimationsForElement(x)),0!=this.playersByQueriedElement.size&&(d=this.driver.query(u,We,!0),d.forEach(x=>this.finishActiveQueriedAnimationOnElement(x)))}destroyActiveAnimationsForElement(u){const d=this.playersByElement.get(u);d&&d.forEach(x=>{x.queued?x.markedForDestroy=!0:x.destroy()})}finishActiveQueriedAnimationOnElement(u){const d=this.playersByQueriedElement.get(u);d&&d.forEach(x=>x.finish())}whenRenderingDone(){return new Promise(u=>{if(this.players.length)return A(this.players).onDone(()=>u());u()})}processLeaveNode(u){var d;const x=u[le];if(x&&x.setForRemoval){if(u[le]=Ce,x.namespaceId){this.destroyInnerAnimations(u);const he=this._fetchNamespace(x.namespaceId);he&&he.clearElementCache(u)}this._onRemovalComplete(u,x.setForRemoval)}(null===(d=u.classList)||void 0===d?void 0:d.contains(Nn))&&this.markElementAsDisabled(u,!1),this.driver.query(u,".ng-animate-disabled",!0).forEach(he=>{this.markElementAsDisabled(he,!1)})}flush(u=-1){let d=[];if(this.newHostElements.size&&(this.newHostElements.forEach((x,he)=>this._balanceNamespaceList(x,he)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let x=0;xx()),this._flushFns=[],this._whenQuietFns.length){const x=this._whenQuietFns;this._whenQuietFns=[],d.length?A(d).onDone(()=>{x.forEach(he=>he())}):x.forEach(he=>he())}}reportError(u){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${u.join("\n")}`)}_flushAnimations(u,d){const x=new Ge,he=[],Se=new Map,qe=[],nt=new Map,Ot=new Map,Wt=new Map,hn=new Set;this.disabledNodes.forEach(Tn=>{hn.add(Tn);const kn=this.driver.query(Tn,".ng-animate-queued",!0);for(let Ln=0;Ln{const Ln=Me+Vn++;In.set(kn,Ln),Tn.forEach(Bn=>Ii(Bn,Ln))});const Hn=[],bi=new Set,Ei=new Set;for(let Tn=0;Tnbi.add(Bn)):Ei.add(kn))}const Ai=new Map,Fi=Si(Pn,Array.from(bi));Fi.forEach((Tn,kn)=>{const Ln=se+Vn++;Ai.set(kn,Ln),Tn.forEach(Bn=>Ii(Bn,Ln))}),u.push(()=>{Wn.forEach((Tn,kn)=>{const Ln=In.get(kn);Tn.forEach(Bn=>qi(Bn,Ln))}),Fi.forEach((Tn,kn)=>{const Ln=Ai.get(kn);Tn.forEach(Bn=>qi(Bn,Ln))}),Hn.forEach(Tn=>{this.processLeaveNode(Tn)})});const co=[],Ri=[];for(let Tn=this._namespaceList.length-1;Tn>=0;Tn--)this._namespaceList[Tn].drainQueuedTransitions(d).forEach(Ln=>{const Bn=Ln.player,yi=Ln.element;if(co.push(Bn),this.collectedEnterElements.length){const mi=yi[le];if(mi&&mi.setForMove){if(mi.previousTriggersValues&&mi.previousTriggersValues.has(Ln.triggerName)){const Qi=mi.previousTriggersValues.get(Ln.triggerName),Hi=this.statesByElement.get(Ln.element);Hi&&Hi[Ln.triggerName]&&(Hi[Ln.triggerName].value=Qi)}return void Bn.destroy()}}const ui=!Sn||!this.driver.containsElement(Sn,yi),ki=Ai.get(yi),vo=In.get(yi),_i=this._buildInstruction(Ln,x,vo,ki,ui);if(_i.errors&&_i.errors.length)return void Ri.push(_i);if(ui)return Bn.onStart(()=>Lt(yi,_i.fromStyles)),Bn.onDestroy(()=>ct(yi,_i.toStyles)),void he.push(Bn);if(Ln.isFallbackTransition)return Bn.onStart(()=>Lt(yi,_i.fromStyles)),Bn.onDestroy(()=>ct(yi,_i.toStyles)),void he.push(Bn);const ar=[];_i.timelines.forEach(mi=>{mi.stretchStartingKeyframe=!0,this.disabledNodes.has(mi.element)||ar.push(mi)}),_i.timelines=ar,x.append(yi,_i.timelines),qe.push({instruction:_i,player:Bn,element:yi}),_i.queriedElements.forEach(mi=>S(nt,mi,[]).push(Bn)),_i.preStyleProps.forEach((mi,Qi)=>{const Hi=Object.keys(mi);if(Hi.length){let Bi=Ot.get(Qi);Bi||Ot.set(Qi,Bi=new Set),Hi.forEach(yo=>Bi.add(yo))}}),_i.postStyleProps.forEach((mi,Qi)=>{const Hi=Object.keys(mi);let Bi=Wt.get(Qi);Bi||Wt.set(Qi,Bi=new Set),Hi.forEach(yo=>Bi.add(yo))})});if(Ri.length){const Tn=[];Ri.forEach(kn=>{Tn.push(`@${kn.triggerName} has failed due to:\n`),kn.errors.forEach(Ln=>Tn.push(`- ${Ln}\n`))}),co.forEach(kn=>kn.destroy()),this.reportError(Tn)}const Pi=new Map,Ki=new Map;qe.forEach(Tn=>{const kn=Tn.element;x.has(kn)&&(Ki.set(kn,kn),this._beforeAnimationBuild(Tn.player.namespaceId,Tn.instruction,Pi))}),he.forEach(Tn=>{const kn=Tn.element;this._getPreviousPlayers(kn,!1,Tn.namespaceId,Tn.triggerName,null).forEach(Bn=>{S(Pi,kn,[]).push(Bn),Bn.destroy()})});const Ui=Hn.filter(Tn=>Co(Tn,Ot,Wt)),io=new Map;oo(io,this.driver,Ei,Wt,l.l3).forEach(Tn=>{Co(Tn,Ot,Wt)&&Ui.push(Tn)});const Ao=new Map;Wn.forEach((Tn,kn)=>{oo(Ao,this.driver,new Set(Tn),Ot,l.k1)}),Ui.forEach(Tn=>{const kn=io.get(Tn),Ln=Ao.get(Tn);io.set(Tn,Object.assign(Object.assign({},kn),Ln))});const go=[],Fo=[],sr={};qe.forEach(Tn=>{const{element:kn,player:Ln,instruction:Bn}=Tn;if(x.has(kn)){if(hn.has(kn))return Ln.onDestroy(()=>ct(kn,Bn.toStyles)),Ln.disabled=!0,Ln.overrideTotalTime(Bn.totalTime),void he.push(Ln);let yi=sr;if(Ki.size>1){let ki=kn;const vo=[];for(;ki=ki.parentNode;){const _i=Ki.get(ki);if(_i){yi=_i;break}vo.push(ki)}vo.forEach(_i=>Ki.set(_i,yi))}const ui=this._buildAnimation(Ln.namespaceId,Bn,Pi,Se,Ao,io);if(Ln.setRealPlayer(ui),yi===sr)go.push(Ln);else{const ki=this.playersByElement.get(yi);ki&&ki.length&&(Ln.parentPlayer=A(ki)),he.push(Ln)}}else Lt(kn,Bn.fromStyles),Ln.onDestroy(()=>ct(kn,Bn.toStyles)),Fo.push(Ln),hn.has(kn)&&he.push(Ln)}),Fo.forEach(Tn=>{const kn=Se.get(Tn.element);if(kn&&kn.length){const Ln=A(kn);Tn.setRealPlayer(Ln)}}),he.forEach(Tn=>{Tn.parentPlayer?Tn.syncPlayerEvents(Tn.parentPlayer):Tn.destroy()});for(let Tn=0;Tn!ui.destroyed);yi.length?Ro(this,kn,yi):this.processLeaveNode(kn)}return Hn.length=0,go.forEach(Tn=>{this.players.push(Tn),Tn.onDone(()=>{Tn.destroy();const kn=this.players.indexOf(Tn);this.players.splice(kn,1)}),Tn.play()}),go}elementContainsData(u,d){let x=!1;const he=d[le];return he&&he.setForRemoval&&(x=!0),this.playersByElement.has(d)&&(x=!0),this.playersByQueriedElement.has(d)&&(x=!0),this.statesByElement.has(d)&&(x=!0),this._fetchNamespace(u).elementContainsData(d)||x}afterFlush(u){this._flushFns.push(u)}afterFlushAnimationsDone(u){this._whenQuietFns.push(u)}_getPreviousPlayers(u,d,x,he,Se){let qe=[];if(d){const nt=this.playersByQueriedElement.get(u);nt&&(qe=nt)}else{const nt=this.playersByElement.get(u);if(nt){const Ot=!Se||Se==Ht;nt.forEach(Wt=>{Wt.queued||!Ot&&Wt.triggerName!=he||qe.push(Wt)})}}return(x||he)&&(qe=qe.filter(nt=>!(x&&x!=nt.namespaceId||he&&he!=nt.triggerName))),qe}_beforeAnimationBuild(u,d,x){const Se=d.element,qe=d.isRemovalTransition?void 0:u,nt=d.isRemovalTransition?void 0:d.triggerName;for(const Ot of d.timelines){const Wt=Ot.element,hn=Wt!==Se,Sn=S(x,Wt,[]);this._getPreviousPlayers(Wt,hn,qe,nt,d.toState).forEach(Wn=>{const In=Wn.getRealPlayer();In.beforeDestroy&&In.beforeDestroy(),Wn.destroy(),Sn.push(Wn)})}Lt(Se,d.fromStyles)}_buildAnimation(u,d,x,he,Se,qe){const nt=d.triggerName,Ot=d.element,Wt=[],hn=new Set,Sn=new Set,Pn=d.timelines.map(In=>{const Vn=In.element;hn.add(Vn);const Hn=Vn[le];if(Hn&&Hn.removedBeforeQueried)return new l.ZN(In.duration,In.delay);const bi=Vn!==Ot,Ei=function Ho(re){const u=[];return wo(re,u),u}((x.get(Vn)||qn).map(Pi=>Pi.getRealPlayer())).filter(Pi=>!!Pi.element&&Pi.element===Vn),Ai=Se.get(Vn),Fi=qe.get(Vn),co=b(0,this._normalizer,0,In.keyframes,Ai,Fi),Ri=this._buildPlayer(In,co,Ei);if(In.subTimeline&&he&&Sn.add(Vn),bi){const Pi=new jn(u,nt,Vn);Pi.setRealPlayer(Ri),Wt.push(Pi)}return Ri});Wt.forEach(In=>{S(this.playersByQueriedElement,In.element,[]).push(In),In.onDone(()=>function Ci(re,u,d){let x;if(re instanceof Map){if(x=re.get(u),x){if(x.length){const he=x.indexOf(d);x.splice(he,1)}0==x.length&&re.delete(u)}}else if(x=re[u],x){if(x.length){const he=x.indexOf(d);x.splice(he,1)}0==x.length&&delete re[u]}return x}(this.playersByQueriedElement,In.element,In))}),hn.forEach(In=>Ii(In,Ye));const Wn=A(Pn);return Wn.onDestroy(()=>{hn.forEach(In=>qi(In,Ye)),ct(Ot,d.toStyles)}),Sn.forEach(In=>{S(he,In,[]).push(Wn)}),Wn}_buildPlayer(u,d,x){return d.length>0?this.driver.animate(u.element,d,u.duration,u.delay,u.easing,x):new l.ZN(u.duration,u.delay)}}class jn{constructor(u,d,x){this.namespaceId=u,this.triggerName=d,this.element=x,this._player=new l.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(u){this._containsRealPlayer||(this._player=u,Object.keys(this._queuedCallbacks).forEach(d=>{this._queuedCallbacks[d].forEach(x=>D(u,d,void 0,x))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(u.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(u){this.totalTime=u}syncPlayerEvents(u){const d=this._player;d.triggerCallback&&u.onStart(()=>d.triggerCallback("start")),u.onDone(()=>this.finish()),u.onDestroy(()=>this.destroy())}_queueEvent(u,d){S(this._queuedCallbacks,u,[]).push(d)}onDone(u){this.queued&&this._queueEvent("done",u),this._player.onDone(u)}onStart(u){this.queued&&this._queueEvent("start",u),this._player.onStart(u)}onDestroy(u){this.queued&&this._queueEvent("destroy",u),this._player.onDestroy(u)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(u){this.queued||this._player.setPosition(u)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(u){const d=this._player;d.triggerCallback&&d.triggerCallback(u)}}function si(re){return re&&1===re.nodeType}function Wi(re,u){const d=re.style.display;return re.style.display=null!=u?u:"none",d}function oo(re,u,d,x,he){const Se=[];d.forEach(Ot=>Se.push(Wi(Ot)));const qe=[];x.forEach((Ot,Wt)=>{const hn={};Ot.forEach(Sn=>{const Pn=hn[Sn]=u.computeStyle(Wt,Sn,he);(!Pn||0==Pn.length)&&(Wt[le]=ke,qe.push(Wt))}),re.set(Wt,hn)});let nt=0;return d.forEach(Ot=>Wi(Ot,Se[nt++])),qe}function Si(re,u){const d=new Map;if(re.forEach(nt=>d.set(nt,[])),0==u.length)return d;const he=new Set(u),Se=new Map;function qe(nt){if(!nt)return 1;let Ot=Se.get(nt);if(Ot)return Ot;const Wt=nt.parentNode;return Ot=d.has(Wt)?Wt:he.has(Wt)?1:qe(Wt),Se.set(nt,Ot),Ot}return u.forEach(nt=>{const Ot=qe(nt);1!==Ot&&d.get(Ot).push(nt)}),d}function Ii(re,u){var d;null===(d=re.classList)||void 0===d||d.add(u)}function qi(re,u){var d;null===(d=re.classList)||void 0===d||d.remove(u)}function Ro(re,u,d){A(d).onDone(()=>re.processLeaveNode(u))}function wo(re,u){for(let d=0;dhe.add(Se)):u.set(re,x),d.delete(re),!0}class Xi{constructor(u,d,x){this.bodyNode=u,this._driver=d,this._normalizer=x,this._triggerCache={},this.onRemovalComplete=(he,Se)=>{},this._transitionEngine=new Mn(u,d,x),this._timelineEngine=new fn(u,d,x),this._transitionEngine.onRemovalComplete=(he,Se)=>this.onRemovalComplete(he,Se)}registerTrigger(u,d,x,he,Se){const qe=u+"-"+he;let nt=this._triggerCache[qe];if(!nt){const Ot=[],Wt=Bt(this._driver,Se,Ot);if(Ot.length)throw new Error(`The animation trigger "${he}" has failed to build due to the following errors:\n - ${Ot.join("\n - ")}`);nt=function qt(re,u,d){return new on(re,u,d)}(he,Wt,this._normalizer),this._triggerCache[qe]=nt}this._transitionEngine.registerTrigger(d,he,nt)}register(u,d){this._transitionEngine.register(u,d)}destroy(u,d){this._transitionEngine.destroy(u,d)}onInsert(u,d,x,he){this._transitionEngine.insertNode(u,d,x,he)}onRemove(u,d,x,he){this._transitionEngine.removeNode(u,d,he||!1,x)}disableAnimations(u,d){this._transitionEngine.markElementAsDisabled(u,d)}process(u,d,x,he){if("@"==x.charAt(0)){const[Se,qe]=w(x);this._timelineEngine.command(Se,d,qe,he)}else this._transitionEngine.trigger(u,d,x,he)}listen(u,d,x,he,Se){if("@"==x.charAt(0)){const[qe,nt]=w(x);return this._timelineEngine.listen(qe,d,nt,Se)}return this._transitionEngine.listen(u,d,x,he,Se)}flush(u=-1){this._transitionEngine.flush(u)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function bo(re,u){let d=null,x=null;return Array.isArray(u)&&u.length?(d=ro(u[0]),u.length>1&&(x=ro(u[u.length-1]))):u&&(d=ro(u)),d||x?new Do(re,d,x):null}let Do=(()=>{class re{constructor(d,x,he){this._element=d,this._startStyles=x,this._endStyles=he,this._state=0;let Se=re.initialStylesByElement.get(d);Se||re.initialStylesByElement.set(d,Se={}),this._initialStyles=Se}start(){this._state<1&&(this._startStyles&&ct(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ct(this._element,this._initialStyles),this._endStyles&&(ct(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(re.initialStylesByElement.delete(this._element),this._startStyles&&(Lt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Lt(this._element,this._endStyles),this._endStyles=null),ct(this._element,this._initialStyles),this._state=3)}}return re.initialStylesByElement=new WeakMap,re})();function ro(re){let u=null;const d=Object.keys(re);for(let x=0;xthis._handleCallback(Ot)}apply(){(function Xo(re,u){const d=eo(re,"").trim();let x=0;d.length&&(x=function ao(re,u){let d=0;for(let x=0;x=this._delay&&x>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),po(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function xi(re,u){const x=eo(re,"").split(","),he=Yi(x,u);he>=0&&(x.splice(he,1),mo(re,"",x.join(",")))}(this._element,this._name))}}function Vi(re,u,d){mo(re,"PlayState",d,Yo(re,u))}function Yo(re,u){const d=eo(re,"");return d.indexOf(",")>0?Yi(d.split(","),u):Yi([d],u)}function Yi(re,u){for(let d=0;d=0)return d;return-1}function po(re,u,d){d?re.removeEventListener(so,u):re.addEventListener(so,u)}function mo(re,u,d,x){const he=qo+u;if(null!=x){const Se=re.style[he];if(Se.length){const qe=Se.split(",");qe[x]=d,d=qe.join(",")}}re.style[he]=d}function eo(re,u){return re.style[qo+u]||""}class $i{constructor(u,d,x,he,Se,qe,nt,Ot){this.element=u,this.keyframes=d,this.animationName=x,this._duration=he,this._delay=Se,this._finalStyles=nt,this._specialStyles=Ot,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=qe||"linear",this.totalTime=he+Se,this._buildStyler()}onStart(u){this._onStartFns.push(u)}onDone(u){this._onDoneFns.push(u)}onDestroy(u){this._onDestroyFns.push(u)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(u=>u()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(u=>u()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(u=>u()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(u){this._styler.setPosition(u)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new So(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(u){const d="start"==u?this._onStartFns:this._onDoneFns;d.forEach(x=>x()),d.length=0}beforeDestroy(){this.init();const u={};if(this.hasStarted()){const d=this._state>=3;Object.keys(this._finalStyles).forEach(x=>{"offset"!=x&&(u[x]=d?this._finalStyles[x]:Y(this.element,x))})}this.currentSnapshot=u}}class zo extends l.ZN{constructor(u,d){super(),this.element=u,this._startingStyles={},this.__initialized=!1,this._styles=Ue(d)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(u=>{this._startingStyles[u]=this.element.style[u]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(u=>this.element.style.setProperty(u,this._styles[u])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(u=>{const d=this._startingStyles[u];d?this.element.style.setProperty(u,d):this.element.style.removeProperty(u)}),this._startingStyles=null,super.destroy())}}class xo{constructor(){this._count=0}validateStyleProperty(u){return ve(u)}matchesElement(u,d){return!1}containsElement(u,d){return Re(u,d)}query(u,d,x){return ae(u,d,x)}computeStyle(u,d,x){return window.getComputedStyle(u)[d]}buildKeyframeElement(u,d,x){x=x.map(nt=>Ue(nt));let he=`@keyframes ${d} {\n`,Se="";x.forEach(nt=>{Se=" ";const Ot=parseFloat(nt.offset);he+=`${Se}${100*Ot}% {\n`,Se+=" ",Object.keys(nt).forEach(Wt=>{const hn=nt[Wt];switch(Wt){case"offset":return;case"easing":return void(hn&&(he+=`${Se}animation-timing-function: ${hn};\n`));default:return void(he+=`${Se}${Wt}: ${hn};\n`)}}),he+=`${Se}}\n`}),he+="}\n";const qe=document.createElement("style");return qe.textContent=he,qe}animate(u,d,x,he,Se,qe=[],nt){const Ot=qe.filter(Hn=>Hn instanceof $i),Wt={};yt(x,he)&&Ot.forEach(Hn=>{let bi=Hn.currentSnapshot;Object.keys(bi).forEach(Ei=>Wt[Ei]=bi[Ei])});const hn=function Uo(re){let u={};return re&&(Array.isArray(re)?re:[re]).forEach(x=>{Object.keys(x).forEach(he=>{"offset"==he||"easing"==he||(u[he]=x[he])})}),u}(d=Mt(u,d,Wt));if(0==x)return new zo(u,hn);const Sn="gen_css_kf_"+this._count++,Pn=this.buildKeyframeElement(u,Sn,d);(function Oo(re){var u;const d=null===(u=re.getRootNode)||void 0===u?void 0:u.call(re);return"undefined"!=typeof ShadowRoot&&d instanceof ShadowRoot?d:document.head})(u).appendChild(Pn);const In=bo(u,d),Vn=new $i(u,d,Sn,x,he,Se,hn,In);return Vn.onDestroy(()=>function zi(re){re.parentNode.removeChild(re)}(Pn)),Vn}}class ji{constructor(u,d,x,he){this.element=u,this.keyframes=d,this.options=x,this._specialStyles=he,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=x.duration,this._delay=x.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(u=>u()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const u=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,u,this.options),this._finalKeyframe=u.length?u[u.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(u,d,x){return u.animate(d,x)}onStart(u){this._onStartFns.push(u)}onDone(u){this._onDoneFns.push(u)}onDestroy(u){this._onDestroyFns.push(u)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(u=>u()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(u=>u()),this._onDestroyFns=[])}setPosition(u){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=u*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const u={};if(this.hasStarted()){const d=this._finalKeyframe;Object.keys(d).forEach(x=>{"offset"!=x&&(u[x]=this._finished?d[x]:Y(this.element,x))})}this.currentSnapshot=u}triggerCallback(u){const d="start"==u?this._onStartFns:this._onDoneFns;d.forEach(x=>x()),d.length=0}}class zn{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(j().toString()),this._cssKeyframesDriver=new xo}validateStyleProperty(u){return ve(u)}matchesElement(u,d){return!1}containsElement(u,d){return Re(u,d)}query(u,d,x){return ae(u,d,x)}computeStyle(u,d,x){return window.getComputedStyle(u)[d]}overrideWebAnimationsSupport(u){this._isNativeImpl=u}animate(u,d,x,he,Se,qe=[],nt){if(!nt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(u,d,x,he,Se,qe);const hn={duration:x,delay:he,fill:0==he?"both":"forwards"};Se&&(hn.easing=Se);const Sn={},Pn=qe.filter(In=>In instanceof ji);yt(x,he)&&Pn.forEach(In=>{let Vn=In.currentSnapshot;Object.keys(Vn).forEach(Hn=>Sn[Hn]=Vn[Hn])});const Wn=bo(u,d=Mt(u,d=d.map(In=>It(In,!1)),Sn));return new ji(u,d,hn,Wn)}}function j(){return K()&&Element.prototype.animate||{}}var _e=c(9808);let W=(()=>{class re extends l._j{constructor(d,x){super(),this._nextAnimationId=0,this._renderer=d.createRenderer(x.body,{id:"0",encapsulation:r.ifc.None,styles:[],data:{animation:[]}})}build(d){const x=this._nextAnimationId.toString();this._nextAnimationId++;const he=Array.isArray(d)?(0,l.vP)(d):d;return bt(this._renderer,null,x,"register",[he]),new ze(x,this._renderer)}}return re.\u0275fac=function(d){return new(d||re)(r.LFG(r.FYo),r.LFG(_e.K0))},re.\u0275prov=r.Yz7({token:re,factory:re.\u0275fac}),re})();class ze extends l.LC{constructor(u,d){super(),this._id=u,this._renderer=d}create(u,d){return new st(this._id,u,d||{},this._renderer)}}class st{constructor(u,d,x,he){this.id=u,this.element=d,this._renderer=he,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",x)}_listen(u,d){return this._renderer.listen(this.element,`@@${this.id}:${u}`,d)}_command(u,...d){return bt(this._renderer,this.element,this.id,u,d)}onDone(u){this._listen("done",u)}onStart(u){this._listen("start",u)}onDestroy(u){this._listen("destroy",u)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(u){this._command("setPosition",u)}getPosition(){var u,d;return null!==(d=null===(u=this._renderer.engine.players[+this.id])||void 0===u?void 0:u.getPosition())&&void 0!==d?d:0}}function bt(re,u,d,x,he){return re.setProperty(u,`@@${d}:${x}`,he)}const Cn="@.disabled";let li=(()=>{class re{constructor(d,x,he){this.delegate=d,this.engine=x,this._zone=he,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),x.onRemovalComplete=(Se,qe)=>{const nt=null==qe?void 0:qe.parentNode(Se);nt&&qe.removeChild(nt,Se)}}createRenderer(d,x){const Se=this.delegate.createRenderer(d,x);if(!(d&&x&&x.data&&x.data.animation)){let hn=this._rendererCache.get(Se);return hn||(hn=new ni("",Se,this.engine),this._rendererCache.set(Se,hn)),hn}const qe=x.id,nt=x.id+"-"+this._currentId;this._currentId++,this.engine.register(nt,d);const Ot=hn=>{Array.isArray(hn)?hn.forEach(Ot):this.engine.registerTrigger(qe,nt,d,hn.name,hn)};return x.data.animation.forEach(Ot),new oi(this,nt,Se,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(d,x,he){d>=0&&dx(he)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Se=>{const[qe,nt]=Se;qe(nt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([x,he]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return re.\u0275fac=function(d){return new(d||re)(r.LFG(r.FYo),r.LFG(Xi),r.LFG(r.R0b))},re.\u0275prov=r.Yz7({token:re,factory:re.\u0275fac}),re})();class ni{constructor(u,d,x){this.namespaceId=u,this.delegate=d,this.engine=x,this.destroyNode=this.delegate.destroyNode?he=>d.destroyNode(he):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(u,d){return this.delegate.createElement(u,d)}createComment(u){return this.delegate.createComment(u)}createText(u){return this.delegate.createText(u)}appendChild(u,d){this.delegate.appendChild(u,d),this.engine.onInsert(this.namespaceId,d,u,!1)}insertBefore(u,d,x,he=!0){this.delegate.insertBefore(u,d,x),this.engine.onInsert(this.namespaceId,d,u,he)}removeChild(u,d,x){this.engine.onRemove(this.namespaceId,d,this.delegate,x)}selectRootElement(u,d){return this.delegate.selectRootElement(u,d)}parentNode(u){return this.delegate.parentNode(u)}nextSibling(u){return this.delegate.nextSibling(u)}setAttribute(u,d,x,he){this.delegate.setAttribute(u,d,x,he)}removeAttribute(u,d,x){this.delegate.removeAttribute(u,d,x)}addClass(u,d){this.delegate.addClass(u,d)}removeClass(u,d){this.delegate.removeClass(u,d)}setStyle(u,d,x,he){this.delegate.setStyle(u,d,x,he)}removeStyle(u,d,x){this.delegate.removeStyle(u,d,x)}setProperty(u,d,x){"@"==d.charAt(0)&&d==Cn?this.disableAnimations(u,!!x):this.delegate.setProperty(u,d,x)}setValue(u,d){this.delegate.setValue(u,d)}listen(u,d,x){return this.delegate.listen(u,d,x)}disableAnimations(u,d){this.engine.disableAnimations(u,d)}}class oi extends ni{constructor(u,d,x,he){super(d,x,he),this.factory=u,this.namespaceId=d}setProperty(u,d,x){"@"==d.charAt(0)?"."==d.charAt(1)&&d==Cn?this.disableAnimations(u,x=void 0===x||!!x):this.engine.process(this.namespaceId,u,d.substr(1),x):this.delegate.setProperty(u,d,x)}listen(u,d,x){if("@"==d.charAt(0)){const he=function $n(re){switch(re){case"body":return document.body;case"document":return document;case"window":return window;default:return re}}(u);let Se=d.substr(1),qe="";return"@"!=Se.charAt(0)&&([Se,qe]=function hi(re){const u=re.indexOf(".");return[re.substring(0,u),re.substr(u+1)]}(Se)),this.engine.listen(this.namespaceId,he,Se,qe,nt=>{this.factory.scheduleListenerCallback(nt._data||-1,x,nt)})}return this.delegate.listen(u,d,x)}}let gi=(()=>{class re extends Xi{constructor(d,x,he){super(d.body,x,he)}ngOnDestroy(){this.flush()}}return re.\u0275fac=function(d){return new(d||re)(r.LFG(_e.K0),r.LFG(me),r.LFG(p))},re.\u0275prov=r.Yz7({token:re,factory:re.\u0275fac}),re})();const L=new r.OlP("AnimationModuleType"),F=[{provide:l._j,useClass:W},{provide:p,useFactory:function no(){return new y}},{provide:Xi,useClass:gi},{provide:r.FYo,useFactory:function $(re,u,d){return new li(re,u,d)},deps:[o.se,Xi,r.R0b]}],Te=[{provide:me,useFactory:function An(){return function Zn(){return"function"==typeof j()}()?new zn:new xo}},{provide:L,useValue:"BrowserAnimations"},...F],Ut=[{provide:me,useClass:He},{provide:L,useValue:"NoopAnimations"},...F];let On=(()=>{class re{static withConfig(d){return{ngModule:re,providers:d.disableAnimations?Ut:Te}}}return re.\u0275fac=function(d){return new(d||re)},re.\u0275mod=r.oAB({type:re}),re.\u0275inj=r.cJS({providers:Te,imports:[o.b2]}),re})()},2313:(Ft,Oe,c)=>{c.d(Oe,{b2:()=>en,H7:()=>xt,h_:()=>Ve,Dx:()=>Mt,q6:()=>Et,se:()=>we});var r=c(9808),o=c(5e3);class l extends r.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class K extends l{static makeCurrent(){(0,r.HT)(new K)}onAndCancel(Z,oe,De){return Z.addEventListener(oe,De,!1),()=>{Z.removeEventListener(oe,De,!1)}}dispatchEvent(Z,oe){Z.dispatchEvent(oe)}remove(Z){Z.parentNode&&Z.parentNode.removeChild(Z)}createElement(Z,oe){return(oe=oe||this.getDefaultDocument()).createElement(Z)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Z){return Z.nodeType===Node.ELEMENT_NODE}isShadowRoot(Z){return Z instanceof DocumentFragment}getGlobalEventTarget(Z,oe){return"window"===oe?window:"document"===oe?Z:"body"===oe?Z.body:null}getBaseHref(Z){const oe=function A(){return m=m||document.querySelector("base"),m?m.getAttribute("href"):null}();return null==oe?null:function D(V){b=b||document.createElement("a"),b.setAttribute("href",V);const Z=b.pathname;return"/"===Z.charAt(0)?Z:`/${Z}`}(oe)}resetBaseElement(){m=null}getUserAgent(){return window.navigator.userAgent}getCookie(Z){return(0,r.Mx)(document.cookie,Z)}}let b,m=null;const C=new o.OlP("TRANSITION_ID"),S=[{provide:o.ip1,useFactory:function E(V,Z,oe){return()=>{oe.get(o.CZH).donePromise.then(()=>{const De=(0,r.q)(),ft=Z.querySelectorAll(`style[ng-transition="${V}"]`);for(let Jt=0;Jt{const Jt=Z.findTestabilityInTree(De,ft);if(null==Jt)throw new Error("Could not find testability for element.");return Jt},o.dqk.getAllAngularTestabilities=()=>Z.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>Z.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(De=>{const ft=o.dqk.getAllAngularTestabilities();let Jt=ft.length,te=!1;const T=function(p){te=te||p,Jt--,0==Jt&&De(te)};ft.forEach(function(p){p.whenStable(T)})})}findTestabilityInTree(Z,oe,De){if(null==oe)return null;const ft=Z.getTestability(oe);return null!=ft?ft:De?(0,r.q)().isShadowRoot(oe)?this.findTestabilityInTree(Z,oe.host,!0):this.findTestabilityInTree(Z,oe.parentElement,!0):null}}let z=(()=>{class V{build(){return new XMLHttpRequest}}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac}),V})();const M=new o.OlP("EventManagerPlugins");let k=(()=>{class V{constructor(oe,De){this._zone=De,this._eventNameToPlugin=new Map,oe.forEach(ft=>ft.manager=this),this._plugins=oe.slice().reverse()}addEventListener(oe,De,ft){return this._findPluginFor(De).addEventListener(oe,De,ft)}addGlobalEventListener(oe,De,ft){return this._findPluginFor(De).addGlobalEventListener(oe,De,ft)}getZone(){return this._zone}_findPluginFor(oe){const De=this._eventNameToPlugin.get(oe);if(De)return De;const ft=this._plugins;for(let Jt=0;Jt{class V{constructor(){this._stylesSet=new Set}addStyles(oe){const De=new Set;oe.forEach(ft=>{this._stylesSet.has(ft)||(this._stylesSet.add(ft),De.add(ft))}),this.onStylesAdded(De)}onStylesAdded(oe){}getAllStyles(){return Array.from(this._stylesSet)}}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac}),V})(),ce=(()=>{class V extends ie{constructor(oe){super(),this._doc=oe,this._hostNodes=new Map,this._hostNodes.set(oe.head,[])}_addStylesToHost(oe,De,ft){oe.forEach(Jt=>{const te=this._doc.createElement("style");te.textContent=Jt,ft.push(De.appendChild(te))})}addHost(oe){const De=[];this._addStylesToHost(this._stylesSet,oe,De),this._hostNodes.set(oe,De)}removeHost(oe){const De=this._hostNodes.get(oe);De&&De.forEach(ve),this._hostNodes.delete(oe)}onStylesAdded(oe){this._hostNodes.forEach((De,ft)=>{this._addStylesToHost(oe,ft,De)})}ngOnDestroy(){this._hostNodes.forEach(oe=>oe.forEach(ve))}}return V.\u0275fac=function(oe){return new(oe||V)(o.LFG(r.K0))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac}),V})();function ve(V){(0,r.q)().remove(V)}const Le={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Re=/%COMP%/g;function J(V,Z,oe){for(let De=0;De{if("__ngUnwrap__"===Z)return V;!1===V(Z)&&(Z.preventDefault(),Z.returnValue=!1)}}let we=(()=>{class V{constructor(oe,De,ft){this.eventManager=oe,this.sharedStylesHost=De,this.appId=ft,this.rendererByCompId=new Map,this.defaultRenderer=new ue(oe)}createRenderer(oe,De){if(!oe||!De)return this.defaultRenderer;switch(De.encapsulation){case o.ifc.Emulated:{let ft=this.rendererByCompId.get(De.id);return ft||(ft=new rt(this.eventManager,this.sharedStylesHost,De,this.appId),this.rendererByCompId.set(De.id,ft)),ft.applyToHost(oe),ft}case 1:case o.ifc.ShadowDom:return new wt(this.eventManager,this.sharedStylesHost,oe,De);default:if(!this.rendererByCompId.has(De.id)){const ft=J(De.id,De.styles,[]);this.sharedStylesHost.addStyles(ft),this.rendererByCompId.set(De.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return V.\u0275fac=function(oe){return new(oe||V)(o.LFG(k),o.LFG(ce),o.LFG(o.AFp))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac}),V})();class ue{constructor(Z){this.eventManager=Z,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Z,oe){return oe?document.createElementNS(Le[oe]||oe,Z):document.createElement(Z)}createComment(Z){return document.createComment(Z)}createText(Z){return document.createTextNode(Z)}appendChild(Z,oe){Z.appendChild(oe)}insertBefore(Z,oe,De){Z&&Z.insertBefore(oe,De)}removeChild(Z,oe){Z&&Z.removeChild(oe)}selectRootElement(Z,oe){let De="string"==typeof Z?document.querySelector(Z):Z;if(!De)throw new Error(`The selector "${Z}" did not match any elements`);return oe||(De.textContent=""),De}parentNode(Z){return Z.parentNode}nextSibling(Z){return Z.nextSibling}setAttribute(Z,oe,De,ft){if(ft){oe=ft+":"+oe;const Jt=Le[ft];Jt?Z.setAttributeNS(Jt,oe,De):Z.setAttribute(oe,De)}else Z.setAttribute(oe,De)}removeAttribute(Z,oe,De){if(De){const ft=Le[De];ft?Z.removeAttributeNS(ft,oe):Z.removeAttribute(`${De}:${oe}`)}else Z.removeAttribute(oe)}addClass(Z,oe){Z.classList.add(oe)}removeClass(Z,oe){Z.classList.remove(oe)}setStyle(Z,oe,De,ft){ft&(o.JOm.DashCase|o.JOm.Important)?Z.style.setProperty(oe,De,ft&o.JOm.Important?"important":""):Z.style[oe]=De}removeStyle(Z,oe,De){De&o.JOm.DashCase?Z.style.removeProperty(oe):Z.style[oe]=""}setProperty(Z,oe,De){Z[oe]=De}setValue(Z,oe){Z.nodeValue=oe}listen(Z,oe,De){return"string"==typeof Z?this.eventManager.addGlobalEventListener(Z,oe,Me(De)):this.eventManager.addEventListener(Z,oe,Me(De))}}class rt extends ue{constructor(Z,oe,De,ft){super(Z),this.component=De;const Jt=J(ft+"-"+De.id,De.styles,[]);oe.addStyles(Jt),this.contentAttr=function fe(V){return"_ngcontent-%COMP%".replace(Re,V)}(ft+"-"+De.id),this.hostAttr=function U(V){return"_nghost-%COMP%".replace(Re,V)}(ft+"-"+De.id)}applyToHost(Z){super.setAttribute(Z,this.hostAttr,"")}createElement(Z,oe){const De=super.createElement(Z,oe);return super.setAttribute(De,this.contentAttr,""),De}}class wt extends ue{constructor(Z,oe,De,ft){super(Z),this.sharedStylesHost=oe,this.hostEl=De,this.shadowRoot=De.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Jt=J(ft.id,ft.styles,[]);for(let te=0;te{class V extends N{constructor(oe){super(oe)}supports(oe){return!0}addEventListener(oe,De,ft){return oe.addEventListener(De,ft,!1),()=>this.removeEventListener(oe,De,ft)}removeEventListener(oe,De,ft){return oe.removeEventListener(De,ft)}}return V.\u0275fac=function(oe){return new(oe||V)(o.LFG(r.K0))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac}),V})();const mt=["alt","control","meta","shift"],Ct={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},It={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Xe={alt:V=>V.altKey,control:V=>V.ctrlKey,meta:V=>V.metaKey,shift:V=>V.shiftKey};let lt=(()=>{class V extends N{constructor(oe){super(oe)}supports(oe){return null!=V.parseEventName(oe)}addEventListener(oe,De,ft){const Jt=V.parseEventName(De),te=V.eventCallback(Jt.fullKey,ft,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,r.q)().onAndCancel(oe,Jt.domEventName,te))}static parseEventName(oe){const De=oe.toLowerCase().split("."),ft=De.shift();if(0===De.length||"keydown"!==ft&&"keyup"!==ft)return null;const Jt=V._normalizeKey(De.pop());let te="";if(mt.forEach(p=>{const h=De.indexOf(p);h>-1&&(De.splice(h,1),te+=p+".")}),te+=Jt,0!=De.length||0===Jt.length)return null;const T={};return T.domEventName=ft,T.fullKey=te,T}static getEventFullKey(oe){let De="",ft=function ct(V){let Z=V.key;if(null==Z){if(Z=V.keyIdentifier,null==Z)return"Unidentified";Z.startsWith("U+")&&(Z=String.fromCharCode(parseInt(Z.substring(2),16)),3===V.location&&It.hasOwnProperty(Z)&&(Z=It[Z]))}return Ct[Z]||Z}(oe);return ft=ft.toLowerCase()," "===ft?ft="space":"."===ft&&(ft="dot"),mt.forEach(Jt=>{Jt!=ft&&Xe[Jt](oe)&&(De+=Jt+".")}),De+=ft,De}static eventCallback(oe,De,ft){return Jt=>{V.getEventFullKey(Jt)===oe&&ft.runGuarded(()=>De(Jt))}}static _normalizeKey(oe){return"esc"===oe?"escape":oe}}return V.\u0275fac=function(oe){return new(oe||V)(o.LFG(r.K0))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac}),V})();const Et=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:r.bD},{provide:o.g9A,useValue:function Lt(){K.makeCurrent(),w.init()},multi:!0},{provide:r.K0,useFactory:function Pt(){return(0,o.RDi)(document),document},deps:[]}]),ot=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function Ie(){return new o.qLn},deps:[]},{provide:M,useClass:Ae,multi:!0,deps:[r.K0,o.R0b,o.Lbi]},{provide:M,useClass:lt,multi:!0,deps:[r.K0]},{provide:we,useClass:we,deps:[k,ce,o.AFp]},{provide:o.FYo,useExisting:we},{provide:ie,useExisting:ce},{provide:ce,useClass:ce,deps:[r.K0]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b]},{provide:k,useClass:k,deps:[M,o.R0b]},{provide:r.JF,useClass:z,deps:[]}];let en=(()=>{class V{constructor(oe){if(oe)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(oe){return{ngModule:V,providers:[{provide:o.AFp,useValue:oe.appId},{provide:C,useExisting:o.AFp},S]}}}return V.\u0275fac=function(oe){return new(oe||V)(o.LFG(V,12))},V.\u0275mod=o.oAB({type:V}),V.\u0275inj=o.cJS({providers:ot,imports:[r.ez,o.hGG]}),V})(),Ve=(()=>{class V{constructor(oe){this._doc=oe,this._dom=(0,r.q)()}addTag(oe,De=!1){return oe?this._getOrCreateElement(oe,De):null}addTags(oe,De=!1){return oe?oe.reduce((ft,Jt)=>(Jt&&ft.push(this._getOrCreateElement(Jt,De)),ft),[]):[]}getTag(oe){return oe&&this._doc.querySelector(`meta[${oe}]`)||null}getTags(oe){if(!oe)return[];const De=this._doc.querySelectorAll(`meta[${oe}]`);return De?[].slice.call(De):[]}updateTag(oe,De){if(!oe)return null;De=De||this._parseSelector(oe);const ft=this.getTag(De);return ft?this._setMetaElementAttributes(oe,ft):this._getOrCreateElement(oe,!0)}removeTag(oe){this.removeTagElement(this.getTag(oe))}removeTagElement(oe){oe&&this._dom.remove(oe)}_getOrCreateElement(oe,De=!1){if(!De){const te=this._parseSelector(oe),T=this.getTags(te).filter(p=>this._containsAttributes(oe,p))[0];if(void 0!==T)return T}const ft=this._dom.createElement("meta");return this._setMetaElementAttributes(oe,ft),this._doc.getElementsByTagName("head")[0].appendChild(ft),ft}_setMetaElementAttributes(oe,De){return Object.keys(oe).forEach(ft=>De.setAttribute(this._getMetaKeyMap(ft),oe[ft])),De}_parseSelector(oe){const De=oe.name?"name":"property";return`${De}="${oe[De]}"`}_containsAttributes(oe,De){return Object.keys(oe).every(ft=>De.getAttribute(this._getMetaKeyMap(ft))===oe[ft])}_getMetaKeyMap(oe){return ye[oe]||oe}}return V.\u0275fac=function(oe){return new(oe||V)(o.LFG(r.K0))},V.\u0275prov=o.Yz7({token:V,factory:function(oe){let De=null;return De=oe?new oe:function Ne(){return new Ve((0,o.LFG)(r.K0))}(),De},providedIn:"root"}),V})();const ye={httpEquiv:"http-equiv"};let Mt=(()=>{class V{constructor(oe){this._doc=oe}getTitle(){return this._doc.title}setTitle(oe){this._doc.title=oe||""}}return V.\u0275fac=function(oe){return new(oe||V)(o.LFG(r.K0))},V.\u0275prov=o.Yz7({token:V,factory:function(oe){let De=null;return De=oe?new oe:function yt(){return new Mt((0,o.LFG)(r.K0))}(),De},providedIn:"root"}),V})();"undefined"!=typeof window&&window;let xt=(()=>{class V{}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275prov=o.Yz7({token:V,factory:function(oe){let De=null;return De=oe?new(oe||V):o.LFG(de),De},providedIn:"root"}),V})(),de=(()=>{class V extends xt{constructor(oe){super(),this._doc=oe}sanitize(oe,De){if(null==De)return null;switch(oe){case o.q3G.NONE:return De;case o.q3G.HTML:return(0,o.qzn)(De,"HTML")?(0,o.z3N)(De):(0,o.EiD)(this._doc,String(De)).toString();case o.q3G.STYLE:return(0,o.qzn)(De,"Style")?(0,o.z3N)(De):De;case o.q3G.SCRIPT:if((0,o.qzn)(De,"Script"))return(0,o.z3N)(De);throw new Error("unsafe value used in a script context");case o.q3G.URL:return(0,o.yhl)(De),(0,o.qzn)(De,"URL")?(0,o.z3N)(De):(0,o.mCW)(String(De));case o.q3G.RESOURCE_URL:if((0,o.qzn)(De,"ResourceURL"))return(0,o.z3N)(De);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${oe} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(oe){return(0,o.JVY)(oe)}bypassSecurityTrustStyle(oe){return(0,o.L6k)(oe)}bypassSecurityTrustScript(oe){return(0,o.eBb)(oe)}bypassSecurityTrustUrl(oe){return(0,o.LAX)(oe)}bypassSecurityTrustResourceUrl(oe){return(0,o.pB0)(oe)}}return V.\u0275fac=function(oe){return new(oe||V)(o.LFG(r.K0))},V.\u0275prov=o.Yz7({token:V,factory:function(oe){let De=null;return De=oe?new oe:function ge(V){return new de(V.get(r.K0))}(o.LFG(o.zs3)),De},providedIn:"root"}),V})()},325:(Ft,Oe,c)=>{c.d(Oe,{gz:()=>Jn,m2:()=>It,eC:()=>Mt,F0:()=>mi,rH:()=>Bi,Od:()=>cr,yS:()=>yo,Bz:()=>_s,lC:()=>$i});var r=c(5e3),o=c(5254),l=c(1086),K=c(591),m=c(3426),A=c(2916),b=c(4450),D=c(1221),C=c(8514),E=c(8896),S=c(1762),w=c(8929),z=c(3489);function M(O,v){let g=!1;return arguments.length>=2&&(g=!0),function(q){return q.lift(new k(O,v,g))}}class k{constructor(v,g,H=!1){this.accumulator=v,this.seed=g,this.hasSeed=H}call(v,g){return g.subscribe(new N(v,this.accumulator,this.seed,this.hasSeed))}}class N extends z.L{constructor(v,g,H,q){super(v),this.accumulator=g,this._seed=H,this.hasSeed=q,this.index=0}get seed(){return this._seed}set seed(v){this.hasSeed=!0,this._seed=v}_next(v){if(this.hasSeed)return this._tryNext(v);this.seed=v,this.destination.next(v)}_tryNext(v){const g=this.index++;let H;try{H=this.accumulator(this.seed,v,g)}catch(q){this.destination.error(q)}this.seed=H,this.destination.next(H)}}var ie=c(2198),ce=c(4231);function ve(O){return function(g){return 0===O?(0,E.c)():g.lift(new Le(O))}}class Le{constructor(v){if(this.total=v,this.total<0)throw new ce.W}call(v,g){return g.subscribe(new Re(v,this.total))}}class Re extends z.L{constructor(v,g){super(v),this.total=g,this.ring=new Array,this.count=0}_next(v){const g=this.ring,H=this.total,q=this.count++;g.length0){const H=this.count>=this.total?this.total:this.count,q=this.ring;for(let be=0;beO.length||"full"===g.pathMatch&&(v.hasChildren()||H.lengthH[be]===q)}return O===v}function zt(O){return Array.prototype.concat.apply([],O)}function jt(O){return O.length>0?O[O.length-1]:null}function vn(O,v){for(const g in O)O.hasOwnProperty(g)&&v(O[g],g)}function cn(O){return(0,r.CqO)(O)?O:(0,r.QGY)(O)?(0,o.D)(Promise.resolve(O)):(0,l.of)(O)}const nn={exact:function _n(O,v,g){if(!de(O.segments,v.segments)||!Ge(O.segments,v.segments,g)||O.numberOfChildren!==v.numberOfChildren)return!1;for(const H in v.children)if(!O.children[H]||!_n(O.children[H],v.children[H],g))return!1;return!0},subset:Dt},Gn={exact:function yn(O,v){return Tt(O,v)},subset:function un(O,v){return Object.keys(v).length<=Object.keys(O).length&&Object.keys(v).every(g=>je(O[g],v[g]))},ignored:()=>!0};function xn(O,v,g){return nn[g.paths](O.root,v.root,g.matrixParams)&&Gn[g.queryParams](O.queryParams,v.queryParams)&&!("exact"===g.fragment&&O.fragment!==v.fragment)}function Dt(O,v,g){return it(O,v,v.segments,g)}function it(O,v,g,H){if(O.segments.length>g.length){const q=O.segments.slice(0,g.length);return!(!de(q,g)||v.hasChildren()||!Ge(q,g,H))}if(O.segments.length===g.length){if(!de(O.segments,g)||!Ge(O.segments,g,H))return!1;for(const q in v.children)if(!O.children[q]||!Dt(O.children[q],v.children[q],H))return!1;return!0}{const q=g.slice(0,O.segments.length),be=g.slice(O.segments.length);return!!(de(O.segments,q)&&Ge(O.segments,q,H)&&O.children[Mt])&&it(O.children[Mt],v,be,H)}}function Ge(O,v,g){return v.every((H,q)=>Gn[g](O[q].parameters,H.parameters))}class St{constructor(v,g,H){this.root=v,this.queryParams=g,this.fragment=H}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return oe.serialize(this)}}class xe{constructor(v,g){this.segments=v,this.children=g,this.parent=null,vn(g,(H,q)=>H.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return De(this)}}class xt{constructor(v,g){this.path=v,this.parameters=g}get parameterMap(){return this._parameterMap||(this._parameterMap=Y(this.parameters)),this._parameterMap}toString(){return R(this)}}function de(O,v){return O.length===v.length&&O.every((g,H)=>g.path===v[H].path)}class V{}class Z{parse(v){const g=new Vt(v);return new St(g.parseRootSegment(),g.parseQueryParams(),g.parseFragment())}serialize(v){const g=`/${ft(v.root,!0)}`,H=function et(O){const v=Object.keys(O).map(g=>{const H=O[g];return Array.isArray(H)?H.map(q=>`${te(g)}=${te(q)}`).join("&"):`${te(g)}=${te(H)}`}).filter(g=>!!g);return v.length?`?${v.join("&")}`:""}(v.queryParams);return`${g}${H}${"string"==typeof v.fragment?`#${function T(O){return encodeURI(O)}(v.fragment)}`:""}`}}const oe=new Z;function De(O){return O.segments.map(v=>R(v)).join("/")}function ft(O,v){if(!O.hasChildren())return De(O);if(v){const g=O.children[Mt]?ft(O.children[Mt],!1):"",H=[];return vn(O.children,(q,be)=>{be!==Mt&&H.push(`${be}:${ft(q,!1)}`)}),H.length>0?`${g}(${H.join("//")})`:g}{const g=function ut(O,v){let g=[];return vn(O.children,(H,q)=>{q===Mt&&(g=g.concat(v(H,q)))}),vn(O.children,(H,q)=>{q!==Mt&&(g=g.concat(v(H,q)))}),g}(O,(H,q)=>q===Mt?[ft(O.children[Mt],!1)]:[`${q}:${ft(H,!1)}`]);return 1===Object.keys(O.children).length&&null!=O.children[Mt]?`${De(O)}/${g[0]}`:`${De(O)}/(${g.join("//")})`}}function Jt(O){return encodeURIComponent(O).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function te(O){return Jt(O).replace(/%3B/gi,";")}function p(O){return Jt(O).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function h(O){return decodeURIComponent(O)}function y(O){return h(O.replace(/\+/g,"%20"))}function R(O){return`${p(O.path)}${function Ee(O){return Object.keys(O).map(v=>`;${p(v)}=${p(O[v])}`).join("")}(O.parameters)}`}const gt=/^[^\/()?;=#]+/;function Qe(O){const v=O.match(gt);return v?v[0]:""}const _t=/^[^=?&#]+/,qt=/^[^&#]+/;class Vt{constructor(v){this.url=v,this.remaining=v}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new xe([],{}):new xe([],this.parseChildren())}parseQueryParams(){const v={};if(this.consumeOptional("?"))do{this.parseQueryParam(v)}while(this.consumeOptional("&"));return v}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const v=[];for(this.peekStartsWith("(")||v.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),v.push(this.parseSegment());let g={};this.peekStartsWith("/(")&&(this.capture("/"),g=this.parseParens(!0));let H={};return this.peekStartsWith("(")&&(H=this.parseParens(!1)),(v.length>0||Object.keys(g).length>0)&&(H[Mt]=new xe(v,g)),H}parseSegment(){const v=Qe(this.remaining);if(""===v&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(v),new xt(h(v),this.parseMatrixParams())}parseMatrixParams(){const v={};for(;this.consumeOptional(";");)this.parseParam(v);return v}parseParam(v){const g=Qe(this.remaining);if(!g)return;this.capture(g);let H="";if(this.consumeOptional("=")){const q=Qe(this.remaining);q&&(H=q,this.capture(H))}v[h(g)]=h(H)}parseQueryParam(v){const g=function Rt(O){const v=O.match(_t);return v?v[0]:""}(this.remaining);if(!g)return;this.capture(g);let H="";if(this.consumeOptional("=")){const $e=function on(O){const v=O.match(qt);return v?v[0]:""}(this.remaining);$e&&(H=$e,this.capture(H))}const q=y(g),be=y(H);if(v.hasOwnProperty(q)){let $e=v[q];Array.isArray($e)||($e=[$e],v[q]=$e),$e.push(be)}else v[q]=be}parseParens(v){const g={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const H=Qe(this.remaining),q=this.remaining[H.length];if("/"!==q&&")"!==q&&";"!==q)throw new Error(`Cannot parse url '${this.url}'`);let be;H.indexOf(":")>-1?(be=H.substr(0,H.indexOf(":")),this.capture(be),this.capture(":")):v&&(be=Mt);const $e=this.parseChildren();g[be]=1===Object.keys($e).length?$e[Mt]:new xe([],$e),this.consumeOptional("//")}return g}peekStartsWith(v){return this.remaining.startsWith(v)}consumeOptional(v){return!!this.peekStartsWith(v)&&(this.remaining=this.remaining.substring(v.length),!0)}capture(v){if(!this.consumeOptional(v))throw new Error(`Expected "${v}".`)}}class bn{constructor(v){this._root=v}get root(){return this._root.value}parent(v){const g=this.pathFromRoot(v);return g.length>1?g[g.length-2]:null}children(v){const g=mn(v,this._root);return g?g.children.map(H=>H.value):[]}firstChild(v){const g=mn(v,this._root);return g&&g.children.length>0?g.children[0].value:null}siblings(v){const g=fn(v,this._root);return g.length<2?[]:g[g.length-2].children.map(q=>q.value).filter(q=>q!==v)}pathFromRoot(v){return fn(v,this._root).map(g=>g.value)}}function mn(O,v){if(O===v.value)return v;for(const g of v.children){const H=mn(O,g);if(H)return H}return null}function fn(O,v){if(O===v.value)return[v];for(const g of v.children){const H=fn(O,g);if(H.length)return H.unshift(v),H}return[]}class Dn{constructor(v,g){this.value=v,this.children=g}toString(){return`TreeNode(${this.value})`}}function rn(O){const v={};return O&&O.children.forEach(g=>v[g.value.outlet]=g),v}class Nn extends bn{constructor(v,g){super(v),this.snapshot=g,tt(this,v)}toString(){return this.snapshot.toString()}}function Qn(O,v){const g=function ti(O,v){const $e=new ke([],{},{},"",{},Mt,v,null,O.root,-1,{});return new le("",new Dn($e,[]))}(O,v),H=new K.X([new xt("",{})]),q=new K.X({}),be=new K.X({}),$e=new K.X({}),ht=new K.X(""),$t=new Jn(H,q,$e,ht,be,Mt,v,g.root);return $t.snapshot=g.root,new Nn(new Dn($t,[]),g)}class Jn{constructor(v,g,H,q,be,$e,ht,$t){this.url=v,this.params=g,this.queryParams=H,this.fragment=q,this.data=be,this.outlet=$e,this.component=ht,this._futureSnapshot=$t}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,fe.U)(v=>Y(v)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,fe.U)(v=>Y(v)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qn(O,v="emptyOnly"){const g=O.pathFromRoot;let H=0;if("always"!==v)for(H=g.length-1;H>=1;){const q=g[H],be=g[H-1];if(q.routeConfig&&""===q.routeConfig.path)H--;else{if(be.component)break;H--}}return function Ce(O){return O.reduce((v,g)=>({params:Object.assign(Object.assign({},v.params),g.params),data:Object.assign(Object.assign({},v.data),g.data),resolve:Object.assign(Object.assign({},v.resolve),g._resolvedData)}),{params:{},data:{},resolve:{}})}(g.slice(H))}class ke{constructor(v,g,H,q,be,$e,ht,$t,X,B,I){this.url=v,this.params=g,this.queryParams=H,this.fragment=q,this.data=be,this.outlet=$e,this.component=ht,this.routeConfig=$t,this._urlSegment=X,this._lastPathIndex=B,this._resolve=I}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Y(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(H=>H.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class le extends bn{constructor(v,g){super(g),this.url=v,tt(this,g)}toString(){return Ht(this._root)}}function tt(O,v){v.value._routerState=O,v.children.forEach(g=>tt(O,g))}function Ht(O){const v=O.children.length>0?` { ${O.children.map(Ht).join(", ")} } `:"";return`${O.value}${v}`}function Xt(O){if(O.snapshot){const v=O.snapshot,g=O._futureSnapshot;O.snapshot=g,Tt(v.queryParams,g.queryParams)||O.queryParams.next(g.queryParams),v.fragment!==g.fragment&&O.fragment.next(g.fragment),Tt(v.params,g.params)||O.params.next(g.params),function vt(O,v){if(O.length!==v.length)return!1;for(let g=0;gTt(g.parameters,v[H].parameters))}(O.url,v.url);return g&&!(!O.parent!=!v.parent)&&(!O.parent||dn(O.parent,v.parent))}function jn(O,v,g){if(g&&O.shouldReuseRoute(v.value,g.value.snapshot)){const H=g.value;H._futureSnapshot=v.value;const q=function Ci(O,v,g){return v.children.map(H=>{for(const q of g.children)if(O.shouldReuseRoute(H.value,q.value.snapshot))return jn(O,H,q);return jn(O,H)})}(O,v,g);return new Dn(H,q)}{if(O.shouldAttach(v.value)){const be=O.retrieve(v.value);if(null!==be){const $e=be.route;return $e.value._futureSnapshot=v.value,$e.children=v.children.map(ht=>jn(O,ht)),$e}}const H=function ii(O){return new Jn(new K.X(O.url),new K.X(O.params),new K.X(O.queryParams),new K.X(O.fragment),new K.X(O.data),O.outlet,O.component,O)}(v.value),q=v.children.map(be=>jn(O,be));return new Dn(H,q)}}function pi(O){return"object"==typeof O&&null!=O&&!O.outlets&&!O.segmentPath}function Wi(O){return"object"==typeof O&&null!=O&&O.outlets}function oo(O,v,g,H,q){let be={};return H&&vn(H,($e,ht)=>{be[ht]=Array.isArray($e)?$e.map($t=>`${$t}`):`${$e}`}),new St(g.root===O?v:Si(g.root,O,v),be,q)}function Si(O,v,g){const H={};return vn(O.children,(q,be)=>{H[be]=q===v?g:Si(q,v,g)}),new xe(O.segments,H)}class Ii{constructor(v,g,H){if(this.isAbsolute=v,this.numberOfDoubleDots=g,this.commands=H,v&&H.length>0&&pi(H[0]))throw new Error("Root segment cannot have matrix parameters");const q=H.find(Wi);if(q&&q!==jt(H))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ro{constructor(v,g,H){this.segmentGroup=v,this.processChildren=g,this.index=H}}function Co(O,v,g){if(O||(O=new xe([],{})),0===O.segments.length&&O.hasChildren())return Xi(O,v,g);const H=function bo(O,v,g){let H=0,q=v;const be={match:!1,pathIndex:0,commandIndex:0};for(;q=g.length)return be;const $e=O.segments[q],ht=g[H];if(Wi(ht))break;const $t=`${ht}`,X=H0&&void 0===$t)break;if($t&&X&&"object"==typeof X&&void 0===X.outlets){if(!To($t,X,$e))return be;H+=2}else{if(!To($t,{},$e))return be;H++}q++}return{match:!0,pathIndex:q,commandIndex:H}}(O,v,g),q=g.slice(H.commandIndex);if(H.match&&H.pathIndex{"string"==typeof be&&(be=[be]),null!==be&&(q[$e]=Co(O.children[$e],v,be))}),vn(O.children,(be,$e)=>{void 0===H[$e]&&(q[$e]=be)}),new xe(O.segments,q)}}function Do(O,v,g){const H=O.segments.slice(0,v);let q=0;for(;q{"string"==typeof g&&(g=[g]),null!==g&&(v[H]=Do(new xe([],{}),0,g))}),v}function Jo(O){const v={};return vn(O,(g,H)=>v[H]=`${g}`),v}function To(O,v,g){return O==g.path&&Tt(v,g.parameters)}class so{constructor(v,g,H,q){this.routeReuseStrategy=v,this.futureState=g,this.currState=H,this.forwardEvent=q}activate(v){const g=this.futureState._root,H=this.currState?this.currState._root:null;this.deactivateChildRoutes(g,H,v),Xt(this.futureState.root),this.activateChildRoutes(g,H,v)}deactivateChildRoutes(v,g,H){const q=rn(g);v.children.forEach(be=>{const $e=be.value.outlet;this.deactivateRoutes(be,q[$e],H),delete q[$e]}),vn(q,(be,$e)=>{this.deactivateRouteAndItsChildren(be,H)})}deactivateRoutes(v,g,H){const q=v.value,be=g?g.value:null;if(q===be)if(q.component){const $e=H.getContext(q.outlet);$e&&this.deactivateChildRoutes(v,g,$e.children)}else this.deactivateChildRoutes(v,g,H);else be&&this.deactivateRouteAndItsChildren(g,H)}deactivateRouteAndItsChildren(v,g){v.value.component&&this.routeReuseStrategy.shouldDetach(v.value.snapshot)?this.detachAndStoreRouteSubtree(v,g):this.deactivateRouteAndOutlet(v,g)}detachAndStoreRouteSubtree(v,g){const H=g.getContext(v.value.outlet),q=H&&v.value.component?H.children:g,be=rn(v);for(const $e of Object.keys(be))this.deactivateRouteAndItsChildren(be[$e],q);if(H&&H.outlet){const $e=H.outlet.detach(),ht=H.children.onOutletDeactivated();this.routeReuseStrategy.store(v.value.snapshot,{componentRef:$e,route:v,contexts:ht})}}deactivateRouteAndOutlet(v,g){const H=g.getContext(v.value.outlet),q=H&&v.value.component?H.children:g,be=rn(v);for(const $e of Object.keys(be))this.deactivateRouteAndItsChildren(be[$e],q);H&&H.outlet&&(H.outlet.deactivate(),H.children.onOutletDeactivated(),H.attachRef=null,H.resolver=null,H.route=null)}activateChildRoutes(v,g,H){const q=rn(g);v.children.forEach(be=>{this.activateRoutes(be,q[be.value.outlet],H),this.forwardEvent(new ye(be.value.snapshot))}),v.children.length&&this.forwardEvent(new Ne(v.value.snapshot))}activateRoutes(v,g,H){const q=v.value,be=g?g.value:null;if(Xt(q),q===be)if(q.component){const $e=H.getOrCreateContext(q.outlet);this.activateChildRoutes(v,g,$e.children)}else this.activateChildRoutes(v,g,H);else if(q.component){const $e=H.getOrCreateContext(q.outlet);if(this.routeReuseStrategy.shouldAttach(q.snapshot)){const ht=this.routeReuseStrategy.retrieve(q.snapshot);this.routeReuseStrategy.store(q.snapshot,null),$e.children.onOutletReAttached(ht.contexts),$e.attachRef=ht.componentRef,$e.route=ht.route.value,$e.outlet&&$e.outlet.attach(ht.componentRef,ht.route.value),Xt(ht.route.value),this.activateChildRoutes(v,null,$e.children)}else{const ht=function Mo(O){for(let v=O.parent;v;v=v.parent){const g=v.routeConfig;if(g&&g._loadedConfig)return g._loadedConfig;if(g&&g.component)return null}return null}(q.snapshot),$t=ht?ht.module.componentFactoryResolver:null;$e.attachRef=null,$e.route=q,$e.resolver=$t,$e.outlet&&$e.outlet.activateWith(q,$t),this.activateChildRoutes(v,null,$e.children)}}else this.activateChildRoutes(v,null,H)}}class So{constructor(v,g){this.routes=v,this.module=g}}function Vi(O){return"function"==typeof O}function xi(O){return O instanceof St}const eo=Symbol("INITIAL_VALUE");function ao(){return(0,U.w)(O=>(0,m.aj)(O.map(v=>v.pipe((0,J.q)(1),(0,Me.O)(eo)))).pipe(M((v,g)=>{let H=!1;return g.reduce((q,be,$e)=>q!==eo?q:(be===eo&&(H=!0),H||!1!==be&&$e!==g.length-1&&!xi(be)?q:be),v)},eo),(0,ie.h)(v=>v!==eo),(0,fe.U)(v=>xi(v)?v:!0===v),(0,J.q)(1)))}class jo{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new to,this.attachRef=null}}class to{constructor(){this.contexts=new Map}onChildOutletCreated(v,g){const H=this.getOrCreateContext(v);H.outlet=g,this.contexts.set(v,H)}onChildOutletDestroyed(v){const g=this.getContext(v);g&&(g.outlet=null,g.attachRef=null)}onOutletDeactivated(){const v=this.contexts;return this.contexts=new Map,v}onOutletReAttached(v){this.contexts=v}getOrCreateContext(v){let g=this.getContext(v);return g||(g=new jo,this.contexts.set(v,g)),g}getContext(v){return this.contexts.get(v)||null}}let $i=(()=>{class O{constructor(g,H,q,be,$e){this.parentContexts=g,this.location=H,this.resolver=q,this.changeDetector=$e,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.attachEvents=new r.vpe,this.detachEvents=new r.vpe,this.name=be||Mt,g.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const g=this.parentContexts.getContext(this.name);g&&g.route&&(g.attachRef?this.attach(g.attachRef,g.route):this.activateWith(g.route,g.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const g=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(g.instance),g}attach(g,H){this.activated=g,this._activatedRoute=H,this.location.insert(g.hostView),this.attachEvents.emit(g.instance)}deactivate(){if(this.activated){const g=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(g)}}activateWith(g,H){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=g;const $e=(H=H||this.resolver).resolveComponentFactory(g._futureSnapshot.routeConfig.component),ht=this.parentContexts.getOrCreateContext(this.name).children,$t=new zo(g,ht,this.location.injector);this.activated=this.location.createComponent($e,this.location.length,$t),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return O.\u0275fac=function(g){return new(g||O)(r.Y36(to),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},O.\u0275dir=r.lG2({type:O,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),O})();class zo{constructor(v,g,H){this.route=v,this.childContexts=g,this.parent=H}get(v,g){return v===Jn?this.route:v===to?this.childContexts:this.parent.get(v,g)}}let Ti=(()=>{class O{}return O.\u0275fac=function(g){return new(g||O)},O.\u0275cmp=r.Xpm({type:O,selectors:[["ng-component"]],decls:1,vars:0,template:function(g,H){1&g&&r._UZ(0,"router-outlet")},directives:[$i],encapsulation:2}),O})();function Oi(O,v=""){for(let g=0;gzi(H)===v);return g.push(...O.filter(H=>zi(H)!==v)),g}const vi={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ji(O,v,g){var H;if(""===v.path)return"full"===v.pathMatch&&(O.hasChildren()||g.length>0)?Object.assign({},vi):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const be=(v.matcher||Je)(g,O,v);if(!be)return Object.assign({},vi);const $e={};vn(be.posParams,($t,X)=>{$e[X]=$t.path});const ht=be.consumed.length>0?Object.assign(Object.assign({},$e),be.consumed[be.consumed.length-1].parameters):$e;return{matched:!0,consumedSegments:be.consumed,lastChild:be.consumed.length,parameters:ht,positionalParamSegments:null!==(H=be.posParams)&&void 0!==H?H:{}}}function zn(O,v,g,H,q="corrected"){if(g.length>0&&function _e(O,v,g){return g.some(H=>ze(O,v,H)&&zi(H)!==Mt)}(O,g,H)){const $e=new xe(v,function j(O,v,g,H){const q={};q[Mt]=H,H._sourceSegment=O,H._segmentIndexShift=v.length;for(const be of g)if(""===be.path&&zi(be)!==Mt){const $e=new xe([],{});$e._sourceSegment=O,$e._segmentIndexShift=v.length,q[zi(be)]=$e}return q}(O,v,H,new xe(g,O.children)));return $e._sourceSegment=O,$e._segmentIndexShift=v.length,{segmentGroup:$e,slicedSegments:[]}}if(0===g.length&&function W(O,v,g){return g.some(H=>ze(O,v,H))}(O,g,H)){const $e=new xe(O.segments,function Zn(O,v,g,H,q,be){const $e={};for(const ht of H)if(ze(O,g,ht)&&!q[zi(ht)]){const $t=new xe([],{});$t._sourceSegment=O,$t._segmentIndexShift="legacy"===be?O.segments.length:v.length,$e[zi(ht)]=$t}return Object.assign(Object.assign({},q),$e)}(O,v,g,H,O.children,q));return $e._sourceSegment=O,$e._segmentIndexShift=v.length,{segmentGroup:$e,slicedSegments:g}}const be=new xe(O.segments,O.children);return be._sourceSegment=O,be._segmentIndexShift=v.length,{segmentGroup:be,slicedSegments:g}}function ze(O,v,g){return(!(O.hasChildren()||v.length>0)||"full"!==g.pathMatch)&&""===g.path}function st(O,v,g,H){return!!(zi(O)===H||H!==Mt&&ze(v,g,O))&&("**"===O.path||ji(v,O,g).matched)}function bt(O,v,g){return 0===v.length&&!O.children[g]}class Zt{constructor(v){this.segmentGroup=v||null}}class Cn{constructor(v){this.urlTree=v}}function li(O){return new A.y(v=>v.error(new Zt(O)))}function ni(O){return new A.y(v=>v.error(new Cn(O)))}function oi(O){return new A.y(v=>v.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${O}'`)))}class gi{constructor(v,g,H,q,be){this.configLoader=g,this.urlSerializer=H,this.urlTree=q,this.config=be,this.allowRedirects=!0,this.ngModule=v.get(r.h0i)}apply(){const v=zn(this.urlTree.root,[],[],this.config).segmentGroup,g=new xe(v.segments,v.children);return this.expandSegmentGroup(this.ngModule,this.config,g,Mt).pipe((0,fe.U)(be=>this.createUrlTree(no(be),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,se.K)(be=>{if(be instanceof Cn)return this.allowRedirects=!1,this.match(be.urlTree);throw be instanceof Zt?this.noMatchError(be):be}))}match(v){return this.expandSegmentGroup(this.ngModule,this.config,v.root,Mt).pipe((0,fe.U)(q=>this.createUrlTree(no(q),v.queryParams,v.fragment))).pipe((0,se.K)(q=>{throw q instanceof Zt?this.noMatchError(q):q}))}noMatchError(v){return new Error(`Cannot match any routes. URL Segment: '${v.segmentGroup}'`)}createUrlTree(v,g,H){const q=v.segments.length>0?new xe([],{[Mt]:v}):v;return new St(q,g,H)}expandSegmentGroup(v,g,H,q){return 0===H.segments.length&&H.hasChildren()?this.expandChildren(v,g,H).pipe((0,fe.U)(be=>new xe([],be))):this.expandSegment(v,H,g,H.segments,q,!0)}expandChildren(v,g,H){const q=[];for(const be of Object.keys(H.children))"primary"===be?q.unshift(be):q.push(be);return(0,o.D)(q).pipe((0,we.b)(be=>{const $e=H.children[be],ht=er(g,be);return this.expandSegmentGroup(v,ht,$e,be).pipe((0,fe.U)($t=>({segment:$t,outlet:be})))}),M((be,$e)=>(be[$e.outlet]=$e.segment,be),{}),function me(O,v){const g=arguments.length>=2;return H=>H.pipe(O?(0,ie.h)((q,be)=>O(q,be,H)):He.y,ve(1),g?(0,Ue.d)(v):(0,ae.T)(()=>new b.K))}())}expandSegment(v,g,H,q,be,$e){return(0,o.D)(H).pipe((0,we.b)(ht=>this.expandSegmentAgainstRoute(v,g,H,ht,q,be,$e).pipe((0,se.K)(X=>{if(X instanceof Zt)return(0,l.of)(null);throw X}))),(0,ue.P)(ht=>!!ht),(0,se.K)((ht,$t)=>{if(ht instanceof b.K||"EmptyError"===ht.name){if(bt(g,q,be))return(0,l.of)(new xe([],{}));throw new Zt(g)}throw ht}))}expandSegmentAgainstRoute(v,g,H,q,be,$e,ht){return st(q,g,be,$e)?void 0===q.redirectTo?this.matchSegmentAgainstRoute(v,g,q,be,$e):ht&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(v,g,H,q,be,$e):li(g):li(g)}expandSegmentAgainstRouteUsingRedirect(v,g,H,q,be,$e){return"**"===q.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(v,H,q,$e):this.expandRegularSegmentAgainstRouteUsingRedirect(v,g,H,q,be,$e)}expandWildCardWithParamsAgainstRouteUsingRedirect(v,g,H,q){const be=this.applyRedirectCommands([],H.redirectTo,{});return H.redirectTo.startsWith("/")?ni(be):this.lineralizeSegments(H,be).pipe((0,Ye.zg)($e=>{const ht=new xe($e,{});return this.expandSegment(v,ht,g,$e,q,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(v,g,H,q,be,$e){const{matched:ht,consumedSegments:$t,lastChild:X,positionalParamSegments:B}=ji(g,q,be);if(!ht)return li(g);const I=this.applyRedirectCommands($t,q.redirectTo,B);return q.redirectTo.startsWith("/")?ni(I):this.lineralizeSegments(q,I).pipe((0,Ye.zg)(ee=>this.expandSegment(v,g,H,ee.concat(be.slice(X)),$e,!1)))}matchSegmentAgainstRoute(v,g,H,q,be){if("**"===H.path)return H.loadChildren?(H._loadedConfig?(0,l.of)(H._loadedConfig):this.configLoader.load(v.injector,H)).pipe((0,fe.U)(ee=>(H._loadedConfig=ee,new xe(q,{})))):(0,l.of)(new xe(q,{}));const{matched:$e,consumedSegments:ht,lastChild:$t}=ji(g,H,q);if(!$e)return li(g);const X=q.slice($t);return this.getChildConfig(v,H,q).pipe((0,Ye.zg)(I=>{const ee=I.module,Pe=I.routes,{segmentGroup:Ze,slicedSegments:at}=zn(g,ht,X,Pe),Yt=new xe(Ze.segments,Ze.children);if(0===at.length&&Yt.hasChildren())return this.expandChildren(ee,Pe,Yt).pipe((0,fe.U)(ln=>new xe(ht,ln)));if(0===Pe.length&&0===at.length)return(0,l.of)(new xe(ht,{}));const Gt=zi(H)===be;return this.expandSegment(ee,Yt,Pe,at,Gt?Mt:be,!0).pipe((0,fe.U)(sn=>new xe(ht.concat(sn.segments),sn.children)))}))}getChildConfig(v,g,H){return g.children?(0,l.of)(new So(g.children,v)):g.loadChildren?void 0!==g._loadedConfig?(0,l.of)(g._loadedConfig):this.runCanLoadGuards(v.injector,g,H).pipe((0,Ye.zg)(q=>q?this.configLoader.load(v.injector,g).pipe((0,fe.U)(be=>(g._loadedConfig=be,be))):function $n(O){return new A.y(v=>v.error(Q(`Cannot load children because the guard of the route "path: '${O.path}'" returned false`)))}(g))):(0,l.of)(new So([],v))}runCanLoadGuards(v,g,H){const q=g.canLoad;if(!q||0===q.length)return(0,l.of)(!0);const be=q.map($e=>{const ht=v.get($e);let $t;if(function Yo(O){return O&&Vi(O.canLoad)}(ht))$t=ht.canLoad(g,H);else{if(!Vi(ht))throw new Error("Invalid CanLoad guard");$t=ht(g,H)}return cn($t)});return(0,l.of)(be).pipe(ao(),(0,We.b)($e=>{if(!xi($e))return;const ht=Q(`Redirecting to "${this.urlSerializer.serialize($e)}"`);throw ht.url=$e,ht}),(0,fe.U)($e=>!0===$e))}lineralizeSegments(v,g){let H=[],q=g.root;for(;;){if(H=H.concat(q.segments),0===q.numberOfChildren)return(0,l.of)(H);if(q.numberOfChildren>1||!q.children[Mt])return oi(v.redirectTo);q=q.children[Mt]}}applyRedirectCommands(v,g,H){return this.applyRedirectCreatreUrlTree(g,this.urlSerializer.parse(g),v,H)}applyRedirectCreatreUrlTree(v,g,H,q){const be=this.createSegmentGroup(v,g.root,H,q);return new St(be,this.createQueryParams(g.queryParams,this.urlTree.queryParams),g.fragment)}createQueryParams(v,g){const H={};return vn(v,(q,be)=>{if("string"==typeof q&&q.startsWith(":")){const ht=q.substring(1);H[be]=g[ht]}else H[be]=q}),H}createSegmentGroup(v,g,H,q){const be=this.createSegments(v,g.segments,H,q);let $e={};return vn(g.children,(ht,$t)=>{$e[$t]=this.createSegmentGroup(v,ht,H,q)}),new xe(be,$e)}createSegments(v,g,H,q){return g.map(be=>be.path.startsWith(":")?this.findPosParam(v,be,q):this.findOrReturn(be,H))}findPosParam(v,g,H){const q=H[g.path.substring(1)];if(!q)throw new Error(`Cannot redirect to '${v}'. Cannot find '${g.path}'.`);return q}findOrReturn(v,g){let H=0;for(const q of g){if(q.path===v.path)return g.splice(H),q;H++}return v}}function no(O){const v={};for(const H of Object.keys(O.children)){const be=no(O.children[H]);(be.segments.length>0||be.hasChildren())&&(v[H]=be)}return function An(O){if(1===O.numberOfChildren&&O.children[Mt]){const v=O.children[Mt];return new xe(O.segments.concat(v.segments),v.children)}return O}(new xe(O.segments,v))}class L{constructor(v){this.path=v,this.route=this.path[this.path.length-1]}}class F{constructor(v,g){this.component=v,this.route=g}}function Te(O,v,g){const H=O._root;return re(H,v?v._root:null,g,[H.value])}function On(O,v,g){const H=function Kt(O){if(!O)return null;for(let v=O.parent;v;v=v.parent){const g=v.routeConfig;if(g&&g._loadedConfig)return g._loadedConfig}return null}(v);return(H?H.module.injector:g).get(O)}function re(O,v,g,H,q={canDeactivateChecks:[],canActivateChecks:[]}){const be=rn(v);return O.children.forEach($e=>{(function u(O,v,g,H,q={canDeactivateChecks:[],canActivateChecks:[]}){const be=O.value,$e=v?v.value:null,ht=g?g.getContext(O.value.outlet):null;if($e&&be.routeConfig===$e.routeConfig){const $t=function d(O,v,g){if("function"==typeof g)return g(O,v);switch(g){case"pathParamsChange":return!de(O.url,v.url);case"pathParamsOrQueryParamsChange":return!de(O.url,v.url)||!Tt(O.queryParams,v.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!dn(O,v)||!Tt(O.queryParams,v.queryParams);default:return!dn(O,v)}}($e,be,be.routeConfig.runGuardsAndResolvers);$t?q.canActivateChecks.push(new L(H)):(be.data=$e.data,be._resolvedData=$e._resolvedData),re(O,v,be.component?ht?ht.children:null:g,H,q),$t&&ht&&ht.outlet&&ht.outlet.isActivated&&q.canDeactivateChecks.push(new F(ht.outlet.component,$e))}else $e&&x(v,ht,q),q.canActivateChecks.push(new L(H)),re(O,null,be.component?ht?ht.children:null:g,H,q)})($e,be[$e.value.outlet],g,H.concat([$e.value]),q),delete be[$e.value.outlet]}),vn(be,($e,ht)=>x($e,g.getContext(ht),q)),q}function x(O,v,g){const H=rn(O),q=O.value;vn(H,(be,$e)=>{x(be,q.component?v?v.children.getContext($e):null:v,g)}),g.canDeactivateChecks.push(new F(q.component&&v&&v.outlet&&v.outlet.isActivated?v.outlet.component:null,q))}class Pn{}function Wn(O){return new A.y(v=>v.error(O))}class Vn{constructor(v,g,H,q,be,$e){this.rootComponentType=v,this.config=g,this.urlTree=H,this.url=q,this.paramsInheritanceStrategy=be,this.relativeLinkResolution=$e}recognize(){const v=zn(this.urlTree.root,[],[],this.config.filter($e=>void 0===$e.redirectTo),this.relativeLinkResolution).segmentGroup,g=this.processSegmentGroup(this.config,v,Mt);if(null===g)return null;const H=new ke([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Mt,this.rootComponentType,null,this.urlTree.root,-1,{}),q=new Dn(H,g),be=new le(this.url,q);return this.inheritParamsAndData(be._root),be}inheritParamsAndData(v){const g=v.value,H=qn(g,this.paramsInheritanceStrategy);g.params=Object.freeze(H.params),g.data=Object.freeze(H.data),v.children.forEach(q=>this.inheritParamsAndData(q))}processSegmentGroup(v,g,H){return 0===g.segments.length&&g.hasChildren()?this.processChildren(v,g):this.processSegment(v,g,g.segments,H)}processChildren(v,g){const H=[];for(const be of Object.keys(g.children)){const $e=g.children[be],ht=er(v,be),$t=this.processSegmentGroup(ht,$e,be);if(null===$t)return null;H.push(...$t)}const q=Ai(H);return function Hn(O){O.sort((v,g)=>v.value.outlet===Mt?-1:g.value.outlet===Mt?1:v.value.outlet.localeCompare(g.value.outlet))}(q),q}processSegment(v,g,H,q){for(const be of v){const $e=this.processSegmentAgainstRoute(be,g,H,q);if(null!==$e)return $e}return bt(g,H,q)?[]:null}processSegmentAgainstRoute(v,g,H,q){if(v.redirectTo||!st(v,g,H,q))return null;let be,$e=[],ht=[];if("**"===v.path){const Pe=H.length>0?jt(H).parameters:{};be=new ke(H,Pe,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Pi(v),zi(v),v.component,v,co(g),Ri(g)+H.length,Ki(v))}else{const Pe=ji(g,v,H);if(!Pe.matched)return null;$e=Pe.consumedSegments,ht=H.slice(Pe.lastChild),be=new ke($e,Pe.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Pi(v),zi(v),v.component,v,co(g),Ri(g)+$e.length,Ki(v))}const $t=function bi(O){return O.children?O.children:O.loadChildren?O._loadedConfig.routes:[]}(v),{segmentGroup:X,slicedSegments:B}=zn(g,$e,ht,$t.filter(Pe=>void 0===Pe.redirectTo),this.relativeLinkResolution);if(0===B.length&&X.hasChildren()){const Pe=this.processChildren($t,X);return null===Pe?null:[new Dn(be,Pe)]}if(0===$t.length&&0===B.length)return[new Dn(be,[])];const I=zi(v)===q,ee=this.processSegment($t,X,B,I?Mt:q);return null===ee?null:[new Dn(be,ee)]}}function Ei(O){const v=O.value.routeConfig;return v&&""===v.path&&void 0===v.redirectTo}function Ai(O){const v=[],g=new Set;for(const H of O){if(!Ei(H)){v.push(H);continue}const q=v.find(be=>H.value.routeConfig===be.value.routeConfig);void 0!==q?(q.children.push(...H.children),g.add(q)):v.push(H)}for(const H of g){const q=Ai(H.children);v.push(new Dn(H.value,q))}return v.filter(H=>!g.has(H))}function co(O){let v=O;for(;v._sourceSegment;)v=v._sourceSegment;return v}function Ri(O){let v=O,g=v._segmentIndexShift?v._segmentIndexShift:0;for(;v._sourceSegment;)v=v._sourceSegment,g+=v._segmentIndexShift?v._segmentIndexShift:0;return g-1}function Pi(O){return O.data||{}}function Ki(O){return O.resolve||{}}function Fo(O){return(0,U.w)(v=>{const g=O(v);return g?(0,o.D)(g).pipe((0,fe.U)(()=>v)):(0,l.of)(v)})}class kn extends class Tn{shouldDetach(v){return!1}store(v,g){}shouldAttach(v){return!1}retrieve(v){return null}shouldReuseRoute(v,g){return v.routeConfig===g.routeConfig}}{}const Ln=new r.OlP("ROUTES");class Bn{constructor(v,g,H,q){this.injector=v,this.compiler=g,this.onLoadStartListener=H,this.onLoadEndListener=q}load(v,g){if(g._loader$)return g._loader$;this.onLoadStartListener&&this.onLoadStartListener(g);const q=this.loadModuleFactory(g.loadChildren).pipe((0,fe.U)(be=>{this.onLoadEndListener&&this.onLoadEndListener(g);const $e=be.create(v);return new So(zt($e.injector.get(Ln,void 0,r.XFs.Self|r.XFs.Optional)).map(Uo),$e)}),(0,se.K)(be=>{throw g._loader$=void 0,be}));return g._loader$=new S.c(q,()=>new w.xQ).pipe((0,rt.x)()),g._loader$}loadModuleFactory(v){return cn(v()).pipe((0,Ye.zg)(g=>g instanceof r.YKP?(0,l.of)(g):(0,o.D)(this.compiler.compileModuleAsync(g))))}}class ui{shouldProcessUrl(v){return!0}extract(v){return v}merge(v,g){return v}}function ki(O){throw O}function vo(O,v,g){return v.parse("/")}function _i(O,v){return(0,l.of)(null)}const ar={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},br={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let mi=(()=>{class O{constructor(g,H,q,be,$e,ht,$t){this.rootComponentType=g,this.urlSerializer=H,this.rootContexts=q,this.location=be,this.config=$t,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new w.xQ,this.errorHandler=ki,this.malformedUriErrorHandler=vo,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_i,afterPreactivation:_i},this.urlHandlingStrategy=new ui,this.routeReuseStrategy=new kn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=$e.get(r.h0i),this.console=$e.get(r.c2e);const I=$e.get(r.R0b);this.isNgZoneEnabled=I instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig($t),this.currentUrlTree=function an(){return new St(new xe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Bn($e,ht,ee=>this.triggerEvent(new Et(ee)),ee=>this.triggerEvent(new ot(ee))),this.routerState=Qn(this.currentUrlTree,this.rootComponentType),this.transitions=new K.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var g;return null===(g=this.location.getState())||void 0===g?void 0:g.\u0275routerPageId}setupNavigations(g){const H=this.events;return g.pipe((0,ie.h)(q=>0!==q.id),(0,fe.U)(q=>Object.assign(Object.assign({},q),{extractedUrl:this.urlHandlingStrategy.extract(q.rawUrl)})),(0,U.w)(q=>{let be=!1,$e=!1;return(0,l.of)(q).pipe((0,We.b)(ht=>{this.currentNavigation={id:ht.id,initialUrl:ht.currentRawUrl,extractedUrl:ht.extractedUrl,trigger:ht.source,extras:ht.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,U.w)(ht=>{const $t=this.browserUrlTree.toString(),X=!this.navigated||ht.extractedUrl.toString()!==$t||$t!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||X)&&this.urlHandlingStrategy.shouldProcessUrl(ht.rawUrl))return Hi(ht.source)&&(this.browserUrlTree=ht.extractedUrl),(0,l.of)(ht).pipe((0,U.w)(I=>{const ee=this.transitions.getValue();return H.next(new Ct(I.id,this.serializeUrl(I.extractedUrl),I.source,I.restoredState)),ee!==this.transitions.getValue()?E.E:Promise.resolve(I)}),function $(O,v,g,H){return(0,U.w)(q=>function hi(O,v,g,H,q){return new gi(O,v,g,H,q).apply()}(O,v,g,q.extractedUrl,H).pipe((0,fe.U)(be=>Object.assign(Object.assign({},q),{urlAfterRedirects:be}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,We.b)(I=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:I.urlAfterRedirects})}),function Ui(O,v,g,H,q){return(0,Ye.zg)(be=>function In(O,v,g,H,q="emptyOnly",be="legacy"){try{const $e=new Vn(O,v,g,H,q,be).recognize();return null===$e?Wn(new Pn):(0,l.of)($e)}catch($e){return Wn($e)}}(O,v,be.urlAfterRedirects,g(be.urlAfterRedirects),H,q).pipe((0,fe.U)($e=>Object.assign(Object.assign({},be),{targetSnapshot:$e}))))}(this.rootComponentType,this.config,I=>this.serializeUrl(I),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,We.b)(I=>{if("eager"===this.urlUpdateStrategy){if(!I.extras.skipLocationChange){const Pe=this.urlHandlingStrategy.merge(I.urlAfterRedirects,I.rawUrl);this.setBrowserUrl(Pe,I)}this.browserUrlTree=I.urlAfterRedirects}const ee=new ct(I.id,this.serializeUrl(I.extractedUrl),this.serializeUrl(I.urlAfterRedirects),I.targetSnapshot);H.next(ee)}));if(X&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:ee,extractedUrl:Pe,source:Ze,restoredState:at,extras:Yt}=ht,Gt=new Ct(ee,this.serializeUrl(Pe),Ze,at);H.next(Gt);const Nt=Qn(Pe,this.rootComponentType).snapshot;return(0,l.of)(Object.assign(Object.assign({},ht),{targetSnapshot:Nt,urlAfterRedirects:Pe,extras:Object.assign(Object.assign({},Yt),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ht.rawUrl,ht.resolve(null),E.E}),Fo(ht=>{const{targetSnapshot:$t,id:X,extractedUrl:B,rawUrl:I,extras:{skipLocationChange:ee,replaceUrl:Pe}}=ht;return this.hooks.beforePreactivation($t,{navigationId:X,appliedUrlTree:B,rawUrlTree:I,skipLocationChange:!!ee,replaceUrl:!!Pe})}),(0,We.b)(ht=>{const $t=new Lt(ht.id,this.serializeUrl(ht.extractedUrl),this.serializeUrl(ht.urlAfterRedirects),ht.targetSnapshot);this.triggerEvent($t)}),(0,fe.U)(ht=>Object.assign(Object.assign({},ht),{guards:Te(ht.targetSnapshot,ht.currentSnapshot,this.rootContexts)})),function he(O,v){return(0,Ye.zg)(g=>{const{targetSnapshot:H,currentSnapshot:q,guards:{canActivateChecks:be,canDeactivateChecks:$e}}=g;return 0===$e.length&&0===be.length?(0,l.of)(Object.assign(Object.assign({},g),{guardsResult:!0})):function Se(O,v,g,H){return(0,o.D)(O).pipe((0,Ye.zg)(q=>function Sn(O,v,g,H,q){const be=v&&v.routeConfig?v.routeConfig.canDeactivate:null;if(!be||0===be.length)return(0,l.of)(!0);const $e=be.map(ht=>{const $t=On(ht,v,q);let X;if(function mo(O){return O&&Vi(O.canDeactivate)}($t))X=cn($t.canDeactivate(O,v,g,H));else{if(!Vi($t))throw new Error("Invalid CanDeactivate guard");X=cn($t(O,v,g,H))}return X.pipe((0,ue.P)())});return(0,l.of)($e).pipe(ao())}(q.component,q.route,g,v,H)),(0,ue.P)(q=>!0!==q,!0))}($e,H,q,O).pipe((0,Ye.zg)(ht=>ht&&function Xo(O){return"boolean"==typeof O}(ht)?function qe(O,v,g,H){return(0,o.D)(v).pipe((0,we.b)(q=>(0,D.z)(function Ot(O,v){return null!==O&&v&&v(new en(O)),(0,l.of)(!0)}(q.route.parent,H),function nt(O,v){return null!==O&&v&&v(new Ve(O)),(0,l.of)(!0)}(q.route,H),function hn(O,v,g){const H=v[v.length-1],be=v.slice(0,v.length-1).reverse().map($e=>function Ut(O){const v=O.routeConfig?O.routeConfig.canActivateChild:null;return v&&0!==v.length?{node:O,guards:v}:null}($e)).filter($e=>null!==$e).map($e=>(0,C.P)(()=>{const ht=$e.guards.map($t=>{const X=On($t,$e.node,g);let B;if(function po(O){return O&&Vi(O.canActivateChild)}(X))B=cn(X.canActivateChild(H,O));else{if(!Vi(X))throw new Error("Invalid CanActivateChild guard");B=cn(X(H,O))}return B.pipe((0,ue.P)())});return(0,l.of)(ht).pipe(ao())}));return(0,l.of)(be).pipe(ao())}(O,q.path,g),function Wt(O,v,g){const H=v.routeConfig?v.routeConfig.canActivate:null;if(!H||0===H.length)return(0,l.of)(!0);const q=H.map(be=>(0,C.P)(()=>{const $e=On(be,v,g);let ht;if(function Yi(O){return O&&Vi(O.canActivate)}($e))ht=cn($e.canActivate(v,O));else{if(!Vi($e))throw new Error("Invalid CanActivate guard");ht=cn($e(v,O))}return ht.pipe((0,ue.P)())}));return(0,l.of)(q).pipe(ao())}(O,q.route,g))),(0,ue.P)(q=>!0!==q,!0))}(H,be,O,v):(0,l.of)(ht)),(0,fe.U)(ht=>Object.assign(Object.assign({},g),{guardsResult:ht})))})}(this.ngModule.injector,ht=>this.triggerEvent(ht)),(0,We.b)(ht=>{if(xi(ht.guardsResult)){const X=Q(`Redirecting to "${this.serializeUrl(ht.guardsResult)}"`);throw X.url=ht.guardsResult,X}const $t=new Ie(ht.id,this.serializeUrl(ht.extractedUrl),this.serializeUrl(ht.urlAfterRedirects),ht.targetSnapshot,!!ht.guardsResult);this.triggerEvent($t)}),(0,ie.h)(ht=>!!ht.guardsResult||(this.restoreHistory(ht),this.cancelNavigationTransition(ht,""),!1)),Fo(ht=>{if(ht.guards.canActivateChecks.length)return(0,l.of)(ht).pipe((0,We.b)($t=>{const X=new Pt($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(X)}),(0,U.w)($t=>{let X=!1;return(0,l.of)($t).pipe(function io(O,v){return(0,Ye.zg)(g=>{const{targetSnapshot:H,guards:{canActivateChecks:q}}=g;if(!q.length)return(0,l.of)(g);let be=0;return(0,o.D)(q).pipe((0,we.b)($e=>function Po(O,v,g,H){return function Ao(O,v,g,H){const q=Object.keys(O);if(0===q.length)return(0,l.of)({});const be={};return(0,o.D)(q).pipe((0,Ye.zg)($e=>function go(O,v,g,H){const q=On(O,v,H);return cn(q.resolve?q.resolve(v,g):q(v,g))}(O[$e],v,g,H).pipe((0,We.b)(ht=>{be[$e]=ht}))),ve(1),(0,Ye.zg)(()=>Object.keys(be).length===q.length?(0,l.of)(be):E.E))}(O._resolve,O,v,H).pipe((0,fe.U)(be=>(O._resolvedData=be,O.data=Object.assign(Object.assign({},O.data),qn(O,g).resolve),null)))}($e.route,H,O,v)),(0,We.b)(()=>be++),ve(1),(0,Ye.zg)($e=>be===q.length?(0,l.of)(g):E.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,We.b)({next:()=>X=!0,complete:()=>{X||(this.restoreHistory($t),this.cancelNavigationTransition($t,"At least one route resolver didn't emit any value."))}}))}),(0,We.b)($t=>{const X=new pt($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(X)}))}),Fo(ht=>{const{targetSnapshot:$t,id:X,extractedUrl:B,rawUrl:I,extras:{skipLocationChange:ee,replaceUrl:Pe}}=ht;return this.hooks.afterPreactivation($t,{navigationId:X,appliedUrlTree:B,rawUrlTree:I,skipLocationChange:!!ee,replaceUrl:!!Pe})}),(0,fe.U)(ht=>{const $t=function Mn(O,v,g){const H=jn(O,v._root,g?g._root:void 0);return new Nn(H,v)}(this.routeReuseStrategy,ht.targetSnapshot,ht.currentRouterState);return Object.assign(Object.assign({},ht),{targetRouterState:$t})}),(0,We.b)(ht=>{this.currentUrlTree=ht.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ht.urlAfterRedirects,ht.rawUrl),this.routerState=ht.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ht.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ht),this.browserUrlTree=ht.urlAfterRedirects)}),((O,v,g)=>(0,fe.U)(H=>(new so(v,H.targetRouterState,H.currentRouterState,g).activate(O),H)))(this.rootContexts,this.routeReuseStrategy,ht=>this.triggerEvent(ht)),(0,We.b)({next(){be=!0},complete(){be=!0}}),(0,wt.x)(()=>{var ht;be||$e||this.cancelNavigationTransition(q,`Navigation ID ${q.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ht=this.currentNavigation)||void 0===ht?void 0:ht.id)===q.id&&(this.currentNavigation=null)}),(0,se.K)(ht=>{if($e=!0,function Fe(O){return O&&O[G]}(ht)){const $t=xi(ht.url);$t||(this.navigated=!0,this.restoreHistory(q,!0));const X=new Xe(q.id,this.serializeUrl(q.extractedUrl),ht.message);H.next(X),$t?setTimeout(()=>{const B=this.urlHandlingStrategy.merge(ht.url,this.rawUrlTree),I={skipLocationChange:q.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Hi(q.source)};this.scheduleNavigation(B,"imperative",null,I,{resolve:q.resolve,reject:q.reject,promise:q.promise})},0):q.resolve(!1)}else{this.restoreHistory(q,!0);const $t=new lt(q.id,this.serializeUrl(q.extractedUrl),ht);H.next($t);try{q.resolve(this.errorHandler(ht))}catch(X){q.reject(X)}}return E.E}))}))}resetRootComponentType(g){this.rootComponentType=g,this.routerState.root.component=this.rootComponentType}setTransition(g){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),g))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(g=>{const H="popstate"===g.type?"popstate":"hashchange";"popstate"===H&&setTimeout(()=>{var q;const be={replaceUrl:!0},$e=(null===(q=g.state)||void 0===q?void 0:q.navigationId)?g.state:null;if($e){const $t=Object.assign({},$e);delete $t.navigationId,delete $t.\u0275routerPageId,0!==Object.keys($t).length&&(be.state=$t)}const ht=this.parseUrl(g.url);this.scheduleNavigation(ht,H,$e,be)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(g){this.events.next(g)}resetConfig(g){Oi(g),this.config=g.map(Uo),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(g,H={}){const{relativeTo:q,queryParams:be,fragment:$e,queryParamsHandling:ht,preserveFragment:$t}=H,X=q||this.routerState.root,B=$t?this.currentUrlTree.fragment:$e;let I=null;switch(ht){case"merge":I=Object.assign(Object.assign({},this.currentUrlTree.queryParams),be);break;case"preserve":I=this.currentUrlTree.queryParams;break;default:I=be||null}return null!==I&&(I=this.removeEmptyProps(I)),function si(O,v,g,H,q){if(0===g.length)return oo(v.root,v.root,v,H,q);const be=function qi(O){if("string"==typeof O[0]&&1===O.length&&"/"===O[0])return new Ii(!0,0,O);let v=0,g=!1;const H=O.reduce((q,be,$e)=>{if("object"==typeof be&&null!=be){if(be.outlets){const ht={};return vn(be.outlets,($t,X)=>{ht[X]="string"==typeof $t?$t.split("/"):$t}),[...q,{outlets:ht}]}if(be.segmentPath)return[...q,be.segmentPath]}return"string"!=typeof be?[...q,be]:0===$e?(be.split("/").forEach((ht,$t)=>{0==$t&&"."===ht||(0==$t&&""===ht?g=!0:".."===ht?v++:""!=ht&&q.push(ht))}),q):[...q,be]},[]);return new Ii(g,v,H)}(g);if(be.toRoot())return oo(v.root,new xe([],{}),v,H,q);const $e=function Ho(O,v,g){if(O.isAbsolute)return new Ro(v.root,!0,0);if(-1===g.snapshot._lastPathIndex){const be=g.snapshot._urlSegment;return new Ro(be,be===v.root,0)}const H=pi(O.commands[0])?0:1;return function wo(O,v,g){let H=O,q=v,be=g;for(;be>q;){if(be-=q,H=H.parent,!H)throw new Error("Invalid number of '../'");q=H.segments.length}return new Ro(H,!1,q-be)}(g.snapshot._urlSegment,g.snapshot._lastPathIndex+H,O.numberOfDoubleDots)}(be,v,O),ht=$e.processChildren?Xi($e.segmentGroup,$e.index,be.commands):Co($e.segmentGroup,$e.index,be.commands);return oo($e.segmentGroup,ht,v,H,q)}(X,this.currentUrlTree,g,I,null!=B?B:null)}navigateByUrl(g,H={skipLocationChange:!1}){const q=xi(g)?g:this.parseUrl(g),be=this.urlHandlingStrategy.merge(q,this.rawUrlTree);return this.scheduleNavigation(be,"imperative",null,H)}navigate(g,H={skipLocationChange:!1}){return function Qi(O){for(let v=0;v{const be=g[q];return null!=be&&(H[q]=be),H},{})}processNavigations(){this.navigations.subscribe(g=>{this.navigated=!0,this.lastSuccessfulId=g.id,this.currentPageId=g.targetPageId,this.events.next(new It(g.id,this.serializeUrl(g.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,g.resolve(!0)},g=>{this.console.warn(`Unhandled Navigation Error: ${g}`)})}scheduleNavigation(g,H,q,be,$e){var ht,$t,X;if(this.disposed)return Promise.resolve(!1);const B=this.transitions.value,I=Hi(H)&&B&&!Hi(B.source),ee=B.rawUrl.toString()===g.toString(),Pe=B.id===(null===(ht=this.currentNavigation)||void 0===ht?void 0:ht.id);if(I&&ee&&Pe)return Promise.resolve(!0);let at,Yt,Gt;$e?(at=$e.resolve,Yt=$e.reject,Gt=$e.promise):Gt=new Promise((ln,gn)=>{at=ln,Yt=gn});const Nt=++this.navigationId;let sn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(q=this.location.getState()),sn=q&&q.\u0275routerPageId?q.\u0275routerPageId:be.replaceUrl||be.skipLocationChange?null!==($t=this.browserPageId)&&void 0!==$t?$t:0:(null!==(X=this.browserPageId)&&void 0!==X?X:0)+1):sn=0,this.setTransition({id:Nt,targetPageId:sn,source:H,restoredState:q,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:g,extras:be,resolve:at,reject:Yt,promise:Gt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Gt.catch(ln=>Promise.reject(ln))}setBrowserUrl(g,H){const q=this.urlSerializer.serialize(g),be=Object.assign(Object.assign({},H.extras.state),this.generateNgRouterState(H.id,H.targetPageId));this.location.isCurrentPathEqualTo(q)||H.extras.replaceUrl?this.location.replaceState(q,"",be):this.location.go(q,"",be)}restoreHistory(g,H=!1){var q,be;if("computed"===this.canceledNavigationResolution){const $e=this.currentPageId-g.targetPageId;"popstate"!==g.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(q=this.currentNavigation)||void 0===q?void 0:q.finalUrl)||0===$e?this.currentUrlTree===(null===(be=this.currentNavigation)||void 0===be?void 0:be.finalUrl)&&0===$e&&(this.resetState(g),this.browserUrlTree=g.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo($e)}else"replace"===this.canceledNavigationResolution&&(H&&this.resetState(g),this.resetUrlToCurrentUrlTree())}resetState(g){this.routerState=g.currentRouterState,this.currentUrlTree=g.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,g.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(g,H){const q=new Xe(g.id,this.serializeUrl(g.extractedUrl),H);this.triggerEvent(q),g.resolve(!1)}generateNgRouterState(g,H){return"computed"===this.canceledNavigationResolution?{navigationId:g,\u0275routerPageId:H}:{navigationId:g}}}return O.\u0275fac=function(g){r.$Z()},O.\u0275prov=r.Yz7({token:O,factory:O.\u0275fac}),O})();function Hi(O){return"imperative"!==O}let Bi=(()=>{class O{constructor(g,H,q,be,$e){this.router=g,this.route=H,this.tabIndexAttribute=q,this.renderer=be,this.el=$e,this.commands=null,this.onChanges=new w.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(g){if(null!=this.tabIndexAttribute)return;const H=this.renderer,q=this.el.nativeElement;null!==g?H.setAttribute(q,"tabindex",g):H.removeAttribute(q,"tabindex")}ngOnChanges(g){this.onChanges.next(this)}set routerLink(g){null!=g?(this.commands=Array.isArray(g)?g:[g],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const g={skipLocationChange:ko(this.skipLocationChange),replaceUrl:ko(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,g),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ko(this.preserveFragment)})}}return O.\u0275fac=function(g){return new(g||O)(r.Y36(mi),r.Y36(Jn),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},O.\u0275dir=r.lG2({type:O,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(g,H){1&g&&r.NdJ("click",function(){return H.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[r.TTD]}),O})(),yo=(()=>{class O{constructor(g,H,q){this.router=g,this.route=H,this.locationStrategy=q,this.commands=null,this.href=null,this.onChanges=new w.xQ,this.subscription=g.events.subscribe(be=>{be instanceof It&&this.updateTargetUrlAndHref()})}set routerLink(g){this.commands=null!=g?Array.isArray(g)?g:[g]:null}ngOnChanges(g){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(g,H,q,be,$e){if(0!==g||H||q||be||$e||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ht={skipLocationChange:ko(this.skipLocationChange),replaceUrl:ko(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ht),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ko(this.preserveFragment)})}}return O.\u0275fac=function(g){return new(g||O)(r.Y36(mi),r.Y36(Jn),r.Y36(mt.S$))},O.\u0275dir=r.lG2({type:O,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(g,H){1&g&&r.NdJ("click",function(be){return H.onClick(be.button,be.ctrlKey,be.shiftKey,be.altKey,be.metaKey)}),2&g&&r.uIk("target",H.target)("href",H.href,r.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[r.TTD]}),O})();function ko(O){return""===O||!!O}let cr=(()=>{class O{constructor(g,H,q,be,$e,ht){this.router=g,this.element=H,this.renderer=q,this.cdr=be,this.link=$e,this.linkWithHref=ht,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new r.vpe,this.routerEventsSubscription=g.events.subscribe($t=>{$t instanceof It&&this.update()})}ngAfterContentInit(){(0,l.of)(this.links.changes,this.linksWithHrefs.changes,(0,l.of)(null)).pipe((0,Ae.J)()).subscribe(g=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var g;null===(g=this.linkInputChangesSubscription)||void 0===g||g.unsubscribe();const H=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(q=>!!q).map(q=>q.onChanges);this.linkInputChangesSubscription=(0,o.D)(H).pipe((0,Ae.J)()).subscribe(q=>{this.isActive!==this.isLinkActive(this.router)(q)&&this.update()})}set routerLinkActive(g){const H=Array.isArray(g)?g:g.split(" ");this.classes=H.filter(q=>!!q)}ngOnChanges(g){this.update()}ngOnDestroy(){var g;this.routerEventsSubscription.unsubscribe(),null===(g=this.linkInputChangesSubscription)||void 0===g||g.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const g=this.hasActiveLinks();this.isActive!==g&&(this.isActive=g,this.cdr.markForCheck(),this.classes.forEach(H=>{g?this.renderer.addClass(this.element.nativeElement,H):this.renderer.removeClass(this.element.nativeElement,H)}),this.isActiveChange.emit(g))})}isLinkActive(g){const H=function Io(O){return!!O.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return q=>!!q.urlTree&&g.isActive(q.urlTree,H)}hasActiveLinks(){const g=this.isLinkActive(this.router);return this.link&&g(this.link)||this.linkWithHref&&g(this.linkWithHref)||this.links.some(g)||this.linksWithHrefs.some(g)}}return O.\u0275fac=function(g){return new(g||O)(r.Y36(mi),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(Bi,8),r.Y36(yo,8))},O.\u0275dir=r.lG2({type:O,selectors:[["","routerLinkActive",""]],contentQueries:function(g,H,q){if(1&g&&(r.Suo(q,Bi,5),r.Suo(q,yo,5)),2&g){let be;r.iGM(be=r.CRH())&&(H.links=be),r.iGM(be=r.CRH())&&(H.linksWithHrefs=be)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[r.TTD]}),O})();class tr{}class Ur{preload(v,g){return(0,l.of)(null)}}let Mr=(()=>{class O{constructor(g,H,q,be){this.router=g,this.injector=q,this.preloadingStrategy=be,this.loader=new Bn(q,H,$t=>g.triggerEvent(new Et($t)),$t=>g.triggerEvent(new ot($t)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,ie.h)(g=>g instanceof It),(0,we.b)(()=>this.preload())).subscribe(()=>{})}preload(){const g=this.injector.get(r.h0i);return this.processRoutes(g,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(g,H){const q=[];for(const be of H)if(be.loadChildren&&!be.canLoad&&be._loadedConfig){const $e=be._loadedConfig;q.push(this.processRoutes($e.module,$e.routes))}else be.loadChildren&&!be.canLoad?q.push(this.preloadConfig(g,be)):be.children&&q.push(this.processRoutes(g,be.children));return(0,o.D)(q).pipe((0,Ae.J)(),(0,fe.U)(be=>{}))}preloadConfig(g,H){return this.preloadingStrategy.preload(H,()=>(H._loadedConfig?(0,l.of)(H._loadedConfig):this.loader.load(g.injector,H)).pipe((0,Ye.zg)(be=>(H._loadedConfig=be,this.processRoutes(be.module,be.routes)))))}}return O.\u0275fac=function(g){return new(g||O)(r.LFG(mi),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(tr))},O.\u0275prov=r.Yz7({token:O,factory:O.\u0275fac}),O})(),xr=(()=>{class O{constructor(g,H,q={}){this.router=g,this.viewportScroller=H,this.options=q,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},q.scrollPositionRestoration=q.scrollPositionRestoration||"disabled",q.anchorScrolling=q.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(g=>{g instanceof Ct?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=g.navigationTrigger,this.restoredId=g.restoredState?g.restoredState.navigationId:0):g instanceof It&&(this.lastId=g.id,this.scheduleScrollEvent(g,this.router.parseUrl(g.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(g=>{g instanceof yt&&(g.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(g.position):g.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(g.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(g,H){this.router.triggerEvent(new yt(g,"popstate"===this.lastSource?this.store[this.restoredId]:null,H))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return O.\u0275fac=function(g){r.$Z()},O.\u0275prov=r.Yz7({token:O,factory:O.\u0275fac}),O})();const Vo=new r.OlP("ROUTER_CONFIGURATION"),vs=new r.OlP("ROUTER_FORROOT_GUARD"),ys=[mt.Ye,{provide:V,useClass:Z},{provide:mi,useFactory:function lr(O,v,g,H,q,be,$e={},ht,$t){const X=new mi(null,O,v,g,H,q,zt(be));return ht&&(X.urlHandlingStrategy=ht),$t&&(X.routeReuseStrategy=$t),function Cs(O,v){O.errorHandler&&(v.errorHandler=O.errorHandler),O.malformedUriErrorHandler&&(v.malformedUriErrorHandler=O.malformedUriErrorHandler),O.onSameUrlNavigation&&(v.onSameUrlNavigation=O.onSameUrlNavigation),O.paramsInheritanceStrategy&&(v.paramsInheritanceStrategy=O.paramsInheritanceStrategy),O.relativeLinkResolution&&(v.relativeLinkResolution=O.relativeLinkResolution),O.urlUpdateStrategy&&(v.urlUpdateStrategy=O.urlUpdateStrategy),O.canceledNavigationResolution&&(v.canceledNavigationResolution=O.canceledNavigationResolution)}($e,X),$e.enableTracing&&X.events.subscribe(B=>{var I,ee;null===(I=console.group)||void 0===I||I.call(console,`Router Event: ${B.constructor.name}`),console.log(B.toString()),console.log(B),null===(ee=console.groupEnd)||void 0===ee||ee.call(console)}),X},deps:[V,to,mt.Ye,r.zs3,r.Sil,Ln,Vo,[class yi{},new r.FiY],[class sr{},new r.FiY]]},to,{provide:Jn,useFactory:function zr(O){return O.routerState.root},deps:[mi]},Mr,Ur,class gs{preload(v,g){return g().pipe((0,se.K)(()=>(0,l.of)(null)))}},{provide:Vo,useValue:{enableTracing:!1}}];function Or(){return new r.PXZ("Router",mi)}let _s=(()=>{class O{constructor(g,H){}static forRoot(g,H){return{ngModule:O,providers:[ys,Vr(g),{provide:vs,useFactory:Gr,deps:[[mi,new r.FiY,new r.tp0]]},{provide:Vo,useValue:H||{}},{provide:mt.S$,useFactory:Pr,deps:[mt.lw,[new r.tBr(mt.mr),new r.FiY],Vo]},{provide:xr,useFactory:Ir,deps:[mi,mt.EM,Vo]},{provide:tr,useExisting:H&&H.preloadingStrategy?H.preloadingStrategy:Ur},{provide:r.PXZ,multi:!0,useFactory:Or},[ur,{provide:r.ip1,multi:!0,useFactory:Ar,deps:[ur]},{provide:hr,useFactory:qs,deps:[ur]},{provide:r.tb,multi:!0,useExisting:hr}]]}}static forChild(g){return{ngModule:O,providers:[Vr(g)]}}}return O.\u0275fac=function(g){return new(g||O)(r.LFG(vs,8),r.LFG(mi,8))},O.\u0275mod=r.oAB({type:O}),O.\u0275inj=r.cJS({}),O})();function Ir(O,v,g){return g.scrollOffset&&v.setOffset(g.scrollOffset),new xr(O,v,g)}function Pr(O,v,g={}){return g.useHash?new mt.Do(O,v):new mt.b0(O,v)}function Gr(O){return"guarded"}function Vr(O){return[{provide:r.deG,multi:!0,useValue:O},{provide:Ln,multi:!0,useValue:O}]}let ur=(()=>{class O{constructor(g){this.injector=g,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new w.xQ}appInitializer(){return this.injector.get(mt.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let H=null;const q=new Promise(ht=>H=ht),be=this.injector.get(mi),$e=this.injector.get(Vo);return"disabled"===$e.initialNavigation?(be.setUpLocationChangeListener(),H(!0)):"enabled"===$e.initialNavigation||"enabledBlocking"===$e.initialNavigation?(be.hooks.afterPreactivation=()=>this.initNavigation?(0,l.of)(null):(this.initNavigation=!0,H(!0),this.resultOfPreactivationDone),be.initialNavigation()):H(!0),q})}bootstrapListener(g){const H=this.injector.get(Vo),q=this.injector.get(Mr),be=this.injector.get(xr),$e=this.injector.get(mi),ht=this.injector.get(r.z2F);g===ht.components[0]&&(("enabledNonBlocking"===H.initialNavigation||void 0===H.initialNavigation)&&$e.initialNavigation(),q.setUpPreloading(),be.init(),$e.resetRootComponentType(ht.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return O.\u0275fac=function(g){return new(g||O)(r.LFG(r.zs3))},O.\u0275prov=r.Yz7({token:O,factory:O.\u0275fac}),O})();function Ar(O){return O.appInitializer.bind(O)}function qs(O){return O.bootstrapListener.bind(O)}const hr=new r.OlP("Router Initializer")},9193:(Ft,Oe,c)=>{c.d(Oe,{V65:()=>Pt,ud1:()=>ut,Hkd:()=>te,XuQ:()=>p,bBn:()=>et,BOg:()=>Ht,Rfq:()=>dn,yQU:()=>_t,U2Q:()=>fn,UKj:()=>si,BXH:()=>le,OYp:()=>pi,eLU:()=>ii,x0x:()=>zo,Ej7:()=>hi,VWu:()=>co,rMt:()=>Vn,vEg:()=>ar,RIp:()=>ys,RU0:()=>ki,M8e:()=>cr,ssy:()=>q,Z5F:()=>ur,iUK:()=>Pe,LJh:()=>ln,NFG:()=>nr,WH2:()=>ta,UTl:()=>El,nrZ:()=>Jr,gvV:()=>Bl,d2H:()=>Il,LBP:()=>ca,_ry:()=>Yl,eFY:()=>o1,sZJ:()=>lc,np6:()=>z1,UY$:()=>M6,w1L:()=>es,rHg:()=>j1,v6v:()=>wc,cN2:()=>Ns,FsU:()=>i4,s_U:()=>yu,TSL:()=>Lc,uIz:()=>Yr,d_$:()=>jr});const Pt={name:"bars",theme:"outline",icon:''},ut={name:"calendar",theme:"outline",icon:''},te={name:"caret-down",theme:"fill",icon:''},p={name:"caret-down",theme:"outline",icon:''},et={name:"caret-up",theme:"fill",icon:''},_t={name:"check-circle",theme:"outline",icon:''},fn={name:"check",theme:"outline",icon:''},le={name:"close-circle",theme:"fill",icon:''},Ht={name:"caret-up",theme:"outline",icon:''},dn={name:"check-circle",theme:"fill",icon:''},ii={name:"close",theme:"outline",icon:''},si={name:"clock-circle",theme:"outline",icon:''},pi={name:"close-circle",theme:"outline",icon:''},zo={name:"copy",theme:"outline",icon:''},hi={name:"dashboard",theme:"outline",icon:''},Vn={name:"double-right",theme:"outline",icon:''},co={name:"double-left",theme:"outline",icon:''},ki={name:"ellipsis",theme:"outline",icon:''},ar={name:"down",theme:"outline",icon:''},cr={name:"exclamation-circle",theme:"fill",icon:''},ys={name:"edit",theme:"outline",icon:''},ur={name:"eye",theme:"outline",icon:''},q={name:"exclamation-circle",theme:"outline",icon:''},Pe={name:"file",theme:"fill",icon:''},ln={name:"file",theme:"outline",icon:''},nr={name:"filter",theme:"fill",icon:''},ta={name:"form",theme:"outline",icon:''},El={name:"info-circle",theme:"fill",icon:''},Jr={name:"info-circle",theme:"outline",icon:''},Il={name:"loading",theme:"outline",icon:''},Bl={name:"left",theme:"outline",icon:''},Yl={name:"menu-unfold",theme:"outline",icon:''},ca={name:"menu-fold",theme:"outline",icon:''},o1={name:"paper-clip",theme:"outline",icon:''},lc={name:"question-circle",theme:"outline",icon:''},z1={name:"right",theme:"outline",icon:''},M6={name:"rotate-left",theme:"outline",icon:''},es={name:"rotate-right",theme:"outline",icon:''},wc={name:"star",theme:"fill",icon:''},j1={name:"search",theme:"outline",icon:''},Ns={name:"swap-right",theme:"outline",icon:''},i4={name:"up",theme:"outline",icon:''},yu={name:"upload",theme:"outline",icon:''},Lc={name:"vertical-align-top",theme:"outline",icon:''},Yr={name:"zoom-in",theme:"outline",icon:''},jr={name:"zoom-out",theme:"outline",icon:''}},3750:(Ft,Oe,c)=>{c.d(Oe,{h:()=>b,B:()=>D});var C,E,r=c(655),l=(c(9349),c(9428)),K=c(7062),m=c(9545),b=function(){function w(){this.known=new(m.sy?WeakSet:Set),this.pool=new l.B(m.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return w.prototype.isKnown=function(z){return(0,K.s)(z)&&this.known.has(z)},w.prototype.pass=function(z){if((0,K.s)(z)){var M=function A(w){return(0,K.s)(w)?Array.isArray(w)?w.slice(0):(0,r.pi)({__proto__:Object.getPrototypeOf(w)},w):w}(z);return this.passes.set(M,z),M}return z},w.prototype.admit=function(z){var M=this;if((0,K.s)(z)){var k=this.passes.get(z);if(k)return k;switch(Object.getPrototypeOf(z)){case Array.prototype:if(this.known.has(z))return z;var ie=z.map(this.admit,this);return(ce=this.pool.lookupArray(ie)).array||(this.known.add(ce.array=ie),__DEV__&&Object.freeze(ie)),ce.array;case null:case Object.prototype:if(this.known.has(z))return z;var ve=Object.getPrototypeOf(z),Le=[ve],Re=this.sortedKeys(z);Le.push(Re.json);var ce,ae=Le.length;if(Re.sorted.forEach(function(me){Le.push(M.admit(z[me]))}),!(ce=this.pool.lookupArray(Le)).object){var Ue=ce.object=Object.create(ve);this.known.add(Ue),Re.sorted.forEach(function(me,fe){Ue[me]=Le[ae+fe]}),__DEV__&&Object.freeze(Ue)}return ce.object}}return z},w.prototype.sortedKeys=function(z){var M=Object.keys(z),k=this.pool.lookupArray(M);if(!k.keys){M.sort();var N=JSON.stringify(M);(k.keys=this.keysByJSON.get(N))||this.keysByJSON.set(N,k.keys={sorted:M,json:N})}return k.keys},w}(),D=Object.assign(function(w){if((0,K.s)(w)){void 0===C&&S();var z=C.admit(w),M=E.get(z);return void 0===M&&E.set(z,M=JSON.stringify(z)),M}return JSON.stringify(w)},{reset:S});function S(){C=new b,E=new(m.mr?WeakMap:Map)}},6430:(Ft,Oe,c)=>{c.d(Oe,{ab:()=>l,li:()=>A,_v:()=>b,QS:()=>D});var r=c(9769),l=new(c(3119).g7),K=new WeakMap;function m(E){var S=K.get(E);return S||K.set(E,S={vars:new Set,dep:(0,r.dP)()}),S}function A(E){m(E).vars.forEach(function(S){return S.forgetCache(E)})}function b(E){m(E).vars.forEach(function(S){return S.attachCache(E)})}function D(E){var S=new Set,w=new Set,z=function(k){if(arguments.length>0){if(E!==k){E=k,S.forEach(function(ce){m(ce).dep.dirty(z),C(ce)});var N=Array.from(w);w.clear(),N.forEach(function(ce){return ce(E)})}}else{var ie=l.getValue();ie&&(M(ie),m(ie).dep(z))}return E};z.onNextChange=function(k){return w.add(k),function(){w.delete(k)}};var M=z.attachCache=function(k){return S.add(k),m(k).vars.add(z),z};return z.forgetCache=function(k){return S.delete(k)},z}function C(E){E.broadcastWatches&&E.broadcastWatches()}},484:(Ft,Oe,c)=>{c.d(Oe,{i:()=>w});var r=c(655),o=c(9349),l=c(4302),m=c(9419);function D(z,M){return M?M(z):l.y.of()}function C(z){return"function"==typeof z?new w(z):z}function E(z){return z.request.length<=1}var S=function(z){function M(k,N){var ie=z.call(this,k)||this;return ie.link=N,ie}return(0,r.ZT)(M,z),M}(Error),w=function(){function z(M){M&&(this.request=M)}return z.empty=function(){return new z(function(){return l.y.of()})},z.from=function(M){return 0===M.length?z.empty():M.map(C).reduce(function(k,N){return k.concat(N)})},z.split=function(M,k,N){var ie=C(k),ce=C(N||new z(D));return E(ie)&&E(ce)?new z(function(ve){return M(ve)?ie.request(ve)||l.y.of():ce.request(ve)||l.y.of()}):new z(function(ve,Le){return M(ve)?ie.request(ve,Le)||l.y.of():ce.request(ve,Le)||l.y.of()})},z.execute=function(M,k){return M.request(function K(z,M){var k=(0,r.pi)({},z);return Object.defineProperty(M,"setContext",{enumerable:!1,value:function(ce){k=(0,r.pi)((0,r.pi)({},k),"function"==typeof ce?ce(k):ce)}}),Object.defineProperty(M,"getContext",{enumerable:!1,value:function(){return(0,r.pi)({},k)}}),M}(k.context,function A(z){var M={variables:z.variables||{},extensions:z.extensions||{},operationName:z.operationName,query:z.query};return M.operationName||(M.operationName="string"!=typeof M.query?(0,m.rY)(M.query)||void 0:""),M}(function b(z){for(var M=["query","operationName","variables","extensions","context"],k=0,N=Object.keys(z);k{function r(o){return Array.isArray(o)&&o.length>0}c.d(Oe,{O:()=>r})},9545:(Ft,Oe,c)=>{c.d(Oe,{mr:()=>r,sy:()=>o,aS:()=>l});var r="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),o="function"==typeof WeakSet,l="function"==typeof Symbol&&"function"==typeof Symbol.for},396:(Ft,Oe,c)=>{c.d(Oe,{X:()=>o});var r=Object.prototype.toString;function o(K){return l(K)}function l(K,m){switch(r.call(K)){case"[object Array]":if((m=m||new Map).has(K))return m.get(K);var A=K.slice(0);return m.set(K,A),A.forEach(function(D,C){A[C]=l(D,m)}),A;case"[object Object]":if((m=m||new Map).has(K))return m.get(K);var b=Object.create(Object.getPrototypeOf(K));return m.set(K,b),Object.keys(K).forEach(function(D){b[D]=l(K[D],m)}),b;default:return K}}},3950:(Ft,Oe,c)=>{function r(){for(var o=[],l=0;lr})},8561:(Ft,Oe,c)=>{c.d(Oe,{X:()=>o});var r=new Map;function o(l){var K=r.get(l)||1;return r.set(l,K+1),"".concat(l,":").concat(K,":").concat(Math.random().toString(36).slice(2))}},7773:(Ft,Oe,c)=>{c.d(Oe,{Ee:()=>K,bw:()=>m,w0:()=>b});var r=c(655),o=c(7062),l=Object.prototype.hasOwnProperty;function K(){for(var D=[],C=0;C1)for(var S=new b,w=1;w{function r(o){return null!==o&&"object"==typeof o}c.d(Oe,{s:()=>r})},9349:(Ft,Oe,c)=>{c.d(Oe,{ej:()=>m,kG:()=>A,wY:()=>w});var r=c(655),o="Invariant Violation",l=Object.setPrototypeOf,K=void 0===l?function(fe,U){return fe.__proto__=U,fe}:l,m=function(fe){function U(J){void 0===J&&(J=o);var Me=fe.call(this,"number"==typeof J?o+": "+J+" (see https://github.com/apollographql/invariant-packages)":J)||this;return Me.framesToPop=1,Me.name=o,K(Me,U.prototype),Me}return(0,r.ZT)(U,fe),U}(Error);function A(fe,U){if(!fe)throw new m(U)}var fe,b=["debug","log","warn","error","silent"],D=b.indexOf("log");function C(fe){return function(){if(b.indexOf(fe)>=D){var U=console[fe]||console.log;return U.apply(console,arguments)}}}function w(fe){try{return fe()}catch(U){}}(fe=A||(A={})).debug=C("debug"),fe.log=C("log"),fe.warn=C("warn"),fe.error=C("error");const z=w(function(){return globalThis})||w(function(){return window})||w(function(){return self})||w(function(){return global})||w(function(){return w.constructor("return this")()});var M="__",k=[M,M].join("DEV");const ie=function N(){try{return Boolean(__DEV__)}catch(fe){return Object.defineProperty(z,k,{value:"production"!==w(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),z[k]}}();function ce(fe){try{return fe()}catch(U){}}var ve=ce(function(){return globalThis})||ce(function(){return window})||ce(function(){return self})||ce(function(){return global})||ce(function(){return ce.constructor("return this")()}),Le=!1;!function Re(){ve&&!ce(function(){return"production"})&&!ce(function(){return process})&&(Object.defineProperty(ve,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Le=!0)}(),c(6261),function He(){(function ae(){Le&&(delete ve.process,Le=!1)})()}(),function me(){__DEV__?A("boolean"==typeof ie,ie):A("boolean"==typeof ie,36)}()},9722:(Ft,Oe,c)=>{c.d(Oe,{LZ:()=>l,FS:()=>m,mj:()=>A});var r=c(9349),o=c(1335);function l(C,E){var S=C.directives;return!S||!S.length||function D(C){var E=[];return C&&C.length&&C.forEach(function(S){if(function b(C){var E=C.name.value;return"skip"===E||"include"===E}(S)){var w=S.arguments,z=S.name.value;__DEV__?(0,r.kG)(w&&1===w.length,"Incorrect number of arguments for the @".concat(z," directive.")):(0,r.kG)(w&&1===w.length,38);var M=w[0];__DEV__?(0,r.kG)(M.name&&"if"===M.name.value,"Invalid argument for the @".concat(z," directive.")):(0,r.kG)(M.name&&"if"===M.name.value,39);var k=M.value;__DEV__?(0,r.kG)(k&&("Variable"===k.kind||"BooleanValue"===k.kind),"Argument for the @".concat(z," directive must be a variable or a boolean value.")):(0,r.kG)(k&&("Variable"===k.kind||"BooleanValue"===k.kind),40),E.push({directive:S,ifArgument:M})}}),E}(S).every(function(w){var z=w.directive,M=w.ifArgument,k=!1;return"Variable"===M.value.kind?(k=E&&E[M.value.name.value],__DEV__?(0,r.kG)(void 0!==k,"Invalid variable referenced in @".concat(z.name.value," directive.")):(0,r.kG)(void 0!==k,37)):k=M.value.value,"skip"===z.name.value?!k:k})}function m(C,E){return function K(C){var E=[];return(0,o.Vn)(C,{Directive:function(S){E.push(S.name.value)}}),E}(E).some(function(S){return C.indexOf(S)>-1})}function A(C){return C&&m(["client"],C)&&m(["export"],C)}},9661:(Ft,Oe,c)=>{c.d(Oe,{Yk:()=>l,F:()=>K,hi:()=>m});var r=c(655),o=c(9349);function l(A,b){var D=b,C=[];return A.definitions.forEach(function(S){if("OperationDefinition"===S.kind)throw __DEV__?new o.ej("Found a ".concat(S.operation," operation").concat(S.name?" named '".concat(S.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new o.ej(41);"FragmentDefinition"===S.kind&&C.push(S)}),void 0===D&&(__DEV__?(0,o.kG)(1===C.length,"Found ".concat(C.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,o.kG)(1===C.length,42),D=C[0].name.value),(0,r.pi)((0,r.pi)({},A),{definitions:(0,r.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:D}}]}}],A.definitions,!0)})}function K(A){void 0===A&&(A=[]);var b={};return A.forEach(function(D){b[D.name.value]=D}),b}function m(A,b){switch(A.kind){case"InlineFragment":return A;case"FragmentSpread":var D=b&&b[A.name.value];return __DEV__?(0,o.kG)(D,"No fragment named ".concat(A.name.value,".")):(0,o.kG)(D,43),D;default:return null}}},9419:(Ft,Oe,c)=>{c.d(Oe,{A$:()=>l,$H:()=>K,rY:()=>m,kU:()=>A,iW:()=>b,pD:()=>D,p$:()=>C,O4:()=>E});var r=c(9349),o=c(7634);function l(S){__DEV__?(0,r.kG)(S&&"Document"===S.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,r.kG)(S&&"Document"===S.kind,44);var w=S.definitions.filter(function(z){return"FragmentDefinition"!==z.kind}).map(function(z){if("OperationDefinition"!==z.kind)throw __DEV__?new r.ej('Schema type definitions not allowed in queries. Found: "'.concat(z.kind,'"')):new r.ej(45);return z});return __DEV__?(0,r.kG)(w.length<=1,"Ambiguous GraphQL document: contains ".concat(w.length," operations")):(0,r.kG)(w.length<=1,46),S}function K(S){return l(S),S.definitions.filter(function(w){return"OperationDefinition"===w.kind})[0]}function m(S){return S.definitions.filter(function(w){return"OperationDefinition"===w.kind&&w.name}).map(function(w){return w.name.value})[0]||null}function A(S){return S.definitions.filter(function(w){return"FragmentDefinition"===w.kind})}function b(S){var w=K(S);return __DEV__?(0,r.kG)(w&&"query"===w.operation,"Must contain a query definition."):(0,r.kG)(w&&"query"===w.operation,47),w}function D(S){__DEV__?(0,r.kG)("Document"===S.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,r.kG)("Document"===S.kind,48),__DEV__?(0,r.kG)(S.definitions.length<=1,"Fragment must have exactly one definition."):(0,r.kG)(S.definitions.length<=1,49);var w=S.definitions[0];return __DEV__?(0,r.kG)("FragmentDefinition"===w.kind,"Must be a fragment definition."):(0,r.kG)("FragmentDefinition"===w.kind,50),w}function C(S){l(S);for(var w,z=0,M=S.definitions;z{c.d(Oe,{kQ:()=>K,Yk:()=>m,JW:()=>A,vb:()=>N,vf:()=>ie,PT:()=>ve,NC:()=>ae,u2:()=>Ue,qw:()=>He,My:()=>me,Ao:()=>fe});var r=c(9349),o=c(7062),l=c(9661);function K(U){return{__ref:String(U)}}function m(U){return Boolean(U&&"object"==typeof U&&"string"==typeof U.__ref)}function A(U){return(0,o.s)(U)&&"Document"===U.kind&&Array.isArray(U.definitions)}function N(U,J,Me,se){if(function C(U){return"IntValue"===U.kind}(Me)||function E(U){return"FloatValue"===U.kind}(Me))U[J.value]=Number(Me.value);else if(function D(U){return"BooleanValue"===U.kind}(Me)||function b(U){return"StringValue"===U.kind}(Me))U[J.value]=Me.value;else if(function w(U){return"ObjectValue"===U.kind}(Me)){var we={};Me.fields.map(function(Ye){return N(we,Ye.name,Ye.value,se)}),U[J.value]=we}else if(function S(U){return"Variable"===U.kind}(Me))U[J.value]=(se||{})[Me.name.value];else if(function z(U){return"ListValue"===U.kind}(Me))U[J.value]=Me.values.map(function(Ye){var We={};return N(We,J,Ye,se),We[J.value]});else if(function M(U){return"EnumValue"===U.kind}(Me))U[J.value]=Me.value;else{if(!function k(U){return"NullValue"===U.kind}(Me))throw __DEV__?new r.ej('The inline argument "'.concat(J.value,'" of kind "').concat(Me.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new r.ej(52);U[J.value]=null}}function ie(U,J){var Me=null;U.directives&&(Me={},U.directives.forEach(function(we){Me[we.name.value]={},we.arguments&&we.arguments.forEach(function(ue){return N(Me[we.name.value],ue.name,ue.value,J)})}));var se=null;return U.arguments&&U.arguments.length&&(se={},U.arguments.forEach(function(we){return N(se,we.name,we.value,J)})),ve(U.name.value,se,Me)}var ce=["connection","include","skip","client","rest","export"],ve=Object.assign(function(U,J,Me){if(J&&Me&&Me.connection&&Me.connection.key){if(Me.connection.filter&&Me.connection.filter.length>0){var se=Me.connection.filter?Me.connection.filter:[];se.sort();var we={};return se.forEach(function(We){we[We]=J[We]}),"".concat(Me.connection.key,"(").concat(Le(we),")")}return Me.connection.key}var ue=U;if(J){var Ye=Le(J);ue+="(".concat(Ye,")")}return Me&&Object.keys(Me).forEach(function(We){-1===ce.indexOf(We)&&(Me[We]&&Object.keys(Me[We]).length?ue+="@".concat(We,"(").concat(Le(Me[We]),")"):ue+="@".concat(We))}),ue},{setStringify:function(U){var J=Le;return Le=U,J}}),Le=function(J){return JSON.stringify(J,Re)};function Re(U,J){return(0,o.s)(J)&&!Array.isArray(J)&&(J=Object.keys(J).sort().reduce(function(Me,se){return Me[se]=J[se],Me},{})),J}function ae(U,J){if(U.arguments&&U.arguments.length){var Me={};return U.arguments.forEach(function(se){return N(Me,se.name,se.value,J)}),Me}return null}function Ue(U){return U.alias?U.alias.value:U.name.value}function He(U,J,Me){if("string"==typeof U.__typename)return U.__typename;for(var se=0,we=J.selections;se{c.d(Oe,{Gw:()=>z,aL:()=>ae,ob:()=>Ue,Fo:()=>k});var r=c(655),o=c(9349),l=c(1335),K=c(9419);function m(He,me,fe){var U=0;return He.forEach(function(J,Me){me.call(this,J,Me,He)&&(He[U++]=J)},fe),He.length=U,He}var A=c(7634),b=c(9661),D={kind:"Field",name:{kind:"Name",value:"__typename"}};function C(He,me){return He.selectionSet.selections.every(function(fe){return"FragmentSpread"===fe.kind&&C(me[fe.name.value],me)})}function E(He){return C((0,K.$H)(He)||(0,K.pD)(He),(0,b.F)((0,K.kU)(He)))?null:He}function S(He){return function(fe){return He.some(function(U){return U.name&&U.name===fe.name.value||U.test&&U.test(fe)})}}function w(He,me){var fe=Object.create(null),U=[],J=Object.create(null),Me=[],se=E((0,l.Vn)(me,{Variable:{enter:function(we,ue,Ye){"VariableDefinition"!==Ye.kind&&(fe[we.name.value]=!0)}},Field:{enter:function(we){if(He&&we.directives&&He.some(function(Ye){return Ye.remove})&&we.directives&&we.directives.some(S(He)))return we.arguments&&we.arguments.forEach(function(Ye){"Variable"===Ye.value.kind&&U.push({name:Ye.value.name.value})}),we.selectionSet&&Re(we.selectionSet).forEach(function(Ye){Me.push({name:Ye.name.value})}),null}},FragmentSpread:{enter:function(we){J[we.name.value]=!0}},Directive:{enter:function(we){if(S(He)(we))return null}}}));return se&&m(U,function(we){return!!we.name&&!fe[we.name]}).length&&(se=function ve(He,me){var fe=function ce(He){return function(fe){return He.some(function(U){return fe.value&&"Variable"===fe.value.kind&&fe.value.name&&(U.name===fe.value.name.value||U.test&&U.test(fe))})}}(He);return E((0,l.Vn)(me,{OperationDefinition:{enter:function(U){return(0,r.pi)((0,r.pi)({},U),{variableDefinitions:U.variableDefinitions?U.variableDefinitions.filter(function(J){return!He.some(function(Me){return Me.name===J.variable.name.value})}):[]})}},Field:{enter:function(U){var J=He.some(function(se){return se.remove});if(J){var Me=0;if(U.arguments&&U.arguments.forEach(function(se){fe(se)&&(Me+=1)}),1===Me)return null}}},Argument:{enter:function(U){if(fe(U))return null}}}))}(U,se)),se&&m(Me,function(we){return!!we.name&&!J[we.name]}).length&&(se=function Le(He,me){function fe(U){if(He.some(function(J){return J.name===U.name.value}))return null}return E((0,l.Vn)(me,{FragmentSpread:{enter:fe},FragmentDefinition:{enter:fe}}))}(Me,se)),se}var z=Object.assign(function(He){return(0,l.Vn)((0,K.A$)(He),{SelectionSet:{enter:function(me,fe,U){if(!U||"OperationDefinition"!==U.kind){var J=me.selections;if(J&&!J.some(function(we){return(0,A.My)(we)&&("__typename"===we.name.value||0===we.name.value.lastIndexOf("__",0))})){var se=U;if(!((0,A.My)(se)&&se.directives&&se.directives.some(function(we){return"export"===we.name.value})))return(0,r.pi)((0,r.pi)({},me),{selections:(0,r.ev)((0,r.ev)([],J,!0),[D],!1)})}}}}})},{added:function(He){return He===D}}),M={test:function(He){var me="connection"===He.name.value;return me&&(!He.arguments||!He.arguments.some(function(fe){return"key"===fe.name.value}))&&__DEV__&&o.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),me}};function k(He){return w([M],(0,K.A$)(He))}function Re(He){var me=[];return He.selections.forEach(function(fe){((0,A.My)(fe)||(0,A.Ao)(fe))&&fe.selectionSet?Re(fe.selectionSet).forEach(function(U){return me.push(U)}):"FragmentSpread"===fe.kind&&me.push(fe)}),me}function ae(He){return"query"===(0,K.p$)(He).operation?He:(0,l.Vn)(He,{OperationDefinition:{enter:function(J){return(0,r.pi)((0,r.pi)({},J),{operation:"query"})}}})}function Ue(He){(0,K.A$)(He);var me=w([{test:function(fe){return"client"===fe.name.value},remove:!0}],He);return me&&(me=(0,l.Vn)(me,{FragmentDefinition:{enter:function(fe){if(fe.selectionSet&&fe.selectionSet.selections.every(function(J){return(0,A.My)(J)&&"__typename"===J.name.value}))return null}}})),me}},744:(Ft,Oe,c)=>{c.d(Oe,{Z:()=>m});var r=c(5202);function o(w){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(w)}function m(w){return A(w,[])}function A(w,z){switch(o(w)){case"string":return JSON.stringify(w);case"function":return w.name?"[function ".concat(w.name,"]"):"[function]";case"object":return null===w?"null":function b(w,z){if(-1!==z.indexOf(w))return"[Circular]";var M=[].concat(z,[w]),k=function E(w){var z=w[String(r.Z)];return"function"==typeof z?z:"function"==typeof w.inspect?w.inspect:void 0}(w);if(void 0!==k){var N=k.call(w);if(N!==w)return"string"==typeof N?N:A(N,M)}else if(Array.isArray(w))return function C(w,z){if(0===w.length)return"[]";if(z.length>2)return"[Array]";for(var M=Math.min(10,w.length),k=w.length-M,N=[],ie=0;ie1&&N.push("... ".concat(k," more items")),"["+N.join(", ")+"]"}(w,M);return function D(w,z){var M=Object.keys(w);if(0===M.length)return"{}";if(z.length>2)return"["+function S(w){var z=Object.prototype.toString.call(w).replace(/^\[object /,"").replace(/]$/,"");if("Object"===z&&"function"==typeof w.constructor){var M=w.constructor.name;if("string"==typeof M&&""!==M)return M}return z}(w)+"]";var k=M.map(function(N){return N+": "+A(w[N],z)});return"{ "+k.join(", ")+" }"}(w,M)}(w,z);default:return String(w)}}},5202:(Ft,Oe,c)=>{c.d(Oe,{Z:()=>o});const o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},848:(Ft,Oe,c)=>{c.d(Oe,{Ye:()=>K,WU:()=>m,UG:()=>A});var o=c(5202);function l(b){var D=b.prototype.toJSON;"function"==typeof D||function r(b,D){if(!Boolean(b))throw new Error(null!=D?D:"Unexpected invariant triggered.")}(0),b.prototype.inspect=D,o.Z&&(b.prototype[o.Z]=D)}var K=function(){function b(C,E,S){this.start=C.start,this.end=E.end,this.startToken=C,this.endToken=E,this.source=S}return b.prototype.toJSON=function(){return{start:this.start,end:this.end}},b}();l(K);var m=function(){function b(C,E,S,w,z,M,k){this.kind=C,this.start=E,this.end=S,this.line=w,this.column=z,this.value=k,this.prev=M,this.next=null}return b.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},b}();function A(b){return null!=b&&"string"==typeof b.kind}l(m)},2032:(Ft,Oe,c)=>{function r(m){var A=m.split(/\r\n|[\n\r]/g),b=function l(m){for(var A,b=!0,D=!0,C=0,E=null,S=0;SC&&o(A[E-1]);)--E;return A.slice(C,E).join("\n")}function o(m){for(var A=0;A1&&void 0!==arguments[1]?arguments[1]:"",b=arguments.length>2&&void 0!==arguments[2]&&arguments[2],D=-1===m.indexOf("\n"),C=" "===m[0]||"\t"===m[0],E='"'===m[m.length-1],S="\\"===m[m.length-1],w=!D||E||S||b,z="";return w&&!(D&&C)&&(z+="\n"+A),z+=A?m.replace(/\n/g,"\n"+A):m,w&&(z+="\n"),'"""'+z.replace(/"""/g,'\\"""')+'"""'}c.d(Oe,{W7:()=>r,LZ:()=>K})},4989:(Ft,Oe,c)=>{c.d(Oe,{S:()=>l});var r=c(1335),o=c(2032);function l(z){return(0,r.Vn)(z,{leave:m})}var m={Name:function(M){return M.value},Variable:function(M){return"$"+M.name},Document:function(M){return b(M.definitions,"\n\n")+"\n"},OperationDefinition:function(M){var k=M.operation,N=M.name,ie=C("(",b(M.variableDefinitions,", "),")"),ce=b(M.directives," "),ve=M.selectionSet;return N||ce||ie||"query"!==k?b([k,b([N,ie]),ce,ve]," "):ve},VariableDefinition:function(M){var ce=M.directives;return M.variable+": "+M.type+C(" = ",M.defaultValue)+C(" ",b(ce," "))},SelectionSet:function(M){return D(M.selections)},Field:function(M){var N=M.name,ie=M.arguments,ce=M.directives,ve=M.selectionSet,Le=C("",M.alias,": ")+N,Re=Le+C("(",b(ie,", "),")");return Re.length>80&&(Re=Le+C("(\n",E(b(ie,"\n")),"\n)")),b([Re,b(ce," "),ve]," ")},Argument:function(M){return M.name+": "+M.value},FragmentSpread:function(M){return"..."+M.name+C(" ",b(M.directives," "))},InlineFragment:function(M){var N=M.directives,ie=M.selectionSet;return b(["...",C("on ",M.typeCondition),b(N," "),ie]," ")},FragmentDefinition:function(M){var N=M.typeCondition,ie=M.variableDefinitions,ce=M.directives,ve=M.selectionSet;return"fragment ".concat(M.name).concat(C("(",b(ie,", "),")")," ")+"on ".concat(N," ").concat(C("",b(ce," ")," "))+ve},IntValue:function(M){return M.value},FloatValue:function(M){return M.value},StringValue:function(M,k){var N=M.value;return M.block?(0,o.LZ)(N,"description"===k?"":" "):JSON.stringify(N)},BooleanValue:function(M){return M.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(M){return M.value},ListValue:function(M){return"["+b(M.values,", ")+"]"},ObjectValue:function(M){return"{"+b(M.fields,", ")+"}"},ObjectField:function(M){return M.name+": "+M.value},Directive:function(M){return"@"+M.name+C("(",b(M.arguments,", "),")")},NamedType:function(M){return M.name},ListType:function(M){return"["+M.type+"]"},NonNullType:function(M){return M.type+"!"},SchemaDefinition:A(function(z){var k=z.operationTypes;return b(["schema",b(z.directives," "),D(k)]," ")}),OperationTypeDefinition:function(M){return M.operation+": "+M.type},ScalarTypeDefinition:A(function(z){return b(["scalar",z.name,b(z.directives," ")]," ")}),ObjectTypeDefinition:A(function(z){var N=z.directives,ie=z.fields;return b(["type",z.name,C("implements ",b(z.interfaces," & ")),b(N," "),D(ie)]," ")}),FieldDefinition:A(function(z){var k=z.arguments,N=z.type,ie=z.directives;return z.name+(w(k)?C("(\n",E(b(k,"\n")),"\n)"):C("(",b(k,", "),")"))+": "+N+C(" ",b(ie," "))}),InputValueDefinition:A(function(z){var ie=z.directives;return b([z.name+": "+z.type,C("= ",z.defaultValue),b(ie," ")]," ")}),InterfaceTypeDefinition:A(function(z){var N=z.directives,ie=z.fields;return b(["interface",z.name,C("implements ",b(z.interfaces," & ")),b(N," "),D(ie)]," ")}),UnionTypeDefinition:A(function(z){var N=z.types;return b(["union",z.name,b(z.directives," "),N&&0!==N.length?"= "+b(N," | "):""]," ")}),EnumTypeDefinition:A(function(z){var N=z.values;return b(["enum",z.name,b(z.directives," "),D(N)]," ")}),EnumValueDefinition:A(function(z){return b([z.name,b(z.directives," ")]," ")}),InputObjectTypeDefinition:A(function(z){var N=z.fields;return b(["input",z.name,b(z.directives," "),D(N)]," ")}),DirectiveDefinition:A(function(z){var k=z.arguments,N=z.repeatable,ie=z.locations;return"directive @"+z.name+(w(k)?C("(\n",E(b(k,"\n")),"\n)"):C("(",b(k,", "),")"))+(N?" repeatable":"")+" on "+b(ie," | ")}),SchemaExtension:function(M){var N=M.operationTypes;return b(["extend schema",b(M.directives," "),D(N)]," ")},ScalarTypeExtension:function(M){return b(["extend scalar",M.name,b(M.directives," ")]," ")},ObjectTypeExtension:function(M){var ie=M.directives,ce=M.fields;return b(["extend type",M.name,C("implements ",b(M.interfaces," & ")),b(ie," "),D(ce)]," ")},InterfaceTypeExtension:function(M){var ie=M.directives,ce=M.fields;return b(["extend interface",M.name,C("implements ",b(M.interfaces," & ")),b(ie," "),D(ce)]," ")},UnionTypeExtension:function(M){var ie=M.types;return b(["extend union",M.name,b(M.directives," "),ie&&0!==ie.length?"= "+b(ie," | "):""]," ")},EnumTypeExtension:function(M){var ie=M.values;return b(["extend enum",M.name,b(M.directives," "),D(ie)]," ")},InputObjectTypeExtension:function(M){var ie=M.fields;return b(["extend input",M.name,b(M.directives," "),D(ie)]," ")}};function A(z){return function(M){return b([M.description,z(M)],"\n")}}function b(z){var M,k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(M=null==z?void 0:z.filter(function(N){return N}).join(k))&&void 0!==M?M:""}function D(z){return C("{\n",E(b(z,"\n")),"\n}")}function C(z,M){var k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=M&&""!==M?z+M+k:""}function E(z){return C(" ",z.replace(/\n/g,"\n "))}function S(z){return-1!==z.indexOf("\n")}function w(z){return null!=z&&z.some(S)}},6261:(Ft,Oe,c)=>{c.d(Oe,{H:()=>b,T:()=>D});var r=c(9245),o=c(744);function l(C,E){if(!Boolean(C))throw new Error(E)}function m(C,E){for(var S=0;S1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof E||l(0,"Body must be a string. Received: ".concat((0,o.Z)(E),".")),this.body=E,this.name=S,this.locationOffset=w,this.locationOffset.line>0||l(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||l(0,"column in locationOffset is 1-indexed and must be positive.")}return function A(C,E,S){E&&m(C.prototype,E),S&&m(C,S)}(C,[{key:r.YF,get:function(){return"Source"}}]),C}();function D(C){return C instanceof b}},1335:(Ft,Oe,c)=>{c.d(Oe,{$_:()=>K,Vn:()=>m});var r=c(744),o=c(848),l={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},K=Object.freeze({});function m(D,C){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,S=void 0,w=Array.isArray(D),z=[D],M=-1,k=[],N=void 0,ie=void 0,ce=void 0,ve=[],Le=[],Re=D;do{var ae=++M===z.length,Ue=ae&&0!==k.length;if(ae){if(ie=0===Le.length?void 0:ve[ve.length-1],N=ce,ce=Le.pop(),Ue){if(w)N=N.slice();else{for(var He={},me=0,fe=Object.keys(N);me{c.d(Oe,{YF:()=>l}),"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol;var l="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},2359:(Ft,Oe,c)=>{c.d(Oe,{r:()=>He,L:()=>me});var r=c(655),o=c(5e3),l=c(8929),K=c(7625),m=c(8076),A=c(9439),b=c(1721),D=c(226),C=c(9808),E=c(647),S=c(969);function w(fe,U){if(1&fe&&(o.ynx(0),o._UZ(1,"i",5),o.BQk()),2&fe){const J=o.oxw(2);o.xp6(1),o.Q6J("nzType",J.nzIconType||J.inferredIconType)("nzTheme",J.iconTheme)}}function z(fe,U){if(1&fe&&(o.ynx(0),o._uU(1),o.BQk()),2&fe){const J=o.oxw(4);o.xp6(1),o.Oqu(J.nzMessage)}}function M(fe,U){if(1&fe&&(o.TgZ(0,"span",9),o.YNc(1,z,2,1,"ng-container",10),o.qZA()),2&fe){const J=o.oxw(3);o.xp6(1),o.Q6J("nzStringTemplateOutlet",J.nzMessage)}}function k(fe,U){if(1&fe&&(o.ynx(0),o._uU(1),o.BQk()),2&fe){const J=o.oxw(4);o.xp6(1),o.Oqu(J.nzDescription)}}function N(fe,U){if(1&fe&&(o.TgZ(0,"span",11),o.YNc(1,k,2,1,"ng-container",10),o.qZA()),2&fe){const J=o.oxw(3);o.xp6(1),o.Q6J("nzStringTemplateOutlet",J.nzDescription)}}function ie(fe,U){if(1&fe&&(o.TgZ(0,"div",6),o.YNc(1,M,2,1,"span",7),o.YNc(2,N,2,1,"span",8),o.qZA()),2&fe){const J=o.oxw(2);o.xp6(1),o.Q6J("ngIf",J.nzMessage),o.xp6(1),o.Q6J("ngIf",J.nzDescription)}}function ce(fe,U){1&fe&&o._UZ(0,"i",15)}function ve(fe,U){if(1&fe&&(o.ynx(0),o.TgZ(1,"span",16),o._uU(2),o.qZA(),o.BQk()),2&fe){const J=o.oxw(4);o.xp6(2),o.Oqu(J.nzCloseText)}}function Le(fe,U){if(1&fe&&(o.ynx(0),o.YNc(1,ve,3,1,"ng-container",10),o.BQk()),2&fe){const J=o.oxw(3);o.xp6(1),o.Q6J("nzStringTemplateOutlet",J.nzCloseText)}}function Re(fe,U){if(1&fe){const J=o.EpF();o.TgZ(0,"button",12),o.NdJ("click",function(){return o.CHM(J),o.oxw(2).closeAlert()}),o.YNc(1,ce,1,0,"ng-template",null,13,o.W1O),o.YNc(3,Le,2,1,"ng-container",14),o.qZA()}if(2&fe){const J=o.MAs(2),Me=o.oxw(2);o.xp6(3),o.Q6J("ngIf",Me.nzCloseText)("ngIfElse",J)}}function ae(fe,U){if(1&fe){const J=o.EpF();o.TgZ(0,"div",1),o.NdJ("@slideAlertMotion.done",function(){return o.CHM(J),o.oxw().onFadeAnimationDone()}),o.YNc(1,w,2,2,"ng-container",2),o.YNc(2,ie,3,2,"div",3),o.YNc(3,Re,4,2,"button",4),o.qZA()}if(2&fe){const J=o.oxw();o.ekj("ant-alert-rtl","rtl"===J.dir)("ant-alert-success","success"===J.nzType)("ant-alert-info","info"===J.nzType)("ant-alert-warning","warning"===J.nzType)("ant-alert-error","error"===J.nzType)("ant-alert-no-icon",!J.nzShowIcon)("ant-alert-banner",J.nzBanner)("ant-alert-closable",J.nzCloseable)("ant-alert-with-description",!!J.nzDescription),o.Q6J("@.disabled",J.nzNoAnimation)("@slideAlertMotion",void 0),o.xp6(1),o.Q6J("ngIf",J.nzShowIcon),o.xp6(1),o.Q6J("ngIf",J.nzMessage||J.nzDescription),o.xp6(1),o.Q6J("ngIf",J.nzCloseable||J.nzCloseText)}}let He=(()=>{class fe{constructor(J,Me,se){this.nzConfigService=J,this.cdr=Me,this.directionality=se,this._nzModuleName="alert",this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new o.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new l.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,K.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var J;null===(J=this.directionality.change)||void 0===J||J.pipe((0,K.R)(this.destroy$)).subscribe(Me=>{this.dir=Me,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(J){const{nzShowIcon:Me,nzDescription:se,nzType:we,nzBanner:ue}=J;if(Me&&(this.isShowIconSet=!0),we)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}se&&(this.iconTheme=this.nzDescription?"outline":"fill"),ue&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return fe.\u0275fac=function(J){return new(J||fe)(o.Y36(A.jY),o.Y36(o.sBO),o.Y36(D.Is,8))},fe.\u0275cmp=o.Xpm({type:fe,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[o.TTD],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(J,Me){1&J&&o.YNc(0,ae,4,23,"div",0),2&J&&o.Q6J("ngIf",!Me.closed)},directives:[C.O5,E.Ls,S.f],encapsulation:2,data:{animation:[m.Rq]},changeDetection:0}),(0,r.gn)([(0,A.oS)(),(0,b.yF)()],fe.prototype,"nzCloseable",void 0),(0,r.gn)([(0,A.oS)(),(0,b.yF)()],fe.prototype,"nzShowIcon",void 0),(0,r.gn)([(0,b.yF)()],fe.prototype,"nzBanner",void 0),(0,r.gn)([(0,b.yF)()],fe.prototype,"nzNoAnimation",void 0),fe})(),me=(()=>{class fe{}return fe.\u0275fac=function(J){return new(J||fe)},fe.\u0275mod=o.oAB({type:fe}),fe.\u0275inj=o.cJS({imports:[[D.vT,C.ez,E.PV,S.T]]}),fe})()},6042:(Ft,Oe,c)=>{c.d(Oe,{ix:()=>ve,fY:()=>Le,sL:()=>Re});var r=c(655),o=c(5e3),l=c(8929),K=c(3753),m=c(7625),A=c(1059),b=c(2198),D=c(9439),C=c(1721),E=c(647),S=c(226),w=c(9808),z=c(2683),M=c(2643);const k=["nz-button",""];function N(ae,Ue){1&ae&&o._UZ(0,"i",1)}const ie=["*"];let ve=(()=>{class ae{constructor(He,me,fe,U,J,Me){this.ngZone=He,this.elementRef=me,this.cdr=fe,this.renderer=U,this.nzConfigService=J,this.directionality=Me,this._nzModuleName="button",this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new l.xQ,this.loading$=new l.xQ,this.nzConfigService.getConfigChangeEventForComponent("button").pipe((0,m.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}insertSpan(He,me){He.forEach(fe=>{if("#text"===fe.nodeName){const U=me.createElement("span"),J=me.parentNode(fe);me.insertBefore(J,U,fe),me.appendChild(U,fe)}})}assertIconOnly(He,me){const fe=Array.from(He.childNodes),U=fe.filter(we=>"I"===we.nodeName).length,J=fe.every(we=>"#text"!==we.nodeName);fe.every(we=>"SPAN"!==we.nodeName)&&J&&U>=1&&me.addClass(He,"ant-btn-icon-only")}ngOnInit(){var He;null===(He=this.directionality.change)||void 0===He||He.pipe((0,m.R)(this.destroy$)).subscribe(me=>{this.dir=me,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,K.R)(this.elementRef.nativeElement,"click").pipe((0,m.R)(this.destroy$)).subscribe(me=>{var fe;this.disabled&&"A"===(null===(fe=me.target)||void 0===fe?void 0:fe.tagName)&&(me.preventDefault(),me.stopImmediatePropagation())})})}ngOnChanges(He){const{nzLoading:me}=He;me&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,A.O)(this.nzLoading),(0,b.h)(()=>!!this.nzIconDirectiveElement),(0,m.R)(this.destroy$)).subscribe(He=>{const me=this.nzIconDirectiveElement.nativeElement;He?this.renderer.setStyle(me,"display","none"):this.renderer.removeStyle(me,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ae.\u0275fac=function(He){return new(He||ae)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(D.jY),o.Y36(S.Is,8))},ae.\u0275cmp=o.Xpm({type:ae,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(He,me,fe){if(1&He&&o.Suo(fe,E.Ls,5,o.SBq),2&He){let U;o.iGM(U=o.CRH())&&(me.nzIconDirectiveElement=U.first)}},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(He,me){2&He&&(o.uIk("tabindex",me.disabled?-1:null===me.tabIndex?null:me.tabIndex)("disabled",me.disabled||null),o.ekj("ant-btn-primary","primary"===me.nzType)("ant-btn-dashed","dashed"===me.nzType)("ant-btn-link","link"===me.nzType)("ant-btn-text","text"===me.nzType)("ant-btn-circle","circle"===me.nzShape)("ant-btn-round","round"===me.nzShape)("ant-btn-lg","large"===me.nzSize)("ant-btn-sm","small"===me.nzSize)("ant-btn-dangerous",me.nzDanger)("ant-btn-loading",me.nzLoading)("ant-btn-background-ghost",me.nzGhost)("ant-btn-block",me.nzBlock)("ant-input-search-button",me.nzSearch)("ant-btn-rtl","rtl"===me.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[o.TTD],attrs:k,ngContentSelectors:ie,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(He,me){1&He&&(o.F$t(),o.YNc(0,N,1,0,"i",0),o.Hsn(1)),2&He&&o.Q6J("ngIf",me.nzLoading)},directives:[w.O5,E.Ls,z.w],encapsulation:2,changeDetection:0}),(0,r.gn)([(0,C.yF)()],ae.prototype,"nzBlock",void 0),(0,r.gn)([(0,C.yF)()],ae.prototype,"nzGhost",void 0),(0,r.gn)([(0,C.yF)()],ae.prototype,"nzSearch",void 0),(0,r.gn)([(0,C.yF)()],ae.prototype,"nzLoading",void 0),(0,r.gn)([(0,C.yF)()],ae.prototype,"nzDanger",void 0),(0,r.gn)([(0,C.yF)()],ae.prototype,"disabled",void 0),(0,r.gn)([(0,D.oS)()],ae.prototype,"nzSize",void 0),ae})(),Le=(()=>{class ae{constructor(He){this.directionality=He,this.nzSize="default",this.dir="ltr",this.destroy$=new l.xQ}ngOnInit(){var He;this.dir=this.directionality.value,null===(He=this.directionality.change)||void 0===He||He.pipe((0,m.R)(this.destroy$)).subscribe(me=>{this.dir=me})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ae.\u0275fac=function(He){return new(He||ae)(o.Y36(S.Is,8))},ae.\u0275cmp=o.Xpm({type:ae,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(He,me){2&He&&o.ekj("ant-btn-group-lg","large"===me.nzSize)("ant-btn-group-sm","small"===me.nzSize)("ant-btn-group-rtl","rtl"===me.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:ie,decls:1,vars:0,template:function(He,me){1&He&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),ae})(),Re=(()=>{class ae{}return ae.\u0275fac=function(He){return new(He||ae)},ae.\u0275mod=o.oAB({type:ae}),ae.\u0275inj=o.cJS({imports:[[S.vT,w.ez,M.vG,E.PV,z.a],z.a,M.vG]}),ae})()},6114:(Ft,Oe,c)=>{c.d(Oe,{Ie:()=>N,Wr:()=>ce});var r=c(655),o=c(5e3),l=c(4182),K=c(8929),m=c(3753),A=c(7625),b=c(1721),D=c(5664),C=c(226),E=c(9808);const S=["*"],w=["inputElement"],z=["nz-checkbox",""];let k=(()=>{class ve{constructor(Re,ae){this.nzOnChange=new o.vpe,this.checkboxList=[],Re.addClass(ae.nativeElement,"ant-checkbox-group")}addCheckbox(Re){this.checkboxList.push(Re)}removeCheckbox(Re){this.checkboxList.splice(this.checkboxList.indexOf(Re),1)}onChange(){const Re=this.checkboxList.filter(ae=>ae.nzChecked).map(ae=>ae.nzValue);this.nzOnChange.emit(Re)}}return ve.\u0275fac=function(Re){return new(Re||ve)(o.Y36(o.Qsj),o.Y36(o.SBq))},ve.\u0275cmp=o.Xpm({type:ve,selectors:[["nz-checkbox-wrapper"]],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:S,decls:1,vars:0,template:function(Re,ae){1&Re&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),ve})(),N=(()=>{class ve{constructor(Re,ae,Ue,He,me,fe){this.ngZone=Re,this.elementRef=ae,this.nzCheckboxWrapperComponent=Ue,this.cdr=He,this.focusMonitor=me,this.directionality=fe,this.dir="ltr",this.destroy$=new K.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new o.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}innerCheckedChange(Re){this.nzDisabled||(this.nzChecked=Re,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(Re){this.nzChecked=Re,this.cdr.markForCheck()}registerOnChange(Re){this.onChange=Re}registerOnTouched(Re){this.onTouched=Re}setDisabledState(Re){this.nzDisabled=Re,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,A.R)(this.destroy$)).subscribe(Re=>{Re||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,A.R)(this.destroy$)).subscribe(Re=>{this.dir=Re,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.elementRef.nativeElement,"click").pipe((0,A.R)(this.destroy$)).subscribe(Re=>{Re.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,m.R)(this.inputElement.nativeElement,"click").pipe((0,A.R)(this.destroy$)).subscribe(Re=>Re.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}}return ve.\u0275fac=function(Re){return new(Re||ve)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(k,8),o.Y36(o.sBO),o.Y36(D.tE),o.Y36(C.Is,8))},ve.\u0275cmp=o.Xpm({type:ve,selectors:[["","nz-checkbox",""]],viewQuery:function(Re,ae){if(1&Re&&o.Gf(w,7),2&Re){let Ue;o.iGM(Ue=o.CRH())&&(ae.inputElement=Ue.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:4,hostBindings:function(Re,ae){2&Re&&o.ekj("ant-checkbox-wrapper-checked",ae.nzChecked)("ant-checkbox-rtl","rtl"===ae.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[o._Bn([{provide:l.JU,useExisting:(0,o.Gpc)(()=>ve),multi:!0}])],attrs:z,ngContentSelectors:S,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(Re,ae){1&Re&&(o.F$t(),o.TgZ(0,"span",0),o.TgZ(1,"input",1,2),o.NdJ("ngModelChange",function(He){return ae.innerCheckedChange(He)}),o.qZA(),o._UZ(3,"span",3),o.qZA(),o.TgZ(4,"span"),o.Hsn(5),o.qZA()),2&Re&&(o.ekj("ant-checkbox-checked",ae.nzChecked&&!ae.nzIndeterminate)("ant-checkbox-disabled",ae.nzDisabled)("ant-checkbox-indeterminate",ae.nzIndeterminate),o.xp6(1),o.Q6J("checked",ae.nzChecked)("ngModel",ae.nzChecked)("disabled",ae.nzDisabled),o.uIk("autofocus",ae.nzAutoFocus?"autofocus":null)("id",ae.nzId))},directives:[l.Wl,l.JJ,l.On],encapsulation:2,changeDetection:0}),(0,r.gn)([(0,b.yF)()],ve.prototype,"nzAutoFocus",void 0),(0,r.gn)([(0,b.yF)()],ve.prototype,"nzDisabled",void 0),(0,r.gn)([(0,b.yF)()],ve.prototype,"nzIndeterminate",void 0),(0,r.gn)([(0,b.yF)()],ve.prototype,"nzChecked",void 0),ve})(),ce=(()=>{class ve{}return ve.\u0275fac=function(Re){return new(Re||ve)},ve.\u0275mod=o.oAB({type:ve}),ve.\u0275inj=o.cJS({imports:[[C.vT,E.ez,l.u5,D.rt]]}),ve})()},8076:(Ft,Oe,c)=>{c.d(Oe,{J_:()=>K,MC:()=>A,c8:()=>b,Rq:()=>z,mF:()=>w,Ev:()=>k,$C:()=>M});var r=c(1777);let o=(()=>{class N{}return N.SLOW="0.3s",N.BASE="0.2s",N.FAST="0.1s",N})(),l=(()=>{class N{}return N.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",N.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",N.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",N.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",N.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",N.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",N.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",N.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",N.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",N.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",N.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",N.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",N.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",N.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",N})();const K=(0,r.X$)("collapseMotion",[(0,r.SB)("expanded",(0,r.oB)({height:"*"})),(0,r.SB)("collapsed",(0,r.oB)({height:0,overflow:"hidden"})),(0,r.SB)("hidden",(0,r.oB)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,r.eR)("expanded => collapsed",(0,r.jt)(`150ms ${l.EASE_IN_OUT}`)),(0,r.eR)("expanded => hidden",(0,r.jt)(`150ms ${l.EASE_IN_OUT}`)),(0,r.eR)("collapsed => expanded",(0,r.jt)(`150ms ${l.EASE_IN_OUT}`)),(0,r.eR)("hidden => expanded",(0,r.jt)(`150ms ${l.EASE_IN_OUT}`))]),A=((0,r.X$)("treeCollapseMotion",[(0,r.eR)("* => *",[(0,r.IO)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,r.oB)({overflow:"hidden"}),(0,r.EY)(0,[(0,r.jt)(`150ms ${l.EASE_IN_OUT}`,(0,r.oB)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,r.IO)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,r.oB)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,r.EY)(0,[(0,r.jt)(`150ms ${l.EASE_IN_OUT}`,(0,r.oB)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,r.X$)("fadeMotion",[(0,r.eR)(":enter",[(0,r.oB)({opacity:0}),(0,r.jt)(`${o.BASE}`,(0,r.oB)({opacity:1}))]),(0,r.eR)(":leave",[(0,r.oB)({opacity:1}),(0,r.jt)(`${o.BASE}`,(0,r.oB)({opacity:0}))])])),b=(0,r.X$)("helpMotion",[(0,r.eR)(":enter",[(0,r.oB)({opacity:0,transform:"translateY(-5px)"}),(0,r.jt)(`${o.SLOW} ${l.EASE_IN_OUT}`,(0,r.oB)({opacity:1,transform:"translateY(0)"}))]),(0,r.eR)(":leave",[(0,r.oB)({opacity:1,transform:"translateY(0)"}),(0,r.jt)(`${o.SLOW} ${l.EASE_IN_OUT}`,(0,r.oB)({opacity:0,transform:"translateY(-5px)"}))])]),E=((0,r.X$)("moveUpMotion",[(0,r.eR)("* => enter",[(0,r.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,r.jt)(`${o.BASE}`,(0,r.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,r.eR)("* => leave",[(0,r.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,r.jt)(`${o.BASE}`,(0,r.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),(0,r.X$)("notificationMotion",[(0,r.SB)("enterRight",(0,r.oB)({opacity:1,transform:"translateX(0)"})),(0,r.eR)("* => enterRight",[(0,r.oB)({opacity:0,transform:"translateX(5%)"}),(0,r.jt)("100ms linear")]),(0,r.SB)("enterLeft",(0,r.oB)({opacity:1,transform:"translateX(0)"})),(0,r.eR)("* => enterLeft",[(0,r.oB)({opacity:0,transform:"translateX(-5%)"}),(0,r.jt)("100ms linear")]),(0,r.SB)("leave",(0,r.oB)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,r.eR)("* => leave",[(0,r.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,r.jt)("100ms linear")])]),`${o.BASE} ${l.EASE_OUT_QUINT}`),S=`${o.BASE} ${l.EASE_IN_QUINT}`,w=(0,r.X$)("slideMotion",[(0,r.SB)("void",(0,r.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,r.SB)("enter",(0,r.oB)({opacity:1,transform:"scaleY(1)"})),(0,r.eR)("void => *",[(0,r.jt)(E)]),(0,r.eR)("* => void",[(0,r.jt)(S)])]),z=(0,r.X$)("slideAlertMotion",[(0,r.eR)(":leave",[(0,r.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,r.jt)(`${o.SLOW} ${l.EASE_IN_OUT_CIRC}`,(0,r.oB)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),M=(0,r.X$)("zoomBigMotion",[(0,r.eR)("void => active",[(0,r.oB)({opacity:0,transform:"scale(0.8)"}),(0,r.jt)(`${o.BASE} ${l.EASE_OUT_CIRC}`,(0,r.oB)({opacity:1,transform:"scale(1)"}))]),(0,r.eR)("active => void",[(0,r.oB)({opacity:1,transform:"scale(1)"}),(0,r.jt)(`${o.BASE} ${l.EASE_IN_OUT_CIRC}`,(0,r.oB)({opacity:0,transform:"scale(0.8)"}))])]),k=(0,r.X$)("zoomBadgeMotion",[(0,r.eR)(":enter",[(0,r.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,r.jt)(`${o.SLOW} ${l.EASE_OUT_BACK}`,(0,r.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,r.eR)(":leave",[(0,r.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,r.jt)(`${o.SLOW} ${l.EASE_IN_BACK}`,(0,r.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},8693:(Ft,Oe,c)=>{c.d(Oe,{o2:()=>l,M8:()=>K,uf:()=>o,Bh:()=>r});const r=["success","processing","error","default","warning"],o=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function l(m){return-1!==o.indexOf(m)}function K(m){return-1!==r.indexOf(m)}},9439:(Ft,Oe,c)=>{c.d(Oe,{jY:()=>b,oS:()=>D});var r=c(5e3),o=c(8929),l=c(2198),K=c(7604);const m=new r.OlP("nz-config"),A=function(C){return void 0!==C};let b=(()=>{class C{constructor(S){this.configUpdated$=new o.xQ,this.config=S||{}}getConfig(){return this.config}getConfigForComponent(S){return this.config[S]}getConfigChangeEventForComponent(S){return this.configUpdated$.pipe((0,l.h)(w=>w===S),(0,K.h)(void 0))}set(S,w){this.config[S]=Object.assign(Object.assign({},this.config[S]),w),this.configUpdated$.next(S)}}return C.\u0275fac=function(S){return new(S||C)(r.LFG(m,8))},C.\u0275prov=r.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();function D(){return function(E,S,w){const z=`$$__zorroConfigDecorator__${S}`;return Object.defineProperty(E,z,{configurable:!0,writable:!0,enumerable:!1}),{get(){var M,k;const N=(null==w?void 0:w.get)?w.get.bind(this)():this[z],ie=((null===(M=this.propertyAssignCounter)||void 0===M?void 0:M[S])||0)>1,ce=null===(k=this.nzConfigService.getConfigForComponent(this._nzModuleName))||void 0===k?void 0:k[S];return ie&&A(N)?N:A(ce)?ce:N},set(M){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[S]=(this.propertyAssignCounter[S]||0)+1,(null==w?void 0:w.set)?w.set.bind(this)(M):this[z]=M},configurable:!0,enumerable:!0}}}},948:(Ft,Oe,c)=>{c.d(Oe,{Bq:()=>K,ZK:()=>b});var r=c(5e3);const l={},K="[NG-ZORRO]:";const b=(...E)=>function A(E,...S){(0,r.X6Q)()&&function m(...E){const S=E.reduce((w,z)=>w+z.toString(),"");return!l[S]&&(l[S]=!0,!0)}(...S)&&E(...S)}((...S)=>console.warn(K,...S),...E)},4832:(Ft,Oe,c)=>{c.d(Oe,{P:()=>D,g:()=>C});var r=c(9808),o=c(5e3),l=c(655),K=c(3191),m=c(6360),A=c(1721);const b="nz-animate-disabled";let D=(()=>{class E{constructor(w,z,M){this.element=w,this.renderer=z,this.animationType=M,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const w=(0,K.fI)(this.element);!w||(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(w,b):this.renderer.removeClass(w,b))}}return E.\u0275fac=function(w){return new(w||E)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(m.Qb,8))},E.\u0275dir=o.lG2({type:E,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[o.TTD]}),(0,l.gn)([(0,A.yF)()],E.prototype,"nzNoAnimation",void 0),E})(),C=(()=>{class E{}return E.\u0275fac=function(w){return new(w||E)},E.\u0275mod=o.oAB({type:E}),E.\u0275inj=o.cJS({imports:[[r.ez]]}),E})()},969:(Ft,Oe,c)=>{c.d(Oe,{T:()=>m,f:()=>l});var r=c(9808),o=c(5e3);let l=(()=>{class A{constructor(D,C){this.viewContainer=D,this.templateRef=C,this.embeddedViewRef=null,this.context=new K,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}static ngTemplateContextGuard(D,C){return!0}recreateView(){this.viewContainer.clear();const D=this.nzStringTemplateOutlet instanceof o.Rgc;this.embeddedViewRef=this.viewContainer.createEmbeddedView(D?this.nzStringTemplateOutlet:this.templateRef,D?this.nzStringTemplateOutletContext:this.context)}updateContext(){const C=this.nzStringTemplateOutlet instanceof o.Rgc?this.nzStringTemplateOutletContext:this.context,E=this.embeddedViewRef.context;if(C)for(const S of Object.keys(C))E[S]=C[S]}ngOnChanges(D){const{nzStringTemplateOutletContext:C,nzStringTemplateOutlet:E}=D;E&&(this.context.$implicit=E.currentValue),(()=>{let z=!1;if(E)if(E.firstChange)z=!0;else{const ie=E.currentValue instanceof o.Rgc;z=E.previousValue instanceof o.Rgc||ie}return C&&(N=>{const ie=Object.keys(N.previousValue||{}),ce=Object.keys(N.currentValue||{});if(ie.length===ce.length){for(const ve of ce)if(-1===ie.indexOf(ve))return!0;return!1}return!0})(C)||z})()?this.recreateView():this.updateContext()}}return A.\u0275fac=function(D){return new(D||A)(o.Y36(o.s_b),o.Y36(o.Rgc))},A.\u0275dir=o.lG2({type:A,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[o.TTD]}),A})();class K{}let m=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275mod=o.oAB({type:A}),A.\u0275inj=o.cJS({imports:[[r.ez]]}),A})()},6950:(Ft,Oe,c)=>{c.d(Oe,{fG:()=>S,A7:()=>E,Ek:()=>D,hQ:()=>z,e4:()=>M,yW:()=>b,d_:()=>w});var r=c(655),o=c(2845),l=c(5e3),K=c(7625),m=c(4090),A=c(1721);const b={top:new o.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new o.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new o.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new o.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new o.tR({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new o.tR({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new o.tR({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new o.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new o.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new o.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new o.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new o.tR({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new o.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new o.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},D=[b.top,b.right,b.bottom,b.left],E=[new o.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new o.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})],S=[b.bottomLeft,new o.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"})];function w(k){for(const N in b)if(k.connectionPair.originX===b[N].originX&&k.connectionPair.originY===b[N].originY&&k.connectionPair.overlayX===b[N].overlayX&&k.connectionPair.overlayY===b[N].overlayY)return N}let z=(()=>{class k{constructor(ie,ce){this.cdkConnectedOverlay=ie,this.nzDestroyService=ce,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,K.R)(this.nzDestroyService)).subscribe(ve=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(ve)})}updateArrowPosition(ie){const ce=this.getOriginRect(),ve=w(ie);let Le=0,Re=0;"topLeft"===ve||"bottomLeft"===ve?Le=ce.width/2-14:"topRight"===ve||"bottomRight"===ve?Le=-(ce.width/2-14):"leftTop"===ve||"rightTop"===ve?Re=ce.height/2-10:("leftBottom"===ve||"rightBottom"===ve)&&(Re=-(ce.height/2-10)),(this.cdkConnectedOverlay.offsetX!==Le||this.cdkConnectedOverlay.offsetY!==Re)&&(this.cdkConnectedOverlay.offsetY=Re,this.cdkConnectedOverlay.offsetX=Le,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof o.xu?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const ie=this.getFlexibleConnectedPositionStrategyOrigin();if(ie instanceof l.SBq)return ie.nativeElement.getBoundingClientRect();if(ie instanceof Element)return ie.getBoundingClientRect();const ce=ie.width||0,ve=ie.height||0;return{top:ie.y,bottom:ie.y+ve,left:ie.x,right:ie.x+ce,height:ve,width:ce}}}return k.\u0275fac=function(ie){return new(ie||k)(l.Y36(o.pI),l.Y36(m.kn))},k.\u0275dir=l.lG2({type:k,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[l._Bn([m.kn])]}),(0,r.gn)([(0,A.yF)()],k.prototype,"nzArrowPointAtCenter",void 0),k})(),M=(()=>{class k{}return k.\u0275fac=function(ie){return new(ie||k)},k.\u0275mod=l.oAB({type:k}),k.\u0275inj=l.cJS({}),k})()},6987:(Ft,Oe,c)=>{c.d(Oe,{h:()=>K,e:()=>m});const r=["moz","ms","webkit"];function K(A){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(A);const b=r.filter(D=>`${D}CancelAnimationFrame`in window||`${D}CancelRequestAnimationFrame`in window)[0];return b?(window[`${b}CancelAnimationFrame`]||window[`${b}CancelRequestAnimationFrame`]).call(this,A):clearTimeout(A)}const m=function l(){if("undefined"==typeof window)return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const A=r.filter(b=>`${b}RequestAnimationFrame`in window)[0];return A?window[`${A}RequestAnimationFrame`]:function o(){let A=0;return function(b){const D=(new Date).getTime(),C=Math.max(0,16-(D-A)),E=setTimeout(()=>{b(D+C)},C);return A=D+C,E}}()}()},4090:(Ft,Oe,c)=>{c.d(Oe,{G_:()=>ae,r3:()=>me,kn:()=>fe,Ml:()=>ve,rI:()=>k,MF:()=>Re,WV:()=>Ue,ow:()=>He});var r=c(5e3),o=c(8929),l=c(7138),K=c(537),m=c(4850),A=c(2198),b=c(7625),D=c(1059),C=c(5778),E=c(1721),S=c(9808),w=c(6987),z=c(5113);const M=()=>{};let k=(()=>{class J{constructor(se,we){this.ngZone=se,this.rendererFactory2=we,this.resizeSource$=new o.xQ,this.listeners=0,this.disposeHandle=M,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=M}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,l.e)(16),(0,K.x)(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=M)}}return J.\u0275fac=function(se){return new(se||J)(r.LFG(r.R0b),r.LFG(r.FYo))},J.\u0275prov=r.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),ve=(()=>{class J{constructor(se){this.draggingThreshold=5,this.currentDraggingSequence=null,this.currentStartingPoint=null,this.handleRegistry=new Set,this.renderer=se.createRenderer(null,null)}requestDraggingSequence(se){return this.handleRegistry.size||this.registerDraggingHandler((0,E.z6)(se)),this.currentDraggingSequence&&this.currentDraggingSequence.complete(),this.currentStartingPoint=function ce(J){const Me=(0,E.wv)(J);return{x:Me.pageX,y:Me.pageY}}(se),this.currentDraggingSequence=new o.xQ,this.currentDraggingSequence.pipe((0,m.U)(we=>({x:we.pageX-this.currentStartingPoint.x,y:we.pageY-this.currentStartingPoint.y})),(0,A.h)(we=>Math.abs(we.x)>this.draggingThreshold||Math.abs(we.y)>this.draggingThreshold),(0,K.x)(()=>this.teardownDraggingSequence()))}registerDraggingHandler(se){se?(this.handleRegistry.add({teardown:this.renderer.listen("document","touchmove",we=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(we.touches[0]||we.changedTouches[0])})}),this.handleRegistry.add({teardown:this.renderer.listen("document","touchend",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})})):(this.handleRegistry.add({teardown:this.renderer.listen("document","mousemove",we=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(we)})}),this.handleRegistry.add({teardown:this.renderer.listen("document","mouseup",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})}))}teardownDraggingSequence(){this.currentDraggingSequence=null}}return J.\u0275fac=function(se){return new(se||J)(r.LFG(r.FYo))},J.\u0275prov=r.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();function Le(J,Me,se,we){const ue=se-Me;let Ye=J/(we/2);return Ye<1?ue/2*Ye*Ye*Ye+Me:ue/2*((Ye-=2)*Ye*Ye+2)+Me}let Re=(()=>{class J{constructor(se,we){this.ngZone=se,this.doc=we}setScrollTop(se,we=0){se===window?(this.doc.body.scrollTop=we,this.doc.documentElement.scrollTop=we):se.scrollTop=we}getOffset(se){const we={top:0,left:0};if(!se||!se.getClientRects().length)return we;const ue=se.getBoundingClientRect();if(ue.width||ue.height){const Ye=se.ownerDocument.documentElement;we.top=ue.top-Ye.clientTop,we.left=ue.left-Ye.clientLeft}else we.top=ue.top,we.left=ue.left;return we}getScroll(se,we=!0){if("undefined"==typeof window)return 0;const ue=we?"scrollTop":"scrollLeft";let Ye=0;return this.isWindow(se)?Ye=se[we?"pageYOffset":"pageXOffset"]:se instanceof Document?Ye=se.documentElement[ue]:se&&(Ye=se[ue]),se&&!this.isWindow(se)&&"number"!=typeof Ye&&(Ye=(se.ownerDocument||se).documentElement[ue]),Ye}isWindow(se){return null!=se&&se===se.window}scrollTo(se,we=0,ue={}){const Ye=se||window,We=this.getScroll(Ye),rt=Date.now(),{easing:wt,callback:Ae,duration:mt=450}=ue,kt=()=>{const It=Date.now()-rt,Xe=(wt||Le)(It>mt?mt:It,We,we,mt);this.isWindow(Ye)?Ye.scrollTo(window.pageXOffset,Xe):Ye instanceof HTMLDocument||"HTMLDocument"===Ye.constructor.name?Ye.documentElement.scrollTop=Xe:Ye.scrollTop=Xe,It(0,w.e)(kt))}}return J.\u0275fac=function(se){return new(se||J)(r.LFG(r.R0b),r.LFG(S.K0))},J.\u0275prov=r.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();var ae=(()=>{return(J=ae||(ae={})).xxl="xxl",J.xl="xl",J.lg="lg",J.md="md",J.sm="sm",J.xs="xs",ae;var J})();const Ue={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},He={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"};let me=(()=>{class J{constructor(se,we){this.resizeService=se,this.mediaMatcher=we,this.destroy$=new o.xQ,this.resizeService.subscribe().pipe((0,b.R)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(se,we){if(we){const ue=()=>this.matchMedia(se,!0);return this.resizeService.subscribe().pipe((0,m.U)(ue),(0,D.O)(ue()),(0,C.x)((Ye,We)=>Ye[0]===We[0]),(0,m.U)(Ye=>Ye[1]))}{const ue=()=>this.matchMedia(se);return this.resizeService.subscribe().pipe((0,m.U)(ue),(0,D.O)(ue()),(0,C.x)())}}matchMedia(se,we){let ue=ae.md;const Ye={};return Object.keys(se).map(We=>{const rt=We,wt=this.mediaMatcher.matchMedia(Ue[rt]).matches;Ye[We]=wt,wt&&(ue=rt)}),we?[ue,Ye]:ue}}return J.\u0275fac=function(se){return new(se||J)(r.LFG(k),r.LFG(z.vx))},J.\u0275prov=r.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),fe=(()=>{class J extends o.xQ{ngOnDestroy(){this.next(),this.complete()}}return J.\u0275fac=function(){let Me;return function(we){return(Me||(Me=r.n5z(J)))(we||J)}}(),J.\u0275prov=r.Yz7({token:J,factory:J.\u0275fac}),J})()},2683:(Ft,Oe,c)=>{c.d(Oe,{w:()=>l,a:()=>K});var r=c(925),o=c(5e3);let l=(()=>{class m{constructor(b,D){this.elementRef=b,this.renderer=D,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return m.\u0275fac=function(b){return new(b||m)(o.Y36(o.SBq),o.Y36(o.Qsj))},m.\u0275dir=o.lG2({type:m,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[o.TTD]}),m})(),K=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.oAB({type:m}),m.\u0275inj=o.cJS({imports:[[r.ud]]}),m})()},1721:(Ft,Oe,c)=>{c.d(Oe,{yF:()=>Re,Rn:()=>Ue,cO:()=>C,Ly:()=>Lt,pW:()=>me,wv:()=>U,qR:()=>Me,GM:()=>pt,ov:()=>vt,kK:()=>w,DX:()=>S,ui:()=>Ae,tI:()=>Ye,GL:()=>Pt,z6:()=>fe,L8:()=>Ke,D8:()=>Fe,zT:()=>Ct,wU:()=>z,Sm:()=>kt,sw:()=>N,WX:()=>ce,YM:()=>mt,He:()=>ie,lN:()=>Tt});var r=c(3191),o=c(948),l=c(8929),K=c(4715),m=c(5254),A=c(1086),b=c(2986);function C(je,zt){if(!je||!zt||je.length!==zt.length)return!1;const jt=je.length;for(let Bt=0;Btie(zt,je))}function me(je){if(!je.getClientRects().length)return{top:0,left:0};const zt=je.getBoundingClientRect(),jt=je.ownerDocument.defaultView;return{top:zt.top+jt.pageYOffset,left:zt.left+jt.pageXOffset}}function fe(je){return je.type.startsWith("touch")}function U(je){return fe(je)?je.touches[0]||je.changedTouches[0]:je}function Me(je,zt="@"){if("string"!=typeof je)return[];const jt=function J(je){const zt=Array.isArray(je)?je:[je];let jt=zt.join("").replace(/(\$|\^)/g,"\\$1");return zt.length>1&&(jt=`[${jt}]`),new RegExp(`(\\s|^)(${jt})[^\\s]*`,"g")}(zt),Bt=je.match(jt);return null!==Bt?Bt.map(vn=>vn.trim()):[]}function Ye(je){return!!je&&"function"==typeof je.then&&"function"==typeof je.catch}function Ae(je){return"number"==typeof je&&isFinite(je)}function mt(je,zt){return Math.round(je*Math.pow(10,zt))/Math.pow(10,zt)}function kt(je,zt=0){return je.reduce((jt,Bt)=>jt+Bt,zt)}function Ct(je){je.scrollIntoViewIfNeeded?je.scrollIntoViewIfNeeded(!1):je.scrollIntoView&&je.scrollIntoView(!1)}const It=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],Xe="undefined"!=typeof window,lt=Xe&&null!=window.mozInnerScreenX,ct=je=>parseInt(je,10);function Lt(je,zt,jt){if(!Xe)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");const Bt=jt&&jt.debug||!1;if(Bt){const yn=document.querySelector("#input-textarea-caret-position-mirror-div");yn&&yn.parentNode.removeChild(yn)}const vn=document.createElement("div");vn.id="input-textarea-caret-position-mirror-div",document.body.appendChild(vn);const cn=vn.style,an=window.getComputedStyle?window.getComputedStyle(je):je.currentStyle,nn="INPUT"===je.nodeName;cn.whiteSpace="pre-wrap",nn||(cn.wordWrap="break-word"),cn.position="absolute",Bt||(cn.visibility="hidden"),It.forEach(yn=>{nn&&"lineHeight"===yn?cn.lineHeight=an.height:cn[yn]=an[yn]}),lt?je.scrollHeight>ct(an.height)&&(cn.overflowY="scroll"):cn.overflow="hidden",vn.textContent=je.value.substring(0,zt),nn&&(vn.textContent=vn.textContent.replace(/\s/g,"\xa0"));const Gn=document.createElement("span");Gn.textContent=je.value.substring(zt)||".",vn.appendChild(Gn);const xn={top:Gn.offsetTop+ct(an.borderTopWidth),left:Gn.offsetLeft+ct(an.borderLeftWidth),height:ct(an.lineHeight)};return Bt?(Gn.style.backgroundColor="#eee",function Ie(je,zt){const jt=getComputedStyle(je).getPropertyValue("font-size"),Bt=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(Bt),Bt.id="DEBUG",Bt.style.position="absolute",Bt.style.backgroundColor="red",Bt.style.height=jt,Bt.style.width="1px",Bt.style.top=`${je.getBoundingClientRect().top-je.scrollTop+window.pageYOffset+zt.top}px`,Bt.style.left=`${je.getBoundingClientRect().left-je.scrollLeft+window.pageXOffset+zt.left}px`}(je,xn)):document.body.removeChild(vn),xn}function Pt(je){if("undefined"!=typeof window&&window.document&&window.document.documentElement){const zt=Array.isArray(je)?je:[je],{documentElement:jt}=window.document;return zt.some(Bt=>Bt in jt.style)}return!1}function pt(je){return je?Object.keys(je).map(zt=>{const jt=je[zt];return`${zt}:${"string"==typeof jt?jt:`${jt}px`}`}).join(";"):""}let Ne;const Ve={padding:"0",margin:"0",display:"inline",lineHeight:"inherit"};function ye(je){if(!je)return 0;const zt=je.match(/^\d*(\.\d*)?/);return zt?Number(zt[0]):0}function Ke(je,zt,jt,Bt,vn,cn=""){Ne||(Ne=document.createElement("div"),Ne.setAttribute("aria-hidden","true"),document.body.appendChild(Ne));const an=window.getComputedStyle(je),nn=function yt(je){return Array.prototype.slice.apply(je).map(jt=>`${jt}: ${je.getPropertyValue(jt)};`).join("")}(an),Gn=ye(an.lineHeight),xn=Math.round(Gn*(zt+1)+ye(an.paddingTop)+ye(an.paddingBottom));Ne.setAttribute("style",nn),Ne.style.position="fixed",Ne.style.left="0",Ne.style.height="auto",Ne.style.minHeight="auto",Ne.style.maxHeight="auto",Ne.style.top="-999999px",Ne.style.zIndex="-1000",Ne.style.textOverflow="clip",Ne.style.whiteSpace="normal",Ne.style.webkitLineClamp="none";const yn=function Mt(je){const zt=[];return je.forEach(jt=>{const Bt=zt[zt.length-1];Bt&&3===jt.nodeType&&3===Bt.nodeType?Bt.data+=jt.data:zt.push(jt)}),zt}(jt),_n=document.createElement("div"),un=document.createElement("span"),Dt=document.createTextNode(cn),it=document.createElement("span");function Ge(){return Ne.offsetHeight{un.appendChild(De)}),un.appendChild(Dt),Bt.forEach(De=>{it.appendChild(De.cloneNode(!0))}),_n.appendChild(un),_n.appendChild(it),Ne.appendChild(_n),Ge()){const De=Ne.innerHTML;return Ne.removeChild(_n),{contentNodes:jt,text:De,ellipsis:!1}}const St=Array.prototype.slice.apply(Ne.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(({nodeType:De})=>8!==De),xe=Array.prototype.slice.apply(Ne.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Ne.removeChild(_n),Ne.innerHTML="";const xt=document.createElement("span");Ne.appendChild(xt);const ge=document.createTextNode(vn+cn);function ut(De,ft,Jt=0,te=ft.length,T=0){const p=Math.floor((Jt+te)/2);if(De.textContent=ft.slice(0,p),Jt>=te-1)for(let h=te;h>=Jt;h-=1){const y=ft.slice(0,h);if(De.textContent=y,Ge()||!y)return h===ft.length?{finished:!1,node:document.createTextNode(ft)}:{finished:!0,node:document.createTextNode(y)}}return Ge()?ut(De,ft,p,te,p):ut(De,ft,Jt,p,T)}function V(De,ft){const Jt=De.nodeType;if(1===Jt)return Ge()?{finished:!1,node:yn[ft]}:(xt.removeChild(De),{finished:!0,node:null});if(3===Jt){const te=De.textContent||"",T=document.createTextNode(te);return function de(De){xt.insertBefore(De,ge)}(T),ut(T,te)}return{finished:!1,node:null}}xt.appendChild(ge),xe.forEach(De=>{Ne.appendChild(De)});const Z=[];St.some((De,ft)=>{const{finished:Jt,node:te}=V(De,ft);return te&&Z.push(te),Jt});const oe={contentNodes:Z,text:Ne.innerHTML,ellipsis:!0};for(;Ne.firstChild;)Ne.removeChild(Ne.firstChild);return oe}let Y,G;const Q={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function Fe(je="vertical",zt="ant"){if("undefined"==typeof document||"undefined"==typeof window)return 0;const jt="vertical"===je;if(jt&&Y)return Y;if(!jt&&G)return G;const Bt=document.createElement("div");Object.keys(Q).forEach(cn=>{Bt.style[cn]=Q[cn]}),Bt.className=`${zt}-hide-scrollbar scroll-div-append-to-body`,jt?Bt.style.overflowY="scroll":Bt.style.overflowX="scroll",document.body.appendChild(Bt);let vn=0;return jt?(vn=Bt.offsetWidth-Bt.clientWidth,Y=vn):(vn=Bt.offsetHeight-Bt.clientHeight,G=vn),document.body.removeChild(Bt),vn}function vt(){const je=new l.xQ;return Promise.resolve().then(()=>je.next()),je.pipe((0,b.q)(1))}function Tt(je){return(0,K.b)(je)?je:Ye(je)?(0,m.D)(Promise.resolve(je)):(0,A.of)(je)}},2643:(Ft,Oe,c)=>{c.d(Oe,{dQ:()=>D,vG:()=>C});var r=c(925),o=c(5e3),l=c(6360);class K{constructor(S,w,z,M){this.triggerElement=S,this.ngZone=w,this.insertExtraNode=z,this.platformId=M,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=k=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===k.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new r.t4(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)})}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const S=this.triggerElement,w=this.getWaveColor(S);S.setAttribute(this.waveAttributeName,"true"),!(Date.now(){S.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(S){return!!S&&"#ffffff"!==S&&"rgb(255, 255, 255)"!==S&&this.isNotGrey(S)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(S)&&"transparent"!==S}isNotGrey(S){const w=S.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(w&&w[1]&&w[2]&&w[3]&&w[1]===w[2]&&w[2]===w[3])}getWaveColor(S){const w=getComputedStyle(S);return w.getPropertyValue("border-top-color")||w.getPropertyValue("border-color")||w.getPropertyValue("background-color")}runTimeoutOutsideZone(S,w){this.ngZone.runOutsideAngular(()=>setTimeout(S,w))}}const m={disabled:!1},A=new o.OlP("nz-wave-global-options",{providedIn:"root",factory:function b(){return m}});let D=(()=>{class E{constructor(w,z,M,k,N){this.ngZone=w,this.elementRef=z,this.config=M,this.animationType=k,this.platformId=N,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}isConfigDisabled(){let w=!1;return this.config&&"boolean"==typeof this.config.disabled&&(w=this.config.disabled),"NoopAnimations"===this.animationType&&(w=!0),w}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new K(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}return E.\u0275fac=function(w){return new(w||E)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(A,8),o.Y36(l.Qb,8),o.Y36(o.Lbi))},E.\u0275dir=o.lG2({type:E,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),E})(),C=(()=>{class E{}return E.\u0275fac=function(w){return new(w||E)},E.\u0275mod=o.oAB({type:E}),E.\u0275inj=o.cJS({imports:[[r.ud]]}),E})()},685:(Ft,Oe,c)=>{c.d(Oe,{gB:()=>Ye,p9:()=>we,Xo:()=>We});var r=c(7429),o=c(5e3),l=c(8929),K=c(7625),m=c(1059),A=c(9439),b=c(4170),D=c(9808),C=c(969),E=c(226);function S(rt,wt){if(1&rt&&(o.ynx(0),o._UZ(1,"img",5),o.BQk()),2&rt){const Ae=o.oxw(2);o.xp6(1),o.Q6J("src",Ae.nzNotFoundImage,o.LSH)("alt",Ae.isContentString?Ae.nzNotFoundContent:"empty")}}function w(rt,wt){if(1&rt&&(o.ynx(0),o.YNc(1,S,2,2,"ng-container",4),o.BQk()),2&rt){const Ae=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",Ae.nzNotFoundImage)}}function z(rt,wt){1&rt&&o._UZ(0,"nz-empty-default")}function M(rt,wt){1&rt&&o._UZ(0,"nz-empty-simple")}function k(rt,wt){if(1&rt&&(o.ynx(0),o._uU(1),o.BQk()),2&rt){const Ae=o.oxw(2);o.xp6(1),o.hij(" ",Ae.isContentString?Ae.nzNotFoundContent:Ae.locale.description," ")}}function N(rt,wt){if(1&rt&&(o.TgZ(0,"p",6),o.YNc(1,k,2,1,"ng-container",4),o.qZA()),2&rt){const Ae=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",Ae.nzNotFoundContent)}}function ie(rt,wt){if(1&rt&&(o.ynx(0),o._uU(1),o.BQk()),2&rt){const Ae=o.oxw(2);o.xp6(1),o.hij(" ",Ae.nzNotFoundFooter," ")}}function ce(rt,wt){if(1&rt&&(o.TgZ(0,"div",7),o.YNc(1,ie,2,1,"ng-container",4),o.qZA()),2&rt){const Ae=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",Ae.nzNotFoundFooter)}}function ve(rt,wt){1&rt&&o._UZ(0,"nz-empty",6),2&rt&&o.Q6J("nzNotFoundImage","simple")}function Le(rt,wt){1&rt&&o._UZ(0,"nz-empty",7),2&rt&&o.Q6J("nzNotFoundImage","simple")}function Re(rt,wt){1&rt&&o._UZ(0,"nz-empty")}function ae(rt,wt){if(1&rt&&(o.ynx(0,2),o.YNc(1,ve,1,1,"nz-empty",3),o.YNc(2,Le,1,1,"nz-empty",4),o.YNc(3,Re,1,0,"nz-empty",5),o.BQk()),2&rt){const Ae=o.oxw();o.Q6J("ngSwitch",Ae.size),o.xp6(1),o.Q6J("ngSwitchCase","normal"),o.xp6(1),o.Q6J("ngSwitchCase","small")}}function Ue(rt,wt){}function He(rt,wt){if(1&rt&&o.YNc(0,Ue,0,0,"ng-template",8),2&rt){const Ae=o.oxw(2);o.Q6J("cdkPortalOutlet",Ae.contentPortal)}}function me(rt,wt){if(1&rt&&(o.ynx(0),o._uU(1),o.BQk()),2&rt){const Ae=o.oxw(2);o.xp6(1),o.hij(" ",Ae.content," ")}}function fe(rt,wt){if(1&rt&&(o.ynx(0),o.YNc(1,He,1,1,void 0,1),o.YNc(2,me,2,1,"ng-container",1),o.BQk()),2&rt){const Ae=o.oxw();o.xp6(1),o.Q6J("ngIf","string"!==Ae.contentType),o.xp6(1),o.Q6J("ngIf","string"===Ae.contentType)}}const U=new o.OlP("nz-empty-component-name");let J=(()=>{class rt{}return rt.\u0275fac=function(Ae){return new(Ae||rt)},rt.\u0275cmp=o.Xpm({type:rt,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(Ae,mt){1&Ae&&(o.O4$(),o.TgZ(0,"svg",0),o.TgZ(1,"g",1),o.TgZ(2,"g",2),o._UZ(3,"ellipse",3),o._UZ(4,"path",4),o._UZ(5,"path",5),o._UZ(6,"path",6),o._UZ(7,"path",7),o.qZA(),o._UZ(8,"path",8),o.TgZ(9,"g",9),o._UZ(10,"ellipse",10),o._UZ(11,"path",11),o.qZA(),o.qZA(),o.qZA())},encapsulation:2,changeDetection:0}),rt})(),Me=(()=>{class rt{}return rt.\u0275fac=function(Ae){return new(Ae||rt)},rt.\u0275cmp=o.Xpm({type:rt,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(Ae,mt){1&Ae&&(o.O4$(),o.TgZ(0,"svg",0),o.TgZ(1,"g",1),o._UZ(2,"ellipse",2),o.TgZ(3,"g",3),o._UZ(4,"path",4),o._UZ(5,"path",5),o.qZA(),o.qZA(),o.qZA())},encapsulation:2,changeDetection:0}),rt})();const se=["default","simple"];let we=(()=>{class rt{constructor(Ae,mt){this.i18n=Ae,this.cdr=mt,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new l.xQ}ngOnChanges(Ae){const{nzNotFoundContent:mt,nzNotFoundImage:kt}=Ae;if(mt&&(this.isContentString="string"==typeof mt.currentValue),kt){const Ct=kt.currentValue||"default";this.isImageBuildIn=se.findIndex(It=>It===Ct)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,K.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return rt.\u0275fac=function(Ae){return new(Ae||rt)(o.Y36(b.wi),o.Y36(o.sBO))},rt.\u0275cmp=o.Xpm({type:rt,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[o.TTD],decls:6,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function(Ae,mt){1&Ae&&(o.TgZ(0,"div",0),o.YNc(1,w,2,1,"ng-container",1),o.YNc(2,z,1,0,"nz-empty-default",1),o.YNc(3,M,1,0,"nz-empty-simple",1),o.qZA(),o.YNc(4,N,2,1,"p",2),o.YNc(5,ce,2,1,"div",3)),2&Ae&&(o.xp6(1),o.Q6J("ngIf",!mt.isImageBuildIn),o.xp6(1),o.Q6J("ngIf",mt.isImageBuildIn&&"simple"!==mt.nzNotFoundImage),o.xp6(1),o.Q6J("ngIf",mt.isImageBuildIn&&"simple"===mt.nzNotFoundImage),o.xp6(1),o.Q6J("ngIf",null!==mt.nzNotFoundContent),o.xp6(1),o.Q6J("ngIf",mt.nzNotFoundFooter))},directives:[J,Me,D.O5,C.f],encapsulation:2,changeDetection:0}),rt})(),Ye=(()=>{class rt{constructor(Ae,mt,kt,Ct){this.configService=Ae,this.viewContainerRef=mt,this.cdr=kt,this.injector=Ct,this.contentType="string",this.size="",this.destroy$=new l.xQ}ngOnChanges(Ae){Ae.nzComponentName&&(this.size=function ue(rt){switch(rt){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(Ae.nzComponentName.currentValue)),Ae.specificContent&&!Ae.specificContent.isFirstChange()&&(this.content=Ae.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const Ae=this.content;if("string"==typeof Ae)this.contentType="string";else if(Ae instanceof o.Rgc){const mt={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new r.UE(Ae,this.viewContainerRef,mt)}else if(Ae instanceof o.DyG){const mt=o.zs3.create({parent:this.injector,providers:[{provide:U,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new r.C5(Ae,this.viewContainerRef,mt)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,m.O)(!0),(0,K.R)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return rt.\u0275fac=function(Ae){return new(Ae||rt)(o.Y36(A.jY),o.Y36(o.s_b),o.Y36(o.sBO),o.Y36(o.zs3))},rt.\u0275cmp=o.Xpm({type:rt,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[o.TTD],decls:2,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function(Ae,mt){1&Ae&&(o.YNc(0,ae,4,3,"ng-container",0),o.YNc(1,fe,3,2,"ng-container",1)),2&Ae&&(o.Q6J("ngIf",!mt.content&&null!==mt.specificContent),o.xp6(1),o.Q6J("ngIf",mt.content))},directives:[we,D.O5,D.RF,D.n9,D.ED,r.Pl],encapsulation:2,changeDetection:0}),rt})(),We=(()=>{class rt{}return rt.\u0275fac=function(Ae){return new(Ae||rt)},rt.\u0275mod=o.oAB({type:rt}),rt.\u0275inj=o.cJS({imports:[[E.vT,D.ez,r.eL,C.T,b.YI]]}),rt})()},4546:(Ft,Oe,c)=>{c.d(Oe,{Fd:()=>mt,Lr:()=>wt,Nx:()=>Ye,iK:()=>Ct,U5:()=>lt});var r=c(226),o=c(5113),l=c(925),K=c(9808),m=c(5e3),A=c(969),b=c(1894),D=c(647),C=c(404),E=c(4182),S=c(8929),w=c(2654),z=c(7625),M=c(2198),k=c(4850),N=c(2868),ie=c(1059),ce=c(8076),ve=c(1721),Le=c(4170),Re=c(655),ae=c(9439);const Ue=["*"];function He(ct,Lt){if(1&ct&&m._UZ(0,"i",6),2&ct){const Ie=m.oxw();m.Q6J("nzType",Ie.iconType)}}function me(ct,Lt){if(1&ct&&(m.ynx(0),m._uU(1),m.BQk()),2&ct){const Ie=m.oxw(2);m.xp6(1),m.Oqu(Ie.innerTip)}}const fe=function(ct){return[ct]},U=function(ct){return{$implicit:ct}};function J(ct,Lt){if(1&ct&&(m.TgZ(0,"div",7),m.TgZ(1,"div",8),m.YNc(2,me,2,1,"ng-container",9),m.qZA(),m.qZA()),2&ct){const Ie=m.oxw();m.Q6J("@helpMotion",void 0),m.xp6(1),m.Q6J("ngClass",m.VKq(4,fe,"ant-form-item-explain-"+Ie.status)),m.xp6(1),m.Q6J("nzStringTemplateOutlet",Ie.innerTip)("nzStringTemplateOutletContext",m.VKq(6,U,Ie.validateControl))}}function Me(ct,Lt){if(1&ct&&(m.ynx(0),m._uU(1),m.BQk()),2&ct){const Ie=m.oxw(2);m.xp6(1),m.Oqu(Ie.nzExtra)}}function se(ct,Lt){if(1&ct&&(m.TgZ(0,"div",10),m.YNc(1,Me,2,1,"ng-container",11),m.qZA()),2&ct){const Ie=m.oxw();m.xp6(1),m.Q6J("nzStringTemplateOutlet",Ie.nzExtra)}}function we(ct,Lt){if(1&ct&&(m.ynx(0),m._UZ(1,"i",3),m.BQk()),2&ct){const Ie=Lt.$implicit,Pt=m.oxw(2);m.xp6(1),m.Q6J("nzType",Ie)("nzTheme",Pt.tooltipIcon.theme)}}function ue(ct,Lt){if(1&ct&&(m.TgZ(0,"span",1),m.YNc(1,we,2,2,"ng-container",2),m.qZA()),2&ct){const Ie=m.oxw();m.Q6J("nzTooltipTitle",Ie.nzTooltipTitle),m.xp6(1),m.Q6J("nzStringTemplateOutlet",Ie.tooltipIcon.type)}}let Ye=(()=>{class ct{constructor(Ie,Pt,pt){this.cdr=pt,this.status=null,this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new S.xQ,Pt.addClass(Ie.nativeElement,"ant-form-item")}setWithHelpViaTips(Ie){this.withHelpClass=Ie,this.cdr.markForCheck()}setStatus(Ie){this.status=Ie,this.cdr.markForCheck()}setHasFeedback(Ie){this.hasFeedback=Ie,this.cdr.markForCheck()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ct.\u0275fac=function(Ie){return new(Ie||ct)(m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(m.sBO))},ct.\u0275cmp=m.Xpm({type:ct,selectors:[["nz-form-item"]],hostVars:12,hostBindings:function(Ie,Pt){2&Ie&&m.ekj("ant-form-item-has-success","success"===Pt.status)("ant-form-item-has-warning","warning"===Pt.status)("ant-form-item-has-error","error"===Pt.status)("ant-form-item-is-validating","validating"===Pt.status)("ant-form-item-has-feedback",Pt.hasFeedback&&Pt.status)("ant-form-item-with-help",Pt.withHelpClass)},exportAs:["nzFormItem"],ngContentSelectors:Ue,decls:1,vars:0,template:function(Ie,Pt){1&Ie&&(m.F$t(),m.Hsn(0))},encapsulation:2,changeDetection:0}),ct})();const rt={type:"question-circle",theme:"outline"};let wt=(()=>{class ct{constructor(Ie,Pt,pt,Et){var ot;this.nzConfigService=Ie,this.renderer=pt,this.directionality=Et,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=rt,this.dir="ltr",this.destroy$=new S.xQ,this.inputChanges$=new S.xQ,this.renderer.addClass(Pt.nativeElement,"ant-form"),this.dir=this.directionality.value,null===(ot=this.directionality.change)||void 0===ot||ot.pipe((0,z.R)(this.destroy$)).subscribe(en=>{this.dir=en})}getInputObservable(Ie){return this.inputChanges$.pipe((0,M.h)(Pt=>Ie in Pt),(0,k.U)(Pt=>Pt[Ie]))}ngOnChanges(Ie){this.inputChanges$.next(Ie)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(),this.destroy$.complete()}}return ct.\u0275fac=function(Ie){return new(Ie||ct)(m.Y36(ae.jY),m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(r.Is,8))},ct.\u0275dir=m.lG2({type:ct,selectors:[["","nz-form",""]],hostVars:8,hostBindings:function(Ie,Pt){2&Ie&&m.ekj("ant-form-horizontal","horizontal"===Pt.nzLayout)("ant-form-vertical","vertical"===Pt.nzLayout)("ant-form-inline","inline"===Pt.nzLayout)("ant-form-rtl","rtl"===Pt.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:"nzNoColon",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzForm"],features:[m.TTD]}),(0,Re.gn)([(0,ae.oS)(),(0,ve.yF)()],ct.prototype,"nzNoColon",void 0),(0,Re.gn)([(0,ae.oS)()],ct.prototype,"nzAutoTips",void 0),(0,Re.gn)([(0,ve.yF)()],ct.prototype,"nzDisableAutoTips",void 0),(0,Re.gn)([(0,ae.oS)()],ct.prototype,"nzTooltipIcon",void 0),ct})();const Ae={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let mt=(()=>{class ct{constructor(Ie,Pt,pt,Et,ot,en){var Ne,Ve;this.nzFormItemComponent=Pt,this.cdr=pt,this.nzFormDirective=en,this._hasFeedback=!1,this.validateChanges=w.w.EMPTY,this.validateString=null,this.destroyed$=new S.xQ,this.status=null,this.validateControl=null,this.iconType=null,this.innerTip=null,this.nzAutoTips={},this.nzDisableAutoTips="default",Et.addClass(Ie.nativeElement,"ant-form-item-control"),this.subscribeAutoTips(ot.localeChange.pipe((0,N.b)(ye=>this.localeId=ye.locale))),this.subscribeAutoTips(null===(Ne=this.nzFormDirective)||void 0===Ne?void 0:Ne.getInputObservable("nzAutoTips")),this.subscribeAutoTips(null===(Ve=this.nzFormDirective)||void 0===Ve?void 0:Ve.getInputObservable("nzDisableAutoTips").pipe((0,M.h)(()=>"default"===this.nzDisableAutoTips)))}get disableAutoTips(){var Ie;return"default"!==this.nzDisableAutoTips?(0,ve.sw)(this.nzDisableAutoTips):null===(Ie=this.nzFormDirective)||void 0===Ie?void 0:Ie.nzDisableAutoTips}set nzHasFeedback(Ie){this._hasFeedback=(0,ve.sw)(Ie),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(Ie){Ie instanceof E.TO||Ie instanceof E.On?(this.validateControl=Ie,this.validateString=null,this.watchControl()):Ie instanceof E.u?(this.validateControl=Ie.control,this.validateString=null,this.watchControl()):(this.validateString=Ie,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,ie.O)(null),(0,z.R)(this.destroyed$)).subscribe(Ie=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.iconType=this.status?Ae[this.status]:null,this.innerTip=this.getInnerTip(this.status),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(Ie){let Pt;return Pt="warning"===Ie||this.validateControlStatus("INVALID","warning")?"warning":"error"===Ie||this.validateControlStatus("INVALID")?"error":"validating"===Ie||"pending"===Ie||this.validateControlStatus("PENDING")?"validating":"success"===Ie||this.validateControlStatus("VALID")?"success":null,Pt}validateControlStatus(Ie,Pt){if(this.validateControl){const{dirty:pt,touched:Et,status:ot}=this.validateControl;return(!!pt||!!Et)&&(Pt?this.validateControl.hasError(Pt):ot===Ie)}return!1}getInnerTip(Ie){switch(Ie){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){var Ie,Pt,pt,Et,ot,en,Ne,Ve,ye,yt,Mt,Ke,Y;if(this.validateControl){const G=this.validateControl.errors||{};let Q="";for(const Fe in G)if(G.hasOwnProperty(Fe)&&(Q=null!==(Mt=null!==(Ne=null!==(ot=null!==(Pt=null===(Ie=G[Fe])||void 0===Ie?void 0:Ie[this.localeId])&&void 0!==Pt?Pt:null===(Et=null===(pt=this.nzAutoTips)||void 0===pt?void 0:pt[this.localeId])||void 0===Et?void 0:Et[Fe])&&void 0!==ot?ot:null===(en=this.nzAutoTips.default)||void 0===en?void 0:en[Fe])&&void 0!==Ne?Ne:null===(yt=null===(ye=null===(Ve=this.nzFormDirective)||void 0===Ve?void 0:Ve.nzAutoTips)||void 0===ye?void 0:ye[this.localeId])||void 0===yt?void 0:yt[Fe])&&void 0!==Mt?Mt:null===(Y=null===(Ke=this.nzFormDirective)||void 0===Ke?void 0:Ke.nzAutoTips.default)||void 0===Y?void 0:Y[Fe]),Q)break;this.autoErrorTip=Q}}subscribeAutoTips(Ie){null==Ie||Ie.pipe((0,z.R)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}ngOnChanges(Ie){const{nzDisableAutoTips:Pt,nzAutoTips:pt,nzSuccessTip:Et,nzWarningTip:ot,nzErrorTip:en,nzValidatingTip:Ne}=Ie;Pt||pt?(this.updateAutoErrorTip(),this.setStatus()):(Et||ot||en||Ne)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof E.oH?this.defaultValidateControl.control:this.defaultValidateControl)}}return ct.\u0275fac=function(Ie){return new(Ie||ct)(m.Y36(m.SBq),m.Y36(Ye,9),m.Y36(m.sBO),m.Y36(m.Qsj),m.Y36(Le.wi),m.Y36(wt,8))},ct.\u0275cmp=m.Xpm({type:ct,selectors:[["nz-form-control"]],contentQueries:function(Ie,Pt,pt){if(1&Ie&&m.Suo(pt,E.a5,5),2&Ie){let Et;m.iGM(Et=m.CRH())&&(Pt.defaultValidateControl=Et.first)}},inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],features:[m.TTD],ngContentSelectors:Ue,decls:7,vars:3,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-children-icon"],["nz-icon","",3,"nzType",4,"ngIf"],["class","ant-form-item-explain ant-form-item-explain-connected",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-form-item-extra"],[4,"nzStringTemplateOutlet"]],template:function(Ie,Pt){1&Ie&&(m.F$t(),m.TgZ(0,"div",0),m.TgZ(1,"div",1),m.Hsn(2),m.qZA(),m.TgZ(3,"span",2),m.YNc(4,He,1,1,"i",3),m.qZA(),m.qZA(),m.YNc(5,J,3,8,"div",4),m.YNc(6,se,2,1,"div",5)),2&Ie&&(m.xp6(4),m.Q6J("ngIf",Pt.nzHasFeedback&&Pt.iconType),m.xp6(1),m.Q6J("ngIf",Pt.innerTip),m.xp6(1),m.Q6J("ngIf",Pt.nzExtra))},directives:[K.O5,D.Ls,K.mk,A.f],encapsulation:2,data:{animation:[ce.c8]},changeDetection:0}),ct})();function kt(ct){const Lt="string"==typeof ct?{type:ct}:ct;return Object.assign(Object.assign({},rt),Lt)}let Ct=(()=>{class ct{constructor(Ie,Pt,pt,Et){this.cdr=pt,this.nzFormDirective=Et,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.destroy$=new S.xQ,Pt.addClass(Ie.nativeElement,"ant-form-item-label"),this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,M.h)(()=>"default"===this.noColon),(0,z.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,M.h)(()=>"default"===this._tooltipIcon),(0,z.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}set nzNoColon(Ie){this.noColon=(0,ve.sw)(Ie)}get nzNoColon(){var Ie;return"default"!==this.noColon?this.noColon:null===(Ie=this.nzFormDirective)||void 0===Ie?void 0:Ie.nzNoColon}set nzTooltipIcon(Ie){this._tooltipIcon=kt(Ie)}get tooltipIcon(){var Ie;return"default"!==this._tooltipIcon?this._tooltipIcon:kt((null===(Ie=this.nzFormDirective)||void 0===Ie?void 0:Ie.nzTooltipIcon)||rt)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ct.\u0275fac=function(Ie){return new(Ie||ct)(m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(m.sBO),m.Y36(wt,12))},ct.\u0275cmp=m.Xpm({type:ct,selectors:[["nz-form-label"]],inputs:{nzFor:"nzFor",nzRequired:"nzRequired",nzNoColon:"nzNoColon",nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzFormLabel"],ngContentSelectors:Ue,decls:3,vars:6,consts:[["class","ant-form-item-tooltip","nz-tooltip","",3,"nzTooltipTitle",4,"ngIf"],["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(Ie,Pt){1&Ie&&(m.F$t(),m.TgZ(0,"label"),m.Hsn(1),m.YNc(2,ue,2,2,"span",0),m.qZA()),2&Ie&&(m.ekj("ant-form-item-no-colon",Pt.nzNoColon)("ant-form-item-required",Pt.nzRequired),m.uIk("for",Pt.nzFor),m.xp6(2),m.Q6J("ngIf",Pt.nzTooltipTitle))},directives:[K.O5,C.SY,A.f,D.Ls],encapsulation:2,changeDetection:0}),(0,Re.gn)([(0,ve.yF)()],ct.prototype,"nzRequired",void 0),ct})(),lt=(()=>{class ct{}return ct.\u0275fac=function(Ie){return new(Ie||ct)},ct.\u0275mod=m.oAB({type:ct}),ct.\u0275inj=m.cJS({imports:[[r.vT,K.ez,b.Jb,D.PV,C.cg,o.xu,l.ud,A.T],b.Jb]}),ct})()},1894:(Ft,Oe,c)=>{c.d(Oe,{t3:()=>w,Jb:()=>z,SK:()=>S});var r=c(5e3),o=c(839),l=c(8929),K=c(7625),m=c(4090),A=c(5113),b=c(925),D=c(226),C=c(1721),E=c(9808);let S=(()=>{class M{constructor(N,ie,ce,ve,Le,Re,ae){this.elementRef=N,this.renderer=ie,this.mediaMatcher=ce,this.ngZone=ve,this.platform=Le,this.breakpointService=Re,this.directionality=ae,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new o.t(1),this.dir="ltr",this.destroy$=new l.xQ}getGutter(){const N=[null,null],ie=this.nzGutter||0;return(Array.isArray(ie)?ie:[ie,null]).forEach((ve,Le)=>{"object"==typeof ve&&null!==ve?(N[Le]=null,Object.keys(m.WV).map(Re=>{const ae=Re;this.mediaMatcher.matchMedia(m.WV[ae]).matches&&ve[ae]&&(N[Le]=ve[ae])})):N[Le]=Number(ve)||null}),N}setGutterStyle(){const[N,ie]=this.getGutter();this.actualGutter$.next([N,ie]);const ce=(ve,Le)=>{null!==Le&&this.renderer.setStyle(this.elementRef.nativeElement,ve,`-${Le/2}px`)};ce("margin-left",N),ce("margin-right",N),ce("margin-top",ie),ce("margin-bottom",ie)}ngOnInit(){var N;this.dir=this.directionality.value,null===(N=this.directionality.change)||void 0===N||N.pipe((0,K.R)(this.destroy$)).subscribe(ie=>{this.dir=ie}),this.setGutterStyle()}ngOnChanges(N){N.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(m.WV).pipe((0,K.R)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return M.\u0275fac=function(N){return new(N||M)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(A.vx),r.Y36(r.R0b),r.Y36(b.t4),r.Y36(m.r3),r.Y36(D.Is,8))},M.\u0275dir=r.lG2({type:M,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:18,hostBindings:function(N,ie){2&N&&r.ekj("ant-row-top","top"===ie.nzAlign)("ant-row-middle","middle"===ie.nzAlign)("ant-row-bottom","bottom"===ie.nzAlign)("ant-row-start","start"===ie.nzJustify)("ant-row-end","end"===ie.nzJustify)("ant-row-center","center"===ie.nzJustify)("ant-row-space-around","space-around"===ie.nzJustify)("ant-row-space-between","space-between"===ie.nzJustify)("ant-row-rtl","rtl"===ie.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[r.TTD]}),M})(),w=(()=>{class M{constructor(N,ie,ce,ve){this.elementRef=N,this.nzRowDirective=ie,this.renderer=ce,this.directionality=ve,this.classMap={},this.destroy$=new l.xQ,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}setHostClassMap(){const N=Object.assign({"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,C.DX)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,C.DX)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,C.DX)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,C.DX)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,C.DX)(this.nzPush),"ant-col-rtl":"rtl"===this.dir},this.generateClass());for(const ie in this.classMap)this.classMap.hasOwnProperty(ie)&&this.renderer.removeClass(this.elementRef.nativeElement,ie);this.classMap=Object.assign({},N);for(const ie in this.classMap)this.classMap.hasOwnProperty(ie)&&this.classMap[ie]&&this.renderer.addClass(this.elementRef.nativeElement,ie)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(N){return"number"==typeof N?`${N} ${N} auto`:"string"==typeof N&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(N)?`0 0 ${N}`:N}generateClass(){const ie={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(ce=>{const ve=ce.replace("nz","").toLowerCase();if((0,C.DX)(this[ce]))if("number"==typeof this[ce]||"string"==typeof this[ce])ie[`ant-col-${ve}-${this[ce]}`]=!0;else{const Le=this[ce];["span","pull","push","offset","order"].forEach(ae=>{ie[`ant-col-${ve}${"span"===ae?"-":`-${ae}-`}${Le[ae]}`]=Le&&(0,C.DX)(Le[ae])})}}),ie}ngOnInit(){this.dir=this.directionality.value,this.directionality.change.pipe((0,K.R)(this.destroy$)).subscribe(N=>{this.dir=N,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(N){this.setHostClassMap();const{nzFlex:ie}=N;ie&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,K.R)(this.destroy$)).subscribe(([N,ie])=>{const ce=(ve,Le)=>{null!==Le&&this.renderer.setStyle(this.elementRef.nativeElement,ve,Le/2+"px")};ce("padding-left",N),ce("padding-right",N),ce("padding-top",ie),ce("padding-bottom",ie)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return M.\u0275fac=function(N){return new(N||M)(r.Y36(r.SBq),r.Y36(S,9),r.Y36(r.Qsj),r.Y36(D.Is,8))},M.\u0275dir=r.lG2({type:M,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(N,ie){2&N&&r.Udp("flex",ie.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[r.TTD]}),M})(),z=(()=>{class M{}return M.\u0275fac=function(N){return new(N||M)},M.\u0275mod=r.oAB({type:M}),M.\u0275inj=r.cJS({imports:[[D.vT,E.ez,A.xu,b.ud]]}),M})()},4170:(Ft,Oe,c)=>{c.d(Oe,{u7:()=>A,YI:()=>E,wi:()=>D,iF:()=>K});var r=c(5e3),o=c(591),l=c(948),K={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},m={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"},DatePicker:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},TimePicker:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},Calendar:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"}};const A=new r.OlP("nz-i18n"),b=new r.OlP("nz-date-locale");let D=(()=>{class yn{constructor(un,Dt){this._change=new o.X(this._locale),this.setLocale(un||m),this.setDateLocale(Dt||null)}get localeChange(){return this._change.asObservable()}translate(un,Dt){let it=this._getObjectPath(this._locale,un);return"string"==typeof it?(Dt&&Object.keys(Dt).forEach(Ge=>it=it.replace(new RegExp(`%${Ge}%`,"g"),Dt[Ge])),it):un}setLocale(un){this._locale&&this._locale.locale===un.locale||(this._locale=un,this._change.next(un))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(un){this.dateLocale=un}getDateLocale(){return this.dateLocale}getLocaleData(un,Dt){const it=un?this._getObjectPath(this._locale,un):this._locale;return!it&&!Dt&&(0,l.ZK)(`Missing translations for "${un}" in language "${this._locale.locale}".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),it||Dt||this._getObjectPath(K,un)||{}}_getObjectPath(un,Dt){let it=un;const Ge=Dt.split("."),St=Ge.length;let xe=0;for(;it&&xe{class yn{}return yn.\u0275fac=function(un){return new(un||yn)},yn.\u0275mod=r.oAB({type:yn}),yn.\u0275inj=r.cJS({}),yn})();new r.OlP("date-config")},647:(Ft,Oe,c)=>{c.d(Oe,{Ls:()=>Jn,PV:()=>qn,H5:()=>Nn});var r=c(925),o=c(5e3),l=c(655),K=c(8929),m=c(5254),A=c(7625),b=c(9808);function D(Ce,ke){(function E(Ce){return"string"==typeof Ce&&Ce.includes(".")&&1===parseFloat(Ce)})(Ce)&&(Ce="100%");var le=function S(Ce){return"string"==typeof Ce&&Ce.includes("%")}(Ce);return Ce=360===ke?Ce:Math.min(ke,Math.max(0,parseFloat(Ce))),le&&(Ce=parseInt(String(Ce*ke),10)/100),Math.abs(Ce-ke)<1e-6?1:Ce=360===ke?(Ce<0?Ce%ke+ke:Ce%ke)/parseFloat(String(ke)):Ce%ke/parseFloat(String(ke))}function C(Ce){return Math.min(1,Math.max(0,Ce))}function w(Ce){return Ce=parseFloat(Ce),(isNaN(Ce)||Ce<0||Ce>1)&&(Ce=1),Ce}function z(Ce){return Ce<=1?100*Number(Ce)+"%":Ce}function M(Ce){return 1===Ce.length?"0"+Ce:String(Ce)}function N(Ce,ke,le){Ce=D(Ce,255),ke=D(ke,255),le=D(le,255);var tt=Math.max(Ce,ke,le),Ht=Math.min(Ce,ke,le),Xt=0,dn=0,Mn=(tt+Ht)/2;if(tt===Ht)dn=0,Xt=0;else{var jn=tt-Ht;switch(dn=Mn>.5?jn/(2-tt-Ht):jn/(tt+Ht),tt){case Ce:Xt=(ke-le)/jn+(ke1&&(le-=1),le<1/6?Ce+6*le*(ke-Ce):le<.5?ke:le<2/3?Ce+(ke-Ce)*(2/3-le)*6:Ce}function ve(Ce,ke,le){Ce=D(Ce,255),ke=D(ke,255),le=D(le,255);var tt=Math.max(Ce,ke,le),Ht=Math.min(Ce,ke,le),Xt=0,dn=tt,Mn=tt-Ht,jn=0===tt?0:Mn/tt;if(tt===Ht)Xt=0;else{switch(tt){case Ce:Xt=(ke-le)/Mn+(ke>16,g:(65280&Ce)>>8,b:255&Ce}}(ke)),this.originalInput=ke;var Ht=function Me(Ce){var ke={r:0,g:0,b:0},le=1,tt=null,Ht=null,Xt=null,dn=!1,Mn=!1;return"string"==typeof Ce&&(Ce=function wt(Ce){if(0===(Ce=Ce.trim().toLowerCase()).length)return!1;var ke=!1;if(J[Ce])Ce=J[Ce],ke=!0;else if("transparent"===Ce)return{r:0,g:0,b:0,a:0,format:"name"};var le=rt.rgb.exec(Ce);return le?{r:le[1],g:le[2],b:le[3]}:(le=rt.rgba.exec(Ce))?{r:le[1],g:le[2],b:le[3],a:le[4]}:(le=rt.hsl.exec(Ce))?{h:le[1],s:le[2],l:le[3]}:(le=rt.hsla.exec(Ce))?{h:le[1],s:le[2],l:le[3],a:le[4]}:(le=rt.hsv.exec(Ce))?{h:le[1],s:le[2],v:le[3]}:(le=rt.hsva.exec(Ce))?{h:le[1],s:le[2],v:le[3],a:le[4]}:(le=rt.hex8.exec(Ce))?{r:fe(le[1]),g:fe(le[2]),b:fe(le[3]),a:me(le[4]),format:ke?"name":"hex8"}:(le=rt.hex6.exec(Ce))?{r:fe(le[1]),g:fe(le[2]),b:fe(le[3]),format:ke?"name":"hex"}:(le=rt.hex4.exec(Ce))?{r:fe(le[1]+le[1]),g:fe(le[2]+le[2]),b:fe(le[3]+le[3]),a:me(le[4]+le[4]),format:ke?"name":"hex8"}:!!(le=rt.hex3.exec(Ce))&&{r:fe(le[1]+le[1]),g:fe(le[2]+le[2]),b:fe(le[3]+le[3]),format:ke?"name":"hex"}}(Ce)),"object"==typeof Ce&&(Ae(Ce.r)&&Ae(Ce.g)&&Ae(Ce.b)?(ke=function k(Ce,ke,le){return{r:255*D(Ce,255),g:255*D(ke,255),b:255*D(le,255)}}(Ce.r,Ce.g,Ce.b),dn=!0,Mn="%"===String(Ce.r).substr(-1)?"prgb":"rgb"):Ae(Ce.h)&&Ae(Ce.s)&&Ae(Ce.v)?(tt=z(Ce.s),Ht=z(Ce.v),ke=function Le(Ce,ke,le){Ce=6*D(Ce,360),ke=D(ke,100),le=D(le,100);var tt=Math.floor(Ce),Ht=Ce-tt,Xt=le*(1-ke),dn=le*(1-Ht*ke),Mn=le*(1-(1-Ht)*ke),jn=tt%6;return{r:255*[le,dn,Xt,Xt,Mn,le][jn],g:255*[Mn,le,le,dn,Xt,Xt][jn],b:255*[Xt,Xt,Mn,le,le,dn][jn]}}(Ce.h,tt,Ht),dn=!0,Mn="hsv"):Ae(Ce.h)&&Ae(Ce.s)&&Ae(Ce.l)&&(tt=z(Ce.s),Xt=z(Ce.l),ke=function ce(Ce,ke,le){var tt,Ht,Xt;if(Ce=D(Ce,360),ke=D(ke,100),le=D(le,100),0===ke)Ht=le,Xt=le,tt=le;else{var dn=le<.5?le*(1+ke):le+ke-le*ke,Mn=2*le-dn;tt=ie(Mn,dn,Ce+1/3),Ht=ie(Mn,dn,Ce),Xt=ie(Mn,dn,Ce-1/3)}return{r:255*tt,g:255*Ht,b:255*Xt}}(Ce.h,tt,Xt),dn=!0,Mn="hsl"),Object.prototype.hasOwnProperty.call(Ce,"a")&&(le=Ce.a)),le=w(le),{ok:dn,format:Ce.format||Mn,r:Math.min(255,Math.max(ke.r,0)),g:Math.min(255,Math.max(ke.g,0)),b:Math.min(255,Math.max(ke.b,0)),a:le}}(ke);this.originalInput=ke,this.r=Ht.r,this.g=Ht.g,this.b=Ht.b,this.a=Ht.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(tt=le.format)&&void 0!==tt?tt:Ht.format,this.gradientType=le.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=Ht.ok}return Ce.prototype.isDark=function(){return this.getBrightness()<128},Ce.prototype.isLight=function(){return!this.isDark()},Ce.prototype.getBrightness=function(){var ke=this.toRgb();return(299*ke.r+587*ke.g+114*ke.b)/1e3},Ce.prototype.getLuminance=function(){var ke=this.toRgb(),Xt=ke.r/255,dn=ke.g/255,Mn=ke.b/255;return.2126*(Xt<=.03928?Xt/12.92:Math.pow((Xt+.055)/1.055,2.4))+.7152*(dn<=.03928?dn/12.92:Math.pow((dn+.055)/1.055,2.4))+.0722*(Mn<=.03928?Mn/12.92:Math.pow((Mn+.055)/1.055,2.4))},Ce.prototype.getAlpha=function(){return this.a},Ce.prototype.setAlpha=function(ke){return this.a=w(ke),this.roundA=Math.round(100*this.a)/100,this},Ce.prototype.toHsv=function(){var ke=ve(this.r,this.g,this.b);return{h:360*ke.h,s:ke.s,v:ke.v,a:this.a}},Ce.prototype.toHsvString=function(){var ke=ve(this.r,this.g,this.b),le=Math.round(360*ke.h),tt=Math.round(100*ke.s),Ht=Math.round(100*ke.v);return 1===this.a?"hsv("+le+", "+tt+"%, "+Ht+"%)":"hsva("+le+", "+tt+"%, "+Ht+"%, "+this.roundA+")"},Ce.prototype.toHsl=function(){var ke=N(this.r,this.g,this.b);return{h:360*ke.h,s:ke.s,l:ke.l,a:this.a}},Ce.prototype.toHslString=function(){var ke=N(this.r,this.g,this.b),le=Math.round(360*ke.h),tt=Math.round(100*ke.s),Ht=Math.round(100*ke.l);return 1===this.a?"hsl("+le+", "+tt+"%, "+Ht+"%)":"hsla("+le+", "+tt+"%, "+Ht+"%, "+this.roundA+")"},Ce.prototype.toHex=function(ke){return void 0===ke&&(ke=!1),Re(this.r,this.g,this.b,ke)},Ce.prototype.toHexString=function(ke){return void 0===ke&&(ke=!1),"#"+this.toHex(ke)},Ce.prototype.toHex8=function(ke){return void 0===ke&&(ke=!1),function ae(Ce,ke,le,tt,Ht){var Xt=[M(Math.round(Ce).toString(16)),M(Math.round(ke).toString(16)),M(Math.round(le).toString(16)),M(He(tt))];return Ht&&Xt[0].startsWith(Xt[0].charAt(1))&&Xt[1].startsWith(Xt[1].charAt(1))&&Xt[2].startsWith(Xt[2].charAt(1))&&Xt[3].startsWith(Xt[3].charAt(1))?Xt[0].charAt(0)+Xt[1].charAt(0)+Xt[2].charAt(0)+Xt[3].charAt(0):Xt.join("")}(this.r,this.g,this.b,this.a,ke)},Ce.prototype.toHex8String=function(ke){return void 0===ke&&(ke=!1),"#"+this.toHex8(ke)},Ce.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},Ce.prototype.toRgbString=function(){var ke=Math.round(this.r),le=Math.round(this.g),tt=Math.round(this.b);return 1===this.a?"rgb("+ke+", "+le+", "+tt+")":"rgba("+ke+", "+le+", "+tt+", "+this.roundA+")"},Ce.prototype.toPercentageRgb=function(){var ke=function(le){return Math.round(100*D(le,255))+"%"};return{r:ke(this.r),g:ke(this.g),b:ke(this.b),a:this.a}},Ce.prototype.toPercentageRgbString=function(){var ke=function(le){return Math.round(100*D(le,255))};return 1===this.a?"rgb("+ke(this.r)+"%, "+ke(this.g)+"%, "+ke(this.b)+"%)":"rgba("+ke(this.r)+"%, "+ke(this.g)+"%, "+ke(this.b)+"%, "+this.roundA+")"},Ce.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var ke="#"+Re(this.r,this.g,this.b,!1),le=0,tt=Object.entries(J);le=0&&(ke.startsWith("hex")||"name"===ke)?"name"===ke&&0===this.a?this.toName():this.toRgbString():("rgb"===ke&&(tt=this.toRgbString()),"prgb"===ke&&(tt=this.toPercentageRgbString()),("hex"===ke||"hex6"===ke)&&(tt=this.toHexString()),"hex3"===ke&&(tt=this.toHexString(!0)),"hex4"===ke&&(tt=this.toHex8String(!0)),"hex8"===ke&&(tt=this.toHex8String()),"name"===ke&&(tt=this.toName()),"hsl"===ke&&(tt=this.toHslString()),"hsv"===ke&&(tt=this.toHsvString()),tt||this.toHexString())},Ce.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},Ce.prototype.clone=function(){return new Ce(this.toString())},Ce.prototype.lighten=function(ke){void 0===ke&&(ke=10);var le=this.toHsl();return le.l+=ke/100,le.l=C(le.l),new Ce(le)},Ce.prototype.brighten=function(ke){void 0===ke&&(ke=10);var le=this.toRgb();return le.r=Math.max(0,Math.min(255,le.r-Math.round(-ke/100*255))),le.g=Math.max(0,Math.min(255,le.g-Math.round(-ke/100*255))),le.b=Math.max(0,Math.min(255,le.b-Math.round(-ke/100*255))),new Ce(le)},Ce.prototype.darken=function(ke){void 0===ke&&(ke=10);var le=this.toHsl();return le.l-=ke/100,le.l=C(le.l),new Ce(le)},Ce.prototype.tint=function(ke){return void 0===ke&&(ke=10),this.mix("white",ke)},Ce.prototype.shade=function(ke){return void 0===ke&&(ke=10),this.mix("black",ke)},Ce.prototype.desaturate=function(ke){void 0===ke&&(ke=10);var le=this.toHsl();return le.s-=ke/100,le.s=C(le.s),new Ce(le)},Ce.prototype.saturate=function(ke){void 0===ke&&(ke=10);var le=this.toHsl();return le.s+=ke/100,le.s=C(le.s),new Ce(le)},Ce.prototype.greyscale=function(){return this.desaturate(100)},Ce.prototype.spin=function(ke){var le=this.toHsl(),tt=(le.h+ke)%360;return le.h=tt<0?360+tt:tt,new Ce(le)},Ce.prototype.mix=function(ke,le){void 0===le&&(le=50);var tt=this.toRgb(),Ht=new Ce(ke).toRgb(),Xt=le/100;return new Ce({r:(Ht.r-tt.r)*Xt+tt.r,g:(Ht.g-tt.g)*Xt+tt.g,b:(Ht.b-tt.b)*Xt+tt.b,a:(Ht.a-tt.a)*Xt+tt.a})},Ce.prototype.analogous=function(ke,le){void 0===ke&&(ke=6),void 0===le&&(le=30);var tt=this.toHsl(),Ht=360/le,Xt=[this];for(tt.h=(tt.h-(Ht*ke>>1)+720)%360;--ke;)tt.h=(tt.h+Ht)%360,Xt.push(new Ce(tt));return Xt},Ce.prototype.complement=function(){var ke=this.toHsl();return ke.h=(ke.h+180)%360,new Ce(ke)},Ce.prototype.monochromatic=function(ke){void 0===ke&&(ke=6);for(var le=this.toHsv(),tt=le.h,Ht=le.s,Xt=le.v,dn=[],Mn=1/ke;ke--;)dn.push(new Ce({h:tt,s:Ht,v:Xt})),Xt=(Xt+Mn)%1;return dn},Ce.prototype.splitcomplement=function(){var ke=this.toHsl(),le=ke.h;return[this,new Ce({h:(le+72)%360,s:ke.s,l:ke.l}),new Ce({h:(le+216)%360,s:ke.s,l:ke.l})]},Ce.prototype.onBackground=function(ke){var le=this.toRgb(),tt=new Ce(ke).toRgb();return new Ce({r:tt.r+(le.r-tt.r)*le.a,g:tt.g+(le.g-tt.g)*le.a,b:tt.b+(le.b-tt.b)*le.a})},Ce.prototype.triad=function(){return this.polyad(3)},Ce.prototype.tetrad=function(){return this.polyad(4)},Ce.prototype.polyad=function(ke){for(var le=this.toHsl(),tt=le.h,Ht=[this],Xt=360/ke,dn=1;dn=60&&Math.round(Ce.h)<=240?le?Math.round(Ce.h)-2*ke:Math.round(Ce.h)+2*ke:le?Math.round(Ce.h)+2*ke:Math.round(Ce.h)-2*ke)<0?tt+=360:tt>=360&&(tt-=360),tt}function Et(Ce,ke,le){return 0===Ce.h&&0===Ce.s?Ce.s:((tt=le?Ce.s-.16*ke:4===ke?Ce.s+.16:Ce.s+.05*ke)>1&&(tt=1),le&&5===ke&&tt>.1&&(tt=.1),tt<.06&&(tt=.06),Number(tt.toFixed(2)));var tt}function ot(Ce,ke,le){var tt;return(tt=le?Ce.v+.05*ke:Ce.v-.15*ke)>1&&(tt=1),Number(tt.toFixed(2))}function en(Ce){for(var ke=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},le=[],tt=new mt(Ce),Ht=5;Ht>0;Ht-=1){var Xt=tt.toHsv(),dn=new mt({h:pt(Xt,Ht,!0),s:Et(Xt,Ht,!0),v:ot(Xt,Ht,!0)}).toHexString();le.push(dn)}le.push(tt.toHexString());for(var Mn=1;Mn<=4;Mn+=1){var jn=tt.toHsv(),Ci=new mt({h:pt(jn,Mn),s:Et(jn,Mn),v:ot(jn,Mn)}).toHexString();le.push(Ci)}return"dark"===ke.theme?Pt.map(function(ii){var si=ii.index,pi=ii.opacity;return new mt(ke.backgroundColor||"#141414").mix(le[si],100*pi).toHexString()}):le}var Ne={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ve={},ye={};Object.keys(Ne).forEach(function(Ce){Ve[Ce]=en(Ne[Ce]),Ve[Ce].primary=Ve[Ce][5],ye[Ce]=en(Ne[Ce],{theme:"dark",backgroundColor:"#141414"}),ye[Ce].primary=ye[Ce][5]});var Bt=c(520),vn=c(1086),cn=c(2916),an=c(4850),nn=c(2868),Gn=c(537),xn=c(7221),yn=c(2474),_n=c(2198),un=c(2986),Dt=c(2313);const it="[@ant-design/icons-angular]:";function St(Ce){(0,o.X6Q)()&&console.warn(`${it} ${Ce}.`)}function xe(Ce){return en(Ce)[0]}function xt(Ce,ke){switch(ke){case"fill":return`${Ce}-fill`;case"outline":return`${Ce}-o`;case"twotone":return`${Ce}-twotone`;case void 0:return Ce;default:throw new Error(`${it}Theme "${ke}" is not a recognized theme!`)}}function V(Ce){return"object"==typeof Ce&&"string"==typeof Ce.name&&("string"==typeof Ce.theme||void 0===Ce.theme)&&"string"==typeof Ce.icon}function ft(Ce){const ke=Ce.split(":");switch(ke.length){case 1:return[Ce,""];case 2:return[ke[1],ke[0]];default:throw new Error(`${it}The icon type ${Ce} is not valid!`)}}function y(){return new Error(`${it} tag not found.`)}let et=(()=>{class Ce{constructor(le,tt,Ht,Xt){this._rendererFactory=le,this._handler=tt,this._document=Ht,this.sanitizer=Xt,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new K.xQ,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new Bt.eN(this._handler))}set twoToneColor({primaryColor:le,secondaryColor:tt}){this._twoToneColorPalette.primaryColor=le,this._twoToneColorPalette.secondaryColor=tt||xe(le)}get twoToneColor(){return Object.assign({},this._twoToneColorPalette)}useJsonpLoading(){this._enableJsonpLoading?St("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=le=>{this._jsonpIconLoad$.next(le)})}changeAssetsSource(le){this._assetsUrlRoot=le.endsWith("/")?le:le+"/"}addIcon(...le){le.forEach(tt=>{this._svgDefinitions.set(xt(tt.name,tt.theme),tt)})}addIconLiteral(le,tt){const[Ht,Xt]=ft(le);if(!Xt)throw function te(){return new Error(`${it}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:le,icon:tt})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(le,tt){const Ht=V(le)?le:this._svgDefinitions.get(le)||null;return(Ht?(0,vn.of)(Ht):this._loadIconDynamically(le)).pipe((0,an.U)(dn=>{if(!dn)throw function T(Ce){return new Error(`${it}the icon ${Ce} does not exist or is not registered.`)}(le);return this._loadSVGFromCacheOrCreateNew(dn,tt)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(le){if(!this._http&&!this._enableJsonpLoading)return(0,vn.of)(function p(){return function Ge(Ce){console.error(`${it} ${Ce}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let tt=this._inProgressFetches.get(le);if(!tt){const[Ht,Xt]=ft(le),dn=Xt?{name:le,icon:""}:function Z(Ce){const ke=Ce.split("-"),le=function de(Ce){return"o"===Ce?"outline":Ce}(ke.splice(ke.length-1,1)[0]);return{name:ke.join("-"),theme:le,icon:""}}(Ht),jn=(Xt?`${this._assetsUrlRoot}assets/${Xt}/${Ht}`:`${this._assetsUrlRoot}assets/${dn.theme}/${dn.name}`)+(this._enableJsonpLoading?".js":".svg"),Ci=this.sanitizer.sanitize(o.q3G.URL,jn);if(!Ci)throw function h(Ce){return new Error(`${it}The url "${Ce}" is unsafe.`)}(jn);tt=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(dn,Ci):this._http.get(Ci,{responseType:"text"}).pipe((0,an.U)(si=>Object.assign(Object.assign({},dn),{icon:si})))).pipe((0,nn.b)(si=>this.addIcon(si)),(0,Gn.x)(()=>this._inProgressFetches.delete(le)),(0,xn.K)(()=>(0,vn.of)(null)),(0,yn.B)()),this._inProgressFetches.set(le,tt)}return tt}_loadIconDynamicallyWithJsonp(le,tt){return new cn.y(Ht=>{const Xt=this._document.createElement("script"),dn=setTimeout(()=>{Mn(),Ht.error(function R(){return new Error(`${it}Importing timeout error.`)}())},6e3);function Mn(){Xt.parentNode.removeChild(Xt),clearTimeout(dn)}Xt.src=tt,this._document.body.appendChild(Xt),this._jsonpIconLoad$.pipe((0,_n.h)(jn=>jn.name===le.name&&jn.theme===le.theme),(0,un.q)(1)).subscribe(jn=>{Ht.next(jn),Mn()})})}_loadSVGFromCacheOrCreateNew(le,tt){let Ht;const Xt=tt||this._twoToneColorPalette.primaryColor,dn=xe(Xt)||this._twoToneColorPalette.secondaryColor,Mn="twotone"===le.theme?function ge(Ce,ke,le,tt){return`${xt(Ce,ke)}-${le}-${tt}`}(le.name,le.theme,Xt,dn):void 0===le.theme?le.name:xt(le.name,le.theme),jn=this._svgRenderedDefinitions.get(Mn);return jn?Ht=jn.icon:(Ht=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function Jt(Ce){return""!==ft(Ce)[1]}(le.name)?le.icon:function De(Ce){return Ce.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(le.icon)),"twotone"===le.theme,Xt,dn)),this._svgRenderedDefinitions.set(Mn,Object.assign(Object.assign({},le),{icon:Ht}))),function oe(Ce){return Ce.cloneNode(!0)}(Ht)}_createSVGElementFromString(le){const tt=this._document.createElement("div");tt.innerHTML=le;const Ht=tt.querySelector("svg");if(!Ht)throw y;return Ht}_setSVGAttribute(le){return this._renderer.setAttribute(le,"width","1em"),this._renderer.setAttribute(le,"height","1em"),le}_colorizeSVGIcon(le,tt,Ht,Xt){if(tt){const dn=le.childNodes,Mn=dn.length;for(let jn=0;jn{class Ce{constructor(le,tt,Ht){this._iconService=le,this._elementRef=tt,this._renderer=Ht}ngOnChanges(le){(le.type||le.theme||le.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(le=>{if(this.type){const tt=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(Ht=>{!function gt(Ce,ke){return Ce.type===ke.type&&Ce.theme===ke.theme&&Ce.twoToneColor===ke.twoToneColor}(tt,this._getSelfRenderMeta())?le(null):(this._setSVGElement(Ht),le(Ht))})}else this._clearSVGElement(),le(null)})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(le,tt){if(V(le))return le;{const[Ht,Xt]=ft(le);return Xt?le:function ut(Ce){return Ce.endsWith("-fill")||Ce.endsWith("-o")||Ce.endsWith("-twotone")}(Ht)?(tt&&St(`'type' ${Ht} already gets a theme inside so 'theme' ${tt} would be ignored`),Ht):xt(Ht,tt||this._iconService.defaultTheme)}}_setSVGElement(le){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,le)}_clearSVGElement(){var le;const tt=this._elementRef.nativeElement,Ht=tt.childNodes;for(let dn=Ht.length-1;dn>=0;dn--){const Mn=Ht[dn];"svg"===(null===(le=Mn.tagName)||void 0===le?void 0:le.toLowerCase())&&this._renderer.removeChild(tt,Mn)}}}return Ce.\u0275fac=function(le){return new(le||Ce)(o.Y36(et),o.Y36(o.SBq),o.Y36(o.Qsj))},Ce.\u0275dir=o.lG2({type:Ce,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[o.TTD]}),Ce})();var qt=c(1721),on=c(948),Vt=c(9193),bn=c(9439);const mn=[Vt.V65,Vt.ud1,Vt.bBn,Vt.BOg,Vt.Hkd,Vt.XuQ,Vt.Rfq,Vt.yQU,Vt.U2Q,Vt.UKj,Vt.OYp,Vt.BXH,Vt.eLU,Vt.x0x,Vt.VWu,Vt.rMt,Vt.vEg,Vt.RIp,Vt.RU0,Vt.M8e,Vt.ssy,Vt.Z5F,Vt.iUK,Vt.LJh,Vt.NFG,Vt.UTl,Vt.nrZ,Vt.gvV,Vt.d2H,Vt.eFY,Vt.sZJ,Vt.np6,Vt.w1L,Vt.UY$,Vt.v6v,Vt.rHg,Vt.v6v,Vt.s_U,Vt.TSL,Vt.FsU,Vt.cN2,Vt.uIz,Vt.d_$],fn=new o.OlP("nz_icons"),rn=(new o.OlP("nz_icon_default_twotone_color"),"#1890ff");let Nn=(()=>{class Ce extends et{constructor(le,tt,Ht,Xt,dn,Mn){super(le,Xt,dn,tt),this.nzConfigService=Ht,this.configUpdated$=new K.xQ,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.addIcon(...mn,...Mn||[]),this.configDefaultTwotoneColor(),this.configDefaultTheme()}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(le){le.getAttribute("viewBox")||this._renderer.setAttribute(le,"viewBox","0 0 1024 1024"),(!le.getAttribute("width")||!le.getAttribute("height"))&&(this._renderer.setAttribute(le,"width","1em"),this._renderer.setAttribute(le,"height","1em")),le.getAttribute("fill")||this._renderer.setAttribute(le,"fill","currentColor")}fetchFromIconfont(le){const{scriptUrl:tt}=le;if(this._document&&!this.iconfontCache.has(tt)){const Ht=this._renderer.createElement("script");this._renderer.setAttribute(Ht,"src",tt),this._renderer.setAttribute(Ht,"data-namespace",tt.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,Ht),this.iconfontCache.add(tt)}}createIconfontIcon(le){return this._createSVGElementFromString(``)}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const le=this.getConfig();this.defaultTheme=le.nzTheme||"outline"}configDefaultTwotoneColor(){const tt=this.getConfig().nzTwotoneColor||rn;let Ht=rn;tt&&(tt.startsWith("#")?Ht=tt:(0,on.ZK)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:Ht}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return Ce.\u0275fac=function(le){return new(le||Ce)(o.LFG(o.FYo),o.LFG(Dt.H7),o.LFG(bn.jY),o.LFG(Bt.jN,8),o.LFG(b.K0,8),o.LFG(fn,8))},Ce.\u0275prov=o.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();const Qn=new o.OlP("nz_icons_patch");let ti=(()=>{class Ce{constructor(le,tt){this.extraIcons=le,this.rootIconService=tt,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(le=>this.rootIconService.addIcon(le)),this.patched=!0)}}return Ce.\u0275fac=function(le){return new(le||Ce)(o.LFG(Qn,2),o.LFG(Nn))},Ce.\u0275prov=o.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Jn=(()=>{class Ce extends Qe{constructor(le,tt,Ht,Xt,dn,Mn){super(Xt,Ht,dn),this.ngZone=le,this.changeDetectorRef=tt,this.iconService=Xt,this.renderer=dn,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new K.xQ,Mn&&Mn.doPatch(),this.el=Ht.nativeElement}set nzSpin(le){this.spin=le}set nzType(le){this.type=le}set nzTheme(le){this.theme=le}set nzTwotoneColor(le){this.twoToneColor=le}set nzIconfont(le){this.iconfont=le}ngOnChanges(le){const{nzType:tt,nzTwotoneColor:Ht,nzSpin:Xt,nzTheme:dn,nzRotate:Mn}=le;tt||Ht||Xt||dn?this.changeIcon2():Mn?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`))}ngOnInit(){this.renderer.setAttribute(this.el,"class",`anticon ${this.el.className}`.trim())}ngAfterContentChecked(){if(!this.type){const le=this.el.children;let tt=le.length;if(!this.type&&le.length)for(;tt--;){const Ht=le[tt];"svg"===Ht.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(Ht)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,m.D)(this._changeIcon()).pipe((0,A.R)(this.destroy$)).subscribe(le=>{this.changeDetectorRef.detectChanges(),le&&(this.setSVGData(le),this.handleSpin(le),this.handleRotate(le))})})}handleSpin(le){this.spin||"loading"===this.type?this.renderer.addClass(le,"anticon-spin"):this.renderer.removeClass(le,"anticon-spin")}handleRotate(le){this.nzRotate?this.renderer.setAttribute(le,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(le,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(le){this.renderer.setAttribute(le,"data-icon",this.type),this.renderer.setAttribute(le,"aria-hidden","true")}}return Ce.\u0275fac=function(le){return new(le||Ce)(o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(o.SBq),o.Y36(Nn),o.Y36(o.Qsj),o.Y36(ti,8))},Ce.\u0275dir=o.lG2({type:Ce,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(le,tt){2&le&&o.ekj("anticon",!0)},inputs:{nzSpin:"nzSpin",nzRotate:"nzRotate",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[o.qOj,o.TTD]}),(0,l.gn)([(0,qt.yF)()],Ce.prototype,"nzSpin",null),Ce})(),qn=(()=>{class Ce{static forRoot(le){return{ngModule:Ce,providers:[{provide:fn,useValue:le}]}}static forChild(le){return{ngModule:Ce,providers:[ti,{provide:Qn,useValue:le}]}}}return Ce.\u0275fac=function(le){return new(le||Ce)},Ce.\u0275mod=o.oAB({type:Ce}),Ce.\u0275inj=o.cJS({imports:[[r.ud]]}),Ce})()},656:(Ft,Oe,c)=>{c.d(Oe,{_:()=>M,Z:()=>k});var r=c(655),o=c(1159),l=c(5e3),K=c(4182),m=c(8929),A=c(3753),b=c(7625),D=c(1721),C=c(5664),E=c(226),S=c(647),w=c(9808);const z=["inputElement"];let M=(()=>{class N{constructor(ce,ve,Le,Re,ae){this.ngZone=ce,this.elementRef=ve,this.cdr=Le,this.focusMonitor=Re,this.directionality=ae,this.destroy$=new m.xQ,this.isFocused=!1,this.disabledUp=!1,this.disabledDown=!1,this.dir="ltr",this.onChange=()=>{},this.onTouched=()=>{},this.nzBlur=new l.vpe,this.nzFocus=new l.vpe,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=Ue=>Ue.trim().replace(/\u3002/g,".").replace(/[^\w\.-]+/g,""),this.nzPrecisionMode="toFixed",this.nzPlaceHolder="",this.nzStep=1,this.nzInputMode="decimal",this.nzId=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzFormatter=Ue=>Ue}onModelChange(ce){this.parsedValue=this.nzParser(ce),this.inputElement.nativeElement.value=`${this.parsedValue}`;const ve=this.getCurrentValidValue(this.parsedValue);this.setValue(ve)}getCurrentValidValue(ce){let ve=ce;return ve=""===ve?"":this.isNotCompleteNumber(ve)?this.value:`${this.getValidValue(ve)}`,this.toNumber(ve)}isNotCompleteNumber(ce){return isNaN(ce)||""===ce||null===ce||!(!ce||ce.toString().indexOf(".")!==ce.toString().length-1)}getValidValue(ce){let ve=parseFloat(ce);return isNaN(ve)?ce:(vethis.nzMax&&(ve=this.nzMax),ve)}toNumber(ce){if(this.isNotCompleteNumber(ce))return ce;const ve=String(ce);if(ve.indexOf(".")>=0&&(0,D.DX)(this.nzPrecision)){if("function"==typeof this.nzPrecisionMode)return this.nzPrecisionMode(ce,this.nzPrecision);if("cut"===this.nzPrecisionMode){const Le=ve.split(".");return Le[1]=Le[1].slice(0,this.nzPrecision),Number(Le.join("."))}return Number(Number(ce).toFixed(this.nzPrecision))}return Number(ce)}getRatio(ce){let ve=1;return ce.metaKey||ce.ctrlKey?ve=.1:ce.shiftKey&&(ve=10),ve}down(ce,ve){this.isFocused||this.focus(),this.step("down",ce,ve)}up(ce,ve){this.isFocused||this.focus(),this.step("up",ce,ve)}getPrecision(ce){const ve=ce.toString();if(ve.indexOf("e-")>=0)return parseInt(ve.slice(ve.indexOf("e-")+2),10);let Le=0;return ve.indexOf(".")>=0&&(Le=ve.length-ve.indexOf(".")-1),Le}getMaxPrecision(ce,ve){if((0,D.DX)(this.nzPrecision))return this.nzPrecision;const Le=this.getPrecision(ve),Re=this.getPrecision(this.nzStep),ae=this.getPrecision(ce);return ce?Math.max(ae,Le+Re):Le+Re}getPrecisionFactor(ce,ve){const Le=this.getMaxPrecision(ce,ve);return Math.pow(10,Le)}upStep(ce,ve){const Le=this.getPrecisionFactor(ce,ve),Re=Math.abs(this.getMaxPrecision(ce,ve));let ae;return ae="number"==typeof ce?((Le*ce+Le*this.nzStep*ve)/Le).toFixed(Re):this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(ae)}downStep(ce,ve){const Le=this.getPrecisionFactor(ce,ve),Re=Math.abs(this.getMaxPrecision(ce,ve));let ae;return ae="number"==typeof ce?((Le*ce-Le*this.nzStep*ve)/Le).toFixed(Re):this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(ae)}step(ce,ve,Le=1){if(this.stop(),ve.preventDefault(),this.nzDisabled)return;const Re=this.getCurrentValidValue(this.parsedValue)||0;let ae=0;"up"===ce?ae=this.upStep(Re,Le):"down"===ce&&(ae=this.downStep(Re,Le));const Ue=ae>this.nzMax||aethis.nzMax?ae=this.nzMax:ae{this[ce](ve,Le)},300))}stop(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)}setValue(ce){if(`${this.value}`!=`${ce}`&&this.onChange(ce),this.value=ce,this.parsedValue=ce,this.disabledUp=this.disabledDown=!1,ce||0===ce){const ve=Number(ce);ve>=this.nzMax&&(this.disabledUp=!0),ve<=this.nzMin&&(this.disabledDown=!0)}}updateDisplayValue(ce){const ve=(0,D.DX)(this.nzFormatter(ce))?this.nzFormatter(ce):"";this.displayValue=ve,this.inputElement.nativeElement.value=`${ve}`}writeValue(ce){this.value=ce,this.setValue(ce),this.updateDisplayValue(ce),this.cdr.markForCheck()}registerOnChange(ce){this.onChange=ce}registerOnTouched(ce){this.onTouched=ce}setDisabledState(ce){this.nzDisabled=ce,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(ce=>{ce?(this.isFocused=!0,this.nzFocus.emit()):(this.isFocused=!1,this.updateDisplayValue(this.value),this.nzBlur.emit(),Promise.resolve().then(()=>this.onTouched()))}),this.dir=this.directionality.value,this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(ce=>{this.dir=ce}),this.ngZone.runOutsideAngular(()=>{(0,A.R)(this.inputElement.nativeElement,"keyup").pipe((0,b.R)(this.destroy$)).subscribe(()=>this.stop()),(0,A.R)(this.inputElement.nativeElement,"keydown").pipe((0,b.R)(this.destroy$)).subscribe(ce=>{const{keyCode:ve}=ce;ve!==o.LH&&ve!==o.JH&&ve!==o.K5||this.ngZone.run(()=>{if(ve===o.LH){const Le=this.getRatio(ce);this.up(ce,Le),this.stop()}else if(ve===o.JH){const Le=this.getRatio(ce);this.down(ce,Le),this.stop()}else this.updateDisplayValue(this.value);this.cdr.markForCheck()})})})}ngOnChanges(ce){if(ce.nzFormatter&&!ce.nzFormatter.isFirstChange()){const ve=this.getCurrentValidValue(this.parsedValue);this.setValue(ve),this.updateDisplayValue(ve)}}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}}return N.\u0275fac=function(ce){return new(ce||N)(l.Y36(l.R0b),l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(C.tE),l.Y36(E.Is,8))},N.\u0275cmp=l.Xpm({type:N,selectors:[["nz-input-number"]],viewQuery:function(ce,ve){if(1&ce&&l.Gf(z,7),2&ce){let Le;l.iGM(Le=l.CRH())&&(ve.inputElement=Le.first)}},hostAttrs:[1,"ant-input-number"],hostVars:10,hostBindings:function(ce,ve){2&ce&&l.ekj("ant-input-number-focused",ve.isFocused)("ant-input-number-lg","large"===ve.nzSize)("ant-input-number-sm","small"===ve.nzSize)("ant-input-number-disabled",ve.nzDisabled)("ant-input-number-rtl","rtl"===ve.dir)},inputs:{nzSize:"nzSize",nzMin:"nzMin",nzMax:"nzMax",nzParser:"nzParser",nzPrecision:"nzPrecision",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStep:"nzStep",nzInputMode:"nzInputMode",nzId:"nzId",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzFormatter:"nzFormatter"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],features:[l._Bn([{provide:K.JU,useExisting:(0,l.Gpc)(()=>N),multi:!0}]),l.TTD],decls:8,vars:13,consts:[[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown","mouseup","mouseleave"],["nz-icon","","nzType","up",1,"ant-input-number-handler-up-inner"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-down",3,"mousedown","mouseup","mouseleave"],["nz-icon","","nzType","down",1,"ant-input-number-handler-down-inner"],[1,"ant-input-number-input-wrap"],["autocomplete","off",1,"ant-input-number-input",3,"disabled","placeholder","ngModel","ngModelChange"],["inputElement",""]],template:function(ce,ve){1&ce&&(l.TgZ(0,"div",0),l.TgZ(1,"span",1),l.NdJ("mousedown",function(Re){return ve.up(Re)})("mouseup",function(){return ve.stop()})("mouseleave",function(){return ve.stop()}),l._UZ(2,"i",2),l.qZA(),l.TgZ(3,"span",3),l.NdJ("mousedown",function(Re){return ve.down(Re)})("mouseup",function(){return ve.stop()})("mouseleave",function(){return ve.stop()}),l._UZ(4,"i",4),l.qZA(),l.qZA(),l.TgZ(5,"div",5),l.TgZ(6,"input",6,7),l.NdJ("ngModelChange",function(Re){return ve.onModelChange(Re)}),l.qZA(),l.qZA()),2&ce&&(l.xp6(1),l.ekj("ant-input-number-handler-up-disabled",ve.disabledUp),l.xp6(2),l.ekj("ant-input-number-handler-down-disabled",ve.disabledDown),l.xp6(3),l.Q6J("disabled",ve.nzDisabled)("placeholder",ve.nzPlaceHolder)("ngModel",ve.displayValue),l.uIk("id",ve.nzId)("autofocus",ve.nzAutoFocus?"autofocus":null)("min",ve.nzMin)("max",ve.nzMax)("step",ve.nzStep)("inputmode",ve.nzInputMode))},directives:[S.Ls,K.Fj,K.JJ,K.On],encapsulation:2,changeDetection:0}),(0,r.gn)([(0,D.yF)()],N.prototype,"nzDisabled",void 0),(0,r.gn)([(0,D.yF)()],N.prototype,"nzAutoFocus",void 0),N})(),k=(()=>{class N{}return N.\u0275fac=function(ce){return new(ce||N)},N.\u0275mod=l.oAB({type:N}),N.\u0275inj=l.cJS({imports:[[E.vT,w.ez,K.u5,S.PV]]}),N})()},1047:(Ft,Oe,c)=>{c.d(Oe,{rh:()=>lt,Zp:()=>kt,gB:()=>Xe,ke:()=>It,o7:()=>Lt});var r=c(655),o=c(5e3),l=c(8929),K=c(6787),m=c(2198),A=c(7625),b=c(1059),D=c(7545),C=c(1709),E=c(4850),S=c(1721),w=c(4182),z=c(226),M=c(5664),k=c(9808),N=c(647),ie=c(969),ce=c(925),ve=c(4090);const Le=["nz-input-group-slot",""];function Re(Ie,Pt){if(1&Ie&&o._UZ(0,"i",2),2&Ie){const pt=o.oxw();o.Q6J("nzType",pt.icon)}}function ae(Ie,Pt){if(1&Ie&&(o.ynx(0),o._uU(1),o.BQk()),2&Ie){const pt=o.oxw();o.xp6(1),o.Oqu(pt.template)}}function Ue(Ie,Pt){if(1&Ie&&o._UZ(0,"span",7),2&Ie){const pt=o.oxw(2);o.Q6J("icon",pt.nzAddOnBeforeIcon)("template",pt.nzAddOnBefore)}}function He(Ie,Pt){}function me(Ie,Pt){if(1&Ie&&(o.TgZ(0,"span",8),o.YNc(1,He,0,0,"ng-template",9),o.qZA()),2&Ie){const pt=o.oxw(2),Et=o.MAs(4);o.ekj("ant-input-affix-wrapper-sm",pt.isSmall)("ant-input-affix-wrapper-lg",pt.isLarge),o.xp6(1),o.Q6J("ngTemplateOutlet",Et)}}function fe(Ie,Pt){if(1&Ie&&o._UZ(0,"span",7),2&Ie){const pt=o.oxw(2);o.Q6J("icon",pt.nzAddOnAfterIcon)("template",pt.nzAddOnAfter)}}function U(Ie,Pt){if(1&Ie&&(o.TgZ(0,"span",4),o.YNc(1,Ue,1,2,"span",5),o.YNc(2,me,2,5,"span",6),o.YNc(3,fe,1,2,"span",5),o.qZA()),2&Ie){const pt=o.oxw(),Et=o.MAs(6);o.xp6(1),o.Q6J("ngIf",pt.nzAddOnBefore||pt.nzAddOnBeforeIcon),o.xp6(1),o.Q6J("ngIf",pt.isAffix)("ngIfElse",Et),o.xp6(1),o.Q6J("ngIf",pt.nzAddOnAfter||pt.nzAddOnAfterIcon)}}function J(Ie,Pt){}function Me(Ie,Pt){if(1&Ie&&o.YNc(0,J,0,0,"ng-template",9),2&Ie){o.oxw(2);const pt=o.MAs(4);o.Q6J("ngTemplateOutlet",pt)}}function se(Ie,Pt){if(1&Ie&&o.YNc(0,Me,1,1,"ng-template",10),2&Ie){const pt=o.oxw(),Et=o.MAs(6);o.Q6J("ngIf",pt.isAffix)("ngIfElse",Et)}}function we(Ie,Pt){if(1&Ie&&o._UZ(0,"span",13),2&Ie){const pt=o.oxw(2);o.Q6J("icon",pt.nzPrefixIcon)("template",pt.nzPrefix)}}function ue(Ie,Pt){}function Ye(Ie,Pt){if(1&Ie&&o._UZ(0,"span",14),2&Ie){const pt=o.oxw(2);o.Q6J("icon",pt.nzSuffixIcon)("template",pt.nzSuffix)}}function We(Ie,Pt){if(1&Ie&&(o.YNc(0,we,1,2,"span",11),o.YNc(1,ue,0,0,"ng-template",9),o.YNc(2,Ye,1,2,"span",12)),2&Ie){const pt=o.oxw(),Et=o.MAs(6);o.Q6J("ngIf",pt.nzPrefix||pt.nzPrefixIcon),o.xp6(1),o.Q6J("ngTemplateOutlet",Et),o.xp6(1),o.Q6J("ngIf",pt.nzSuffix||pt.nzSuffixIcon)}}function rt(Ie,Pt){1&Ie&&o.Hsn(0)}const wt=["*"];let kt=(()=>{class Ie{constructor(pt,Et,ot,en){this.ngControl=pt,this.directionality=en,this.nzBorderless=!1,this.nzSize="default",this._disabled=!1,this.disabled$=new l.xQ,this.dir="ltr",this.destroy$=new l.xQ,Et.addClass(ot.nativeElement,"ant-input")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(pt){this._disabled=null!=pt&&"false"!=`${pt}`}ngOnInit(){var pt,Et;this.ngControl&&(null===(pt=this.ngControl.statusChanges)||void 0===pt||pt.pipe((0,m.h)(()=>null!==this.ngControl.disabled),(0,A.R)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)})),this.dir=this.directionality.value,null===(Et=this.directionality.change)||void 0===Et||Et.pipe((0,A.R)(this.destroy$)).subscribe(ot=>{this.dir=ot})}ngOnChanges(pt){const{disabled:Et}=pt;Et&&this.disabled$.next(this.disabled)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Ie.\u0275fac=function(pt){return new(pt||Ie)(o.Y36(w.a5,10),o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(z.Is,8))},Ie.\u0275dir=o.lG2({type:Ie,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostVars:11,hostBindings:function(pt,Et){2&pt&&(o.uIk("disabled",Et.disabled||null),o.ekj("ant-input-disabled",Et.disabled)("ant-input-borderless",Et.nzBorderless)("ant-input-lg","large"===Et.nzSize)("ant-input-sm","small"===Et.nzSize)("ant-input-rtl","rtl"===Et.dir))},inputs:{nzBorderless:"nzBorderless",nzSize:"nzSize",disabled:"disabled"},exportAs:["nzInput"],features:[o.TTD]}),(0,r.gn)([(0,S.yF)()],Ie.prototype,"nzBorderless",void 0),Ie})(),Ct=(()=>{class Ie{constructor(){this.icon=null,this.type=null,this.template=null}}return Ie.\u0275fac=function(pt){return new(pt||Ie)},Ie.\u0275cmp=o.Xpm({type:Ie,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(pt,Et){2&pt&&o.ekj("ant-input-group-addon","addon"===Et.type)("ant-input-prefix","prefix"===Et.type)("ant-input-suffix","suffix"===Et.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:Le,decls:2,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(pt,Et){1&pt&&(o.YNc(0,Re,1,1,"i",0),o.YNc(1,ae,2,1,"ng-container",1)),2&pt&&(o.Q6J("ngIf",Et.icon),o.xp6(1),o.Q6J("nzStringTemplateOutlet",Et.template))},directives:[k.O5,N.Ls,ie.f],encapsulation:2,changeDetection:0}),Ie})(),It=(()=>{class Ie{constructor(pt){this.elementRef=pt}}return Ie.\u0275fac=function(pt){return new(pt||Ie)(o.Y36(o.SBq))},Ie.\u0275dir=o.lG2({type:Ie,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]]}),Ie})(),Xe=(()=>{class Ie{constructor(pt,Et,ot,en){this.focusMonitor=pt,this.elementRef=Et,this.cdr=ot,this.directionality=en,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.destroy$=new l.xQ}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(pt=>pt.nzSize=this.nzSize)}ngOnInit(){var pt;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,A.R)(this.destroy$)).subscribe(Et=>{this.focused=!!Et,this.cdr.markForCheck()}),this.dir=this.directionality.value,null===(pt=this.directionality.change)||void 0===pt||pt.pipe((0,A.R)(this.destroy$)).subscribe(Et=>{this.dir=Et})}ngAfterContentInit(){this.updateChildrenInputSize();const pt=this.listOfNzInputDirective.changes.pipe((0,b.O)(this.listOfNzInputDirective));pt.pipe((0,D.w)(Et=>(0,K.T)(pt,...Et.map(ot=>ot.disabled$))),(0,C.zg)(()=>pt),(0,E.U)(Et=>Et.some(ot=>ot.disabled)),(0,A.R)(this.destroy$)).subscribe(Et=>{this.disabled=Et,this.cdr.markForCheck()})}ngOnChanges(pt){const{nzSize:Et,nzSuffix:ot,nzPrefix:en,nzPrefixIcon:Ne,nzSuffixIcon:Ve,nzAddOnAfter:ye,nzAddOnBefore:yt,nzAddOnAfterIcon:Mt,nzAddOnBeforeIcon:Ke}=pt;Et&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(ot||en||Ne||Ve)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(ye||yt||Mt||Ke)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon))}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}}return Ie.\u0275fac=function(pt){return new(pt||Ie)(o.Y36(M.tE),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(z.Is,8))},Ie.\u0275cmp=o.Xpm({type:Ie,selectors:[["nz-input-group"]],contentQueries:function(pt,Et,ot){if(1&pt&&o.Suo(ot,kt,4),2&pt){let en;o.iGM(en=o.CRH())&&(Et.listOfNzInputDirective=en)}},hostVars:40,hostBindings:function(pt,Et){2&pt&&o.ekj("ant-input-group-compact",Et.nzCompact)("ant-input-search-enter-button",Et.nzSearch)("ant-input-search",Et.nzSearch)("ant-input-search-rtl","rtl"===Et.dir)("ant-input-search-sm",Et.nzSearch&&Et.isSmall)("ant-input-search-large",Et.nzSearch&&Et.isLarge)("ant-input-group-wrapper",Et.isAddOn)("ant-input-group-wrapper-rtl","rtl"===Et.dir)("ant-input-group-wrapper-lg",Et.isAddOn&&Et.isLarge)("ant-input-group-wrapper-sm",Et.isAddOn&&Et.isSmall)("ant-input-affix-wrapper",Et.isAffix&&!Et.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===Et.dir)("ant-input-affix-wrapper-focused",Et.isAffix&&Et.focused)("ant-input-affix-wrapper-disabled",Et.isAffix&&Et.disabled)("ant-input-affix-wrapper-lg",Et.isAffix&&!Et.isAddOn&&Et.isLarge)("ant-input-affix-wrapper-sm",Et.isAffix&&!Et.isAddOn&&Et.isSmall)("ant-input-group",!Et.isAffix&&!Et.isAddOn)("ant-input-group-rtl","rtl"===Et.dir)("ant-input-group-lg",!Et.isAffix&&!Et.isAddOn&&Et.isLarge)("ant-input-group-sm",!Et.isAffix&&!Et.isAddOn&&Et.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:"nzSearch",nzCompact:"nzCompact"},exportAs:["nzInputGroup"],features:[o.TTD],ngContentSelectors:wt,decls:7,vars:2,consts:[["class","ant-input-wrapper ant-input-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-affix-wrapper",3,"ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg",4,"ngIf","ngIfElse"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"]],template:function(pt,Et){if(1&pt&&(o.F$t(),o.YNc(0,U,4,4,"span",0),o.YNc(1,se,1,2,"ng-template",null,1,o.W1O),o.YNc(3,We,3,3,"ng-template",null,2,o.W1O),o.YNc(5,rt,1,0,"ng-template",null,3,o.W1O)),2&pt){const ot=o.MAs(2);o.Q6J("ngIf",Et.isAddOn)("ngIfElse",ot)}},directives:[Ct,k.O5,k.tP],encapsulation:2,changeDetection:0}),(0,r.gn)([(0,S.yF)()],Ie.prototype,"nzSearch",void 0),(0,r.gn)([(0,S.yF)()],Ie.prototype,"nzCompact",void 0),Ie})(),lt=(()=>{class Ie{constructor(pt,Et,ot,en){this.elementRef=pt,this.ngZone=Et,this.platform=ot,this.resizeService=en,this.autosize=!1,this.el=this.elementRef.nativeElement,this.maxHeight=null,this.minHeight=null,this.destroy$=new l.xQ,this.inputGap=10}set nzAutosize(pt){var ot;"string"==typeof pt||!0===pt?this.autosize=!0:"string"!=typeof(ot=pt)&&"boolean"!=typeof ot&&(ot.maxRows||ot.minRows)&&(this.autosize=!0,this.minRows=pt.minRows,this.maxRows=pt.maxRows,this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight())}resizeToFitContent(pt=!1){if(this.cacheTextareaLineHeight(),!this.cachedLineHeight)return;const Et=this.el,ot=Et.value;if(!pt&&this.minRows===this.previousMinRows&&ot===this.previousValue)return;const en=Et.placeholder;Et.classList.add("nz-textarea-autosize-measuring"),Et.placeholder="";let Ne=Math.round((Et.scrollHeight-this.inputGap)/this.cachedLineHeight)*this.cachedLineHeight+this.inputGap;null!==this.maxHeight&&Ne>this.maxHeight&&(Ne=this.maxHeight),null!==this.minHeight&&NerequestAnimationFrame(()=>{const{selectionStart:Ve,selectionEnd:ye}=Et;!this.destroy$.isStopped&&document.activeElement===Et&&Et.setSelectionRange(Ve,ye)})),this.previousValue=ot,this.previousMinRows=this.minRows}cacheTextareaLineHeight(){if(this.cachedLineHeight>=0||!this.el.parentNode)return;const pt=this.el.cloneNode(!1);pt.rows=1,pt.style.position="absolute",pt.style.visibility="hidden",pt.style.border="none",pt.style.padding="0",pt.style.height="",pt.style.minHeight="",pt.style.maxHeight="",pt.style.overflow="hidden",this.el.parentNode.appendChild(pt),this.cachedLineHeight=pt.clientHeight-this.inputGap,this.el.parentNode.removeChild(pt),this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight()}setMinHeight(){const pt=this.minRows&&this.cachedLineHeight?this.minRows*this.cachedLineHeight+this.inputGap:null;return null!==pt&&(this.el.style.minHeight=`${pt}px`),pt}setMaxHeight(){const pt=this.maxRows&&this.cachedLineHeight?this.maxRows*this.cachedLineHeight+this.inputGap:null;return null!==pt&&(this.el.style.maxHeight=`${pt}px`),pt}noopInputHandler(){}ngAfterViewInit(){this.autosize&&this.platform.isBrowser&&(this.resizeToFitContent(),this.resizeService.subscribe().pipe((0,A.R)(this.destroy$)).subscribe(()=>this.resizeToFitContent(!0)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngDoCheck(){this.autosize&&this.platform.isBrowser&&this.resizeToFitContent()}}return Ie.\u0275fac=function(pt){return new(pt||Ie)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(ce.t4),o.Y36(ve.rI))},Ie.\u0275dir=o.lG2({type:Ie,selectors:[["textarea","nzAutosize",""]],hostAttrs:["rows","1"],hostBindings:function(pt,Et){1&pt&&o.NdJ("input",function(){return Et.noopInputHandler()})},inputs:{nzAutosize:"nzAutosize"},exportAs:["nzAutosize"]}),Ie})(),Lt=(()=>{class Ie{}return Ie.\u0275fac=function(pt){return new(pt||Ie)},Ie.\u0275mod=o.oAB({type:Ie}),Ie.\u0275inj=o.cJS({imports:[[z.vT,k.ez,N.PV,ce.ud,ie.T]]}),Ie})()},3640:(Ft,Oe,c)=>{c.d(Oe,{du:()=>it,Hf:()=>_n,Qp:()=>Ge,Sf:()=>yn});var r=c(2845),o=c(7429),l=c(5e3),K=c(8929),m=c(3753),A=c(8514),b=c(7625),D=c(2198),C=c(2986),E=c(1059),S=c(948),w=c(1721),z=c(9808),M=c(6360),k=c(1777),N=c(5664),ie=c(9439),ce=c(4170),ve=c(969),Le=c(2683),Re=c(647),ae=c(6042),Ue=c(2643),He=c(2051),me=c(655),fe=c(1159),U=c(226),J=c(4832);const Me=["nz-modal-close",""];function se(xe,xt){if(1&xe&&(l.ynx(0),l._UZ(1,"i",2),l.BQk()),2&xe){const ge=xt.$implicit;l.xp6(1),l.Q6J("nzType",ge)}}const we=["modalElement"];function ue(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",16),l.NdJ("click",function(){return l.CHM(ge),l.oxw().onCloseClick()}),l.qZA()}}function Ye(xe,xt){if(1&xe&&(l.ynx(0),l._UZ(1,"span",17),l.BQk()),2&xe){const ge=l.oxw();l.xp6(1),l.Q6J("innerHTML",ge.config.nzTitle,l.oJD)}}function We(xe,xt){}function rt(xe,xt){if(1&xe&&l._UZ(0,"div",17),2&xe){const ge=l.oxw();l.Q6J("innerHTML",ge.config.nzContent,l.oJD)}}function wt(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",18),l.NdJ("click",function(){return l.CHM(ge),l.oxw().onCancel()}),l._uU(1),l.qZA()}if(2&xe){const ge=l.oxw();l.Q6J("nzLoading",!!ge.config.nzCancelLoading)("disabled",ge.config.nzCancelDisabled),l.uIk("cdkFocusInitial","cancel"===ge.config.nzAutofocus||null),l.xp6(1),l.hij(" ",ge.config.nzCancelText||ge.locale.cancelText," ")}}function Ae(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",19),l.NdJ("click",function(){return l.CHM(ge),l.oxw().onOk()}),l._uU(1),l.qZA()}if(2&xe){const ge=l.oxw();l.Q6J("nzType",ge.config.nzOkType)("nzLoading",!!ge.config.nzOkLoading)("disabled",ge.config.nzOkDisabled)("nzDanger",ge.config.nzOkDanger),l.uIk("cdkFocusInitial","ok"===ge.config.nzAutofocus||null),l.xp6(1),l.hij(" ",ge.config.nzOkText||ge.locale.okText," ")}}const mt=["nz-modal-title",""];function kt(xe,xt){if(1&xe&&(l.ynx(0),l._UZ(1,"div",2),l.BQk()),2&xe){const ge=l.oxw();l.xp6(1),l.Q6J("innerHTML",ge.config.nzTitle,l.oJD)}}const Ct=["nz-modal-footer",""];function It(xe,xt){if(1&xe&&l._UZ(0,"div",5),2&xe){const ge=l.oxw(3);l.Q6J("innerHTML",ge.config.nzFooter,l.oJD)}}function Xe(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",7),l.NdJ("click",function(){const V=l.CHM(ge).$implicit;return l.oxw(4).onButtonClick(V)}),l._uU(1),l.qZA()}if(2&xe){const ge=xt.$implicit,de=l.oxw(4);l.Q6J("hidden",!de.getButtonCallableProp(ge,"show"))("nzLoading",de.getButtonCallableProp(ge,"loading"))("disabled",de.getButtonCallableProp(ge,"disabled"))("nzType",ge.type)("nzDanger",ge.danger)("nzShape",ge.shape)("nzSize",ge.size)("nzGhost",ge.ghost),l.xp6(1),l.hij(" ",ge.label," ")}}function lt(xe,xt){if(1&xe&&(l.ynx(0),l.YNc(1,Xe,2,9,"button",6),l.BQk()),2&xe){const ge=l.oxw(3);l.xp6(1),l.Q6J("ngForOf",ge.buttons)}}function ct(xe,xt){if(1&xe&&(l.ynx(0),l.YNc(1,It,1,1,"div",3),l.YNc(2,lt,2,1,"ng-container",4),l.BQk()),2&xe){const ge=l.oxw(2);l.xp6(1),l.Q6J("ngIf",!ge.buttonsFooter),l.xp6(1),l.Q6J("ngIf",ge.buttonsFooter)}}const Lt=function(xe,xt){return{$implicit:xe,modalRef:xt}};function Ie(xe,xt){if(1&xe&&(l.ynx(0),l.YNc(1,ct,3,2,"ng-container",2),l.BQk()),2&xe){const ge=l.oxw();l.xp6(1),l.Q6J("nzStringTemplateOutlet",ge.config.nzFooter)("nzStringTemplateOutletContext",l.WLB(2,Lt,ge.config.nzComponentParams,ge.modalRef))}}function Pt(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(ge),l.oxw(2).onCancel()}),l._uU(1),l.qZA()}if(2&xe){const ge=l.oxw(2);l.Q6J("nzLoading",!!ge.config.nzCancelLoading)("disabled",ge.config.nzCancelDisabled),l.uIk("cdkFocusInitial","cancel"===ge.config.nzAutofocus||null),l.xp6(1),l.hij(" ",ge.config.nzCancelText||ge.locale.cancelText," ")}}function pt(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(ge),l.oxw(2).onOk()}),l._uU(1),l.qZA()}if(2&xe){const ge=l.oxw(2);l.Q6J("nzType",ge.config.nzOkType)("nzDanger",ge.config.nzOkDanger)("nzLoading",!!ge.config.nzOkLoading)("disabled",ge.config.nzOkDisabled),l.uIk("cdkFocusInitial","ok"===ge.config.nzAutofocus||null),l.xp6(1),l.hij(" ",ge.config.nzOkText||ge.locale.okText," ")}}function Et(xe,xt){if(1&xe&&(l.YNc(0,Pt,2,4,"button",8),l.YNc(1,pt,2,6,"button",9)),2&xe){const ge=l.oxw();l.Q6J("ngIf",null!==ge.config.nzCancelText),l.xp6(1),l.Q6J("ngIf",null!==ge.config.nzOkText)}}function ot(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",9),l.NdJ("click",function(){return l.CHM(ge),l.oxw().onCloseClick()}),l.qZA()}}function en(xe,xt){1&xe&&l._UZ(0,"div",10)}function Ne(xe,xt){}function Ve(xe,xt){if(1&xe&&l._UZ(0,"div",11),2&xe){const ge=l.oxw();l.Q6J("innerHTML",ge.config.nzContent,l.oJD)}}function ye(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"div",12),l.NdJ("cancelTriggered",function(){return l.CHM(ge),l.oxw().onCloseClick()})("okTriggered",function(){return l.CHM(ge),l.oxw().onOkClick()}),l.qZA()}if(2&xe){const ge=l.oxw();l.Q6J("modalRef",ge.modalRef)}}const yt=()=>{};class Mt{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=yt,this.nzOnOk=yt,this.nzIconType="question-circle"}}const G="ant-modal-mask",Q="modal",Fe={modalContainer:(0,k.X$)("modalContainer",[(0,k.SB)("void, exit",(0,k.oB)({})),(0,k.SB)("enter",(0,k.oB)({})),(0,k.eR)("* => enter",(0,k.jt)(".24s",(0,k.oB)({}))),(0,k.eR)("* => void, * => exit",(0,k.jt)(".2s",(0,k.oB)({})))])};function vt(xe,xt,ge){return void 0===xe?void 0===xt?ge:xt:xe}function je(xe){const{nzCentered:xt,nzMask:ge,nzMaskClosable:de,nzClosable:ut,nzOkLoading:V,nzOkDisabled:Z,nzCancelDisabled:oe,nzCancelLoading:De,nzKeyboard:ft,nzNoAnimation:Jt,nzContent:te,nzComponentParams:T,nzFooter:p,nzZIndex:h,nzWidth:y,nzWrapClassName:R,nzClassName:Ee,nzStyle:et,nzTitle:gt,nzCloseIcon:Qe,nzMaskStyle:_t,nzBodyStyle:Rt,nzOkText:qt,nzCancelText:on,nzOkType:Vt,nzOkDanger:bn,nzIconType:mn,nzModalType:fn,nzOnOk:Dn,nzOnCancel:rn,nzAfterOpen:Nn,nzAfterClose:Qn,nzCloseOnNavigation:ti,nzAutofocus:Jn}=xe;return{nzCentered:xt,nzMask:ge,nzMaskClosable:de,nzClosable:ut,nzOkLoading:V,nzOkDisabled:Z,nzCancelDisabled:oe,nzCancelLoading:De,nzKeyboard:ft,nzNoAnimation:Jt,nzContent:te,nzComponentParams:T,nzFooter:p,nzZIndex:h,nzWidth:y,nzWrapClassName:R,nzClassName:Ee,nzStyle:et,nzTitle:gt,nzCloseIcon:Qe,nzMaskStyle:_t,nzBodyStyle:Rt,nzOkText:qt,nzCancelText:on,nzOkType:Vt,nzOkDanger:bn,nzIconType:mn,nzModalType:fn,nzOnOk:Dn,nzOnCancel:rn,nzAfterOpen:Nn,nzAfterClose:Qn,nzCloseOnNavigation:ti,nzAutofocus:Jn}}function zt(){throw Error("Attempting to attach modal content after content is already attached")}let jt=(()=>{class xe extends o.en{constructor(ge,de,ut,V,Z,oe,De,ft,Jt,te){super(),this.ngZone=ge,this.host=de,this.focusTrapFactory=ut,this.cdr=V,this.render=Z,this.overlayRef=oe,this.nzConfigService=De,this.config=ft,this.animationType=te,this.animationStateChanged=new l.vpe,this.containerClick=new l.vpe,this.cancelTriggered=new l.vpe,this.okTriggered=new l.vpe,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new K.xQ,this.document=Jt,this.dir=oe.getDirection(),this.isStringContent="string"==typeof ft.nzContent,this.nzConfigService.getConfigChangeEventForComponent(Q).pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}get showMask(){const ge=this.nzConfigService.getConfigForComponent(Q)||{};return!!vt(this.config.nzMask,ge.nzMask,!0)}get maskClosable(){const ge=this.nzConfigService.getConfigForComponent(Q)||{};return!!vt(this.config.nzMaskClosable,ge.nzMaskClosable,!0)}onContainerClick(ge){ge.target===ge.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(ge){return this.portalOutlet.hasAttached()&&zt(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(ge)}attachTemplatePortal(ge){return this.portalOutlet.hasAttached()&&zt(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(ge)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const ge=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const de=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),ut=(0,w.pW)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(ge,"transform-origin",`${ut.left+de.width/2-ge.offsetLeft}px ${ut.top+de.height/2-ge.offsetTop}px 0px`)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.host.nativeElement.focus())))}trapFocus(){const ge=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const de=this.document.activeElement;de!==ge&&!ge.contains(de)&&ge.focus()}}restoreFocus(){const ge=this.elementFocusedBeforeModalWasOpened;if(ge&&"function"==typeof ge.focus){const de=this.document.activeElement,ut=this.host.nativeElement;(!de||de===this.document.body||de===ut||ut.contains(de))&&ge.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const ge=this.modalElementRef.nativeElement,de=this.overlayRef.backdropElement;ge.classList.add("ant-zoom-enter"),ge.classList.add("ant-zoom-enter-active"),de&&(de.classList.add("ant-fade-enter"),de.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const ge=this.modalElementRef.nativeElement;ge.classList.add("ant-zoom-leave"),ge.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(ge=!1){const de=this.overlayRef.backdropElement;if(de){if(this.animationDisabled()||ge)return void de.classList.remove(G);de.classList.add("ant-fade-leave"),de.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const ge=this.overlayRef.backdropElement,de=this.modalElementRef.nativeElement;ge&&(ge.classList.remove("ant-fade-enter"),ge.classList.remove("ant-fade-enter-active")),de.classList.remove("ant-zoom-enter"),de.classList.remove("ant-zoom-enter-active"),de.classList.remove("ant-zoom-leave"),de.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const ge=this.overlayRef.backdropElement;ge&&(0,w.DX)(this.config.nzZIndex)&&this.render.setStyle(ge,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const ge=this.overlayRef.backdropElement;if(ge&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(ut=>{this.render.removeStyle(ge,ut)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const de=Object.assign({},this.config.nzMaskStyle);Object.keys(de).forEach(ut=>{this.render.setStyle(ge,ut,de[ut])}),this.oldMaskStyle=de}}updateMaskClassname(){const ge=this.overlayRef.backdropElement;ge&&(this.showMask?ge.classList.add(G):ge.classList.remove(G))}onAnimationDone(ge){"enter"===ge.toState?this.trapFocus():"exit"===ge.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(ge)}onAnimationStart(ge){"enter"===ge.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===ge.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(ge)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(),this.destroy$.complete()}setupMouseListeners(ge){this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.host.nativeElement,"mouseup").pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,m.R)(ge.nativeElement,"mousedown").pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}}return xe.\u0275fac=function(ge){l.$Z()},xe.\u0275dir=l.lG2({type:xe,features:[l.qOj]}),xe})(),Bt=(()=>{class xe{constructor(ge){this.config=ge}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(Mt))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:Me,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(ge,de){1&ge&&(l.TgZ(0,"span",0),l.YNc(1,se,2,1,"ng-container",1),l.qZA()),2&ge&&(l.xp6(1),l.Q6J("nzStringTemplateOutlet",de.config.nzCloseIcon))},directives:[ve.f,Le.w,Re.Ls],encapsulation:2,changeDetection:0}),xe})(),vn=(()=>{class xe extends jt{constructor(ge,de,ut,V,Z,oe,De,ft,Jt,te,T){super(ge,ut,V,Z,oe,De,ft,Jt,te,T),this.i18n=de,this.config=Jt,this.cancelTriggered=new l.vpe,this.okTriggered=new l.vpe,this.i18n.localeChange.pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(l.R0b),l.Y36(ce.wi),l.Y36(l.SBq),l.Y36(N.qV),l.Y36(l.sBO),l.Y36(l.Qsj),l.Y36(r.Iu),l.Y36(ie.jY),l.Y36(Mt),l.Y36(z.K0,8),l.Y36(M.Qb,8))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["nz-modal-confirm-container"]],viewQuery:function(ge,de){if(1&ge&&(l.Gf(o.Pl,7),l.Gf(we,7)),2&ge){let ut;l.iGM(ut=l.CRH())&&(de.portalOutlet=ut.first),l.iGM(ut=l.CRH())&&(de.modalElementRef=ut.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ge,de){1&ge&&(l.WFA("@modalContainer.start",function(V){return de.onAnimationStart(V)})("@modalContainer.done",function(V){return de.onAnimationDone(V)}),l.NdJ("click",function(V){return de.onContainerClick(V)})),2&ge&&(l.d8E("@.disabled",de.config.nzNoAnimation)("@modalContainer",de.state),l.Tol(de.config.nzWrapClassName?"ant-modal-wrap "+de.config.nzWrapClassName:"ant-modal-wrap"),l.Udp("z-index",de.config.nzZIndex),l.ekj("ant-modal-wrap-rtl","rtl"===de.dir)("ant-modal-centered",de.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[l.qOj],decls:17,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click"]],template:function(ge,de){1&ge&&(l.TgZ(0,"div",0,1),l.ALo(2,"nzToCssUnit"),l.TgZ(3,"div",2),l.YNc(4,ue,1,0,"button",3),l.TgZ(5,"div",4),l.TgZ(6,"div",5),l.TgZ(7,"div",6),l._UZ(8,"i",7),l.TgZ(9,"span",8),l.YNc(10,Ye,2,1,"ng-container",9),l.qZA(),l.TgZ(11,"div",10),l.YNc(12,We,0,0,"ng-template",11),l.YNc(13,rt,1,1,"div",12),l.qZA(),l.qZA(),l.TgZ(14,"div",13),l.YNc(15,wt,2,4,"button",14),l.YNc(16,Ae,2,6,"button",15),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&ge&&(l.Udp("width",l.lcZ(2,11,null==de.config?null:de.config.nzWidth)),l.Q6J("ngClass",de.config.nzClassName)("ngStyle",de.config.nzStyle),l.xp6(4),l.Q6J("ngIf",de.config.nzClosable),l.xp6(1),l.Q6J("ngStyle",de.config.nzBodyStyle),l.xp6(3),l.Q6J("nzType",de.config.nzIconType),l.xp6(2),l.Q6J("nzStringTemplateOutlet",de.config.nzTitle),l.xp6(3),l.Q6J("ngIf",de.isStringContent),l.xp6(2),l.Q6J("ngIf",null!==de.config.nzCancelText),l.xp6(1),l.Q6J("ngIf",null!==de.config.nzOkText))},directives:[Bt,ae.ix,z.mk,z.PC,z.O5,Le.w,Re.Ls,ve.f,o.Pl,Ue.dQ],pipes:[He.ku],encapsulation:2,data:{animation:[Fe.modalContainer]}}),xe})(),cn=(()=>{class xe{constructor(ge){this.config=ge}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(Mt))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:mt,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(ge,de){1&ge&&(l.TgZ(0,"div",0),l.YNc(1,kt,2,1,"ng-container",1),l.qZA()),2&ge&&(l.xp6(1),l.Q6J("nzStringTemplateOutlet",de.config.nzTitle))},directives:[ve.f],encapsulation:2,changeDetection:0}),xe})(),an=(()=>{class xe{constructor(ge,de){this.i18n=ge,this.config=de,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new l.vpe,this.okTriggered=new l.vpe,this.destroy$=new K.xQ,Array.isArray(de.nzFooter)&&(this.buttonsFooter=!0,this.buttons=de.nzFooter.map(nn)),this.i18n.localeChange.pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(ge,de){const ut=ge[de],V=this.modalRef.getContentComponent();return"function"==typeof ut?ut.apply(ge,V&&[V]):ut}onButtonClick(ge){if(!this.getButtonCallableProp(ge,"loading")){const ut=this.getButtonCallableProp(ge,"onClick");ge.autoLoading&&(0,w.tI)(ut)&&(ge.loading=!0,ut.then(()=>ge.loading=!1).catch(V=>{throw ge.loading=!1,V}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(ce.wi),l.Y36(Mt))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:Ct,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click"]],template:function(ge,de){if(1&ge&&(l.YNc(0,Ie,2,5,"ng-container",0),l.YNc(1,Et,2,2,"ng-template",null,1,l.W1O)),2&ge){const ut=l.MAs(2);l.Q6J("ngIf",de.config.nzFooter)("ngIfElse",ut)}},directives:[ae.ix,z.O5,ve.f,z.sg,Ue.dQ,Le.w],encapsulation:2}),xe})();function nn(xe){return Object.assign({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},xe)}let Gn=(()=>{class xe extends jt{constructor(ge,de,ut,V,Z,oe,De,ft,Jt,te){super(ge,de,ut,V,Z,oe,De,ft,Jt,te),this.config=ft}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(l.R0b),l.Y36(l.SBq),l.Y36(N.qV),l.Y36(l.sBO),l.Y36(l.Qsj),l.Y36(r.Iu),l.Y36(ie.jY),l.Y36(Mt),l.Y36(z.K0,8),l.Y36(M.Qb,8))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["nz-modal-container"]],viewQuery:function(ge,de){if(1&ge&&(l.Gf(o.Pl,7),l.Gf(we,7)),2&ge){let ut;l.iGM(ut=l.CRH())&&(de.portalOutlet=ut.first),l.iGM(ut=l.CRH())&&(de.modalElementRef=ut.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ge,de){1&ge&&(l.WFA("@modalContainer.start",function(V){return de.onAnimationStart(V)})("@modalContainer.done",function(V){return de.onAnimationDone(V)}),l.NdJ("click",function(V){return de.onContainerClick(V)})),2&ge&&(l.d8E("@.disabled",de.config.nzNoAnimation)("@modalContainer",de.state),l.Tol(de.config.nzWrapClassName?"ant-modal-wrap "+de.config.nzWrapClassName:"ant-modal-wrap"),l.Udp("z-index",de.config.nzZIndex),l.ekj("ant-modal-wrap-rtl","rtl"===de.dir)("ant-modal-centered",de.config.nzCentered))},exportAs:["nzModalContainer"],features:[l.qOj],decls:10,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(ge,de){1&ge&&(l.TgZ(0,"div",0,1),l.ALo(2,"nzToCssUnit"),l.TgZ(3,"div",2),l.YNc(4,ot,1,0,"button",3),l.YNc(5,en,1,0,"div",4),l.TgZ(6,"div",5),l.YNc(7,Ne,0,0,"ng-template",6),l.YNc(8,Ve,1,1,"div",7),l.qZA(),l.YNc(9,ye,1,1,"div",8),l.qZA(),l.qZA()),2&ge&&(l.Udp("width",l.lcZ(2,9,null==de.config?null:de.config.nzWidth)),l.Q6J("ngClass",de.config.nzClassName)("ngStyle",de.config.nzStyle),l.xp6(4),l.Q6J("ngIf",de.config.nzClosable),l.xp6(1),l.Q6J("ngIf",de.config.nzTitle),l.xp6(1),l.Q6J("ngStyle",de.config.nzBodyStyle),l.xp6(2),l.Q6J("ngIf",de.isStringContent),l.xp6(1),l.Q6J("ngIf",null!==de.config.nzFooter))},directives:[Bt,cn,an,z.mk,z.PC,z.O5,o.Pl],pipes:[He.ku],encapsulation:2,data:{animation:[Fe.modalContainer]}}),xe})();class xn{constructor(xt,ge,de){this.overlayRef=xt,this.config=ge,this.containerInstance=de,this.componentInstance=null,this.state=0,this.afterClose=new K.xQ,this.afterOpen=new K.xQ,this.destroy$=new K.xQ,de.animationStateChanged.pipe((0,D.h)(ut=>"done"===ut.phaseName&&"enter"===ut.toState),(0,C.q)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),ge.nzAfterOpen instanceof l.vpe&&ge.nzAfterOpen.emit()}),de.animationStateChanged.pipe((0,D.h)(ut=>"done"===ut.phaseName&&"exit"===ut.toState),(0,C.q)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),de.containerClick.pipe((0,C.q)(1),(0,b.R)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),xt.keydownEvents().pipe((0,D.h)(ut=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&ut.keyCode===fe.hY&&!(0,fe.Vb)(ut))).subscribe(ut=>{ut.preventDefault(),this.trigger("cancel")}),de.cancelTriggered.pipe((0,b.R)(this.destroy$)).subscribe(()=>this.trigger("cancel")),de.okTriggered.pipe((0,b.R)(this.destroy$)).subscribe(()=>this.trigger("ok")),xt.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),ge.nzAfterClose instanceof l.vpe&&ge.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(xt){this.close(xt)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(xt){0===this.state&&(this.result=xt,this.containerInstance.animationStateChanged.pipe((0,D.h)(ge=>"start"===ge.phaseName),(0,C.q)(1)).subscribe(ge=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},ge.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(xt){Object.assign(this.config,xt),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(xt){return(0,me.mG)(this,void 0,void 0,function*(){const ge={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[xt],de={ok:"nzOkLoading",cancel:"nzCancelLoading"}[xt];if(!this.config[de])if(ge instanceof l.vpe)ge.emit(this.getContentComponent());else if("function"==typeof ge){const V=ge(this.getContentComponent());if((0,w.tI)(V)){this.config[de]=!0;let Z=!1;try{Z=yield V}finally{this.config[de]=!1,this.closeWhitResult(Z)}}else this.closeWhitResult(V)}})}closeWhitResult(xt){!1!==xt&&this.close(xt)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let yn=(()=>{class xe{constructor(ge,de,ut,V,Z){this.overlay=ge,this.injector=de,this.nzConfigService=ut,this.parentModal=V,this.directionality=Z,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new K.xQ,this.afterAllClose=(0,A.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,E.O)(void 0)))}get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const ge=this.parentModal;return ge?ge._afterAllClosed:this.afterAllClosedAtThisLevel}create(ge){return this.open(ge.nzContent,ge)}closeAll(){this.closeModals(this.openModals)}confirm(ge={},de="confirm"){return"nzFooter"in ge&&(0,S.ZK)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in ge||(ge.nzWidth=416),"nzMaskClosable"in ge||(ge.nzMaskClosable=!1),ge.nzModalType="confirm",ge.nzClassName=`ant-modal-confirm ant-modal-confirm-${de} ${ge.nzClassName||""}`,this.create(ge)}info(ge={}){return this.confirmFactory(ge,"info")}success(ge={}){return this.confirmFactory(ge,"success")}error(ge={}){return this.confirmFactory(ge,"error")}warning(ge={}){return this.confirmFactory(ge,"warning")}open(ge,de){const ut=function Je(xe,xt){return Object.assign(Object.assign({},xt),xe)}(de||{},new Mt),V=this.createOverlay(ut),Z=this.attachModalContainer(V,ut),oe=this.attachModalContent(ge,Z,V,ut);return Z.modalRef=oe,this.openModals.push(oe),oe.afterClose.subscribe(()=>this.removeOpenModal(oe)),oe}removeOpenModal(ge){const de=this.openModals.indexOf(ge);de>-1&&(this.openModals.splice(de,1),this.openModals.length||this._afterAllClosed.next())}closeModals(ge){let de=ge.length;for(;de--;)ge[de].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(ge){const de=this.nzConfigService.getConfigForComponent(Q)||{},ut=new r.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:vt(ge.nzCloseOnNavigation,de.nzCloseOnNavigation,!0),direction:vt(ge.nzDirection,de.nzDirection,this.directionality.value)});return vt(ge.nzMask,de.nzMask,!0)&&(ut.backdropClass=G),this.overlay.create(ut)}attachModalContainer(ge,de){const V=l.zs3.create({parent:de&&de.nzViewContainerRef&&de.nzViewContainerRef.injector||this.injector,providers:[{provide:r.Iu,useValue:ge},{provide:Mt,useValue:de}]}),oe=new o.C5("confirm"===de.nzModalType?vn:Gn,de.nzViewContainerRef,V);return ge.attach(oe).instance}attachModalContent(ge,de,ut,V){const Z=new xn(ut,V,de);if(ge instanceof l.Rgc)de.attachTemplatePortal(new o.UE(ge,null,{$implicit:V.nzComponentParams,modalRef:Z}));else if((0,w.DX)(ge)&&"string"!=typeof ge){const oe=this.createInjector(Z,V),De=de.attachComponentPortal(new o.C5(ge,V.nzViewContainerRef,oe));(function Tt(xe,xt){Object.assign(xe,xt)})(De.instance,V.nzComponentParams),Z.componentInstance=De.instance}else de.attachStringContent();return Z}createInjector(ge,de){return l.zs3.create({parent:de&&de.nzViewContainerRef&&de.nzViewContainerRef.injector||this.injector,providers:[{provide:xn,useValue:ge}]})}confirmFactory(ge={},de){return"nzIconType"in ge||(ge.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[de]),"nzCancelText"in ge||(ge.nzCancelText=null),this.confirm(ge,de)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.LFG(r.aV),l.LFG(l.zs3),l.LFG(ie.jY),l.LFG(xe,12),l.LFG(U.Is,8))},xe.\u0275prov=l.Yz7({token:xe,factory:xe.\u0275fac}),xe})(),_n=(()=>{class xe{constructor(ge){this.templateRef=ge}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(l.Rgc))},xe.\u0275dir=l.lG2({type:xe,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),xe})(),un=(()=>{class xe{constructor(ge,de){this.nzModalRef=ge,this.templateRef=de,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(xn,8),l.Y36(l.Rgc))},xe.\u0275dir=l.lG2({type:xe,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),xe})(),Dt=(()=>{class xe{constructor(ge,de){this.nzModalRef=ge,this.templateRef=de,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(xn,8),l.Y36(l.Rgc))},xe.\u0275dir=l.lG2({type:xe,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]}),xe})(),it=(()=>{class xe{constructor(ge,de,ut){this.cdr=ge,this.modal=de,this.viewContainerRef=ut,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new l.vpe,this.nzOnCancel=new l.vpe,this.nzAfterOpen=new l.vpe,this.nzAfterClose=new l.vpe,this.nzVisibleChange=new l.vpe,this.modalRef=null,this.destroy$=new K.xQ}set modalTitle(ge){ge&&this.setTitleWithTemplate(ge)}set modalFooter(ge){ge&&this.setFooterWithTemplate(ge)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const ge=this.getConfig();this.modalRef=this.modal.create(ge),this.modalRef.afterClose.asObservable().pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.close()})}}close(ge){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(ge),this.modalRef=null)}destroy(ge){this.close(ge)}triggerOk(){var ge;null===(ge=this.modalRef)||void 0===ge||ge.triggerOk()}triggerCancel(){var ge;null===(ge=this.modalRef)||void 0===ge||ge.triggerCancel()}getContentComponent(){var ge;return null===(ge=this.modalRef)||void 0===ge?void 0:ge.getContentComponent()}getElement(){var ge;return null===(ge=this.modalRef)||void 0===ge?void 0:ge.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(ge){this.nzTitle=ge,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(ge){this.nzFooter=ge,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const ge=je(this);return ge.nzViewContainerRef=this.viewContainerRef,ge.nzContent=this.nzContent||this.contentFromContentChild,ge}ngOnChanges(ge){const{nzVisible:de}=ge,ut=(0,me._T)(ge,["nzVisible"]);Object.keys(ut).length&&this.modalRef&&this.modalRef.updateConfig(je(this)),de&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){var ge;null===(ge=this.modalRef)||void 0===ge||ge._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(l.sBO),l.Y36(yn),l.Y36(l.s_b))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["nz-modal"]],contentQueries:function(ge,de,ut){if(1&ge&&(l.Suo(ut,Dt,7,l.Rgc),l.Suo(ut,_n,7,l.Rgc),l.Suo(ut,un,7,l.Rgc)),2&ge){let V;l.iGM(V=l.CRH())&&(de.modalTitle=V.first),l.iGM(V=l.CRH())&&(de.contentFromContentChild=V.first),l.iGM(V=l.CRH())&&(de.modalFooter=V.first)}},inputs:{nzMask:"nzMask",nzMaskClosable:"nzMaskClosable",nzCloseOnNavigation:"nzCloseOnNavigation",nzVisible:"nzVisible",nzClosable:"nzClosable",nzOkLoading:"nzOkLoading",nzOkDisabled:"nzOkDisabled",nzCancelDisabled:"nzCancelDisabled",nzCancelLoading:"nzCancelLoading",nzKeyboard:"nzKeyboard",nzNoAnimation:"nzNoAnimation",nzCentered:"nzCentered",nzContent:"nzContent",nzComponentParams:"nzComponentParams",nzFooter:"nzFooter",nzZIndex:"nzZIndex",nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:"nzOkDanger",nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[l.TTD],decls:0,vars:0,template:function(ge,de){},encapsulation:2,changeDetection:0}),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzMask",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzMaskClosable",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzCloseOnNavigation",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzVisible",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzClosable",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzOkLoading",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzOkDisabled",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzCancelDisabled",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzCancelLoading",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzKeyboard",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzNoAnimation",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzCentered",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzOkDanger",void 0),xe})(),Ge=(()=>{class xe{}return xe.\u0275fac=function(ge){return new(ge||xe)},xe.\u0275mod=l.oAB({type:xe}),xe.\u0275inj=l.cJS({providers:[yn],imports:[[z.ez,U.vT,r.U8,ve.T,o.eL,ce.YI,ae.sL,Re.PV,He.YS,J.g,He.YS]]}),xe})()},2051:(Ft,Oe,c)=>{c.d(Oe,{YS:()=>z,ku:()=>b});var r=c(9808),o=c(5e3),l=c(1721);c(2313);class A{transform(k,N=0,ie="B",ce){if(!((0,l.ui)(k)&&(0,l.ui)(N)&&N%1==0&&N>=0))return k;let ve=k,Le=ie;for(;"B"!==Le;)ve*=1024,Le=A.formats[Le].prev;if(ce){const ae=(0,l.YM)(A.calculateResult(A.formats[ce],ve),N);return A.formatResult(ae,ce)}for(const Re in A.formats)if(A.formats.hasOwnProperty(Re)){const ae=A.formats[Re];if(ve{class M{transform(N,ie="px"){let ae="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some(Ue=>Ue===ie)&&(ae=ie),"number"==typeof N?`${N}${ae}`:`${N}`}}return M.\u0275fac=function(N){return new(N||M)},M.\u0275pipe=o.Yjl({name:"nzToCssUnit",type:M,pure:!0}),M})(),z=(()=>{class M{}return M.\u0275fac=function(N){return new(N||M)},M.\u0275mod=o.oAB({type:M}),M.\u0275inj=o.cJS({imports:[[r.ez]]}),M})()},3868:(Ft,Oe,c)=>{c.d(Oe,{Bq:()=>k,Of:()=>ce,Dg:()=>ie,aF:()=>ve});var r=c(5e3),o=c(655),l=c(4182),K=c(839),m=c(8929),A=c(3753),b=c(7625),D=c(1721),C=c(226),E=c(5664),S=c(9808);const w=["*"],z=["inputElement"],M=["nz-radio",""];let k=(()=>{class Le{}return Le.\u0275fac=function(ae){return new(ae||Le)},Le.\u0275dir=r.lG2({type:Le,selectors:[["","nz-radio-button",""]]}),Le})(),N=(()=>{class Le{constructor(){this.selected$=new K.t(1),this.touched$=new m.xQ,this.disabled$=new K.t(1),this.name$=new K.t(1)}touch(){this.touched$.next()}select(ae){this.selected$.next(ae)}setDisabled(ae){this.disabled$.next(ae)}setName(ae){this.name$.next(ae)}}return Le.\u0275fac=function(ae){return new(ae||Le)},Le.\u0275prov=r.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),ie=(()=>{class Le{constructor(ae,Ue,He){this.cdr=ae,this.nzRadioService=Ue,this.directionality=He,this.value=null,this.destroy$=new m.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){var ae;this.nzRadioService.selected$.pipe((0,b.R)(this.destroy$)).subscribe(Ue=>{this.value!==Ue&&(this.value=Ue,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,b.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),null===(ae=this.directionality.change)||void 0===ae||ae.pipe((0,b.R)(this.destroy$)).subscribe(Ue=>{this.dir=Ue,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(ae){const{nzDisabled:Ue,nzName:He}=ae;Ue&&this.nzRadioService.setDisabled(this.nzDisabled),He&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}writeValue(ae){this.value=ae,this.nzRadioService.select(ae),this.cdr.markForCheck()}registerOnChange(ae){this.onChange=ae}registerOnTouched(ae){this.onTouched=ae}setDisabledState(ae){this.nzDisabled=ae,this.nzRadioService.setDisabled(ae),this.cdr.markForCheck()}}return Le.\u0275fac=function(ae){return new(ae||Le)(r.Y36(r.sBO),r.Y36(N),r.Y36(C.Is,8))},Le.\u0275cmp=r.Xpm({type:Le,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(ae,Ue){2&ae&&r.ekj("ant-radio-group-large","large"===Ue.nzSize)("ant-radio-group-small","small"===Ue.nzSize)("ant-radio-group-solid","solid"===Ue.nzButtonStyle)("ant-radio-group-rtl","rtl"===Ue.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[r._Bn([N,{provide:l.JU,useExisting:(0,r.Gpc)(()=>Le),multi:!0}]),r.TTD],ngContentSelectors:w,decls:1,vars:0,template:function(ae,Ue){1&ae&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),(0,o.gn)([(0,D.yF)()],Le.prototype,"nzDisabled",void 0),Le})(),ce=(()=>{class Le{constructor(ae,Ue,He,me,fe,U,J){this.ngZone=ae,this.elementRef=Ue,this.cdr=He,this.focusMonitor=me,this.directionality=fe,this.nzRadioService=U,this.nzRadioButtonDirective=J,this.isNgModel=!1,this.destroy$=new m.xQ,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}setDisabledState(ae){this.nzDisabled=ae,this.cdr.markForCheck()}writeValue(ae){this.isChecked=ae,this.cdr.markForCheck()}registerOnChange(ae){this.isNgModel=!0,this.onChange=ae}registerOnTouched(ae){this.onTouched=ae}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,b.R)(this.destroy$)).subscribe(ae=>{this.name=ae,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,b.R)(this.destroy$)).subscribe(ae=>{this.nzDisabled=ae,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,b.R)(this.destroy$)).subscribe(ae=>{this.isChecked=this.nzValue===ae,this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(ae=>{ae||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(ae=>{this.dir=ae,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,A.R)(this.elementRef.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(ae=>{ae.stopPropagation(),ae.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}}return Le.\u0275fac=function(ae){return new(ae||Le)(r.Y36(r.R0b),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(E.tE),r.Y36(C.Is,8),r.Y36(N,8),r.Y36(k,8))},Le.\u0275cmp=r.Xpm({type:Le,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(ae,Ue){if(1&ae&&r.Gf(z,5),2&ae){let He;r.iGM(He=r.CRH())&&(Ue.inputElement=He.first)}},hostVars:16,hostBindings:function(ae,Ue){2&ae&&r.ekj("ant-radio-wrapper",!Ue.isRadioButton)("ant-radio-button-wrapper",Ue.isRadioButton)("ant-radio-wrapper-checked",Ue.isChecked&&!Ue.isRadioButton)("ant-radio-button-wrapper-checked",Ue.isChecked&&Ue.isRadioButton)("ant-radio-wrapper-disabled",Ue.nzDisabled&&!Ue.isRadioButton)("ant-radio-button-wrapper-disabled",Ue.nzDisabled&&Ue.isRadioButton)("ant-radio-wrapper-rtl",!Ue.isRadioButton&&"rtl"===Ue.dir)("ant-radio-button-wrapper-rtl",Ue.isRadioButton&&"rtl"===Ue.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[r._Bn([{provide:l.JU,useExisting:(0,r.Gpc)(()=>Le),multi:!0}])],attrs:M,ngContentSelectors:w,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(ae,Ue){1&ae&&(r.F$t(),r.TgZ(0,"span"),r._UZ(1,"input",0,1),r._UZ(3,"span"),r.qZA(),r.TgZ(4,"span"),r.Hsn(5),r.qZA()),2&ae&&(r.ekj("ant-radio",!Ue.isRadioButton)("ant-radio-checked",Ue.isChecked&&!Ue.isRadioButton)("ant-radio-disabled",Ue.nzDisabled&&!Ue.isRadioButton)("ant-radio-button",Ue.isRadioButton)("ant-radio-button-checked",Ue.isChecked&&Ue.isRadioButton)("ant-radio-button-disabled",Ue.nzDisabled&&Ue.isRadioButton),r.xp6(1),r.ekj("ant-radio-input",!Ue.isRadioButton)("ant-radio-button-input",Ue.isRadioButton),r.Q6J("disabled",Ue.nzDisabled)("checked",Ue.isChecked),r.uIk("autofocus",Ue.nzAutoFocus?"autofocus":null)("name",Ue.name),r.xp6(2),r.ekj("ant-radio-inner",!Ue.isRadioButton)("ant-radio-button-inner",Ue.isRadioButton))},encapsulation:2,changeDetection:0}),(0,o.gn)([(0,D.yF)()],Le.prototype,"nzDisabled",void 0),(0,o.gn)([(0,D.yF)()],Le.prototype,"nzAutoFocus",void 0),Le})(),ve=(()=>{class Le{}return Le.\u0275fac=function(ae){return new(ae||Le)},Le.\u0275mod=r.oAB({type:Le}),Le.\u0275inj=r.cJS({imports:[[C.vT,S.ez,l.u5]]}),Le})()},8054:(Ft,Oe,c)=>{c.d(Oe,{Ip:()=>xn,Yy:()=>cn,Vq:()=>xt,LV:()=>ge});var r=c(5e3),o=c(8929),l=c(3753),K=c(591),m=c(3426),A=c(6787),b=c(2321),D=c(685),C=c(969),E=c(9808),S=c(647),w=c(2683),z=c(655),M=c(1059),k=c(7625),N=c(7545),ie=c(4090),ce=c(1721),ve=c(1159),Le=c(2845),Re=c(4182),ae=c(8076),Ue=c(9439),He=c(6987),me=c(5664),fe=c(4832),U=c(925),J=c(226),Me=c(6950),se=c(4170);const we=["*"];function ue(de,ut){if(1&de&&(r.ynx(0),r._uU(1),r.BQk()),2&de){const V=r.oxw();r.xp6(1),r.Oqu(V.nzLabel)}}function Ye(de,ut){if(1&de&&(r.ynx(0),r._uU(1),r.BQk()),2&de){const V=r.oxw();r.xp6(1),r.Oqu(V.label)}}function We(de,ut){}function rt(de,ut){if(1&de&&(r.ynx(0),r.YNc(1,We,0,0,"ng-template",3),r.BQk()),2&de){const V=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",V.template)}}function wt(de,ut){1&de&&r._UZ(0,"i",6)}function Ae(de,ut){if(1&de&&(r.TgZ(0,"div",4),r.YNc(1,wt,1,0,"i",5),r.qZA()),2&de){const V=r.oxw();r.xp6(1),r.Q6J("ngIf",!V.icon)("ngIfElse",V.icon)}}function mt(de,ut){if(1&de&&(r.TgZ(0,"div",4),r._UZ(1,"nz-embed-empty",5),r.qZA()),2&de){const V=r.oxw();r.xp6(1),r.Q6J("specificContent",V.notFoundContent)}}function kt(de,ut){if(1&de&&r._UZ(0,"nz-option-item-group",9),2&de){const V=r.oxw().$implicit;r.Q6J("nzLabel",V.groupLabel)}}function Ct(de,ut){if(1&de){const V=r.EpF();r.TgZ(0,"nz-option-item",10),r.NdJ("itemHover",function(oe){return r.CHM(V),r.oxw(2).onItemHover(oe)})("itemClick",function(oe){return r.CHM(V),r.oxw(2).onItemClick(oe)}),r.qZA()}if(2&de){const V=r.oxw().$implicit,Z=r.oxw();r.Q6J("icon",Z.menuItemSelectedIcon)("customContent",V.nzCustomContent)("template",V.template)("grouped",!!V.groupLabel)("disabled",V.nzDisabled)("showState","tags"===Z.mode||"multiple"===Z.mode)("label",V.nzLabel)("compareWith",Z.compareWith)("activatedValue",Z.activatedValue)("listOfSelectedValue",Z.listOfSelectedValue)("value",V.nzValue)}}function It(de,ut){1&de&&(r.ynx(0,6),r.YNc(1,kt,1,1,"nz-option-item-group",7),r.YNc(2,Ct,1,11,"nz-option-item",8),r.BQk()),2&de&&(r.Q6J("ngSwitch",ut.$implicit.type),r.xp6(1),r.Q6J("ngSwitchCase","group"),r.xp6(1),r.Q6J("ngSwitchCase","item"))}function Xe(de,ut){}function lt(de,ut){1&de&&r.Hsn(0)}const ct=["inputElement"],Lt=["mirrorElement"];function Ie(de,ut){1&de&&r._UZ(0,"span",3,4)}function Pt(de,ut){if(1&de&&(r.TgZ(0,"div",4),r._uU(1),r.qZA()),2&de){const V=r.oxw(2);r.xp6(1),r.Oqu(V.label)}}function pt(de,ut){if(1&de&&r._uU(0),2&de){const V=r.oxw(2);r.Oqu(V.label)}}function Et(de,ut){if(1&de&&(r.ynx(0),r.YNc(1,Pt,2,1,"div",2),r.YNc(2,pt,1,1,"ng-template",null,3,r.W1O),r.BQk()),2&de){const V=r.MAs(3),Z=r.oxw();r.xp6(1),r.Q6J("ngIf",Z.deletable)("ngIfElse",V)}}function ot(de,ut){1&de&&r._UZ(0,"i",7)}function en(de,ut){if(1&de){const V=r.EpF();r.TgZ(0,"span",5),r.NdJ("click",function(oe){return r.CHM(V),r.oxw().onDelete(oe)}),r.YNc(1,ot,1,0,"i",6),r.qZA()}if(2&de){const V=r.oxw();r.xp6(1),r.Q6J("ngIf",!V.removeIcon)("ngIfElse",V.removeIcon)}}const Ne=function(de){return{$implicit:de}};function Ve(de,ut){if(1&de&&(r.ynx(0),r._uU(1),r.BQk()),2&de){const V=r.oxw();r.xp6(1),r.hij(" ",V.placeholder," ")}}function ye(de,ut){if(1&de&&r._UZ(0,"nz-select-item",6),2&de){const V=r.oxw(2);r.Q6J("deletable",!1)("disabled",!1)("removeIcon",V.removeIcon)("label",V.listOfTopItem[0].nzLabel)("contentTemplateOutlet",V.customTemplate)("contentTemplateOutletContext",V.listOfTopItem[0])}}function yt(de,ut){if(1&de){const V=r.EpF();r.ynx(0),r.TgZ(1,"nz-select-search",4),r.NdJ("isComposingChange",function(oe){return r.CHM(V),r.oxw().isComposingChange(oe)})("valueChange",function(oe){return r.CHM(V),r.oxw().onInputValueChange(oe)}),r.qZA(),r.YNc(2,ye,1,6,"nz-select-item",5),r.BQk()}if(2&de){const V=r.oxw();r.xp6(1),r.Q6J("nzId",V.nzId)("disabled",V.disabled)("value",V.inputValue)("showInput",V.showSearch)("mirrorSync",!1)("autofocus",V.autofocus)("focusTrigger",V.open),r.xp6(1),r.Q6J("ngIf",V.isShowSingleLabel)}}function Mt(de,ut){if(1&de){const V=r.EpF();r.TgZ(0,"nz-select-item",9),r.NdJ("delete",function(){const De=r.CHM(V).$implicit;return r.oxw(2).onDeleteItem(De.contentTemplateOutletContext)}),r.qZA()}if(2&de){const V=ut.$implicit,Z=r.oxw(2);r.Q6J("removeIcon",Z.removeIcon)("label",V.nzLabel)("disabled",V.nzDisabled||Z.disabled)("contentTemplateOutlet",V.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",V.contentTemplateOutletContext)}}function Ke(de,ut){if(1&de){const V=r.EpF();r.ynx(0),r.YNc(1,Mt,1,6,"nz-select-item",7),r.TgZ(2,"nz-select-search",8),r.NdJ("isComposingChange",function(oe){return r.CHM(V),r.oxw().isComposingChange(oe)})("valueChange",function(oe){return r.CHM(V),r.oxw().onInputValueChange(oe)}),r.qZA(),r.BQk()}if(2&de){const V=r.oxw();r.xp6(1),r.Q6J("ngForOf",V.listOfSlicedItem)("ngForTrackBy",V.trackValue),r.xp6(1),r.Q6J("nzId",V.nzId)("disabled",V.disabled)("value",V.inputValue)("autofocus",V.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",V.open)}}function Y(de,ut){if(1&de&&r._UZ(0,"nz-select-placeholder",10),2&de){const V=r.oxw();r.Q6J("placeholder",V.placeHolder)}}function G(de,ut){1&de&&r._UZ(0,"i",2)}function Q(de,ut){1&de&&r._UZ(0,"i",7)}function Fe(de,ut){1&de&&r._UZ(0,"i",8)}function Je(de,ut){if(1&de&&(r.ynx(0),r.YNc(1,Q,1,0,"i",5),r.YNc(2,Fe,1,0,"i",6),r.BQk()),2&de){const V=r.oxw(2);r.xp6(1),r.Q6J("ngIf",!V.search),r.xp6(1),r.Q6J("ngIf",V.search)}}function vt(de,ut){if(1&de&&(r.ynx(0),r._UZ(1,"i",10),r.BQk()),2&de){const V=ut.$implicit;r.xp6(1),r.Q6J("nzType",V)}}function Tt(de,ut){if(1&de&&r.YNc(0,vt,2,1,"ng-container",9),2&de){const V=r.oxw(2);r.Q6J("nzStringTemplateOutlet",V.suffixIcon)}}function je(de,ut){if(1&de&&(r.YNc(0,Je,3,2,"ng-container",3),r.YNc(1,Tt,1,1,"ng-template",null,4,r.W1O)),2&de){const V=r.MAs(2),Z=r.oxw();r.Q6J("ngIf",!Z.suffixIcon)("ngIfElse",V)}}function zt(de,ut){1&de&&r._UZ(0,"i",1)}function jt(de,ut){if(1&de&&r._UZ(0,"nz-select-arrow",5),2&de){const V=r.oxw();r.Q6J("loading",V.nzLoading)("search",V.nzOpen&&V.nzShowSearch)("suffixIcon",V.nzSuffixIcon)}}function Bt(de,ut){if(1&de){const V=r.EpF();r.TgZ(0,"nz-select-clear",6),r.NdJ("clear",function(){return r.CHM(V),r.oxw().onClearSelection()}),r.qZA()}if(2&de){const V=r.oxw();r.Q6J("clearIcon",V.nzClearIcon)}}function vn(de,ut){if(1&de){const V=r.EpF();r.TgZ(0,"nz-option-container",7),r.NdJ("keydown",function(oe){return r.CHM(V),r.oxw().onKeyDown(oe)})("itemClick",function(oe){return r.CHM(V),r.oxw().onItemClick(oe)})("scrollToBottom",function(){return r.CHM(V),r.oxw().nzScrollToBottom.emit()}),r.qZA()}if(2&de){const V=r.oxw();r.ekj("ant-select-dropdown-placement-bottomLeft","bottom"===V.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===V.dropDownPosition),r.Q6J("ngStyle",V.nzDropdownStyle)("itemSize",V.nzOptionHeightPx)("maxItemLength",V.nzOptionOverflowSize)("matchWidth",V.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",null==V.noAnimation?null:V.noAnimation.nzNoAnimation)("nzNoAnimation",null==V.noAnimation?null:V.noAnimation.nzNoAnimation)("listOfContainerItem",V.listOfContainerItem)("menuItemSelectedIcon",V.nzMenuItemSelectedIcon)("notFoundContent",V.nzNotFoundContent)("activatedValue",V.activatedValue)("listOfSelectedValue",V.listOfValue)("dropdownRender",V.nzDropdownRender)("compareWith",V.compareWith)("mode",V.nzMode)}}let cn=(()=>{class de{constructor(){this.nzLabel=null,this.changes=new o.xQ}ngOnChanges(){this.changes.next()}}return de.\u0275fac=function(V){return new(V||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[r.TTD],ngContentSelectors:we,decls:1,vars:0,template:function(V,Z){1&V&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),de})(),an=(()=>{class de{constructor(){this.nzLabel=null}}return de.\u0275fac=function(V){return new(V||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(V,Z){1&V&&r.YNc(0,ue,2,1,"ng-container",0),2&V&&r.Q6J("nzStringTemplateOutlet",Z.nzLabel)},directives:[C.f],encapsulation:2,changeDetection:0}),de})(),nn=(()=>{class de{constructor(){this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new r.vpe,this.itemHover=new r.vpe}onHostMouseEnter(){this.disabled||this.itemHover.next(this.value)}onHostClick(){this.disabled||this.itemClick.next(this.value)}ngOnChanges(V){const{value:Z,activatedValue:oe,listOfSelectedValue:De}=V;(Z||De)&&(this.selected=this.listOfSelectedValue.some(ft=>this.compareWith(ft,this.value))),(Z||oe)&&(this.activated=this.compareWith(this.activatedValue,this.value))}}return de.\u0275fac=function(V){return new(V||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(V,Z){1&V&&r.NdJ("mouseenter",function(){return Z.onHostMouseEnter()})("click",function(){return Z.onHostClick()}),2&V&&(r.uIk("title",Z.label),r.ekj("ant-select-item-option-grouped",Z.grouped)("ant-select-item-option-selected",Z.selected&&!Z.disabled)("ant-select-item-option-disabled",Z.disabled)("ant-select-item-option-active",Z.activated&&!Z.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[r.TTD],decls:4,vars:3,consts:[[1,"ant-select-item-option-content"],[4,"ngIf"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(V,Z){1&V&&(r.TgZ(0,"div",0),r.YNc(1,Ye,2,1,"ng-container",1),r.YNc(2,rt,2,1,"ng-container",1),r.qZA(),r.YNc(3,Ae,2,2,"div",2)),2&V&&(r.xp6(1),r.Q6J("ngIf",!Z.customContent),r.xp6(1),r.Q6J("ngIf",Z.customContent),r.xp6(1),r.Q6J("ngIf",Z.showState&&Z.selected))},directives:[E.O5,E.tP,S.Ls,w.w],encapsulation:2,changeDetection:0}),de})(),Gn=(()=>{class de{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new r.vpe,this.scrollToBottom=new r.vpe,this.scrolledIndex=0}onItemClick(V){this.itemClick.emit(V)}onItemHover(V){this.activatedValue=V}trackValue(V,Z){return Z.key}onScrolledIndexChange(V){this.scrolledIndex=V,V===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const V=this.listOfContainerItem.findIndex(Z=>this.compareWith(Z.key,this.activatedValue));(V=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(V||0)}ngOnChanges(V){const{listOfContainerItem:Z,activatedValue:oe}=V;(Z||oe)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return de.\u0275fac=function(V){return new(V||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-option-container"]],viewQuery:function(V,Z){if(1&V&&r.Gf(b.N7,7),2&V){let oe;r.iGM(oe=r.CRH())&&(Z.cdkVirtualScrollViewport=oe.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[r.TTD],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(V,Z){1&V&&(r.TgZ(0,"div"),r.YNc(1,mt,2,1,"div",0),r.TgZ(2,"cdk-virtual-scroll-viewport",1),r.NdJ("scrolledIndexChange",function(De){return Z.onScrolledIndexChange(De)}),r.YNc(3,It,3,3,"ng-template",2),r.qZA(),r.YNc(4,Xe,0,0,"ng-template",3),r.qZA()),2&V&&(r.xp6(1),r.Q6J("ngIf",0===Z.listOfContainerItem.length),r.xp6(1),r.Udp("height",Z.listOfContainerItem.length*Z.itemSize,"px")("max-height",Z.itemSize*Z.maxItemLength,"px"),r.ekj("full-width",!Z.matchWidth),r.Q6J("itemSize",Z.itemSize)("maxBufferPx",Z.itemSize*Z.maxItemLength)("minBufferPx",Z.itemSize*Z.maxItemLength),r.xp6(1),r.Q6J("cdkVirtualForOf",Z.listOfContainerItem)("cdkVirtualForTrackBy",Z.trackValue)("cdkVirtualForTemplateCacheSize",0),r.xp6(1),r.Q6J("ngTemplateOutlet",Z.dropdownRender))},directives:[D.gB,b.N7,an,nn,E.O5,b.xd,b.x0,E.RF,E.n9,E.tP],encapsulation:2,changeDetection:0}),de})(),xn=(()=>{class de{constructor(V,Z){this.nzOptionGroupComponent=V,this.destroy$=Z,this.changes=new o.xQ,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,M.O)(!0),(0,k.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return de.\u0275fac=function(V){return new(V||de)(r.Y36(cn,8),r.Y36(ie.kn))},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-option"]],viewQuery:function(V,Z){if(1&V&&r.Gf(r.Rgc,7),2&V){let oe;r.iGM(oe=r.CRH())&&(Z.template=oe.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[r._Bn([ie.kn]),r.TTD],ngContentSelectors:we,decls:1,vars:0,template:function(V,Z){1&V&&(r.F$t(),r.YNc(0,lt,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzDisabled",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzHide",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzCustomContent",void 0),de})(),yn=(()=>{class de{constructor(V,Z,oe){this.elementRef=V,this.renderer=Z,this.focusMonitor=oe,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new r.vpe,this.isComposingChange=new r.vpe}setCompositionState(V){this.isComposingChange.next(V)}onValueChange(V){this.value=V,this.valueChange.next(V),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const V=this.mirrorElement.nativeElement,Z=this.elementRef.nativeElement,oe=this.inputElement.nativeElement;this.renderer.removeStyle(Z,"width"),V.innerHTML=this.renderer.createText(`${oe.value} `),this.renderer.setStyle(Z,"width",`${V.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(V){const Z=this.inputElement.nativeElement,{focusTrigger:oe,showInput:De}=V;De&&(this.showInput?this.renderer.removeAttribute(Z,"readonly"):this.renderer.setAttribute(Z,"readonly","readonly")),oe&&!0===oe.currentValue&&!1===oe.previousValue&&Z.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return de.\u0275fac=function(V){return new(V||de)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(me.tE))},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-search"]],viewQuery:function(V,Z){if(1&V&&(r.Gf(ct,7),r.Gf(Lt,5)),2&V){let oe;r.iGM(oe=r.CRH())&&(Z.inputElement=oe.first),r.iGM(oe=r.CRH())&&(Z.mirrorElement=oe.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[r._Bn([{provide:Re.ve,useValue:!1}]),r.TTD],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(V,Z){1&V&&(r.TgZ(0,"input",0,1),r.NdJ("ngModelChange",function(De){return Z.onValueChange(De)})("compositionstart",function(){return Z.setCompositionState(!0)})("compositionend",function(){return Z.setCompositionState(!1)}),r.qZA(),r.YNc(2,Ie,2,0,"span",2)),2&V&&(r.Udp("opacity",Z.showInput?null:0),r.Q6J("ngModel",Z.value)("disabled",Z.disabled),r.uIk("id",Z.nzId)("autofocus",Z.autofocus?"autofocus":null),r.xp6(2),r.Q6J("ngIf",Z.mirrorSync))},directives:[Re.Fj,Re.JJ,Re.On,E.O5],encapsulation:2,changeDetection:0}),de})(),_n=(()=>{class de{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new r.vpe}onDelete(V){V.preventDefault(),V.stopPropagation(),this.disabled||this.delete.next(V)}}return de.\u0275fac=function(V){return new(V||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(V,Z){2&V&&(r.uIk("title",Z.label),r.ekj("ant-select-selection-item-disabled",Z.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(V,Z){1&V&&(r.YNc(0,Et,4,2,"ng-container",0),r.YNc(1,en,2,2,"span",1)),2&V&&(r.Q6J("nzStringTemplateOutlet",Z.contentTemplateOutlet)("nzStringTemplateOutletContext",r.VKq(3,Ne,Z.contentTemplateOutletContext)),r.xp6(1),r.Q6J("ngIf",Z.deletable&&!Z.disabled))},directives:[C.f,E.O5,S.Ls,w.w],encapsulation:2,changeDetection:0}),de})(),un=(()=>{class de{constructor(){this.placeholder=null}}return de.\u0275fac=function(V){return new(V||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(V,Z){1&V&&r.YNc(0,Ve,2,1,"ng-container",0),2&V&&r.Q6J("nzStringTemplateOutlet",Z.placeholder)},directives:[C.f],encapsulation:2,changeDetection:0}),de})(),Dt=(()=>{class de{constructor(V,Z,oe){this.elementRef=V,this.ngZone=Z,this.noAnimation=oe,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new r.vpe,this.inputValueChange=new r.vpe,this.deleteItem=new r.vpe,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new o.xQ}updateTemplateVariable(){const V=0===this.listOfTopItem.length;this.isShowPlaceholder=V&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!V&&!this.isComposing&&!this.inputValue}isComposingChange(V){this.isComposing=V,this.updateTemplateVariable()}onInputValueChange(V){V!==this.inputValue&&(this.inputValue=V,this.updateTemplateVariable(),this.inputValueChange.emit(V),this.tokenSeparate(V,this.tokenSeparators))}tokenSeparate(V,Z){if(V&&V.length&&Z.length&&"default"!==this.mode&&((ft,Jt)=>{for(let te=0;te0)return!0;return!1})(V,Z)){const ft=((ft,Jt)=>{const te=new RegExp(`[${Jt.join()}]`),T=ft.split(te).filter(p=>p);return[...new Set(T)]})(V,Z);this.tokenize.next(ft)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(V,Z){return Z.nzValue}onDeleteItem(V){!this.disabled&&!V.nzDisabled&&this.deleteItem.next(V)}ngOnChanges(V){const{listOfTopItem:Z,maxTagCount:oe,customTemplate:De,maxTagPlaceholder:ft}=V;if(Z&&this.updateTemplateVariable(),Z||oe||De||ft){const Jt=this.listOfTopItem.slice(0,this.maxTagCount).map(te=>({nzLabel:te.nzLabel,nzValue:te.nzValue,nzDisabled:te.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:te}));if(this.listOfTopItem.length>this.maxTagCount){const te=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,T=this.listOfTopItem.map(h=>h.nzValue),p={nzLabel:te,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:T.slice(this.maxTagCount)};Jt.push(p)}this.listOfSlicedItem=Jt}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,l.R)(this.elementRef.nativeElement,"click").pipe((0,k.R)(this.destroy$)).subscribe(V=>{V.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,l.R)(this.elementRef.nativeElement,"keydown").pipe((0,k.R)(this.destroy$)).subscribe(V=>{if(V.target instanceof HTMLInputElement){const Z=V.target.value;V.keyCode===ve.ZH&&"default"!==this.mode&&!Z&&this.listOfTopItem.length>0&&(V.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})})}ngOnDestroy(){this.destroy$.next()}}return de.\u0275fac=function(V){return new(V||de)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(fe.P,9))},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-top-control"]],viewQuery:function(V,Z){if(1&V&&r.Gf(yn,5),2&V){let oe;r.iGM(oe=r.CRH())&&(Z.nzSelectSearchComponent=oe.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[r.TTD],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(V,Z){1&V&&(r.ynx(0,0),r.YNc(1,yt,3,8,"ng-container",1),r.YNc(2,Ke,3,9,"ng-container",2),r.BQk(),r.YNc(3,Y,1,1,"nz-select-placeholder",3)),2&V&&(r.Q6J("ngSwitch",Z.mode),r.xp6(1),r.Q6J("ngSwitchCase","default"),r.xp6(2),r.Q6J("ngIf",Z.isShowPlaceholder))},directives:[yn,_n,un,E.RF,E.n9,E.O5,E.ED,E.sg,w.w],encapsulation:2,changeDetection:0}),de})(),it=(()=>{class de{constructor(){this.loading=!1,this.search=!1,this.suffixIcon=null}}return de.\u0275fac=function(V){return new(V||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(V,Z){2&V&&r.ekj("ant-select-arrow-loading",Z.loading)},inputs:{loading:"loading",search:"search",suffixIcon:"suffixIcon"},decls:3,vars:2,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(V,Z){if(1&V&&(r.YNc(0,G,1,0,"i",0),r.YNc(1,je,3,2,"ng-template",null,1,r.W1O)),2&V){const oe=r.MAs(2);r.Q6J("ngIf",Z.loading)("ngIfElse",oe)}},directives:[E.O5,S.Ls,w.w,C.f],encapsulation:2,changeDetection:0}),de})(),Ge=(()=>{class de{constructor(){this.clearIcon=null,this.clear=new r.vpe}onClick(V){V.preventDefault(),V.stopPropagation(),this.clear.emit(V)}}return de.\u0275fac=function(V){return new(V||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(V,Z){1&V&&r.NdJ("click",function(De){return Z.onClick(De)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(V,Z){1&V&&r.YNc(0,zt,1,0,"i",0),2&V&&r.Q6J("ngIf",!Z.clearIcon)("ngIfElse",Z.clearIcon)},directives:[E.O5,S.Ls,w.w],encapsulation:2,changeDetection:0}),de})();const St=(de,ut)=>!(!ut||!ut.nzLabel)&&ut.nzLabel.toString().toLowerCase().indexOf(de.toLowerCase())>-1;let xt=(()=>{class de{constructor(V,Z,oe,De,ft,Jt,te,T){this.destroy$=V,this.nzConfigService=Z,this.cdr=oe,this.elementRef=De,this.platform=ft,this.focusMonitor=Jt,this.directionality=te,this.noAnimation=T,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=St,this.compareWith=(p,h)=>p===h,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new r.vpe,this.nzScrollToBottom=new r.vpe,this.nzOpenChange=new r.vpe,this.nzBlur=new r.vpe,this.nzFocus=new r.vpe,this.listOfValue$=new K.X([]),this.listOfTemplateItem$=new K.X([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottom",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr"}set nzShowArrow(V){this._nzShowArrow=V}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(V){return{nzValue:V,nzLabel:V,type:"item"}}onItemClick(V){if(this.activatedValue=V,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],V))&&this.updateListOfValue([V]),this.setOpenState(!1);else{const Z=this.listOfValue.findIndex(oe=>this.compareWith(oe,V));if(-1!==Z){const oe=this.listOfValue.filter((De,ft)=>ft!==Z);this.updateListOfValue(oe)}else if(this.listOfValue.length!this.compareWith(oe,V.nzValue));this.updateListOfValue(Z),this.clearInput()}onHostClick(){this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.setOpenState(!this.nzOpen)}updateListOfContainerItem(){let V=this.listOfTagAndTemplateItem.filter(De=>!De.nzHide).filter(De=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,De));if("tags"===this.nzMode&&this.searchValue){const De=this.listOfTagAndTemplateItem.find(ft=>ft.nzLabel===this.searchValue);if(De)this.activatedValue=De.nzValue;else{const ft=this.generateTagItem(this.searchValue);V=[ft,...V],this.activatedValue=ft.nzValue}}const Z=V.find(De=>this.compareWith(De.nzValue,this.listOfValue[0]))||V[0];this.activatedValue=Z&&Z.nzValue||null;let oe=[];this.isReactiveDriven?oe=[...new Set(this.nzOptions.filter(De=>De.groupLabel).map(De=>De.groupLabel))]:this.listOfNzOptionGroupComponent&&(oe=this.listOfNzOptionGroupComponent.map(De=>De.nzLabel)),oe.forEach(De=>{const ft=V.findIndex(Jt=>De===Jt.groupLabel);ft>-1&&V.splice(ft,0,{groupLabel:De,type:"group",key:De})}),this.listOfContainerItem=[...V],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(V){const oe=((De,ft)=>"default"===this.nzMode?De.length>0?De[0]:null:De)(V);this.value!==oe&&(this.listOfValue=V,this.listOfValue$.next(V),this.value=oe,this.onChange(this.value))}onTokenSeparate(V){const Z=this.listOfTagAndTemplateItem.filter(oe=>-1!==V.findIndex(De=>De===oe.nzLabel)).map(oe=>oe.nzValue).filter(oe=>-1===this.listOfValue.findIndex(De=>this.compareWith(De,oe)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...Z]);else if("tags"===this.nzMode){const oe=V.filter(De=>-1===this.listOfTagAndTemplateItem.findIndex(ft=>ft.nzLabel===De));this.updateListOfValue([...this.listOfValue,...Z,...oe])}this.clearInput()}onOverlayKeyDown(V){V.keyCode===ve.hY&&this.setOpenState(!1)}onKeyDown(V){if(this.nzDisabled)return;const Z=this.listOfContainerItem.filter(De=>"item"===De.type).filter(De=>!De.nzDisabled),oe=Z.findIndex(De=>this.compareWith(De.nzValue,this.activatedValue));switch(V.keyCode){case ve.LH:V.preventDefault(),this.nzOpen&&(this.activatedValue=Z[oe>0?oe-1:Z.length-1].nzValue);break;case ve.JH:V.preventDefault(),this.nzOpen?this.activatedValue=Z[oe{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,V!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){(0,He.e)(()=>{var V,Z;null===(Z=null===(V=this.cdkConnectedOverlay)||void 0===V?void 0:V.overlayRef)||void 0===Z||Z.updatePosition()})}writeValue(V){if(this.value!==V){this.value=V;const oe=((De,ft)=>null==De?[]:"default"===this.nzMode?[De]:De)(V);this.listOfValue=oe,this.listOfValue$.next(oe),this.cdr.markForCheck()}}registerOnChange(V){this.onChange=V}registerOnTouched(V){this.onTouched=V}setDisabledState(V){this.nzDisabled=V,V&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(V){const{nzOpen:Z,nzDisabled:oe,nzOptions:De}=V;if(Z&&this.onOpenChange(),oe&&this.nzDisabled&&this.setOpenState(!1),De){this.isReactiveDriven=!0;const Jt=(this.nzOptions||[]).map(te=>({template:te.label instanceof r.Rgc?te.label:null,nzLabel:"string"==typeof te.label||"number"==typeof te.label?te.label:null,nzValue:te.value,nzDisabled:te.disabled||!1,nzHide:te.hide||!1,nzCustomContent:te.label instanceof r.Rgc,groupLabel:te.groupLabel||null,type:"item",key:te.value}));this.listOfTemplateItem$.next(Jt)}}ngOnInit(){var V;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,k.R)(this.destroy$)).subscribe(Z=>{Z?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,m.aj)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,k.R)(this.destroy$)).subscribe(([Z,oe])=>{const De=Z.filter(()=>"tags"===this.nzMode).filter(ft=>-1===oe.findIndex(Jt=>this.compareWith(Jt.nzValue,ft))).map(ft=>this.listOfTopItem.find(Jt=>this.compareWith(Jt.nzValue,ft))||this.generateTagItem(ft));this.listOfTagAndTemplateItem=[...oe,...De],this.listOfTopItem=this.listOfValue.map(ft=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(Jt=>this.compareWith(ft,Jt.nzValue))).filter(ft=>!!ft),this.updateListOfContainerItem()}),null===(V=this.directionality.change)||void 0===V||V.pipe((0,k.R)(this.destroy$)).subscribe(Z=>{this.dir=Z,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,k.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value}ngAfterContentInit(){this.isReactiveDriven||(0,A.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,M.O)(!0),(0,N.w)(()=>(0,A.T)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(V=>V.changes),...this.listOfNzOptionGroupComponent.map(V=>V.changes)).pipe((0,M.O)(!0))),(0,k.R)(this.destroy$)).subscribe(()=>{const V=this.listOfNzOptionComponent.toArray().map(Z=>{const{template:oe,nzLabel:De,nzValue:ft,nzDisabled:Jt,nzHide:te,nzCustomContent:T,groupLabel:p}=Z;return{template:oe,nzLabel:De,nzValue:ft,nzDisabled:Jt,nzHide:te,nzCustomContent:T,groupLabel:p,type:"item",key:ft}});this.listOfTemplateItem$.next(V),this.cdr.markForCheck()})}ngOnDestroy(){(0,He.h)(this.requestId),this.focusMonitor.stopMonitoring(this.elementRef)}}return de.\u0275fac=function(V){return new(V||de)(r.Y36(ie.kn),r.Y36(Ue.jY),r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(U.t4),r.Y36(me.tE),r.Y36(J.Is,8),r.Y36(fe.P,9))},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select"]],contentQueries:function(V,Z,oe){if(1&V&&(r.Suo(oe,xn,5),r.Suo(oe,cn,5)),2&V){let De;r.iGM(De=r.CRH())&&(Z.listOfNzOptionComponent=De),r.iGM(De=r.CRH())&&(Z.listOfNzOptionGroupComponent=De)}},viewQuery:function(V,Z){if(1&V&&(r.Gf(Le.xu,7,r.SBq),r.Gf(Le.pI,7),r.Gf(Dt,7),r.Gf(cn,7,r.SBq),r.Gf(Dt,7,r.SBq)),2&V){let oe;r.iGM(oe=r.CRH())&&(Z.originElement=oe.first),r.iGM(oe=r.CRH())&&(Z.cdkConnectedOverlay=oe.first),r.iGM(oe=r.CRH())&&(Z.nzSelectTopControlComponent=oe.first),r.iGM(oe=r.CRH())&&(Z.nzOptionGroupComponentElement=oe.first),r.iGM(oe=r.CRH())&&(Z.nzSelectTopControlComponentElement=oe.first)}},hostAttrs:[1,"ant-select"],hostVars:24,hostBindings:function(V,Z){1&V&&r.NdJ("click",function(){return Z.onHostClick()}),2&V&&r.ekj("ant-select-lg","large"===Z.nzSize)("ant-select-sm","small"===Z.nzSize)("ant-select-show-arrow",Z.nzShowArrow)("ant-select-disabled",Z.nzDisabled)("ant-select-show-search",(Z.nzShowSearch||"default"!==Z.nzMode)&&!Z.nzDisabled)("ant-select-allow-clear",Z.nzAllowClear)("ant-select-borderless",Z.nzBorderless)("ant-select-open",Z.nzOpen)("ant-select-focused",Z.nzOpen||Z.focused)("ant-select-single","default"===Z.nzMode)("ant-select-multiple","default"!==Z.nzMode)("ant-select-rtl","rtl"===Z.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[r._Bn([ie.kn,{provide:Re.JU,useExisting:(0,r.Gpc)(()=>de),multi:!0}]),r.TTD],decls:5,vars:24,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"loading","search","suffixIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","overlayKeydown","overlayOutsideClick","detach","positionChange"],[3,"loading","search","suffixIcon"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(V,Z){if(1&V&&(r.TgZ(0,"nz-select-top-control",0,1),r.NdJ("inputValueChange",function(De){return Z.onInputValueChange(De)})("tokenize",function(De){return Z.onTokenSeparate(De)})("deleteItem",function(De){return Z.onItemDelete(De)})("keydown",function(De){return Z.onKeyDown(De)}),r.qZA(),r.YNc(2,jt,1,3,"nz-select-arrow",2),r.YNc(3,Bt,1,1,"nz-select-clear",3),r.YNc(4,vn,1,19,"ng-template",4),r.NdJ("overlayKeydown",function(De){return Z.onOverlayKeyDown(De)})("overlayOutsideClick",function(De){return Z.onClickOutside(De)})("detach",function(){return Z.setOpenState(!1)})("positionChange",function(De){return Z.onPositionChange(De)})),2&V){const oe=r.MAs(1);r.Q6J("nzId",Z.nzId)("open",Z.nzOpen)("disabled",Z.nzDisabled)("mode",Z.nzMode)("@.disabled",null==Z.noAnimation?null:Z.noAnimation.nzNoAnimation)("nzNoAnimation",null==Z.noAnimation?null:Z.noAnimation.nzNoAnimation)("maxTagPlaceholder",Z.nzMaxTagPlaceholder)("removeIcon",Z.nzRemoveIcon)("placeHolder",Z.nzPlaceHolder)("maxTagCount",Z.nzMaxTagCount)("customTemplate",Z.nzCustomTemplate)("tokenSeparators",Z.nzTokenSeparators)("showSearch",Z.nzShowSearch)("autofocus",Z.nzAutoFocus)("listOfTopItem",Z.listOfTopItem),r.xp6(2),r.Q6J("ngIf",Z.nzShowArrow),r.xp6(1),r.Q6J("ngIf",Z.nzAllowClear&&!Z.nzDisabled&&Z.listOfValue.length),r.xp6(1),r.Q6J("cdkConnectedOverlayHasBackdrop",Z.nzBackdrop)("cdkConnectedOverlayMinWidth",Z.nzDropdownMatchSelectWidth?null:Z.triggerWidth)("cdkConnectedOverlayWidth",Z.nzDropdownMatchSelectWidth?Z.triggerWidth:null)("cdkConnectedOverlayOrigin",oe)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",Z.nzDropdownClassName)("cdkConnectedOverlayOpen",Z.nzOpen)}},directives:[Dt,it,Ge,Gn,w.w,Le.xu,fe.P,E.O5,Le.pI,Me.hQ,E.PC],encapsulation:2,data:{animation:[ae.mF]},changeDetection:0}),(0,z.gn)([(0,Ue.oS)()],de.prototype,"nzSuffixIcon",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzAllowClear",void 0),(0,z.gn)([(0,Ue.oS)(),(0,ce.yF)()],de.prototype,"nzBorderless",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzShowSearch",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzLoading",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzAutoFocus",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzAutoClearSearchValue",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzServerSearch",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzDisabled",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzOpen",void 0),(0,z.gn)([(0,Ue.oS)(),(0,ce.yF)()],de.prototype,"nzBackdrop",void 0),de})(),ge=(()=>{class de{}return de.\u0275fac=function(V){return new(V||de)},de.\u0275mod=r.oAB({type:de}),de.\u0275inj=r.cJS({imports:[[J.vT,E.ez,se.YI,Re.u5,U.ud,Le.U8,S.PV,C.T,D.Xo,Me.e4,fe.g,w.a,b.Cl,me.rt]]}),de})()},404:(Ft,Oe,c)=>{c.d(Oe,{XK:()=>Ue,cg:()=>He,Mg:()=>ve,SY:()=>ae,pu:()=>Re});var r=c(655),o=c(5e3),l=c(8076),K=c(8693),m=c(1721),A=c(8929),b=c(5778),D=c(7625),C=c(6950),E=c(4832),S=c(9439),w=c(226),z=c(2845),M=c(9808),k=c(969);const N=["overlay"];function ie(me,fe){if(1&me&&(o.ynx(0),o._uU(1),o.BQk()),2&me){const U=o.oxw(2);o.xp6(1),o.Oqu(U.nzTitle)}}function ce(me,fe){if(1&me&&(o.TgZ(0,"div",2),o.TgZ(1,"div",3),o.TgZ(2,"div",4),o._UZ(3,"span",5),o.qZA(),o.TgZ(4,"div",6),o.YNc(5,ie,2,1,"ng-container",7),o.qZA(),o.qZA(),o.qZA()),2&me){const U=o.oxw();o.ekj("ant-tooltip-rtl","rtl"===U.dir),o.Q6J("ngClass",U._classMap)("ngStyle",U.nzOverlayStyle)("@.disabled",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)("nzNoAnimation",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),o.xp6(3),o.Q6J("ngStyle",U._contentStyleMap),o.xp6(1),o.Q6J("ngStyle",U._contentStyleMap),o.xp6(1),o.Q6J("nzStringTemplateOutlet",U.nzTitle)("nzStringTemplateOutletContext",U.nzTitleContext)}}let ve=(()=>{class me{constructor(U,J,Me,se,we,ue){this.elementRef=U,this.hostView=J,this.resolver=Me,this.renderer=se,this.noAnimation=we,this.nzConfigService=ue,this.visibleChange=new o.vpe,this.internalVisible=!1,this.destroy$=new A.xQ,this.triggerDisposables=[]}get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return void 0!==this.trigger?this.trigger:"hover"}get _placement(){const U=this.placement;return Array.isArray(U)&&U.length>0?U:"string"==typeof U&&U?[U]:["top"]}get _visible(){return(void 0!==this.visible?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}ngOnChanges(U){const{trigger:J}=U;J&&!J.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(U)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){var U;null===(U=this.component)||void 0===U||U.show()}hide(){var U;null===(U=this.component)||void 0===U||U.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const U=this.componentRef;this.component=U.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),U.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties(),this.component.nzVisibleChange.pipe((0,b.x)(),(0,D.R)(this.destroy$)).subscribe(J=>{this.internalVisible=J,this.visibleChange.emit(J)})}registerTriggers(){const U=this.elementRef.nativeElement,J=this.trigger;if(this.removeTriggerListeners(),"hover"===J){let Me;this.triggerDisposables.push(this.renderer.listen(U,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(U,"mouseleave",()=>{var se;this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),(null===(se=this.component)||void 0===se?void 0:se.overlay.overlayRef)&&!Me&&(Me=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(Me,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(Me,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===J?(this.triggerDisposables.push(this.renderer.listen(U,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(U,"focusout",()=>this.hide()))):"click"===J&&this.triggerDisposables.push(this.renderer.listen(U,"click",Me=>{Me.preventDefault(),this.show()}))}updatePropertiesByChanges(U){this.updatePropertiesByKeys(Object.keys(U))}updatePropertiesByKeys(U){var J;const Me=Object.assign({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(U||Object.keys(Me).filter(se=>!se.startsWith("directive"))).forEach(se=>{if(Me[se]){const[we,ue]=Me[se];this.updateComponentValue(we,ue())}}),null===(J=this.component)||void 0===J||J.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(U,J){void 0!==J&&(this.component[U]=J)}delayEnterLeave(U,J,Me=-1){this.delayTimer?this.clearTogglingTimer():Me>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,J?this.show():this.hide()},1e3*Me):J&&U?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(U=>U()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return me.\u0275fac=function(U){return new(U||me)(o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(o._Vd),o.Y36(o.Qsj),o.Y36(E.P),o.Y36(S.jY))},me.\u0275dir=o.lG2({type:me,features:[o.TTD]}),me})(),Le=(()=>{class me{constructor(U,J,Me){this.cdr=U,this.directionality=J,this.noAnimation=Me,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.nzVisibleChange=new A.xQ,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...C.Ek],this.destroy$=new A.xQ}set nzVisible(U){const J=(0,m.sw)(U);this._visible!==J&&(this._visible=J,this.nzVisibleChange.next(J))}get nzVisible(){return this._visible}set nzTrigger(U){this._trigger=U}get nzTrigger(){return this._trigger}set nzPlacement(U){const J=U.map(Me=>C.yW[Me]);this._positions=[...J,...C.Ek]}ngOnInit(){var U;null===(U=this.directionality.change)||void 0===U||U.pipe((0,D.R)(this.destroy$)).subscribe(J=>{this.dir=J,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){!this.nzVisible||(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(U){this.preferredPlacement=(0,C.d_)(U),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(U){this.origin=U,this.cdr.markForCheck()}onClickOutside(U){!this.origin.nativeElement.contains(U.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}}return me.\u0275fac=function(U){return new(U||me)(o.Y36(o.sBO),o.Y36(w.Is,8),o.Y36(E.P))},me.\u0275dir=o.lG2({type:me,viewQuery:function(U,J){if(1&U&&o.Gf(N,5),2&U){let Me;o.iGM(Me=o.CRH())&&(J.overlay=Me.first)}}}),me})();function Re(me){return!(me instanceof o.Rgc||""!==me&&(0,m.DX)(me))}let ae=(()=>{class me extends ve{constructor(U,J,Me,se,we){super(U,J,Me,se,we),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new o.vpe,this.componentRef=this.hostView.createComponent(Ue)}getProxyPropertyMap(){return Object.assign(Object.assign({},super.getProxyPropertyMap()),{nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]})}}return me.\u0275fac=function(U){return new(U||me)(o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(o._Vd),o.Y36(o.Qsj),o.Y36(E.P,9))},me.\u0275dir=o.lG2({type:me,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(U,J){2&U&&o.ekj("ant-tooltip-open",J.visible)},inputs:{title:["nzTooltipTitle","title"],titleContext:["nzTooltipTitleContext","titleContext"],directiveTitle:["nz-tooltip","directiveTitle"],trigger:["nzTooltipTrigger","trigger"],placement:["nzTooltipPlacement","placement"],origin:["nzTooltipOrigin","origin"],visible:["nzTooltipVisible","visible"],mouseEnterDelay:["nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzTooltipOverlayClassName","overlayClassName"],overlayStyle:["nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:["nzTooltipArrowPointAtCenter","arrowPointAtCenter"],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],features:[o.qOj]}),(0,r.gn)([(0,m.yF)()],me.prototype,"arrowPointAtCenter",void 0),me})(),Ue=(()=>{class me extends Le{constructor(U,J,Me){super(U,J,Me),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return Re(this.nzTitle)}updateStyles(){const U=this.nzColor&&(0,K.o2)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:U},this._contentStyleMap={backgroundColor:this.nzColor&&!U?this.nzColor:null}}}return me.\u0275fac=function(U){return new(U||me)(o.Y36(o.sBO),o.Y36(w.Is,8),o.Y36(E.P,9))},me.\u0275cmp=o.Xpm({type:me,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[o.qOj],decls:2,vars:5,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(U,J){1&U&&(o.YNc(0,ce,6,11,"ng-template",0,1,o.W1O),o.NdJ("overlayOutsideClick",function(se){return J.onClickOutside(se)})("detach",function(){return J.hide()})("positionChange",function(se){return J.onPositionChange(se)})),2&U&&o.Q6J("cdkConnectedOverlayOrigin",J.origin)("cdkConnectedOverlayOpen",J._visible)("cdkConnectedOverlayPositions",J._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",J.nzArrowPointAtCenter)},directives:[z.pI,C.hQ,M.mk,M.PC,E.P,k.f],encapsulation:2,data:{animation:[l.$C]},changeDetection:0}),me})(),He=(()=>{class me{}return me.\u0275fac=function(U){return new(U||me)},me.\u0275mod=o.oAB({type:me}),me.\u0275inj=o.cJS({imports:[[w.vT,M.ez,z.U8,k.T,C.e4,E.g]]}),me})()},3618:(Ft,Oe,c)=>{c.d(Oe,{ZU:()=>pt,ZJ:()=>Et});var r=c(226),o=c(9287),l=c(925),K=c(9808),m=c(5e3),A=c(969);let b=(()=>{class ot{}return ot.\u0275fac=function(Ne){return new(Ne||ot)},ot.\u0275dir=m.lG2({type:ot,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(Ne,Ve){2&Ne&&m.Udp("border","0")("background","transparent")("padding","0")("line-height","inherit")}}),ot})(),D=(()=>{class ot{}return ot.\u0275fac=function(Ne){return new(Ne||ot)},ot.\u0275mod=m.oAB({type:ot}),ot.\u0275inj=m.cJS({imports:[[K.ez]]}),ot})();var C=c(4170),E=c(647),S=c(1047),w=c(404),z=c(8929),M=c(2654),k=c(7625),N=c(2986),ie=c(655),ce=c(9439),ve=c(6987),Le=c(1721),Re=c(4090);function ae(ot,en){if(1&ot&&(m.ynx(0),m._UZ(1,"i",2),m.BQk()),2&ot){const Ne=en.$implicit;m.xp6(1),m.Q6J("nzType",Ne)}}const Ue=["textarea"];function He(ot,en){if(1&ot&&(m.ynx(0),m._UZ(1,"i",4),m.BQk()),2&ot){const Ne=en.$implicit;m.xp6(1),m.Q6J("nzType",Ne)}}function me(ot,en){if(1&ot){const Ne=m.EpF();m.TgZ(0,"button",2),m.NdJ("click",function(){return m.CHM(Ne),m.oxw().onClick()}),m.YNc(1,He,2,1,"ng-container",3),m.qZA()}if(2&ot){const Ne=m.oxw();m.Q6J("nzTooltipTitle",null===Ne.tooltip?null:Ne.tooltip||(null==Ne.locale?null:Ne.locale.edit)),m.xp6(1),m.Q6J("nzStringTemplateOutlet",Ne.icon)}}function fe(ot,en){if(1&ot){const Ne=m.EpF();m.ynx(0),m.TgZ(1,"textarea",5,6),m.NdJ("input",function(ye){return m.CHM(Ne),m.oxw().onInput(ye)})("blur",function(){return m.CHM(Ne),m.oxw().confirm()})("keydown.esc",function(){return m.CHM(Ne),m.oxw().onCancel()})("keydown.enter",function(ye){return m.CHM(Ne),m.oxw().onEnter(ye)}),m.qZA(),m.TgZ(3,"button",7),m.NdJ("click",function(){return m.CHM(Ne),m.oxw().confirm()}),m._UZ(4,"i",8),m.qZA(),m.BQk()}}const U=["ellipsisContainer"],J=["expandable"],Me=["contentTemplate"];function se(ot,en){1&ot&&m.Hsn(0,0,["*ngIf","!content"])}function we(ot,en){if(1&ot&&(m.YNc(0,se,1,0,"ng-content",1),m._uU(1)),2&ot){const Ne=en.content;m.Q6J("ngIf",!Ne),m.xp6(1),m.hij(" ",Ne," ")}}function ue(ot,en){}function Ye(ot,en){if(1&ot&&(m.ynx(0),m._uU(1),m.BQk()),2&ot){const Ne=m.oxw(3);m.xp6(1),m.Oqu(Ne.nzSuffix)}}const We=function(ot){return{content:ot}};function rt(ot,en){if(1&ot&&(m.ynx(0),m.YNc(1,ue,0,0,"ng-template",6),m.YNc(2,Ye,2,1,"ng-container",1),m.BQk()),2&ot){const Ne=m.oxw(2),Ve=m.MAs(1);m.xp6(1),m.Q6J("ngTemplateOutlet",Ve)("ngTemplateOutletContext",m.VKq(3,We,Ne.nzContent)),m.xp6(1),m.Q6J("ngIf",Ne.nzSuffix)}}function wt(ot,en){if(1&ot&&(m.ynx(0),m._uU(1),m.BQk()),2&ot){const Ne=m.oxw(3);m.xp6(1),m.Oqu(Ne.ellipsisStr)}}function Ae(ot,en){if(1&ot&&(m.ynx(0),m._uU(1),m.BQk()),2&ot){const Ne=m.oxw(3);m.xp6(1),m.Oqu(Ne.nzSuffix)}}function mt(ot,en){if(1&ot){const Ne=m.EpF();m.TgZ(0,"a",9,10),m.NdJ("click",function(){return m.CHM(Ne),m.oxw(3).onExpand()}),m._uU(2),m.qZA()}if(2&ot){const Ne=m.oxw(3);m.xp6(2),m.hij(" ",null==Ne.locale?null:Ne.locale.expand," ")}}function kt(ot,en){if(1&ot&&(m._UZ(0,"span",null,7),m.YNc(2,wt,2,1,"ng-container",1),m.YNc(3,Ae,2,1,"ng-container",1),m.YNc(4,mt,3,1,"a",8)),2&ot){const Ne=m.oxw(2);m.xp6(2),m.Q6J("ngIf",Ne.isEllipsis),m.xp6(1),m.Q6J("ngIf",Ne.nzSuffix),m.xp6(1),m.Q6J("ngIf",Ne.nzExpandable&&Ne.isEllipsis)}}function Ct(ot,en){if(1&ot&&(m.ynx(0),m.YNc(1,rt,3,5,"ng-container",4),m.YNc(2,kt,5,3,"ng-template",null,5,m.W1O),m.BQk()),2&ot){const Ne=m.MAs(3),Ve=m.oxw();m.xp6(1),m.Q6J("ngIf",Ve.expanded||!Ve.hasOperationsWithEllipsis&&1===Ve.nzEllipsisRows&&!Ve.hasEllipsisObservers||Ve.canCssEllipsis||Ve.nzSuffix&&Ve.expanded)("ngIfElse",Ne)}}function It(ot,en){if(1&ot){const Ne=m.EpF();m.TgZ(0,"nz-text-edit",11),m.NdJ("endEditing",function(ye){return m.CHM(Ne),m.oxw().onEndEditing(ye)})("startEditing",function(){return m.CHM(Ne),m.oxw().onStartEditing()}),m.qZA()}if(2&ot){const Ne=m.oxw();m.Q6J("text",Ne.nzContent)("icon",Ne.nzEditIcon)("tooltip",Ne.nzEditTooltip)}}function Xe(ot,en){if(1&ot){const Ne=m.EpF();m.TgZ(0,"nz-text-copy",12),m.NdJ("textCopy",function(ye){return m.CHM(Ne),m.oxw().onTextCopy(ye)}),m.qZA()}if(2&ot){const Ne=m.oxw();m.Q6J("text",Ne.copyText)("tooltips",Ne.nzCopyTooltips)("icons",Ne.nzCopyIcons)}}const lt=["*"];let ct=(()=>{class ot{constructor(Ne,Ve,ye,yt){this.host=Ne,this.cdr=Ve,this.clipboard=ye,this.i18n=yt,this.copied=!1,this.copyId=-1,this.nativeElement=this.host.nativeElement,this.copyTooltip=null,this.copedTooltip=null,this.copyIcon="copy",this.copedIcon="check",this.destroy$=new z.xQ,this.icons=["copy","check"],this.textCopy=new m.vpe}ngOnInit(){this.i18n.localeChange.pipe((0,k.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(Ne){const{tooltips:Ve,icons:ye}=Ne;Ve&&this.updateTooltips(),ye&&this.updateIcons()}ngOnDestroy(){clearTimeout(this.copyId),this.destroy$.next(),this.destroy$.complete()}onClick(){if(this.copied)return;this.copied=!0,this.cdr.detectChanges();const Ne=this.text;this.textCopy.emit(Ne),this.clipboard.copy(Ne),this.onCopied()}onCopied(){clearTimeout(this.copyId),this.copyId=setTimeout(()=>{this.copied=!1,this.cdr.detectChanges()},3e3)}updateTooltips(){var Ne,Ve,ye,yt;if(null===this.tooltips)this.copedTooltip=null,this.copyTooltip=null;else if(Array.isArray(this.tooltips)){const[Mt,Ke]=this.tooltips;this.copyTooltip=Mt||(null===(Ne=this.locale)||void 0===Ne?void 0:Ne.copy),this.copedTooltip=Ke||(null===(Ve=this.locale)||void 0===Ve?void 0:Ve.copied)}else this.copyTooltip=null===(ye=this.locale)||void 0===ye?void 0:ye.copy,this.copedTooltip=null===(yt=this.locale)||void 0===yt?void 0:yt.copied;this.cdr.markForCheck()}updateIcons(){const[Ne,Ve]=this.icons;this.copyIcon=Ne,this.copedIcon=Ve,this.cdr.markForCheck()}}return ot.\u0275fac=function(Ne){return new(Ne||ot)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(o.TU),m.Y36(C.wi))},ot.\u0275cmp=m.Xpm({type:ot,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],features:[m.TTD],decls:2,vars:4,consts:[["type","button","nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"nzTooltipTitle","click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(Ne,Ve){1&Ne&&(m.TgZ(0,"button",0),m.NdJ("click",function(){return Ve.onClick()}),m.YNc(1,ae,2,1,"ng-container",1),m.qZA()),2&Ne&&(m.ekj("ant-typography-copy-success",Ve.copied),m.Q6J("nzTooltipTitle",Ve.copied?Ve.copedTooltip:Ve.copyTooltip),m.xp6(1),m.Q6J("nzStringTemplateOutlet",Ve.copied?Ve.copedIcon:Ve.copyIcon))},directives:[b,w.SY,A.f,E.Ls],encapsulation:2,changeDetection:0}),ot})(),Lt=(()=>{class ot{constructor(Ne,Ve,ye,yt){this.zone=Ne,this.host=Ve,this.cdr=ye,this.i18n=yt,this.editing=!1,this.destroy$=new z.xQ,this.icon="edit",this.startEditing=new m.vpe,this.endEditing=new m.vpe(!0),this.nativeElement=this.host.nativeElement}ngOnInit(){this.i18n.localeChange.pipe((0,k.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onClick(){this.beforeText=this.text,this.currentText=this.beforeText,this.editing=!0,this.startEditing.emit(),this.focusAndSetValue()}confirm(){this.editing=!1,this.endEditing.emit(this.currentText)}onInput(Ne){this.currentText=Ne.target.value}onEnter(Ne){Ne.stopPropagation(),Ne.preventDefault(),this.confirm()}onCancel(){this.currentText=this.beforeText,this.confirm()}focusAndSetValue(){this.zone.onStable.pipe((0,N.q)(1),(0,k.R)(this.destroy$)).subscribe(()=>{var Ne;(null===(Ne=this.textarea)||void 0===Ne?void 0:Ne.nativeElement)&&(this.textarea.nativeElement.focus(),this.textarea.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck())})}}return ot.\u0275fac=function(Ne){return new(Ne||ot)(m.Y36(m.R0b),m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(C.wi))},ot.\u0275cmp=m.Xpm({type:ot,selectors:[["nz-text-edit"]],viewQuery:function(Ne,Ve){if(1&Ne&&(m.Gf(Ue,5),m.Gf(S.rh,5)),2&Ne){let ye;m.iGM(ye=m.CRH())&&(Ve.textarea=ye.first),m.iGM(ye=m.CRH())&&(Ve.autosizeDirective=ye.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],decls:2,vars:2,consts:[["nz-tooltip","","nz-trans-button","","class","ant-typography-edit",3,"nzTooltipTitle","click",4,"ngIf"],[4,"ngIf"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"nzTooltipTitle","click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-input","","nzAutosize","",3,"input","blur","keydown.esc","keydown.enter"],["textarea",""],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nz-icon","","nzType","enter"]],template:function(Ne,Ve){1&Ne&&(m.YNc(0,me,2,2,"button",0),m.YNc(1,fe,5,0,"ng-container",1)),2&Ne&&(m.Q6J("ngIf",!Ve.editing),m.xp6(1),m.Q6J("ngIf",Ve.editing))},directives:[K.O5,b,w.SY,A.f,E.Ls,S.Zp,S.rh],encapsulation:2,changeDetection:0}),ot})(),pt=(()=>{class ot{constructor(Ne,Ve,ye,yt,Mt,Ke,Y,G,Q,Fe){this.nzConfigService=Ne,this.host=Ve,this.cdr=ye,this.viewContainerRef=yt,this.renderer=Mt,this.platform=Ke,this.i18n=Y,this.resizeService=Q,this.directionality=Fe,this._nzModuleName="typography",this.nzCopyable=!1,this.nzEditable=!1,this.nzDisabled=!1,this.nzExpandable=!1,this.nzEllipsis=!1,this.nzCopyTooltips=void 0,this.nzCopyIcons=["copy","check"],this.nzEditTooltip=void 0,this.nzEditIcon="edit",this.nzEllipsisRows=1,this.nzContentChange=new m.vpe,this.nzCopy=new m.vpe,this.nzExpandChange=new m.vpe,this.nzOnEllipsis=new m.vpe,this.expandableBtnElementCache=null,this.editing=!1,this.cssEllipsis=!1,this.isEllipsis=!0,this.expanded=!1,this.ellipsisStr="...",this.dir="ltr",this.viewInit=!1,this.rfaId=-1,this.destroy$=new z.xQ,this.windowResizeSubscription=M.w.EMPTY,this.document=G}get hasEllipsisObservers(){return this.nzOnEllipsis.observers.length>0}get canCssEllipsis(){return this.nzEllipsis&&this.cssEllipsis&&!this.expanded&&!this.hasEllipsisObservers}get hasOperationsWithEllipsis(){return(this.nzCopyable||this.nzEditable||this.nzExpandable)&&this.nzEllipsis}get copyText(){return"string"==typeof this.nzCopyText?this.nzCopyText:this.nzContent}onTextCopy(Ne){this.nzCopy.emit(Ne)}onStartEditing(){this.editing=!0}onEndEditing(Ne){this.editing=!1,this.nzContentChange.emit(Ne),this.nzContent===Ne&&this.renderOnNextFrame(),this.cdr.markForCheck()}onExpand(){this.isEllipsis=!1,this.expanded=!0,this.nzExpandChange.emit(),this.nzOnEllipsis.emit(!1)}canUseCSSEllipsis(){return!(this.nzEditable||this.nzCopyable||this.nzExpandable||this.nzSuffix||this.hasEllipsisObservers)&&(0,Le.GL)(1===this.nzEllipsisRows?"textOverflow":"webkitLineClamp")}renderOnNextFrame(){(0,ve.h)(this.rfaId),this.viewInit&&this.nzEllipsis&&!(this.nzEllipsisRows<0)&&!this.expanded&&this.platform.isBrowser&&(this.rfaId=(0,ve.e)(()=>{this.syncEllipsis()}))}getOriginContentViewRef(){const Ne=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return Ne.detectChanges(),{viewRef:Ne,removeView:()=>{this.viewContainerRef.remove(this.viewContainerRef.indexOf(Ne))}}}syncEllipsis(){if(this.cssEllipsis)return;const{viewRef:Ne,removeView:Ve}=this.getOriginContentViewRef(),ye=[this.textCopyRef,this.textEditRef].filter(Q=>Q&&Q.nativeElement).map(Q=>Q.nativeElement),yt=this.getExpandableBtnElement();yt&&ye.push(yt);const{contentNodes:Mt,text:Ke,ellipsis:Y}=(0,Le.L8)(this.host.nativeElement,this.nzEllipsisRows,Ne.rootNodes,ye,this.ellipsisStr,this.nzSuffix);Ve(),this.ellipsisText=Ke,Y!==this.isEllipsis&&(this.isEllipsis=Y,this.nzOnEllipsis.emit(Y));const G=this.ellipsisContainer.nativeElement;for(;G.firstChild;)this.renderer.removeChild(G,G.firstChild);Mt.forEach(Q=>{this.renderer.appendChild(G,Q.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){const Ne=this.locale?this.locale.expand:"",Ve=this.expandableBtnElementCache;if(!Ve||Ve.innerText===Ne){const ye=this.document.createElement("a");ye.className="ant-typography-expand",ye.innerText=Ne,this.expandableBtnElementCache=ye}return this.expandableBtnElementCache}return this.expandableBtnElementCache=null,null}renderAndSubscribeWindowResize(){this.platform.isBrowser&&(this.windowResizeSubscription.unsubscribe(),this.cssEllipsis=this.canUseCSSEllipsis(),this.renderOnNextFrame(),this.windowResizeSubscription=this.resizeService.subscribe().pipe((0,k.R)(this.destroy$)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){var Ne;this.i18n.localeChange.pipe((0,k.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),null===(Ne=this.directionality.change)||void 0===Ne||Ne.pipe((0,k.R)(this.destroy$)).subscribe(Ve=>{this.dir=Ve,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(Ne){const{nzCopyable:Ve,nzEditable:ye,nzExpandable:yt,nzEllipsis:Mt,nzContent:Ke,nzEllipsisRows:Y,nzSuffix:G}=Ne;(Ve||ye||yt||Mt||Ke||Y||G)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()}}return ot.\u0275fac=function(Ne){return new(Ne||ot)(m.Y36(ce.jY),m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(m.s_b),m.Y36(m.Qsj),m.Y36(l.t4),m.Y36(C.wi),m.Y36(K.K0),m.Y36(Re.rI),m.Y36(r.Is,8))},ot.\u0275cmp=m.Xpm({type:ot,selectors:[["nz-typography"],["","nz-typography",""],["p","nz-paragraph",""],["span","nz-text",""],["h1","nz-title",""],["h2","nz-title",""],["h3","nz-title",""],["h4","nz-title",""]],viewQuery:function(Ne,Ve){if(1&Ne&&(m.Gf(Lt,5),m.Gf(ct,5),m.Gf(U,5),m.Gf(J,5),m.Gf(Me,5)),2&Ne){let ye;m.iGM(ye=m.CRH())&&(Ve.textEditRef=ye.first),m.iGM(ye=m.CRH())&&(Ve.textCopyRef=ye.first),m.iGM(ye=m.CRH())&&(Ve.ellipsisContainer=ye.first),m.iGM(ye=m.CRH())&&(Ve.expandableBtn=ye.first),m.iGM(ye=m.CRH())&&(Ve.contentTemplate=ye.first)}},hostVars:26,hostBindings:function(Ne,Ve){2&Ne&&(m.Udp("-webkit-line-clamp",Ve.canCssEllipsis&&Ve.nzEllipsisRows>1?Ve.nzEllipsisRows:null),m.ekj("ant-typography",!Ve.editing)("ant-typography-rtl","rtl"===Ve.dir)("ant-typography-edit-content",Ve.editing)("ant-typography-secondary","secondary"===Ve.nzType)("ant-typography-warning","warning"===Ve.nzType)("ant-typography-danger","danger"===Ve.nzType)("ant-typography-success","success"===Ve.nzType)("ant-typography-disabled",Ve.nzDisabled)("ant-typography-ellipsis",Ve.nzEllipsis&&!Ve.expanded)("ant-typography-single-line",Ve.nzEllipsis&&1===Ve.nzEllipsisRows)("ant-typography-ellipsis-single-line",Ve.canCssEllipsis&&1===Ve.nzEllipsisRows)("ant-typography-ellipsis-multiple-line",Ve.canCssEllipsis&&Ve.nzEllipsisRows>1))},inputs:{nzCopyable:"nzCopyable",nzEditable:"nzEditable",nzDisabled:"nzDisabled",nzExpandable:"nzExpandable",nzEllipsis:"nzEllipsis",nzCopyTooltips:"nzCopyTooltips",nzCopyIcons:"nzCopyIcons",nzEditTooltip:"nzEditTooltip",nzEditIcon:"nzEditIcon",nzContent:"nzContent",nzEllipsisRows:"nzEllipsisRows",nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange",nzOnEllipsis:"nzOnEllipsis"},exportAs:["nzTypography"],features:[m.TTD],ngContentSelectors:lt,decls:5,vars:3,consts:[["contentTemplate",""],[4,"ngIf"],[3,"text","icon","tooltip","endEditing","startEditing",4,"ngIf"],[3,"text","tooltips","icons","textCopy",4,"ngIf"],[4,"ngIf","ngIfElse"],["jsEllipsis",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["ellipsisContainer",""],["class","ant-typography-expand",3,"click",4,"ngIf"],[1,"ant-typography-expand",3,"click"],["expandable",""],[3,"text","icon","tooltip","endEditing","startEditing"],[3,"text","tooltips","icons","textCopy"]],template:function(Ne,Ve){1&Ne&&(m.F$t(),m.YNc(0,we,2,2,"ng-template",null,0,m.W1O),m.YNc(2,Ct,4,2,"ng-container",1),m.YNc(3,It,1,3,"nz-text-edit",2),m.YNc(4,Xe,1,3,"nz-text-copy",3)),2&Ne&&(m.xp6(2),m.Q6J("ngIf",!Ve.editing),m.xp6(1),m.Q6J("ngIf",Ve.nzEditable),m.xp6(1),m.Q6J("ngIf",Ve.nzCopyable&&!Ve.editing))},directives:[Lt,ct,K.O5,K.tP],encapsulation:2,changeDetection:0}),(0,ie.gn)([(0,Le.yF)()],ot.prototype,"nzCopyable",void 0),(0,ie.gn)([(0,Le.yF)()],ot.prototype,"nzEditable",void 0),(0,ie.gn)([(0,Le.yF)()],ot.prototype,"nzDisabled",void 0),(0,ie.gn)([(0,Le.yF)()],ot.prototype,"nzExpandable",void 0),(0,ie.gn)([(0,Le.yF)()],ot.prototype,"nzEllipsis",void 0),(0,ie.gn)([(0,ce.oS)()],ot.prototype,"nzCopyTooltips",void 0),(0,ie.gn)([(0,ce.oS)()],ot.prototype,"nzCopyIcons",void 0),(0,ie.gn)([(0,ce.oS)()],ot.prototype,"nzEditTooltip",void 0),(0,ie.gn)([(0,ce.oS)()],ot.prototype,"nzEditIcon",void 0),(0,ie.gn)([(0,ce.oS)(),(0,Le.Rn)()],ot.prototype,"nzEllipsisRows",void 0),ot})(),Et=(()=>{class ot{}return ot.\u0275fac=function(Ne){return new(Ne||ot)},ot.\u0275mod=m.oAB({type:ot}),ot.\u0275inj=m.cJS({imports:[[r.vT,K.ez,E.PV,w.cg,S.o7,C.YI,D,o.Iq,A.T],l.ud]}),ot})()},2160:(Ft,Oe,c)=>{c.d(Oe,{N:()=>l});var r=c(5e3),o=c(9808);let l=(()=>{class K{constructor(A,b){this.document=A,this.platformId=b,this.documentIsAccessible=(0,o.NF)(this.platformId)}static getCookieRegExp(A){const b=A.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+b+"|;\\s*"+b+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(A){try{return decodeURIComponent(A)}catch(b){return A}}check(A){return!!this.documentIsAccessible&&(A=encodeURIComponent(A),K.getCookieRegExp(A).test(this.document.cookie))}get(A){if(this.documentIsAccessible&&this.check(A)){A=encodeURIComponent(A);const D=K.getCookieRegExp(A).exec(this.document.cookie);return D[1]?K.safeDecodeURIComponent(D[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const A={},b=this.document;return b.cookie&&""!==b.cookie&&b.cookie.split(";").forEach(D=>{const[C,E]=D.split("=");A[K.safeDecodeURIComponent(C.replace(/^ /,""))]=K.safeDecodeURIComponent(E)}),A}set(A,b,D,C,E,S,w){if(!this.documentIsAccessible)return;if("number"==typeof D||D instanceof Date||C||E||S||w)return void this.set(A,b,{expires:D,path:C,domain:E,secure:S,sameSite:w||"Lax"});let z=encodeURIComponent(A)+"="+encodeURIComponent(b)+";";const M=D||{};M.expires&&(z+="number"==typeof M.expires?"expires="+new Date((new Date).getTime()+1e3*M.expires*60*60*24).toUTCString()+";":"expires="+M.expires.toUTCString()+";"),M.path&&(z+="path="+M.path+";"),M.domain&&(z+="domain="+M.domain+";"),!1===M.secure&&"None"===M.sameSite&&(M.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${A} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),M.secure&&(z+="secure;"),M.sameSite||(M.sameSite="Lax"),z+="sameSite="+M.sameSite+";",this.document.cookie=z}delete(A,b,D,C,E="Lax"){if(!this.documentIsAccessible)return;const S=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(A,"",{expires:S,path:b,domain:D,secure:C,sameSite:E})}deleteAll(A,b,D,C="Lax"){if(!this.documentIsAccessible)return;const E=this.getAll();for(const S in E)E.hasOwnProperty(S)&&this.delete(S,A,b,D,C)}}return K.\u0275fac=function(A){return new(A||K)(r.LFG(o.K0),r.LFG(r.Lbi))},K.\u0275prov=r.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},8298:(Ft,Oe,c)=>{c.d(Oe,{f9:()=>kt,Kf:()=>Ae,_z:()=>We});var r=c(520),o=c(5e3),l=c(1086),K=c(1737),m=c(3489);class b{constructor(It,Xe){this.count=It,this.source=Xe}call(It,Xe){return Xe.subscribe(new D(It,this.count,this.source))}}class D extends m.L{constructor(It,Xe,lt){super(It),this.count=Xe,this.source=lt}error(It){if(!this.isStopped){const{source:Xe,count:lt}=this;if(0===lt)return super.error(It);lt>-1&&(this.count=lt-1),Xe.subscribe(this._unsubscribeAndRecycle())}}}var C=c(2198),E=c(4850),S=c(5154),w=c(7221),z=c(2986),M={},k={};function N(Ct){for(var It=[],Xe=0,lt=0,ct=0;ct>>=1,It.push(Pt?0===lt?-2147483648:-lt:lt),lt=Xe=0}}return It}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(Ct,It){M[Ct]=It,k[It]=Ct});var ve=c(9808);const Le="TOKEN_LOGGER_CONFIG";class Re{constructor(It){this.config=this._clone(It)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}updateConfig(It){this.config=this._clone(It)}getConfig(){return this._clone(this.config)}_clone(It){const Xe={level:null};return Object.keys(It).forEach(lt=>{Xe[lt]=It[lt]}),Xe}}const ae="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY";class Ue{provideConfigEngine(It){return new Re(It)}}const He="TOKEN_LOGGER_MAPPER_SERVICE";let me=(()=>{class Ct{constructor(Xe){this.httpBackend=Xe,this.sourceMapCache=new Map,this.logPositionCache=new Map}getLogPosition(Xe,lt){const ct=this.getStackLine(Xe);if(!ct)return(0,l.of)({fileName:"",lineNumber:0,columnNumber:0});const Lt=this.getLocalPosition(ct);if(!Xe.enableSourceMaps)return(0,l.of)(Lt);const Ie=this.getSourceMapLocation(ct);return this.getSourceMap(Ie,Lt)}getStackLine(Xe){const lt=new Error;try{throw lt}catch(ct){try{let Lt=4;return lt.stack.split("\n")[0].includes(".js:")||(Lt+=1),lt.stack.split("\n")[Lt+(Xe.proxiedSteps||0)]}catch(Lt){return null}}}getLocalPosition(Xe){const lt=Xe.lastIndexOf("/");let ct=Xe.indexOf(")");ct<0&&(ct=void 0);const Ie=Xe.substring(lt+1,ct).split(":");return 3===Ie.length?{fileName:Ie[0],lineNumber:+Ie[1],columnNumber:+Ie[2]}:{fileName:"unknown",lineNumber:0,columnNumber:0}}getTranspileLocation(Xe){let lt=Xe.indexOf("(");lt<0&&(lt=Xe.lastIndexOf("@"),lt<0&&(lt=Xe.lastIndexOf(" ")));let ct=Xe.indexOf(")");return ct<0&&(ct=void 0),Xe.substring(lt+1,ct)}getSourceMapLocation(Xe){const lt=this.getTranspileLocation(Xe),ct=lt.substring(0,lt.lastIndexOf(":"));return ct.substring(0,ct.lastIndexOf(":"))+".map"}getMapping(Xe,lt){let ct=0,Lt=0,Ie=0;const Pt=Xe.mappings.split(";");for(let pt=0;pt=4&&(Et+=Ne[0],ct+=Ne[1],Lt+=Ne[2],Ie+=Ne[3]),pt===lt.lineNumber){if(Et===lt.columnNumber)return{fileName:Xe.sources[ct],lineNumber:Lt,columnNumber:Ie};if(en+1===ot.length)return{fileName:Xe.sources[ct],lineNumber:Lt,columnNumber:0}}}}return{fileName:"unknown",lineNumber:0,columnNumber:0}}getSourceMap(Xe,lt){const ct=new r.aW("GET",Xe),Lt=`${lt.fileName}:${lt.lineNumber}:${lt.columnNumber}`;if(this.logPositionCache.has(Lt))return this.logPositionCache.get(Lt);this.sourceMapCache.has(Xe)||(this.httpBackend?this.sourceMapCache.set(Xe,this.httpBackend.handle(ct).pipe((0,C.h)(Pt=>Pt instanceof r.Zn),(0,E.U)(Pt=>Pt.body),function A(Ct=-1){return It=>It.lift(new b(Ct,It))}(3),(0,S.d)(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(Xe,(0,l.of)(null))));const Ie=this.sourceMapCache.get(Xe).pipe((0,E.U)(Pt=>Pt?this.getMapping(Pt,lt):lt),(0,w.K)(()=>(0,l.of)(lt)),(0,S.d)(1));return this.logPositionCache.set(Lt,Ie),Ie}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(r.jN,8))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const fe="TOKEN_LOGGER_METADATA_SERVICE";let U=(()=>{class Ct{constructor(Xe){this.datePipe=Xe}getMetadata(Xe,lt,ct,Lt){const Ie={level:Xe,additional:Lt};return Ie.message=ct&&"function"==typeof ct?ct():ct,Ie.timestamp=lt.timestampFormat?this.datePipe.transform(new Date,lt.timestampFormat):(new Date).toISOString(),Ie}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(ve.uU))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const Me="TOKEN_LOGGER_RULES_SERVICE";let se=(()=>{class Ct{shouldCallWriter(Xe,lt,ct,Lt){return!lt.disableConsoleLogging&&Xe>=lt.level}shouldCallServer(Xe,lt,ct,Lt){return!!lt.serverLoggingUrl&&Xe>=lt.serverLogLevel}shouldCallMonitor(Xe,lt,ct,Lt){return this.shouldCallWriter(Xe,lt,ct,Lt)||this.shouldCallServer(Xe,lt,ct,Lt)}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const we="TOKEN_LOGGER_SERVER_SERVICE";let ue=(()=>{class Ct{constructor(Xe){this.httpBackend=Xe}secureErrorObject(Xe){return null==Xe?void 0:Xe.stack}secureAdditionalParameters(Xe){return null==Xe?null:Xe.map((lt,ct)=>{try{return lt instanceof Error?this.secureErrorObject(lt):("object"==typeof lt&&JSON.stringify(lt),lt)}catch(Lt){return`The additional[${ct}] value could not be parsed using JSON.stringify().`}})}secureMessage(Xe){try{if(Xe instanceof Error)return this.secureErrorObject(Xe);"string"!=typeof Xe&&(Xe=JSON.stringify(Xe,null,2))}catch(lt){Xe='The provided "message" value could not be parsed with JSON.stringify().'}return Xe}logOnServer(Xe,lt,ct){const Lt=new r.aW("POST",Xe,lt,ct||{});return this.httpBackend?this.httpBackend.handle(Lt).pipe((0,C.h)(Ie=>Ie instanceof r.Zn),(0,E.U)(Ie=>Ie.body)):(console.error("NGXLogger : Can't log on server because HttpBackend is not provided. You need to import HttpClientModule"),(0,l.of)(null))}customiseRequestBody(Xe){return Xe}sendToServer(Xe,lt){const ct=Object.assign({},Xe);ct.additional=this.secureAdditionalParameters(ct.additional),ct.message=this.secureMessage(ct.message);const Lt=this.customiseRequestBody(ct),Ie=lt.customHttpHeaders||new r.WM;Ie.has("Content-Type")||Ie.set("Content-Type","application/json"),this.logOnServer(lt.serverLoggingUrl,Lt,{headers:Ie,params:lt.customHttpParams||new r.LE,responseType:lt.httpResponseType||"json",withCredentials:lt.withCredentials||!1}).pipe((0,w.K)(Pt=>(console.error("NGXLogger: Failed to log on server",Pt),(0,K._)(Pt)))).subscribe()}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(r.jN,8))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const Ye="TOKEN_LOGGER_WRITER_SERVICE";var We=(()=>{return(Ct=We||(We={}))[Ct.TRACE=0]="TRACE",Ct[Ct.DEBUG=1]="DEBUG",Ct[Ct.INFO=2]="INFO",Ct[Ct.LOG=3]="LOG",Ct[Ct.WARN=4]="WARN",Ct[Ct.ERROR=5]="ERROR",Ct[Ct.FATAL=6]="FATAL",Ct[Ct.OFF=7]="OFF",We;var Ct})();const rt=["purple","teal","gray","gray","red","red","red"];let wt=(()=>{class Ct{constructor(Xe){this.platformId=Xe,this.isIE=(0,ve.NF)(Xe)&&navigator&&navigator.userAgent&&!(-1===navigator.userAgent.indexOf("MSIE")&&!navigator.userAgent.match(/Trident\//)&&!navigator.userAgent.match(/Edge\//)),this.logFunc=this.isIE?this.logIE.bind(this):this.logModern.bind(this)}prepareMetaString(Xe,lt){return`${Xe.timestamp} ${We[Xe.level]} ${!0===lt.disableFileDetails?"":`[${Xe.fileName}:${Xe.lineNumber}:${Xe.columnNumber}]`}`}getColor(Xe,lt){var ct;const Lt=null!==(ct=lt.colorScheme)&&void 0!==ct?ct:rt;if(Xe.level!==We.OFF)return Lt[Xe.level]}logIE(Xe,lt,ct){const Lt=Xe.additional||[];switch(Xe.level){case We.WARN:console.warn(`${ct} `,Xe.message,...Lt);break;case We.ERROR:case We.FATAL:console.error(`${ct} `,Xe.message,...Lt);break;case We.INFO:console.info(`${ct} `,Xe.message,...Lt);break;default:console.log(`${ct} `,Xe.message,...Lt)}}logModern(Xe,lt,ct){const Lt=this.getColor(Xe,lt),Ie=Xe.additional||[];switch(Xe.level){case We.WARN:console.warn(`%c${ct}`,`color:${Lt}`,Xe.message,...Ie);break;case We.ERROR:case We.FATAL:console.error(`%c${ct}`,`color:${Lt}`,Xe.message,...Ie);break;case We.INFO:console.info(`%c${ct}`,`color:${Lt}`,Xe.message,...Ie);break;case We.DEBUG:console.debug(`%c${ct}`,`color:${Lt}`,Xe.message,...Ie);break;default:console.log(`%c${ct}`,`color:${Lt}`,Xe.message,...Ie)}}writeMessage(Xe,lt){const ct=this.prepareMetaString(Xe,lt);this.logFunc(Xe,lt,ct)}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(o.Lbi))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})(),Ae=(()=>{class Ct{constructor(Xe,lt,ct,Lt,Ie,Pt,pt){this.metadataService=ct,this.ruleService=Lt,this.mapperService=Ie,this.writerService=Pt,this.serverService=pt,this.configEngine=lt.provideConfigEngine(Xe)}get level(){return this.configEngine.level}get serverLogLevel(){return this.configEngine.serverLogLevel}trace(Xe,...lt){this._log(We.TRACE,Xe,lt)}debug(Xe,...lt){this._log(We.DEBUG,Xe,lt)}info(Xe,...lt){this._log(We.INFO,Xe,lt)}log(Xe,...lt){this._log(We.LOG,Xe,lt)}warn(Xe,...lt){this._log(We.WARN,Xe,lt)}error(Xe,...lt){this._log(We.ERROR,Xe,lt)}fatal(Xe,...lt){this._log(We.FATAL,Xe,lt)}setCustomHttpHeaders(Xe){const lt=this.getConfigSnapshot();lt.customHttpHeaders=Xe,this.updateConfig(lt)}setCustomParams(Xe){const lt=this.getConfigSnapshot();lt.customHttpParams=Xe,this.updateConfig(lt)}setWithCredentialsOptionValue(Xe){const lt=this.getConfigSnapshot();lt.withCredentials=Xe,this.updateConfig(lt)}registerMonitor(Xe){this._loggerMonitor=Xe}updateConfig(Xe){this.configEngine.updateConfig(Xe)}getConfigSnapshot(){return this.configEngine.getConfig()}_log(Xe,lt,ct=[]){const Lt=this.configEngine.getConfig(),Ie=this.ruleService.shouldCallWriter(Xe,Lt,lt,ct),Pt=this.ruleService.shouldCallServer(Xe,Lt,lt,ct),pt=this.ruleService.shouldCallMonitor(Xe,Lt,lt,ct);if(!Ie&&!Pt&&!pt)return;const Et=this.metadataService.getMetadata(Xe,Lt,lt,ct);this.mapperService.getLogPosition(Lt,Et).pipe((0,z.q)(1)).subscribe(ot=>{ot&&(Et.fileName=ot.fileName,Et.lineNumber=ot.lineNumber,Et.columnNumber=ot.columnNumber),pt&&this._loggerMonitor&&this._loggerMonitor.onLog(Et,Lt),Ie&&this.writerService.writeMessage(Et,Lt),Pt&&this.serverService.sendToServer(Et,Lt)})}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(Le),o.LFG(ae),o.LFG(fe),o.LFG(Me),o.LFG(He),o.LFG(Ye),o.LFG(we))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})(),mt=(()=>{class Ct{constructor(Xe,lt,ct,Lt,Ie,Pt){this.configEngineFactory=Xe,this.metadataService=lt,this.ruleService=ct,this.mapperService=Lt,this.writerService=Ie,this.serverService=Pt}create(Xe,lt,ct,Lt){const Ie=new Ae(Xe,this.configEngineFactory,this.metadataService,this.ruleService,Lt||this.mapperService,this.writerService,lt||this.serverService);return ct&&Ie.registerMonitor(ct),Ie}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(ae),o.LFG(fe),o.LFG(Me),o.LFG(He),o.LFG(Ye),o.LFG(we))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})(),kt=(()=>{class Ct{static forRoot(Xe,lt){if(lt||(lt={}),lt.configProvider){if(lt.configProvider.provide!==Le)throw new Error(`Wrong injection token for configProvider, it should be ${Le} and you used ${lt.configProvider.provide}`)}else lt.configProvider={provide:Le,useValue:Xe||{}};if(lt.configEngineFactoryProvider){if(lt.configEngineFactoryProvider.provide!==ae)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${ae}' and you used '${lt.configEngineFactoryProvider.provide}'`)}else lt.configEngineFactoryProvider={provide:ae,useClass:Ue};if(lt.metadataProvider){if(lt.metadataProvider.provide!==fe)throw new Error(`Wrong injection token for metadataProvider, it should be '${fe}' and you used '${lt.metadataProvider.provide}'`)}else lt.metadataProvider={provide:fe,useClass:U};if(lt.ruleProvider){if(lt.ruleProvider.provide!==Me)throw new Error(`Wrong injection token for ruleProvider, it should be '${Me}' and you used '${lt.ruleProvider.provide}'`)}else lt.ruleProvider={provide:Me,useClass:se};if(lt.mapperProvider){if(lt.mapperProvider.provide!==He)throw new Error(`Wrong injection token for mapperProvider, it should be '${He}' and you used '${lt.mapperProvider.provide}'`)}else lt.mapperProvider={provide:He,useClass:me};if(lt.writerProvider){if(lt.writerProvider.provide!==Ye)throw new Error(`Wrong injection token for writerProvider, it should be '${Ye}' and you used '${lt.writerProvider.provide}'`)}else lt.writerProvider={provide:Ye,useClass:wt};if(lt.serverProvider){if(lt.serverProvider.provide!==we)throw new Error(`Wrong injection token for serverProvider, it should be '${we}' and you used '${lt.writerProvider.provide}'`)}else lt.serverProvider={provide:we,useClass:ue};return{ngModule:Ct,providers:[Ae,lt.configProvider,lt.configEngineFactoryProvider,lt.metadataProvider,lt.ruleProvider,lt.mapperProvider,lt.writerProvider,lt.serverProvider,mt]}}static forChild(){return{ngModule:Ct}}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)},Ct.\u0275mod=o.oAB({type:Ct}),Ct.\u0275inj=o.cJS({providers:[ve.uU],imports:[[ve.ez]]}),Ct})()},4302:(Ft,Oe,c)=>{function l(me,fe){(null==fe||fe>me.length)&&(fe=me.length);for(var U=0,J=new Array(fe);UHe});var A=function(){return"function"==typeof Symbol},b=function(me){return A()&&Boolean(Symbol[me])},D=function(me){return b(me)?Symbol[me]:"@@"+me};A()&&!b("observable")&&(Symbol.observable=Symbol("observable"));var C=D("iterator"),E=D("observable"),S=D("species");function w(me,fe){var U=me[fe];if(null!=U){if("function"!=typeof U)throw new TypeError(U+" is not a function");return U}}function z(me){var fe=me.constructor;return void 0!==fe&&null===(fe=fe[S])&&(fe=void 0),void 0!==fe?fe:He}function k(me){k.log?k.log(me):setTimeout(function(){throw me})}function N(me){Promise.resolve().then(function(){try{me()}catch(fe){k(fe)}})}function ie(me){var fe=me._cleanup;if(void 0!==fe&&(me._cleanup=void 0,fe))try{if("function"==typeof fe)fe();else{var U=w(fe,"unsubscribe");U&&U.call(fe)}}catch(J){k(J)}}function ce(me){me._observer=void 0,me._queue=void 0,me._state="closed"}function Le(me,fe,U){me._state="running";var J=me._observer;try{var Me=w(J,fe);switch(fe){case"next":Me&&Me.call(J,U);break;case"error":if(ce(me),!Me)throw U;Me.call(J,U);break;case"complete":ce(me),Me&&Me.call(J)}}catch(se){k(se)}"closed"===me._state?ie(me):"running"===me._state&&(me._state="ready")}function Re(me,fe,U){if("closed"!==me._state){if("buffering"===me._state)return void me._queue.push({type:fe,value:U});if("ready"!==me._state)return me._state="buffering",me._queue=[{type:fe,value:U}],void N(function(){return function ve(me){var fe=me._queue;if(fe){me._queue=void 0,me._state="ready";for(var U=0;U1,ue=!1,Ye=arguments[1],We=Ye;return new se(function(rt){return Me.subscribe({next:function(wt){var Ae=!ue;if(ue=!0,!Ae||we)try{We=J(We,wt)}catch(mt){return rt.error(mt)}else We=wt},error:function(wt){rt.error(wt)},complete:function(){if(!ue&&!we)return rt.error(new TypeError("Cannot reduce an empty sequence"));rt.next(We),rt.complete()}})})},fe.concat=function(){for(var J=this,Me=arguments.length,se=new Array(Me),we=0;we=0&&ue.splice(Ae,1),We()}});ue.push(wt)},error:function(rt){we.error(rt)},complete:function(){We()}});function We(){Ye.closed&&0===ue.length&&we.complete()}return function(){ue.forEach(function(rt){return rt.unsubscribe()}),Ye.unsubscribe()}})},fe[E]=function(){return this},me.from=function(J){var Me="function"==typeof this?this:me;if(null==J)throw new TypeError(J+" is not an object");var se=w(J,E);if(se){var we=se.call(J);if(Object(we)!==we)throw new TypeError(we+" is not an object");return function M(me){return me instanceof He}(we)&&we.constructor===Me?we:new Me(function(ue){return we.subscribe(ue)})}if(b("iterator")&&(se=w(J,C)))return new Me(function(ue){N(function(){if(!ue.closed){for(var We,Ye=function r(me,fe){var U="undefined"!=typeof Symbol&&me[Symbol.iterator]||me["@@iterator"];if(U)return(U=U.call(me)).next.bind(U);if(Array.isArray(me)||(U=function o(me,fe){if(me){if("string"==typeof me)return l(me,fe);var U=Object.prototype.toString.call(me).slice(8,-1);if("Object"===U&&me.constructor&&(U=me.constructor.name),"Map"===U||"Set"===U)return Array.from(me);if("Arguments"===U||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return l(me,fe)}}(me))||fe&&me&&"number"==typeof me.length){U&&(me=U);var J=0;return function(){return J>=me.length?{done:!0}:{done:!1,value:me[J++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(se.call(J));!(We=Ye()).done;)if(ue.next(We.value),ue.closed)return;ue.complete()}})});if(Array.isArray(J))return new Me(function(ue){N(function(){if(!ue.closed){for(var Ye=0;Ye{Ft(Ft.s=9726)}]); \ No newline at end of file diff --git a/server/public/main.f13c0355e8f1931c.js b/server/public/main.f13c0355e8f1931c.js deleted file mode 100644 index 718759672..000000000 --- a/server/public/main.f13c0355e8f1931c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[179],{6949:(Ft,Pe,c)=>{c.d(Pe,{eJ:()=>M,fM:()=>z,WG:()=>ie});var r=c(5e3),o=c(8929),l=c(8896),K=c(4715),m=c(5254),A=c(5778),b=c(7545),D=c(2868),C=c(7221);function E(ce){const ve=new o.xQ,Re=ve.pipe((0,A.x)()).pipe((0,b.w)(ae=>{if(null==ae)return ce.updateViewContextObserver.next(ae),ce.render(),l.E;const Ue=(0,K.b)(ae)?ae:(0,m.D)(ae);return ce.resetContextObserver.next(),ce.render(),Ue.pipe((0,A.x)(),(0,D.b)(ce.updateViewContextObserver),(0,D.b)(()=>ce.render()),(0,C.K)(He=>(ce.errorHandler.handleError(He),l.E)))}));return{nextPotentialObservable(ae){ve.next(ae)},subscribe:()=>Re.subscribe()}}function w(ce){return function ve(){!function S(ce){return ce instanceof r.R0b}(ce.ngZone)?ce.cdRef.detectChanges():ce.cdRef.markForCheck()}}let z=(()=>{class ce{constructor(Le,Re,ae){this.resetContextObserver={next:()=>this.renderedValue=void 0},this.updateViewContextObserver={next:Ue=>this.renderedValue=Ue},this.cdAware=E({render:w({cdRef:Le,ngZone:Re}),updateViewContextObserver:this.updateViewContextObserver,resetContextObserver:this.resetContextObserver,errorHandler:ae}),this.subscription=this.cdAware.subscribe({})}transform(Le){return this.cdAware.nextPotentialObservable(Le),this.renderedValue}ngOnDestroy(){this.subscription.unsubscribe()}}return ce.\u0275fac=function(Le){return new(Le||ce)(r.Y36(r.sBO,16),r.Y36(r.R0b,16),r.Y36(r.qLn,16))},ce.\u0275pipe=r.Yjl({name:"ngrxPush",type:ce,pure:!1}),ce})(),M=(()=>{class ce{constructor(Le,Re,ae,Ue,He){this.templateRef=ae,this.viewContainerRef=Ue,this.viewContext={$implicit:void 0,ngrxLet:void 0,$error:!1,$complete:!1},this.resetContextObserver={next:()=>{this.embeddedView&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.$error=!1,this.viewContext.$complete=!1)}},this.updateViewContextObserver={next:me=>{this.embeddedView||this.createEmbeddedView(),this.viewContext.$implicit=me,this.viewContext.ngrxLet=me},error:me=>{this.embeddedView||this.createEmbeddedView(),this.viewContext.$error=!0},complete:()=>{this.embeddedView||this.createEmbeddedView(),this.viewContext.$complete=!0}},this.cdAware=E({render:w({cdRef:Le,ngZone:Re}),resetContextObserver:this.resetContextObserver,updateViewContextObserver:this.updateViewContextObserver,errorHandler:He}),this.subscription=this.cdAware.subscribe({})}static ngTemplateContextGuard(Le,Re){return!0}set ngrxLet(Le){this.cdAware.nextPotentialObservable(Le)}createEmbeddedView(){this.embeddedView=this.viewContainerRef.createEmbeddedView(this.templateRef,this.viewContext)}ngOnDestroy(){this.subscription.unsubscribe()}}return ce.\u0275fac=function(Le){return new(Le||ce)(r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(r.qLn))},ce.\u0275dir=r.lG2({type:ce,selectors:[["","ngrxLet",""]],inputs:{ngrxLet:"ngrxLet"}}),ce})(),ie=(()=>{class ce{}return ce.\u0275fac=function(Le){return new(Le||ce)},ce.\u0275mod=r.oAB({type:ce}),ce.\u0275inj=r.cJS({}),ce})()},9169:(Ft,Pe,c)=>{c.d(Pe,{Y:()=>l});var r=c(591),o=c(5e3);let l=(()=>{class K{constructor(){this.networkError$=new r.X(void 0)}clearErrors(){this.networkError$.next(void 0)}}return K.\u0275fac=function(A){return new(A||K)},K.\u0275prov=o.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},7026:(Ft,Pe,c)=>{c.d(Pe,{x:()=>w});var r=c(8625),o=c(5e3);const K=3600,m=24*K,b=365*m,C=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),S=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let w=(()=>{class z extends r.KP{format(k){const N=Date.now(),ie=Math.round(Math.abs(N-k)/1e3);if(ie>=2592e3&&ie=b){let Re=new Date(k);return S.format(Re)}let ce,ve;return ie<60?(ce=Math.round(ie),ve="second"):ie1?"s":""} ago`}}return z.\u0275fac=function(){let M;return function(N){return(M||(M=o.n5z(z)))(N||z)}}(),z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),z})()},2215:(Ft,Pe,c)=>{var r=c(2313),o=c(5e3),l=c(9808);const K=void 0,A=["en",[["a","p"],["AM","PM"],K],[["AM","PM"],K,K],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],K,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],K,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",K,"{1} 'at' {0}",K],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function m(te){const V=Math.floor(Math.abs(te)),X=te.toString().replace(/^[^.]*\.?/,"").length;return 1===V&&0===X?1:5}];var b=c(520),D=c(6360),C=c(6949),E=c(2160);c(9193);const Ce=[{name:"adminFullcolor",data:''},{name:"assertionFullcolor",data:''},{name:"commentFullcolor",data:''},{name:"coordinatesystemFullcolor",data:''},{name:"curatorFullcolor",data:''},{name:"diseaseFullcolor",data:''},{name:"editorFullcolor",data:''},{name:"eventFullcolor",data:''},{name:"evidenceFullcolor",data:''},{name:"flagFullcolor",data:''},{name:"geneFullcolor",data:''},{name:"interventionFullcolor",data:''},{name:"molecularprofileFullcolor",data:''},{name:"organizationFullcolor",data:''},{name:"phenotypeFullcolor",data:''},{name:"revisionFullcolor",data:''},{name:"sourceFullcolor",data:''},{name:"userFullcolor",data:''},{name:"variant",data:''},{name:"variantgroupFullcolor",data:''},{name:"varianttypeFullcolor",data:''}],ke=function tt(te){const Y=[];return te.forEach(V=>{const X={name:Ht(V.name),theme:Xt(V.name),icon:V.data};Y.push(X)}),Y}([{name:"adverseresponseOutline",data:''},{name:"benignOutline",data:''},{name:"betteroutcomeOutline",data:''},{name:"commongermlineOutline",data:''},{name:"diagnosticOutline",data:''},{name:"doesnotsupportOutline",data:''},{name:"dominantnegativeOutline",data:''},{name:"functionalOutline",data:''},{name:"gainoffunctionOutline",data:''},{name:"likelybenignOutline",data:''},{name:"likelypathogenicOutline",data:''},{name:"lossoffunctionOutline",data:''},{name:"naOutline",data:''},{name:"negativeOutline",data:''},{name:"neomorphicOutline",data:''},{name:"oncogenicOutline",data:''},{name:"unknownOutline",data:''},{name:"pathogenicOutline",data:''},{name:"positiveOutline",data:''},{name:"predictiveOutline",data:''},{name:"predisposingOutline",data:''},{name:"prognosticOutline",data:''},{name:"raregermlineOutline",data:''},{name:"reducedsensitivityOutline",data:''},{name:"resistanceOutline",data:''},{name:"sensitivityresponseOutline",data:''},{name:"significanceunknownOutline",data:''},{name:"somaticOutline",data:''},{name:"supportsOutline",data:''},{name:"unalteredfunctionOutline",data:''},{name:"uncertainsignificanceOutline",data:''},{name:"pooroutcomeOutline",data:''},{name:"adminOutline",data:''},{name:"assertionOutline",data:''},{name:"commentOutline",data:''},{name:"coordinatesystemOutline",data:''},{name:"curatorOutline",data:''},{name:"diseaseOutline",data:''},{name:"editorOutline",data:''},{name:"eventOutline",data:''},{name:"evidenceOutline",data:''},{name:"flagOutline",data:''},{name:"geneOutline",data:''},{name:"interventionOutline",data:''},{name:"molecularprofileOutline",data:''},{name:"organizationOutline",data:''},{name:"phenotypeOutline",data:''},{name:"revisionOutline",data:''},{name:"sourceOutline",data:''},{name:"userOutline",data:''},{name:"variantgroupOutline",data:''},{name:"varianttypeOutline",data:''},{name:"variantOutline",data:''},{name:"adminTwotone",data:''},{name:"assertionTwotone",data:''},{name:"commentTwotone",data:''},{name:"coordinatesystemTwotone",data:''},{name:"curatorTwotone",data:''},{name:"diseaseTwotone",data:''},{name:"editorTwotone",data:''},{name:"eventTwotone",data:''},{name:"evidenceTwotone",data:''},{name:"flagTwotone",data:''},{name:"geneTwotone",data:''},{name:"interventionTwotone",data:''},{name:"molecularprofileTwotone",data:''},{name:"organizationTwotone",data:''},{name:"phenotypeTwotone",data:''},{name:"revisionTwotone",data:''},{name:"sourceTwotone",data:''},{name:"userTwotone",data:''},{name:"variantTwotone",data:''},{name:"variantgroupTwotone",data:''},{name:"varianttypeTwotone",data:''}]);function Ht(te){return"civic-"+function S(te){return te.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}(te.replace(/Outline|Fill|TwoTone/i,""))}function Xt(te){return te.includes("Twotone")?"twotone":te.includes("Outline")?"outline":te.includes("Fill")?"fill":void 0}var dn=c(8625),Mn=c(8298),jn=c(5109),Ci=c(4170),ii=c(325);const si=[{path:"",loadChildren:()=>c.e(4024).then(c.bind(c,4024)).then(te=>te.LayoutModule)}],pi={paramsInheritanceStrategy:"always",anchorScrolling:"enabled",scrollOffset:[0,64],onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"};let Wi=(()=>{class te{}return te.\u0275fac=function(V){return new(V||te)},te.\u0275mod=o.oAB({type:te}),te.\u0275inj=o.cJS({imports:[[ii.Bz.forRoot(si,pi)],ii.Bz]}),te})();var Si=c(647),Ii=c(9169),qi=c(3640),Ro=c(9287),Ho=c(2359),wo=c(6042),Bo=c(2683),Co=c(2643);function Xi(te,Y){if(1&te&&o._uU(0),2&te){const V=o.oxw().ngIf;o.lnq(" ",V.name," ",V.status," ",V.statusText," ")}}function bo(te,Y){1&te&&o.GkF(0)}const Do=function(te){return{error:te}};function ro(te,Y){if(1&te&&(o.ynx(0),o.YNc(1,bo,1,0,"ng-container",9),o.BQk()),2&te){const V=o.oxw().ngIf;o.oxw(2);const X=o.MAs(7);o.xp6(1),o.Q6J("ngTemplateOutlet",X)("ngTemplateOutletContext",o.VKq(2,Do,V[0]))}}function Jo(te,Y){1&te&&o.GkF(0)}function To(te,Y){if(1&te&&(o.TgZ(0,"li"),o.YNc(1,Jo,1,0,"ng-container",9),o.qZA()),2&te){const V=Y.$implicit;o.oxw(4);const X=o.MAs(7);o.xp6(1),o.Q6J("ngTemplateOutlet",X)("ngTemplateOutletContext",o.VKq(2,Do,V))}}function qo(te,Y){if(1&te&&(o.ynx(0),o.TgZ(1,"ul",10),o.YNc(2,To,2,4,"li",11),o.qZA(),o.BQk()),2&te){const V=o.oxw().ngIf;o.xp6(2),o.Q6J("ngForOf",V)}}function so(te,Y){if(1&te&&(o.ynx(0),o.YNc(1,ro,2,4,"ng-container",8),o.YNc(2,qo,3,1,"ng-container",8),o.BQk()),2&te){const V=Y.ngIf;o.xp6(1),o.Q6J("ngIf",1===V.length),o.xp6(1),o.Q6J("ngIf",V.length>1)}}function Mo(te,Y){if(1&te&&o.YNc(0,so,3,2,"ng-container",8),2&te){const V=o.oxw().ngIf;o.Q6J("ngIf",V.error.errors)}}function So(te,Y){if(1&te){const V=o.EpF();o.TgZ(0,"button",13),o.NdJ("click",function(){o.CHM(V);const Oe=o.oxw().error;o.oxw();const Ze=o.MAs(11),at=o.MAs(9);return o.oxw().showModal("Backtrace for '"+Oe.message+"'",Oe.backtrace,Ze,at)}),o._uU(1," View Backtrace "),o.qZA()}}function Vi(te,Y){if(1&te&&(o._uU(0),o.YNc(1,So,2,0,"button",12)),2&te){const V=Y.error;o.hij(" ",V.message," "),o.xp6(1),o.Q6J("ngIf",V.backtrace.length>0)}}function Xo(te,Y){if(1&te&&(o.TgZ(0,"pre",14),o._uU(1),o.qZA()),2&te){const V=Y.$implicit;o.xp6(1),o.Oqu(V.backtrace)}}function xi(te,Y){if(1&te){const V=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){return o.CHM(V),o.oxw(2).copyToClipboard()}),o._uU(1,"Copy to Clipboard"),o.qZA(),o.TgZ(2,"button",16),o.NdJ("click",function(){const Ze=o.CHM(V).modalRef;return o.oxw(2).hideModal(Ze)}),o._uU(3,"OK"),o.qZA()}}function Yo(te,Y){if(1&te){const V=o.EpF();o.TgZ(0,"div",1),o.TgZ(1,"nz-alert",2),o.NdJ("nzOnClose",function(){return o.CHM(V),o.oxw().onClose()}),o.qZA(),o.YNc(2,Xi,1,3,"ng-template",null,3,o.W1O),o.YNc(4,Mo,1,1,"ng-template",null,4,o.W1O),o.YNc(6,Vi,2,2,"ng-template",null,5,o.W1O),o.YNc(8,Xo,2,1,"ng-template",null,6,o.W1O),o.YNc(10,xi,4,0,"ng-template",null,7,o.W1O),o.qZA()}if(2&te){const V=o.MAs(3),X=o.MAs(5);o.xp6(1),o.Q6J("nzMessage",V)("nzDescription",X)}}let Yi=(()=>{class te{constructor(V,X,Oe){this.modal=X,this.clipboard=Oe,this.modalVisible=!1,this.errors=V}showModal(V,X,Oe,Ze){this.modalContent=X.join("\n"),this.modal.create({nzTitle:V,nzFooter:Oe,nzContent:Ze,nzWidth:800,nzBodyStyle:{"max-height":"500px",overflow:"hidden","overflow-y":"scroll"},nzClosable:!0,nzOkDisabled:!0,nzCancelDisabled:!0,nzComponentParams:{backtrace:this.modalContent}})}hideModal(V){V.destroy()}onClose(){this.errors.clearErrors()}copyToClipboard(){this.clipboard.copy(this.modalContent)}}return te.\u0275fac=function(V){return new(V||te)(o.Y36(Ii.Y),o.Y36(qi.Sf),o.Y36(Ro.TU))},te.\u0275cmp=o.Xpm({type:te,selectors:[["cvc-network-error-alert"]],decls:2,vars:3,consts:[["class","alert-container",4,"ngIf"],[1,"alert-container"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzDescription","nzOnClose"],["alertMessage",""],["alertDescription",""],["errorDisplay",""],["modalContent",""],["modalFooter",""],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"error-list"],[4,"ngFor","ngForOf"],["nz-button","","nzSize","small","nzType","link",3,"click",4,"ngIf"],["nz-button","","nzSize","small","nzType","link",3,"click"],[2,"white-space","pre-wrap","font-size","80%"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(V,X){1&V&&(o.YNc(0,Yo,12,2,"div",0),o.ALo(1,"ngrxPush")),2&V&&o.Q6J("ngIf",o.lcZ(1,1,X.errors.networkError$))},directives:[l.O5,Ho.r,l.tP,l.sg,wo.ix,Bo.w,Co.dQ],pipes:[C.fM],styles:["[_nghost-%COMP%]{display:block}.alert-container[_ngcontent-%COMP%]{display:block;width:100%;padding:12px 24px}[_nghost-%COMP%] nz-alert .ant-alert-banner{border-radius:8px;border:2px solid #cf1322}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"]}),te})(),po=(()=>{class te{constructor(V,X){this.iconService=V,this.router=X,this.addIcons(Ce),this.router.events.subscribe(Oe=>{Oe instanceof ii.m2&>ag("config","UA-60119642-1",{page_path:Oe.urlAfterRedirects})})}addIcons(V){V.forEach(X=>{const Ze="civic:"+X.name.replace(/Fullcolor/i,"");this.iconService.addIconLiteral(Ze,X.data)})}}return te.\u0275fac=function(V){return new(V||te)(o.Y36(Si.H5),o.Y36(ii.F0))},te.\u0275cmp=o.Xpm({type:te,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"alert-container"],[1,"app-container"]],template:function(V,X){1&V&&(o.TgZ(0,"div",0),o._UZ(1,"cvc-network-error-alert"),o.qZA(),o.TgZ(2,"div",1),o._UZ(3,"router-outlet"),o.qZA())},directives:[Yi,ii.lC],styles:[".alert-container[_ngcontent-%COMP%]{position:absolute;z-index:100;width:100%}.app-container[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;z-index:0;overflow-y:auto}"]}),te})();var mo=c(484),eo=c(4302),ao=c(4989),jo=c(7887),to=c.n(jo),$i=c(2916);class Oo extends mo.i{constructor(Y,V){super(),this.httpClient=Y,this.options=V,this.print=ao.S,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=X=>new eo.y(Oe=>{const Ze=X.getContext(),at=(Xn,ai)=>function Oi(...te){const Y=te.find(V=>void 0!==V);return void 0===Y?te[te.length-1]:Y}(Ze[Xn],this.options[Xn],ai),Yt=at("includeQuery",!0),Gt=at("includeExtensions",!1),Nt=at("method","POST"),sn=at("uri","graphql"),ln=at("withCredentials"),gn=at("useMultipart"),wn={method:Nt,url:"function"==typeof sn?sn(X):sn,body:{operationName:X.operationName,variables:X.variables},options:{withCredentials:ln,useMultipart:gn,headers:this.options.headers}};Gt&&(wn.body.extensions=X.extensions),Yt&&(wn.body.query=this.print(X.query));const Yn=function xo(te){let Y=te.headers&&te.headers instanceof b.WM?te.headers:new b.WM(te.headers);if(te.clientAwareness){const{name:V,version:X}=te.clientAwareness;V&&!Y.has("apollographql-client-name")&&(Y=Y.set("apollographql-client-name",V)),X&&!Y.has("apollographql-client-version")&&(Y=Y.set("apollographql-client-version",X))}return Y}(Ze);wn.options.headers=((te,Y)=>te&&Y?Y.keys().reduce((X,Oe)=>X.set(Oe,Y.getAll(Oe)),te):Y||te)(wn.options.headers,Yn);const Rn=((te,Y,V)=>{const X=-1!==["POST","PUT","PATCH"].indexOf(te.method.toUpperCase()),Ze=te.body.length;let Yt,at=te.options&&te.options.useMultipart;if(at){if(Ze)return new $i.y(Nt=>Nt.error(new Error("File upload is not available when combined with Batching")));if(!X)return new $i.y(Nt=>Nt.error(new Error("File upload is not available when GET is used")));Yt=V(te.body),at=!!Yt.files.size}let Gt={};if(Ze){if(!X)return new $i.y(Nt=>Nt.error(new Error("Batching is not available for GET requests")));Gt={body:te.body}}else{const Nt=at?Yt.clone:te.body;Gt=X?{body:Nt}:{params:Object.keys(te.body).reduce((ln,gn)=>{const wn=te.body[gn];return ln[gn]=(Nt=>-1!==["variables","extensions"].indexOf(Nt.toLowerCase()))(gn)?JSON.stringify(wn):wn,ln},{})}}if(at&&X){const Nt=new FormData;Nt.append("operations",JSON.stringify(Gt.body));const sn={},ln=Yt.files;let gn=0;ln.forEach(wn=>{sn[++gn]=wn}),Nt.append("map",JSON.stringify(sn)),gn=0,ln.forEach((wn,Yn)=>{Nt.append(++gn+"",Yn,Yn.name)}),Gt.body=Nt}return Y.request(te.method,te.url,Object.assign(Object.assign({observe:"response",responseType:"json",reportProgress:!1},Gt),te.options))})(wn,this.httpClient,to()).subscribe({next:Xn=>{X.setContext({response:Xn}),Oe.next(Xn.body)},error:Xn=>Oe.error(Xn),complete:()=>Oe.complete()});return()=>{Rn.closed||Rn.unsubscribe()}})}request(Y){return this.requester(Y)}}let Uo=(()=>{class te{constructor(V){this.httpClient=V}create(V){return new Oo(this.httpClient,V)}}return te.\u0275fac=function(V){return new(V||te)(o.LFG(b.eN))},te.\u0275prov=o.Yz7({factory:function(){return new te(o.LFG(b.eN))},token:te,providedIn:"root"}),te})();var ji=c(9298),zn=c(655),Zn=c(9349),j=c(9769),_e=c(7883),W=c(9661),ze=function(){function te(){this.getFragmentDoc=(0,j.re)(W.Yk)}return te.prototype.batch=function(Y){var Oe,V=this;return this.performTransaction(function(){return Oe=Y.update(V)},"string"==typeof Y.optimistic?Y.optimistic:!1===Y.optimistic?null:void 0),Oe},te.prototype.recordOptimisticTransaction=function(Y,V){this.performTransaction(Y,V)},te.prototype.transformDocument=function(Y){return Y},te.prototype.identify=function(Y){},te.prototype.gc=function(){return[]},te.prototype.modify=function(Y){return!1},te.prototype.transformForLink=function(Y){return Y},te.prototype.readQuery=function(Y,V){return void 0===V&&(V=!!Y.optimistic),this.read((0,zn.pi)((0,zn.pi)({},Y),{rootId:Y.id||"ROOT_QUERY",optimistic:V}))},te.prototype.readFragment=function(Y,V){return void 0===V&&(V=!!Y.optimistic),this.read((0,zn.pi)((0,zn.pi)({},Y),{query:this.getFragmentDoc(Y.fragment,Y.fragmentName),rootId:Y.id,optimistic:V}))},te.prototype.writeQuery=function(Y){var V=Y.id,X=Y.data,Oe=(0,zn._T)(Y,["id","data"]);return this.write(Object.assign(Oe,{dataId:V||"ROOT_QUERY",result:X}))},te.prototype.writeFragment=function(Y){var V=Y.id,X=Y.data,Oe=Y.fragment,Ze=Y.fragmentName,at=(0,zn._T)(Y,["id","data","fragment","fragmentName"]);return this.write(Object.assign(at,{query:this.getFragmentDoc(Oe,Ze),dataId:V,result:X}))},te.prototype.updateQuery=function(Y,V){return this.batch({update:function(X){var Oe=X.readQuery(Y),Ze=V(Oe);return null==Ze?Oe:(X.writeQuery((0,zn.pi)((0,zn.pi)({},Y),{data:Ze})),Ze)}})},te.prototype.updateFragment=function(Y,V){return this.batch({update:function(X){var Oe=X.readFragment(Y),Ze=V(Oe);return null==Ze?Oe:(X.writeFragment((0,zn.pi)((0,zn.pi)({},Y),{data:Ze})),Ze)}})},te}(),st=function te(Y,V,X,Oe){this.message=Y,this.path=V,this.query=X,this.variables=Oe},bt=c(7634),Zt=c(3291),Cn=c(9545),li=c(3950),ni=c(9419),oi=c(7773),$n=c(9722),hi=c(7062);function no(te){return __DEV__&&function gi(te){var Y=new Set([te]);return Y.forEach(function(V){(0,hi.s)(V)&&function An(te){if(__DEV__&&!Object.isFrozen(te))try{Object.freeze(te)}catch(Y){if(Y instanceof TypeError)return null;throw Y}return te}(V)===V&&Object.getOwnPropertyNames(V).forEach(function(X){(0,hi.s)(V[X])&&Y.add(V[X])})}),te}(te),te}var $=c(9428),L=Object.prototype.hasOwnProperty;function F(te,Y){var V=te.__typename,X=te.id,Oe=te._id;if("string"==typeof V&&(Y&&(Y.keyObject=void 0!==X?{id:X}:void 0!==Oe?{_id:Oe}:void 0),void 0===X&&(X=Oe),void 0!==X))return"".concat(V,":").concat("number"==typeof X||"string"==typeof X?X:JSON.stringify(X))}var Te={dataIdFromObject:F,addTypename:!0,resultCaching:!0,canonizeResults:!1};function On(te){var Y=te.canonizeResults;return void 0===Y?Te.canonizeResults:Y}var re=/^[_a-z][_0-9a-z]*/i;function u(te){var Y=te.match(re);return Y?Y[0]:te}function d(te,Y,V){return!!(0,hi.s)(Y)&&(Array.isArray(Y)?Y.every(function(X){return d(te,X,V)}):te.selections.every(function(X){if((0,bt.My)(X)&&(0,$n.LZ)(X,V)){var Oe=(0,bt.u2)(X);return L.call(Y,Oe)&&(!X.selectionSet||d(X.selectionSet,Y[Oe],V))}return!0}))}function x(te){return(0,hi.s)(te)&&!(0,bt.Yk)(te)&&!Array.isArray(te)}var te,Y,Se=Object.create(null),qe=function(){return Se},nt=Object.create(null),Ot=function(){function te(Y,V){var X=this;this.policies=Y,this.group=V,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(Oe,Ze){return no((0,bt.Yk)(Oe)?X.get(Oe.__ref,Ze):Oe&&Oe[Ze])},this.canRead=function(Oe){return(0,bt.Yk)(Oe)?X.has(Oe.__ref):"object"==typeof Oe},this.toReference=function(Oe,Ze){if("string"==typeof Oe)return(0,bt.kQ)(Oe);if((0,bt.Yk)(Oe))return Oe;var at=X.policies.identify(Oe)[0];if(at){var Yt=(0,bt.kQ)(at);return Ze&&X.merge(at,Oe),Yt}}}return te.prototype.toObject=function(){return(0,zn.pi)({},this.data)},te.prototype.has=function(Y){return void 0!==this.lookup(Y,!0)},te.prototype.get=function(Y,V){if(this.group.depend(Y,V),L.call(this.data,Y)){var X=this.data[Y];if(X&&L.call(X,V))return X[V]}return"__typename"===V&&L.call(this.policies.rootTypenamesById,Y)?this.policies.rootTypenamesById[Y]:this instanceof Pn?this.parent.get(Y,V):void 0},te.prototype.lookup=function(Y,V){return V&&this.group.depend(Y,"__exists"),L.call(this.data,Y)?this.data[Y]:this instanceof Pn?this.parent.lookup(Y,V):this.policies.rootTypenamesById[Y]?Object.create(null):void 0},te.prototype.merge=function(Y,V){var Oe,X=this;(0,bt.Yk)(Y)&&(Y=Y.__ref),(0,bt.Yk)(V)&&(V=V.__ref);var Ze="string"==typeof Y?this.lookup(Oe=Y):Y,at="string"==typeof V?this.lookup(Oe=V):V;if(at){__DEV__?(0,Zn.kG)("string"==typeof Oe,"store.merge expects a string ID"):(0,Zn.kG)("string"==typeof Oe,1);var Yt=new oi.w0(In).merge(Ze,at);if(this.data[Oe]=Yt,Yt!==Ze&&(delete this.refs[Oe],this.group.caching)){var Gt=Object.create(null);Ze||(Gt.__exists=1),Object.keys(at).forEach(function(Nt){if(!Ze||Ze[Nt]!==Yt[Nt]){Gt[Nt]=1;var sn=u(Nt);sn!==Nt&&!X.policies.hasKeyArgs(Yt.__typename,sn)&&(Gt[sn]=1),void 0===Yt[Nt]&&!(X instanceof Pn)&&delete Yt[Nt]}}),Gt.__typename&&!(Ze&&Ze.__typename)&&this.policies.rootTypenamesById[Oe]===Yt.__typename&&delete Gt.__typename,Object.keys(Gt).forEach(function(Nt){return X.group.dirty(Oe,Nt)})}}},te.prototype.modify=function(Y,V){var X=this,Oe=this.lookup(Y);if(Oe){var Ze=Object.create(null),at=!1,Yt=!0,Gt={DELETE:Se,INVALIDATE:nt,isReference:bt.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(Nt,sn){return X.policies.readField("string"==typeof Nt?{fieldName:Nt,from:sn||(0,bt.kQ)(Y)}:Nt,{store:X})}};if(Object.keys(Oe).forEach(function(Nt){var sn=u(Nt),ln=Oe[Nt];if(void 0!==ln){var gn="function"==typeof V?V:V[Nt]||V[sn];if(gn){var wn=gn===qe?Se:gn(no(ln),(0,zn.pi)((0,zn.pi)({},Gt),{fieldName:sn,storeFieldName:Nt,storage:X.getStorage(Y,Nt)}));wn===nt?X.group.dirty(Y,Nt):(wn===Se&&(wn=void 0),wn!==ln&&(Ze[Nt]=wn,at=!0,ln=wn))}void 0!==ln&&(Yt=!1)}}),at)return this.merge(Y,Ze),Yt&&(this instanceof Pn?this.data[Y]=void 0:delete this.data[Y],this.group.dirty(Y,"__exists")),!0}return!1},te.prototype.delete=function(Y,V,X){var Oe,Ze=this.lookup(Y);if(Ze){var at=this.getFieldValue(Ze,"__typename"),Yt=V&&X?this.policies.getStoreFieldName({typename:at,fieldName:V,args:X}):V;return this.modify(Y,Yt?((Oe={})[Yt]=qe,Oe):qe)}return!1},te.prototype.evict=function(Y,V){var X=!1;return Y.id&&(L.call(this.data,Y.id)&&(X=this.delete(Y.id,Y.fieldName,Y.args)),this instanceof Pn&&this!==V&&(X=this.parent.evict(Y,V)||X),(Y.fieldName||X)&&this.group.dirty(Y.id,Y.fieldName||"__exists")),X},te.prototype.clear=function(){this.replace(null)},te.prototype.extract=function(){var Y=this,V=this.toObject(),X=[];return this.getRootIdSet().forEach(function(Oe){L.call(Y.policies.rootTypenamesById,Oe)||X.push(Oe)}),X.length&&(V.__META={extraRootIds:X.sort()}),V},te.prototype.replace=function(Y){var V=this;if(Object.keys(this.data).forEach(function(Ze){Y&&L.call(Y,Ze)||V.delete(Ze)}),Y){var X=Y.__META,Oe=(0,zn._T)(Y,["__META"]);Object.keys(Oe).forEach(function(Ze){V.merge(Ze,Oe[Ze])}),X&&X.extraRootIds.forEach(this.retain,this)}},te.prototype.retain=function(Y){return this.rootIds[Y]=(this.rootIds[Y]||0)+1},te.prototype.release=function(Y){if(this.rootIds[Y]>0){var V=--this.rootIds[Y];return V||delete this.rootIds[Y],V}return 0},te.prototype.getRootIdSet=function(Y){return void 0===Y&&(Y=new Set),Object.keys(this.rootIds).forEach(Y.add,Y),this instanceof Pn?this.parent.getRootIdSet(Y):Object.keys(this.policies.rootTypenamesById).forEach(Y.add,Y),Y},te.prototype.gc=function(){var Y=this,V=this.getRootIdSet(),X=this.toObject();V.forEach(function(at){L.call(X,at)&&(Object.keys(Y.findChildRefIds(at)).forEach(V.add,V),delete X[at])});var Oe=Object.keys(X);if(Oe.length){for(var Ze=this;Ze instanceof Pn;)Ze=Ze.parent;Oe.forEach(function(at){return Ze.delete(at)})}return Oe},te.prototype.findChildRefIds=function(Y){if(!L.call(this.refs,Y)){var V=this.refs[Y]=Object.create(null),X=this.data[Y];if(!X)return V;var Oe=new Set([X]);Oe.forEach(function(Ze){(0,bt.Yk)(Ze)&&(V[Ze.__ref]=!0),(0,hi.s)(Ze)&&Object.keys(Ze).forEach(function(at){var Yt=Ze[at];(0,hi.s)(Yt)&&Oe.add(Yt)})})}return this.refs[Y]},te.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},te}(),Wt=function(){function te(Y,V){void 0===V&&(V=null),this.caching=Y,this.parent=V,this.d=null,this.resetCaching()}return te.prototype.resetCaching=function(){this.d=this.caching?(0,j.dP)():null,this.keyMaker=new $.B(Cn.mr)},te.prototype.depend=function(Y,V){if(this.d){this.d(hn(Y,V));var X=u(V);X!==V&&this.d(hn(Y,X)),this.parent&&this.parent.depend(Y,V)}},te.prototype.dirty=function(Y,V){this.d&&this.d.dirty(hn(Y,V),"__exists"===V?"forget":"setDirty")},te}();function hn(te,Y){return Y+"#"+te}function Sn(te,Y){Vn(te)&&te.group.depend(Y,"__exists")}Y=function(V){function X(Oe){var at=Oe.resultCaching,Gt=Oe.seed,Nt=V.call(this,Oe.policies,new Wt(void 0===at||at))||this;return Nt.stump=new Wn(Nt),Nt.storageTrie=new $.B(Cn.mr),Gt&&Nt.replace(Gt),Nt}return(0,zn.ZT)(X,V),X.prototype.addLayer=function(Oe,Ze){return this.stump.addLayer(Oe,Ze)},X.prototype.removeLayer=function(){return this},X.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},X}(te=Ot||(Ot={})),te.Root=Y;var Pn=function(te){function Y(V,X,Oe,Ze){var at=te.call(this,X.policies,Ze)||this;return at.id=V,at.parent=X,at.replay=Oe,at.group=Ze,Oe(at),at}return(0,zn.ZT)(Y,te),Y.prototype.addLayer=function(V,X){return new Y(V,this,X,this.group)},Y.prototype.removeLayer=function(V){var X=this,Oe=this.parent.removeLayer(V);return V===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(Ze){var at=X.data[Ze],Yt=Oe.lookup(Ze);Yt?at?at!==Yt&&Object.keys(at).forEach(function(Gt){(0,_e.D)(at[Gt],Yt[Gt])||X.group.dirty(Ze,Gt)}):(X.group.dirty(Ze,"__exists"),Object.keys(Yt).forEach(function(Gt){X.group.dirty(Ze,Gt)})):X.delete(Ze)}),Oe):Oe===this.parent?this:Oe.addLayer(this.id,this.replay)},Y.prototype.toObject=function(){return(0,zn.pi)((0,zn.pi)({},this.parent.toObject()),this.data)},Y.prototype.findChildRefIds=function(V){var X=this.parent.findChildRefIds(V);return L.call(this.data,V)?(0,zn.pi)((0,zn.pi)({},X),te.prototype.findChildRefIds.call(this,V)):X},Y.prototype.getStorage=function(){for(var V=this.parent;V.parent;)V=V.parent;return V.getStorage.apply(V,arguments)},Y}(Ot),Wn=function(te){function Y(V){return te.call(this,"EntityStore.Stump",V,function(){},new Wt(V.group.caching,V.group))||this}return(0,zn.ZT)(Y,te),Y.prototype.removeLayer=function(){return this},Y.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},Y}(Pn);function In(te,Y,V){var X=te[V],Oe=Y[V];return(0,_e.D)(X,Oe)?X:Oe}function Vn(te){return!!(te instanceof Ot&&te.group.caching)}var Hn=c(3750);function bi(te){return[te.selectionSet,te.objectOrReference,te.context,te.context.canonizeResults]}var Ei=function(){function te(Y){var V=this;this.knownResults=new(Cn.mr?WeakMap:Map),this.config=(0,li.o)(Y,{addTypename:!1!==Y.addTypename,canonizeResults:On(Y)}),this.canon=Y.canon||new Hn.h,this.executeSelectionSet=(0,j.re)(function(X){var Oe,Ze=X.context.canonizeResults,at=bi(X);at[3]=!Ze;var Yt=(Oe=V.executeSelectionSet).peek.apply(Oe,at);return Yt?Ze?(0,zn.pi)((0,zn.pi)({},Yt),{result:V.canon.admit(Yt.result)}):Yt:(Sn(X.context.store,X.enclosingRef.__ref),V.execSelectionSetImpl(X))},{max:this.config.resultCacheMaxSize,keyArgs:bi,makeCacheKey:function(X,Oe,Ze,at){if(Vn(Ze.store))return Ze.store.makeCacheKey(X,(0,bt.Yk)(Oe)?Oe.__ref:Oe,Ze.varString,at)}}),this.executeSubSelectedArray=(0,j.re)(function(X){return Sn(X.context.store,X.enclosingRef.__ref),V.execSubSelectedArrayImpl(X)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(X){var Oe=X.field,Ze=X.array,at=X.context;if(Vn(at.store))return at.store.makeCacheKey(Oe,Ze,at.varString)}})}return te.prototype.resetCanon=function(){this.canon=new Hn.h},te.prototype.diffQueryAgainstStore=function(Y){var V=Y.store,X=Y.query,Oe=Y.rootId,Ze=void 0===Oe?"ROOT_QUERY":Oe,at=Y.variables,Yt=Y.returnPartialData,Gt=void 0===Yt||Yt,Nt=Y.canonizeResults,sn=void 0===Nt?this.config.canonizeResults:Nt,ln=this.config.cache.policies;at=(0,zn.pi)((0,zn.pi)({},(0,ni.O4)((0,ni.iW)(X))),at);var Rn,gn=(0,bt.kQ)(Ze),wn=new oi.w0,Yn=this.executeSelectionSet({selectionSet:(0,ni.p$)(X).selectionSet,objectOrReference:gn,enclosingRef:gn,context:{store:V,query:X,policies:ln,variables:at,varString:(0,Hn.B)(at),canonizeResults:sn,fragmentMap:(0,W.F)((0,ni.kU)(X)),merge:function(Xn,ai){return wn.merge(Xn,ai)}}});if(Yn.missing&&(Rn=[new st(Ai(Yn.missing),Yn.missing,X,at)],!Gt))throw Rn[0];return{result:Yn.result,complete:!Rn,missing:Rn}},te.prototype.isFresh=function(Y,V,X,Oe){if(Vn(Oe.store)&&this.knownResults.get(Y)===X){var Ze=this.executeSelectionSet.peek(X,V,Oe,this.canon.isKnown(Y));if(Ze&&Y===Ze.result)return!0}return!1},te.prototype.execSelectionSetImpl=function(Y){var V=this,X=Y.selectionSet,Oe=Y.objectOrReference,Ze=Y.enclosingRef,at=Y.context;if((0,bt.Yk)(Oe)&&!at.policies.rootTypenamesById[Oe.__ref]&&!at.store.has(Oe.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(Oe.__ref," object")};var gn,Yt=at.variables,Gt=at.policies,sn=at.store.getFieldValue(Oe,"__typename"),ln={};function wn(ai,Di){var di;return ai.missing&&(gn=at.merge(gn,((di={})[Di]=ai.missing,di))),ai.result}this.config.addTypename&&"string"==typeof sn&&!Gt.rootIdsByTypename[sn]&&(ln={__typename:sn});var Yn=new Set(X.selections);Yn.forEach(function(ai){var Di,di;if((0,$n.LZ)(ai,Yt))if((0,bt.My)(ai)){var ri=Gt.readField({fieldName:ai.name.value,field:ai,variables:at.variables,from:Oe},at),ci=(0,bt.u2)(ai);void 0===ri?Zt.Gw.added(ai)||(gn=at.merge(gn,((Di={})[ci]="Can't find field '".concat(ai.name.value,"' on ").concat((0,bt.Yk)(Oe)?Oe.__ref+" object":"object "+JSON.stringify(Oe,null,2)),Di))):Array.isArray(ri)?ri=wn(V.executeSubSelectedArray({field:ai,array:ri,enclosingRef:Ze,context:at}),ci):ai.selectionSet?null!=ri&&(ri=wn(V.executeSelectionSet({selectionSet:ai.selectionSet,objectOrReference:ri,enclosingRef:(0,bt.Yk)(ri)?ri:Ze,context:at}),ci)):at.canonizeResults&&(ri=V.canon.pass(ri)),void 0!==ri&&(ln=at.merge(ln,((di={})[ci]=ri,di)))}else{var Go=(0,W.hi)(ai,at.fragmentMap);Go&&Gt.fragmentMatches(Go,sn)&&Go.selectionSet.selections.forEach(Yn.add,Yn)}});var Rn={result:ln,missing:gn},Xn=at.canonizeResults?this.canon.admit(Rn):no(Rn);return Xn.result&&this.knownResults.set(Xn.result,X),Xn},te.prototype.execSubSelectedArrayImpl=function(Y){var Yt,V=this,X=Y.field,Oe=Y.array,Ze=Y.enclosingRef,at=Y.context;function Gt(Nt,sn){var ln;return Nt.missing&&(Yt=at.merge(Yt,((ln={})[sn]=Nt.missing,ln))),Nt.result}return X.selectionSet&&(Oe=Oe.filter(at.store.canRead)),Oe=Oe.map(function(Nt,sn){return null===Nt?null:Array.isArray(Nt)?Gt(V.executeSubSelectedArray({field:X,array:Nt,enclosingRef:Ze,context:at}),sn):X.selectionSet?Gt(V.executeSelectionSet({selectionSet:X.selectionSet,objectOrReference:Nt,enclosingRef:(0,bt.Yk)(Nt)?Nt:Ze,context:at}),sn):(__DEV__&&function Fi(te,Y,V){if(!Y.selectionSet){var X=new Set([V]);X.forEach(function(Oe){(0,hi.s)(Oe)&&(__DEV__?(0,Zn.kG)(!(0,bt.Yk)(Oe),"Missing selection set for object of type ".concat(function Kt(te,Y){return(0,bt.Yk)(Y)?te.get(Y.__ref,"__typename"):Y&&Y.__typename}(te,Oe)," returned for query field ").concat(Y.name.value)):(0,Zn.kG)(!(0,bt.Yk)(Oe),5),Object.values(Oe).forEach(X.add,X))})}}(at.store,X,Nt),Nt)}),{result:at.canonizeResults?this.canon.admit(Oe):Oe,missing:Yt}},te}();function Ai(te){try{JSON.stringify(te,function(Y,V){if("string"==typeof V)throw V;return V})}catch(Y){return Y}}var co=c(396),Ri=c(5355),Pi=c(8561),Ui=c(6430),io=Object.create(null);function Po(te){var Y=JSON.stringify(te);return io[Y]||(io[Y]=Object.create(null))}function Ao(te){var Y=Po(te);return Y.keyFieldsFn||(Y.keyFieldsFn=function(V,X){var Oe=function(at,Yt){return X.readField(Yt,at)},Ze=X.keyObject=Fo(te,function(at){var Yt=kn(X.storeObject,at,Oe);return void 0===Yt&&V!==X.storeObject&&L.call(V,at[0])&&(Yt=kn(V,at,Tn)),__DEV__?(0,Zn.kG)(void 0!==Yt,"Missing field '".concat(at.join("."),"' while extracting keyFields from ").concat(JSON.stringify(V))):(0,Zn.kG)(void 0!==Yt,2),Yt});return"".concat(X.typename,":").concat(JSON.stringify(Ze))})}function go(te){var Y=Po(te);return Y.keyArgsFn||(Y.keyArgsFn=function(V,X){var Oe=X.field,Ze=X.variables,at=X.fieldName,Yt=Fo(te,function(Nt){var sn=Nt[0],ln=sn.charAt(0);if("@"!==ln)if("$"!==ln){if(V)return kn(V,Nt)}else{var Rn=sn.slice(1);if(Ze&&L.call(Ze,Rn)){var Xn=Nt.slice(0);return Xn[0]=Rn,kn(Ze,Xn)}}else if(Oe&&(0,Ri.O)(Oe.directives)){var gn=sn.slice(1),wn=Oe.directives.find(function(ai){return ai.name.value===gn}),Yn=wn&&(0,bt.NC)(wn,Ze);return Yn&&kn(Yn,Nt.slice(1))}}),Gt=JSON.stringify(Yt);return(V||"{}"!==Gt)&&(at+=":"+Gt),at})}function Fo(te,Y){var V=new oi.w0;return sr(te).reduce(function(X,Oe){var Ze,at=Y(Oe);if(void 0!==at){for(var Yt=Oe.length-1;Yt>=0;--Yt)(Ze={})[Oe[Yt]]=at,at=Ze;X=V.merge(X,at)}return X},Object.create(null))}function sr(te){var Y=Po(te);if(!Y.paths){var V=Y.paths=[],X=[];te.forEach(function(Oe,Ze){Array.isArray(Oe)?(sr(Oe).forEach(function(at){return V.push(X.concat(at))}),X.length=0):(X.push(Oe),Array.isArray(te[Ze+1])||(V.push(X.slice(0)),X.length=0))})}return Y.paths}function Tn(te,Y){return te[Y]}function kn(te,Y,V){return V=V||Tn,Ln(Y.reduce(function X(Oe,Ze){return Array.isArray(Oe)?Oe.map(function(at){return X(at,Ze)}):Oe&&V(Oe,Ze)},te))}function Ln(te){return(0,hi.s)(te)?Array.isArray(te)?te.map(Ln):Fo(Object.keys(te).sort(),function(Y){return kn(te,Y)}):te}function Bn(te){return void 0!==te.args?te.args:te.field?(0,bt.NC)(te.field,te.variables):null}bt.PT.setStringify(Hn.B);var yi=function(){},ui=function(te,Y){return Y.fieldName},ki=function(te,Y,V){return(0,V.mergeObjects)(te,Y)},vo=function(te,Y){return Y},_i=function(){function te(Y){this.config=Y,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,zn.pi)({dataIdFromObject:F},Y),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),Y.possibleTypes&&this.addPossibleTypes(Y.possibleTypes),Y.typePolicies&&this.addTypePolicies(Y.typePolicies)}return te.prototype.identify=function(Y,V){var X,Oe=this,Ze=V&&(V.typename||(null===(X=V.storeObject)||void 0===X?void 0:X.__typename))||Y.__typename;if(Ze===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var Gt,at=V&&V.storeObject||Y,Yt=(0,zn.pi)((0,zn.pi)({},V),{typename:Ze,storeObject:at,readField:V&&V.readField||function(){var gn=br(arguments,at);return Oe.readField(gn,{store:Oe.cache.data,variables:gn.variables})}}),Nt=Ze&&this.getTypePolicy(Ze),sn=Nt&&Nt.keyFn||this.config.dataIdFromObject;sn;){var ln=sn(Y,Yt);if(!Array.isArray(ln)){Gt=ln;break}sn=Ao(ln)}return Gt=Gt?String(Gt):void 0,Yt.keyObject?[Gt,Yt.keyObject]:[Gt]},te.prototype.addTypePolicies=function(Y){var V=this;Object.keys(Y).forEach(function(X){var Oe=Y[X],Ze=Oe.queryType,at=Oe.mutationType,Yt=Oe.subscriptionType,Gt=(0,zn._T)(Oe,["queryType","mutationType","subscriptionType"]);Ze&&V.setRootTypename("Query",X),at&&V.setRootTypename("Mutation",X),Yt&&V.setRootTypename("Subscription",X),L.call(V.toBeAdded,X)?V.toBeAdded[X].push(Gt):V.toBeAdded[X]=[Gt]})},te.prototype.updateTypePolicy=function(Y,V){var X=this,Oe=this.getTypePolicy(Y),Ze=V.keyFields,at=V.fields;function Yt(Gt,Nt){Gt.merge="function"==typeof Nt?Nt:!0===Nt?ki:!1===Nt?vo:Gt.merge}Yt(Oe,V.merge),Oe.keyFn=!1===Ze?yi:Array.isArray(Ze)?Ao(Ze):"function"==typeof Ze?Ze:Oe.keyFn,at&&Object.keys(at).forEach(function(Gt){var Nt=X.getFieldPolicy(Y,Gt,!0),sn=at[Gt];if("function"==typeof sn)Nt.read=sn;else{var ln=sn.keyArgs,gn=sn.read,wn=sn.merge;Nt.keyFn=!1===ln?ui:Array.isArray(ln)?go(ln):"function"==typeof ln?ln:Nt.keyFn,"function"==typeof gn&&(Nt.read=gn),Yt(Nt,wn)}Nt.read&&Nt.merge&&(Nt.keyFn=Nt.keyFn||ui)})},te.prototype.setRootTypename=function(Y,V){void 0===V&&(V=Y);var X="ROOT_"+Y.toUpperCase(),Oe=this.rootTypenamesById[X];V!==Oe&&(__DEV__?(0,Zn.kG)(!Oe||Oe===Y,"Cannot change root ".concat(Y," __typename more than once")):(0,Zn.kG)(!Oe||Oe===Y,3),Oe&&delete this.rootIdsByTypename[Oe],this.rootIdsByTypename[V]=X,this.rootTypenamesById[X]=V)},te.prototype.addPossibleTypes=function(Y){var V=this;this.usingPossibleTypes=!0,Object.keys(Y).forEach(function(X){V.getSupertypeSet(X,!0),Y[X].forEach(function(Oe){V.getSupertypeSet(Oe,!0).add(X);var Ze=Oe.match(re);(!Ze||Ze[0]!==Oe)&&V.fuzzySubtypes.set(Oe,new RegExp(Oe))})})},te.prototype.getTypePolicy=function(Y){var V=this;if(!L.call(this.typePolicies,Y)){var X=this.typePolicies[Y]=Object.create(null);X.fields=Object.create(null);var Oe=this.supertypeMap.get(Y);Oe&&Oe.size&&Oe.forEach(function(at){var Yt=V.getTypePolicy(at),Gt=Yt.fields,Nt=(0,zn._T)(Yt,["fields"]);Object.assign(X,Nt),Object.assign(X.fields,Gt)})}var Ze=this.toBeAdded[Y];return Ze&&Ze.length&&Ze.splice(0).forEach(function(at){V.updateTypePolicy(Y,at)}),this.typePolicies[Y]},te.prototype.getFieldPolicy=function(Y,V,X){if(Y){var Oe=this.getTypePolicy(Y).fields;return Oe[V]||X&&(Oe[V]=Object.create(null))}},te.prototype.getSupertypeSet=function(Y,V){var X=this.supertypeMap.get(Y);return!X&&V&&this.supertypeMap.set(Y,X=new Set),X},te.prototype.fragmentMatches=function(Y,V,X,Oe){var Ze=this;if(!Y.typeCondition)return!0;if(!V)return!1;var at=Y.typeCondition.name.value;if(V===at)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(at))for(var Yt=this.getSupertypeSet(V,!0),Gt=[Yt],Nt=function(Yn){var Rn=Ze.getSupertypeSet(Yn,!1);Rn&&Rn.size&&Gt.indexOf(Rn)<0&&Gt.push(Rn)},sn=!(!X||!this.fuzzySubtypes.size),ln=!1,gn=0;gn1?te[1]:Y}:(at=(0,zn.pi)({},X),L.call(at,"from")||(at.from=Y)),__DEV__&&void 0===at.from&&__DEV__&&Zn.kG.warn("Undefined 'from' passed to readField with arguments ".concat(function Ki(te){var Y=(0,Pi.X)("stringifyForDisplay");return JSON.stringify(te,function(V,X){return void 0===X?Y:X}).split(JSON.stringify(Y)).join("")}(Array.from(te)))),void 0===at.variables&&(at.variables=V),at}function mi(te){return function(V,X){if(Array.isArray(V)||Array.isArray(X))throw __DEV__?new Zn.ej("Cannot automatically merge arrays"):new Zn.ej(4);if((0,hi.s)(V)&&(0,hi.s)(X)){var Oe=te.getFieldValue(V,"__typename"),Ze=te.getFieldValue(X,"__typename");if(Oe&&Ze&&Oe!==Ze)return X;if((0,bt.Yk)(V)&&x(X))return te.merge(V.__ref,X),V;if(x(V)&&(0,bt.Yk)(X))return te.merge(V,X.__ref),X;if(x(V)&&x(X))return(0,zn.pi)((0,zn.pi)({},V),X)}return X}}function Qi(te,Y,V){var X="".concat(Y).concat(V),Oe=te.flavors.get(X);return Oe||te.flavors.set(X,Oe=te.clientOnly===Y&&te.deferred===V?te:(0,zn.pi)((0,zn.pi)({},te),{clientOnly:Y,deferred:V})),Oe}var Hi=function(){function te(Y,V){this.cache=Y,this.reader=V}return te.prototype.writeToStore=function(Y,V){var X=this,Oe=V.query,Ze=V.result,at=V.dataId,Yt=V.variables,Gt=V.overwrite,Nt=(0,ni.$H)(Oe),sn=function he(){return new oi.w0}();Yt=(0,zn.pi)((0,zn.pi)({},(0,ni.O4)(Nt)),Yt);var ln={store:Y,written:Object.create(null),merge:function(wn,Yn){return sn.merge(wn,Yn)},variables:Yt,varString:(0,Hn.B)(Yt),fragmentMap:(0,W.F)((0,ni.kU)(Oe)),overwrite:!!Gt,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},gn=this.processSelectionSet({result:Ze||Object.create(null),dataId:at,selectionSet:Nt.selectionSet,mergeTree:{map:new Map},context:ln});if(!(0,bt.Yk)(gn))throw __DEV__?new Zn.ej("Could not identify object ".concat(JSON.stringify(Ze))):new Zn.ej(6);return ln.incomingById.forEach(function(wn,Yn){var Rn=wn.storeObject,Xn=wn.mergeTree,ai=wn.fieldNodeSet,Di=(0,bt.kQ)(Yn);if(Xn&&Xn.map.size){var di=X.applyMerges(Xn,Di,Rn,ln);if((0,bt.Yk)(di))return;Rn=di}if(__DEV__&&!ln.overwrite){var ri=Object.create(null);ai.forEach(function(lo){lo.selectionSet&&(ri[lo.name.value]=!0)}),Object.keys(Rn).forEach(function(lo){(function(lo){return!0===ri[u(lo)]})(lo)&&!function(lo){var uo=Xn&&Xn.map.get(lo);return Boolean(uo&&uo.info&&uo.info.merge)}(lo)&&function gs(te,Y,V,X){var Oe=function(ln){var gn=X.getFieldValue(ln,V);return"object"==typeof gn&&gn},Ze=Oe(te);if(Ze){var at=Oe(Y);if(at&&!(0,bt.Yk)(Ze)&&!(0,_e.D)(Ze,at)&&!Object.keys(Ze).every(function(ln){return void 0!==X.getFieldValue(at,ln)})){var Yt=X.getFieldValue(te,"__typename")||X.getFieldValue(Y,"__typename"),Gt=u(V),Nt="".concat(Yt,".").concat(Gt);if(!tr.has(Nt)){tr.add(Nt);var sn=[];!Array.isArray(Ze)&&!Array.isArray(at)&&[Ze,at].forEach(function(ln){var gn=X.getFieldValue(ln,"__typename");"string"==typeof gn&&!sn.includes(gn)&&sn.push(gn)}),__DEV__&&Zn.kG.warn("Cache data may be lost when replacing the ".concat(Gt," field of a ").concat(Yt," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(sn.length?"either ensure all objects of type "+sn.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(Nt," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(Ze).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(at).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(Di,Rn,lo,ln.store)})}Y.merge(Yn,Rn)}),Y.retain(gn.__ref),gn},te.prototype.processSelectionSet=function(Y){var V=this,X=Y.dataId,Oe=Y.result,Ze=Y.selectionSet,at=Y.context,Yt=Y.mergeTree,Gt=this.cache.policies,Nt=Object.create(null),sn=X&&Gt.rootTypenamesById[X]||(0,bt.qw)(Oe,Ze,at.fragmentMap)||X&&at.store.get(X,"__typename");"string"==typeof sn&&(Nt.__typename=sn);var ln=function(){var di=br(arguments,Nt,at.variables);if((0,bt.Yk)(di.from)){var ri=at.incomingById.get(di.from.__ref);if(ri){var ci=Gt.readField((0,zn.pi)((0,zn.pi)({},di),{from:ri.storeObject}),at);if(void 0!==ci)return ci}}return Gt.readField(di,at)},gn=new Set;this.flattenFields(Ze,Oe,at,sn).forEach(function(di,ri){var ci,Go=(0,bt.u2)(ri),lo=Oe[Go];if(gn.add(ri),void 0!==lo){var uo=Gt.getStoreFieldName({typename:sn,fieldName:ri.name.value,field:ri,variables:di.variables}),bs=yo(Yt,uo),Ms=V.processFieldValue(lo,ri,ri.selectionSet?Qi(di,!1,!1):di,bs),Ia=void 0;ri.selectionSet&&((0,bt.Yk)(Ms)||x(Ms))&&(Ia=ln("__typename",Ms));var Va=Gt.getMergeFunction(sn,ri.name.value,Ia);Va?bs.info={field:ri,typename:sn,merge:Va}:Io(Yt,uo),Nt=di.merge(Nt,((ci={})[uo]=Ms,ci))}else __DEV__&&!di.clientOnly&&!di.deferred&&!Zt.Gw.added(ri)&&!Gt.getReadFunction(sn,ri.name.value)&&__DEV__&&Zn.kG.error("Missing field '".concat((0,bt.u2)(ri),"' while writing result ").concat(JSON.stringify(Oe,null,2)).substring(0,1e3))});try{var wn=Gt.identify(Oe,{typename:sn,selectionSet:Ze,fragmentMap:at.fragmentMap,storeObject:Nt,readField:ln}),Rn=wn[1];X=X||wn[0],Rn&&(Nt=at.merge(Nt,Rn))}catch(di){if(!X)throw di}if("string"==typeof X){var Xn=(0,bt.kQ)(X),ai=at.written[X]||(at.written[X]=[]);if(ai.indexOf(Ze)>=0||(ai.push(Ze),this.reader&&this.reader.isFresh(Oe,Xn,Ze,at)))return Xn;var Di=at.incomingById.get(X);return Di?(Di.storeObject=at.merge(Di.storeObject,Nt),Di.mergeTree=ko(Di.mergeTree,Yt),gn.forEach(function(di){return Di.fieldNodeSet.add(di)})):at.incomingById.set(X,{storeObject:Nt,mergeTree:cr(Yt)?void 0:Yt,fieldNodeSet:gn}),Xn}return Nt},te.prototype.processFieldValue=function(Y,V,X,Oe){var Ze=this;return V.selectionSet&&null!==Y?Array.isArray(Y)?Y.map(function(at,Yt){var Gt=Ze.processFieldValue(at,V,X,yo(Oe,Yt));return Io(Oe,Yt),Gt}):this.processSelectionSet({result:Y,selectionSet:V.selectionSet,context:X,mergeTree:Oe}):__DEV__?(0,co.X)(Y):Y},te.prototype.flattenFields=function(Y,V,X,Oe){void 0===Oe&&(Oe=(0,bt.qw)(V,Y,X.fragmentMap));var Ze=new Map,at=this.cache.policies,Yt=new $.B(!1);return function Gt(Nt,sn){var ln=Yt.lookup(Nt,sn.clientOnly,sn.deferred);ln.visited||(ln.visited=!0,Nt.selections.forEach(function(gn){if((0,$n.LZ)(gn,X.variables)){var wn=sn.clientOnly,Yn=sn.deferred;if(!(wn&&Yn)&&(0,Ri.O)(gn.directives)&&gn.directives.forEach(function(ai){var Di=ai.name.value;if("client"===Di&&(wn=!0),"defer"===Di){var di=(0,bt.NC)(ai,X.variables);(!di||!1!==di.if)&&(Yn=!0)}}),(0,bt.My)(gn)){var Rn=Ze.get(gn);Rn&&(wn=wn&&Rn.clientOnly,Yn=Yn&&Rn.deferred),Ze.set(gn,Qi(X,wn,Yn))}else{var Xn=(0,W.hi)(gn,X.fragmentMap);Xn&&at.fragmentMatches(Xn,Oe,V,X.variables)&&Gt(Xn.selectionSet,Qi(X,wn,Yn))}}}))}(Y,X),Ze},te.prototype.applyMerges=function(Y,V,X,Oe,Ze){var at,Yt=this;if(Y.map.size&&!(0,bt.Yk)(X)){var Gt=Array.isArray(X)||!(0,bt.Yk)(V)&&!x(V)?void 0:V,Nt=X;Gt&&!Ze&&(Ze=[(0,bt.Yk)(Gt)?Gt.__ref:Gt]);var sn,ln=function(gn,wn){return Array.isArray(gn)?"number"==typeof wn?gn[wn]:void 0:Oe.store.getFieldValue(gn,String(wn))};Y.map.forEach(function(gn,wn){var Yn=ln(Gt,wn),Rn=ln(Nt,wn);if(void 0!==Rn){Ze&&Ze.push(wn);var Xn=Yt.applyMerges(gn,Yn,Rn,Oe,Ze);Xn!==Rn&&(sn=sn||new Map).set(wn,Xn),Ze&&(0,Zn.kG)(Ze.pop()===wn)}}),sn&&(X=Array.isArray(Nt)?Nt.slice(0):(0,zn.pi)({},Nt),sn.forEach(function(gn,wn){X[wn]=gn}))}return Y.info?this.cache.policies.runMergeFunction(V,X,Y.info,Oe,Ze&&(at=Oe.store).getStorage.apply(at,Ze)):X},te}(),Bi=[];function yo(te,Y){var V=te.map;return V.has(Y)||V.set(Y,Bi.pop()||{map:new Map}),V.get(Y)}function ko(te,Y){if(te===Y||!Y||cr(Y))return te;if(!te||cr(te))return Y;var V=te.info&&Y.info?(0,zn.pi)((0,zn.pi)({},te.info),Y.info):te.info||Y.info,X=te.map.size&&Y.map.size,Ze={info:V,map:X?new Map:te.map.size?te.map:Y.map};if(X){var at=new Set(Y.map.keys());te.map.forEach(function(Yt,Gt){Ze.map.set(Gt,ko(Yt,Y.map.get(Gt))),at.delete(Gt)}),at.forEach(function(Yt){Ze.map.set(Yt,ko(Y.map.get(Yt),te.map.get(Yt)))})}return Ze}function cr(te){return!te||!(te.info||te.map.size)}function Io(te,Y){var V=te.map,X=V.get(Y);X&&cr(X)&&(Bi.push(X),V.delete(Y))}var tr=new Set,Ur=function(te){function Y(V){void 0===V&&(V={});var X=te.call(this)||this;return X.watches=new Set,X.typenameDocumentCache=new Map,X.makeVar=Ui.QS,X.txCount=0,X.config=function Ut(te){return(0,li.o)(Te,te)}(V),X.addTypename=!!X.config.addTypename,X.policies=new _i({cache:X,dataIdFromObject:X.config.dataIdFromObject,possibleTypes:X.config.possibleTypes,typePolicies:X.config.typePolicies}),X.init(),X}return(0,zn.ZT)(Y,te),Y.prototype.init=function(){var V=this.data=new Ot.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=V.stump,this.resetResultCache()},Y.prototype.resetResultCache=function(V){var X=this,Oe=this.storeReader;this.storeWriter=new Hi(this,this.storeReader=new Ei({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:On(this.config),canon:V?void 0:Oe&&Oe.canon})),this.maybeBroadcastWatch=(0,j.re)(function(Ze,at){return X.broadcastWatch(Ze,at)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(Ze){var at=Ze.optimistic?X.optimisticData:X.data;if(Vn(at))return at.makeCacheKey(Ze.query,Ze.callback,(0,Hn.B)({optimistic:Ze.optimistic,rootId:Ze.rootId,variables:Ze.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(Ze){return Ze.resetCaching()})},Y.prototype.restore=function(V){return this.init(),V&&this.data.replace(V),this},Y.prototype.extract=function(V){return void 0===V&&(V=!1),(V?this.optimisticData:this.data).extract()},Y.prototype.read=function(V){var X=V.returnPartialData,Oe=void 0!==X&&X;try{return this.storeReader.diffQueryAgainstStore((0,zn.pi)((0,zn.pi)({},V),{store:V.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:Oe})).result||null}catch(Ze){if(Ze instanceof st)return null;throw Ze}},Y.prototype.write=function(V){try{return++this.txCount,this.storeWriter.writeToStore(this.data,V)}finally{!--this.txCount&&!1!==V.broadcast&&this.broadcastWatches()}},Y.prototype.modify=function(V){if(L.call(V,"id")&&!V.id)return!1;var X=V.optimistic?this.optimisticData:this.data;try{return++this.txCount,X.modify(V.id||"ROOT_QUERY",V.fields)}finally{!--this.txCount&&!1!==V.broadcast&&this.broadcastWatches()}},Y.prototype.diff=function(V){return this.storeReader.diffQueryAgainstStore((0,zn.pi)((0,zn.pi)({},V),{store:V.optimistic?this.optimisticData:this.data,rootId:V.id||"ROOT_QUERY",config:this.config}))},Y.prototype.watch=function(V){var X=this;return this.watches.size||(0,Ui._v)(this),this.watches.add(V),V.immediate&&this.maybeBroadcastWatch(V),function(){X.watches.delete(V)&&!X.watches.size&&(0,Ui.li)(X),X.maybeBroadcastWatch.forget(V)}},Y.prototype.gc=function(V){Hn.B.reset();var X=this.optimisticData.gc();return V&&!this.txCount&&(V.resetResultCache?this.resetResultCache(V.resetResultIdentities):V.resetResultIdentities&&this.storeReader.resetCanon()),X},Y.prototype.retain=function(V,X){return(X?this.optimisticData:this.data).retain(V)},Y.prototype.release=function(V,X){return(X?this.optimisticData:this.data).release(V)},Y.prototype.identify=function(V){if((0,bt.Yk)(V))return V.__ref;try{return this.policies.identify(V)[0]}catch(X){__DEV__&&Zn.kG.warn(X)}},Y.prototype.evict=function(V){if(!V.id){if(L.call(V,"id"))return!1;V=(0,zn.pi)((0,zn.pi)({},V),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(V,this.data)}finally{!--this.txCount&&!1!==V.broadcast&&this.broadcastWatches()}},Y.prototype.reset=function(V){var X=this;return this.init(),Hn.B.reset(),V&&V.discardWatches?(this.watches.forEach(function(Oe){return X.maybeBroadcastWatch.forget(Oe)}),this.watches.clear(),(0,Ui.li)(this)):this.broadcastWatches(),Promise.resolve()},Y.prototype.removeOptimistic=function(V){var X=this.optimisticData.removeLayer(V);X!==this.optimisticData&&(this.optimisticData=X,this.broadcastWatches())},Y.prototype.batch=function(V){var Nt,X=this,Oe=V.update,Ze=V.optimistic,at=void 0===Ze||Ze,Yt=V.removeOptimistic,Gt=V.onWatchUpdated,sn=function(gn){var Yn=X.data,Rn=X.optimisticData;++X.txCount,gn&&(X.data=X.optimisticData=gn);try{return Nt=Oe(X)}finally{--X.txCount,X.data=Yn,X.optimisticData=Rn}},ln=new Set;return Gt&&!this.txCount&&this.broadcastWatches((0,zn.pi)((0,zn.pi)({},V),{onWatchUpdated:function(gn){return ln.add(gn),!1}})),"string"==typeof at?this.optimisticData=this.optimisticData.addLayer(at,sn):!1===at?sn(this.data):sn(),"string"==typeof Yt&&(this.optimisticData=this.optimisticData.removeLayer(Yt)),Gt&&ln.size?(this.broadcastWatches((0,zn.pi)((0,zn.pi)({},V),{onWatchUpdated:function(gn,wn){var Yn=Gt.call(this,gn,wn);return!1!==Yn&&ln.delete(gn),Yn}})),ln.size&&ln.forEach(function(gn){return X.maybeBroadcastWatch.dirty(gn)})):this.broadcastWatches(V),Nt},Y.prototype.performTransaction=function(V,X){return this.batch({update:V,optimistic:X||null!==X})},Y.prototype.transformDocument=function(V){if(this.addTypename){var X=this.typenameDocumentCache.get(V);return X||(X=(0,Zt.Gw)(V),this.typenameDocumentCache.set(V,X),this.typenameDocumentCache.set(X,X)),X}return V},Y.prototype.broadcastWatches=function(V){var X=this;this.txCount||this.watches.forEach(function(Oe){return X.maybeBroadcastWatch(Oe,V)})},Y.prototype.broadcastWatch=function(V,X){var Oe=V.lastDiff,Ze=this.diff(V);X&&(V.optimistic&&"string"==typeof X.optimistic&&(Ze.fromOptimisticTransaction=!0),X.onWatchUpdated&&!1===X.onWatchUpdated.call(this,V,Ze,Oe))||(!Oe||!(0,_e.D)(Oe.result,Ze.result))&&V.callback(V.lastDiff=Ze,Oe)},Y}(ze);function wi(te){return void 0===te&&(te=!1),{keyArgs:te,read:function(Y,V){var X=V.canRead,Oe=V.readField;if(!Y)return Y;var Ze=[],at="",Yt="";Y.edges.forEach(function(ln){X(Oe("node",ln))&&(Ze.push(ln),ln.cursor&&(at=at||ln.cursor||"",Yt=ln.cursor||Yt))});var Gt=Y.pageInfo||{},Nt=Gt.startCursor,sn=Gt.endCursor;return(0,zn.pi)((0,zn.pi)({},Vo(Y)),{edges:Ze,pageInfo:(0,zn.pi)((0,zn.pi)({},Y.pageInfo),{startCursor:Nt||at,endCursor:sn||Yt})})},merge:function(Y,V,X){var Oe=X.args,Ze=X.isReference,at=X.readField;if(Y||(Y={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!V)return Y;var Yt=V.edges?V.edges.map(function(uo){return Ze(uo=(0,zn.pi)({},uo))&&(uo.cursor=at("cursor",uo)),uo}):[];if(V.pageInfo){var Gt=V.pageInfo,Nt=Gt.startCursor,sn=Gt.endCursor,ln=Yt[0],gn=Yt[Yt.length-1];ln&&Nt&&(ln.cursor=Nt),gn&&sn&&(gn.cursor=sn);var wn=ln&&ln.cursor;wn&&!Nt&&(V=(0,oi.Ee)(V,{pageInfo:{startCursor:wn}}));var Yn=gn&&gn.cursor;Yn&&!sn&&(V=(0,oi.Ee)(V,{pageInfo:{endCursor:Yn}}))}var Rn=Y.edges,Xn=[];if(Oe&&Oe.after)(ai=Rn.findIndex(function(uo){return uo.cursor===Oe.after}))>=0&&(Rn=Rn.slice(0,ai+1));else if(Oe&&Oe.before){var ai;Xn=(ai=Rn.findIndex(function(bs){return bs.cursor===Oe.before}))<0?Rn:Rn.slice(ai),Rn=[]}else V.edges&&(Rn=[]);var Di=(0,zn.ev)((0,zn.ev)((0,zn.ev)([],Rn,!0),Yt,!0),Xn,!0),di=(0,zn.pi)((0,zn.pi)({},V.pageInfo),Y.pageInfo);if(V.pageInfo){var ri=V.pageInfo,ci=ri.hasPreviousPage,Go=ri.hasNextPage,lo=(Nt=ri.startCursor,sn=ri.endCursor,(0,zn._T)(ri,["hasPreviousPage","hasNextPage","startCursor","endCursor"]));Object.assign(di,lo),Rn.length||(void 0!==ci&&(di.hasPreviousPage=ci),void 0!==Nt&&(di.startCursor=Nt)),Xn.length||(void 0!==Go&&(di.hasNextPage=Go),void 0!==sn&&(di.endCursor=sn))}return(0,zn.pi)((0,zn.pi)((0,zn.pi)({},Vo(Y)),Vo(V)),{edges:Di,pageInfo:di})}}}var Vo=function(te){return(0,zn._T)(te,vs)},vs=["edges","pageInfo"];const Or={Gene:{fields:{comments:wi(),revisions:wi(),events:wi(),variants:wi()}},Query:{fields:{browseGenes:wi(["entrezSymbol","drugName","geneAlias","diseaseName"]),browseVariants:wi(["variantName","entrezSymbol","diseaseName","drugName","variantTypeId","variantGroupId"]),browseVariantGroups:wi(["name","geneNames","variantNames","variantId"]),browseSources:wi(["name","year","sourceType","citationId","author","journal","clinicalTrialId","id"]),sourceSuggestions:wi(["sourceType","citationId","sourceId","geneName","variantName","diseaseName","comment","submitter","citation","status","submitterId"]),browseDiseases:wi(["name","doid","geneNames","id"]),events:wi(["subject","organizationId","originatingUserId","eventType"]),variants:wi(["geneId","name","evidenceStatusFilter"]),comments:wi(["originatingUserId","subject"]),evidenceItems:wi(["diseaseName","drugName","id","description","evidenceLevel","evidenceDirection","clinicalSignificance","evidenceType","evidenceRating","variantOrigin","variantId","assertionId","organizationId","userId","phenotypeId","diseaseId","drugId","sourceId","geneSymbol","variantName","status","clinicalTrialId"]),assertions:wi(["diseaseName","drugName","id","name","summary","assertionDirection","clinicalSignificance","assertionType","variantId","ampLevel","geneName","variantName","evidenceId","organizationId","userId","phenotypeId","diseaseId","drugId","status"]),organizations:wi(["name","id"]),flags:wi(["flaggable","flaggingUserId","resolvingUserId","state"]),phenotypes:wi(["hpoId","name","id"]),variantTypes:wi(["soid","name","id"]),drugs:wi(["ncitId","name","id"]),clinicalTrials:wi(["nctId","name","id"]),notifications:wi(["notificationReason","subscriptionId","originatingObject","eventType","originatingUserId","organizationId","includeRead"]),revisions:wi(["subject","status","originatingUserId","fieldName","revisionsetId"]),users:wi(["userName","orgName","userRole"])}}},Ir={__schema:{types:[{kind:"UNION",name:"CommentBodySegment",possibleTypes:[{name:"CommentTagSegment"},{name:"CommentTextSegment"},{name:"User"}]},{kind:"INTERFACE",name:"Commentable",possibleTypes:[{name:"Assertion"},{name:"EvidenceItem"},{name:"Flag"},{name:"Gene"},{name:"Revision"},{name:"Source"},{name:"SourcePopover"},{name:"Variant"},{name:"VariantGroup"}]},{kind:"INTERFACE",name:"EventOriginObject",possibleTypes:[{name:"Assertion"},{name:"Comment"},{name:"EvidenceItem"},{name:"Flag"},{name:"Revision"},{name:"SourceSuggestion"},{name:"Variant"}]},{kind:"INTERFACE",name:"EventSubject",possibleTypes:[{name:"Assertion"},{name:"EvidenceItem"},{name:"Gene"},{name:"Revision"},{name:"Source"},{name:"SourcePopover"},{name:"SourceSuggestion"},{name:"Variant"},{name:"VariantGroup"}]},{kind:"INTERFACE",name:"Flaggable",possibleTypes:[{name:"Assertion"},{name:"EvidenceItem"},{name:"Gene"},{name:"Variant"},{name:"VariantGroup"}]},{kind:"UNION",name:"ModeratedField",possibleTypes:[{name:"ObjectField"},{name:"ScalarField"}]},{kind:"UNION",name:"ModeratedFieldDiff",possibleTypes:[{name:"ObjectFieldDiff"},{name:"ScalarFieldDiff"}]},{kind:"INTERFACE",name:"WithRevisions",possibleTypes:[{name:"Assertion"},{name:"EvidenceItem"},{name:"Gene"},{name:"Variant"},{name:"VariantGroup"}]}]}},Gr=Or;function Vr(te){let Y=te.create({uri:"/api/graphql",withCredentials:!0});return{link:new mo.i((X,Oe)=>(X.setContext({headers:{"Civic-Client-Name":"civic-frontend"}}),Oe(X))).concat(Y),cache:new Ur({possibleTypes:Cs(Ir),typePolicies:Gr}),defaultOptions:{watchQuery:{fetchPolicy:"cache-first",errorPolicy:"all",notifyOnNetworkStatusChange:!1}}}}let lr=(()=>{class te{}return te.\u0275fac=function(V){return new(V||te)},te.\u0275mod=o.oAB({type:te}),te.\u0275inj=o.cJS({providers:[{provide:ji.zu,useFactory:Vr,deps:[Uo]}]}),te})();const Cs=te=>{const Y={};return te.__schema.types.forEach(V=>{V.possibleTypes&&(Y[V.name]=V.possibleTypes.map(X=>X.name))}),Y};var ur=c(3618);let Ar=(()=>{class te{}return te.\u0275fac=function(V){return new(V||te)},te.\u0275mod=o.oAB({type:te}),te.\u0275inj=o.cJS({imports:[[l.ez,C.WG,Ho.L,wo.sL,qi.Qp,ur.ZJ]]}),te})();var qs=c(7026),hr=c(4182),Lr=c(8776);const H={extras:{immutable:!0},validationMessages:[{name:"required",message:"This field is required."},{name:"minlength",message:(te,Y)=>{var V;return`This field has a minimum length of ${null===(V=Y.templateOptions)||void 0===V?void 0:V.minLength}.`}},{name:"maxlength",message:(te,Y)=>{var V;return`This field has a maximum length of ${null===(V=Y.templateOptions)||void 0===V?void 0:V.maxLength}.`}},{name:"min",message:(te,Y)=>{var V;return`This field has a minimum value of ${null===(V=Y.templateOptions)||void 0===V?void 0:V.min}.`}},{name:"max",message:(te,Y)=>{var V;return`This field has a maximum value of ${null===(V=Y.templateOptions)||void 0===V?void 0:V.max}.`}},{name:"pattern",message:(te,Y)=>{var V;return`This field's value must fit the pattern ${null===(V=Y.templateOptions)||void 0===V?void 0:V.pattern}.`}},{name:"integer",message:(te,Y)=>"Value must be an integer."}],validators:[{name:"integer",validation:(te,Y)=>""===te.value||void 0===te.value||/^\d+$/.test(te.value)?null:{integer:!0}}],extensions:[{name:"has-focus",extension:{prePopulate(te){var Y;(null===(Y=te.expressionProperties)||void 0===Y?void 0:Y.hasFocus)||(te.expressionProperties=Object.assign(Object.assign({},te.expressionProperties),{"templateOptions.hasFocus":(V,X,Oe)=>Oe.focus}))}}}]};var q=c(9139);let be=(()=>{class te{}return te.\u0275fac=function(V){return new(V||te)},te.\u0275mod=o.oAB({type:te}),te.\u0275inj=o.cJS({imports:[[l.ez,hr.u5,hr.UX,C.WG,Lr.X0.forRoot(H),q.u],hr.u5,hr.UX,Lr.X0,q.u]}),te})(),$e=(()=>{class te{handleError(V){/Loading chunk [\d]+ failed/.test(V.message)&&confirm("There is an updated version of CiVIC available. Click OK to reload.")&&window.location.reload()}}return te.\u0275fac=function(V){return new(V||te)},te.\u0275prov=o.Yz7({token:te,factory:te.\u0275fac}),te})();function ht(te){return()=>te.get("/api/status")}(0,l.qS)(A);let $t=(()=>{class te{}return te.\u0275fac=function(V){return new(V||te)},te.\u0275mod=o.oAB({type:te,bootstrap:[po]}),te.\u0275inj=o.cJS({providers:[E.N,{provide:o.qLn,useClass:$e},{provide:Ci.u7,useValue:Ci.iF},{provide:o.ip1,useFactory:ht,deps:[b.eN],multi:!0}],imports:[[Wi,D.PW,r.b2,lr,b.JF,b.PD,b.Ed,Mn.f9.forRoot({timestampFormat:"mediumTime",level:Mn._z.OFF,enableSourceMaps:!0,serverLogLevel:Mn._z.ERROR}),jn.s,Si.PV.forRoot(ke),C.WG,dn.$L.forRoot({formatter:{provide:dn.KP,useClass:qs.x}}),be,Ar]]}),te})();(0,o.G48)(),r.q6().bootstrapModule($t).catch(te=>console.error(te))},3793:(Ft,Pe,c)=>{c.d(Pe,{F:()=>A,w:()=>m});var r=c(2916),o=c(1086),l=c(4850),K=c(5e3);let m=(()=>{class b{transform(C,E){return C instanceof r.y||(C=(0,o.of)(C)),C.pipe((0,l.U)(S=>this.toOptions(S,E||{})))}toOptions(C,E){const S=[],w={},z=E.templateOptions||{};return z._flatOptions=!0,C.map(M=>{this.getGroupProp(M,z)?(z._flatOptions=!1,w[this.getGroupProp(M,z)]||(w[this.getGroupProp(M,z)]=[],S.push({label:this.getGroupProp(M,z),group:w[this.getGroupProp(M,z)]})),w[this.getGroupProp(M,z)].push(this.toOption(M,z))):S.push(this.toOption(M,z))}),S}toOption(C,E){return{label:this.getLabelProp(C,E),value:this.getValueProp(C,E),disabled:this.getDisabledProp(C,E)||!1}}getLabelProp(C,E){return"function"==typeof E.labelProp?E.labelProp(C):this.shouldUseLegacyOption(C,E)?(console.warn("NgxFormly: legacy select option '{key, value}' is deprecated since v5.5, use '{value, label}' instead."),C.value):C[E.labelProp||"label"]}getValueProp(C,E){return"function"==typeof E.valueProp?E.valueProp(C):this.shouldUseLegacyOption(C,E)?C.key:C[E.valueProp||"value"]}getDisabledProp(C,E){return"function"==typeof E.disabledProp?E.disabledProp(C):C[E.disabledProp||"disabled"]}getGroupProp(C,E){return"function"==typeof E.groupProp?E.groupProp(C):C[E.groupProp||"group"]}shouldUseLegacyOption(C,E){return!E.valueProp&&!E.labelProp&&null!=C&&"object"==typeof C&&"key"in C&&"value"in C}}return b.\u0275fac=function(C){return new(C||b)},b.\u0275pipe=K.Yjl({name:"formlySelectOptions",type:b,pure:!0}),b})(),A=(()=>{class b{}return b.\u0275fac=function(C){return new(C||b)},b.\u0275mod=K.oAB({type:b}),b.\u0275inj=K.cJS({}),b})()},8776:(Ft,Pe,c)=>{c.d(Pe,{hv:()=>Ge,fS:()=>Dt,n2:()=>St,VQ:()=>un,cw:()=>_n,T7:()=>yn,X0:()=>Jt,u_:()=>xt});var r=c(9808),o=c(5e3);function A(ee,T){var p={};for(var h in ee)Object.prototype.hasOwnProperty.call(ee,h)&&T.indexOf(h)<0&&(p[h]=ee[h]);if(null!=ee&&"function"==typeof Object.getOwnPropertySymbols){var y=0;for(h=Object.getOwnPropertySymbols(ee);yEe[et]||{},h.model)[y]}else!function Ve(ee,T,p){for(let h=0;h{for(let h in p)Mt(ee[h])||B(ee[h])?ee[h]=vt(p[h]):Q(ee[h],p[h])&&yt(ee[h],p[h])}),ee}function Mt(ee){return null==ee}function Ke(ee){return void 0===ee}function B(ee){return""===ee}function G(ee){return"function"==typeof ee}function Q(ee,T){return Fe(ee)&&Fe(T)&&Object.getPrototypeOf(ee)===Object.getPrototypeOf(T)&&!(Array.isArray(ee)||Array.isArray(T))}function Fe(ee){return null!=ee&&"object"==typeof ee}function vt(ee){if(!Fe(ee)||(0,rt.b)(ee)||ee instanceof o.Rgc||ee.changingThisBreaksApplicationSecurity||-1!==["RegExp","FileList","File","Blob"].indexOf(ee.constructor.name))return ee;if(ee instanceof Set)return new Set(ee);if(ee instanceof Map)return new Map(ee);if(ee._isAMomentObject&&G(ee.clone))return ee.clone();if(ee instanceof We.TO)return null;if(ee instanceof Date)return new Date(ee.getTime());if(Array.isArray(ee))return ee.slice(0).map(h=>vt(h));const T=Object.getPrototypeOf(ee);let p=Object.create(T);return p=Object.setPrototypeOf(p,T),Object.keys(ee).reduce((h,y)=>{const R=Object.getOwnPropertyDescriptor(ee,y);return R.get?Object.defineProperty(h,y,R):h[y]=vt(ee[y]),h},p)}function Tt(ee,T,p){Object.defineProperty(ee,T,{enumerable:!1,writable:!0,configurable:!0}),ee[T]=p}function je(ee,T,p){ee._observers||Tt(ee,"_observers",{}),ee._observers[T]||(ee._observers[T]=[]);let h=ee._observers[T];return-1===h.indexOf(p)&&(h.push(p),p({currentValue:ee[T],firstChange:!0}),1===h.length&&(Tt(ee,`___$${T}`,ee[T]),Object.defineProperty(ee,T,{configurable:!0,get:()=>ee[`___$${T}`],set:y=>{if(y!==ee[`___$${T}`]){const R=ee[`___$${T}`];ee[`___$${T}`]=y,h.forEach(Ee=>Ee({previousValue:R,currentValue:y,firstChange:!1}))}}}))),()=>h.splice(h.indexOf(p),1)}const zt=new o.OlP("FORMLY_CONFIG");class jt{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.templateManipulators={preWrapper:[],postWrapper:[]},this.extras={checkExpressionOn:"changeDetectionCheck",lazyRender:!1,showError:function(T){return T.formControl&&T.formControl.invalid&&(T.formControl.touched||T.options.parentForm&&T.options.parentForm.submitted||!(!T.field.validation||!T.field.validation.show))}},this.extensions={}}addConfig(T){T.types&&T.types.forEach(p=>this.setType(p)),T.validators&&T.validators.forEach(p=>this.setValidator(p)),T.wrappers&&T.wrappers.forEach(p=>this.setWrapper(p)),T.manipulators&&(console.warn("NgxFormly: passing 'manipulators' config is deprecated, use custom extension instead."),T.manipulators.forEach(p=>this.setManipulator(p))),T.validationMessages&&T.validationMessages.forEach(p=>this.addValidatorMessage(p.name,p.message)),T.extensions&&T.extensions.forEach(p=>this.extensions[p.name]=p.extension),T.extras&&(this.extras=Object.assign({},this.extras,T.extras))}setType(T){Array.isArray(T)?T.forEach(p=>this.setType(p)):(this.types[T.name]||(this.types[T.name]={name:T.name}),["component","extends","defaultOptions","wrappers"].forEach(p=>{T.hasOwnProperty(p)&&(this.types[T.name][p]=T[p])}))}getType(T){if(!this.types[T])throw new Error(`[Formly Error] The type "${T}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.mergeExtendedType(T),this.types[T]}getMergedField(T={}){const p=this.getType(T.type);p.defaultOptions&&yt(T,p.defaultOptions);const h=p.extends&&this.getType(p.extends).defaultOptions;h&&yt(T,h),T&&T.optionsTypes&&T.optionsTypes.forEach(R=>{const Ee=this.getType(R).defaultOptions;Ee&&yt(T,Ee)});const y=this.resolveFieldTypeRef(T);y&&y.instance&&y.instance.defaultOptions&&yt(T,y.instance.defaultOptions),!T.wrappers&&p.wrappers&&(T.wrappers=[...p.wrappers])}resolveFieldTypeRef(T={}){if(!T.type)return null;const p=this.getType(T.type);if(!p.component||p._componentRef)return p._componentRef;const{_resolver:h,_injector:y}=T.parent.options,R=h.resolveComponentFactory(p.component).create(y);return Tt(p,"_componentRef",R),R.destroy(),p._componentRef}setWrapper(T){this.wrappers[T.name]=T,T.types&&T.types.forEach(p=>{this.setTypeWrapper(p,T.name)})}getWrapper(T){if(!this.wrappers[T])throw new Error(`[Formly Error] The wrapper "${T}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[T]}setTypeWrapper(T,p){this.types[T]||(this.types[T]={}),this.types[T].wrappers||(this.types[T].wrappers=[]),-1===this.types[T].wrappers.indexOf(p)&&this.types[T].wrappers.push(p)}setValidator(T){this.validators[T.name]=T}getValidator(T){if(!this.validators[T])throw new Error(`[Formly Error] The validator "${T}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[T]}addValidatorMessage(T,p){this.messages[T]=p}getValidatorMessage(T){return this.messages[T]}setManipulator(T){(new T.class)[T.method](this)}mergeExtendedType(T){if(!this.types[T].extends)return;const p=this.getType(this.types[T].extends);this.types[T].component||(this.types[T].component=p.component),this.types[T].wrappers||(this.types[T].wrappers=p.wrappers)}}jt.\u0275fac=function(T){return new(T||jt)},jt.\u0275prov=o.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"}),jt.ngInjectableDef=(0,o.Ez6)({factory:function(){return new jt},token:jt,providedIn:"root"});class Bt{constructor(T,p,h){this.formlyConfig=T,this.componentFactoryResolver=p,this.injector=h}buildForm(T,p=[],h,y){if(!this.formlyConfig.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");const R={fieldGroup:p,model:h,formControl:T,options:this._setOptions(y)};(function pt(ee,T){const p=ee._updateTreeValidity.bind(ee);ee._updateTreeValidity=()=>{},T(),ee._updateTreeValidity=p})(T,()=>this._buildForm(R)),R.options._checkField(R,!0)}_buildForm(T){this.getExtensions().forEach(p=>p.prePopulate&&p.prePopulate(T)),this.getExtensions().forEach(p=>p.onPopulate&&p.onPopulate(T)),T.fieldGroup&&T.fieldGroup.forEach(p=>this._buildForm(p)),this.getExtensions().forEach(p=>p.postPopulate&&p.postPopulate(T))}getExtensions(){return Object.keys(this.formlyConfig.extensions).map(T=>this.formlyConfig.extensions[T])}_setOptions(T){return(T=T||{}).formState=T.formState||{},T.showError||(T.showError=this.formlyConfig.extras.showError),T.fieldChanges||Tt(T,"fieldChanges",new wt.xQ),T._resolver||Tt(T,"_resolver",this.componentFactoryResolver),T._injector||Tt(T,"_injector",this.injector),T._hiddenFieldsForCheck||(T._hiddenFieldsForCheck=[]),T._markForCheck||(T._markForCheck=p=>{p._componentRefs&&p._componentRefs.forEach(h=>{h.injector.get(o.sBO).markForCheck()}),p.fieldGroup&&p.fieldGroup.forEach(h=>T._markForCheck(h))}),T._buildField||(T._buildField=p=>(this.buildForm(p.form,p.fieldGroup,p.model,p.options),p)),T}}function vn(ee,T=!1){const p=ee.formControl,h=p._fields?p._fields.indexOf(ee):-1;-1!==h&&p._fields.splice(h,1);const y=p.parent;if(!y)return;const R={emitEvent:T};if(y instanceof We.Oe){const Ee=y.controls.findIndex(et=>et===p);-1!==Ee&&Gn(y,R,()=>y.removeAt(Ee))}else if(y instanceof We.cw){const Ee=ot(ee),et=Ee[Ee.length-1];y.get([et])===p&&Gn(y,R,()=>y.removeControl(et))}p.setParent(null)}function cn(ee){if(ee.formControl)return ee.formControl;if(!1===ee.shareFormControl)return null;const T=ee.parent.formControl;return T?T.get(ot(ee)):null}function an(ee,T,p=!1){(T=T||ee.formControl)._fields||Tt(T,"_fields",[]),-1===T._fields.indexOf(ee)&&T._fields.push(ee),!ee.formControl&&T&&(Tt(ee,"formControl",T),T.setValidators(null),T.setAsyncValidators(null),ee.templateOptions.disabled=!!ee.templateOptions.disabled,je(ee.templateOptions,"disabled",({firstChange:et,currentValue:gt})=>{et||(gt?ee.formControl.disable():ee.formControl.enable())}),T.registerOnDisabledChange&&T.registerOnDisabledChange(et=>{ee.templateOptions.___$disabled=et,ee.options&&ee.options._markForCheck(ee)}));let h=ee.parent.formControl;if(!h||!ee.key)return;const y=ot(ee),R=ye(ee);(!Mt(T.value)||!Mt(R))&&T.value!==R&&T instanceof We.NI&&T.patchValue(R);for(let et=0;eth.setControl(gt,new We.cw({}))),h=h.get([gt])}const Ee=y[y.length-1];!ee._hide&&h.get([Ee])!==T&&Gn(h,{emitEvent:p},()=>h.setControl(Ee,T))}function nn(ee,T=!1){const p=ee.status,h=ee.value;ee.updateValueAndValidity({emitEvent:!1,onlySelf:T}),p!==ee.status&&ee.statusChanges.emit(ee.status),h!==ee.value&&ee.valueChanges.emit(ee.value)}function Gn(ee,T,p){ee instanceof We.cw&&!ee.__patchForEachChild&&(Tt(ee,"__patchForEachChild",!0),ee._forEachChild=y=>{Object.keys(ee.controls).forEach(R=>ee.controls[R]&&y(ee.controls[R],R))});const h=ee.updateValueAndValidity.bind(ee);!1===T.emitEvent&&(ee.updateValueAndValidity=y=>{h(Object.assign({},y||{},{emitEvent:!1}))}),p(),!1===T.emitEvent&&(ee.updateValueAndValidity=h)}function xn(ee){ee._fields&&delete ee._fields,ee.setValidators(null),ee.setAsyncValidators(null),(ee instanceof We.cw||ee instanceof We.Oe)&&Object.keys(ee.controls).forEach(T=>xn(ee.controls[T]))}Bt.\u0275fac=function(T){return new(T||Bt)(o.LFG(jt),o.LFG(o._Vd),o.LFG(o.zs3))},Bt.\u0275prov=o.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt.ngInjectableDef=(0,o.Ez6)({factory:function(){return new Bt((0,o.f3M)(jt),(0,o.f3M)(o._Vd),(0,o.f3M)(o.gxx))},token:Bt,providedIn:"root"});let yn=(()=>{class ee{constructor(p,h,y,R,Ee){this.formlyBuilder=p,this.formlyConfig=h,this.ngZone=y,this.parentFormGroup=Ee,this.modelChange=new o.vpe,this.immutable=!1,this._modelChangeValue={},this.modelChangeSubs=[],this.modelChange$=new wt.xQ,this.modelChangeSub=this.modelChange$.pipe((0,U.w)(()=>this.ngZone.onStable.asObservable().pipe((0,J.q)(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=vt(this.model))})),null!==R&&console.warn("NgxFormly: passing 'immutable' attribute to 'formly-form' component is deprecated since v5.5, enable immutable mode through NgModule declaration instead."),this.immutable=null!==R||!!h.extras.immutable}set model(p){this._model=this.immutable?vt(p):p}get model(){return this._model||(this._model={}),this._model}set fields(p){this._fields=this.immutable?vt(p):p}get fields(){return this._fields||[]}set options(p){this._options=this.immutable?vt(p):p}get options(){return this._options}set content(p){if(p){let h=!1,y=p.nativeElement.nextSibling;for(;y&&!h;)(y.nodeType===Node.ELEMENT_NODE||y.nodeType===Node.TEXT_NODE&&y.textContent&&""!==y.textContent.trim())&&(h=!0),y=y.nextSibling;h&&console.warn("NgxFormly: content projection for 'formly-form' component is deprecated since v5.5, you should avoid passing content inside the 'formly-form' tag.")}}ngDoCheck(){"changeDetectionCheck"===this.formlyConfig.extras.checkExpressionOn&&this.checkExpressionChange()}ngOnChanges(p){p.model&&this.field&&(this.field.model=this.model),p.fields&&this.form&&xn(this.form),(p.fields||p.form||p.model&&this._modelChangeValue!==p.model.currentValue)&&(this.form=this.form||new We.cw({}),this.setOptions(),this.options.updateInitialValue(),this.clearModelSubscriptions(),this.formlyBuilder.buildForm(this.form,this.fields,this.model,this.options),this.trackModelChanges(this.fields))}ngOnDestroy(){this.modelChangeSub.unsubscribe(),this.clearModelSubscriptions()}changeModel({value:h,field:y}){Ne(y,h),this.modelChange$.next()}setOptions(){this.options||(this.options={}),this.options.resetModel||(this.options.resetModel=p=>{p=vt(Mt(p)?this.options._initialModel:p),this.model&&(Object.keys(this.model).forEach(h=>delete this.model[h]),Object.assign(this.model,p||{})),this.options._buildForm(),this.options.parentForm&&this.options.parentForm.control===this.form?this.options.parentForm.resetForm(this.model):this.form.reset(this.model)}),!this.options.parentForm&&this.parentFormGroup&&(Tt(this.options,"parentForm",this.parentFormGroup),je(this.options.parentForm,"submitted",({firstChange:p})=>{p||(this.checkExpressionChange(),this.options._markForCheck({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options}))})),this.options.updateInitialValue||(this.options.updateInitialValue=()=>this.options._initialModel=vt(this.model)),this.options._buildForm||(this.options._buildForm=(p=!1)=>{this.clearModelSubscriptions(),this.formlyBuilder.buildForm(this.form,this.fields,this.model,this.options),this.trackModelChanges(this.fields),p&&this.modelChange.emit(this._modelChangeValue=vt(this.model))})}checkExpressionChange(){this.options&&this.options._checkField&&this.options._checkField({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options})}trackModelChanges(p,h=[]){p.forEach(y=>{if(y.key&&!y.fieldGroup&&y.formControl){const R=y.formControl;let Ee=R.valueChanges.pipe((0,Me.x)((_t,Rt)=>!(_t!==Rt||Array.isArray(_t)||Fe(_t))));const{updateOn:et,debounce:gt}=y.modelOptions;(!et||"change"===et)&>&>.default>0&&(Ee=R.valueChanges.pipe((0,se.b)(gt.default))),this.modelChangeSubs.push(Ee.subscribe(_t=>{R instanceof We.NI&&R._fields&&R._fields.length>1&&R.patchValue(_t,{emitEvent:!1,onlySelf:!0}),y.parsers&&y.parsers.length>0&&y.parsers.forEach(Rt=>_t=Rt(_t)),this.changeModel({key:[...h,...ot(y)].join("."),value:_t,field:y})}));const Qe=R.valueChanges.observers;Qe&&Qe.length>1&&Qe.unshift(Qe.pop())}y.fieldGroup&&y.fieldGroup.length>0&&this.trackModelChanges(y.fieldGroup,y.key?[...h,...ot(y)]:h)})}clearModelSubscriptions(){this.modelChangeSubs.forEach(p=>p.unsubscribe()),this.modelChangeSubs=[]}get field(){return this.fields&&this.fields[0]&&this.fields[0].parent}}return ee.\u0275fac=function(p){return new(p||ee)(o.Y36(Bt),o.Y36(jt),o.Y36(o.R0b),o.$8M("immutable"),o.Y36(We.sg,8))},ee.\u0275cmp=o.Xpm({type:ee,selectors:[["formly-form"]],viewQuery:function(p,h){if(1&p&&o.Gf(It,5),2&p){let y;o.iGM(y=o.CRH())&&(h.content=y.first)}},inputs:{model:"model",fields:"fields",options:"options",form:"form"},outputs:{modelChange:"modelChange"},features:[o._Bn([Bt]),o.TTD],ngContentSelectors:lt,decls:4,vars:1,consts:[["hide-deprecation","",3,"form","options","model","field",4,"ngFor","ngForOf"],["content",""],["hide-deprecation","",3,"form","options","model","field"]],template:function(p,h){1&p&&(o.F$t(),o.YNc(0,Xe,1,4,"formly-field",0),o.ynx(1,null,1),o.Hsn(3),o.BQk()),2&p&&o.Q6J("ngForOf",h.fields)},directives:function(){return[r.sg,_n]},encapsulation:2}),ee})(),_n=(()=>{class ee{constructor(p,h,y,R,Ee){this.formlyConfig=p,this.renderer=h,this.resolver=y,this.elementRef=R,this.warnDeprecation=!1,this.modelChange=new o.vpe,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.warnDeprecation=null===Ee}set model(p){this.warnDeprecation&&console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}set form(p){this.warnDeprecation&&console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}set options(p){this.warnDeprecation&&console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterContentChecked(){this.triggerHook("afterContentChecked")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngAfterViewChecked(){this.triggerHook("afterViewChecked")}ngDoCheck(){this.triggerHook("doCheck"),this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(p){this.triggerHook("onChanges",p)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(p=>p()),this.hooksObservers.forEach(p=>p()),this.triggerHook("onDestroy")}renderField(p,h,y=[]){if(this.containerRef===p&&(this.resetRefs(this.field),this.containerRef.clear(),y=this.field?this.field.wrappers:[]),y&&y.length>0){const[R,...Ee]=y,{component:et}=this.formlyConfig.getWrapper(R),gt=p.createComponent(this.resolver.resolveComponentFactory(et));this.attachComponentRef(gt,h),je(gt.instance,"fieldComponent",({firstChange:Qe,previousValue:_t,currentValue:Rt})=>{if(Rt){if(_t&&_t._lContainer===Rt._lContainer)return;const qt=_t?_t.detach():null;qt&&!qt.destroyed?Rt.insert(qt):this.renderField(Rt,h,Ee),!Qe&>.changeDetectorRef.detectChanges()}})}else if(h&&h.type){const{component:R}=this.formlyConfig.getType(h.type),Ee=p.createComponent(this.resolver.resolveComponentFactory(R));this.attachComponentRef(Ee,h)}}triggerHook(p,h){if(this.field&&this.field.hooks&&this.field.hooks[p]&&(!h||h.field)){const y=this.field.hooks[p](this.field);if((0,rt.b)(y)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(p)){const R=y.subscribe();this.hooksObservers.push(()=>R.unsubscribe())}}this.field&&this.field.lifecycle&&this.field.lifecycle[p]&&this.field.lifecycle[p](this.field.form,this.field,this.field.model,this.field.options),"onChanges"===p&&h.field&&(this.resetRefs(h.field.previousValue),this.render())}attachComponentRef(p,h){this.componentRefs.push(p),h._componentRefs.push(p),Object.assign(p.instance,{field:h})}render(){if(this.field){if(!this.field.options)return void(this.detectFieldBuild=!0);this.detectFieldBuild=!1,this.hostObservers.forEach(p=>p()),this.hostObservers=[je(this.field,"hide",({firstChange:p,currentValue:h})=>{this.formlyConfig.extras.lazyRender?h?(this.containerRef.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(this.containerRef,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)):(p&&this.renderField(this.containerRef,this.field),(!p||p&&h)&&this.renderer.setStyle(this.elementRef.nativeElement,"display",h?"none":""))}),je(this.field,"className",({firstChange:p,currentValue:h})=>{(!p||p&&h)&&(!this.formlyConfig.extras.lazyRender||!0!==this.field.hide)&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",h)})]}}resetRefs(p){p&&(p._componentRefs?p._componentRefs=p._componentRefs.filter(h=>-1===this.componentRefs.indexOf(h)):Tt(this.field,"_componentRefs",[])),this.componentRefs=[]}}return ee.\u0275fac=function(p){return new(p||ee)(o.Y36(jt),o.Y36(o.Qsj),o.Y36(o._Vd),o.Y36(o.SBq),o.$8M("hide-deprecation"))},ee.\u0275cmp=o.Xpm({type:ee,selectors:[["formly-field"]],viewQuery:function(p,h){if(1&p&&o.Gf(ct,7,o.s_b),2&p){let y;o.iGM(y=o.CRH())&&(h.containerRef=y.first)}},inputs:{model:"model",form:"form",options:"options",field:"field"},outputs:{modelChange:"modelChange"},features:[o.TTD],decls:2,vars:0,consts:[["container",""]],template:function(p,h){1&p&&o.YNc(0,Lt,0,0,"ng-template",null,0,o.W1O)},encapsulation:2}),ee})(),un=(()=>{class ee{constructor(p,h,y){this.renderer=p,this.elementRef=h,this.uiAttributesCache={},this.uiAttributes=null,this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change"],callback:(R,Ee)=>{switch(R){case"focus":return this.onFocus(Ee);case"blur":return this.onBlur(Ee);case"change":return this.onChange(Ee);default:return this.to[R](this.field,Ee)}}},this.document=y}get to(){return this.field.templateOptions||{}}get fieldAttrElements(){return this.field&&this.field._elementRefs||[]}ngOnChanges(p){p.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(h=>h()),this.uiEvents.events.forEach(h=>{(this.to&&this.to[h]||-1!==["focus","blur","change"].indexOf(h))&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,h,y=>this.uiEvents.callback(h,y)))}),this.to&&this.to.attributes&&je(this.to,"attributes",({currentValue:h,previousValue:y})=>{y&&Object.keys(y).forEach(R=>this.removeAttribute(R)),h&&Object.keys(h).forEach(R=>{null!=h[R]&&this.setAttribute(R,h[R])})}),this.detachElementRef(p.field.previousValue),this.attachElementRef(p.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),je(this.field,"focus",({currentValue:h})=>{this.toggleFocus(h)}))),p.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){const p=this.elementRef.nativeElement;this.uiAttributes=[...en,"tabindex","placeholder","readonly","disabled","step"].filter(h=>!p.hasAttribute||!p.hasAttribute(h))}this.uiAttributes.forEach(p=>{const h=this.to[p];this.uiAttributesCache[p]!==h&&(!this.to.attributes||!this.to.attributes.hasOwnProperty(p.toLowerCase()))&&(this.uiAttributesCache[p]=h,h||0===h?this.setAttribute(p,!0===h?p:`${h}`):this.removeAttribute(p))})}ngOnDestroy(){this.uiEvents.listeners.forEach(p=>p()),this.detachElementRef(this.field)}toggleFocus(p){const h=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!h||!h.nativeElement.focus)return;const y=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:R})=>this.document.activeElement===R||R.contains(this.document.activeElement));p&&!y?h.nativeElement.focus():!p&&y&&h.nativeElement.blur()}onFocus(p){this.field.___$focus=!0,this.to.focus&&this.to.focus(this.field,p)}onBlur(p){this.field.___$focus=!1,this.to.blur&&this.to.blur(this.field,p)}onChange(p){this.to.change&&this.to.change(this.field,p),this.field.formControl&&this.field.formControl.markAsDirty()}attachElementRef(p){!p||(p._elementRefs&&-1===p._elementRefs.indexOf(this.elementRef)?p._elementRefs.push(this.elementRef):Tt(p,"_elementRefs",[this.elementRef]))}detachElementRef(p){const h=p&&p._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==h&&this.field._elementRefs.splice(h,1)}setAttribute(p,h){this.renderer.setAttribute(this.elementRef.nativeElement,p,h)}removeAttribute(p){this.renderer.removeAttribute(this.elementRef.nativeElement,p)}}return ee.\u0275fac=function(p){return new(p||ee)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(r.K0))},ee.\u0275dir=o.lG2({type:ee,selectors:[["","formlyAttributes",""]],inputs:{field:["formlyAttributes","field"],id:"id"},features:[o.TTD]}),ee})(),Dt=(()=>{class ee{get model(){return this.field.model}set model(p){console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get form(){return this.field.parent.formControl}set form(p){console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get options(){return this.field.options}set options(p){console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get key(){return this.field.key}get formControl(){return this.field.formControl}get to(){return this.field.templateOptions||{}}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options.formState||{}}}return ee.\u0275fac=function(p){return new(p||ee)},ee.\u0275dir=o.lG2({type:ee,inputs:{model:"model",form:"form",options:"options",field:"field"}}),ee})(),Ge=(()=>{class ee extends Dt{constructor(p){super(),this.defaultOptions={defaultValue:[]},p instanceof Bt&&console.warn(`NgxFormly: passing 'FormlyFormBuilder' to '${this.constructor.name}' type is not required anymore, you may remove it!`)}get formControl(){return this.field.formControl}onPopulate(p){!p.formControl&&p.key&&an(p,cn(p)||new We.Oe([],{updateOn:p.modelOptions.updateOn})),p.fieldGroup=p.fieldGroup||[];const h=p.model?p.model.length:0;if(p.fieldGroup.length>h)for(let y=p.fieldGroup.length-1;y>=h;--y)vn(p.fieldGroup[y]),p.fieldGroup.splice(y,1);for(let y=p.fieldGroup.length;yy.key=`${R}`),this.options._buildForm(!0),h&&this.formControl.markAsDirty()}}return ee.\u0275fac=function(p){return new(p||ee)(o.Y36(zt,8))},ee.\u0275dir=o.lG2({type:ee,selectors:[["fieldArray"]],features:[o.qOj]}),ee})(),St=(()=>{class ee extends Dt{}return ee.\u0275fac=function(){let T;return function(h){return(T||(T=o.n5z(ee)))(h||ee)}}(),ee.\u0275dir=o.lG2({type:ee,viewQuery:function(p,h){if(1&p&&o.Gf(Ie,5,o.s_b),2&p){let y;o.iGM(y=o.CRH())&&(h.fieldComponent=y.first)}},features:[o.qOj]}),ee})(),xe=(()=>{class ee extends Dt{constructor(){super(...arguments),this.defaultOptions={defaultValue:{}}}}return ee.\u0275fac=function(){let T;return function(h){return(T||(T=o.n5z(ee)))(h||ee)}}(),ee.\u0275cmp=o.Xpm({type:ee,selectors:[["formly-group"]],hostVars:2,hostBindings:function(p,h){2&p&&o.Tol(h.field.fieldGroupClassName||"")},features:[o.qOj],ngContentSelectors:lt,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(p,h){1&p&&(o.F$t(),o.YNc(0,Pt,1,1,"formly-field",0),o.Hsn(1)),2&p&&o.Q6J("ngForOf",h.field.fieldGroup)},directives:[r.sg,_n],encapsulation:2}),ee})(),xt=(()=>{class ee{constructor(p){this.formlyConfig=p}ngOnChanges(){this.errorMessage$=(0,Ae.T)(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe((0,we.h)(({field:p,type:h,property:y})=>p===this.field&&"expressionChanges"===h&&-1!==y.indexOf("validation"))):(0,mt.of)(null)).pipe((0,ue.O)(null),(0,U.w)(()=>(0,rt.b)(this.errorMessage)?this.errorMessage:(0,mt.of)(this.errorMessage)))}get errorMessage(){const p=this.field.formControl;for(let h in p.errors)if(p.errors.hasOwnProperty(h)){let y=this.formlyConfig.getValidatorMessage(h);if(Fe(p.errors[h])){if(p.errors[h].errorPath)return;p.errors[h].message&&(y=p.errors[h].message)}return this.field.validation&&this.field.validation.messages&&this.field.validation.messages[h]&&(y=this.field.validation.messages[h]),this.field.validators&&this.field.validators[h]&&this.field.validators[h].message&&(y=this.field.validators[h].message),this.field.asyncValidators&&this.field.asyncValidators[h]&&this.field.asyncValidators[h].message&&(y=this.field.asyncValidators[h].message),"function"==typeof y?y(p.errors[h],this.field):y}}}return ee.\u0275fac=function(p){return new(p||ee)(o.Y36(jt))},ee.\u0275cmp=o.Xpm({type:ee,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[o.TTD],decls:2,vars:3,template:function(p,h){1&p&&(o._uU(0),o.ALo(1,"async")),2&p&&o.Oqu(o.lcZ(1,1,h.errorMessage$))},pipes:[r.Ov],encapsulation:2,changeDetection:0}),ee})(),ge=(()=>{class ee extends Dt{constructor(p){super(),this.sanitizer=p,this.innerHtml={content:null,template:null}}get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.to.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}}return ee.\u0275fac=function(p){return new(p||ee)(o.Y36(Ct.H7))},ee.\u0275cmp=o.Xpm({type:ee,selectors:[["formly-template"]],features:[o.qOj],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(p,h){1&p&&o._UZ(0,"div",0),2&p&&o.Q6J("innerHtml",h.template,o.oJD)},encapsulation:2}),ee})();function ut(ee,T,p){return ee instanceof Function?ee.apply(T,p):!!ee}class I{prePopulate(T){if(T.parent||T.options._checkField)return;let p=!1;T.options._checkField=(h,y)=>{p||(p=!0,this.checkField(h,y),p=!1)}}postPopulate(T){if(T.parent&&!T._expressionProperties){if(Tt(T,"_expressionProperties",{}),T.expressionProperties)for(const p in T.expressionProperties){const h=T.expressionProperties[p];if("string"==typeof h||G(h))T._expressionProperties[p]={expression:this._evalExpression(p,h,"templateOptions.disabled"===p&&T.parent.expressionProperties&&T.parent.expressionProperties.hasOwnProperty("templateOptions.disabled")?()=>T.parent.templateOptions.disabled:void 0)},"templateOptions.disabled"===p&&Object.defineProperty(T._expressionProperties[p],"expressionValue",{get:()=>T.templateOptions.disabled,set:()=>{},enumerable:!0,configurable:!0});else if(h instanceof kt.y){const y=()=>h.subscribe(gt=>{this.setExprValue(T,p,gt),T.options&&T.options._markForCheck&&T.options._markForCheck(T)});let R=y();const Ee=T.hooks.onInit;T.hooks.onInit=()=>(null===R&&(R=y()),Ee&&Ee(T));const et=T.hooks.onDestroy;T.hooks.onDestroy=()=>{et&&et(T),R.unsubscribe(),R=null}}}T.hideExpression?(delete T.hide,T.hideExpression=this._evalExpression("hide",T.hideExpression,()=>{let p=T.parent;for(;p.parent&&!p.hide;)p=p.parent;return p.hide})):je(T,"hide",({currentValue:p,firstChange:h})=>{T._hide=p,(!h||h&&!0===p)&&T.options._hiddenFieldsForCheck.push(T)})}}_evalExpression(T,p,h){return(...y)=>{try{return"string"==typeof p&&(p=function de(ee,T){try{return-1!==ee.indexOf("this.field")&&console.warn("NgxFormly: using 'this.field' in expressionProperties is deprecated since v5.1, use 'field' instead."),Function(...T,`return ${ee};`)}catch(p){console.error(p)}}(p,["model","formState","field"])),"function"!=typeof p&&(p=()=>!!p),h&&h()||p(...y)}catch(R){throw R.message=`[Formly Error] [Expression "${T}"] ${R.message}`,R}}}checkField(T,p=!1){const h=this._checkField(T,p);T.options._hiddenFieldsForCheck.sort(y=>y.hide?-1:1).forEach(y=>this.toggleFormControl(y,!!y.hide,!p)),T.options._hiddenFieldsForCheck=[],h&&(this.checkField(T),T.options&&T.options._markForCheck&&T.options._markForCheck(T))}_checkField(T,p=!1){let h=!1;return T.fieldGroup.forEach(y=>{!y.options||(this.checkFieldExpressionChange(y,p)&&(h=!0),this.checkFieldVisibilityChange(y,p)&&(T.options._hiddenFieldsForCheck.push(y),h=!0),y.fieldGroup&&y.fieldGroup.length>0&&this._checkField(y,p)&&(h=!0))}),h}checkFieldExpressionChange(T,p){if(!T||!T._expressionProperties)return!1;let h=!1;const y=T._expressionProperties;for(const R in y){let Ee=ut(y[R].expression,{field:T},[T.model,T.options.formState,T,p]);"templateOptions.disabled"===R&&(Ee=!!Ee),(p||y[R].expressionValue!==Ee&&(!Fe(Ee)&&!G(Ee)||G(Ee)&&""+y[R].expressionValue!=""+Ee||(0,rt.b)(Ee)||JSON.stringify(Ee)!==JSON.stringify(y[R].expressionValue)))&&(h=!0,y[R].expressionValue=Ee,this.setExprValue(T,R,Ee))}return h}checkFieldVisibilityChange(T,p){if(!T||Mt(T.hideExpression))return!1;const h=!!ut(T.hideExpression,{field:T},[T.model,T.options.formState,T,p]);let y=!1;return(h!==T.hide||p)&&(y=!0,T.hide=h,T.templateOptions.hidden=h),y}setDisabledState(T,p){T.fieldGroup&&T.fieldGroup.filter(h=>!h.expressionProperties||!h.expressionProperties.hasOwnProperty("templateOptions.disabled")).forEach(h=>this.setDisabledState(h,p)),T.key&&T.templateOptions.disabled!==p&&(T.templateOptions.disabled=p)}toggleFormControl(T,p,h){if(T.fieldGroup&&T.fieldGroup.filter(y=>!y.hideExpression).forEach(y=>this.toggleFormControl(y,p,h)),T.formControl&&T.key){Tt(T,"_hide",!(!p&&!T.hide));const y=T.formControl;y._fields&&y._fields.length>1&&nn(y),!0!==p||y._fields&&!y._fields.every(R=>!!R._hide)?!1===p&&(T.resetOnHide&&T.parent&&!Ke(T.defaultValue)&&Ke(ye(T))&&Ne(T,T.defaultValue),an(T,void 0,!0),T.resetOnHide&&T.fieldArray&&(T.fieldGroup||[]).length!==(T.model||[]).length&&T.options._buildForm(!0)):(vn(T,!0),h&&T.resetOnHide&&(T.formControl.reset({value:void 0,disabled:T.formControl.disabled}),T.fieldGroup&&(Ne(T,void 0),T.formControl instanceof We.Oe&&(T.fieldGroup.length=0))))}T.options.fieldChanges&&T.options.fieldChanges.next({field:T,type:"hidden",value:p})}setExprValue(T,p,h){try{let y=T;const R=-1===p.indexOf("[")?p.split("."):p.replace(/\'|\"/g,"").split(/[[\]]{1,2}/).filter(et=>et),Ee=R.length-1;for(let et=0;etthis.wrapNgValidatorFn(T,R))):h.push(this.wrapNgValidatorFn(T,T[p][y],y));Tt(T,"_"+p,h)}getPredefinedFieldValidation(T){let p=[];return en.forEach(h=>je(T.templateOptions,h,({currentValue:y,firstChange:R})=>{p=p.filter(Ee=>Ee!==h),null!=y&&!1!==y&&p.push(h),!R&&T.formControl&&nn(T.formControl)})),h=>0===p.length?null:We.kI.compose(p.map(y=>()=>{const R=T.templateOptions[y];switch(y){case"required":return We.kI.required(h);case"pattern":return We.kI.pattern(R)(h);case"minLength":return We.kI.minLength(R)(h);case"maxLength":return We.kI.maxLength(R)(h);case"min":return We.kI.min(R)(h);case"max":return We.kI.max(R)(h)}}))(h)}wrapNgValidatorFn(T,p,h){let y=null;if("string"==typeof p&&(y=vt(this.formlyConfig.getValidator(p))),"object"==typeof p&&p.name&&(y=vt(this.formlyConfig.getValidator(p.name)),p.options&&(y.options=p.options)),"object"==typeof p&&p.expression){const{expression:R}=p,Ee=A(p,["expression"]);y={name:h,validation:R,options:Object.keys(Ee).length>0?Ee:null}}return"function"==typeof p&&(y={name:h,validation:p}),R=>{const Ee=y.validation(R,T,y.options);return function Je(ee){return!!ee&&"function"==typeof ee.then}(Ee)?Ee.then(et=>this.handleAsyncResult(T,h?!!et:et,y)):(0,rt.b)(Ee)?Ee.pipe((0,Ye.U)(et=>this.handleAsyncResult(T,h?!!et:et,y))):this.handleResult(T,h?!!Ee:Ee,y)}}handleAsyncResult(T,p,h){return T.options&&T.options._markForCheck&&T.options._markForCheck(T),this.handleResult(T,p,h)}handleResult(T,p,{name:h,options:y}){"boolean"==typeof p&&(p=p?null:{[h]:y||!0});const R=T.formControl;return R._childrenErrors&&R._childrenErrors[h]&&R._childrenErrors[h](),Fe(p)&&Object.keys(p).forEach(Ee=>{const et=p[Ee].errorPath?p[Ee].errorPath:(y||{}).errorPath,gt=et?T.formControl.get(et):null;if(gt){const _t=A(p[Ee],["errorPath"]);gt.setErrors(Object.assign({},gt.errors||{},{[Ee]:_t})),!R._childrenErrors&&Tt(R,"_childrenErrors",{}),R._childrenErrors[Ee]=()=>{const Vt=A(gt.errors||{},["symbol"==typeof Ee?Ee:Ee+""]);gt.setErrors(0===Object.keys(Vt).length?null:Vt)}}}),p}}class oe{constructor(T){this.config=T}onPopulate(T){!T.parent||(T.fieldGroup&&!T.key?Tt(T,"formControl",T.parent.formControl):this.addFormControl(T))}postPopulate(T){T.parent||this.setValidators(T)}addFormControl(T){let p=cn(T);if(!p){const h={updateOn:T.modelOptions.updateOn},y=T.key?ye(T):T.defaultValue,R=this.config?this.config.resolveFieldTypeRef(T):null;if(R&&R.componentType&&R.componentType.createControl){const Ee=R.componentType;console.warn(`NgxFormly: '${Ee.name}::createControl' is deprecated since v5.0, use 'prePopulate' hook instead.`),p=Ee.createControl(y,T)}else p=T.fieldGroup?new We.cw({},h):new We.NI(y,h)}an(T,p)}setValidators(T,p=!1){let h=!1;if(!1===p&&T.key&&T.templateOptions&&T.templateOptions.disabled&&(p=!0),(T.fieldGroup||[]).forEach(y=>this.setValidators(y,p)&&(h=!0)),T.key||!T.parent||!T.key&&!T.fieldGroup){const{formControl:y}=T;T.templateOptions=T.templateOptions||{},T.key&&y&&y instanceof We.NI&&(p&&y.enabled&&(y.disable({emitEvent:!1,onlySelf:!0}),h=!0),!p&&y.disabled&&(y.enable({emitEvent:!1,onlySelf:!0}),h=!0)),y&&(null===y.validator||null===y.asyncValidator)&&(y.setValidators(()=>{const R=We.kI.compose(this.mergeValidators(T,"_validators"));return R?R(y):null}),y.setAsyncValidators(()=>{const R=We.kI.composeAsync(this.mergeValidators(T,"_asyncValidators"));return R?R(y):(0,mt.of)(null)}),h=!0),h&&nn(y,!0)}return h}mergeValidators(T,p){const h=[],y=T.formControl;return y&&y._fields&&y._fields.length>1?y._fields.filter(R=>!R._hide).forEach(R=>h.push(...R[p])):T[p]&&h.push(...T[p]),T.fieldGroup&&T.fieldGroup.filter(R=>!R.key&&R.fieldGroup).forEach(R=>h.push(...this.mergeValidators(R,p))),h}}class De{constructor(T){this.formlyConfig=T,this.formId=0}prePopulate(T){if(this.getFieldComponentInstance(T).prePopulate(),T.parent)return;const p=T.options&&T.options.fieldTransform||this.formlyConfig.extras.fieldTransform;(Array.isArray(p)?p:[p]).forEach(h=>{if(h&&(console.warn("NgxFormly: fieldTransform is deprecated since v5.0, use custom extension instead."),!h(T.fieldGroup,T.model,T.formControl,T.options)))throw new Error("fieldTransform must return an array of fields")})}onPopulate(T){this.initFieldOptions(T),this.getFieldComponentInstance(T).onPopulate(),T.fieldGroup&&T.fieldGroup.forEach((p,h)=>{Object.defineProperty(p,"parent",{get:()=>T,configurable:!0}),Object.defineProperty(p,"index",{get:()=>h,configurable:!0}),this.formId++})}postPopulate(T){this.getFieldComponentInstance(T).postPopulate()}initFieldOptions(T){const p=T.parent;if(p){if(Object.defineProperty(T,"form",{get:()=>p.formControl,configurable:!0}),Object.defineProperty(T,"options",{get:()=>p.options,configurable:!0}),Object.defineProperty(T,"model",{get:()=>T.key&&T.fieldGroup?ye(T):p.model,configurable:!0}),yt(T,{id:Et(`formly_${this.formId}`,T,T.index),hooks:{},modelOptions:{},validation:{messages:{}},templateOptions:T.type&&T.key?{label:"",placeholder:"",focus:!1,disabled:!1}:{}}),this.formlyConfig.extras.resetFieldOnHide&&!1!==T.resetOnHide&&(T.resetOnHide=!0),T.lifecycle&&console.warn("NgxFormly: 'lifecycle' is deprecated since v5.0, use 'hooks' instead."),"formly-template"!==T.type&&(T.template||T.expressionProperties&&T.expressionProperties.template)&&(T.type&&console.warn("NgxFormly: passing 'type' property is not allowed when 'template' is set."),T.type="formly-template"),!T.type&&T.fieldGroup&&(T.type="formly-group"),T.type&&this.formlyConfig.getMergedField(T),T.parent){let h=!Ke(T.key)&&!Ke(T.defaultValue)&&Ke(ye(T))&&(!T.resetOnHide||!(T.hide||T.hideExpression));if(h&&T.resetOnHide){let y=T.parent;for(;y&&!y.hideExpression&&!y.hide;)y=y.parent;h=!y||!(y.hideExpression||y.hide)}h&&Ne(T,T.defaultValue)}this.initFieldWrappers(T)}}initFieldWrappers(T){T.wrappers=T.wrappers||[];const p=Object.assign({preWrapper:[],postWrapper:[]},T.templateOptions.templateManipulators||{});T.wrappers=[...this.formlyConfig.templateManipulators.preWrapper.map(h=>h(T)),...p.preWrapper.map(h=>h(T)),...T.wrappers,...this.formlyConfig.templateManipulators.postWrapper.map(h=>h(T)),...p.postWrapper.map(h=>h(T))].filter((h,y,R)=>h&&y===R.indexOf(h))}getFieldComponentInstance(T){const p=this.formlyConfig.resolveFieldTypeRef(T),h=p?p.instance:{};return{prePopulate:()=>h.prePopulate&&h.prePopulate(T),onPopulate:()=>h.onPopulate&&h.onPopulate(T),postPopulate:()=>h.postPopulate&&h.postPopulate(T)}}}function ft(ee){return{types:[{name:"formly-group",component:xe},{name:"formly-template",component:ge}],extensions:[{name:"core",extension:new De(ee)},{name:"field-validation",extension:new Z(ee)},{name:"field-form",extension:new oe(ee)},{name:"field-expression",extension:new I}]}}let Jt=(()=>{class ee{constructor(p,h=[]){!h||h.forEach(y=>p.addConfig(y))}static forRoot(p={}){return{ngModule:ee,providers:[{provide:zt,multi:!0,useFactory:ft,deps:[jt]},{provide:zt,useValue:p,multi:!0},{provide:o.deG,useValue:p,multi:!0},jt,Bt]}}static forChild(p={}){return{ngModule:ee,providers:[{provide:zt,multi:!0,useFactory:ft,deps:[jt]},{provide:zt,useValue:p,multi:!0},{provide:o.deG,useValue:p,multi:!0},Bt]}}}return ee.\u0275fac=function(p){return new(p||ee)(o.LFG(jt),o.LFG(zt,8))},ee.\u0275mod=o.oAB({type:ee}),ee.\u0275inj=o.cJS({imports:[[r.ez]]}),ee})()},304:(Ft,Pe,c)=>{c.d(Pe,{F:()=>E});var r=c(9808),o=c(8776),l=c(4182),K=c(4546),m=c(5e3),A=c(1894);function b(S,w){if(1&S&&(m.ynx(0),m.TgZ(1,"nz-form-label",4),m._uU(2),m.qZA(),m.BQk()),2&S){const z=m.oxw();m.xp6(1),m.Q6J("nzRequired",z.to.required&&!0!==z.to.hideRequiredMarker)("nzFor",z.id),m.xp6(1),m.hij(" ",z.to.label," ")}}function D(S,w){if(1&S&&m._UZ(0,"formly-validation-message",5),2&S){const z=m.oxw();m.Q6J("field",z.field)}}let C=(()=>{class S extends o.n2{get errorState(){return this.showError?"error":""}}return S.\u0275fac=function(){let w;return function(M){return(w||(w=m.n5z(S)))(M||S)}}(),S.\u0275cmp=m.Xpm({type:S,selectors:[["formly-wrapper-nz-form-field"]],features:[m.qOj],decls:7,vars:3,consts:[[4,"ngIf"],[3,"nzValidateStatus","nzErrorTip"],["fieldComponent",""],["errorTpl",""],[3,"nzRequired","nzFor"],[3,"field"]],template:function(z,M){if(1&z&&(m.TgZ(0,"nz-form-item"),m.YNc(1,b,3,3,"ng-container",0),m.TgZ(2,"nz-form-control",1),m.GkF(3,null,2),m.YNc(5,D,1,1,"ng-template",null,3,m.W1O),m.qZA(),m.qZA()),2&z){const k=m.MAs(6);m.xp6(1),m.Q6J("ngIf",M.to.label&&!0!==M.to.hideLabel),m.xp6(1),m.Q6J("nzValidateStatus",M.errorState)("nzErrorTip",k)}},directives:[A.SK,K.Nx,r.O5,A.t3,K.iK,K.Fd,o.u_],encapsulation:2}),S})(),E=(()=>{class S{}return S.\u0275fac=function(z){return new(z||S)},S.\u0275mod=m.oAB({type:S}),S.\u0275inj=m.cJS({imports:[[r.ez,l.UX,K.U5,o.X0.forChild({wrappers:[{name:"form-field",component:C}]})]]}),S})()},9139:(Ft,Pe,c)=>{c.d(Pe,{u:()=>Me});var r=c(304),o=c(9808),l=c(8776),K=c(4182),m=c(1047),A=c(656),b=c(5e3);function D(se,we){if(1&se&&b._UZ(0,"input",2),2&se){const ue=b.oxw();b.Q6J("formControl",ue.formControl)("type",ue.to.type||"text")("formlyAttributes",ue.field)}}function C(se,we){if(1&se&&b._UZ(0,"nz-input-number",3),2&se){const ue=b.oxw();b.Q6J("formControl",ue.formControl)("formlyAttributes",ue.field)}}let E=(()=>{class se extends l.fS{}return se.\u0275fac=function(){let we;return function(Ye){return(we||(we=b.n5z(se)))(Ye||se)}}(),se.\u0275cmp=b.Xpm({type:se,selectors:[["formly-field-nz-input"]],features:[b.qOj],decls:3,vars:2,consts:[["nz-input","",3,"formControl","type","formlyAttributes",4,"ngIf","ngIfElse"],["numberTmp",""],["nz-input","",3,"formControl","type","formlyAttributes"],[3,"formControl","formlyAttributes"]],template:function(ue,Ye){if(1&ue&&(b.YNc(0,D,1,3,"input",0),b.YNc(1,C,1,2,"ng-template",null,1,b.W1O)),2&ue){const We=b.MAs(2);b.Q6J("ngIf","number"!==Ye.to.type)("ngIfElse",We)}},directives:[o.O5,m.Zp,K.Fj,K.JJ,K.oH,l.VQ,A._],encapsulation:2}),se})(),S=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[o.ez,K.UX,m.o7,A.Z,r.F,l.X0.forChild({types:[{name:"input",component:E,wrappers:["form-field"]}]})]]}),se})(),w=(()=>{class se extends l.fS{}return se.\u0275fac=function(){let we;return function(Ye){return(we||(we=b.n5z(se)))(Ye||se)}}(),se.\u0275cmp=b.Xpm({type:se,selectors:[["formly-field-nz-textarea"]],features:[b.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(ue,Ye){1&ue&&b._UZ(0,"textarea",0),2&ue&&b.Q6J("formControl",Ye.formControl)("formlyAttributes",Ye.field)},directives:[m.Zp,K.Fj,K.JJ,K.oH,l.VQ],encapsulation:2}),se})(),z=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[o.ez,K.UX,m.o7,r.F,l.X0.forChild({types:[{name:"textarea",component:w,wrappers:["form-field"]}]})]]}),se})();var M=c(3793),k=c(3868);function N(se,we){if(1&se&&(b.TgZ(0,"label",2),b._uU(1),b.qZA()),2&se){const ue=we.$implicit;b.Q6J("nzValue",ue.value),b.xp6(1),b.hij(" ",ue.label," ")}}let ie=(()=>{class se extends l.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{options:[]}}}}return se.\u0275fac=function(){let we;return function(Ye){return(we||(we=b.n5z(se)))(Ye||se)}}(),se.\u0275cmp=b.Xpm({type:se,selectors:[["formly-field-nz-radio"]],features:[b.qOj],decls:4,vars:7,consts:[[3,"formControl"],["nz-radio","",3,"nzValue",4,"ngFor","ngForOf"],["nz-radio","",3,"nzValue"]],template:function(ue,Ye){1&ue&&(b.TgZ(0,"nz-radio-group",0),b.YNc(1,N,2,2,"label",1),b.ALo(2,"async"),b.ALo(3,"formlySelectOptions"),b.qZA()),2&ue&&(b.Q6J("formControl",Ye.formControl),b.xp6(1),b.Q6J("ngForOf",b.lcZ(2,2,b.xi3(3,4,Ye.to.options,Ye.field))))},directives:[k.Dg,K.JJ,K.oH,o.sg,k.Of],pipes:[o.Ov,M.w],encapsulation:2}),se})(),ce=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[o.ez,K.UX,k.aF,r.F,M.F,l.X0.forChild({types:[{name:"radio",component:ie,wrappers:["form-field"]}]})]]}),se})();var ve=c(6114);let Le=(()=>{class se extends l.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{indeterminate:!0,hideLabel:!0}}}}return se.\u0275fac=function(){let we;return function(Ye){return(we||(we=b.n5z(se)))(Ye||se)}}(),se.\u0275cmp=b.Xpm({type:se,selectors:[["formly-field-nz-checkbox"]],features:[b.qOj],decls:2,vars:4,consts:[["nz-checkbox","",3,"nzIndeterminate","formControl","formlyAttributes"]],template:function(ue,Ye){1&ue&&(b.TgZ(0,"label",0),b._uU(1),b.qZA()),2&ue&&(b.Q6J("nzIndeterminate",Ye.to.indeterminate&&null==Ye.formControl.value)("formControl",Ye.formControl)("formlyAttributes",Ye.field),b.xp6(1),b.hij(" ",Ye.to.label," "))},directives:[ve.Ie,K.JJ,K.oH,l.VQ],encapsulation:2}),se})(),Re=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[o.ez,K.UX,ve.Wr,r.F,l.X0.forChild({types:[{name:"checkbox",component:Le,wrappers:["form-field"]}]})]]}),se})();var ae=c(8054);function Ue(se,we){if(1&se&&b._UZ(0,"nz-option",6),2&se){const ue=we.$implicit;b.Q6J("nzValue",ue.value)("nzDisabled",ue.disabled)("nzLabel",ue.label)}}function He(se,we){if(1&se&&(b.TgZ(0,"nz-option-group",4),b.YNc(1,Ue,1,3,"nz-option",5),b.qZA()),2&se){const ue=b.oxw().$implicit;b.Q6J("nzLabel",ue.label),b.xp6(1),b.Q6J("ngForOf",ue.group)}}function me(se,we){if(1&se&&b._UZ(0,"nz-option",6),2&se){const ue=b.oxw().$implicit;b.Q6J("nzValue",ue.value)("nzDisabled",ue.disabled)("nzLabel",ue.label)}}function fe(se,we){if(1&se&&(b.ynx(0),b.YNc(1,He,2,2,"nz-option-group",2),b.YNc(2,me,1,3,"nz-option",3),b.BQk()),2&se){const ue=we.$implicit;b.xp6(1),b.Q6J("ngIf",ue.group),b.xp6(1),b.Q6J("ngIf",!ue.group)}}let U=(()=>{class se extends l.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{options:[]}}}}return se.\u0275fac=function(){let we;return function(Ye){return(we||(we=b.n5z(se)))(Ye||se)}}(),se.\u0275cmp=b.Xpm({type:se,selectors:[["formly-field-nz-select"]],features:[b.qOj],decls:4,vars:12,consts:[[3,"nzPlaceHolder","formControl","formlyAttributes","nzMode"],[4,"ngFor","ngForOf"],[3,"nzLabel",4,"ngIf"],[3,"nzValue","nzDisabled","nzLabel",4,"ngIf"],[3,"nzLabel"],[3,"nzValue","nzDisabled","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzDisabled","nzLabel"]],template:function(ue,Ye){1&ue&&(b.TgZ(0,"nz-select",0),b.YNc(1,fe,3,2,"ng-container",1),b.ALo(2,"async"),b.ALo(3,"formlySelectOptions"),b.qZA()),2&ue&&(b.ekj("ng-dirty",Ye.showError),b.Q6J("nzPlaceHolder",Ye.to.placeholder)("formControl",Ye.formControl)("formlyAttributes",Ye.field)("nzMode",Ye.to.multiple?"multiple":"default"),b.xp6(1),b.Q6J("ngForOf",b.lcZ(2,7,b.xi3(3,9,Ye.to.options,Ye.field))))},directives:[ae.Vq,K.JJ,K.oH,l.VQ,o.sg,o.O5,ae.Yy,ae.Ip],pipes:[o.Ov,M.w],encapsulation:2}),se})(),J=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[o.ez,K.UX,ae.LV,r.F,M.F,l.X0.forChild({types:[{name:"select",component:U,wrappers:["form-field"]}]})]]}),se})(),Me=(()=>{class se{}return se.\u0275fac=function(ue){return new(ue||se)},se.\u0275mod=b.oAB({type:se}),se.\u0275inj=b.cJS({imports:[[r.F,S,z,ce,Re,J]]}),se})()},3119:(Ft,Pe,c)=>{c.d(Pe,{g7:()=>b});var r=null,o={},l=1,m="@wry/context:Slot",A=Array,b=A[m]||function(){var k=function(){function k(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return k.prototype.hasValue=function(){for(var N=r;N;N=N.parent)if(this.id in N.slots){var ie=N.slots[this.id];if(ie===o)break;return N!==r&&(r.slots[this.id]=ie),!0}return r&&(r.slots[this.id]=o),!1},k.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},k.prototype.withValue=function(N,ie,ce,ve){var Le,Re=((Le={__proto__:null})[this.id]=N,Le),ae=r;r={parent:ae,slots:Re};try{return ie.apply(ve,ce)}finally{r=ae}},k.bind=function(N){var ie=r;return function(){var ce=r;try{return r=ie,N.apply(this,arguments)}finally{r=ce}}},k.noContext=function(N,ie,ce){if(!r)return N.apply(ce,ie);var ve=r;try{return r=null,N.apply(ce,ie)}finally{r=ve}},k}();try{Object.defineProperty(A,m,{value:A[m]=k,enumerable:!1,writable:!1,configurable:!1})}finally{return k}}()},7883:(Ft,Pe,c)=>{c.d(Pe,{D:()=>A});var r=Object.prototype,o=r.toString,l=r.hasOwnProperty,K=Function.prototype.toString,m=new Map;function A(z,M){try{return b(z,M)}finally{m.clear()}}function b(z,M){if(z===M)return!0;var k=o.call(z);if(k!==o.call(M))return!1;switch(k){case"[object Array]":if(z.length!==M.length)return!1;case"[object Object]":if(w(z,M))return!0;var ie=D(z),ce=D(M),ve=ie.length;if(ve!==ce.length)return!1;for(var Le=0;Le=0&&z.indexOf(M,k)===k}(Me,E)}return!1}function D(z){return Object.keys(z).filter(C,z)}function C(z){return void 0!==this[z]}var E="{ [native code] }";function w(z,M){var k=m.get(z);if(k){if(k.has(M))return!0}else m.set(z,k=new Set);return k.add(M),!1}},9428:(Ft,Pe,c)=>{c.d(Pe,{B:()=>m});var r=function(){return Object.create(null)},o=Array.prototype,l=o.forEach,K=o.slice,m=function(){function b(D,C){void 0===D&&(D=!0),void 0===C&&(C=r),this.weakness=D,this.makeData=C}return b.prototype.lookup=function(){for(var D=[],C=0;C{c.d(Pe,{zu:()=>I,_M:()=>De,mm:()=>ee,AE:()=>Jt});var r=c(5e3),o=c(655),l=c(9349),K=c(484),m=K.i.execute,A=c(3950),D=c(1335),C=c(4302),E=function(p,h){var y;try{y=JSON.stringify(p)}catch(Ee){var R=__DEV__?new l.ej("Network request failed. ".concat(h," is not serializable: ").concat(Ee.message)):new l.ej(21);throw R.parseError=Ee,R}return y},w=function(p,h,y){var R=new Error(y);throw R.name="ServerError",R.response=p,R.statusCode=p.status,R.result=h,R},z=Object.prototype.hasOwnProperty,N=c(4989),Le={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Re=function(p,h){return h(p)};function He(p){if(p){var h=Object.create(null);return Object.keys(Object(p)).forEach(function(y){h[y.toLowerCase()]=p[y]}),h}return p}function U(p){return new C.y(function(h){h.error(p)})}var J=(0,l.wY)(function(){return fetch}),Me=function(p){void 0===p&&(p={});var h=p.uri,y=void 0===h?"/graphql":h,R=p.fetch,Ee=p.print,et=void 0===Ee?Re:Ee,gt=p.includeExtensions,Qe=p.useGETForQueries,_t=p.includeUnusedVariables,Rt=void 0!==_t&&_t,qt=(0,o._T)(p,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(p){if(!p&&"undefined"==typeof fetch)throw __DEV__?new l.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new l.ej(20)}(R||J);var on={http:{includeExtensions:gt},options:qt.fetchOptions,credentials:qt.credentials,headers:qt.headers};return new K.i(function(Vt){var bn=function(p,h){return p.getContext().uri||("function"==typeof h?h(p):h||"/graphql")}(Vt,y),mn=Vt.getContext(),fn={};if(mn.clientAwareness){var Dn=mn.clientAwareness,rn=Dn.name,Nn=Dn.version;rn&&(fn["apollographql-client-name"]=rn),Nn&&(fn["apollographql-client-version"]=Nn)}var le,Qn=(0,o.pi)((0,o.pi)({},fn),mn.headers),Jn=function Ue(p,h){for(var y=[],R=2;R=300&&w(h,y,"Response not successful: Received status code ".concat(h.status)),!Array.isArray(y)&&!z.call(y,"data")&&!z.call(y,"errors")&&w(h,y,"Server response was missing for query '".concat(Array.isArray(p)?p.map(function(R){return R.operationName}):p.operationName,"'.")),y})}}(Vt)).then(function(pi){return ii.next(pi),ii.complete(),pi}).catch(function(pi){"AbortError"!==pi.name&&(pi.result&&pi.result.errors&&pi.result.data&&ii.next(pi.result),ii.error(pi))}),function(){le&&le.abort()}})})},se=function(p){function h(y){void 0===y&&(y={});var R=p.call(this,Me(y).request)||this;return R.options=y,R}return(0,o.ZT)(h,p),h}(K.i),we=c(7883),ue=c(3750),Ye=c(9545);function We(p,h,y){return new C.y(function(R){var Ee=R.next,et=R.error,gt=R.complete,Qe=0,_t=!1,Rt={then:function(bn){return new Promise(function(mn){return mn(bn())})}};function qt(bn,mn){return bn?function(fn){++Qe;var Dn=function(){return bn(fn)};Rt=Rt.then(Dn,Dn).then(function(rn){--Qe,Ee&&Ee.call(R,rn),_t&&on.complete()},function(rn){throw--Qe,rn}).catch(function(rn){et&&et.call(R,rn)})}:function(fn){return mn&&mn.call(R,fn)}}var on={next:qt(h,Ee),error:qt(y,et),complete:function(){_t=!0,Qe||gt&>.call(R)}},Vt=p.subscribe(on);return function(){return Vt.unsubscribe()}})}function rt(p){return p.errors&&p.errors.length>0||!1}var wt=c(9419),Ae=c(3291),mt=c(9722),kt=c(7634),Ct=c(7062),It=c(8561);function Xe(p,h,y){var R=[];p.forEach(function(Ee){return Ee[h]&&R.push(Ee)}),R.forEach(function(Ee){return Ee[h](y)})}function lt(p){function h(y){Object.defineProperty(p,y,{value:C.y})}return Ye.aS&&Symbol.species&&h(Symbol.species),h("@@species"),p}function ct(p){return p&&"function"==typeof p.then}var Lt=function(p){function h(y){var R=p.call(this,function(Ee){return R.addObserver(Ee),function(){return R.removeObserver(Ee)}})||this;return R.observers=new Set,R.addCount=0,R.promise=new Promise(function(Ee,et){R.resolve=Ee,R.reject=et}),R.handlers={next:function(Ee){null!==R.sub&&(R.latest=["next",Ee],Xe(R.observers,"next",Ee))},error:function(Ee){var et=R.sub;null!==et&&(et&&setTimeout(function(){return et.unsubscribe()}),R.sub=null,R.latest=["error",Ee],R.reject(Ee),Xe(R.observers,"error",Ee))},complete:function(){if(null!==R.sub){var Ee=R.sources.shift();Ee?ct(Ee)?Ee.then(function(et){return R.sub=et.subscribe(R.handlers)}):R.sub=Ee.subscribe(R.handlers):(R.sub=null,R.latest&&"next"===R.latest[0]?R.resolve(R.latest[1]):R.resolve(),Xe(R.observers,"complete"))}}},R.cancel=function(Ee){R.reject(Ee),R.sources=[],R.handlers.complete()},R.promise.catch(function(Ee){}),"function"==typeof y&&(y=[new C.y(y)]),ct(y)?y.then(function(Ee){return R.start(Ee)},R.handlers.error):R.start(y),R}return(0,o.ZT)(h,p),h.prototype.start=function(y){void 0===this.sub&&(this.sources=Array.from(y),this.handlers.complete())},h.prototype.deliverLastMessage=function(y){if(this.latest){var R=this.latest[0],Ee=y[R];Ee&&Ee.call(y,this.latest[1]),null===this.sub&&"next"===R&&y.complete&&y.complete()}},h.prototype.addObserver=function(y){this.observers.has(y)||(this.deliverLastMessage(y),this.observers.add(y),++this.addCount)},h.prototype.removeObserver=function(y,R){this.observers.delete(y)&&--this.addCount<1&&!R&&this.handlers.error(new Error("Observable cancelled prematurely"))},h.prototype.cleanup=function(y){var R=this,Ee=!1,et=function(){Ee||(Ee=!0,R.observers.delete(gt),y())},gt={next:et,error:et,complete:et},Qe=this.addCount;this.addObserver(gt),this.addCount=Qe},h}(C.y);lt(Lt);var Ie=c(5355),Et=function(p){function h(y){var R=y.graphQLErrors,Ee=y.clientErrors,et=y.networkError,gt=y.errorMessage,Qe=y.extraInfo,_t=p.call(this,gt)||this;return _t.graphQLErrors=R||[],_t.clientErrors=Ee||[],_t.networkError=et||null,_t.message=gt||function(p){var h="";return((0,Ie.O)(p.graphQLErrors)||(0,Ie.O)(p.clientErrors))&&(p.graphQLErrors||[]).concat(p.clientErrors||[]).forEach(function(R){h+="".concat(R?R.message:"Error message not found.","\n")}),p.networkError&&(h+="".concat(p.networkError.message,"\n")),h=h.replace(/\n$/,"")}(_t),_t.extraInfo=Qe,_t.__proto__=h.prototype,_t}return(0,o.ZT)(h,p),h}(Error),ot=(()=>{return(p=ot||(ot={}))[p.loading=1]="loading",p[p.setVariables=2]="setVariables",p[p.fetchMore=3]="fetchMore",p[p.refetch=4]="refetch",p[p.poll=6]="poll",p[p.ready=7]="ready",p[p.error=8]="error",ot;var p})();function en(p){return!!p&&p<7}var Ne=c(396),Ve=Object.assign,ye=Object.hasOwnProperty,yt=!1,Mt=function(p){function h(y){var R=y.queryManager,Ee=y.queryInfo,et=y.options,gt=p.call(this,function(_t){try{var Rt=_t._subscription._observer;Rt&&!Rt.error&&(Rt.error=Ke)}catch(Vt){}var qt=!gt.observers.size;gt.observers.add(_t);var on=gt.last;return on&&on.error?_t.error&&_t.error(on.error):on&&on.result&&_t.next&&_t.next(on.result),qt&>.reobserve().catch(function(){}),function(){gt.observers.delete(_t)&&!gt.observers.size&>.tearDownQuery()}})||this;gt.observers=new Set,gt.subscriptions=new Set,gt.isTornDown=!1,gt.options=et,gt.queryId=Ee.queryId||R.generateQueryId();var Qe=(0,wt.$H)(et.query);return gt.queryName=Qe&&Qe.name&&Qe.name.value,gt.initialFetchPolicy=et.fetchPolicy||"cache-first",gt.queryManager=R,gt.queryInfo=Ee,gt}return(0,o.ZT)(h,p),Object.defineProperty(h.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),h.prototype.result=function(){var y=this;return new Promise(function(R,Ee){var et={next:function(Qe){R(Qe),y.observers.delete(et),y.observers.size||y.queryManager.removeQuery(y.queryId),setTimeout(function(){gt.unsubscribe()},0)},error:Ee},gt=y.subscribe(et)})},h.prototype.getCurrentResult=function(y){void 0===y&&(y=!0);var R=this.getLastResult(!0),Ee=this.queryInfo.networkStatus||R&&R.networkStatus||ot.ready,et=(0,o.pi)((0,o.pi)({},R),{loading:en(Ee),networkStatus:Ee}),gt=this.options.fetchPolicy,Qe=void 0===gt?"cache-first":gt;if("network-only"!==Qe&&"no-cache"!==Qe&&"standby"!==Qe&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var _t=this.queryInfo.getDiff();(_t.complete||this.options.returnPartialData)&&(et.data=_t.result),(0,we.D)(et.data,{})&&(et.data=void 0),_t.complete?(delete et.partial,_t.complete&&et.networkStatus===ot.loading&&("cache-first"===Qe||"cache-only"===Qe)&&(et.networkStatus=ot.ready,et.loading=!1)):et.partial=!0,__DEV__&&!_t.complete&&!this.options.partialRefetch&&!et.loading&&!et.data&&!et.error&&B(_t.missing)}return y&&this.updateLastResult(et),et},h.prototype.isDifferentFromLastResult=function(y){return!this.last||!(0,we.D)(this.last.result,y)},h.prototype.getLast=function(y,R){var Ee=this.last;if(Ee&&Ee[y]&&(!R||(0,we.D)(Ee.variables,this.variables)))return Ee[y]},h.prototype.getLastResult=function(y){return this.getLast("result",y)},h.prototype.getLastError=function(y){return this.getLast("error",y)},h.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},h.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},h.prototype.refetch=function(y){var R,Ee={pollInterval:0},et=this.options.fetchPolicy;if(Ee.fetchPolicy="cache-and-network"===et?et:"no-cache"===et?"no-cache":"network-only",__DEV__&&y&&ye.call(y,"variables")){var gt=(0,wt.iW)(this.options.query),Qe=gt.variableDefinitions;(!Qe||!Qe.some(function(_t){return"variables"===_t.variable.name.value}))&&__DEV__&&l.kG.warn("Called refetch(".concat(JSON.stringify(y),") for query ").concat((null===(R=gt.name)||void 0===R?void 0:R.value)||JSON.stringify(gt),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return y&&!(0,we.D)(this.options.variables,y)&&(Ee.variables=this.options.variables=(0,o.pi)((0,o.pi)({},this.options.variables),y)),this.queryInfo.resetLastWrite(),this.reobserve(Ee,ot.refetch)},h.prototype.fetchMore=function(y){var R=this,Ee=(0,o.pi)((0,o.pi)({},y.query?y:(0,o.pi)((0,o.pi)((0,o.pi)({},this.options),y),{variables:(0,o.pi)((0,o.pi)({},this.options.variables),y.variables)})),{fetchPolicy:"no-cache"}),et=this.queryManager.generateQueryId();return Ee.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=ot.fetchMore,this.observe()),this.queryManager.fetchQuery(et,Ee,ot.fetchMore).then(function(gt){var Qe=gt.data,_t=y.updateQuery;return _t?(__DEV__&&!yt&&(__DEV__&&l.kG.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),yt=!0),R.updateQuery(function(Rt){return _t(Rt,{fetchMoreResult:Qe,variables:Ee.variables})})):R.queryManager.cache.writeQuery({query:Ee.query,variables:Ee.variables,data:Qe}),gt}).finally(function(){R.queryManager.stopQuery(et),R.reobserve()})},h.prototype.subscribeToMore=function(y){var R=this,Ee=this.queryManager.startGraphQLSubscription({query:y.document,variables:y.variables,context:y.context}).subscribe({next:function(et){var gt=y.updateQuery;gt&&R.updateQuery(function(Qe,_t){return gt(Qe,{subscriptionData:et,variables:_t.variables})})},error:function(et){y.onError?y.onError(et):__DEV__&&l.kG.error("Unhandled GraphQL subscription error",et)}});return this.subscriptions.add(Ee),function(){R.subscriptions.delete(Ee)&&Ee.unsubscribe()}},h.prototype.setOptions=function(y){return this.reobserve(y)},h.prototype.setVariables=function(y){return(0,we.D)(this.variables,y)?this.observers.size?this.result():Promise.resolve():(this.options.variables=y,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:y},ot.setVariables):Promise.resolve())},h.prototype.updateQuery=function(y){var R=this.queryManager,et=y(R.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});et&&(R.cache.writeQuery({query:this.options.query,data:et,variables:this.variables}),R.broadcastQueries())},h.prototype.startPolling=function(y){this.options.pollInterval=y,this.updatePolling()},h.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},h.prototype.fetch=function(y,R){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,y,R)},h.prototype.updatePolling=function(){var y=this;if(!this.queryManager.ssrMode){var Ee=this.pollingInfo,et=this.options.pollInterval;if(!et)return void(Ee&&(clearTimeout(Ee.timeout),delete this.pollingInfo));if(!Ee||Ee.interval!==et){__DEV__?(0,l.kG)(et,"Attempted to start a polling query without a polling interval."):(0,l.kG)(et,10),(Ee||(this.pollingInfo={})).interval=et;var Qe=function(){y.pollingInfo&&(en(y.queryInfo.networkStatus)?_t():y.reobserve({fetchPolicy:"network-only"},ot.poll).then(_t,_t))},_t=function(){var Rt=y.pollingInfo;Rt&&(clearTimeout(Rt.timeout),Rt.timeout=setTimeout(Qe,Rt.interval))};_t()}}},h.prototype.updateLastResult=function(y,R){return void 0===R&&(R=this.variables),this.last=(0,o.pi)((0,o.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?y:(0,Ne.X)(y),variables:R}),(0,Ie.O)(y.errors)||delete this.last.error,this.last},h.prototype.reobserve=function(y,R){var Ee=this;this.isTornDown=!1;var et=R===ot.refetch||R===ot.fetchMore||R===ot.poll,gt=this.options.variables,Qe=et?(0,A.o)(this.options,y):Ve(this.options,(0,A.o)(y));et||(this.updatePolling(),y&&y.variables&&!y.fetchPolicy&&!(0,we.D)(y.variables,gt)&&(Qe.fetchPolicy=this.initialFetchPolicy,void 0===R&&(R=ot.setVariables)));var _t=Qe.variables&&(0,o.pi)({},Qe.variables),Rt=this.fetch(Qe,R),qt={next:function(on){Ee.reportResult(on,_t)},error:function(on){Ee.reportError(on,_t)}};return et||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=Rt,this.observer=qt),Rt.addObserver(qt),Rt.promise},h.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},h.prototype.reportResult=function(y,R){(this.getLastError()||this.isDifferentFromLastResult(y))&&(this.updateLastResult(y,R),Xe(this.observers,"next",y))},h.prototype.reportError=function(y,R){var Ee=(0,o.pi)((0,o.pi)({},this.getLastResult()),{error:y,errors:y.graphQLErrors,networkStatus:ot.error,loading:!1});this.updateLastResult(Ee,R),Xe(this.observers,"error",this.last.error=y)},h.prototype.hasObservers=function(){return this.observers.size>0},h.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(y){return y.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},h}(C.y);function Ke(p){__DEV__&&l.kG.error("Unhandled error",p.message,p.stack)}function B(p){__DEV__&&p&&__DEV__&&l.kG.debug("Missing cache result fields: ".concat(JSON.stringify(p)),p)}lt(Mt);var Q=c(7773),Fe=c(9661),Je=c(6430),vt=function(){function p(h){var R=h.client,Ee=h.resolvers,et=h.fragmentMatcher;this.cache=h.cache,R&&(this.client=R),Ee&&this.addResolvers(Ee),et&&this.setFragmentMatcher(et)}return p.prototype.addResolvers=function(h){var y=this;this.resolvers=this.resolvers||{},Array.isArray(h)?h.forEach(function(R){y.resolvers=(0,Q.Ee)(y.resolvers,R)}):this.resolvers=(0,Q.Ee)(this.resolvers,h)},p.prototype.setResolvers=function(h){this.resolvers={},this.addResolvers(h)},p.prototype.getResolvers=function(){return this.resolvers||{}},p.prototype.runResolvers=function(h){var y=h.document,R=h.remoteResult,Ee=h.context,et=h.variables,gt=h.onlyRunForcedResolvers,Qe=void 0!==gt&>return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(_t){return y?[2,this.resolveDocument(y,R.data,Ee,et,this.fragmentMatcher,Qe).then(function(Rt){return(0,o.pi)((0,o.pi)({},R),{data:Rt.result})})]:[2,R]})})},p.prototype.setFragmentMatcher=function(h){this.fragmentMatcher=h},p.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},p.prototype.clientQuery=function(h){return(0,mt.FS)(["client"],h)&&this.resolvers?h:null},p.prototype.serverQuery=function(h){return(0,Ae.ob)(h)},p.prototype.prepareContext=function(h){var y=this.cache;return(0,o.pi)((0,o.pi)({},h),{cache:y,getCacheKey:function(R){return y.identify(R)}})},p.prototype.addExportedVariables=function(h,y,R){return void 0===y&&(y={}),void 0===R&&(R={}),(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(Ee){return h?[2,this.resolveDocument(h,this.buildRootValueFromCache(h,y)||{},this.prepareContext(R),y).then(function(et){return(0,o.pi)((0,o.pi)({},y),et.exportedVariables)})]:[2,(0,o.pi)({},y)]})})},p.prototype.shouldForceResolvers=function(h){var y=!1;return(0,D.Vn)(h,{Directive:{enter:function(R){if("client"===R.name.value&&R.arguments&&(y=R.arguments.some(function(Ee){return"always"===Ee.name.value&&"BooleanValue"===Ee.value.kind&&!0===Ee.value.value})))return D.$_}}}),y},p.prototype.buildRootValueFromCache=function(h,y){return this.cache.diff({query:(0,Ae.aL)(h),variables:y,returnPartialData:!0,optimistic:!1}).result},p.prototype.resolveDocument=function(h,y,R,Ee,et,gt){return void 0===R&&(R={}),void 0===Ee&&(Ee={}),void 0===et&&(et=function(){return!0}),void 0===gt&&(gt=!1),(0,o.mG)(this,void 0,void 0,function(){var Qe,_t,Rt,qt,on,Vt,bn,mn,fn;return(0,o.Jh)(this,function(Dn){return Qe=(0,wt.p$)(h),_t=(0,wt.kU)(h),Rt=(0,Fe.F)(_t),on=(qt=Qe.operation)?qt.charAt(0).toUpperCase()+qt.slice(1):"Query",bn=(Vt=this).cache,mn=Vt.client,fn={fragmentMap:Rt,context:(0,o.pi)((0,o.pi)({},R),{cache:bn,client:mn}),variables:Ee,fragmentMatcher:et,defaultOperationType:on,exportedVariables:{},onlyRunForcedResolvers:gt},[2,this.resolveSelectionSet(Qe.selectionSet,y,fn).then(function(rn){return{result:rn,exportedVariables:fn.exportedVariables}})]})})},p.prototype.resolveSelectionSet=function(h,y,R){return(0,o.mG)(this,void 0,void 0,function(){var Ee,et,gt,Qe,Rt=this;return(0,o.Jh)(this,function(qt){return Ee=R.fragmentMap,et=R.context,gt=R.variables,Qe=[y],[2,Promise.all(h.selections.map(function(on){return(0,o.mG)(Rt,void 0,void 0,function(){var Vt;return(0,o.Jh)(this,function(mn){return(0,mt.LZ)(on,gt)?(0,kt.My)(on)?[2,this.resolveField(on,y,R).then(function(fn){var Dn;void 0!==fn&&Qe.push(((Dn={})[(0,kt.u2)(on)]=fn,Dn))})]:((0,kt.Ao)(on)?Vt=on:(Vt=Ee[on.name.value],__DEV__?(0,l.kG)(Vt,"No fragment named ".concat(on.name.value)):(0,l.kG)(Vt,9)),Vt&&Vt.typeCondition&&R.fragmentMatcher(y,Vt.typeCondition.name.value,et)?[2,this.resolveSelectionSet(Vt.selectionSet,y,R).then(function(fn){Qe.push(fn)})]:[2]):[2]})})})).then(function(){return(0,Q.bw)(Qe)})]})})},p.prototype.resolveField=function(h,y,R){return(0,o.mG)(this,void 0,void 0,function(){var Ee,et,gt,Qe,_t,Rt,qt,on,Vt,bn=this;return(0,o.Jh)(this,function(mn){return Ee=R.variables,et=h.name.value,gt=(0,kt.u2)(h),Qe=et!==gt,_t=y[gt]||y[et],Rt=Promise.resolve(_t),(!R.onlyRunForcedResolvers||this.shouldForceResolvers(h))&&(qt=y.__typename||R.defaultOperationType,(on=this.resolvers&&this.resolvers[qt])&&(Vt=on[Qe?et:gt])&&(Rt=Promise.resolve(Je.ab.withValue(this.cache,Vt,[y,(0,kt.NC)(h,Ee),R.context,{field:h,fragmentMap:R.fragmentMap}])))),[2,Rt.then(function(fn){return void 0===fn&&(fn=_t),h.directives&&h.directives.forEach(function(Dn){"export"===Dn.name.value&&Dn.arguments&&Dn.arguments.forEach(function(rn){"as"===rn.name.value&&"StringValue"===rn.value.kind&&(R.exportedVariables[rn.value.value]=fn)})}),h.selectionSet&&null!=fn?Array.isArray(fn)?bn.resolveSubSelectedArray(h,fn,R):h.selectionSet?bn.resolveSelectionSet(h.selectionSet,fn,R):void 0:fn})]})})},p.prototype.resolveSubSelectedArray=function(h,y,R){var Ee=this;return Promise.all(y.map(function(et){return null===et?null:Array.isArray(et)?Ee.resolveSubSelectedArray(h,et,R):h.selectionSet?Ee.resolveSelectionSet(h.selectionSet,et,R):void 0}))},p}(),Tt=new(Ye.mr?WeakMap:Map);function je(p,h){var y=p[h];"function"==typeof y&&(p[h]=function(){return Tt.set(p,(Tt.get(p)+1)%1e15),y.apply(this,arguments)})}function zt(p){p.notifyTimeout&&(clearTimeout(p.notifyTimeout),p.notifyTimeout=void 0)}var jt=function(){function p(h,y){void 0===y&&(y=h.generateQueryId()),this.queryId=y,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var R=this.cache=h.cache;Tt.has(R)||(Tt.set(R,0),je(R,"evict"),je(R,"modify"),je(R,"reset"))}return p.prototype.init=function(h){var y=h.networkStatus||ot.loading;return this.variables&&this.networkStatus!==ot.loading&&!(0,we.D)(this.variables,h.variables)&&(y=ot.setVariables),(0,we.D)(h.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:h.document,variables:h.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:y}),h.observableQuery&&this.setObservableQuery(h.observableQuery),h.lastRequestId&&(this.lastRequestId=h.lastRequestId),this},p.prototype.reset=function(){zt(this),this.lastDiff=void 0,this.dirty=!1},p.prototype.getDiff=function(h){void 0===h&&(h=this.variables);var y=this.getDiffOptions(h);if(this.lastDiff&&(0,we.D)(y,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=h);var R=this.observableQuery;if(R&&"no-cache"===R.options.fetchPolicy)return{complete:!1};var Ee=this.cache.diff(y);return this.updateLastDiff(Ee,y),Ee},p.prototype.updateLastDiff=function(h,y){this.lastDiff=h?{diff:h,options:y||this.getDiffOptions()}:void 0},p.prototype.getDiffOptions=function(h){var y;return void 0===h&&(h=this.variables),{query:this.document,variables:h,returnPartialData:!0,optimistic:!0,canonizeResults:null===(y=this.observableQuery)||void 0===y?void 0:y.options.canonizeResults}},p.prototype.setDiff=function(h){var y=this,R=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(h),!this.dirty&&!(0,we.D)(R&&R.result,h&&h.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return y.notify()},0)))},p.prototype.setObservableQuery=function(h){var y=this;h!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=h,h?(h.queryInfo=this,this.listeners.add(this.oqListener=function(){y.getDiff().fromOptimisticTransaction?h.observe():h.reobserve()})):delete this.oqListener)},p.prototype.notify=function(){var h=this;zt(this),this.shouldNotify()&&this.listeners.forEach(function(y){return y(h)}),this.dirty=!1},p.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(en(this.networkStatus)&&this.observableQuery){var h=this.observableQuery.options.fetchPolicy;if("cache-only"!==h&&"cache-and-network"!==h)return!1}return!0},p.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=p.prototype.cancel,this.subscriptions.forEach(function(y){return y.unsubscribe()});var h=this.observableQuery;h&&h.stopPolling()}},p.prototype.cancel=function(){},p.prototype.updateWatch=function(h){var y=this;void 0===h&&(h=this.variables);var R=this.observableQuery;if(!R||"no-cache"!==R.options.fetchPolicy){var Ee=(0,o.pi)((0,o.pi)({},this.getDiffOptions(h)),{watcher:this,callback:function(et){return y.setDiff(et)}});(!this.lastWatch||!(0,we.D)(Ee,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=Ee))}},p.prototype.resetLastWrite=function(){this.lastWrite=void 0},p.prototype.shouldWrite=function(h,y){var R=this.lastWrite;return!(R&&R.dmCount===Tt.get(this.cache)&&(0,we.D)(y,R.variables)&&(0,we.D)(h.data,R.result.data))},p.prototype.markResult=function(h,y,R){var Ee=this;this.graphQLErrors=(0,Ie.O)(h.errors)?h.errors:[],this.reset(),"no-cache"===y.fetchPolicy?this.updateLastDiff({result:h.data,complete:!0},this.getDiffOptions(y.variables)):0!==R&&(Bt(h,y.errorPolicy)?this.cache.performTransaction(function(et){if(Ee.shouldWrite(h,y.variables))et.writeQuery({query:Ee.document,data:h.data,variables:y.variables,overwrite:1===R}),Ee.lastWrite={result:h,variables:y.variables,dmCount:Tt.get(Ee.cache)};else if(Ee.lastDiff&&Ee.lastDiff.diff.complete)return void(h.data=Ee.lastDiff.diff.result);var gt=Ee.getDiffOptions(y.variables),Qe=et.diff(gt);Ee.stopped||Ee.updateWatch(y.variables),Ee.updateLastDiff(Qe,gt),Qe.complete&&(h.data=Qe.result)}):this.lastWrite=void 0)},p.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ot.ready},p.prototype.markError=function(h){return this.networkStatus=ot.error,this.lastWrite=void 0,this.reset(),h.graphQLErrors&&(this.graphQLErrors=h.graphQLErrors),h.networkError&&(this.networkError=h.networkError),h},p}();function Bt(p,h){void 0===h&&(h="none");var y="ignore"===h||"all"===h,R=!rt(p);return!R&&y&&p.data&&(R=!0),R}var vn=Object.prototype.hasOwnProperty,cn=function(){function p(h){var y=h.cache,R=h.link,Ee=h.queryDeduplication,et=void 0!==Ee&&Ee,gt=h.onBroadcast,Qe=h.ssrMode,_t=void 0!==Qe&&Qe,Rt=h.clientAwareness,qt=void 0===Rt?{}:Rt,on=h.localState,Vt=h.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Ye.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=y,this.link=R,this.queryDeduplication=et,this.clientAwareness=qt,this.localState=on||new vt({cache:y}),this.ssrMode=_t,this.assumeImmutableResults=!!Vt,(this.onBroadcast=gt)&&(this.mutationStore=Object.create(null))}return p.prototype.stop=function(){var h=this;this.queries.forEach(function(y,R){h.stopQueryNoBroadcast(R)}),this.cancelPendingFetches(__DEV__?new l.ej("QueryManager stopped while query was in flight"):new l.ej(11))},p.prototype.cancelPendingFetches=function(h){this.fetchCancelFns.forEach(function(y){return y(h)}),this.fetchCancelFns.clear()},p.prototype.mutate=function(h){var y=h.mutation,R=h.variables,Ee=h.optimisticResponse,et=h.updateQueries,gt=h.refetchQueries,Qe=void 0===gt?[]:gt,_t=h.awaitRefetchQueries,Rt=void 0!==_t&&_t,qt=h.update,on=h.onQueryUpdated,Vt=h.errorPolicy,bn=void 0===Vt?"none":Vt,mn=h.fetchPolicy,fn=void 0===mn?"network-only":mn,Dn=h.keepRootFields,rn=h.context;return(0,o.mG)(this,void 0,void 0,function(){var Nn,Qn,ti;return(0,o.Jh)(this,function(Jn){switch(Jn.label){case 0:return __DEV__?(0,l.kG)(y,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,l.kG)(y,12),__DEV__?(0,l.kG)("network-only"===fn||"no-cache"===fn,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,l.kG)("network-only"===fn||"no-cache"===fn,13),Nn=this.generateMutationId(),y=this.transform(y).document,R=this.getVariables(y,R),this.transform(y).hasClientExports?[4,this.localState.addExportedVariables(y,R,rn)]:[3,2];case 1:R=Jn.sent(),Jn.label=2;case 2:return Qn=this.mutationStore&&(this.mutationStore[Nn]={mutation:y,variables:R,loading:!0,error:null}),Ee&&this.markMutationOptimistic(Ee,{mutationId:Nn,document:y,variables:R,fetchPolicy:fn,errorPolicy:bn,context:rn,updateQueries:et,update:qt,keepRootFields:Dn}),this.broadcastQueries(),ti=this,[2,new Promise(function(qn,Ce){return We(ti.getObservableFromLink(y,(0,o.pi)((0,o.pi)({},rn),{optimisticResponse:Ee}),R,!1),function(ke){if(rt(ke)&&"none"===bn)throw new Et({graphQLErrors:ke.errors});Qn&&(Qn.loading=!1,Qn.error=null);var le=(0,o.pi)({},ke);return"function"==typeof Qe&&(Qe=Qe(le)),"ignore"===bn&&rt(le)&&delete le.errors,ti.markMutationResult({mutationId:Nn,result:le,document:y,variables:R,fetchPolicy:fn,errorPolicy:bn,context:rn,update:qt,updateQueries:et,awaitRefetchQueries:Rt,refetchQueries:Qe,removeOptimistic:Ee?Nn:void 0,onQueryUpdated:on,keepRootFields:Dn})}).subscribe({next:function(ke){ti.broadcastQueries(),qn(ke)},error:function(ke){Qn&&(Qn.loading=!1,Qn.error=ke),Ee&&ti.cache.removeOptimistic(Nn),ti.broadcastQueries(),Ce(ke instanceof Et?ke:new Et({networkError:ke}))}})})]}})})},p.prototype.markMutationResult=function(h,y){var R=this;void 0===y&&(y=this.cache);var Ee=h.result,et=[],gt="no-cache"===h.fetchPolicy;if(!gt&&Bt(Ee,h.errorPolicy)){et.push({result:Ee.data,dataId:"ROOT_MUTATION",query:h.document,variables:h.variables});var Qe=h.updateQueries;Qe&&this.queries.forEach(function(Rt,qt){var on=Rt.observableQuery,Vt=on&&on.queryName;if(Vt&&vn.call(Qe,Vt)){var bn=Qe[Vt],mn=R.queries.get(qt),fn=mn.document,Dn=mn.variables,rn=y.diff({query:fn,variables:Dn,returnPartialData:!0,optimistic:!1}),Nn=rn.result;if(rn.complete&&Nn){var ti=bn(Nn,{mutationResult:Ee,queryName:fn&&(0,wt.rY)(fn)||void 0,queryVariables:Dn});ti&&et.push({result:ti,dataId:"ROOT_QUERY",query:fn,variables:Dn})}}})}if(et.length>0||h.refetchQueries||h.update||h.onQueryUpdated||h.removeOptimistic){var _t=[];if(this.refetchQueries({updateCache:function(Rt){gt||et.forEach(function(Vt){return Rt.write(Vt)});var qt=h.update;if(qt){if(!gt){var on=Rt.diff({id:"ROOT_MUTATION",query:R.transform(h.document).asQuery,variables:h.variables,optimistic:!1,returnPartialData:!0});on.complete&&(Ee=(0,o.pi)((0,o.pi)({},Ee),{data:on.result}))}qt(Rt,Ee,{context:h.context,variables:h.variables})}!gt&&!h.keepRootFields&&Rt.modify({id:"ROOT_MUTATION",fields:function(Vt,bn){return"__typename"===bn.fieldName?Vt:bn.DELETE}})},include:h.refetchQueries,optimistic:!1,removeOptimistic:h.removeOptimistic,onQueryUpdated:h.onQueryUpdated||null}).forEach(function(Rt){return _t.push(Rt)}),h.awaitRefetchQueries||h.onQueryUpdated)return Promise.all(_t).then(function(){return Ee})}return Promise.resolve(Ee)},p.prototype.markMutationOptimistic=function(h,y){var R=this,Ee="function"==typeof h?h(y.variables):h;return this.cache.recordOptimisticTransaction(function(et){try{R.markMutationResult((0,o.pi)((0,o.pi)({},y),{result:{data:Ee}}),et)}catch(gt){__DEV__&&l.kG.error(gt)}},y.mutationId)},p.prototype.fetchQuery=function(h,y,R){return this.fetchQueryObservable(h,y,R).promise},p.prototype.getQueryStore=function(){var h=Object.create(null);return this.queries.forEach(function(y,R){h[R]={variables:y.variables,networkStatus:y.networkStatus,networkError:y.networkError,graphQLErrors:y.graphQLErrors}}),h},p.prototype.resetErrors=function(h){var y=this.queries.get(h);y&&(y.networkError=void 0,y.graphQLErrors=[])},p.prototype.transform=function(h){var y=this.transformCache;if(!y.has(h)){var R=this.cache.transformDocument(h),Ee=(0,Ae.Fo)(this.cache.transformForLink(R)),et=this.localState.clientQuery(R),gt=Ee&&this.localState.serverQuery(Ee),Qe={document:R,hasClientExports:(0,mt.mj)(R),hasForcedResolvers:this.localState.shouldForceResolvers(R),clientQuery:et,serverQuery:gt,defaultVars:(0,wt.O4)((0,wt.$H)(R)),asQuery:(0,o.pi)((0,o.pi)({},R),{definitions:R.definitions.map(function(Rt){return"OperationDefinition"===Rt.kind&&"query"!==Rt.operation?(0,o.pi)((0,o.pi)({},Rt),{operation:"query"}):Rt})})},_t=function(Rt){Rt&&!y.has(Rt)&&y.set(Rt,Qe)};_t(h),_t(R),_t(et),_t(gt)}return y.get(h)},p.prototype.getVariables=function(h,y){return(0,o.pi)((0,o.pi)({},this.transform(h).defaultVars),y)},p.prototype.watchQuery=function(h){void 0===(h=(0,o.pi)((0,o.pi)({},h),{variables:this.getVariables(h.query,h.variables)})).notifyOnNetworkStatusChange&&(h.notifyOnNetworkStatusChange=!1);var y=new jt(this),R=new Mt({queryManager:this,queryInfo:y,options:h});return this.queries.set(R.queryId,y),y.init({document:h.query,observableQuery:R,variables:h.variables}),R},p.prototype.query=function(h,y){var R=this;return void 0===y&&(y=this.generateQueryId()),__DEV__?(0,l.kG)(h.query,"query option is required. You must specify your GraphQL document in the query option."):(0,l.kG)(h.query,14),__DEV__?(0,l.kG)("Document"===h.query.kind,'You must wrap the query string in a "gql" tag.'):(0,l.kG)("Document"===h.query.kind,15),__DEV__?(0,l.kG)(!h.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,l.kG)(!h.returnPartialData,16),__DEV__?(0,l.kG)(!h.pollInterval,"pollInterval option only supported on watchQuery."):(0,l.kG)(!h.pollInterval,17),this.fetchQuery(y,h).finally(function(){return R.stopQuery(y)})},p.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},p.prototype.generateRequestId=function(){return this.requestIdCounter++},p.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},p.prototype.stopQueryInStore=function(h){this.stopQueryInStoreNoBroadcast(h),this.broadcastQueries()},p.prototype.stopQueryInStoreNoBroadcast=function(h){var y=this.queries.get(h);y&&y.stop()},p.prototype.clearStore=function(h){return void 0===h&&(h={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new l.ej("Store reset while query was in flight (not completed in link chain)"):new l.ej(18)),this.queries.forEach(function(y){y.observableQuery?y.networkStatus=ot.loading:y.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(h)},p.prototype.getObservableQueries=function(h){var y=this;void 0===h&&(h="active");var R=new Map,Ee=new Map,et=new Set;return Array.isArray(h)&&h.forEach(function(gt){"string"==typeof gt?Ee.set(gt,!1):(0,kt.JW)(gt)?Ee.set(y.transform(gt).document,!1):(0,Ct.s)(gt)&>.query&&et.add(gt)}),this.queries.forEach(function(gt,Qe){var _t=gt.observableQuery,Rt=gt.document;if(_t){if("all"===h)return void R.set(Qe,_t);var qt=_t.queryName;if("standby"===_t.options.fetchPolicy||"active"===h&&!_t.hasObservers())return;("active"===h||qt&&Ee.has(qt)||Rt&&Ee.has(Rt))&&(R.set(Qe,_t),qt&&Ee.set(qt,!0),Rt&&Ee.set(Rt,!0))}}),et.size&&et.forEach(function(gt){var Qe=(0,It.X)("legacyOneTimeQuery"),_t=y.getQuery(Qe).init({document:gt.query,variables:gt.variables}),Rt=new Mt({queryManager:y,queryInfo:_t,options:(0,o.pi)((0,o.pi)({},gt),{fetchPolicy:"network-only"})});(0,l.kG)(Rt.queryId===Qe),_t.setObservableQuery(Rt),R.set(Qe,Rt)}),__DEV__&&Ee.size&&Ee.forEach(function(gt,Qe){gt||__DEV__&&l.kG.warn("Unknown query ".concat("string"==typeof Qe?"named ":"").concat(JSON.stringify(Qe,null,2)," requested in refetchQueries options.include array"))}),R},p.prototype.reFetchObservableQueries=function(h){var y=this;void 0===h&&(h=!1);var R=[];return this.getObservableQueries(h?"all":"active").forEach(function(Ee,et){var gt=Ee.options.fetchPolicy;Ee.resetLastResults(),(h||"standby"!==gt&&"cache-only"!==gt)&&R.push(Ee.refetch()),y.getQuery(et).setDiff(null)}),this.broadcastQueries(),Promise.all(R)},p.prototype.setObservableQuery=function(h){this.getQuery(h.queryId).setObservableQuery(h)},p.prototype.startGraphQLSubscription=function(h){var y=this,R=h.query,Ee=h.fetchPolicy,et=h.errorPolicy,gt=h.variables,Qe=h.context,_t=void 0===Qe?{}:Qe;R=this.transform(R).document,gt=this.getVariables(R,gt);var Rt=function(on){return y.getObservableFromLink(R,_t,on).map(function(Vt){if("no-cache"!==Ee&&(Bt(Vt,et)&&y.cache.write({query:R,result:Vt.data,dataId:"ROOT_SUBSCRIPTION",variables:on}),y.broadcastQueries()),rt(Vt))throw new Et({graphQLErrors:Vt.errors});return Vt})};if(this.transform(R).hasClientExports){var qt=this.localState.addExportedVariables(R,gt,_t).then(Rt);return new C.y(function(on){var Vt=null;return qt.then(function(bn){return Vt=bn.subscribe(on)},on.error),function(){return Vt&&Vt.unsubscribe()}})}return Rt(gt)},p.prototype.stopQuery=function(h){this.stopQueryNoBroadcast(h),this.broadcastQueries()},p.prototype.stopQueryNoBroadcast=function(h){this.stopQueryInStoreNoBroadcast(h),this.removeQuery(h)},p.prototype.removeQuery=function(h){this.fetchCancelFns.delete(h),this.getQuery(h).stop(),this.queries.delete(h)},p.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(h){return h.notify()})},p.prototype.getLocalState=function(){return this.localState},p.prototype.getObservableFromLink=function(h,y,R,Ee){var gt,et=this;void 0===Ee&&(Ee=null!==(gt=null==y?void 0:y.queryDeduplication)&&void 0!==gt?gt:this.queryDeduplication);var Qe,_t=this.transform(h).serverQuery;if(_t){var qt=this.inFlightLinkObservables,on=this.link,Vt={query:_t,variables:R,operationName:(0,wt.rY)(_t)||void 0,context:this.prepareContext((0,o.pi)((0,o.pi)({},y),{forceFetch:!Ee}))};if(y=Vt.context,Ee){var bn=qt.get(_t)||new Map;qt.set(_t,bn);var mn=(0,ue.B)(R);if(!(Qe=bn.get(mn))){var fn=new Lt([m(on,Vt)]);bn.set(mn,Qe=fn),fn.cleanup(function(){bn.delete(mn)&&bn.size<1&&qt.delete(_t)})}}else Qe=new Lt([m(on,Vt)])}else Qe=new Lt([C.y.of({data:{}})]),y=this.prepareContext(y);var Dn=this.transform(h).clientQuery;return Dn&&(Qe=We(Qe,function(rn){return et.localState.runResolvers({document:Dn,remoteResult:rn,context:y,variables:R})})),Qe},p.prototype.getResultsFromLink=function(h,y,R){var Ee=h.lastRequestId=this.generateRequestId();return We(this.getObservableFromLink(h.document,R.context,R.variables),function(et){var gt=(0,Ie.O)(et.errors);if(Ee>=h.lastRequestId){if(gt&&"none"===R.errorPolicy)throw h.markError(new Et({graphQLErrors:et.errors}));h.markResult(et,R,y),h.markReady()}var Qe={data:et.data,loading:!1,networkStatus:h.networkStatus||ot.ready};return gt&&"ignore"!==R.errorPolicy&&(Qe.errors=et.errors),Qe},function(et){var gt=function Pt(p){return p.hasOwnProperty("graphQLErrors")}(et)?et:new Et({networkError:et});throw Ee>=h.lastRequestId&&h.markError(gt),gt})},p.prototype.fetchQueryObservable=function(h,y,R){var Ee=this;void 0===R&&(R=ot.loading);var et=this.transform(y.query).document,gt=this.getVariables(et,y.variables),Qe=this.getQuery(h),_t=y.fetchPolicy,qt=y.errorPolicy,Vt=y.returnPartialData,mn=y.notifyOnNetworkStatusChange,Dn=y.context,Nn=Object.assign({},y,{query:et,variables:gt,fetchPolicy:void 0===_t?"cache-first":_t,errorPolicy:void 0===qt?"none":qt,returnPartialData:void 0!==Vt&&Vt,notifyOnNetworkStatusChange:void 0!==mn&&mn,context:void 0===Dn?{}:Dn}),Qn=function(Jn){return Nn.variables=Jn,Ee.fetchQueryByPolicy(Qe,Nn,R)};this.fetchCancelFns.set(h,function(Jn){setTimeout(function(){return ti.cancel(Jn)})});var ti=new Lt(this.transform(Nn.query).hasClientExports?this.localState.addExportedVariables(Nn.query,Nn.variables,Nn.context).then(Qn):Qn(Nn.variables));return ti.cleanup(function(){Ee.fetchCancelFns.delete(h),function G(p){var h=p.fetchPolicy,R=p.nextFetchPolicy;R&&(p.fetchPolicy="function"==typeof R?R.call(p,void 0===h?"cache-first":h):R)}(y)}),ti},p.prototype.refetchQueries=function(h){var y=this,R=h.updateCache,Ee=h.include,et=h.optimistic,gt=void 0!==et&&et,Qe=h.removeOptimistic,_t=void 0===Qe?gt?(0,It.X)("refetchQueries"):void 0:Qe,Rt=h.onQueryUpdated,qt=new Map;Ee&&this.getObservableQueries(Ee).forEach(function(Vt,bn){qt.set(bn,{oq:Vt,lastDiff:y.getQuery(bn).getDiff()})});var on=new Map;return R&&this.cache.batch({update:R,optimistic:gt&&_t||!1,removeOptimistic:_t,onWatchUpdated:function(Vt,bn,mn){var fn=Vt.watcher instanceof jt&&Vt.watcher.observableQuery;if(fn){if(Rt){qt.delete(fn.queryId);var Dn=Rt(fn,bn,mn);return!0===Dn&&(Dn=fn.refetch()),!1!==Dn&&on.set(fn,Dn),Dn}null!==Rt&&qt.set(fn.queryId,{oq:fn,lastDiff:mn,diff:bn})}}}),qt.size&&qt.forEach(function(Vt,bn){var rn,mn=Vt.oq,fn=Vt.lastDiff,Dn=Vt.diff;if(Rt){if(!Dn){var Nn=mn.queryInfo;Nn.reset(),Dn=Nn.getDiff()}rn=Rt(mn,Dn,fn)}(!Rt||!0===rn)&&(rn=mn.refetch()),!1!==rn&&on.set(mn,rn),bn.indexOf("legacyOneTimeQuery")>=0&&y.stopQueryNoBroadcast(bn)}),_t&&this.cache.removeOptimistic(_t),on},p.prototype.fetchQueryByPolicy=function(h,y,R){var Ee=this,et=y.query,gt=y.variables,Qe=y.fetchPolicy,_t=y.refetchWritePolicy,Rt=y.errorPolicy,qt=y.returnPartialData,on=y.context,Vt=y.notifyOnNetworkStatusChange,bn=h.networkStatus;h.init({document:et,variables:gt,networkStatus:R});var mn=function(){return h.getDiff(gt)},fn=function(ti,Jn){void 0===Jn&&(Jn=h.networkStatus||ot.loading);var qn=ti.result;__DEV__&&!qt&&!(0,we.D)(qn,{})&&B(ti.missing);var Ce=function(ke){return C.y.of((0,o.pi)({data:ke,loading:en(Jn),networkStatus:Jn},ti.complete?null:{partial:!0}))};return qn&&Ee.transform(et).hasForcedResolvers?Ee.localState.runResolvers({document:et,remoteResult:{data:qn},context:on,variables:gt,onlyRunForcedResolvers:!0}).then(function(ke){return Ce(ke.data||void 0)}):Ce(qn)},Dn="no-cache"===Qe?0:R===ot.refetch&&"merge"!==_t?1:2,rn=function(){return Ee.getResultsFromLink(h,Dn,{variables:gt,context:on,fetchPolicy:Qe,errorPolicy:Rt})},Nn=Vt&&"number"==typeof bn&&bn!==R&&en(R);switch(Qe){default:case"cache-first":return(Qn=mn()).complete?[fn(Qn,h.markReady())]:qt||Nn?[fn(Qn),rn()]:[rn()];case"cache-and-network":var Qn;return(Qn=mn()).complete||qt||Nn?[fn(Qn),rn()]:[rn()];case"cache-only":return[fn(mn(),h.markReady())];case"network-only":return Nn?[fn(mn()),rn()]:[rn()];case"no-cache":return Nn?[fn(h.getDiff()),rn()]:[rn()];case"standby":return[]}},p.prototype.getQuery=function(h){return h&&!this.queries.has(h)&&this.queries.set(h,new jt(this,h)),this.queries.get(h)},p.prototype.prepareContext=function(h){void 0===h&&(h={});var y=this.localState.prepareContext(h);return(0,o.pi)((0,o.pi)({},y),{clientAwareness:this.clientAwareness})},p}(),an=!1;function nn(p,h){return(0,A.o)(p,h,h.variables&&{variables:(0,o.pi)((0,o.pi)({},p.variables),h.variables)})}var Gn=function(){function p(h){var y=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var R=h.uri,gt=h.cache,Qe=h.ssrMode,_t=void 0!==Qe&&Qe,Rt=h.ssrForceFetchDelay,qt=void 0===Rt?0:Rt,on=h.connectToDevTools,Vt=void 0===on?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:on,bn=h.queryDeduplication,mn=void 0===bn||bn,fn=h.defaultOptions,Dn=h.assumeImmutableResults,rn=void 0!==Dn&&Dn,Nn=h.resolvers,Qn=h.typeDefs,ti=h.fragmentMatcher,Jn=h.name,qn=h.version,Ce=h.link;if(Ce||(Ce=R?new se({uri:R,credentials:h.credentials,headers:h.headers}):K.i.empty()),!gt)throw __DEV__?new l.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new l.ej(7);if(this.link=Ce,this.cache=gt,this.disableNetworkFetches=_t||qt>0,this.queryDeduplication=mn,this.defaultOptions=fn||{},this.typeDefs=Qn,qt&&setTimeout(function(){return y.disableNetworkFetches=!1},qt),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),Vt&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!an&&__DEV__&&(an=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var ke=window.navigator,le=ke&&ke.userAgent,tt=void 0;"string"==typeof le&&(le.indexOf("Chrome/")>-1?tt="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":le.indexOf("Firefox/")>-1&&(tt="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),tt&&__DEV__&&l.kG.log("Download the Apollo DevTools for a better development experience: "+tt)}this.version="3.5.8",this.localState=new vt({cache:gt,client:this,resolvers:Nn,fragmentMatcher:ti}),this.queryManager=new cn({cache:this.cache,link:this.link,queryDeduplication:mn,ssrMode:_t,clientAwareness:{name:Jn,version:qn},localState:this.localState,assumeImmutableResults:rn,onBroadcast:Vt?function(){y.devToolsHookCb&&y.devToolsHookCb({action:{},state:{queries:y.queryManager.getQueryStore(),mutations:y.queryManager.mutationStore||{}},dataWithOptimisticResults:y.cache.extract(!0)})}:void 0})}return p.prototype.stop=function(){this.queryManager.stop()},p.prototype.watchQuery=function(h){return this.defaultOptions.watchQuery&&(h=nn(this.defaultOptions.watchQuery,h)),this.disableNetworkFetches&&("network-only"===h.fetchPolicy||"cache-and-network"===h.fetchPolicy)&&(h=(0,o.pi)((0,o.pi)({},h),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(h)},p.prototype.query=function(h){return this.defaultOptions.query&&(h=nn(this.defaultOptions.query,h)),__DEV__?(0,l.kG)("cache-and-network"!==h.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,l.kG)("cache-and-network"!==h.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===h.fetchPolicy&&(h=(0,o.pi)((0,o.pi)({},h),{fetchPolicy:"cache-first"})),this.queryManager.query(h)},p.prototype.mutate=function(h){return this.defaultOptions.mutate&&(h=nn(this.defaultOptions.mutate,h)),this.queryManager.mutate(h)},p.prototype.subscribe=function(h){return this.queryManager.startGraphQLSubscription(h)},p.prototype.readQuery=function(h,y){return void 0===y&&(y=!1),this.cache.readQuery(h,y)},p.prototype.readFragment=function(h,y){return void 0===y&&(y=!1),this.cache.readFragment(h,y)},p.prototype.writeQuery=function(h){this.cache.writeQuery(h),this.queryManager.broadcastQueries()},p.prototype.writeFragment=function(h){this.cache.writeFragment(h),this.queryManager.broadcastQueries()},p.prototype.__actionHookForDevTools=function(h){this.devToolsHookCb=h},p.prototype.__requestRaw=function(h){return m(this.link,h)},p.prototype.resetStore=function(){var h=this;return Promise.resolve().then(function(){return h.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(h.resetStoreCallbacks.map(function(y){return y()}))}).then(function(){return h.reFetchObservableQueries()})},p.prototype.clearStore=function(){var h=this;return Promise.resolve().then(function(){return h.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(h.clearStoreCallbacks.map(function(y){return y()}))})},p.prototype.onResetStore=function(h){var y=this;return this.resetStoreCallbacks.push(h),function(){y.resetStoreCallbacks=y.resetStoreCallbacks.filter(function(R){return R!==h})}},p.prototype.onClearStore=function(h){var y=this;return this.clearStoreCallbacks.push(h),function(){y.clearStoreCallbacks=y.clearStoreCallbacks.filter(function(R){return R!==h})}},p.prototype.reFetchObservableQueries=function(h){return this.queryManager.reFetchObservableQueries(h)},p.prototype.refetchQueries=function(h){var y=this.queryManager.refetchQueries(h),R=[],Ee=[];y.forEach(function(gt,Qe){R.push(Qe),Ee.push(gt)});var et=Promise.all(Ee);return et.queries=R,et.results=Ee,et.catch(function(gt){__DEV__&&l.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(gt))}),et},p.prototype.getObservableQueries=function(h){return void 0===h&&(h="active"),this.queryManager.getObservableQueries(h)},p.prototype.extract=function(h){return this.cache.extract(h)},p.prototype.restore=function(h){return this.cache.restore(h)},p.prototype.addResolvers=function(h){this.localState.addResolvers(h)},p.prototype.setResolvers=function(h){this.localState.setResolvers(h)},p.prototype.getResolvers=function(){return this.localState.getResolvers()},p.prototype.setLocalStateFragmentMatcher=function(h){this.localState.setFragmentMatcher(h)},p.prototype.setLink=function(h){this.link=this.queryManager.link=h},p}(),xn=c(2916),yn=c(341),_n=c(3821),un=c(5254),Dt=c(7770),it=c(1059);function Ge(p){return new xn.y(h=>(p().then(y=>{h.closed||(h.next(y),h.complete())},y=>{h.closed||h.error(y)}),()=>h.unsubscribe()))}class St{constructor(h){this.zone=h,this.now=Date.now?Date.now:()=>+new Date}schedule(h,y=0,R){return this.zone.run(()=>yn.N.schedule(h,y,R))}}function xe(p){return p[_n.L]=()=>p,p}function xt(p,h){return p.pipe((0,Dt.QV)(new St(h)))}class de{constructor(h,y,R){this.obsQuery=h;const Ee=xt((0,un.D)(xe(this.obsQuery)),y);this.valueChanges=R.useInitialLoading?Ee.pipe((0,it.O)(Object.assign(Object.assign({},this.obsQuery.getCurrentResult(!1)),{error:void 0,partial:void 0,stale:!0}))):Ee,this.queryId=this.obsQuery.queryId}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(h){return this.obsQuery.refetch(h)}fetchMore(h){return this.obsQuery.fetchMore(h)}subscribeToMore(h){return this.obsQuery.subscribeToMore(h)}updateQuery(h){return this.obsQuery.updateQuery(h)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(h){return this.obsQuery.startPolling(h)}setOptions(h){return this.obsQuery.setOptions(h)}setVariables(h){return this.obsQuery.setVariables(h)}}const ut=new r.OlP("APOLLO_FLAGS"),I=new r.OlP("APOLLO_OPTIONS"),Z=new r.OlP("APOLLO_NAMED_OPTIONS");class oe{constructor(h,y,R){this.ngZone=h,this.flags=y,this._client=R,this.useInitialLoading=function ge(p,h,y){return p&&void 0!==p[h]?p[h]:y}(y,"useInitialLoading",!1)}watchQuery(h){return new de(this.ensureClient().watchQuery(Object.assign({},h)),this.ngZone,Object.assign({useInitialLoading:this.useInitialLoading},h))}query(h){return Ge(()=>this.ensureClient().query(Object.assign({},h)))}mutate(h){return Ge(()=>this.ensureClient().mutate(Object.assign({},h)))}subscribe(h,y){const R=(0,un.D)(xe(this.ensureClient().subscribe(Object.assign({},h))));return y&&!0!==y.useZone?R:xt(R,this.ngZone)}getClient(){return this.client}setClient(h){this.client=h}get client(){return this._client}set client(h){if(this._client)throw new Error("Client has been already defined");this._client=h}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let De=(()=>{class p extends oe{constructor(y,R,Ee,et){if(super(y,et),this._ngZone=y,this.map=new Map,R&&this.createDefault(R),Ee&&"object"==typeof Ee)for(let gt in Ee)Ee.hasOwnProperty(gt)&&this.createNamed(gt,Ee[gt])}create(y,R){ft(R)?this.createDefault(y):this.createNamed(R,y)}default(){return this}use(y){return ft(y)?this.default():this.map.get(y)}createDefault(y){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new Gn(y))}createNamed(y,R){if(this.map.has(y))throw new Error(`Client ${y} has been already created`);this.map.set(y,new oe(this._ngZone,this.flags,new Gn(R)))}removeClient(y){ft(y)?this._client=void 0:this.map.delete(y)}}return p.\u0275fac=function(y){return new(y||p)(r.LFG(r.R0b),r.LFG(I,8),r.LFG(Z,8),r.LFG(ut,8))},p.\u0275prov=r.Yz7({factory:function(){return new p(r.LFG(r.R0b),r.LFG(I,8),r.LFG(Z,8),r.LFG(ut,8))},token:p,providedIn:"root"}),p})();function ft(p){return!p||"default"===p}let Jt=(()=>{class p{constructor(y){this.apollo=y,this.client="default"}watch(y,R){return this.apollo.use(this.client).watchQuery(Object.assign(Object.assign({},R),{variables:y,query:this.document}))}fetch(y,R){return this.apollo.use(this.client).query(Object.assign(Object.assign({},R),{variables:y,query:this.document}))}}return p.\u0275fac=function(y){return new(y||p)(r.LFG(De))},p.\u0275prov=r.Yz7({token:p,factory:p.\u0275fac}),p})(),ee=(()=>{class p{constructor(y){this.apollo=y,this.client="default"}mutate(y,R){return this.apollo.use(this.client).mutate(Object.assign(Object.assign({},R),{variables:y,mutation:this.document}))}}return p.\u0275fac=function(y){return new(y||p)(r.LFG(De))},p.\u0275prov=r.Yz7({token:p,factory:p.\u0275fac}),p})()},9664:Ft=>{Ft.exports=function(c){var o=c.name,l=c.type;this.uri=c.uri,this.name=o,this.type=l}},7887:(Ft,Pe,c)=>{var r=c(2001);Ft.exports=function o(l,K,m){void 0===K&&(K=""),void 0===m&&(m=r);var A,b=new Map;function D(w,z){var M=b.get(z);M?M.push.apply(M,w):b.set(z,w)}if(m(l))A=null,D([K],l);else{var C=K?K+".":"";if("undefined"!=typeof FileList&&l instanceof FileList)A=Array.prototype.map.call(l,function(w,z){return D([""+C+z],w),null});else if(Array.isArray(l))A=l.map(function(w,z){var M=o(w,""+C+z,m);return M.files.forEach(D),M.clone});else if(l&&l.constructor===Object)for(var E in A={},l){var S=o(l[E],""+C+E,m);S.files.forEach(D),A[E]=S.clone}else A=l}return{clone:A,files:b}}},2001:(Ft,Pe,c)=>{var r=c(9664);Ft.exports=function(l){return"undefined"!=typeof File&&l instanceof File||"undefined"!=typeof Blob&&l instanceof Blob||l instanceof r}},5109:(Ft,Pe,c)=>{c.d(Pe,{s:()=>E});var r=c(9808),o=c(5e3);let E=(()=>{class S{}return S.\u0275fac=function(z){return new(z||S)},S.\u0275mod=o.oAB({type:S}),S.\u0275inj=o.cJS({imports:[[r.ez]]}),S})()},8625:(Ft,Pe,c)=>{c.d(Pe,{KP:()=>fe,$L:()=>we,wr:()=>se});var r=c(1086),o=c(8723),l=c(8896),K=c(8929),m=c(1177);class b{constructor(Ye,We,rt){this.project=Ye,this.concurrent=We,this.scheduler=rt}call(Ye,We){return We.subscribe(new D(Ye,this.project,this.concurrent,this.scheduler))}}class D extends m.Ds{constructor(Ye,We,rt,wt){super(Ye),this.project=We,this.concurrent=rt,this.scheduler=wt,this.index=0,this.active=0,this.hasCompleted=!1,rt0&&this._next(Ye.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var C=c(1307),E=c(2198),S=c(5e3);const N=3600;class Re{}let ae=(()=>{class ue extends Re{tick(We){return(0,r.of)(0).pipe(function A(ue,Ye=Number.POSITIVE_INFINITY,We){return Ye=(Ye||0)<1?Number.POSITIVE_INFINITY:Ye,rt=>rt.lift(new b(ue,Ye,We))}(()=>{const rt=Date.now(),wt=Math.round(Math.abs(rt-We)/1e3),Ae=wt<60?1e3:wt{class ue{constructor(){this.changes=new K.xQ}}return ue.\u0275fac=function(We){return new(We||ue)},ue.\u0275prov=S.Yz7({token:ue,factory:ue.\u0275fac}),ue})();class fe{}let U=(()=>{class ue extends fe{format(We){const{suffix:rt,value:wt,unit:Ae}=function(ue){const Ye=Date.now(),We=Math.round(Math.abs(Ye-ue)/1e3),rt=ue{class ue{constructor(We,rt,wt,Ae){this.clock=Ae,this.live=!0,this.stateChanges=new K.xQ,We&&(this.intlSubscription=We.changes.subscribe(()=>this.stateChanges.next())),this.stateChanges.subscribe(()=>{this.value=wt.format(this.date),rt.markForCheck()})}transform(We,...rt){const wt=function M(ue){const Ye=new Date(ue);if(!Number.isNaN(Ye.valueOf()))return Ye;const We=String(ue).match(/\d+/g);if(null===We||We.length<=2)return Ye;{const[rt,wt,...Ae]=We.map(mt=>parseInt(mt,10));return new Date(Date.UTC(rt,wt-1,...Ae))}}(We).valueOf();let Ae;if(Ae=function w(ue){return null!=ue}(rt[0])?function z(ue){return null!=ue&&"false"!=`${ue}`}(rt[0]):this.live,this.date===wt&&this.live===Ae)return this.value;if(this.date=wt,this.live=Ae,!this.date)throw new SyntaxError(`Wrong parameter in TimeagoPipe. Expected a valid date, received: ${We}`);return this.clockSubscription&&(this.clockSubscription.unsubscribe(),this.clockSubscription=void 0),this.clockSubscription=this.clock.tick(this.date).pipe((0,E.h)(()=>this.live,this)).subscribe(()=>this.stateChanges.next()),this.stateChanges.next(),this.value}ngOnDestroy(){this.intlSubscription&&(this.intlSubscription.unsubscribe(),this.intlSubscription=void 0),this.clockSubscription&&(this.clockSubscription.unsubscribe(),this.clockSubscription=void 0),this.stateChanges.complete()}}return ue.\u0275fac=function(We){return new(We||ue)(S.Y36(Ue,24),S.Y36(S.sBO,16),S.Y36(fe,16),S.Y36(Re,16))},ue.\u0275pipe=S.Yjl({name:"timeago",type:ue,pure:!1}),ue.\u0275prov=S.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),we=(()=>{class ue{static forRoot(We={}){return{ngModule:ue,providers:[We.clock||{provide:Re,useClass:ae},We.intl||[],We.formatter||{provide:fe,useClass:U}]}}static forChild(We={}){return{ngModule:ue,providers:[We.clock||{provide:Re,useClass:ae},We.intl||[],We.formatter||{provide:fe,useClass:U}]}}}return ue.\u0275fac=function(We){return new(We||ue)},ue.\u0275mod=S.oAB({type:ue}),ue.\u0275inj=S.cJS({}),ue})()},9769:(Ft,Pe,c)=>{c.d(Pe,{dP:()=>ue,re:()=>wt});var r=c(9428),o=c(3119);function l(){}var A,K=function(){function Ae(mt,kt){void 0===mt&&(mt=1/0),void 0===kt&&(kt=l),this.max=mt,this.dispose=kt,this.map=new Map,this.newest=null,this.oldest=null}return Ae.prototype.has=function(mt){return this.map.has(mt)},Ae.prototype.get=function(mt){var kt=this.getNode(mt);return kt&&kt.value},Ae.prototype.getNode=function(mt){var kt=this.map.get(mt);if(kt&&kt!==this.newest){var Ct=kt.older,It=kt.newer;It&&(It.older=Ct),Ct&&(Ct.newer=It),kt.older=this.newest,kt.older.newer=kt,kt.newer=null,this.newest=kt,kt===this.oldest&&(this.oldest=It)}return kt},Ae.prototype.set=function(mt,kt){var Ct=this.getNode(mt);return Ct?Ct.value=kt:(Ct={key:mt,value:kt,newer:null,older:this.newest},this.newest&&(this.newest.newer=Ct),this.newest=Ct,this.oldest=this.oldest||Ct,this.map.set(mt,Ct),Ct.value)},Ae.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},Ae.prototype.delete=function(mt){var kt=this.map.get(mt);return!!kt&&(kt===this.newest&&(this.newest=kt.older),kt===this.oldest&&(this.oldest=kt.newer),kt.newer&&(kt.newer.older=kt.older),kt.older&&(kt.older.newer=kt.newer),this.map.delete(mt),this.dispose(kt.value,mt),!0)},Ae}(),m=new o.g7,b=Object.prototype.hasOwnProperty,D=void 0===(A=Array.from)?function(Ae){var mt=[];return Ae.forEach(function(kt){return mt.push(kt)}),mt}:A;function C(Ae){var mt=Ae.unsubscribe;"function"==typeof mt&&(Ae.unsubscribe=void 0,mt())}var E=[];function w(Ae,mt){if(!Ae)throw new Error(mt||"assertion failure")}function M(Ae){switch(Ae.length){case 0:throw new Error("unknown value");case 1:return Ae[0];case 2:throw Ae[1]}}var N=function(){function Ae(mt){this.fn=mt,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Ae.count}return Ae.prototype.peek=function(){if(1===this.value.length&&!Le(this))return ie(this),this.value[0]},Ae.prototype.recompute=function(mt){return w(!this.recomputing,"already recomputing"),ie(this),Le(this)?function ce(Ae,mt){return J(Ae),m.withValue(Ae,ve,[Ae,mt]),function se(Ae,mt){if("function"==typeof Ae.subscribe)try{C(Ae),Ae.unsubscribe=Ae.subscribe.apply(null,mt)}catch(kt){return Ae.setDirty(),!1}return!0}(Ae,mt)&&function Re(Ae){Ae.dirty=!1,!Le(Ae)&&Ue(Ae)}(Ae),M(Ae.value)}(this,mt):M(this.value)},Ae.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,ae(this),C(this))},Ae.prototype.dispose=function(){var mt=this;this.setDirty(),J(this),He(this,function(kt,Ct){kt.setDirty(),Me(kt,mt)})},Ae.prototype.forget=function(){this.dispose()},Ae.prototype.dependOn=function(mt){mt.add(this),this.deps||(this.deps=E.pop()||new Set),this.deps.add(mt)},Ae.prototype.forgetDeps=function(){var mt=this;this.deps&&(D(this.deps).forEach(function(kt){return kt.delete(mt)}),this.deps.clear(),E.push(this.deps),this.deps=null)},Ae.count=0,Ae}();function ie(Ae){var mt=m.getValue();if(mt)return Ae.parents.add(mt),mt.childValues.has(Ae)||mt.childValues.set(Ae,[]),Le(Ae)?me(mt,Ae):fe(mt,Ae),mt}function ve(Ae,mt){Ae.recomputing=!0,Ae.value.length=0;try{Ae.value[0]=Ae.fn.apply(null,mt)}catch(kt){Ae.value[1]=kt}Ae.recomputing=!1}function Le(Ae){return Ae.dirty||!(!Ae.dirtyChildren||!Ae.dirtyChildren.size)}function ae(Ae){He(Ae,me)}function Ue(Ae){He(Ae,fe)}function He(Ae,mt){var kt=Ae.parents.size;if(kt)for(var Ct=D(Ae.parents),It=0;It0&&kt===mt.length&&Ae[kt-1]===mt[kt-1]}(kt,mt.value)||Ae.setDirty(),U(Ae,mt),!Le(Ae)&&Ue(Ae)}function U(Ae,mt){var kt=Ae.dirtyChildren;kt&&(kt.delete(mt),0===kt.size&&(E.length<100&&E.push(kt),Ae.dirtyChildren=null))}function J(Ae){Ae.childValues.size>0&&Ae.childValues.forEach(function(mt,kt){Me(Ae,kt)}),Ae.forgetDeps(),w(null===Ae.dirtyChildren)}function Me(Ae,mt){mt.parents.delete(Ae),Ae.childValues.delete(mt),U(Ae,mt)}var we={setDirty:!0,dispose:!0,forget:!0};function ue(Ae){var mt=new Map,kt=Ae&&Ae.subscribe;function Ct(It){var Xe=m.getValue();if(Xe){var lt=mt.get(It);lt||mt.set(It,lt=new Set),Xe.dependOn(lt),"function"==typeof kt&&(C(lt),lt.unsubscribe=kt(It))}}return Ct.dirty=function(Xe,lt){var ct=mt.get(Xe);if(ct){var Lt=lt&&b.call(we,lt)?lt:"setDirty";D(ct).forEach(function(Ie){return Ie[Lt]()}),mt.delete(Xe),C(ct)}},Ct}function Ye(){var Ae=new r.B("function"==typeof WeakMap);return function(){return Ae.lookupArray(arguments)}}Ye();var rt=new Set;function wt(Ae,mt){void 0===mt&&(mt=Object.create(null));var kt=new K(mt.max||Math.pow(2,16),function(Ie){return Ie.dispose()}),Ct=mt.keyArgs,It=mt.makeCacheKey||Ye(),Xe=function(){var Ie=It.apply(null,Ct?Ct.apply(null,arguments):arguments);if(void 0===Ie)return Ae.apply(null,arguments);var Pt=kt.get(Ie);Pt||(kt.set(Ie,Pt=new N(Ae)),Pt.subscribe=mt.subscribe,Pt.forget=function(){return kt.delete(Ie)});var pt=Pt.recompute(Array.prototype.slice.call(arguments));return kt.set(Ie,Pt),rt.add(kt),m.hasValue()||(rt.forEach(function(Et){return Et.clean()}),rt.clear()),pt};function lt(Ie){var Pt=kt.get(Ie);Pt&&Pt.setDirty()}function ct(Ie){var Pt=kt.get(Ie);if(Pt)return Pt.peek()}function Lt(Ie){return kt.delete(Ie)}return Object.defineProperty(Xe,"size",{get:function(){return kt.map.size},configurable:!1,enumerable:!1}),Xe.dirtyKey=lt,Xe.dirty=function(){lt(It.apply(null,arguments))},Xe.peekKey=ct,Xe.peek=function(){return ct(It.apply(null,arguments))},Xe.forgetKey=Lt,Xe.forget=function(){return Lt(It.apply(null,arguments))},Xe.makeCacheKey=It,Xe.getKey=Ct?function(){return It.apply(null,Ct.apply(null,arguments))}:It,Object.freeze(Xe)}},591:(Ft,Pe,c)=>{c.d(Pe,{X:()=>l});var r=c(8929),o=c(5279);class l extends r.xQ{constructor(m){super(),this._value=m}get value(){return this.getValue()}_subscribe(m){const A=super._subscribe(m);return A&&!A.closed&&m.next(this._value),A}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.N;return this._value}next(m){super.next(this._value=m)}}},9312:(Ft,Pe,c)=>{c.d(Pe,{P:()=>m});var r=c(8896),o=c(1086),l=c(1737);class m{constructor(b,D,C){this.kind=b,this.value=D,this.error=C,this.hasValue="N"===b}observe(b){switch(this.kind){case"N":return b.next&&b.next(this.value);case"E":return b.error&&b.error(this.error);case"C":return b.complete&&b.complete()}}do(b,D,C){switch(this.kind){case"N":return b&&b(this.value);case"E":return D&&D(this.error);case"C":return C&&C()}}accept(b,D,C){return b&&"function"==typeof b.next?this.observe(b):this.do(b,D,C)}toObservable(){switch(this.kind){case"N":return(0,o.of)(this.value);case"E":return(0,l._)(this.error);case"C":return(0,r.c)()}throw new Error("unexpected notification kind value")}static createNext(b){return void 0!==b?new m("N",b):m.undefinedValueNotification}static createError(b){return new m("E",void 0,b)}static createComplete(){return m.completeNotification}}m.completeNotification=new m("C"),m.undefinedValueNotification=new m("N",void 0)},2916:(Ft,Pe,c)=>{c.d(Pe,{y:()=>S});var r=c(3489),l=c(7668),K=c(3292),A=c(3821),b=c(5379);var E=c(2830);let S=(()=>{class z{constructor(k){this._isScalar=!1,k&&(this._subscribe=k)}lift(k){const N=new z;return N.source=this,N.operator=k,N}subscribe(k,N,ie){const{operator:ce}=this,ve=function m(z,M,k){if(z){if(z instanceof r.L)return z;if(z[l.b])return z[l.b]()}return z||M||k?new r.L(z,M,k):new r.L(K.c)}(k,N,ie);if(ve.add(ce?ce.call(ve,this.source):this.source||E.v.useDeprecatedSynchronousErrorHandling&&!ve.syncErrorThrowable?this._subscribe(ve):this._trySubscribe(ve)),E.v.useDeprecatedSynchronousErrorHandling&&ve.syncErrorThrowable&&(ve.syncErrorThrowable=!1,ve.syncErrorThrown))throw ve.syncErrorValue;return ve}_trySubscribe(k){try{return this._subscribe(k)}catch(N){E.v.useDeprecatedSynchronousErrorHandling&&(k.syncErrorThrown=!0,k.syncErrorValue=N),function o(z){for(;z;){const{closed:M,destination:k,isStopped:N}=z;if(M||N)return!1;z=k&&k instanceof r.L?k:null}return!0}(k)?k.error(N):console.warn(N)}}forEach(k,N){return new(N=w(N))((ie,ce)=>{let ve;ve=this.subscribe(Le=>{try{k(Le)}catch(Re){ce(Re),ve&&ve.unsubscribe()}},ce,ie)})}_subscribe(k){const{source:N}=this;return N&&N.subscribe(k)}[A.L](){return this}pipe(...k){return 0===k.length?this:function C(z){return 0===z.length?b.y:1===z.length?z[0]:function(k){return z.reduce((N,ie)=>ie(N),k)}}(k)(this)}toPromise(k){return new(k=w(k))((N,ie)=>{let ce;this.subscribe(ve=>ce=ve,ve=>ie(ve),()=>N(ce))})}}return z.create=M=>new z(M),z})();function w(z){if(z||(z=E.v.Promise||Promise),!z)throw new Error("no Promise impl found");return z}},3292:(Ft,Pe,c)=>{c.d(Pe,{c:()=>l});var r=c(2830),o=c(2782);const l={closed:!0,next(K){},error(K){if(r.v.useDeprecatedSynchronousErrorHandling)throw K;(0,o.z)(K)},complete(){}}},839:(Ft,Pe,c)=>{c.d(Pe,{t:()=>b});var r=c(8929),o=c(341),l=c(2654),K=c(7770),m=c(5279),A=c(5283);class b extends r.xQ{constructor(E=Number.POSITIVE_INFINITY,S=Number.POSITIVE_INFINITY,w){super(),this.scheduler=w,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=E<1?1:E,this._windowTime=S<1?1:S,S===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(E){if(!this.isStopped){const S=this._events;S.push(E),S.length>this._bufferSize&&S.shift()}super.next(E)}nextTimeWindow(E){this.isStopped||(this._events.push(new D(this._getNow(),E)),this._trimBufferThenGetEvents()),super.next(E)}_subscribe(E){const S=this._infiniteTimeWindow,w=S?this._events:this._trimBufferThenGetEvents(),z=this.scheduler,M=w.length;let k;if(this.closed)throw new m.N;if(this.isStopped||this.hasError?k=l.w.EMPTY:(this.observers.push(E),k=new A.W(this,E)),z&&E.add(E=new K.ht(E,z)),S)for(let N=0;NS&&(k=Math.max(k,M-S)),k>0&&z.splice(0,k),z}}class D{constructor(E,S){this.time=E,this.value=S}}},8929:(Ft,Pe,c)=>{c.d(Pe,{Yc:()=>b,xQ:()=>D});var r=c(2916),o=c(3489),l=c(2654),K=c(5279),m=c(5283),A=c(7668);class b extends o.L{constructor(S){super(S),this.destination=S}}let D=(()=>{class E extends r.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[A.b](){return new b(this)}lift(w){const z=new C(this,this);return z.operator=w,z}next(w){if(this.closed)throw new K.N;if(!this.isStopped){const{observers:z}=this,M=z.length,k=z.slice();for(let N=0;Nnew C(S,w),E})();class C extends D{constructor(S,w){super(),this.destination=S,this.source=w}next(S){const{destination:w}=this;w&&w.next&&w.next(S)}error(S){const{destination:w}=this;w&&w.error&&this.destination.error(S)}complete(){const{destination:S}=this;S&&S.complete&&this.destination.complete()}_subscribe(S){const{source:w}=this;return w?this.source.subscribe(S):l.w.EMPTY}}},5283:(Ft,Pe,c)=>{c.d(Pe,{W:()=>o});var r=c(2654);class o extends r.w{constructor(K,m){super(),this.subject=K,this.subscriber=m,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const K=this.subject,m=K.observers;if(this.subject=null,!m||0===m.length||K.isStopped||K.closed)return;const A=m.indexOf(this.subscriber);-1!==A&&m.splice(A,1)}}},3489:(Ft,Pe,c)=>{c.d(Pe,{L:()=>b});var r=c(7043),o=c(3292),l=c(2654),K=c(7668),m=c(2830),A=c(2782);class b extends l.w{constructor(E,S,w){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.c;break;case 1:if(!E){this.destination=o.c;break}if("object"==typeof E){E instanceof b?(this.syncErrorThrowable=E.syncErrorThrowable,this.destination=E,E.add(this)):(this.syncErrorThrowable=!0,this.destination=new D(this,E));break}default:this.syncErrorThrowable=!0,this.destination=new D(this,E,S,w)}}[K.b](){return this}static create(E,S,w){const z=new b(E,S,w);return z.syncErrorThrowable=!1,z}next(E){this.isStopped||this._next(E)}error(E){this.isStopped||(this.isStopped=!0,this._error(E))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(E){this.destination.next(E)}_error(E){this.destination.error(E),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:E}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=E,this}}class D extends b{constructor(E,S,w,z){super(),this._parentSubscriber=E;let M,k=this;(0,r.m)(S)?M=S:S&&(M=S.next,w=S.error,z=S.complete,S!==o.c&&(k=Object.create(S),(0,r.m)(k.unsubscribe)&&this.add(k.unsubscribe.bind(k)),k.unsubscribe=this.unsubscribe.bind(this))),this._context=k,this._next=M,this._error=w,this._complete=z}next(E){if(!this.isStopped&&this._next){const{_parentSubscriber:S}=this;m.v.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable?this.__tryOrSetError(S,this._next,E)&&this.unsubscribe():this.__tryOrUnsub(this._next,E)}}error(E){if(!this.isStopped){const{_parentSubscriber:S}=this,{useDeprecatedSynchronousErrorHandling:w}=m.v;if(this._error)w&&S.syncErrorThrowable?(this.__tryOrSetError(S,this._error,E),this.unsubscribe()):(this.__tryOrUnsub(this._error,E),this.unsubscribe());else if(S.syncErrorThrowable)w?(S.syncErrorValue=E,S.syncErrorThrown=!0):(0,A.z)(E),this.unsubscribe();else{if(this.unsubscribe(),w)throw E;(0,A.z)(E)}}}complete(){if(!this.isStopped){const{_parentSubscriber:E}=this;if(this._complete){const S=()=>this._complete.call(this._context);m.v.useDeprecatedSynchronousErrorHandling&&E.syncErrorThrowable?(this.__tryOrSetError(E,S),this.unsubscribe()):(this.__tryOrUnsub(S),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(E,S){try{E.call(this._context,S)}catch(w){if(this.unsubscribe(),m.v.useDeprecatedSynchronousErrorHandling)throw w;(0,A.z)(w)}}__tryOrSetError(E,S,w){if(!m.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{S.call(this._context,w)}catch(z){return m.v.useDeprecatedSynchronousErrorHandling?(E.syncErrorValue=z,E.syncErrorThrown=!0,!0):((0,A.z)(z),!0)}return!1}_unsubscribe(){const{_parentSubscriber:E}=this;this._context=null,this._parentSubscriber=null,E.unsubscribe()}}},2654:(Ft,Pe,c)=>{c.d(Pe,{w:()=>A});var r=c(6688),o=c(7830),l=c(7043);const m=(()=>{function D(C){return Error.call(this),this.message=C?`${C.length} errors occurred during unsubscription:\n${C.map((E,S)=>`${S+1}) ${E.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=C,this}return D.prototype=Object.create(Error.prototype),D})();class A{constructor(C){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,C&&(this._ctorUnsubscribe=!0,this._unsubscribe=C)}unsubscribe(){let C;if(this.closed)return;let{_parentOrParents:E,_ctorUnsubscribe:S,_unsubscribe:w,_subscriptions:z}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,E instanceof A)E.remove(this);else if(null!==E)for(let M=0;MC.concat(E instanceof m?E.errors:E),[])}A.EMPTY=((D=new A).closed=!0,D)},2830:(Ft,Pe,c)=>{c.d(Pe,{v:()=>o});let r=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(l){if(l){const K=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+K.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=l},get useDeprecatedSynchronousErrorHandling(){return r}}},1177:(Ft,Pe,c)=>{c.d(Pe,{IY:()=>K,Ds:()=>A,ft:()=>D});var r=c(3489),o=c(2916),l=c(9249);class K extends r.L{constructor(E){super(),this.parent=E}_next(E){this.parent.notifyNext(E)}_error(E){this.parent.notifyError(E),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class A extends r.L{notifyNext(E){this.destination.next(E)}notifyError(E){this.destination.error(E)}notifyComplete(){this.destination.complete()}}function D(C,E){if(E.closed)return;if(C instanceof o.y)return C.subscribe(E);let S;try{S=(0,l.s)(C)(E)}catch(w){E.error(w)}return S}},1762:(Ft,Pe,c)=>{c.d(Pe,{c:()=>m,N:()=>A});var r=c(8929),o=c(2916),l=c(2654),K=c(4327);class m extends o.y{constructor(S,w){super(),this.source=S,this.subjectFactory=w,this._refCount=0,this._isComplete=!1}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let S=this._connection;return S||(this._isComplete=!1,S=this._connection=new l.w,S.add(this.source.subscribe(new b(this.getSubject(),this))),S.closed&&(this._connection=null,S=l.w.EMPTY)),S}refCount(){return(0,K.x)()(this)}}const A=(()=>{const E=m.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:E._subscribe},_isComplete:{value:E._isComplete,writable:!0},getSubject:{value:E.getSubject},connect:{value:E.connect},refCount:{value:E.refCount}}})();class b extends r.Yc{constructor(S,w){super(S),this.connectable=w}_error(S){this._unsubscribe(),super._error(S)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const S=this.connectable;if(S){this.connectable=null;const w=S._connection;S._refCount=0,S._subject=null,S._connection=null,w&&w.unsubscribe()}}}},3426:(Ft,Pe,c)=>{c.d(Pe,{aj:()=>S});var r=c(2866),o=c(6688),l=c(3489);class K extends l.L{notifyNext(k,N,ie,ce,ve){this.destination.next(N)}notifyError(k,N){this.destination.error(k)}notifyComplete(k){this.destination.complete()}}class m extends l.L{constructor(k,N,ie){super(),this.parent=k,this.outerValue=N,this.outerIndex=ie,this.index=0}_next(k){this.parent.notifyNext(this.outerValue,k,this.outerIndex,this.index++,this)}_error(k){this.parent.notifyError(k,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var A=c(9249),b=c(2916);function D(M,k,N,ie,ce=new m(M,N,ie)){if(!ce.closed)return k instanceof b.y?k.subscribe(ce):(0,A.s)(k)(ce)}var C=c(3009);const E={};function S(...M){let k,N;return(0,r.K)(M[M.length-1])&&(N=M.pop()),"function"==typeof M[M.length-1]&&(k=M.pop()),1===M.length&&(0,o.k)(M[0])&&(M=M[0]),(0,C.n)(M,N).lift(new w(k))}class w{constructor(k){this.resultSelector=k}call(k,N){return N.subscribe(new z(k,this.resultSelector))}}class z extends K{constructor(k,N){super(k),this.resultSelector=N,this.active=0,this.values=[],this.observables=[]}_next(k){this.values.push(E),this.observables.push(k)}_complete(){const k=this.observables,N=k.length;if(0===N)this.destination.complete();else{this.active=N,this.toRespond=N;for(let ie=0;ie{c.d(Pe,{z:()=>K});var r=c(1086),o=c(9146);function K(...m){return function l(){return(0,o.J)(1)}()((0,r.of)(...m))}},8514:(Ft,Pe,c)=>{c.d(Pe,{P:()=>K});var r=c(2916),o=c(5254),l=c(8896);function K(m){return new r.y(A=>{let b;try{b=m()}catch(C){return void A.error(C)}return(b?(0,o.D)(b):(0,l.c)()).subscribe(A)})}},8896:(Ft,Pe,c)=>{c.d(Pe,{E:()=>o,c:()=>l});var r=c(2916);const o=new r.y(m=>m.complete());function l(m){return m?function K(m){return new r.y(A=>m.schedule(()=>A.complete()))}(m):o}},5254:(Ft,Pe,c)=>{c.d(Pe,{D:()=>k});var r=c(2916),o=c(9249),l=c(2654),K=c(3821),b=c(6454),D=c(5430),S=c(8955),w=c(8515);function k(N,ie){return ie?function M(N,ie){if(null!=N){if(function E(N){return N&&"function"==typeof N[K.L]}(N))return function m(N,ie){return new r.y(ce=>{const ve=new l.w;return ve.add(ie.schedule(()=>{const Le=N[K.L]();ve.add(Le.subscribe({next(Re){ve.add(ie.schedule(()=>ce.next(Re)))},error(Re){ve.add(ie.schedule(()=>ce.error(Re)))},complete(){ve.add(ie.schedule(()=>ce.complete()))}}))})),ve})}(N,ie);if((0,S.t)(N))return function A(N,ie){return new r.y(ce=>{const ve=new l.w;return ve.add(ie.schedule(()=>N.then(Le=>{ve.add(ie.schedule(()=>{ce.next(Le),ve.add(ie.schedule(()=>ce.complete()))}))},Le=>{ve.add(ie.schedule(()=>ce.error(Le)))}))),ve})}(N,ie);if((0,w.z)(N))return(0,b.r)(N,ie);if(function z(N){return N&&"function"==typeof N[D.hZ]}(N)||"string"==typeof N)return function C(N,ie){if(!N)throw new Error("Iterable cannot be null");return new r.y(ce=>{const ve=new l.w;let Le;return ve.add(()=>{Le&&"function"==typeof Le.return&&Le.return()}),ve.add(ie.schedule(()=>{Le=N[D.hZ](),ve.add(ie.schedule(function(){if(ce.closed)return;let Re,ae;try{const Ue=Le.next();Re=Ue.value,ae=Ue.done}catch(Ue){return void ce.error(Ue)}ae?ce.complete():(ce.next(Re),this.schedule())}))})),ve})}(N,ie)}throw new TypeError((null!==N&&typeof N||N)+" is not observable")}(N,ie):N instanceof r.y?N:new r.y((0,o.s)(N))}},3009:(Ft,Pe,c)=>{c.d(Pe,{n:()=>K});var r=c(2916),o=c(3650),l=c(6454);function K(m,A){return A?(0,l.r)(m,A):new r.y((0,o.V)(m))}},3753:(Ft,Pe,c)=>{c.d(Pe,{R:()=>A});var r=c(2916),o=c(6688),l=c(7043),K=c(4850);function A(S,w,z,M){return(0,l.m)(z)&&(M=z,z=void 0),M?A(S,w,z).pipe((0,K.U)(k=>(0,o.k)(k)?M(...k):M(k))):new r.y(k=>{b(S,w,function N(ie){k.next(arguments.length>1?Array.prototype.slice.call(arguments):ie)},k,z)})}function b(S,w,z,M,k){let N;if(function E(S){return S&&"function"==typeof S.addEventListener&&"function"==typeof S.removeEventListener}(S)){const ie=S;S.addEventListener(w,z,k),N=()=>ie.removeEventListener(w,z,k)}else if(function C(S){return S&&"function"==typeof S.on&&"function"==typeof S.off}(S)){const ie=S;S.on(w,z),N=()=>ie.off(w,z)}else if(function D(S){return S&&"function"==typeof S.addListener&&"function"==typeof S.removeListener}(S)){const ie=S;S.addListener(w,z),N=()=>ie.removeListener(w,z)}else{if(!S||!S.length)throw new TypeError("Invalid event target");for(let ie=0,ce=S.length;ie{c.d(Pe,{T:()=>m});var r=c(2916),o=c(2866),l=c(9146),K=c(3009);function m(...A){let b=Number.POSITIVE_INFINITY,D=null,C=A[A.length-1];return(0,o.K)(C)?(D=A.pop(),A.length>1&&"number"==typeof A[A.length-1]&&(b=A.pop())):"number"==typeof C&&(b=A.pop()),null===D&&1===A.length&&A[0]instanceof r.y?A[0]:(0,l.J)(b)((0,K.n)(A,D))}},1086:(Ft,Pe,c)=>{c.d(Pe,{of:()=>K});var r=c(2866),o=c(3009),l=c(6454);function K(...m){let A=m[m.length-1];return(0,r.K)(A)?(m.pop(),(0,l.r)(m,A)):(0,o.n)(m)}},1737:(Ft,Pe,c)=>{c.d(Pe,{_:()=>o});var r=c(2916);function o(K,m){return new r.y(m?A=>m.schedule(l,0,{error:K,subscriber:A}):A=>A.error(K))}function l({error:K,subscriber:m}){m.error(K)}},8723:(Ft,Pe,c)=>{c.d(Pe,{H:()=>m});var r=c(2916),o=c(353),l=c(4241),K=c(2866);function m(b=0,D,C){let E=-1;return(0,l.k)(D)?E=Number(D)<1?1:Number(D):(0,K.K)(D)&&(C=D),(0,K.K)(C)||(C=o.P),new r.y(S=>{const w=(0,l.k)(b)?b:+b-C.now();return C.schedule(A,w,{index:0,period:E,subscriber:S})})}function A(b){const{index:D,period:C,subscriber:E}=b;if(E.next(D),!E.closed){if(-1===C)return E.complete();b.index=D+1,this.schedule(b,C)}}},7138:(Ft,Pe,c)=>{c.d(Pe,{e:()=>b});var r=c(353),o=c(1177);class K{constructor(C){this.durationSelector=C}call(C,E){return E.subscribe(new m(C,this.durationSelector))}}class m extends o.Ds{constructor(C,E){super(C),this.durationSelector=E,this.hasValue=!1}_next(C){if(this.value=C,this.hasValue=!0,!this.throttled){let E;try{const{durationSelector:w}=this;E=w(C)}catch(w){return this.destination.error(w)}const S=(0,o.ft)(E,new o.IY(this));!S||S.closed?this.clearThrottle():this.add(this.throttled=S)}}clearThrottle(){const{value:C,hasValue:E,throttled:S}=this;S&&(this.remove(S),this.throttled=void 0,S.unsubscribe()),E&&(this.value=void 0,this.hasValue=!1,this.destination.next(C))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var A=c(8723);function b(D,C=r.P){return function l(D){return function(E){return E.lift(new K(D))}}(()=>(0,A.H)(D,C))}},7221:(Ft,Pe,c)=>{c.d(Pe,{K:()=>o});var r=c(1177);function o(m){return function(b){const D=new l(m),C=b.lift(D);return D.caught=C}}class l{constructor(A){this.selector=A}call(A,b){return b.subscribe(new K(A,this.selector,this.caught))}}class K extends r.Ds{constructor(A,b,D){super(A),this.selector=b,this.caught=D}error(A){if(!this.isStopped){let b;try{b=this.selector(A,this.caught)}catch(E){return void super.error(E)}this._unsubscribeAndRecycle();const D=new r.IY(this);this.add(D);const C=(0,r.ft)(b,D);C!==D&&this.add(C)}}}},1406:(Ft,Pe,c)=>{c.d(Pe,{b:()=>o});var r=c(1709);function o(l,K){return(0,r.zg)(l,K,1)}},13:(Ft,Pe,c)=>{c.d(Pe,{b:()=>l});var r=c(3489),o=c(353);function l(b,D=o.P){return C=>C.lift(new K(b,D))}class K{constructor(D,C){this.dueTime=D,this.scheduler=C}call(D,C){return C.subscribe(new m(D,this.dueTime,this.scheduler))}}class m extends r.L{constructor(D,C,E){super(D),this.dueTime=C,this.scheduler=E,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(D){this.clearDebounce(),this.lastValue=D,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(A,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:D}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(D)}}clearDebounce(){const D=this.debouncedSubscription;null!==D&&(this.remove(D),D.unsubscribe(),this.debouncedSubscription=null)}}function A(b){b.debouncedNext()}},7314:(Ft,Pe,c)=>{c.d(Pe,{d:()=>o});var r=c(3489);function o(m=null){return A=>A.lift(new l(m))}class l{constructor(A){this.defaultValue=A}call(A,b){return b.subscribe(new K(A,this.defaultValue))}}class K extends r.L{constructor(A,b){super(A),this.defaultValue=b,this.isEmpty=!0}_next(A){this.isEmpty=!1,this.destination.next(A)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},5778:(Ft,Pe,c)=>{c.d(Pe,{x:()=>o});var r=c(3489);function o(m,A){return b=>b.lift(new l(m,A))}class l{constructor(A,b){this.compare=A,this.keySelector=b}call(A,b){return b.subscribe(new K(A,this.compare,this.keySelector))}}class K extends r.L{constructor(A,b,D){super(A),this.keySelector=D,this.hasKey=!1,"function"==typeof b&&(this.compare=b)}compare(A,b){return A===b}_next(A){let b;try{const{keySelector:C}=this;b=C?C(A):A}catch(C){return this.destination.error(C)}let D=!1;if(this.hasKey)try{const{compare:C}=this;D=C(this.key,b)}catch(C){return this.destination.error(C)}else this.hasKey=!0;D||(this.key=b,this.destination.next(A))}}},2198:(Ft,Pe,c)=>{c.d(Pe,{h:()=>o});var r=c(3489);function o(m,A){return function(D){return D.lift(new l(m,A))}}class l{constructor(A,b){this.predicate=A,this.thisArg=b}call(A,b){return b.subscribe(new K(A,this.predicate,this.thisArg))}}class K extends r.L{constructor(A,b,D){super(A),this.predicate=b,this.thisArg=D,this.count=0}_next(A){let b;try{b=this.predicate.call(this.thisArg,A,this.count++)}catch(D){return void this.destination.error(D)}b&&this.destination.next(A)}}},537:(Ft,Pe,c)=>{c.d(Pe,{x:()=>l});var r=c(3489),o=c(2654);function l(A){return b=>b.lift(new K(A))}class K{constructor(b){this.callback=b}call(b,D){return D.subscribe(new m(b,this.callback))}}class m extends r.L{constructor(b,D){super(b),this.add(new o.w(D))}}},7224:(Ft,Pe,c)=>{c.d(Pe,{P:()=>b});var r=c(4450),o=c(2198),l=c(2986),K=c(7314),m=c(4907),A=c(5379);function b(D,C){const E=arguments.length>=2;return S=>S.pipe(D?(0,o.h)((w,z)=>D(w,z,S)):A.y,(0,l.q)(1),E?(0,K.d)(C):(0,m.T)(()=>new r.K))}},4850:(Ft,Pe,c)=>{c.d(Pe,{U:()=>o});var r=c(3489);function o(m,A){return function(D){if("function"!=typeof m)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return D.lift(new l(m,A))}}class l{constructor(A,b){this.project=A,this.thisArg=b}call(A,b){return b.subscribe(new K(A,this.project,this.thisArg))}}class K extends r.L{constructor(A,b,D){super(A),this.project=b,this.count=0,this.thisArg=D||this}_next(A){let b;try{b=this.project.call(this.thisArg,A,this.count++)}catch(D){return void this.destination.error(D)}this.destination.next(b)}}},7604:(Ft,Pe,c)=>{c.d(Pe,{h:()=>o});var r=c(3489);function o(m){return A=>A.lift(new l(m))}class l{constructor(A){this.value=A}call(A,b){return b.subscribe(new K(A,this.value))}}class K extends r.L{constructor(A,b){super(A),this.value=b}_next(A){this.destination.next(this.value)}}},9146:(Ft,Pe,c)=>{c.d(Pe,{J:()=>l});var r=c(1709),o=c(5379);function l(K=Number.POSITIVE_INFINITY){return(0,r.zg)(o.y,K)}},1709:(Ft,Pe,c)=>{c.d(Pe,{zg:()=>K});var r=c(4850),o=c(5254),l=c(1177);function K(D,C,E=Number.POSITIVE_INFINITY){return"function"==typeof C?S=>S.pipe(K((w,z)=>(0,o.D)(D(w,z)).pipe((0,r.U)((M,k)=>C(w,M,z,k))),E)):("number"==typeof C&&(E=C),S=>S.lift(new m(D,E)))}class m{constructor(C,E=Number.POSITIVE_INFINITY){this.project=C,this.concurrent=E}call(C,E){return E.subscribe(new A(C,this.project,this.concurrent))}}class A extends l.Ds{constructor(C,E,S=Number.POSITIVE_INFINITY){super(C),this.project=E,this.concurrent=S,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(C){this.active0?this._next(C.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},7770:(Ft,Pe,c)=>{c.d(Pe,{QV:()=>l,ht:()=>m});var r=c(3489),o=c(9312);function l(b,D=0){return function(E){return E.lift(new K(b,D))}}class K{constructor(D,C=0){this.scheduler=D,this.delay=C}call(D,C){return C.subscribe(new m(D,this.scheduler,this.delay))}}class m extends r.L{constructor(D,C,E=0){super(D),this.scheduler=C,this.delay=E}static dispatch(D){const{notification:C,destination:E}=D;C.observe(E),this.unsubscribe()}scheduleMessage(D){this.destination.add(this.scheduler.schedule(m.dispatch,this.delay,new A(D,this.destination)))}_next(D){this.scheduleMessage(o.P.createNext(D))}_error(D){this.scheduleMessage(o.P.createError(D)),this.unsubscribe()}_complete(){this.scheduleMessage(o.P.createComplete()),this.unsubscribe()}}class A{constructor(D,C){this.notification=D,this.destination=C}}},4327:(Ft,Pe,c)=>{c.d(Pe,{x:()=>o});var r=c(3489);function o(){return function(A){return A.lift(new l(A))}}class l{constructor(A){this.connectable=A}call(A,b){const{connectable:D}=this;D._refCount++;const C=new K(A,D),E=b.subscribe(C);return C.closed||(C.connection=D.connect()),E}}class K extends r.L{constructor(A,b){super(A),this.connectable=b}_unsubscribe(){const{connectable:A}=this;if(!A)return void(this.connection=null);this.connectable=null;const b=A._refCount;if(b<=0)return void(this.connection=null);if(A._refCount=b-1,b>1)return void(this.connection=null);const{connection:D}=this,C=A._connection;this.connection=null,C&&(!D||C===D)&&C.unsubscribe()}}},2474:(Ft,Pe,c)=>{c.d(Pe,{B:()=>b});var r=c(1762);class l{constructor(C,E){this.subjectFactory=C,this.selector=E}call(C,E){const{selector:S}=this,w=this.subjectFactory(),z=S(w).subscribe(C);return z.add(E.subscribe(w)),z}}var K=c(4327),m=c(8929);function A(){return new m.xQ}function b(){return D=>(0,K.x)()(function o(D,C){return function(S){let w;if(w="function"==typeof D?D:function(){return D},"function"==typeof C)return S.lift(new l(w,C));const z=Object.create(S,r.N);return z.source=S,z.subjectFactory=w,z}}(A)(D))}},5154:(Ft,Pe,c)=>{c.d(Pe,{d:()=>o});var r=c(839);function o(K,m,A){let b;return b=K&&"object"==typeof K?K:{bufferSize:K,windowTime:m,refCount:!1,scheduler:A},D=>D.lift(function l({bufferSize:K=Number.POSITIVE_INFINITY,windowTime:m=Number.POSITIVE_INFINITY,refCount:A,scheduler:b}){let D,E,C=0,S=!1,w=!1;return function(M){let k;C++,!D||S?(S=!1,D=new r.t(K,m,b),k=D.subscribe(this),E=M.subscribe({next(N){D.next(N)},error(N){S=!0,D.error(N)},complete(){w=!0,E=void 0,D.complete()}}),w&&(E=void 0)):k=D.subscribe(this),this.add(()=>{C--,k.unsubscribe(),k=void 0,E&&!w&&A&&0===C&&(E.unsubscribe(),E=void 0,D=void 0)})}}(b))}},1307:(Ft,Pe,c)=>{c.d(Pe,{T:()=>o});var r=c(3489);function o(m){return A=>A.lift(new l(m))}class l{constructor(A){this.total=A}call(A,b){return b.subscribe(new K(A,this.total))}}class K extends r.L{constructor(A,b){super(A),this.total=b,this.count=0}_next(A){++this.count>this.total&&this.destination.next(A)}}},1059:(Ft,Pe,c)=>{c.d(Pe,{O:()=>l});var r=c(1221),o=c(2866);function l(...K){const m=K[K.length-1];return(0,o.K)(m)?(K.pop(),A=>(0,r.z)(K,A,m)):A=>(0,r.z)(K,A)}},7545:(Ft,Pe,c)=>{c.d(Pe,{w:()=>K});var r=c(4850),o=c(5254),l=c(1177);function K(b,D){return"function"==typeof D?C=>C.pipe(K((E,S)=>(0,o.D)(b(E,S)).pipe((0,r.U)((w,z)=>D(E,w,S,z))))):C=>C.lift(new m(b))}class m{constructor(D){this.project=D}call(D,C){return C.subscribe(new A(D,this.project))}}class A extends l.Ds{constructor(D,C){super(D),this.project=C,this.index=0}_next(D){let C;const E=this.index++;try{C=this.project(D,E)}catch(S){return void this.destination.error(S)}this._innerSub(C)}_innerSub(D){const C=this.innerSubscription;C&&C.unsubscribe();const E=new l.IY(this),S=this.destination;S.add(E),this.innerSubscription=(0,l.ft)(D,E),this.innerSubscription!==E&&S.add(this.innerSubscription)}_complete(){const{innerSubscription:D}=this;(!D||D.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(D){this.destination.next(D)}}},2986:(Ft,Pe,c)=>{c.d(Pe,{q:()=>K});var r=c(3489),o=c(4231),l=c(8896);function K(b){return D=>0===b?(0,l.c)():D.lift(new m(b))}class m{constructor(D){if(this.total=D,this.total<0)throw new o.W}call(D,C){return C.subscribe(new A(D,this.total))}}class A extends r.L{constructor(D,C){super(D),this.total=C,this.count=0}_next(D){const C=this.total,E=++this.count;E<=C&&(this.destination.next(D),E===C&&(this.destination.complete(),this.unsubscribe()))}}},7625:(Ft,Pe,c)=>{c.d(Pe,{R:()=>o});var r=c(1177);function o(m){return A=>A.lift(new l(m))}class l{constructor(A){this.notifier=A}call(A,b){const D=new K(A),C=(0,r.ft)(this.notifier,new r.IY(D));return C&&!D.seenValue?(D.add(C),b.subscribe(D)):D}}class K extends r.Ds{constructor(A){super(A),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2868:(Ft,Pe,c)=>{c.d(Pe,{b:()=>K});var r=c(3489);function o(){}var l=c(7043);function K(b,D,C){return function(S){return S.lift(new m(b,D,C))}}class m{constructor(D,C,E){this.nextOrObserver=D,this.error=C,this.complete=E}call(D,C){return C.subscribe(new A(D,this.nextOrObserver,this.error,this.complete))}}class A extends r.L{constructor(D,C,E,S){super(D),this._tapNext=o,this._tapError=o,this._tapComplete=o,this._tapError=E||o,this._tapComplete=S||o,(0,l.m)(C)?(this._context=this,this._tapNext=C):C&&(this._context=C,this._tapNext=C.next||o,this._tapError=C.error||o,this._tapComplete=C.complete||o)}_next(D){try{this._tapNext.call(this._context,D)}catch(C){return void this.destination.error(C)}this.destination.next(D)}_error(D){try{this._tapError.call(this._context,D)}catch(C){return void this.destination.error(C)}this.destination.error(D)}_complete(){try{this._tapComplete.call(this._context)}catch(D){return void this.destination.error(D)}return this.destination.complete()}}},4907:(Ft,Pe,c)=>{c.d(Pe,{T:()=>l});var r=c(4450),o=c(3489);function l(b=A){return D=>D.lift(new K(b))}class K{constructor(D){this.errorFactory=D}call(D,C){return C.subscribe(new m(D,this.errorFactory))}}class m extends o.L{constructor(D,C){super(D),this.errorFactory=C,this.hasValue=!1}_next(D){this.hasValue=!0,this.destination.next(D)}_complete(){if(this.hasValue)return this.destination.complete();{let D;try{D=this.errorFactory()}catch(C){D=C}this.destination.error(D)}}}function A(){return new r.K}},6454:(Ft,Pe,c)=>{c.d(Pe,{r:()=>l});var r=c(2916),o=c(2654);function l(K,m){return new r.y(A=>{const b=new o.w;let D=0;return b.add(m.schedule(function(){D!==K.length?(A.next(K[D++]),A.closed||b.add(this.schedule())):A.complete()})),b})}},6686:(Ft,Pe,c)=>{c.d(Pe,{o:()=>l});var r=c(2654);class o extends r.w{constructor(m,A){super()}schedule(m,A=0){return this}}class l extends o{constructor(m,A){super(m,A),this.scheduler=m,this.work=A,this.pending=!1}schedule(m,A=0){if(this.closed)return this;this.state=m;const b=this.id,D=this.scheduler;return null!=b&&(this.id=this.recycleAsyncId(D,b,A)),this.pending=!0,this.delay=A,this.id=this.id||this.requestAsyncId(D,this.id,A),this}requestAsyncId(m,A,b=0){return setInterval(m.flush.bind(m,this),b)}recycleAsyncId(m,A,b=0){if(null!==b&&this.delay===b&&!1===this.pending)return A;clearInterval(A)}execute(m,A){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const b=this._execute(m,A);if(b)return b;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(m,A){let D,b=!1;try{this.work(m)}catch(C){b=!0,D=!!C&&C||new Error(C)}if(b)return this.unsubscribe(),D}_unsubscribe(){const m=this.id,A=this.scheduler,b=A.actions,D=b.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==D&&b.splice(D,1),null!=m&&(this.id=this.recycleAsyncId(A,m,null)),this.delay=null}}},2268:(Ft,Pe,c)=>{c.d(Pe,{v:()=>o});let r=(()=>{class l{constructor(m,A=l.now){this.SchedulerAction=m,this.now=A}schedule(m,A=0,b){return new this.SchedulerAction(this,m).schedule(b,A)}}return l.now=()=>Date.now(),l})();class o extends r{constructor(K,m=r.now){super(K,()=>o.delegate&&o.delegate!==this?o.delegate.now():m()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(K,m=0,A){return o.delegate&&o.delegate!==this?o.delegate.schedule(K,m,A):super.schedule(K,m,A)}flush(K){const{actions:m}=this;if(this.active)return void m.push(K);let A;this.active=!0;do{if(A=K.execute(K.state,K.delay))break}while(K=m.shift());if(this.active=!1,A){for(;K=m.shift();)K.unsubscribe();throw A}}}},352:(Ft,Pe,c)=>{c.d(Pe,{Z:()=>m});var r=c(6686),l=c(2268);const m=new class K extends l.v{flush(D){this.active=!0,this.scheduled=void 0;const{actions:C}=this;let E,S=-1,w=C.length;D=D||C.shift();do{if(E=D.execute(D.state,D.delay))break}while(++S0?super.requestAsyncId(D,C,E):(D.actions.push(this),D.scheduled||(D.scheduled=requestAnimationFrame(()=>D.flush(null))))}recycleAsyncId(D,C,E=0){if(null!==E&&E>0||null===E&&this.delay>0)return super.recycleAsyncId(D,C,E);0===D.actions.length&&(cancelAnimationFrame(C),D.scheduled=void 0)}})},8139:(Ft,Pe,c)=>{c.d(Pe,{E:()=>S});let r=1;const o=Promise.resolve(),l={};function K(z){return z in l&&(delete l[z],!0)}const m={setImmediate(z){const M=r++;return l[M]=!0,o.then(()=>K(M)&&z()),M},clearImmediate(z){K(z)}};var b=c(6686),C=c(2268);const S=new class E extends C.v{flush(M){this.active=!0,this.scheduled=void 0;const{actions:k}=this;let N,ie=-1,ce=k.length;M=M||k.shift();do{if(N=M.execute(M.state,M.delay))break}while(++ie0?super.requestAsyncId(M,k,N):(M.actions.push(this),M.scheduled||(M.scheduled=m.setImmediate(M.flush.bind(M,null))))}recycleAsyncId(M,k,N=0){if(null!==N&&N>0||null===N&&this.delay>0)return super.recycleAsyncId(M,k,N);0===M.actions.length&&(m.clearImmediate(k),M.scheduled=void 0)}})},353:(Ft,Pe,c)=>{c.d(Pe,{P:()=>K});var r=c(6686);const K=new(c(2268).v)(r.o)},341:(Ft,Pe,c)=>{c.d(Pe,{c:()=>A,N:()=>m});var r=c(6686),l=c(2268);const m=new class K extends l.v{}(class o extends r.o{constructor(D,C){super(D,C),this.scheduler=D,this.work=C}schedule(D,C=0){return C>0?super.schedule(D,C):(this.delay=C,this.state=D,this.scheduler.flush(this),this)}execute(D,C){return C>0||this.closed?super.execute(D,C):this._execute(D,C)}requestAsyncId(D,C,E=0){return null!==E&&E>0||null===E&&this.delay>0?super.requestAsyncId(D,C,E):D.flush(this)}}),A=m},5430:(Ft,Pe,c)=>{c.d(Pe,{hZ:()=>o});const o=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Ft,Pe,c)=>{c.d(Pe,{L:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Ft,Pe,c)=>{c.d(Pe,{b:()=>r});const r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Ft,Pe,c)=>{c.d(Pe,{W:()=>o});const o=(()=>{function l(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return l.prototype=Object.create(Error.prototype),l})()},4450:(Ft,Pe,c)=>{c.d(Pe,{K:()=>o});const o=(()=>{function l(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return l.prototype=Object.create(Error.prototype),l})()},5279:(Ft,Pe,c)=>{c.d(Pe,{N:()=>o});const o=(()=>{function l(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return l.prototype=Object.create(Error.prototype),l})()},2782:(Ft,Pe,c)=>{function r(o){setTimeout(()=>{throw o},0)}c.d(Pe,{z:()=>r})},5379:(Ft,Pe,c)=>{function r(o){return o}c.d(Pe,{y:()=>r})},6688:(Ft,Pe,c)=>{c.d(Pe,{k:()=>r});const r=Array.isArray||(o=>o&&"number"==typeof o.length)},8515:(Ft,Pe,c)=>{c.d(Pe,{z:()=>r});const r=o=>o&&"number"==typeof o.length&&"function"!=typeof o},7043:(Ft,Pe,c)=>{function r(o){return"function"==typeof o}c.d(Pe,{m:()=>r})},4241:(Ft,Pe,c)=>{c.d(Pe,{k:()=>o});var r=c(6688);function o(l){return!(0,r.k)(l)&&l-parseFloat(l)+1>=0}},7830:(Ft,Pe,c)=>{function r(o){return null!==o&&"object"==typeof o}c.d(Pe,{K:()=>r})},4715:(Ft,Pe,c)=>{c.d(Pe,{b:()=>o});var r=c(2916);function o(l){return!!l&&(l instanceof r.y||"function"==typeof l.lift&&"function"==typeof l.subscribe)}},8955:(Ft,Pe,c)=>{function r(o){return!!o&&"function"!=typeof o.subscribe&&"function"==typeof o.then}c.d(Pe,{t:()=>r})},2866:(Ft,Pe,c)=>{function r(o){return o&&"function"==typeof o.schedule}c.d(Pe,{K:()=>r})},9249:(Ft,Pe,c)=>{c.d(Pe,{s:()=>S});var r=c(3650),o=c(2782),K=c(5430),A=c(3821),D=c(8515),C=c(8955),E=c(7830);const S=w=>{if(w&&"function"==typeof w[A.L])return(w=>z=>{const M=w[A.L]();if("function"!=typeof M.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return M.subscribe(z)})(w);if((0,D.z)(w))return(0,r.V)(w);if((0,C.t)(w))return(w=>z=>(w.then(M=>{z.closed||(z.next(M),z.complete())},M=>z.error(M)).then(null,o.z),z))(w);if(w&&"function"==typeof w[K.hZ])return(w=>z=>{const M=w[K.hZ]();for(;;){let k;try{k=M.next()}catch(N){return z.error(N),z}if(k.done){z.complete();break}if(z.next(k.value),z.closed)break}return"function"==typeof M.return&&z.add(()=>{M.return&&M.return()}),z})(w);{const M=`You provided ${(0,E.K)(w)?"an invalid object":`'${w}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(M)}}},3650:(Ft,Pe,c)=>{c.d(Pe,{V:()=>r});const r=o=>l=>{for(let K=0,m=o.length;K{c.d(Pe,{ZT:()=>o,pi:()=>l,_T:()=>K,gn:()=>m,mG:()=>D,Jh:()=>C,ev:()=>N});var r=function(U,J){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,se){Me.__proto__=se}||function(Me,se){for(var we in se)Object.prototype.hasOwnProperty.call(se,we)&&(Me[we]=se[we])})(U,J)};function o(U,J){if("function"!=typeof J&&null!==J)throw new TypeError("Class extends value "+String(J)+" is not a constructor or null");function Me(){this.constructor=U}r(U,J),U.prototype=null===J?Object.create(J):(Me.prototype=J.prototype,new Me)}var l=function(){return l=Object.assign||function(J){for(var Me,se=1,we=arguments.length;se=0;We--)(Ye=U[We])&&(ue=(we<3?Ye(ue):we>3?Ye(J,Me,ue):Ye(J,Me))||ue);return we>3&&ue&&Object.defineProperty(J,Me,ue),ue}function D(U,J,Me,se){return new(Me||(Me=Promise))(function(ue,Ye){function We(Ae){try{wt(se.next(Ae))}catch(mt){Ye(mt)}}function rt(Ae){try{wt(se.throw(Ae))}catch(mt){Ye(mt)}}function wt(Ae){Ae.done?ue(Ae.value):function we(ue){return ue instanceof Me?ue:new Me(function(Ye){Ye(ue)})}(Ae.value).then(We,rt)}wt((se=se.apply(U,J||[])).next())})}function C(U,J){var se,we,ue,Ye,Me={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return Ye={next:We(0),throw:We(1),return:We(2)},"function"==typeof Symbol&&(Ye[Symbol.iterator]=function(){return this}),Ye;function We(wt){return function(Ae){return function rt(wt){if(se)throw new TypeError("Generator is already executing.");for(;Me;)try{if(se=1,we&&(ue=2&wt[0]?we.return:wt[0]?we.throw||((ue=we.return)&&ue.call(we),0):we.next)&&!(ue=ue.call(we,wt[1])).done)return ue;switch(we=0,ue&&(wt=[2&wt[0],ue.value]),wt[0]){case 0:case 1:ue=wt;break;case 4:return Me.label++,{value:wt[1],done:!1};case 5:Me.label++,we=wt[1],wt=[0];continue;case 7:wt=Me.ops.pop(),Me.trys.pop();continue;default:if(!(ue=(ue=Me.trys).length>0&&ue[ue.length-1])&&(6===wt[0]||2===wt[0])){Me=0;continue}if(3===wt[0]&&(!ue||wt[1]>ue[0]&&wt[1]{c.d(Pe,{l3:()=>l,_j:()=>r,LC:()=>o,ZN:()=>ce,jt:()=>m,IO:()=>k,vP:()=>b,EY:()=>N,SB:()=>C,oB:()=>D,eR:()=>S,X$:()=>K,ZE:()=>ve,k1:()=>Le});class r{}class o{}const l="*";function K(Re,ae){return{type:7,name:Re,definitions:ae,options:{}}}function m(Re,ae=null){return{type:4,styles:ae,timings:Re}}function b(Re,ae=null){return{type:2,steps:Re,options:ae}}function D(Re){return{type:6,styles:Re,offset:null}}function C(Re,ae,Ue){return{type:0,name:Re,styles:ae,options:Ue}}function S(Re,ae,Ue=null){return{type:1,expr:Re,animation:ae,options:Ue}}function k(Re,ae,Ue=null){return{type:11,selector:Re,animation:ae,options:Ue}}function N(Re,ae){return{type:12,timings:Re,animation:ae}}function ie(Re){Promise.resolve(null).then(Re)}class ce{constructor(ae=0,Ue=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ae+Ue}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ae=>ae()),this._onDoneFns=[])}onStart(ae){this._onStartFns.push(ae)}onDone(ae){this._onDoneFns.push(ae)}onDestroy(ae){this._onDestroyFns.push(ae)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ie(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ae=>ae()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ae=>ae()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ae){this._position=this.totalTime?ae*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ae){const Ue="start"==ae?this._onStartFns:this._onDoneFns;Ue.forEach(He=>He()),Ue.length=0}}class ve{constructor(ae){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ae;let Ue=0,He=0,me=0;const fe=this.players.length;0==fe?ie(()=>this._onFinish()):this.players.forEach(U=>{U.onDone(()=>{++Ue==fe&&this._onFinish()}),U.onDestroy(()=>{++He==fe&&this._onDestroy()}),U.onStart(()=>{++me==fe&&this._onStart()})}),this.totalTime=this.players.reduce((U,J)=>Math.max(U,J.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ae=>ae()),this._onDoneFns=[])}init(){this.players.forEach(ae=>ae.init())}onStart(ae){this._onStartFns.push(ae)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ae=>ae()),this._onStartFns=[])}onDone(ae){this._onDoneFns.push(ae)}onDestroy(ae){this._onDestroyFns.push(ae)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ae=>ae.play())}pause(){this.players.forEach(ae=>ae.pause())}restart(){this.players.forEach(ae=>ae.restart())}finish(){this._onFinish(),this.players.forEach(ae=>ae.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ae=>ae.destroy()),this._onDestroyFns.forEach(ae=>ae()),this._onDestroyFns=[])}reset(){this.players.forEach(ae=>ae.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ae){const Ue=ae*this.totalTime;this.players.forEach(He=>{const me=He.totalTime?Math.min(1,Ue/He.totalTime):1;He.setPosition(me)})}getPosition(){const ae=this.players.reduce((Ue,He)=>null===Ue||He.totalTime>Ue.totalTime?He:Ue,null);return null!=ae?ae.getPosition():0}beforeDestroy(){this.players.forEach(ae=>{ae.beforeDestroy&&ae.beforeDestroy()})}triggerCallback(ae){const Ue="start"==ae?this._onStartFns:this._onDoneFns;Ue.forEach(He=>He()),Ue.length=0}}const Le="!"},5664:(Ft,Pe,c)=>{c.d(Pe,{rt:()=>un,kH:()=>nn,Em:()=>We,tE:()=>an,qV:()=>ot,X6:()=>Ke,yG:()=>B});var r=c(9808),o=c(5e3),l=c(8929),K=c(2654),m=c(591),A=c(1086),b=c(1159),D=c(2868),C=c(13),E=c(2198),S=c(4850),w=c(2986),z=c(1307),M=c(5778),k=c(7625),N=c(3191),ie=c(925),ce=c(7144);class We extends class ue{constructor(it){this._items=it,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new l.xQ,this._typeaheadSubscription=K.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Ge=>Ge.disabled,this._pressedLetters=[],this.tabOut=new l.xQ,this.change=new l.xQ,it instanceof o.n_E&&it.changes.subscribe(Ge=>{if(this._activeItem){const xe=Ge.toArray().indexOf(this._activeItem);xe>-1&&xe!==this._activeItemIndex&&(this._activeItemIndex=xe)}})}skipPredicate(it){return this._skipPredicateFn=it,this}withWrap(it=!0){return this._wrap=it,this}withVerticalOrientation(it=!0){return this._vertical=it,this}withHorizontalOrientation(it){return this._horizontal=it,this}withAllowedModifierKeys(it){return this._allowedModifierKeys=it,this}withTypeAhead(it=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)(Ge=>this._pressedLetters.push(Ge)),(0,C.b)(it),(0,E.h)(()=>this._pressedLetters.length>0),(0,S.U)(()=>this._pressedLetters.join(""))).subscribe(Ge=>{const St=this._getItemsArray();for(let xe=1;xe!it[xt]||this._allowedModifierKeys.indexOf(xt)>-1);switch(Ge){case b.Mf:return void this.tabOut.next();case b.JH:if(this._vertical&&xe){this.setNextItemActive();break}return;case b.LH:if(this._vertical&&xe){this.setPreviousItemActive();break}return;case b.SV:if(this._horizontal&&xe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case b.oh:if(this._horizontal&&xe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case b.Sd:if(this._homeAndEnd&&xe){this.setFirstItemActive();break}return;case b.uR:if(this._homeAndEnd&&xe){this.setLastItemActive();break}return;default:return void((xe||(0,b.Vb)(it,"shiftKey"))&&(it.key&&1===it.key.length?this._letterKeyStream.next(it.key.toLocaleUpperCase()):(Ge>=b.A&&Ge<=b.Z||Ge>=b.xE&&Ge<=b.aO)&&this._letterKeyStream.next(String.fromCharCode(Ge))))}this._pressedLetters=[],it.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(it){const Ge=this._getItemsArray(),St="number"==typeof it?it:Ge.indexOf(it),xe=Ge[St];this._activeItem=null==xe?null:xe,this._activeItemIndex=St}_setActiveItemByDelta(it){this._wrap?this._setActiveInWrapMode(it):this._setActiveInDefaultMode(it)}_setActiveInWrapMode(it){const Ge=this._getItemsArray();for(let St=1;St<=Ge.length;St++){const xe=(this._activeItemIndex+it*St+Ge.length)%Ge.length;if(!this._skipPredicateFn(Ge[xe]))return void this.setActiveItem(xe)}}_setActiveInDefaultMode(it){this._setActiveItemByIndex(this._activeItemIndex+it,it)}_setActiveItemByIndex(it,Ge){const St=this._getItemsArray();if(St[it]){for(;this._skipPredicateFn(St[it]);)if(!St[it+=Ge])return;this.setActiveItem(it)}}_getItemsArray(){return this._items instanceof o.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(it){return this._origin=it,this}setActiveItem(it){super.setActiveItem(it),this.activeItem&&this.activeItem.focus(this._origin)}}let wt=(()=>{class Dt{constructor(Ge){this._platform=Ge}isDisabled(Ge){return Ge.hasAttribute("disabled")}isVisible(Ge){return function mt(Dt){return!!(Dt.offsetWidth||Dt.offsetHeight||"function"==typeof Dt.getClientRects&&Dt.getClientRects().length)}(Ge)&&"visible"===getComputedStyle(Ge).visibility}isTabbable(Ge){if(!this._platform.isBrowser)return!1;const St=function Ae(Dt){try{return Dt.frameElement}catch(it){return null}}(function pt(Dt){return Dt.ownerDocument&&Dt.ownerDocument.defaultView||window}(Ge));if(St&&(-1===Lt(St)||!this.isVisible(St)))return!1;let xe=Ge.nodeName.toLowerCase(),xt=Lt(Ge);return Ge.hasAttribute("contenteditable")?-1!==xt:!("iframe"===xe||"object"===xe||this._platform.WEBKIT&&this._platform.IOS&&!function Ie(Dt){let it=Dt.nodeName.toLowerCase(),Ge="input"===it&&Dt.type;return"text"===Ge||"password"===Ge||"select"===it||"textarea"===it}(Ge))&&("audio"===xe?!!Ge.hasAttribute("controls")&&-1!==xt:"video"===xe?-1!==xt&&(null!==xt||this._platform.FIREFOX||Ge.hasAttribute("controls")):Ge.tabIndex>=0)}isFocusable(Ge,St){return function Pt(Dt){return!function Ct(Dt){return function Xe(Dt){return"input"==Dt.nodeName.toLowerCase()}(Dt)&&"hidden"==Dt.type}(Dt)&&(function kt(Dt){let it=Dt.nodeName.toLowerCase();return"input"===it||"select"===it||"button"===it||"textarea"===it}(Dt)||function It(Dt){return function lt(Dt){return"a"==Dt.nodeName.toLowerCase()}(Dt)&&Dt.hasAttribute("href")}(Dt)||Dt.hasAttribute("contenteditable")||ct(Dt))}(Ge)&&!this.isDisabled(Ge)&&((null==St?void 0:St.ignoreVisibility)||this.isVisible(Ge))}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(ie.t4))},Dt.\u0275prov=o.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function ct(Dt){if(!Dt.hasAttribute("tabindex")||void 0===Dt.tabIndex)return!1;let it=Dt.getAttribute("tabindex");return!(!it||isNaN(parseInt(it,10)))}function Lt(Dt){if(!ct(Dt))return null;const it=parseInt(Dt.getAttribute("tabindex")||"",10);return isNaN(it)?-1:it}class Et{constructor(it,Ge,St,xe,xt=!1){this._element=it,this._checker=Ge,this._ngZone=St,this._document=xe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,xt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(it){this._enabled=it,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(it,this._startAnchor),this._toggleAnchorTabIndex(it,this._endAnchor))}destroy(){const it=this._startAnchor,Ge=this._endAnchor;it&&(it.removeEventListener("focus",this.startAnchorListener),it.remove()),Ge&&(Ge.removeEventListener("focus",this.endAnchorListener),Ge.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(it){return new Promise(Ge=>{this._executeOnStable(()=>Ge(this.focusInitialElement(it)))})}focusFirstTabbableElementWhenReady(it){return new Promise(Ge=>{this._executeOnStable(()=>Ge(this.focusFirstTabbableElement(it)))})}focusLastTabbableElementWhenReady(it){return new Promise(Ge=>{this._executeOnStable(()=>Ge(this.focusLastTabbableElement(it)))})}_getRegionBoundary(it){const Ge=this._element.querySelectorAll(`[cdk-focus-region-${it}], [cdkFocusRegion${it}], [cdk-focus-${it}]`);return"start"==it?Ge.length?Ge[0]:this._getFirstTabbableElement(this._element):Ge.length?Ge[Ge.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(it){const Ge=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Ge){if(!this._checker.isFocusable(Ge)){const St=this._getFirstTabbableElement(Ge);return null==St||St.focus(it),!!St}return Ge.focus(it),!0}return this.focusFirstTabbableElement(it)}focusFirstTabbableElement(it){const Ge=this._getRegionBoundary("start");return Ge&&Ge.focus(it),!!Ge}focusLastTabbableElement(it){const Ge=this._getRegionBoundary("end");return Ge&&Ge.focus(it),!!Ge}hasAttached(){return this._hasAttached}_getFirstTabbableElement(it){if(this._checker.isFocusable(it)&&this._checker.isTabbable(it))return it;const Ge=it.children;for(let St=0;St=0;St--){const xe=Ge[St].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Ge[St]):null;if(xe)return xe}return null}_createAnchor(){const it=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,it),it.classList.add("cdk-visually-hidden"),it.classList.add("cdk-focus-trap-anchor"),it.setAttribute("aria-hidden","true"),it}_toggleAnchorTabIndex(it,Ge){it?Ge.setAttribute("tabindex","0"):Ge.removeAttribute("tabindex")}toggleAnchors(it){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(it,this._startAnchor),this._toggleAnchorTabIndex(it,this._endAnchor))}_executeOnStable(it){this._ngZone.isStable?it():this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(it)}}let ot=(()=>{class Dt{constructor(Ge,St,xe){this._checker=Ge,this._ngZone=St,this._document=xe}create(Ge,St=!1){return new Et(Ge,this._checker,this._ngZone,this._document,St)}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(wt),o.LFG(o.R0b),o.LFG(r.K0))},Dt.\u0275prov=o.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function Ke(Dt){return 0===Dt.offsetX&&0===Dt.offsetY}function B(Dt){const it=Dt.touches&&Dt.touches[0]||Dt.changedTouches&&Dt.changedTouches[0];return!(!it||-1!==it.identifier||null!=it.radiusX&&1!==it.radiusX||null!=it.radiusY&&1!==it.radiusY)}const G=new o.OlP("cdk-input-modality-detector-options"),Q={ignoreKeys:[b.zL,b.jx,b.b2,b.MW,b.JU]},Je=(0,ie.i$)({passive:!0,capture:!0});let vt=(()=>{class Dt{constructor(Ge,St,xe,xt){this._platform=Ge,this._mostRecentTarget=null,this._modality=new m.X(null),this._lastTouchMs=0,this._onKeydown=ge=>{var de,ut;(null===(ut=null===(de=this._options)||void 0===de?void 0:de.ignoreKeys)||void 0===ut?void 0:ut.some(I=>I===ge.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ie.sA)(ge))},this._onMousedown=ge=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ke(ge)?"keyboard":"mouse"),this._mostRecentTarget=(0,ie.sA)(ge))},this._onTouchstart=ge=>{B(ge)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ie.sA)(ge))},this._options=Object.assign(Object.assign({},Q),xt),this.modalityDetected=this._modality.pipe((0,z.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,M.x)()),Ge.isBrowser&&St.runOutsideAngular(()=>{xe.addEventListener("keydown",this._onKeydown,Je),xe.addEventListener("mousedown",this._onMousedown,Je),xe.addEventListener("touchstart",this._onTouchstart,Je)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Je),document.removeEventListener("mousedown",this._onMousedown,Je),document.removeEventListener("touchstart",this._onTouchstart,Je))}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(ie.t4),o.LFG(o.R0b),o.LFG(r.K0),o.LFG(G,8))},Dt.\u0275prov=o.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();const vn=new o.OlP("cdk-focus-monitor-default-options"),cn=(0,ie.i$)({passive:!0,capture:!0});let an=(()=>{class Dt{constructor(Ge,St,xe,xt,ge){this._ngZone=Ge,this._platform=St,this._inputModalityDetector=xe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new l.xQ,this._rootNodeFocusAndBlurListener=de=>{const ut=(0,ie.sA)(de),I="focus"===de.type?this._onFocus:this._onBlur;for(let Z=ut;Z;Z=Z.parentElement)I.call(this,de,Z)},this._document=xt,this._detectionMode=(null==ge?void 0:ge.detectionMode)||0}monitor(Ge,St=!1){const xe=(0,N.fI)(Ge);if(!this._platform.isBrowser||1!==xe.nodeType)return(0,A.of)(null);const xt=(0,ie.kV)(xe)||this._getDocument(),ge=this._elementInfo.get(xe);if(ge)return St&&(ge.checkChildren=!0),ge.subject;const de={checkChildren:St,subject:new l.xQ,rootNode:xt};return this._elementInfo.set(xe,de),this._registerGlobalListeners(de),de.subject}stopMonitoring(Ge){const St=(0,N.fI)(Ge),xe=this._elementInfo.get(St);xe&&(xe.subject.complete(),this._setClasses(St),this._elementInfo.delete(St),this._removeGlobalListeners(xe))}focusVia(Ge,St,xe){const xt=(0,N.fI)(Ge);xt===this._getDocument().activeElement?this._getClosestElementsInfo(xt).forEach(([de,ut])=>this._originChanged(de,St,ut)):(this._setOrigin(St),"function"==typeof xt.focus&&xt.focus(xe))}ngOnDestroy(){this._elementInfo.forEach((Ge,St)=>this.stopMonitoring(St))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Ge){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ge)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(Ge){return 1===this._detectionMode||!!(null==Ge?void 0:Ge.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(Ge,St){Ge.classList.toggle("cdk-focused",!!St),Ge.classList.toggle("cdk-touch-focused","touch"===St),Ge.classList.toggle("cdk-keyboard-focused","keyboard"===St),Ge.classList.toggle("cdk-mouse-focused","mouse"===St),Ge.classList.toggle("cdk-program-focused","program"===St)}_setOrigin(Ge,St=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Ge,this._originFromTouchInteraction="touch"===Ge&&St,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Ge,St){const xe=this._elementInfo.get(St),xt=(0,ie.sA)(Ge);!xe||!xe.checkChildren&&St!==xt||this._originChanged(St,this._getFocusOrigin(xt),xe)}_onBlur(Ge,St){const xe=this._elementInfo.get(St);!xe||xe.checkChildren&&Ge.relatedTarget instanceof Node&&St.contains(Ge.relatedTarget)||(this._setClasses(St),this._emitOrigin(xe.subject,null))}_emitOrigin(Ge,St){this._ngZone.run(()=>Ge.next(St))}_registerGlobalListeners(Ge){if(!this._platform.isBrowser)return;const St=Ge.rootNode,xe=this._rootNodeFocusListenerCount.get(St)||0;xe||this._ngZone.runOutsideAngular(()=>{St.addEventListener("focus",this._rootNodeFocusAndBlurListener,cn),St.addEventListener("blur",this._rootNodeFocusAndBlurListener,cn)}),this._rootNodeFocusListenerCount.set(St,xe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,k.R)(this._stopInputModalityDetector)).subscribe(xt=>{this._setOrigin(xt,!0)}))}_removeGlobalListeners(Ge){const St=Ge.rootNode;if(this._rootNodeFocusListenerCount.has(St)){const xe=this._rootNodeFocusListenerCount.get(St);xe>1?this._rootNodeFocusListenerCount.set(St,xe-1):(St.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cn),St.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cn),this._rootNodeFocusListenerCount.delete(St))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Ge,St,xe){this._setClasses(Ge,St),this._emitOrigin(xe.subject,St),this._lastFocusOrigin=St}_getClosestElementsInfo(Ge){const St=[];return this._elementInfo.forEach((xe,xt)=>{(xt===Ge||xe.checkChildren&&xt.contains(Ge))&&St.push([xt,xe])}),St}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(o.R0b),o.LFG(ie.t4),o.LFG(vt),o.LFG(r.K0,8),o.LFG(vn,8))},Dt.\u0275prov=o.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})(),nn=(()=>{class Dt{constructor(Ge,St){this._elementRef=Ge,this._focusMonitor=St,this.cdkFocusChange=new o.vpe}ngAfterViewInit(){const Ge=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Ge,1===Ge.nodeType&&Ge.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(St=>this.cdkFocusChange.emit(St))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.Y36(o.SBq),o.Y36(an))},Dt.\u0275dir=o.lG2({type:Dt,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Dt})();const Gn="cdk-high-contrast-black-on-white",xn="cdk-high-contrast-white-on-black",yn="cdk-high-contrast-active";let _n=(()=>{class Dt{constructor(Ge,St){this._platform=Ge,this._document=St}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Ge=this._document.createElement("div");Ge.style.backgroundColor="rgb(1,2,3)",Ge.style.position="absolute",this._document.body.appendChild(Ge);const St=this._document.defaultView||window,xe=St&&St.getComputedStyle?St.getComputedStyle(Ge):null,xt=(xe&&xe.backgroundColor||"").replace(/ /g,"");switch(Ge.remove(),xt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Ge=this._document.body.classList;Ge.remove(yn),Ge.remove(Gn),Ge.remove(xn),this._hasCheckedHighContrastMode=!0;const St=this.getHighContrastMode();1===St?(Ge.add(yn),Ge.add(Gn)):2===St&&(Ge.add(yn),Ge.add(xn))}}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(ie.t4),o.LFG(r.K0))},Dt.\u0275prov=o.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})(),un=(()=>{class Dt{constructor(Ge){Ge._applyBodyHighContrastModeCssClasses()}}return Dt.\u0275fac=function(Ge){return new(Ge||Dt)(o.LFG(_n))},Dt.\u0275mod=o.oAB({type:Dt}),Dt.\u0275inj=o.cJS({imports:[[ie.ud,ce.Q8]]}),Dt})()},226:(Ft,Pe,c)=>{c.d(Pe,{vT:()=>C,Is:()=>b});var r=c(5e3),o=c(9808);const l=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function K(){return(0,r.f3M)(o.K0)}}),m=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let b=(()=>{class E{constructor(w){if(this.value="ltr",this.change=new r.vpe,w){const M=w.documentElement?w.documentElement.dir:null;this.value=function A(E){const S=(null==E?void 0:E.toLowerCase())||"";return"auto"===S&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?m.test(navigator.language)?"rtl":"ltr":"rtl"===S?"rtl":"ltr"}((w.body?w.body.dir:null)||M||"ltr")}}ngOnDestroy(){this.change.complete()}}return E.\u0275fac=function(w){return new(w||E)(r.LFG(l,8))},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})(),C=(()=>{class E{}return E.\u0275fac=function(w){return new(w||E)},E.\u0275mod=r.oAB({type:E}),E.\u0275inj=r.cJS({}),E})()},9287:(Ft,Pe,c)=>{c.d(Pe,{TU:()=>K,Iq:()=>b});var r=c(9808),o=c(5e3);class l{constructor(C,E){this._document=E;const S=this._textarea=this._document.createElement("textarea"),w=S.style;w.position="fixed",w.top=w.opacity="0",w.left="-999em",S.setAttribute("aria-hidden","true"),S.value=C,this._document.body.appendChild(S)}copy(){const C=this._textarea;let E=!1;try{if(C){const S=this._document.activeElement;C.select(),C.setSelectionRange(0,C.value.length),E=this._document.execCommand("copy"),S&&S.focus()}}catch(S){}return E}destroy(){const C=this._textarea;C&&(C.remove(),this._textarea=void 0)}}let K=(()=>{class D{constructor(E){this._document=E}copy(E){const S=this.beginCopy(E),w=S.copy();return S.destroy(),w}beginCopy(E){return new l(E,this._document)}}return D.\u0275fac=function(E){return new(E||D)(o.LFG(r.K0))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),b=(()=>{class D{}return D.\u0275fac=function(E){return new(E||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({}),D})()},3191:(Ft,Pe,c)=>{c.d(Pe,{t6:()=>K,Eq:()=>m,Ig:()=>o,HM:()=>A,fI:()=>b,su:()=>l});var r=c(5e3);function o(C){return null!=C&&"false"!=`${C}`}function l(C,E=0){return K(C)?Number(C):E}function K(C){return!isNaN(parseFloat(C))&&!isNaN(Number(C))}function m(C){return Array.isArray(C)?C:[C]}function A(C){return null==C?"":"string"==typeof C?C:`${C}px`}function b(C){return C instanceof r.SBq?C.nativeElement:C}},1159:(Ft,Pe,c)=>{c.d(Pe,{A:()=>kt,zL:()=>D,ZH:()=>o,jx:()=>b,JH:()=>Le,uR:()=>k,K5:()=>m,hY:()=>S,Sd:()=>N,oh:()=>ie,b2:()=>ke,MW:()=>je,aO:()=>We,SV:()=>ve,JU:()=>A,L_:()=>w,Mf:()=>l,LH:()=>ce,Z:()=>Tt,xE:()=>me,Vb:()=>le});const o=8,l=9,m=13,A=16,b=17,D=18,S=27,w=32,k=35,N=36,ie=37,ce=38,ve=39,Le=40,me=48,We=57,kt=65,Tt=90,je=91,ke=224;function le(tt,...Ht){return Ht.length?Ht.some(Xt=>tt[Xt]):tt.altKey||tt.shiftKey||tt.ctrlKey||tt.metaKey}},5113:(Ft,Pe,c)=>{c.d(Pe,{xu:()=>l,vx:()=>A});var r=c(5e3),o=c(925);let l=(()=>{class w{}return w.\u0275fac=function(M){return new(M||w)},w.\u0275mod=r.oAB({type:w}),w.\u0275inj=r.cJS({}),w})();const K=new Set;let m,A=(()=>{class w{constructor(M){this._platform=M,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):D}matchMedia(M){return(this._platform.WEBKIT||this._platform.BLINK)&&function b(w){if(!K.has(w))try{m||(m=document.createElement("style"),m.setAttribute("type","text/css"),document.head.appendChild(m)),m.sheet&&(m.sheet.insertRule(`@media ${w} {body{ }}`,0),K.add(w))}catch(z){console.error(z)}}(M),this._matchMedia(M)}}return w.\u0275fac=function(M){return new(M||w)(r.LFG(o.t4))},w.\u0275prov=r.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();function D(w){return{matches:"all"===w||""===w,media:w,addListener:()=>{},removeListener:()=>{}}}},7144:(Ft,Pe,c)=>{c.d(Pe,{Q8:()=>m});var r=c(5e3);let o=(()=>{class A{create(D){return"undefined"==typeof MutationObserver?null:new MutationObserver(D)}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=r.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),m=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275mod=r.oAB({type:A}),A.\u0275inj=r.cJS({providers:[o]}),A})()},2845:(Ft,Pe,c)=>{c.d(Pe,{pI:()=>Ne,xu:()=>en,tR:()=>J,aV:()=>pt,X_:()=>U,U8:()=>yt,Iu:()=>Ye});var r=c(2321),o=c(9808),l=c(5e3),K=c(3191),m=c(925),A=c(226),b=c(7429),D=c(8929),C=c(2654),E=c(6787),S=c(3489);class z{constructor(B,G){this.predicate=B,this.inclusive=G}call(B,G){return G.subscribe(new M(B,this.predicate,this.inclusive))}}class M extends S.L{constructor(B,G,Q){super(B),this.predicate=G,this.inclusive=Q,this.index=0}_next(B){const G=this.destination;let Q;try{Q=this.predicate(B,this.index++)}catch(Fe){return void G.error(Fe)}this.nextOrComplete(B,Q)}nextOrComplete(B,G){const Q=this.destination;Boolean(G)?Q.next(B):(this.inclusive&&Q.next(B),Q.complete())}}var k=c(2986),N=c(7625),ie=c(1159);const ce=(0,m.Mq)();class ve{constructor(B,G){this._viewportRuler=B,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=G}attach(){}enable(){if(this._canBeEnabled()){const B=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=B.style.left||"",this._previousHTMLStyles.top=B.style.top||"",B.style.left=(0,K.HM)(-this._previousScrollPosition.left),B.style.top=(0,K.HM)(-this._previousScrollPosition.top),B.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const B=this._document.documentElement,Q=B.style,Fe=this._document.body.style,Je=Q.scrollBehavior||"",vt=Fe.scrollBehavior||"";this._isEnabled=!1,Q.left=this._previousHTMLStyles.left,Q.top=this._previousHTMLStyles.top,B.classList.remove("cdk-global-scrollblock"),ce&&(Q.scrollBehavior=Fe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ce&&(Q.scrollBehavior=Je,Fe.scrollBehavior=vt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const G=this._document.body,Q=this._viewportRuler.getViewportSize();return G.scrollHeight>Q.height||G.scrollWidth>Q.width}}class Re{constructor(B,G,Q,Fe){this._scrollDispatcher=B,this._ngZone=G,this._viewportRuler=Q,this._config=Fe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(B){this._overlayRef=B}enable(){if(this._scrollSubscription)return;const B=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=B.subscribe(()=>{const G=this._viewportRuler.getViewportScrollPosition().top;Math.abs(G-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=B.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ae{enable(){}disable(){}attach(){}}function Ue(Ke,B){return B.some(G=>Ke.bottomG.bottom||Ke.rightG.right)}function He(Ke,B){return B.some(G=>Ke.topG.bottom||Ke.leftG.right)}class me{constructor(B,G,Q,Fe){this._scrollDispatcher=B,this._viewportRuler=G,this._ngZone=Q,this._config=Fe,this._scrollSubscription=null}attach(B){this._overlayRef=B}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const G=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Q,height:Fe}=this._viewportRuler.getViewportSize();Ue(G,[{width:Q,height:Fe,bottom:Fe,right:Q,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let fe=(()=>{class Ke{constructor(G,Q,Fe,Je){this._scrollDispatcher=G,this._viewportRuler=Q,this._ngZone=Fe,this.noop=()=>new ae,this.close=vt=>new Re(this._scrollDispatcher,this._ngZone,this._viewportRuler,vt),this.block=()=>new ve(this._viewportRuler,this._document),this.reposition=vt=>new me(this._scrollDispatcher,this._viewportRuler,this._ngZone,vt),this._document=Je}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(r.mF),l.LFG(r.rL),l.LFG(l.R0b),l.LFG(o.K0))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})();class U{constructor(B){if(this.scrollStrategy=new ae,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,B){const G=Object.keys(B);for(const Q of G)void 0!==B[Q]&&(this[Q]=B[Q])}}}class J{constructor(B,G,Q,Fe,Je){this.offsetX=Q,this.offsetY=Fe,this.panelClass=Je,this.originX=B.originX,this.originY=B.originY,this.overlayX=G.overlayX,this.overlayY=G.overlayY}}class se{constructor(B,G){this.connectionPair=B,this.scrollableViewProperties=G}}class Ye{constructor(B,G,Q,Fe,Je,vt,Tt,je,zt){this._portalOutlet=B,this._host=G,this._pane=Q,this._config=Fe,this._ngZone=Je,this._keyboardDispatcher=vt,this._document=Tt,this._location=je,this._outsideClickDispatcher=zt,this._backdropElement=null,this._backdropClick=new D.xQ,this._attachments=new D.xQ,this._detachments=new D.xQ,this._locationChanges=C.w.EMPTY,this._backdropClickHandler=jt=>this._backdropClick.next(jt),this._keydownEvents=new D.xQ,this._outsidePointerEvents=new D.xQ,Fe.scrollStrategy&&(this._scrollStrategy=Fe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Fe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(B){let G=this._portalOutlet.attach(B);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),G}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const B=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),B}dispose(){var B;const G=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(B=this._host)||void 0===B||B.remove(),this._previousHostParent=this._pane=this._host=null,G&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(B){B!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=B,this.hasAttached()&&(B.attach(this),this.updatePosition()))}updateSize(B){this._config=Object.assign(Object.assign({},this._config),B),this._updateElementSize()}setDirection(B){this._config=Object.assign(Object.assign({},this._config),{direction:B}),this._updateElementDirection()}addPanelClass(B){this._pane&&this._toggleClasses(this._pane,B,!0)}removePanelClass(B){this._pane&&this._toggleClasses(this._pane,B,!1)}getDirection(){const B=this._config.direction;return B?"string"==typeof B?B:B.value:"ltr"}updateScrollStrategy(B){B!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=B,this.hasAttached()&&(B.attach(this),B.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const B=this._pane.style;B.width=(0,K.HM)(this._config.width),B.height=(0,K.HM)(this._config.height),B.minWidth=(0,K.HM)(this._config.minWidth),B.minHeight=(0,K.HM)(this._config.minHeight),B.maxWidth=(0,K.HM)(this._config.maxWidth),B.maxHeight=(0,K.HM)(this._config.maxHeight)}_togglePointerEvents(B){this._pane.style.pointerEvents=B?"":"none"}_attachBackdrop(){const B="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(B)})}):this._backdropElement.classList.add(B)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const B=this._backdropElement;if(!B)return;let G;const Q=()=>{B&&(B.removeEventListener("click",this._backdropClickHandler),B.removeEventListener("transitionend",Q),this._disposeBackdrop(B)),this._config.backdropClass&&this._toggleClasses(B,this._config.backdropClass,!1),clearTimeout(G)};B.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{B.addEventListener("transitionend",Q)}),B.style.pointerEvents="none",G=this._ngZone.runOutsideAngular(()=>setTimeout(Q,500))}_toggleClasses(B,G,Q){const Fe=(0,K.Eq)(G||[]).filter(Je=>!!Je);Fe.length&&(Q?B.classList.add(...Fe):B.classList.remove(...Fe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const B=this._ngZone.onStable.pipe((0,N.R)((0,E.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),B.unsubscribe())})})}_disposeScrollStrategy(){const B=this._scrollStrategy;B&&(B.disable(),B.detach&&B.detach())}_disposeBackdrop(B){B&&(B.remove(),this._backdropElement===B&&(this._backdropElement=null))}}let We=(()=>{class Ke{constructor(G,Q){this._platform=Q,this._document=G}ngOnDestroy(){var G;null===(G=this._containerElement)||void 0===G||G.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const G="cdk-overlay-container";if(this._platform.isBrowser||(0,m.Oy)()){const Fe=this._document.querySelectorAll(`.${G}[platform="server"], .${G}[platform="test"]`);for(let Je=0;Je{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const B=this._originRect,G=this._overlayRect,Q=this._viewportRect,Fe=[];let Je;for(let vt of this._preferredPositions){let Tt=this._getOriginPoint(B,vt),je=this._getOverlayPoint(Tt,G,vt),zt=this._getOverlayFit(je,G,Q,vt);if(zt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(vt,Tt);this._canFitWithFlexibleDimensions(zt,je,Q)?Fe.push({position:vt,origin:Tt,overlayRect:G,boundingBoxRect:this._calculateBoundingBoxRect(Tt,vt)}):(!Je||Je.overlayFit.visibleAreaTt&&(Tt=zt,vt=je)}return this._isPushed=!1,void this._applyPosition(vt.position,vt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Je.position,Je.originPoint);this._applyPosition(Je.position,Je.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(rt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const B=this._lastPosition||this._preferredPositions[0],G=this._getOriginPoint(this._originRect,B);this._applyPosition(B,G)}}withScrollableContainers(B){return this._scrollables=B,this}withPositions(B){return this._preferredPositions=B,-1===B.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(B){return this._viewportMargin=B,this}withFlexibleDimensions(B=!0){return this._hasFlexibleDimensions=B,this}withGrowAfterOpen(B=!0){return this._growAfterOpen=B,this}withPush(B=!0){return this._canPush=B,this}withLockedPosition(B=!0){return this._positionLocked=B,this}setOrigin(B){return this._origin=B,this}withDefaultOffsetX(B){return this._offsetX=B,this}withDefaultOffsetY(B){return this._offsetY=B,this}withTransformOriginOn(B){return this._transformOriginSelector=B,this}_getOriginPoint(B,G){let Q,Fe;if("center"==G.originX)Q=B.left+B.width/2;else{const Je=this._isRtl()?B.right:B.left,vt=this._isRtl()?B.left:B.right;Q="start"==G.originX?Je:vt}return Fe="center"==G.originY?B.top+B.height/2:"top"==G.originY?B.top:B.bottom,{x:Q,y:Fe}}_getOverlayPoint(B,G,Q){let Fe,Je;return Fe="center"==Q.overlayX?-G.width/2:"start"===Q.overlayX?this._isRtl()?-G.width:0:this._isRtl()?0:-G.width,Je="center"==Q.overlayY?-G.height/2:"top"==Q.overlayY?0:-G.height,{x:B.x+Fe,y:B.y+Je}}_getOverlayFit(B,G,Q,Fe){const Je=Ct(G);let{x:vt,y:Tt}=B,je=this._getOffset(Fe,"x"),zt=this._getOffset(Fe,"y");je&&(vt+=je),zt&&(Tt+=zt);let vn=0-Tt,cn=Tt+Je.height-Q.height,an=this._subtractOverflows(Je.width,0-vt,vt+Je.width-Q.width),nn=this._subtractOverflows(Je.height,vn,cn),Gn=an*nn;return{visibleArea:Gn,isCompletelyWithinViewport:Je.width*Je.height===Gn,fitsInViewportVertically:nn===Je.height,fitsInViewportHorizontally:an==Je.width}}_canFitWithFlexibleDimensions(B,G,Q){if(this._hasFlexibleDimensions){const Fe=Q.bottom-G.y,Je=Q.right-G.x,vt=kt(this._overlayRef.getConfig().minHeight),Tt=kt(this._overlayRef.getConfig().minWidth),zt=B.fitsInViewportHorizontally||null!=Tt&&Tt<=Je;return(B.fitsInViewportVertically||null!=vt&&vt<=Fe)&&zt}return!1}_pushOverlayOnScreen(B,G,Q){if(this._previousPushAmount&&this._positionLocked)return{x:B.x+this._previousPushAmount.x,y:B.y+this._previousPushAmount.y};const Fe=Ct(G),Je=this._viewportRect,vt=Math.max(B.x+Fe.width-Je.width,0),Tt=Math.max(B.y+Fe.height-Je.height,0),je=Math.max(Je.top-Q.top-B.y,0),zt=Math.max(Je.left-Q.left-B.x,0);let jt=0,Bt=0;return jt=Fe.width<=Je.width?zt||-vt:B.xan&&!this._isInitialRender&&!this._growAfterOpen&&(vt=B.y-an/2)}if("end"===G.overlayX&&!Fe||"start"===G.overlayX&&Fe)vn=Q.width-B.x+this._viewportMargin,jt=B.x-this._viewportMargin;else if("start"===G.overlayX&&!Fe||"end"===G.overlayX&&Fe)Bt=B.x,jt=Q.right-B.x;else{const cn=Math.min(Q.right-B.x+Q.left,B.x),an=this._lastBoundingBoxSize.width;jt=2*cn,Bt=B.x-cn,jt>an&&!this._isInitialRender&&!this._growAfterOpen&&(Bt=B.x-an/2)}return{top:vt,left:Bt,bottom:Tt,right:vn,width:jt,height:Je}}_setBoundingBoxStyles(B,G){const Q=this._calculateBoundingBoxRect(B,G);!this._isInitialRender&&!this._growAfterOpen&&(Q.height=Math.min(Q.height,this._lastBoundingBoxSize.height),Q.width=Math.min(Q.width,this._lastBoundingBoxSize.width));const Fe={};if(this._hasExactPosition())Fe.top=Fe.left="0",Fe.bottom=Fe.right=Fe.maxHeight=Fe.maxWidth="",Fe.width=Fe.height="100%";else{const Je=this._overlayRef.getConfig().maxHeight,vt=this._overlayRef.getConfig().maxWidth;Fe.height=(0,K.HM)(Q.height),Fe.top=(0,K.HM)(Q.top),Fe.bottom=(0,K.HM)(Q.bottom),Fe.width=(0,K.HM)(Q.width),Fe.left=(0,K.HM)(Q.left),Fe.right=(0,K.HM)(Q.right),Fe.alignItems="center"===G.overlayX?"center":"end"===G.overlayX?"flex-end":"flex-start",Fe.justifyContent="center"===G.overlayY?"center":"bottom"===G.overlayY?"flex-end":"flex-start",Je&&(Fe.maxHeight=(0,K.HM)(Je)),vt&&(Fe.maxWidth=(0,K.HM)(vt))}this._lastBoundingBoxSize=Q,mt(this._boundingBox.style,Fe)}_resetBoundingBoxStyles(){mt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(B,G){const Q={},Fe=this._hasExactPosition(),Je=this._hasFlexibleDimensions,vt=this._overlayRef.getConfig();if(Fe){const jt=this._viewportRuler.getViewportScrollPosition();mt(Q,this._getExactOverlayY(G,B,jt)),mt(Q,this._getExactOverlayX(G,B,jt))}else Q.position="static";let Tt="",je=this._getOffset(G,"x"),zt=this._getOffset(G,"y");je&&(Tt+=`translateX(${je}px) `),zt&&(Tt+=`translateY(${zt}px)`),Q.transform=Tt.trim(),vt.maxHeight&&(Fe?Q.maxHeight=(0,K.HM)(vt.maxHeight):Je&&(Q.maxHeight="")),vt.maxWidth&&(Fe?Q.maxWidth=(0,K.HM)(vt.maxWidth):Je&&(Q.maxWidth="")),mt(this._pane.style,Q)}_getExactOverlayY(B,G,Q){let Fe={top:"",bottom:""},Je=this._getOverlayPoint(G,this._overlayRect,B);this._isPushed&&(Je=this._pushOverlayOnScreen(Je,this._overlayRect,Q));let vt=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return Je.y-=vt,"bottom"===B.overlayY?Fe.bottom=this._document.documentElement.clientHeight-(Je.y+this._overlayRect.height)+"px":Fe.top=(0,K.HM)(Je.y),Fe}_getExactOverlayX(B,G,Q){let vt,Fe={left:"",right:""},Je=this._getOverlayPoint(G,this._overlayRect,B);return this._isPushed&&(Je=this._pushOverlayOnScreen(Je,this._overlayRect,Q)),vt=this._isRtl()?"end"===B.overlayX?"left":"right":"end"===B.overlayX?"right":"left","right"===vt?Fe.right=this._document.documentElement.clientWidth-(Je.x+this._overlayRect.width)+"px":Fe.left=(0,K.HM)(Je.x),Fe}_getScrollVisibility(){const B=this._getOriginRect(),G=this._pane.getBoundingClientRect(),Q=this._scrollables.map(Fe=>Fe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:He(B,Q),isOriginOutsideView:Ue(B,Q),isOverlayClipped:He(G,Q),isOverlayOutsideView:Ue(G,Q)}}_subtractOverflows(B,...G){return G.reduce((Q,Fe)=>Q-Math.max(Fe,0),B)}_getNarrowedViewportRect(){const B=this._document.documentElement.clientWidth,G=this._document.documentElement.clientHeight,Q=this._viewportRuler.getViewportScrollPosition();return{top:Q.top+this._viewportMargin,left:Q.left+this._viewportMargin,right:Q.left+B-this._viewportMargin,bottom:Q.top+G-this._viewportMargin,width:B-2*this._viewportMargin,height:G-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(B,G){return"x"===G?null==B.offsetX?this._offsetX:B.offsetX:null==B.offsetY?this._offsetY:B.offsetY}_validatePositions(){}_addPanelClasses(B){this._pane&&(0,K.Eq)(B).forEach(G=>{""!==G&&-1===this._appliedPanelClasses.indexOf(G)&&(this._appliedPanelClasses.push(G),this._pane.classList.add(G))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(B=>{this._pane.classList.remove(B)}),this._appliedPanelClasses=[])}_getOriginRect(){const B=this._origin;if(B instanceof l.SBq)return B.nativeElement.getBoundingClientRect();if(B instanceof Element)return B.getBoundingClientRect();const G=B.width||0,Q=B.height||0;return{top:B.y,bottom:B.y+Q,left:B.x,right:B.x+G,height:Q,width:G}}}function mt(Ke,B){for(let G in B)B.hasOwnProperty(G)&&(Ke[G]=B[G]);return Ke}function kt(Ke){if("number"!=typeof Ke&&null!=Ke){const[B,G]=Ke.split(wt);return G&&"px"!==G?null:parseFloat(B)}return Ke||null}function Ct(Ke){return{top:Math.floor(Ke.top),right:Math.floor(Ke.right),bottom:Math.floor(Ke.bottom),left:Math.floor(Ke.left),width:Math.floor(Ke.width),height:Math.floor(Ke.height)}}const It="cdk-global-overlay-wrapper";class Xe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(B){const G=B.getConfig();this._overlayRef=B,this._width&&!G.width&&B.updateSize({width:this._width}),this._height&&!G.height&&B.updateSize({height:this._height}),B.hostElement.classList.add(It),this._isDisposed=!1}top(B=""){return this._bottomOffset="",this._topOffset=B,this._alignItems="flex-start",this}left(B=""){return this._rightOffset="",this._leftOffset=B,this._justifyContent="flex-start",this}bottom(B=""){return this._topOffset="",this._bottomOffset=B,this._alignItems="flex-end",this}right(B=""){return this._leftOffset="",this._rightOffset=B,this._justifyContent="flex-end",this}width(B=""){return this._overlayRef?this._overlayRef.updateSize({width:B}):this._width=B,this}height(B=""){return this._overlayRef?this._overlayRef.updateSize({height:B}):this._height=B,this}centerHorizontally(B=""){return this.left(B),this._justifyContent="center",this}centerVertically(B=""){return this.top(B),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const B=this._overlayRef.overlayElement.style,G=this._overlayRef.hostElement.style,Q=this._overlayRef.getConfig(),{width:Fe,height:Je,maxWidth:vt,maxHeight:Tt}=Q,je=!("100%"!==Fe&&"100vw"!==Fe||vt&&"100%"!==vt&&"100vw"!==vt),zt=!("100%"!==Je&&"100vh"!==Je||Tt&&"100%"!==Tt&&"100vh"!==Tt);B.position=this._cssPosition,B.marginLeft=je?"0":this._leftOffset,B.marginTop=zt?"0":this._topOffset,B.marginBottom=this._bottomOffset,B.marginRight=this._rightOffset,je?G.justifyContent="flex-start":"center"===this._justifyContent?G.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?G.justifyContent="flex-end":"flex-end"===this._justifyContent&&(G.justifyContent="flex-start"):G.justifyContent=this._justifyContent,G.alignItems=zt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const B=this._overlayRef.overlayElement.style,G=this._overlayRef.hostElement,Q=G.style;G.classList.remove(It),Q.justifyContent=Q.alignItems=B.marginTop=B.marginBottom=B.marginLeft=B.marginRight=B.position="",this._overlayRef=null,this._isDisposed=!0}}let lt=(()=>{class Ke{constructor(G,Q,Fe,Je){this._viewportRuler=G,this._document=Q,this._platform=Fe,this._overlayContainer=Je}global(){return new Xe}flexibleConnectedTo(G){return new Ae(G,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(r.rL),l.LFG(o.K0),l.LFG(m.t4),l.LFG(We))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),ct=(()=>{class Ke{constructor(G){this._attachedOverlays=[],this._document=G}ngOnDestroy(){this.detach()}add(G){this.remove(G),this._attachedOverlays.push(G)}remove(G){const Q=this._attachedOverlays.indexOf(G);Q>-1&&this._attachedOverlays.splice(Q,1),0===this._attachedOverlays.length&&this.detach()}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(o.K0))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Lt=(()=>{class Ke extends ct{constructor(G){super(G),this._keydownListener=Q=>{const Fe=this._attachedOverlays;for(let Je=Fe.length-1;Je>-1;Je--)if(Fe[Je]._keydownEvents.observers.length>0){Fe[Je]._keydownEvents.next(Q);break}}}add(G){super.add(G),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(o.K0))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Ie=(()=>{class Ke extends ct{constructor(G,Q){super(G),this._platform=Q,this._cursorStyleIsSet=!1,this._pointerDownListener=Fe=>{this._pointerDownEventTarget=(0,m.sA)(Fe)},this._clickListener=Fe=>{const Je=(0,m.sA)(Fe),vt="click"===Fe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Je;this._pointerDownEventTarget=null;const Tt=this._attachedOverlays.slice();for(let je=Tt.length-1;je>-1;je--){const zt=Tt[je];if(!(zt._outsidePointerEvents.observers.length<1)&&zt.hasAttached()){if(zt.overlayElement.contains(Je)||zt.overlayElement.contains(vt))break;zt._outsidePointerEvents.next(Fe)}}}}add(G){if(super.add(G),!this._isAttached){const Q=this._document.body;Q.addEventListener("pointerdown",this._pointerDownListener,!0),Q.addEventListener("click",this._clickListener,!0),Q.addEventListener("auxclick",this._clickListener,!0),Q.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Q.style.cursor,Q.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const G=this._document.body;G.removeEventListener("pointerdown",this._pointerDownListener,!0),G.removeEventListener("click",this._clickListener,!0),G.removeEventListener("auxclick",this._clickListener,!0),G.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(G.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(o.K0),l.LFG(m.t4))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Pt=0,pt=(()=>{class Ke{constructor(G,Q,Fe,Je,vt,Tt,je,zt,jt,Bt,vn){this.scrollStrategies=G,this._overlayContainer=Q,this._componentFactoryResolver=Fe,this._positionBuilder=Je,this._keyboardDispatcher=vt,this._injector=Tt,this._ngZone=je,this._document=zt,this._directionality=jt,this._location=Bt,this._outsideClickDispatcher=vn}create(G){const Q=this._createHostElement(),Fe=this._createPaneElement(Q),Je=this._createPortalOutlet(Fe),vt=new U(G);return vt.direction=vt.direction||this._directionality.value,new Ye(Je,Q,Fe,vt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(G){const Q=this._document.createElement("div");return Q.id="cdk-overlay-"+Pt++,Q.classList.add("cdk-overlay-pane"),G.appendChild(Q),Q}_createHostElement(){const G=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(G),G}_createPortalOutlet(G){return this._appRef||(this._appRef=this._injector.get(l.z2F)),new b.u0(G,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.LFG(fe),l.LFG(We),l.LFG(l._Vd),l.LFG(lt),l.LFG(Lt),l.LFG(l.zs3),l.LFG(l.R0b),l.LFG(o.K0),l.LFG(A.Is),l.LFG(o.Ye),l.LFG(Ie))},Ke.\u0275prov=l.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();const Et=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ot=new l.OlP("cdk-connected-overlay-scroll-strategy");let en=(()=>{class Ke{constructor(G){this.elementRef=G}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.Y36(l.SBq))},Ke.\u0275dir=l.lG2({type:Ke,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Ke})(),Ne=(()=>{class Ke{constructor(G,Q,Fe,Je,vt){this._overlay=G,this._dir=vt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=C.w.EMPTY,this._attachSubscription=C.w.EMPTY,this._detachSubscription=C.w.EMPTY,this._positionSubscription=C.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new l.vpe,this.positionChange=new l.vpe,this.attach=new l.vpe,this.detach=new l.vpe,this.overlayKeydown=new l.vpe,this.overlayOutsideClick=new l.vpe,this._templatePortal=new b.UE(Q,Fe),this._scrollStrategyFactory=Je,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(G){this._offsetX=G,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(G){this._offsetY=G,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(G){this._hasBackdrop=(0,K.Ig)(G)}get lockPosition(){return this._lockPosition}set lockPosition(G){this._lockPosition=(0,K.Ig)(G)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(G){this._flexibleDimensions=(0,K.Ig)(G)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(G){this._growAfterOpen=(0,K.Ig)(G)}get push(){return this._push}set push(G){this._push=(0,K.Ig)(G)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(G){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),G.origin&&this.open&&this._position.apply()),G.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Et);const G=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=G.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=G.detachments().subscribe(()=>this.detach.emit()),G.keydownEvents().subscribe(Q=>{this.overlayKeydown.next(Q),Q.keyCode===ie.hY&&!this.disableClose&&!(0,ie.Vb)(Q)&&(Q.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Q=>{this.overlayOutsideClick.next(Q)})}_buildConfig(){const G=this._position=this.positionStrategy||this._createPositionStrategy(),Q=new U({direction:this._dir,positionStrategy:G,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Q.width=this.width),(this.height||0===this.height)&&(Q.height=this.height),(this.minWidth||0===this.minWidth)&&(Q.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Q.minHeight=this.minHeight),this.backdropClass&&(Q.backdropClass=this.backdropClass),this.panelClass&&(Q.panelClass=this.panelClass),Q}_updatePositionStrategy(G){const Q=this.positions.map(Fe=>({originX:Fe.originX,originY:Fe.originY,overlayX:Fe.overlayX,overlayY:Fe.overlayY,offsetX:Fe.offsetX||this.offsetX,offsetY:Fe.offsetY||this.offsetY,panelClass:Fe.panelClass||void 0}));return G.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Q).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const G=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(G),G}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof en?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(G=>{this.backdropClick.emit(G)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function w(Ke,B=!1){return G=>G.lift(new z(Ke,B))}(()=>this.positionChange.observers.length>0)).subscribe(G=>{this.positionChange.emit(G),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Ke.\u0275fac=function(G){return new(G||Ke)(l.Y36(pt),l.Y36(l.Rgc),l.Y36(l.s_b),l.Y36(ot),l.Y36(A.Is,8))},Ke.\u0275dir=l.lG2({type:Ke,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[l.TTD]}),Ke})();const ye={provide:ot,deps:[pt],useFactory:function Ve(Ke){return()=>Ke.scrollStrategies.reposition()}};let yt=(()=>{class Ke{}return Ke.\u0275fac=function(G){return new(G||Ke)},Ke.\u0275mod=l.oAB({type:Ke}),Ke.\u0275inj=l.cJS({providers:[pt,ye],imports:[[A.vT,b.eL,r.Cl],r.Cl]}),Ke})()},925:(Ft,Pe,c)=>{c.d(Pe,{t4:()=>K,ud:()=>m,sA:()=>Le,kV:()=>ce,Oy:()=>Re,_i:()=>k,i$:()=>S,Mq:()=>M});var r=c(5e3),o=c(9808);let l;try{l="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ae){l=!1}let C,w,z,N,K=(()=>{class ae{constructor(He){this._platformId=He,this.isBrowser=this._platformId?(0,o.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!l)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return ae.\u0275fac=function(He){return new(He||ae)(r.LFG(r.Lbi))},ae.\u0275prov=r.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),m=(()=>{class ae{}return ae.\u0275fac=function(He){return new(He||ae)},ae.\u0275mod=r.oAB({type:ae}),ae.\u0275inj=r.cJS({}),ae})();function S(ae){return function E(){if(null==C&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>C=!0}))}finally{C=C||!1}return C}()?ae:!!ae.capture}function M(){if(null==z){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return z=!1,z;if("scrollBehavior"in document.documentElement.style)z=!0;else{const ae=Element.prototype.scrollTo;z=!!ae&&!/\{\s*\[native code\]\s*\}/.test(ae.toString())}}return z}function k(){if("object"!=typeof document||!document)return 0;if(null==w){const ae=document.createElement("div"),Ue=ae.style;ae.dir="rtl",Ue.width="1px",Ue.overflow="auto",Ue.visibility="hidden",Ue.pointerEvents="none",Ue.position="absolute";const He=document.createElement("div"),me=He.style;me.width="2px",me.height="1px",ae.appendChild(He),document.body.appendChild(ae),w=0,0===ae.scrollLeft&&(ae.scrollLeft=1,w=0===ae.scrollLeft?1:2),ae.remove()}return w}function ce(ae){if(function ie(){if(null==N){const ae="undefined"!=typeof document?document.head:null;N=!(!ae||!ae.createShadowRoot&&!ae.attachShadow)}return N}()){const Ue=ae.getRootNode?ae.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Ue instanceof ShadowRoot)return Ue}return null}function Le(ae){return ae.composedPath?ae.composedPath()[0]:ae.target}function Re(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Ft,Pe,c)=>{c.d(Pe,{en:()=>z,Pl:()=>ve,C5:()=>E,u0:()=>k,eL:()=>Re,UE:()=>S});var r=c(5e3),o=c(9808);class C{attach(He){return this._attachedHost=He,He.attach(this)}detach(){let He=this._attachedHost;null!=He&&(this._attachedHost=null,He.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(He){this._attachedHost=He}}class E extends C{constructor(He,me,fe,U){super(),this.component=He,this.viewContainerRef=me,this.injector=fe,this.componentFactoryResolver=U}}class S extends C{constructor(He,me,fe){super(),this.templateRef=He,this.viewContainerRef=me,this.context=fe}get origin(){return this.templateRef.elementRef}attach(He,me=this.context){return this.context=me,super.attach(He)}detach(){return this.context=void 0,super.detach()}}class w extends C{constructor(He){super(),this.element=He instanceof r.SBq?He.nativeElement:He}}class z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(He){return He instanceof E?(this._attachedPortal=He,this.attachComponentPortal(He)):He instanceof S?(this._attachedPortal=He,this.attachTemplatePortal(He)):this.attachDomPortal&&He instanceof w?(this._attachedPortal=He,this.attachDomPortal(He)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(He){this._disposeFn=He}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class k extends z{constructor(He,me,fe,U,J){super(),this.outletElement=He,this._componentFactoryResolver=me,this._appRef=fe,this._defaultInjector=U,this.attachDomPortal=Me=>{const se=Me.element,we=this._document.createComment("dom-portal");se.parentNode.insertBefore(we,se),this.outletElement.appendChild(se),this._attachedPortal=Me,super.setDisposeFn(()=>{we.parentNode&&we.parentNode.replaceChild(se,we)})},this._document=J}attachComponentPortal(He){const fe=(He.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(He.component);let U;return He.viewContainerRef?(U=He.viewContainerRef.createComponent(fe,He.viewContainerRef.length,He.injector||He.viewContainerRef.injector),this.setDisposeFn(()=>U.destroy())):(U=fe.create(He.injector||this._defaultInjector),this._appRef.attachView(U.hostView),this.setDisposeFn(()=>{this._appRef.detachView(U.hostView),U.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(U)),this._attachedPortal=He,U}attachTemplatePortal(He){let me=He.viewContainerRef,fe=me.createEmbeddedView(He.templateRef,He.context);return fe.rootNodes.forEach(U=>this.outletElement.appendChild(U)),fe.detectChanges(),this.setDisposeFn(()=>{let U=me.indexOf(fe);-1!==U&&me.remove(U)}),this._attachedPortal=He,fe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(He){return He.hostView.rootNodes[0]}}let ve=(()=>{class Ue extends z{constructor(me,fe,U){super(),this._componentFactoryResolver=me,this._viewContainerRef=fe,this._isInitialized=!1,this.attached=new r.vpe,this.attachDomPortal=J=>{const Me=J.element,se=this._document.createComment("dom-portal");J.setAttachedHost(this),Me.parentNode.insertBefore(se,Me),this._getRootNode().appendChild(Me),this._attachedPortal=J,super.setDisposeFn(()=>{se.parentNode&&se.parentNode.replaceChild(Me,se)})},this._document=U}get portal(){return this._attachedPortal}set portal(me){this.hasAttached()&&!me&&!this._isInitialized||(this.hasAttached()&&super.detach(),me&&super.attach(me),this._attachedPortal=me||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(me){me.setAttachedHost(this);const fe=null!=me.viewContainerRef?me.viewContainerRef:this._viewContainerRef,J=(me.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(me.component),Me=fe.createComponent(J,fe.length,me.injector||fe.injector);return fe!==this._viewContainerRef&&this._getRootNode().appendChild(Me.hostView.rootNodes[0]),super.setDisposeFn(()=>Me.destroy()),this._attachedPortal=me,this._attachedRef=Me,this.attached.emit(Me),Me}attachTemplatePortal(me){me.setAttachedHost(this);const fe=this._viewContainerRef.createEmbeddedView(me.templateRef,me.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=me,this._attachedRef=fe,this.attached.emit(fe),fe}_getRootNode(){const me=this._viewContainerRef.element.nativeElement;return me.nodeType===me.ELEMENT_NODE?me:me.parentNode}}return Ue.\u0275fac=function(me){return new(me||Ue)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(o.K0))},Ue.\u0275dir=r.lG2({type:Ue,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),Ue})(),Re=(()=>{class Ue{}return Ue.\u0275fac=function(me){return new(me||Ue)},Ue.\u0275mod=r.oAB({type:Ue}),Ue.\u0275inj=r.cJS({}),Ue})()},2321:(Ft,Pe,c)=>{c.d(Pe,{xd:()=>kt,ZD:()=>ot,x0:()=>Et,N7:()=>Pt,mF:()=>It,Cl:()=>en,rL:()=>ct});var r=c(3191),o=c(5e3),l=c(8929),K=c(1086),m=c(2916),A=c(3753),b=c(352),D=c(8139),C=c(2654),E=c(4715),S=c(3489);class z{call(Ve,ye){return ye.subscribe(new M(Ve))}}class M extends S.L{constructor(Ve){super(Ve),this.hasPrev=!1}_next(Ve){let ye;this.hasPrev?ye=[this.prev,Ve]:this.hasPrev=!0,this.prev=Ve,ye&&this.destination.next(ye)}}var k=c(5778),N=c(7138),ie=c(2198),ce=c(7625),ve=c(1059),Le=c(7545),Re=c(5154),ae=c(9808),Ue=c(925),He=c(226);class U extends class me{}{constructor(Ve){super(),this._data=Ve}connect(){return(0,E.b)(this._data)?this._data:(0,K.of)(this._data)}disconnect(){}}class Me{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(Ve,ye,yt,Mt,Ke){Ve.forEachOperation((B,G,Q)=>{let Fe,Je;null==B.previousIndex?(Fe=this._insertView(()=>yt(B,G,Q),Q,ye,Mt(B)),Je=Fe?1:0):null==Q?(this._detachAndCacheView(G,ye),Je=3):(Fe=this._moveView(G,Q,ye,Mt(B)),Je=2),Ke&&Ke({context:null==Fe?void 0:Fe.context,operation:Je,record:B})})}detach(){for(const Ve of this._viewCache)Ve.destroy();this._viewCache=[]}_insertView(Ve,ye,yt,Mt){const Ke=this._insertViewFromCache(ye,yt);if(Ke)return void(Ke.context.$implicit=Mt);const B=Ve();return yt.createEmbeddedView(B.templateRef,B.context,B.index)}_detachAndCacheView(Ve,ye){const yt=ye.detach(Ve);this._maybeCacheView(yt,ye)}_moveView(Ve,ye,yt,Mt){const Ke=yt.get(Ve);return yt.move(Ke,ye),Ke.context.$implicit=Mt,Ke}_maybeCacheView(Ve,ye){if(this._viewCache.length0?Ke/this._itemSize:0;if(ye.end>Mt){const Q=Math.ceil(yt/this._itemSize),Fe=Math.max(0,Math.min(B,Mt-Q));B!=Fe&&(B=Fe,Ke=Fe*this._itemSize,ye.start=Math.floor(B)),ye.end=Math.max(0,Math.min(Mt,ye.start+Q))}const G=Ke-ye.start*this._itemSize;if(G0&&(ye.end=Math.min(Mt,ye.end+Fe),ye.start=Math.max(0,Math.floor(B-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(ye),this._viewport.setRenderedContentOffset(this._itemSize*ye.start),this._scrolledIndexChange.next(Math.floor(B))}}function mt(Ne){return Ne._scrollStrategy}let kt=(()=>{class Ne{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Ae(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(ye){this._itemSize=(0,r.su)(ye)}get minBufferPx(){return this._minBufferPx}set minBufferPx(ye){this._minBufferPx=(0,r.su)(ye)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(ye){this._maxBufferPx=(0,r.su)(ye)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Ne.\u0275fac=function(ye){return new(ye||Ne)},Ne.\u0275dir=o.lG2({type:Ne,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[o._Bn([{provide:wt,useFactory:mt,deps:[(0,o.Gpc)(()=>Ne)]}]),o.TTD]}),Ne})(),It=(()=>{class Ne{constructor(ye,yt,Mt){this._ngZone=ye,this._platform=yt,this._scrolled=new l.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Mt}register(ye){this.scrollContainers.has(ye)||this.scrollContainers.set(ye,ye.elementScrolled().subscribe(()=>this._scrolled.next(ye)))}deregister(ye){const yt=this.scrollContainers.get(ye);yt&&(yt.unsubscribe(),this.scrollContainers.delete(ye))}scrolled(ye=20){return this._platform.isBrowser?new m.y(yt=>{this._globalSubscription||this._addGlobalListener();const Mt=ye>0?this._scrolled.pipe((0,N.e)(ye)).subscribe(yt):this._scrolled.subscribe(yt);return this._scrolledCount++,()=>{Mt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,K.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ye,yt)=>this.deregister(yt)),this._scrolled.complete()}ancestorScrolled(ye,yt){const Mt=this.getAncestorScrollContainers(ye);return this.scrolled(yt).pipe((0,ie.h)(Ke=>!Ke||Mt.indexOf(Ke)>-1))}getAncestorScrollContainers(ye){const yt=[];return this.scrollContainers.forEach((Mt,Ke)=>{this._scrollableContainsElement(Ke,ye)&&yt.push(Ke)}),yt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ye,yt){let Mt=(0,r.fI)(yt),Ke=ye.getElementRef().nativeElement;do{if(Mt==Ke)return!0}while(Mt=Mt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ye=this._getWindow();return(0,A.R)(ye.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Ne.\u0275fac=function(ye){return new(ye||Ne)(o.LFG(o.R0b),o.LFG(Ue.t4),o.LFG(ae.K0,8))},Ne.\u0275prov=o.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),Xe=(()=>{class Ne{constructor(ye,yt,Mt,Ke){this.elementRef=ye,this.scrollDispatcher=yt,this.ngZone=Mt,this.dir=Ke,this._destroyed=new l.xQ,this._elementScrolled=new m.y(B=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,ce.R)(this._destroyed)).subscribe(B)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ye){const yt=this.elementRef.nativeElement,Mt=this.dir&&"rtl"==this.dir.value;null==ye.left&&(ye.left=Mt?ye.end:ye.start),null==ye.right&&(ye.right=Mt?ye.start:ye.end),null!=ye.bottom&&(ye.top=yt.scrollHeight-yt.clientHeight-ye.bottom),Mt&&0!=(0,Ue._i)()?(null!=ye.left&&(ye.right=yt.scrollWidth-yt.clientWidth-ye.left),2==(0,Ue._i)()?ye.left=ye.right:1==(0,Ue._i)()&&(ye.left=ye.right?-ye.right:ye.right)):null!=ye.right&&(ye.left=yt.scrollWidth-yt.clientWidth-ye.right),this._applyScrollToOptions(ye)}_applyScrollToOptions(ye){const yt=this.elementRef.nativeElement;(0,Ue.Mq)()?yt.scrollTo(ye):(null!=ye.top&&(yt.scrollTop=ye.top),null!=ye.left&&(yt.scrollLeft=ye.left))}measureScrollOffset(ye){const yt="left",Ke=this.elementRef.nativeElement;if("top"==ye)return Ke.scrollTop;if("bottom"==ye)return Ke.scrollHeight-Ke.clientHeight-Ke.scrollTop;const B=this.dir&&"rtl"==this.dir.value;return"start"==ye?ye=B?"right":yt:"end"==ye&&(ye=B?yt:"right"),B&&2==(0,Ue._i)()?ye==yt?Ke.scrollWidth-Ke.clientWidth-Ke.scrollLeft:Ke.scrollLeft:B&&1==(0,Ue._i)()?ye==yt?Ke.scrollLeft+Ke.scrollWidth-Ke.clientWidth:-Ke.scrollLeft:ye==yt?Ke.scrollLeft:Ke.scrollWidth-Ke.clientWidth-Ke.scrollLeft}}return Ne.\u0275fac=function(ye){return new(ye||Ne)(o.Y36(o.SBq),o.Y36(It),o.Y36(o.R0b),o.Y36(He.Is,8))},Ne.\u0275dir=o.lG2({type:Ne,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Ne})(),ct=(()=>{class Ne{constructor(ye,yt,Mt){this._platform=ye,this._change=new l.xQ,this._changeListener=Ke=>{this._change.next(Ke)},this._document=Mt,yt.runOutsideAngular(()=>{if(ye.isBrowser){const Ke=this._getWindow();Ke.addEventListener("resize",this._changeListener),Ke.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ye=this._getWindow();ye.removeEventListener("resize",this._changeListener),ye.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ye={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ye}getViewportRect(){const ye=this.getViewportScrollPosition(),{width:yt,height:Mt}=this.getViewportSize();return{top:ye.top,left:ye.left,bottom:ye.top+Mt,right:ye.left+yt,height:Mt,width:yt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ye=this._document,yt=this._getWindow(),Mt=ye.documentElement,Ke=Mt.getBoundingClientRect();return{top:-Ke.top||ye.body.scrollTop||yt.scrollY||Mt.scrollTop||0,left:-Ke.left||ye.body.scrollLeft||yt.scrollX||Mt.scrollLeft||0}}change(ye=20){return ye>0?this._change.pipe((0,N.e)(ye)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ye=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ye.innerWidth,height:ye.innerHeight}:{width:0,height:0}}}return Ne.\u0275fac=function(ye){return new(ye||Ne)(o.LFG(Ue.t4),o.LFG(o.R0b),o.LFG(ae.K0,8))},Ne.\u0275prov=o.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})();const Ie="undefined"!=typeof requestAnimationFrame?b.Z:D.E;let Pt=(()=>{class Ne extends Xe{constructor(ye,yt,Mt,Ke,B,G,Q){super(ye,G,Mt,B),this.elementRef=ye,this._changeDetectorRef=yt,this._scrollStrategy=Ke,this._detachedSubject=new l.xQ,this._renderedRangeSubject=new l.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new m.y(Fe=>this._scrollStrategy.scrolledIndexChange.subscribe(Je=>Promise.resolve().then(()=>this.ngZone.run(()=>Fe.next(Je))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=C.w.EMPTY,this._viewportChanges=Q.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(ye){this._orientation!==ye&&(this._orientation=ye,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(ye){this._appendOnly=(0,r.Ig)(ye)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,ve.O)(null),(0,N.e)(0,Ie)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(ye){this.ngZone.runOutsideAngular(()=>{this._forOf=ye,this._forOf.dataStream.pipe((0,ce.R)(this._detachedSubject)).subscribe(yt=>{const Mt=yt.length;Mt!==this._dataLength&&(this._dataLength=Mt,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(ye){this._totalContentSize!==ye&&(this._totalContentSize=ye,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(ye){(function Lt(Ne,Ve){return Ne.start==Ve.start&&Ne.end==Ve.end})(this._renderedRange,ye)||(this.appendOnly&&(ye={start:0,end:Math.max(this._renderedRange.end,ye.end)}),this._renderedRangeSubject.next(this._renderedRange=ye),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(ye,yt="to-start"){const Ke="horizontal"==this.orientation,B=Ke?"X":"Y";let Q=`translate${B}(${Number((Ke&&this.dir&&"rtl"==this.dir.value?-1:1)*ye)}px)`;this._renderedContentOffset=ye,"to-end"===yt&&(Q+=` translate${B}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Q&&(this._renderedContentTransform=Q,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(ye,yt="auto"){const Mt={behavior:yt};"horizontal"===this.orientation?Mt.start=ye:Mt.top=ye,this.scrollTo(Mt)}scrollToIndex(ye,yt="auto"){this._scrollStrategy.scrollToIndex(ye,yt)}measureScrollOffset(ye){return super.measureScrollOffset(ye||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const ye=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?ye.offsetWidth:ye.offsetHeight}measureRangeSize(ye){return this._forOf?this._forOf.measureRangeSize(ye,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const ye=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?ye.clientWidth:ye.clientHeight}_markChangeDetectionNeeded(ye){ye&&this._runAfterChangeDetection.push(ye),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const ye=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const yt of ye)yt()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Ne.\u0275fac=function(ye){return new(ye||Ne)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(wt,8),o.Y36(He.Is,8),o.Y36(It),o.Y36(ct))},Ne.\u0275cmp=o.Xpm({type:Ne,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(ye,yt){if(1&ye&&o.Gf(We,7),2&ye){let Mt;o.iGM(Mt=o.CRH())&&(yt._contentWrapper=Mt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(ye,yt){2&ye&&o.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===yt.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==yt.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[o._Bn([{provide:Xe,useExisting:Ne}]),o.qOj],ngContentSelectors:rt,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(ye,yt){1&ye&&(o.F$t(),o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA(),o._UZ(3,"div",2)),2&ye&&(o.xp6(3),o.Udp("width",yt._totalContentWidth)("height",yt._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),Ne})();function pt(Ne,Ve,ye){if(!ye.getBoundingClientRect)return 0;const Mt=ye.getBoundingClientRect();return"horizontal"===Ne?"start"===Ve?Mt.left:Mt.right:"start"===Ve?Mt.top:Mt.bottom}let Et=(()=>{class Ne{constructor(ye,yt,Mt,Ke,B,G){this._viewContainerRef=ye,this._template=yt,this._differs=Mt,this._viewRepeater=Ke,this._viewport=B,this.viewChange=new l.xQ,this._dataSourceChanges=new l.xQ,this.dataStream=this._dataSourceChanges.pipe((0,ve.O)(null),function w(){return Ne=>Ne.lift(new z)}(),(0,Le.w)(([Q,Fe])=>this._changeDataSource(Q,Fe)),(0,Re.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new l.xQ,this.dataStream.subscribe(Q=>{this._data=Q,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,ce.R)(this._destroyed)).subscribe(Q=>{this._renderedRange=Q,G.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(ye){this._cdkVirtualForOf=ye,function fe(Ne){return Ne&&"function"==typeof Ne.connect}(ye)?this._dataSourceChanges.next(ye):this._dataSourceChanges.next(new U((0,E.b)(ye)?ye:Array.from(ye||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(ye){this._needsUpdate=!0,this._cdkVirtualForTrackBy=ye?(yt,Mt)=>ye(yt+(this._renderedRange?this._renderedRange.start:0),Mt):void 0}set cdkVirtualForTemplate(ye){ye&&(this._needsUpdate=!0,this._template=ye)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(ye){this._viewRepeater.viewCacheSize=(0,r.su)(ye)}measureRangeSize(ye,yt){if(ye.start>=ye.end)return 0;const Mt=ye.start-this._renderedRange.start,Ke=ye.end-ye.start;let B,G;for(let Q=0;Q-1;Q--){const Fe=this._viewContainerRef.get(Q+Mt);if(Fe&&Fe.rootNodes.length){G=Fe.rootNodes[Fe.rootNodes.length-1];break}}return B&&G?pt(yt,"end",G)-pt(yt,"start",B):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const ye=this._differ.diff(this._renderedItems);ye?this._applyChanges(ye):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((ye,yt)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(ye,yt):yt)),this._needsUpdate=!0)}_changeDataSource(ye,yt){return ye&&ye.disconnect(this),this._needsUpdate=!0,yt?yt.connect(this):(0,K.of)()}_updateContext(){const ye=this._data.length;let yt=this._viewContainerRef.length;for(;yt--;){const Mt=this._viewContainerRef.get(yt);Mt.context.index=this._renderedRange.start+yt,Mt.context.count=ye,this._updateComputedContextProperties(Mt.context),Mt.detectChanges()}}_applyChanges(ye){this._viewRepeater.applyChanges(ye,this._viewContainerRef,(Ke,B,G)=>this._getEmbeddedViewArgs(Ke,G),Ke=>Ke.item),ye.forEachIdentityChange(Ke=>{this._viewContainerRef.get(Ke.currentIndex).context.$implicit=Ke.item});const yt=this._data.length;let Mt=this._viewContainerRef.length;for(;Mt--;){const Ke=this._viewContainerRef.get(Mt);Ke.context.index=this._renderedRange.start+Mt,Ke.context.count=yt,this._updateComputedContextProperties(Ke.context)}}_updateComputedContextProperties(ye){ye.first=0===ye.index,ye.last=ye.index===ye.count-1,ye.even=ye.index%2==0,ye.odd=!ye.even}_getEmbeddedViewArgs(ye,yt){return{templateRef:this._template,context:{$implicit:ye.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:yt}}}return Ne.\u0275fac=function(ye){return new(ye||Ne)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(Ye),o.Y36(Pt,4),o.Y36(o.R0b))},Ne.\u0275dir=o.lG2({type:Ne,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[o._Bn([{provide:Ye,useClass:Me}])]}),Ne})(),ot=(()=>{class Ne{}return Ne.\u0275fac=function(ye){return new(ye||Ne)},Ne.\u0275mod=o.oAB({type:Ne}),Ne.\u0275inj=o.cJS({}),Ne})(),en=(()=>{class Ne{}return Ne.\u0275fac=function(ye){return new(ye||Ne)},Ne.\u0275mod=o.oAB({type:Ne}),Ne.\u0275inj=o.cJS({imports:[[He.vT,Ue.ud,ot],He.vT,ot]}),Ne})()},9808:(Ft,Pe,c)=>{c.d(Pe,{mr:()=>ve,Ov:()=>wo,ez:()=>ao,K0:()=>b,uU:()=>ro,JJ:()=>Xo,Do:()=>Re,Ts:()=>so,Nd:()=>So,V_:()=>E,Ye:()=>ae,S$:()=>ie,i8:()=>Bo,mk:()=>Qn,sg:()=>qn,O5:()=>le,iq:()=>ii,zE:()=>si,PC:()=>pi,RF:()=>dn,n9:()=>Mn,ED:()=>jn,tP:()=>Wi,wE:()=>ue,b0:()=>Le,lw:()=>D,rS:()=>Xi,gd:()=>bo,EM:()=>zi,JF:()=>Zn,dv:()=>ct,NF:()=>Ti,qS:()=>rn,w_:()=>A,bD:()=>jo,q:()=>l,Mx:()=>Nn,HT:()=>m});var r=c(5e3);let o=null;function l(){return o}function m(j){o||(o=j)}class A{}const b=new r.OlP("DocumentToken");let D=(()=>{class j{historyGo(W){throw new Error("Not implemented")}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275prov=r.Yz7({token:j,factory:function(){return function C(){return(0,r.LFG)(S)}()},providedIn:"platform"}),j})();const E=new r.OlP("Location Initialized");let S=(()=>{class j extends D{constructor(W){super(),this._doc=W,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return l().getBaseHref(this._doc)}onPopState(W){const ze=l().getGlobalEventTarget(this._doc,"window");return ze.addEventListener("popstate",W,!1),()=>ze.removeEventListener("popstate",W)}onHashChange(W){const ze=l().getGlobalEventTarget(this._doc,"window");return ze.addEventListener("hashchange",W,!1),()=>ze.removeEventListener("hashchange",W)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(W){this.location.pathname=W}pushState(W,ze,st){w()?this._history.pushState(W,ze,st):this.location.hash=st}replaceState(W,ze,st){w()?this._history.replaceState(W,ze,st):this.location.hash=st}forward(){this._history.forward()}back(){this._history.back()}historyGo(W=0){this._history.go(W)}getState(){return this._history.state}}return j.\u0275fac=function(W){return new(W||j)(r.LFG(b))},j.\u0275prov=r.Yz7({token:j,factory:function(){return function z(){return new S((0,r.LFG)(b))}()},providedIn:"platform"}),j})();function w(){return!!window.history.pushState}function M(j,_e){if(0==j.length)return _e;if(0==_e.length)return j;let W=0;return j.endsWith("/")&&W++,_e.startsWith("/")&&W++,2==W?j+_e.substring(1):1==W?j+_e:j+"/"+_e}function k(j){const _e=j.match(/#|\?|$/),W=_e&&_e.index||j.length;return j.slice(0,W-("/"===j[W-1]?1:0))+j.slice(W)}function N(j){return j&&"?"!==j[0]?"?"+j:j}let ie=(()=>{class j{historyGo(W){throw new Error("Not implemented")}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275prov=r.Yz7({token:j,factory:function(){return function ce(j){const _e=(0,r.LFG)(b).location;return new Le((0,r.LFG)(D),_e&&_e.origin||"")}()},providedIn:"root"}),j})();const ve=new r.OlP("appBaseHref");let Le=(()=>{class j extends ie{constructor(W,ze){if(super(),this._platformLocation=W,this._removeListenerFns=[],null==ze&&(ze=this._platformLocation.getBaseHrefFromDOM()),null==ze)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=ze}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(W){this._removeListenerFns.push(this._platformLocation.onPopState(W),this._platformLocation.onHashChange(W))}getBaseHref(){return this._baseHref}prepareExternalUrl(W){return M(this._baseHref,W)}path(W=!1){const ze=this._platformLocation.pathname+N(this._platformLocation.search),st=this._platformLocation.hash;return st&&W?`${ze}${st}`:ze}pushState(W,ze,st,bt){const Zt=this.prepareExternalUrl(st+N(bt));this._platformLocation.pushState(W,ze,Zt)}replaceState(W,ze,st,bt){const Zt=this.prepareExternalUrl(st+N(bt));this._platformLocation.replaceState(W,ze,Zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(W=0){var ze,st;null===(st=(ze=this._platformLocation).historyGo)||void 0===st||st.call(ze,W)}}return j.\u0275fac=function(W){return new(W||j)(r.LFG(D),r.LFG(ve,8))},j.\u0275prov=r.Yz7({token:j,factory:j.\u0275fac}),j})(),Re=(()=>{class j extends ie{constructor(W,ze){super(),this._platformLocation=W,this._baseHref="",this._removeListenerFns=[],null!=ze&&(this._baseHref=ze)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(W){this._removeListenerFns.push(this._platformLocation.onPopState(W),this._platformLocation.onHashChange(W))}getBaseHref(){return this._baseHref}path(W=!1){let ze=this._platformLocation.hash;return null==ze&&(ze="#"),ze.length>0?ze.substring(1):ze}prepareExternalUrl(W){const ze=M(this._baseHref,W);return ze.length>0?"#"+ze:ze}pushState(W,ze,st,bt){let Zt=this.prepareExternalUrl(st+N(bt));0==Zt.length&&(Zt=this._platformLocation.pathname),this._platformLocation.pushState(W,ze,Zt)}replaceState(W,ze,st,bt){let Zt=this.prepareExternalUrl(st+N(bt));0==Zt.length&&(Zt=this._platformLocation.pathname),this._platformLocation.replaceState(W,ze,Zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(W=0){var ze,st;null===(st=(ze=this._platformLocation).historyGo)||void 0===st||st.call(ze,W)}}return j.\u0275fac=function(W){return new(W||j)(r.LFG(D),r.LFG(ve,8))},j.\u0275prov=r.Yz7({token:j,factory:j.\u0275fac}),j})(),ae=(()=>{class j{constructor(W,ze){this._subject=new r.vpe,this._urlChangeListeners=[],this._platformStrategy=W;const st=this._platformStrategy.getBaseHref();this._platformLocation=ze,this._baseHref=k(me(st)),this._platformStrategy.onPopState(bt=>{this._subject.emit({url:this.path(!0),pop:!0,state:bt.state,type:bt.type})})}path(W=!1){return this.normalize(this._platformStrategy.path(W))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(W,ze=""){return this.path()==this.normalize(W+N(ze))}normalize(W){return j.stripTrailingSlash(function He(j,_e){return j&&_e.startsWith(j)?_e.substring(j.length):_e}(this._baseHref,me(W)))}prepareExternalUrl(W){return W&&"/"!==W[0]&&(W="/"+W),this._platformStrategy.prepareExternalUrl(W)}go(W,ze="",st=null){this._platformStrategy.pushState(st,"",W,ze),this._notifyUrlChangeListeners(this.prepareExternalUrl(W+N(ze)),st)}replaceState(W,ze="",st=null){this._platformStrategy.replaceState(st,"",W,ze),this._notifyUrlChangeListeners(this.prepareExternalUrl(W+N(ze)),st)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(W=0){var ze,st;null===(st=(ze=this._platformStrategy).historyGo)||void 0===st||st.call(ze,W)}onUrlChange(W){this._urlChangeListeners.push(W),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ze=>{this._notifyUrlChangeListeners(ze.url,ze.state)}))}_notifyUrlChangeListeners(W="",ze){this._urlChangeListeners.forEach(st=>st(W,ze))}subscribe(W,ze,st){return this._subject.subscribe({next:W,error:ze,complete:st})}}return j.normalizeQueryParams=N,j.joinWithSlash=M,j.stripTrailingSlash=k,j.\u0275fac=function(W){return new(W||j)(r.LFG(ie),r.LFG(D))},j.\u0275prov=r.Yz7({token:j,factory:function(){return function Ue(){return new ae((0,r.LFG)(ie),(0,r.LFG)(D))}()},providedIn:"root"}),j})();function me(j){return j.replace(/\/index.html$/,"")}var U=(()=>((U=U||{})[U.Decimal=0]="Decimal",U[U.Percent=1]="Percent",U[U.Currency=2]="Currency",U[U.Scientific=3]="Scientific",U))(),J=(()=>((J=J||{})[J.Zero=0]="Zero",J[J.One=1]="One",J[J.Two=2]="Two",J[J.Few=3]="Few",J[J.Many=4]="Many",J[J.Other=5]="Other",J))(),Me=(()=>((Me=Me||{})[Me.Format=0]="Format",Me[Me.Standalone=1]="Standalone",Me))(),se=(()=>((se=se||{})[se.Narrow=0]="Narrow",se[se.Abbreviated=1]="Abbreviated",se[se.Wide=2]="Wide",se[se.Short=3]="Short",se))(),we=(()=>((we=we||{})[we.Short=0]="Short",we[we.Medium=1]="Medium",we[we.Long=2]="Long",we[we.Full=3]="Full",we))(),ue=(()=>((ue=ue||{})[ue.Decimal=0]="Decimal",ue[ue.Group=1]="Group",ue[ue.List=2]="List",ue[ue.PercentSign=3]="PercentSign",ue[ue.PlusSign=4]="PlusSign",ue[ue.MinusSign=5]="MinusSign",ue[ue.Exponential=6]="Exponential",ue[ue.SuperscriptingExponent=7]="SuperscriptingExponent",ue[ue.PerMille=8]="PerMille",ue[ue.Infinity=9]="Infinity",ue[ue.NaN=10]="NaN",ue[ue.TimeSeparator=11]="TimeSeparator",ue[ue.CurrencyDecimal=12]="CurrencyDecimal",ue[ue.CurrencyGroup=13]="CurrencyGroup",ue))();function It(j,_e){return yt((0,r.cg1)(j)[r.wAp.DateFormat],_e)}function Xe(j,_e){return yt((0,r.cg1)(j)[r.wAp.TimeFormat],_e)}function lt(j,_e){return yt((0,r.cg1)(j)[r.wAp.DateTimeFormat],_e)}function ct(j,_e){const W=(0,r.cg1)(j),ze=W[r.wAp.NumberSymbols][_e];if(void 0===ze){if(_e===ue.CurrencyDecimal)return W[r.wAp.NumberSymbols][ue.Decimal];if(_e===ue.CurrencyGroup)return W[r.wAp.NumberSymbols][ue.Group]}return ze}const ot=r.kL8;function en(j){if(!j[r.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${j[r.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function yt(j,_e){for(let W=_e;W>-1;W--)if(void 0!==j[W])return j[W];throw new Error("Locale data API: locale data undefined")}function Mt(j){const[_e,W]=j.split(":");return{hours:+_e,minutes:+W}}const Q=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Fe={},Je=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var vt=(()=>((vt=vt||{})[vt.Short=0]="Short",vt[vt.ShortGMT=1]="ShortGMT",vt[vt.Long=2]="Long",vt[vt.Extended=3]="Extended",vt))(),Tt=(()=>((Tt=Tt||{})[Tt.FullYear=0]="FullYear",Tt[Tt.Month=1]="Month",Tt[Tt.Date=2]="Date",Tt[Tt.Hours=3]="Hours",Tt[Tt.Minutes=4]="Minutes",Tt[Tt.Seconds=5]="Seconds",Tt[Tt.FractionalSeconds=6]="FractionalSeconds",Tt[Tt.Day=7]="Day",Tt))(),je=(()=>((je=je||{})[je.DayPeriods=0]="DayPeriods",je[je.Days=1]="Days",je[je.Months=2]="Months",je[je.Eras=3]="Eras",je))();function zt(j,_e,W,ze){let st=function Z(j){if(De(j))return j;if("number"==typeof j&&!isNaN(j))return new Date(j);if("string"==typeof j){if(j=j.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(j)){const[st,bt=1,Zt=1]=j.split("-").map(Cn=>+Cn);return jt(st,bt-1,Zt)}const W=parseFloat(j);if(!isNaN(j-W))return new Date(W);let ze;if(ze=j.match(Q))return function oe(j){const _e=new Date(0);let W=0,ze=0;const st=j[8]?_e.setUTCFullYear:_e.setFullYear,bt=j[8]?_e.setUTCHours:_e.setHours;j[9]&&(W=Number(j[9]+j[10]),ze=Number(j[9]+j[11])),st.call(_e,Number(j[1]),Number(j[2])-1,Number(j[3]));const Zt=Number(j[4]||0)-W,Cn=Number(j[5]||0)-ze,li=Number(j[6]||0),ni=Math.floor(1e3*parseFloat("0."+(j[7]||0)));return bt.call(_e,Zt,Cn,li,ni),_e}(ze)}const _e=new Date(j);if(!De(_e))throw new Error(`Unable to convert "${j}" into a date`);return _e}(j);_e=Bt(W,_e)||_e;let Cn,Zt=[];for(;_e;){if(Cn=Je.exec(_e),!Cn){Zt.push(_e);break}{Zt=Zt.concat(Cn.slice(1));const oi=Zt.pop();if(!oi)break;_e=oi}}let li=st.getTimezoneOffset();ze&&(li=de(ze,li),st=function I(j,_e,W){const ze=W?-1:1,st=j.getTimezoneOffset();return function ut(j,_e){return(j=new Date(j.getTime())).setMinutes(j.getMinutes()+_e),j}(j,ze*(de(_e,st)-st))}(st,ze,!0));let ni="";return Zt.forEach(oi=>{const $n=function ge(j){if(xt[j])return xt[j];let _e;switch(j){case"G":case"GG":case"GGG":_e=xn(je.Eras,se.Abbreviated);break;case"GGGG":_e=xn(je.Eras,se.Wide);break;case"GGGGG":_e=xn(je.Eras,se.Narrow);break;case"y":_e=nn(Tt.FullYear,1,0,!1,!0);break;case"yy":_e=nn(Tt.FullYear,2,0,!0,!0);break;case"yyy":_e=nn(Tt.FullYear,3,0,!1,!0);break;case"yyyy":_e=nn(Tt.FullYear,4,0,!1,!0);break;case"Y":_e=xe(1);break;case"YY":_e=xe(2,!0);break;case"YYY":_e=xe(3);break;case"YYYY":_e=xe(4);break;case"M":case"L":_e=nn(Tt.Month,1,1);break;case"MM":case"LL":_e=nn(Tt.Month,2,1);break;case"MMM":_e=xn(je.Months,se.Abbreviated);break;case"MMMM":_e=xn(je.Months,se.Wide);break;case"MMMMM":_e=xn(je.Months,se.Narrow);break;case"LLL":_e=xn(je.Months,se.Abbreviated,Me.Standalone);break;case"LLLL":_e=xn(je.Months,se.Wide,Me.Standalone);break;case"LLLLL":_e=xn(je.Months,se.Narrow,Me.Standalone);break;case"w":_e=St(1);break;case"ww":_e=St(2);break;case"W":_e=St(1,!0);break;case"d":_e=nn(Tt.Date,1);break;case"dd":_e=nn(Tt.Date,2);break;case"c":case"cc":_e=nn(Tt.Day,1);break;case"ccc":_e=xn(je.Days,se.Abbreviated,Me.Standalone);break;case"cccc":_e=xn(je.Days,se.Wide,Me.Standalone);break;case"ccccc":_e=xn(je.Days,se.Narrow,Me.Standalone);break;case"cccccc":_e=xn(je.Days,se.Short,Me.Standalone);break;case"E":case"EE":case"EEE":_e=xn(je.Days,se.Abbreviated);break;case"EEEE":_e=xn(je.Days,se.Wide);break;case"EEEEE":_e=xn(je.Days,se.Narrow);break;case"EEEEEE":_e=xn(je.Days,se.Short);break;case"a":case"aa":case"aaa":_e=xn(je.DayPeriods,se.Abbreviated);break;case"aaaa":_e=xn(je.DayPeriods,se.Wide);break;case"aaaaa":_e=xn(je.DayPeriods,se.Narrow);break;case"b":case"bb":case"bbb":_e=xn(je.DayPeriods,se.Abbreviated,Me.Standalone,!0);break;case"bbbb":_e=xn(je.DayPeriods,se.Wide,Me.Standalone,!0);break;case"bbbbb":_e=xn(je.DayPeriods,se.Narrow,Me.Standalone,!0);break;case"B":case"BB":case"BBB":_e=xn(je.DayPeriods,se.Abbreviated,Me.Format,!0);break;case"BBBB":_e=xn(je.DayPeriods,se.Wide,Me.Format,!0);break;case"BBBBB":_e=xn(je.DayPeriods,se.Narrow,Me.Format,!0);break;case"h":_e=nn(Tt.Hours,1,-12);break;case"hh":_e=nn(Tt.Hours,2,-12);break;case"H":_e=nn(Tt.Hours,1);break;case"HH":_e=nn(Tt.Hours,2);break;case"m":_e=nn(Tt.Minutes,1);break;case"mm":_e=nn(Tt.Minutes,2);break;case"s":_e=nn(Tt.Seconds,1);break;case"ss":_e=nn(Tt.Seconds,2);break;case"S":_e=nn(Tt.FractionalSeconds,1);break;case"SS":_e=nn(Tt.FractionalSeconds,2);break;case"SSS":_e=nn(Tt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":_e=_n(vt.Short);break;case"ZZZZZ":_e=_n(vt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":_e=_n(vt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":_e=_n(vt.Long);break;default:return null}return xt[j]=_e,_e}(oi);ni+=$n?$n(st,W,li):"''"===oi?"'":oi.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ni}function jt(j,_e,W){const ze=new Date(0);return ze.setFullYear(j,_e,W),ze.setHours(0,0,0),ze}function Bt(j,_e){const W=function We(j){return(0,r.cg1)(j)[r.wAp.LocaleId]}(j);if(Fe[W]=Fe[W]||{},Fe[W][_e])return Fe[W][_e];let ze="";switch(_e){case"shortDate":ze=It(j,we.Short);break;case"mediumDate":ze=It(j,we.Medium);break;case"longDate":ze=It(j,we.Long);break;case"fullDate":ze=It(j,we.Full);break;case"shortTime":ze=Xe(j,we.Short);break;case"mediumTime":ze=Xe(j,we.Medium);break;case"longTime":ze=Xe(j,we.Long);break;case"fullTime":ze=Xe(j,we.Full);break;case"short":const st=Bt(j,"shortTime"),bt=Bt(j,"shortDate");ze=vn(lt(j,we.Short),[st,bt]);break;case"medium":const Zt=Bt(j,"mediumTime"),Cn=Bt(j,"mediumDate");ze=vn(lt(j,we.Medium),[Zt,Cn]);break;case"long":const li=Bt(j,"longTime"),ni=Bt(j,"longDate");ze=vn(lt(j,we.Long),[li,ni]);break;case"full":const oi=Bt(j,"fullTime"),$n=Bt(j,"fullDate");ze=vn(lt(j,we.Full),[oi,$n])}return ze&&(Fe[W][_e]=ze),ze}function vn(j,_e){return _e&&(j=j.replace(/\{([^}]+)}/g,function(W,ze){return null!=_e&&ze in _e?_e[ze]:W})),j}function cn(j,_e,W="-",ze,st){let bt="";(j<0||st&&j<=0)&&(st?j=1-j:(j=-j,bt=W));let Zt=String(j);for(;Zt.length<_e;)Zt="0"+Zt;return ze&&(Zt=Zt.substr(Zt.length-_e)),bt+Zt}function nn(j,_e,W=0,ze=!1,st=!1){return function(bt,Zt){let Cn=function Gn(j,_e){switch(j){case Tt.FullYear:return _e.getFullYear();case Tt.Month:return _e.getMonth();case Tt.Date:return _e.getDate();case Tt.Hours:return _e.getHours();case Tt.Minutes:return _e.getMinutes();case Tt.Seconds:return _e.getSeconds();case Tt.FractionalSeconds:return _e.getMilliseconds();case Tt.Day:return _e.getDay();default:throw new Error(`Unknown DateType value "${j}".`)}}(j,bt);if((W>0||Cn>-W)&&(Cn+=W),j===Tt.Hours)0===Cn&&-12===W&&(Cn=12);else if(j===Tt.FractionalSeconds)return function an(j,_e){return cn(j,3).substr(0,_e)}(Cn,_e);const li=ct(Zt,ue.MinusSign);return cn(Cn,_e,li,ze,st)}}function xn(j,_e,W=Me.Format,ze=!1){return function(st,bt){return function yn(j,_e,W,ze,st,bt){switch(W){case je.Months:return function Ae(j,_e,W){const ze=(0,r.cg1)(j),bt=yt([ze[r.wAp.MonthsFormat],ze[r.wAp.MonthsStandalone]],_e);return yt(bt,W)}(_e,st,ze)[j.getMonth()];case je.Days:return function wt(j,_e,W){const ze=(0,r.cg1)(j),bt=yt([ze[r.wAp.DaysFormat],ze[r.wAp.DaysStandalone]],_e);return yt(bt,W)}(_e,st,ze)[j.getDay()];case je.DayPeriods:const Zt=j.getHours(),Cn=j.getMinutes();if(bt){const ni=function Ne(j){const _e=(0,r.cg1)(j);return en(_e),(_e[r.wAp.ExtraData][2]||[]).map(ze=>"string"==typeof ze?Mt(ze):[Mt(ze[0]),Mt(ze[1])])}(_e),oi=function Ve(j,_e,W){const ze=(0,r.cg1)(j);en(ze);const bt=yt([ze[r.wAp.ExtraData][0],ze[r.wAp.ExtraData][1]],_e)||[];return yt(bt,W)||[]}(_e,st,ze),$n=ni.findIndex(hi=>{if(Array.isArray(hi)){const[gi,An]=hi,no=Zt>=gi.hours&&Cn>=gi.minutes,$=Zt0?Math.floor(st/60):Math.ceil(st/60);switch(j){case vt.Short:return(st>=0?"+":"")+cn(Zt,2,bt)+cn(Math.abs(st%60),2,bt);case vt.ShortGMT:return"GMT"+(st>=0?"+":"")+cn(Zt,1,bt);case vt.Long:return"GMT"+(st>=0?"+":"")+cn(Zt,2,bt)+":"+cn(Math.abs(st%60),2,bt);case vt.Extended:return 0===ze?"Z":(st>=0?"+":"")+cn(Zt,2,bt)+":"+cn(Math.abs(st%60),2,bt);default:throw new Error(`Unknown zone width "${j}"`)}}}function Ge(j){return jt(j.getFullYear(),j.getMonth(),j.getDate()+(4-j.getDay()))}function St(j,_e=!1){return function(W,ze){let st;if(_e){const bt=new Date(W.getFullYear(),W.getMonth(),1).getDay()-1,Zt=W.getDate();st=1+Math.floor((Zt+bt)/7)}else{const bt=Ge(W),Zt=function it(j){const _e=jt(j,0,1).getDay();return jt(j,0,1+(_e<=4?4:11)-_e)}(bt.getFullYear()),Cn=bt.getTime()-Zt.getTime();st=1+Math.round(Cn/6048e5)}return cn(st,j,ct(ze,ue.MinusSign))}}function xe(j,_e=!1){return function(W,ze){return cn(Ge(W).getFullYear(),j,ct(ze,ue.MinusSign),_e)}}const xt={};function de(j,_e){j=j.replace(/:/g,"");const W=Date.parse("Jan 01, 1970 00:00:00 "+j)/6e4;return isNaN(W)?_e:W}function De(j){return j instanceof Date&&!isNaN(j.valueOf())}const ft=/^(\d+)?\.((\d+)(-(\d+))?)?$/,T="0";function bn(j){const _e=parseInt(j);if(isNaN(_e))throw new Error("Invalid integer literal when parsing "+j);return _e}class mn{}let Dn=(()=>{class j extends mn{constructor(W){super(),this.locale=W}getPluralCategory(W,ze){switch(ot(ze||this.locale)(W)){case J.Zero:return"zero";case J.One:return"one";case J.Two:return"two";case J.Few:return"few";case J.Many:return"many";default:return"other"}}}return j.\u0275fac=function(W){return new(W||j)(r.LFG(r.soG))},j.\u0275prov=r.Yz7({token:j,factory:j.\u0275fac}),j})();function rn(j,_e,W){return(0,r.dwT)(j,_e,W)}function Nn(j,_e){_e=encodeURIComponent(_e);for(const W of j.split(";")){const ze=W.indexOf("="),[st,bt]=-1==ze?[W,""]:[W.slice(0,ze),W.slice(ze+1)];if(st.trim()===_e)return decodeURIComponent(bt)}return null}let Qn=(()=>{class j{constructor(W,ze,st,bt){this._iterableDiffers=W,this._keyValueDiffers=ze,this._ngEl=st,this._renderer=bt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(W){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof W?W.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(W){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof W?W.split(/\s+/):W,this._rawClass&&((0,r.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const W=this._iterableDiffer.diff(this._rawClass);W&&this._applyIterableChanges(W)}else if(this._keyValueDiffer){const W=this._keyValueDiffer.diff(this._rawClass);W&&this._applyKeyValueChanges(W)}}_applyKeyValueChanges(W){W.forEachAddedItem(ze=>this._toggleClass(ze.key,ze.currentValue)),W.forEachChangedItem(ze=>this._toggleClass(ze.key,ze.currentValue)),W.forEachRemovedItem(ze=>{ze.previousValue&&this._toggleClass(ze.key,!1)})}_applyIterableChanges(W){W.forEachAddedItem(ze=>{if("string"!=typeof ze.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,r.AaK)(ze.item)}`);this._toggleClass(ze.item,!0)}),W.forEachRemovedItem(ze=>this._toggleClass(ze.item,!1))}_applyClasses(W){W&&(Array.isArray(W)||W instanceof Set?W.forEach(ze=>this._toggleClass(ze,!0)):Object.keys(W).forEach(ze=>this._toggleClass(ze,!!W[ze])))}_removeClasses(W){W&&(Array.isArray(W)||W instanceof Set?W.forEach(ze=>this._toggleClass(ze,!1)):Object.keys(W).forEach(ze=>this._toggleClass(ze,!1)))}_toggleClass(W,ze){(W=W.trim())&&W.split(/\s+/g).forEach(st=>{ze?this._renderer.addClass(this._ngEl.nativeElement,st):this._renderer.removeClass(this._ngEl.nativeElement,st)})}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.ZZ4),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Qsj))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),j})();class Jn{constructor(_e,W,ze,st){this.$implicit=_e,this.ngForOf=W,this.index=ze,this.count=st}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let qn=(()=>{class j{constructor(W,ze,st){this._viewContainer=W,this._template=ze,this._differs=st,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(W){this._ngForOf=W,this._ngForOfDirty=!0}set ngForTrackBy(W){this._trackByFn=W}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(W){W&&(this._template=W)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const W=this._ngForOf;!this._differ&&W&&(this._differ=this._differs.find(W).create(this.ngForTrackBy))}if(this._differ){const W=this._differ.diff(this._ngForOf);W&&this._applyChanges(W)}}_applyChanges(W){const ze=this._viewContainer;W.forEachOperation((st,bt,Zt)=>{if(null==st.previousIndex)ze.createEmbeddedView(this._template,new Jn(st.item,this._ngForOf,-1,-1),null===Zt?void 0:Zt);else if(null==Zt)ze.remove(null===bt?void 0:bt);else if(null!==bt){const Cn=ze.get(bt);ze.move(Cn,Zt),Ce(Cn,st)}});for(let st=0,bt=ze.length;st{Ce(ze.get(st.currentIndex),st)})}static ngTemplateContextGuard(W,ze){return!0}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),j})();function Ce(j,_e){j.context.$implicit=_e.item}let le=(()=>{class j{constructor(W,ze){this._viewContainer=W,this._context=new tt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ze}set ngIf(W){this._context.$implicit=this._context.ngIf=W,this._updateView()}set ngIfThen(W){Ht("ngIfThen",W),this._thenTemplateRef=W,this._thenViewRef=null,this._updateView()}set ngIfElse(W){Ht("ngIfElse",W),this._elseTemplateRef=W,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(W,ze){return!0}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.s_b),r.Y36(r.Rgc))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),j})();class tt{constructor(){this.$implicit=null,this.ngIf=null}}function Ht(j,_e){if(_e&&!_e.createEmbeddedView)throw new Error(`${j} must be a TemplateRef, but received '${(0,r.AaK)(_e)}'.`)}class Xt{constructor(_e,W){this._viewContainerRef=_e,this._templateRef=W,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(_e){_e&&!this._created?this.create():!_e&&this._created&&this.destroy()}}let dn=(()=>{class j{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(W){this._ngSwitch=W,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(W){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(W)}_matchCase(W){const ze=W==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ze,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ze}_updateDefaultCases(W){if(this._defaultViews&&W!==this._defaultUsed){this._defaultUsed=W;for(let ze=0;ze{class j{constructor(W,ze,st){this.ngSwitch=st,st._addCase(),this._view=new Xt(W,ze)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(dn,9))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),j})(),jn=(()=>{class j{constructor(W,ze,st){st._addDefault(new Xt(W,ze))}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(dn,9))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngSwitchDefault",""]]}),j})(),ii=(()=>{class j{constructor(W){this._localization=W,this._caseViews={}}set ngPlural(W){this._switchValue=W,this._updateView()}addCase(W,ze){this._caseViews[W]=ze}_updateView(){this._clearViews();const W=Object.keys(this._caseViews),ze=function fn(j,_e,W,ze){let st=`=${j}`;if(_e.indexOf(st)>-1||(st=W.getPluralCategory(j,ze),_e.indexOf(st)>-1))return st;if(_e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${j}"`)}(this._switchValue,W,this._localization);this._activateView(this._caseViews[ze])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(W){W&&(this._activeView=W,this._activeView.create())}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(mn))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),j})(),si=(()=>{class j{constructor(W,ze,st,bt){this.value=W;const Zt=!isNaN(Number(W));bt.addCase(Zt?`=${W}`:W,new Xt(st,ze))}}return j.\u0275fac=function(W){return new(W||j)(r.$8M("ngPluralCase"),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(ii,1))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngPluralCase",""]]}),j})(),pi=(()=>{class j{constructor(W,ze,st){this._ngEl=W,this._differs=ze,this._renderer=st,this._ngStyle=null,this._differ=null}set ngStyle(W){this._ngStyle=W,!this._differ&&W&&(this._differ=this._differs.find(W).create())}ngDoCheck(){if(this._differ){const W=this._differ.diff(this._ngStyle);W&&this._applyChanges(W)}}_setStyle(W,ze){const[st,bt]=W.split(".");null!=(ze=null!=ze&&bt?`${ze}${bt}`:ze)?this._renderer.setStyle(this._ngEl.nativeElement,st,ze):this._renderer.removeStyle(this._ngEl.nativeElement,st)}_applyChanges(W){W.forEachRemovedItem(ze=>this._setStyle(ze.key,null)),W.forEachAddedItem(ze=>this._setStyle(ze.key,ze.currentValue)),W.forEachChangedItem(ze=>this._setStyle(ze.key,ze.currentValue))}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.SBq),r.Y36(r.aQg),r.Y36(r.Qsj))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),j})(),Wi=(()=>{class j{constructor(W){this._viewContainerRef=W,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(W){if(W.ngTemplateOutlet){const ze=this._viewContainerRef;this._viewRef&&ze.remove(ze.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ze.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&W.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.s_b))},j.\u0275dir=r.lG2({type:j,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.TTD]}),j})();function Si(j,_e){return new r.vHH(2100,"")}class Ii{createSubscription(_e,W){return _e.subscribe({next:W,error:ze=>{throw ze}})}dispose(_e){_e.unsubscribe()}onDestroy(_e){_e.unsubscribe()}}class qi{createSubscription(_e,W){return _e.then(W,ze=>{throw ze})}dispose(_e){}onDestroy(_e){}}const Ro=new qi,Ho=new Ii;let wo=(()=>{class j{constructor(W){this._ref=W,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(W){return this._obj?W!==this._obj?(this._dispose(),this.transform(W)):this._latestValue:(W&&this._subscribe(W),this._latestValue)}_subscribe(W){this._obj=W,this._strategy=this._selectStrategy(W),this._subscription=this._strategy.createSubscription(W,ze=>this._updateLatestValue(W,ze))}_selectStrategy(W){if((0,r.QGY)(W))return Ro;if((0,r.F4k)(W))return Ho;throw Si()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(W,ze){W===this._obj&&(this._latestValue=ze,this._ref.markForCheck())}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.sBO,16))},j.\u0275pipe=r.Yjl({name:"async",type:j,pure:!1}),j})(),Bo=(()=>{class j{transform(W){if(null==W)return null;if("string"!=typeof W)throw Si();return W.toLowerCase()}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275pipe=r.Yjl({name:"lowercase",type:j,pure:!0}),j})();const Co=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Xi=(()=>{class j{transform(W){if(null==W)return null;if("string"!=typeof W)throw Si();return W.replace(Co,ze=>ze[0].toUpperCase()+ze.substr(1).toLowerCase())}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275pipe=r.Yjl({name:"titlecase",type:j,pure:!0}),j})(),bo=(()=>{class j{transform(W){if(null==W)return null;if("string"!=typeof W)throw Si();return W.toUpperCase()}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275pipe=r.Yjl({name:"uppercase",type:j,pure:!0}),j})();const Do=new r.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let ro=(()=>{class j{constructor(W,ze){this.locale=W,this.defaultTimezone=ze}transform(W,ze="mediumDate",st,bt){var Zt;if(null==W||""===W||W!=W)return null;try{return zt(W,ze,bt||this.locale,null!==(Zt=null!=st?st:this.defaultTimezone)&&void 0!==Zt?Zt:void 0)}catch(Cn){throw Si()}}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.soG,16),r.Y36(Do,24))},j.\u0275pipe=r.Yjl({name:"date",type:j,pure:!0}),j})(),so=(()=>{class j{transform(W){return JSON.stringify(W,null,2)}}return j.\u0275fac=function(W){return new(W||j)},j.\u0275pipe=r.Yjl({name:"json",type:j,pure:!1}),j})(),So=(()=>{class j{constructor(W){this.differs=W,this.keyValues=[],this.compareFn=Vi}transform(W,ze=Vi){if(!W||!(W instanceof Map)&&"object"!=typeof W)return null;this.differ||(this.differ=this.differs.find(W).create());const st=this.differ.diff(W),bt=ze!==this.compareFn;return st&&(this.keyValues=[],st.forEachItem(Zt=>{this.keyValues.push(function Mo(j,_e){return{key:j,value:_e}}(Zt.key,Zt.currentValue))})),(st||bt)&&(this.keyValues.sort(ze),this.compareFn=ze),this.keyValues}}return j.\u0275fac=function(W){return new(W||j)(r.Y36(r.aQg,16))},j.\u0275pipe=r.Yjl({name:"keyvalue",type:j,pure:!1}),j})();function Vi(j,_e){const W=j.key,ze=_e.key;if(W===ze)return 0;if(void 0===W)return 1;if(void 0===ze)return-1;if(null===W)return 1;if(null===ze)return-1;if("string"==typeof W&&"string"==typeof ze)return W{class j{constructor(W){this._locale=W}transform(W,ze,st){if(!function Yi(j){return!(null==j||""===j||j!=j)}(W))return null;st=st||this._locale;try{return function _t(j,_e,W){return function et(j,_e,W,ze,st,bt,Zt=!1){let Cn="",li=!1;if(isFinite(j)){let ni=function on(j){let ze,st,bt,Zt,Cn,_e=Math.abs(j)+"",W=0;for((st=_e.indexOf("."))>-1&&(_e=_e.replace(".","")),(bt=_e.search(/e/i))>0?(st<0&&(st=bt),st+=+_e.slice(bt+1),_e=_e.substring(0,bt)):st<0&&(st=_e.length),bt=0;_e.charAt(bt)===T;bt++);if(bt===(Cn=_e.length))ze=[0],st=1;else{for(Cn--;_e.charAt(Cn)===T;)Cn--;for(st-=bt,ze=[],Zt=0;bt<=Cn;bt++,Zt++)ze[Zt]=Number(_e.charAt(bt))}return st>22&&(ze=ze.splice(0,21),W=st-1,st=1),{digits:ze,exponent:W,integerLen:st}}(j);Zt&&(ni=function qt(j){if(0===j.digits[0])return j;const _e=j.digits.length-j.integerLen;return j.exponent?j.exponent+=2:(0===_e?j.digits.push(0,0):1===_e&&j.digits.push(0),j.integerLen+=2),j}(ni));let oi=_e.minInt,$n=_e.minFrac,hi=_e.maxFrac;if(bt){const F=bt.match(ft);if(null===F)throw new Error(`${bt} is not a valid digit info`);const Te=F[1],Ut=F[3],On=F[5];null!=Te&&(oi=bn(Te)),null!=Ut&&($n=bn(Ut)),null!=On?hi=bn(On):null!=Ut&&$n>hi&&(hi=$n)}!function Vt(j,_e,W){if(_e>W)throw new Error(`The minimum number of digits after fraction (${_e}) is higher than the maximum (${W}).`);let ze=j.digits,st=ze.length-j.integerLen;const bt=Math.min(Math.max(_e,st),W);let Zt=bt+j.integerLen,Cn=ze[Zt];if(Zt>0){ze.splice(Math.max(j.integerLen,Zt));for(let $n=Zt;$n=5)if(Zt-1<0){for(let $n=0;$n>Zt;$n--)ze.unshift(0),j.integerLen++;ze.unshift(1),j.integerLen++}else ze[Zt-1]++;for(;st=ni?An.pop():li=!1),hi>=10?1:0},0);oi&&(ze.unshift(oi),j.integerLen++)}(ni,$n,hi);let gi=ni.digits,An=ni.integerLen;const no=ni.exponent;let $=[];for(li=gi.every(F=>!F);An0?$=gi.splice(An,gi.length):($=gi,gi=[0]);const L=[];for(gi.length>=_e.lgSize&&L.unshift(gi.splice(-_e.lgSize,gi.length).join(""));gi.length>_e.gSize;)L.unshift(gi.splice(-_e.gSize,gi.length).join(""));gi.length&&L.unshift(gi.join("")),Cn=L.join(ct(W,ze)),$.length&&(Cn+=ct(W,st)+$.join("")),no&&(Cn+=ct(W,ue.Exponential)+"+"+no)}else Cn=ct(W,ue.Infinity);return Cn=j<0&&!li?_e.negPre+Cn+_e.negSuf:_e.posPre+Cn+_e.posSuf,Cn}(j,function Rt(j,_e="-"){const W={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ze=j.split(";"),st=ze[0],bt=ze[1],Zt=-1!==st.indexOf(".")?st.split("."):[st.substring(0,st.lastIndexOf(T)+1),st.substring(st.lastIndexOf(T)+1)],Cn=Zt[0],li=Zt[1]||"";W.posPre=Cn.substr(0,Cn.indexOf("#"));for(let oi=0;oi{class j{}return j.\u0275fac=function(W){return new(W||j)},j.\u0275mod=r.oAB({type:j}),j.\u0275inj=r.cJS({providers:[{provide:mn,useClass:Dn}]}),j})();const jo="browser";function Ti(j){return j===jo}let zi=(()=>{class j{}return j.\u0275prov=(0,r.Yz7)({token:j,providedIn:"root",factory:()=>new er((0,r.LFG)(b),window)}),j})();class er{constructor(_e,W){this.document=_e,this.window=W,this.offset=()=>[0,0]}setOffset(_e){this.offset=Array.isArray(_e)?()=>_e:_e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(_e){this.supportsScrolling()&&this.window.scrollTo(_e[0],_e[1])}scrollToAnchor(_e){if(!this.supportsScrolling())return;const W=function ji(j,_e){const W=j.getElementById(_e)||j.getElementsByName(_e)[0];if(W)return W;if("function"==typeof j.createTreeWalker&&j.body&&(j.body.createShadowRoot||j.body.attachShadow)){const ze=j.createTreeWalker(j.body,NodeFilter.SHOW_ELEMENT);let st=ze.currentNode;for(;st;){const bt=st.shadowRoot;if(bt){const Zt=bt.getElementById(_e)||bt.querySelector(`[name="${_e}"]`);if(Zt)return Zt}st=ze.nextNode()}}return null}(this.document,_e);W&&(this.scrollToElement(W),this.attemptFocus(W))}setHistoryScrollRestoration(_e){if(this.supportScrollRestoration()){const W=this.window.history;W&&W.scrollRestoration&&(W.scrollRestoration=_e)}}scrollToElement(_e){const W=_e.getBoundingClientRect(),ze=W.left+this.window.pageXOffset,st=W.top+this.window.pageYOffset,bt=this.offset();this.window.scrollTo(ze-bt[0],st-bt[1])}attemptFocus(_e){return _e.focus(),this.document.activeElement===_e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const _e=vi(this.window.history)||vi(Object.getPrototypeOf(this.window.history));return!(!_e||!_e.writable&&!_e.set)}catch(_e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(_e){return!1}}}function vi(j){return Object.getOwnPropertyDescriptor(j,"scrollRestoration")}class Zn{}},520:(Ft,Pe,c)=>{c.d(Pe,{jN:()=>C,eN:()=>ue,Ed:()=>Mt,JF:()=>yt,PD:()=>ye,WM:()=>E,LE:()=>ie,aW:()=>me,Zn:()=>Me});var r=c(9808),o=c(5e3),l=c(1086),K=c(2916),m=c(1406),A=c(2198),b=c(4850);class D{}class C{}class E{constructor(G){this.normalizedNames=new Map,this.lazyUpdate=null,G?this.lazyInit="string"==typeof G?()=>{this.headers=new Map,G.split("\n").forEach(Q=>{const Fe=Q.indexOf(":");if(Fe>0){const Je=Q.slice(0,Fe),vt=Je.toLowerCase(),Tt=Q.slice(Fe+1).trim();this.maybeSetNormalizedName(Je,vt),this.headers.has(vt)?this.headers.get(vt).push(Tt):this.headers.set(vt,[Tt])}})}:()=>{this.headers=new Map,Object.keys(G).forEach(Q=>{let Fe=G[Q];const Je=Q.toLowerCase();"string"==typeof Fe&&(Fe=[Fe]),Fe.length>0&&(this.headers.set(Je,Fe),this.maybeSetNormalizedName(Q,Je))})}:this.headers=new Map}has(G){return this.init(),this.headers.has(G.toLowerCase())}get(G){this.init();const Q=this.headers.get(G.toLowerCase());return Q&&Q.length>0?Q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(G){return this.init(),this.headers.get(G.toLowerCase())||null}append(G,Q){return this.clone({name:G,value:Q,op:"a"})}set(G,Q){return this.clone({name:G,value:Q,op:"s"})}delete(G,Q){return this.clone({name:G,value:Q,op:"d"})}maybeSetNormalizedName(G,Q){this.normalizedNames.has(Q)||this.normalizedNames.set(Q,G)}init(){this.lazyInit&&(this.lazyInit instanceof E?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(G=>this.applyUpdate(G)),this.lazyUpdate=null))}copyFrom(G){G.init(),Array.from(G.headers.keys()).forEach(Q=>{this.headers.set(Q,G.headers.get(Q)),this.normalizedNames.set(Q,G.normalizedNames.get(Q))})}clone(G){const Q=new E;return Q.lazyInit=this.lazyInit&&this.lazyInit instanceof E?this.lazyInit:this,Q.lazyUpdate=(this.lazyUpdate||[]).concat([G]),Q}applyUpdate(G){const Q=G.name.toLowerCase();switch(G.op){case"a":case"s":let Fe=G.value;if("string"==typeof Fe&&(Fe=[Fe]),0===Fe.length)return;this.maybeSetNormalizedName(G.name,Q);const Je=("a"===G.op?this.headers.get(Q):void 0)||[];Je.push(...Fe),this.headers.set(Q,Je);break;case"d":const vt=G.value;if(vt){let Tt=this.headers.get(Q);if(!Tt)return;Tt=Tt.filter(je=>-1===vt.indexOf(je)),0===Tt.length?(this.headers.delete(Q),this.normalizedNames.delete(Q)):this.headers.set(Q,Tt)}else this.headers.delete(Q),this.normalizedNames.delete(Q)}}forEach(G){this.init(),Array.from(this.normalizedNames.keys()).forEach(Q=>G(this.normalizedNames.get(Q),this.headers.get(Q)))}}class S{encodeKey(G){return k(G)}encodeValue(G){return k(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}const z=/%(\d[a-f0-9])/gi,M={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function k(B){return encodeURIComponent(B).replace(z,(G,Q)=>{var Fe;return null!==(Fe=M[Q])&&void 0!==Fe?Fe:G})}function N(B){return`${B}`}class ie{constructor(G={}){if(this.updates=null,this.cloneFrom=null,this.encoder=G.encoder||new S,G.fromString){if(G.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function w(B,G){const Q=new Map;return B.length>0&&B.replace(/^\?/,"").split("&").forEach(Je=>{const vt=Je.indexOf("="),[Tt,je]=-1==vt?[G.decodeKey(Je),""]:[G.decodeKey(Je.slice(0,vt)),G.decodeValue(Je.slice(vt+1))],zt=Q.get(Tt)||[];zt.push(je),Q.set(Tt,zt)}),Q}(G.fromString,this.encoder)}else G.fromObject?(this.map=new Map,Object.keys(G.fromObject).forEach(Q=>{const Fe=G.fromObject[Q];this.map.set(Q,Array.isArray(Fe)?Fe:[Fe])})):this.map=null}has(G){return this.init(),this.map.has(G)}get(G){this.init();const Q=this.map.get(G);return Q?Q[0]:null}getAll(G){return this.init(),this.map.get(G)||null}keys(){return this.init(),Array.from(this.map.keys())}append(G,Q){return this.clone({param:G,value:Q,op:"a"})}appendAll(G){const Q=[];return Object.keys(G).forEach(Fe=>{const Je=G[Fe];Array.isArray(Je)?Je.forEach(vt=>{Q.push({param:Fe,value:vt,op:"a"})}):Q.push({param:Fe,value:Je,op:"a"})}),this.clone(Q)}set(G,Q){return this.clone({param:G,value:Q,op:"s"})}delete(G,Q){return this.clone({param:G,value:Q,op:"d"})}toString(){return this.init(),this.keys().map(G=>{const Q=this.encoder.encodeKey(G);return this.map.get(G).map(Fe=>Q+"="+this.encoder.encodeValue(Fe)).join("&")}).filter(G=>""!==G).join("&")}clone(G){const Q=new ie({encoder:this.encoder});return Q.cloneFrom=this.cloneFrom||this,Q.updates=(this.updates||[]).concat(G),Q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(G=>this.map.set(G,this.cloneFrom.map.get(G))),this.updates.forEach(G=>{switch(G.op){case"a":case"s":const Q=("a"===G.op?this.map.get(G.param):void 0)||[];Q.push(N(G.value)),this.map.set(G.param,Q);break;case"d":if(void 0===G.value){this.map.delete(G.param);break}{let Fe=this.map.get(G.param)||[];const Je=Fe.indexOf(N(G.value));-1!==Je&&Fe.splice(Je,1),Fe.length>0?this.map.set(G.param,Fe):this.map.delete(G.param)}}}),this.cloneFrom=this.updates=null)}}class ve{constructor(){this.map=new Map}set(G,Q){return this.map.set(G,Q),this}get(G){return this.map.has(G)||this.map.set(G,G.defaultValue()),this.map.get(G)}delete(G){return this.map.delete(G),this}has(G){return this.map.has(G)}keys(){return this.map.keys()}}function Re(B){return"undefined"!=typeof ArrayBuffer&&B instanceof ArrayBuffer}function ae(B){return"undefined"!=typeof Blob&&B instanceof Blob}function Ue(B){return"undefined"!=typeof FormData&&B instanceof FormData}class me{constructor(G,Q,Fe,Je){let vt;if(this.url=Q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=G.toUpperCase(),function Le(B){switch(B){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Je?(this.body=void 0!==Fe?Fe:null,vt=Je):vt=Fe,vt&&(this.reportProgress=!!vt.reportProgress,this.withCredentials=!!vt.withCredentials,vt.responseType&&(this.responseType=vt.responseType),vt.headers&&(this.headers=vt.headers),vt.context&&(this.context=vt.context),vt.params&&(this.params=vt.params)),this.headers||(this.headers=new E),this.context||(this.context=new ve),this.params){const Tt=this.params.toString();if(0===Tt.length)this.urlWithParams=Q;else{const je=Q.indexOf("?");this.urlWithParams=Q+(-1===je?"?":jecn.set(an,G.setHeaders[an]),jt)),G.setParams&&(Bt=Object.keys(G.setParams).reduce((cn,an)=>cn.set(an,G.setParams[an]),Bt)),new me(Fe,Je,Tt,{params:Bt,headers:jt,context:vn,reportProgress:zt,responseType:vt,withCredentials:je})}}var fe=(()=>((fe=fe||{})[fe.Sent=0]="Sent",fe[fe.UploadProgress=1]="UploadProgress",fe[fe.ResponseHeader=2]="ResponseHeader",fe[fe.DownloadProgress=3]="DownloadProgress",fe[fe.Response=4]="Response",fe[fe.User=5]="User",fe))();class U{constructor(G,Q=200,Fe="OK"){this.headers=G.headers||new E,this.status=void 0!==G.status?G.status:Q,this.statusText=G.statusText||Fe,this.url=G.url||null,this.ok=this.status>=200&&this.status<300}}class J extends U{constructor(G={}){super(G),this.type=fe.ResponseHeader}clone(G={}){return new J({headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class Me extends U{constructor(G={}){super(G),this.type=fe.Response,this.body=void 0!==G.body?G.body:null}clone(G={}){return new Me({body:void 0!==G.body?G.body:this.body,headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class se extends U{constructor(G){super(G,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${G.url||"(unknown url)"}`:`Http failure response for ${G.url||"(unknown url)"}: ${G.status} ${G.statusText}`,this.error=G.error||null}}function we(B,G){return{body:G,headers:B.headers,context:B.context,observe:B.observe,params:B.params,reportProgress:B.reportProgress,responseType:B.responseType,withCredentials:B.withCredentials}}let ue=(()=>{class B{constructor(Q){this.handler=Q}request(Q,Fe,Je={}){let vt;if(Q instanceof me)vt=Q;else{let zt,jt;zt=Je.headers instanceof E?Je.headers:new E(Je.headers),Je.params&&(jt=Je.params instanceof ie?Je.params:new ie({fromObject:Je.params})),vt=new me(Q,Fe,void 0!==Je.body?Je.body:null,{headers:zt,context:Je.context,params:jt,reportProgress:Je.reportProgress,responseType:Je.responseType||"json",withCredentials:Je.withCredentials})}const Tt=(0,l.of)(vt).pipe((0,m.b)(zt=>this.handler.handle(zt)));if(Q instanceof me||"events"===Je.observe)return Tt;const je=Tt.pipe((0,A.h)(zt=>zt instanceof Me));switch(Je.observe||"body"){case"body":switch(vt.responseType){case"arraybuffer":return je.pipe((0,b.U)(zt=>{if(null!==zt.body&&!(zt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return zt.body}));case"blob":return je.pipe((0,b.U)(zt=>{if(null!==zt.body&&!(zt.body instanceof Blob))throw new Error("Response is not a Blob.");return zt.body}));case"text":return je.pipe((0,b.U)(zt=>{if(null!==zt.body&&"string"!=typeof zt.body)throw new Error("Response is not a string.");return zt.body}));default:return je.pipe((0,b.U)(zt=>zt.body))}case"response":return je;default:throw new Error(`Unreachable: unhandled observe type ${Je.observe}}`)}}delete(Q,Fe={}){return this.request("DELETE",Q,Fe)}get(Q,Fe={}){return this.request("GET",Q,Fe)}head(Q,Fe={}){return this.request("HEAD",Q,Fe)}jsonp(Q,Fe){return this.request("JSONP",Q,{params:(new ie).append(Fe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Q,Fe={}){return this.request("OPTIONS",Q,Fe)}patch(Q,Fe,Je={}){return this.request("PATCH",Q,we(Je,Fe))}post(Q,Fe,Je={}){return this.request("POST",Q,we(Je,Fe))}put(Q,Fe,Je={}){return this.request("PUT",Q,we(Je,Fe))}}return B.\u0275fac=function(Q){return new(Q||B)(o.LFG(D))},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac}),B})();class Ye{constructor(G,Q){this.next=G,this.interceptor=Q}handle(G){return this.interceptor.intercept(G,this.next)}}const We=new o.OlP("HTTP_INTERCEPTORS");let rt=(()=>{class B{intercept(Q,Fe){return Fe.handle(Q)}}return B.\u0275fac=function(Q){return new(Q||B)},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac}),B})(),wt=0;class Ct{}let It=(()=>{class B{constructor(Q,Fe){this.callbackMap=Q,this.document=Fe,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+wt++}handle(Q){if("JSONP"!==Q.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==Q.responseType)throw new Error("JSONP requests must use Json response type.");return new K.y(Fe=>{const Je=this.nextCallback(),vt=Q.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${Je}$1`),Tt=this.document.createElement("script");Tt.src=vt;let je=null,zt=!1,jt=!1;this.callbackMap[Je]=an=>{delete this.callbackMap[Je],!jt&&(je=an,zt=!0)};const Bt=()=>{Tt.parentNode&&Tt.parentNode.removeChild(Tt),delete this.callbackMap[Je]},vn=an=>{jt||this.resolvedPromise.then(()=>{Bt(),zt?(Fe.next(new Me({body:je,status:200,statusText:"OK",url:vt})),Fe.complete()):Fe.error(new se({url:vt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},cn=an=>{jt||(Bt(),Fe.error(new se({error:an,status:0,statusText:"JSONP Error",url:vt})))};return Tt.addEventListener("load",vn),Tt.addEventListener("error",cn),this.document.body.appendChild(Tt),Fe.next({type:fe.Sent}),()=>{jt=!0,Tt.removeEventListener("load",vn),Tt.removeEventListener("error",cn),Bt()}})}}return B.\u0275fac=function(Q){return new(Q||B)(o.LFG(Ct),o.LFG(r.K0))},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac}),B})(),Xe=(()=>{class B{constructor(Q){this.jsonp=Q}intercept(Q,Fe){return"JSONP"===Q.method?this.jsonp.handle(Q):Fe.handle(Q)}}return B.\u0275fac=function(Q){return new(Q||B)(o.LFG(It))},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac}),B})();const lt=/^\)\]\}',?\n/;let Lt=(()=>{class B{constructor(Q){this.xhrFactory=Q}handle(Q){if("JSONP"===Q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new K.y(Fe=>{const Je=this.xhrFactory.build();if(Je.open(Q.method,Q.urlWithParams),Q.withCredentials&&(Je.withCredentials=!0),Q.headers.forEach((an,nn)=>Je.setRequestHeader(an,nn.join(","))),Q.headers.has("Accept")||Je.setRequestHeader("Accept","application/json, text/plain, */*"),!Q.headers.has("Content-Type")){const an=Q.detectContentTypeHeader();null!==an&&Je.setRequestHeader("Content-Type",an)}if(Q.responseType){const an=Q.responseType.toLowerCase();Je.responseType="json"!==an?an:"text"}const vt=Q.serializeBody();let Tt=null;const je=()=>{if(null!==Tt)return Tt;const an=1223===Je.status?204:Je.status,nn=Je.statusText||"OK",Gn=new E(Je.getAllResponseHeaders()),xn=function ct(B){return"responseURL"in B&&B.responseURL?B.responseURL:/^X-Request-URL:/m.test(B.getAllResponseHeaders())?B.getResponseHeader("X-Request-URL"):null}(Je)||Q.url;return Tt=new J({headers:Gn,status:an,statusText:nn,url:xn}),Tt},zt=()=>{let{headers:an,status:nn,statusText:Gn,url:xn}=je(),yn=null;204!==nn&&(yn=void 0===Je.response?Je.responseText:Je.response),0===nn&&(nn=yn?200:0);let _n=nn>=200&&nn<300;if("json"===Q.responseType&&"string"==typeof yn){const un=yn;yn=yn.replace(lt,"");try{yn=""!==yn?JSON.parse(yn):null}catch(Dt){yn=un,_n&&(_n=!1,yn={error:Dt,text:yn})}}_n?(Fe.next(new Me({body:yn,headers:an,status:nn,statusText:Gn,url:xn||void 0})),Fe.complete()):Fe.error(new se({error:yn,headers:an,status:nn,statusText:Gn,url:xn||void 0}))},jt=an=>{const{url:nn}=je(),Gn=new se({error:an,status:Je.status||0,statusText:Je.statusText||"Unknown Error",url:nn||void 0});Fe.error(Gn)};let Bt=!1;const vn=an=>{Bt||(Fe.next(je()),Bt=!0);let nn={type:fe.DownloadProgress,loaded:an.loaded};an.lengthComputable&&(nn.total=an.total),"text"===Q.responseType&&!!Je.responseText&&(nn.partialText=Je.responseText),Fe.next(nn)},cn=an=>{let nn={type:fe.UploadProgress,loaded:an.loaded};an.lengthComputable&&(nn.total=an.total),Fe.next(nn)};return Je.addEventListener("load",zt),Je.addEventListener("error",jt),Je.addEventListener("timeout",jt),Je.addEventListener("abort",jt),Q.reportProgress&&(Je.addEventListener("progress",vn),null!==vt&&Je.upload&&Je.upload.addEventListener("progress",cn)),Je.send(vt),Fe.next({type:fe.Sent}),()=>{Je.removeEventListener("error",jt),Je.removeEventListener("abort",jt),Je.removeEventListener("load",zt),Je.removeEventListener("timeout",jt),Q.reportProgress&&(Je.removeEventListener("progress",vn),null!==vt&&Je.upload&&Je.upload.removeEventListener("progress",cn)),Je.readyState!==Je.DONE&&Je.abort()}})}}return B.\u0275fac=function(Q){return new(Q||B)(o.LFG(r.JF))},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac}),B})();const Ie=new o.OlP("XSRF_COOKIE_NAME"),Pt=new o.OlP("XSRF_HEADER_NAME");class pt{}let Et=(()=>{class B{constructor(Q,Fe,Je){this.doc=Q,this.platform=Fe,this.cookieName=Je,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Q=this.doc.cookie||"";return Q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,r.Mx)(Q,this.cookieName),this.lastCookieString=Q),this.lastToken}}return B.\u0275fac=function(Q){return new(Q||B)(o.LFG(r.K0),o.LFG(o.Lbi),o.LFG(Ie))},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac}),B})(),ot=(()=>{class B{constructor(Q,Fe){this.tokenService=Q,this.headerName=Fe}intercept(Q,Fe){const Je=Q.url.toLowerCase();if("GET"===Q.method||"HEAD"===Q.method||Je.startsWith("http://")||Je.startsWith("https://"))return Fe.handle(Q);const vt=this.tokenService.getToken();return null!==vt&&!Q.headers.has(this.headerName)&&(Q=Q.clone({headers:Q.headers.set(this.headerName,vt)})),Fe.handle(Q)}}return B.\u0275fac=function(Q){return new(Q||B)(o.LFG(pt),o.LFG(Pt))},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac}),B})(),en=(()=>{class B{constructor(Q,Fe){this.backend=Q,this.injector=Fe,this.chain=null}handle(Q){if(null===this.chain){const Fe=this.injector.get(We,[]);this.chain=Fe.reduceRight((Je,vt)=>new Ye(Je,vt),this.backend)}return this.chain.handle(Q)}}return B.\u0275fac=function(Q){return new(Q||B)(o.LFG(C),o.LFG(o.zs3))},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac}),B})();function Ve(){return"object"==typeof window?window:{}}let ye=(()=>{class B{static disable(){return{ngModule:B,providers:[{provide:ot,useClass:rt}]}}static withOptions(Q={}){return{ngModule:B,providers:[Q.cookieName?{provide:Ie,useValue:Q.cookieName}:[],Q.headerName?{provide:Pt,useValue:Q.headerName}:[]]}}}return B.\u0275fac=function(Q){return new(Q||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({providers:[ot,{provide:We,useExisting:ot,multi:!0},{provide:pt,useClass:Et},{provide:Ie,useValue:"XSRF-TOKEN"},{provide:Pt,useValue:"X-XSRF-TOKEN"}]}),B})(),yt=(()=>{class B{}return B.\u0275fac=function(Q){return new(Q||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({providers:[ue,{provide:D,useClass:en},Lt,{provide:C,useExisting:Lt}],imports:[[ye.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),B})(),Mt=(()=>{class B{}return B.\u0275fac=function(Q){return new(Q||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({providers:[It,{provide:Ct,useFactory:Ve},{provide:We,useClass:Xe,multi:!0}]}),B})()},5e3:(Ft,Pe,c)=>{c.d(Pe,{deG:()=>Go,tb:()=>wh,AFp:()=>Mh,ip1:()=>a2,CZH:()=>Js,hGG:()=>Qp,z2F:()=>Fa,sBO:()=>wp,Sil:()=>l2,_Vd:()=>Da,EJc:()=>Th,SBq:()=>Ta,qLn:()=>ks,vpe:()=>Sr,gxx:()=>va,tBr:()=>xs,XFs:()=>Ve,OlP:()=>ci,zs3:()=>$o,ZZ4:()=>sl,aQg:()=>al,soG:()=>ol,YKP:()=>x0,h0i:()=>Ks,PXZ:()=>vp,R0b:()=>Qo,FiY:()=>Nr,Lbi:()=>Eh,g9A:()=>zh,n_E:()=>qc,Qsj:()=>r7,FYo:()=>w0,JOm:()=>pr,q3G:()=>Li,tp0:()=>$r,Rgc:()=>Pa,dDg:()=>Oh,DyG:()=>Xs,GfV:()=>D0,s_b:()=>el,ifc:()=>vt,eFA:()=>Fh,Ez6:()=>Xe,G48:()=>Ep,Gpc:()=>S,f3M:()=>B2,X6Q:()=>zp,_c5:()=>Yp,VLi:()=>pp,c2e:()=>Dh,zSh:()=>Ac,wAp:()=>Kn,vHH:()=>k,EiD:()=>Al,mCW:()=>Ps,qzn:()=>Zr,JVY:()=>a3,pB0:()=>u3,eBb:()=>El,L6k:()=>c3,LAX:()=>l3,cg1:()=>N4,kL8:()=>Ku,yhl:()=>zl,dqk:()=>Bt,sIi:()=>Hs,CqO:()=>iu,QGY:()=>w4,F4k:()=>nu,dwT:()=>e5,RDi:()=>Uo,AaK:()=>D,z3N:()=>Er,qOj:()=>Nc,TTD:()=>Yi,_Bn:()=>M0,xp6:()=>v1,uIk:()=>Bc,Tol:()=>zu,Gre:()=>Lu,ekj:()=>A4,Suo:()=>eh,Xpm:()=>Ge,lG2:()=>Z,Yz7:()=>It,cJS:()=>lt,oAB:()=>de,Yjl:()=>oe,Y36:()=>Ca,_UZ:()=>X8,GkF:()=>eu,BQk:()=>E4,ynx:()=>z4,qZA:()=>M4,TgZ:()=>b4,EpF:()=>tu,n5z:()=>sn,LFG:()=>Zi,$8M:()=>gn,$Z:()=>q8,NdJ:()=>D4,CRH:()=>th,O4$:()=>ki,oxw:()=>su,ALo:()=>j0,lcZ:()=>U0,xi3:()=>G0,Dn7:()=>W0,Hsn:()=>cu,F$t:()=>au,Q6J:()=>_4,s9C:()=>x4,MGl:()=>jc,hYB:()=>O4,DdM:()=>F0,VKq:()=>k0,WLB:()=>I0,kEZ:()=>V0,l5B:()=>L0,iGM:()=>q0,MAs:()=>B8,CHM:()=>u,oJD:()=>Fl,LSH:()=>$a,B6R:()=>St,kYT:()=>ut,Akn:()=>vr,Udp:()=>P4,WFA:()=>T4,d8E:()=>L4,YNc:()=>H8,W1O:()=>rh,_uU:()=>Ou,Oqu:()=>k4,hij:()=>Gc,AsE:()=>I4,lnq:()=>V4,Gf:()=>X0});var r=c(8929),o=c(2654),l=c(2916),K=c(6787),m=c(2474);function A(e){for(let t in e)if(e[t]===A)return t;throw Error("Could not find renamed property on target object.")}function b(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function D(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(D).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function C(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const E=A({__forward_ref__:A});function S(e){return e.__forward_ref__=S,e.toString=function(){return D(this())},e}function w(e){return z(e)?e():e}function z(e){return"function"==typeof e&&e.hasOwnProperty(E)&&e.__forward_ref__===S}class k extends Error{constructor(t,n){super(function N(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function ie(e){return"string"==typeof e?e:null==e?"":String(e)}function ce(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ie(e)}function ae(e,t){const n=t?` in ${t}`:"";throw new k(-201,`No provider for ${ce(e)} found${n}`)}function wt(e,t){null==e&&function Ae(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function It(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Xe=It;function lt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ct(e){return Lt(e,Et)||Lt(e,en)}function Lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function pt(e){return e&&(e.hasOwnProperty(ot)||e.hasOwnProperty(Ne))?e[ot]:null}const Et=A({\u0275prov:A}),ot=A({\u0275inj:A}),en=A({ngInjectableDef:A}),Ne=A({ngInjectorDef:A});var Ve=(()=>((Ve=Ve||{})[Ve.Default=0]="Default",Ve[Ve.Host=1]="Host",Ve[Ve.Self=2]="Self",Ve[Ve.SkipSelf=4]="SkipSelf",Ve[Ve.Optional=8]="Optional",Ve))();let ye;function Mt(e){const t=ye;return ye=e,t}function Ke(e,t,n){const i=ct(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ve.Optional?null:void 0!==t?t:void ae(D(e),"Injector")}function G(e){return{toString:e}.toString()}var Q=(()=>((Q=Q||{})[Q.OnPush=0]="OnPush",Q[Q.Default=1]="Default",Q))(),vt=(()=>{return(e=vt||(vt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",vt;var e})();const Tt="undefined"!=typeof globalThis&&globalThis,je="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bt=Tt||"undefined"!=typeof global&&global||je||zt,an={},nn=[],Gn=A({\u0275cmp:A}),xn=A({\u0275dir:A}),yn=A({\u0275pipe:A}),_n=A({\u0275mod:A}),un=A({\u0275fac:A}),Dt=A({__NG_ELEMENT_ID__:A});let it=0;function Ge(e){return G(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Q.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||nn,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||vt.Emulated,id:"c",styles:e.styles||nn,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,a=e.features,f=e.pipes;return i.id+=it++,i.inputs=I(e.inputs,n),i.outputs=I(e.outputs),a&&a.forEach(_=>_(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(xe):null,i.pipeDefs=f?()=>("function"==typeof f?f():f).map(xt):null,i})}function St(e,t,n){const i=e.\u0275cmp;i.directiveDefs=()=>t.map(xe),i.pipeDefs=()=>n.map(xt)}function xe(e){return De(e)||function ft(e){return e[xn]||null}(e)}function xt(e){return function Jt(e){return e[yn]||null}(e)}const ge={};function de(e){return G(()=>{const t={type:e.type,bootstrap:e.bootstrap||nn,declarations:e.declarations||nn,imports:e.imports||nn,exports:e.exports||nn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ge[e.id]=e.type),t})}function ut(e,t){return G(()=>{const n=ee(e,!0);n.declarations=t.declarations||nn,n.imports=t.imports||nn,n.exports=t.exports||nn})}function I(e,t){if(null==e)return an;const n={};for(const i in e)if(e.hasOwnProperty(i)){let s=e[i],a=s;Array.isArray(s)&&(a=s[1],s=s[0]),n[s]=i,t&&(t[s]=a)}return n}const Z=Ge;function oe(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function De(e){return e[Gn]||null}function ee(e,t){const n=e[_n]||null;if(!n&&!0===t)throw new Error(`Type ${D(e)} does not have '\u0275mod' property.`);return n}function dn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Mn(e){return Array.isArray(e)&&!0===e[1]}function jn(e){return 0!=(8&e.flags)}function Ci(e){return 2==(2&e.flags)}function ii(e){return 1==(1&e.flags)}function si(e){return null!==e.template}function pi(e){return 0!=(512&e[2])}function xi(e,t){return e.hasOwnProperty(un)?e[un]:null}class Yo{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Yi(){return po}function po(e){return e.type.prototype.ngOnChanges&&(e.setInput=eo),mo}function mo(){const e=jo(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===an)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function eo(e,t,n,i){const s=jo(e)||function to(e,t){return e[ao]=t}(e,{previous:an,current:null}),a=s.current||(s.current={}),f=s.previous,_=this.declaredInputs[n],P=f[_];a[_]=new Yo(P&&P.currentValue,t,f===an),e[i]=t}Yi.ngInherit=!0;const ao="__ngSimpleChanges__";function jo(e){return e[ao]||null}const Oi="http://www.w3.org/2000/svg";let Oo;function Uo(e){Oo=e}function zi(){return void 0!==Oo?Oo:"undefined"!=typeof document?document:void 0}function vi(e){return!!e.listen}const ji={createRenderer:(e,t)=>zi()};function Zn(e){for(;Array.isArray(e);)e=e[0];return e}function W(e,t){return Zn(t[e])}function ze(e,t){return Zn(t[e.index])}function bt(e,t){return e.data[t]}function Zt(e,t){return e[t]}function Cn(e,t){const n=t[e];return dn(n)?n:n[0]}function li(e){return 4==(4&e[2])}function ni(e){return 128==(128&e[2])}function $n(e,t){return null==t?null:e[t]}function hi(e){e[18]=0}function gi(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const An={lFrame:go(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Te(){return An.bindingsEnabled}function Kt(){return An.lFrame.lView}function re(){return An.lFrame.tView}function u(e){return An.lFrame.contextLView=e,e[8]}function d(){let e=x();for(;null!==e&&64===e.type;)e=e.parent;return e}function x(){return An.lFrame.currentTNode}function Se(e,t){const n=An.lFrame;n.currentTNode=e,n.isParent=t}function qe(){return An.lFrame.isParent}function nt(){An.lFrame.isParent=!1}function hn(){return An.isInCheckNoChangesMode}function Sn(e){An.isInCheckNoChangesMode=e}function Pn(){const e=An.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wn(){return An.lFrame.bindingIndex}function Vn(){return An.lFrame.bindingIndex++}function Hn(e){const t=An.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ai(e,t){const n=An.lFrame;n.bindingIndex=n.bindingRootIndex=e,co(t)}function co(e){An.lFrame.currentDirectiveIndex=e}function Ri(e){const t=An.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Pi(){return An.lFrame.currentQueryIndex}function Ki(e){An.lFrame.currentQueryIndex=e}function Ui(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function io(e,t,n){if(n&Ve.SkipSelf){let s=t,a=e;for(;!(s=s.parent,null!==s||n&Ve.Host||(s=Ui(a),null===s||(a=a[15],10&s.type))););if(null===s)return!1;t=s,e=a}const i=An.lFrame=Ao();return i.currentTNode=t,i.lView=e,!0}function Po(e){const t=Ao(),n=e[1];An.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ao(){const e=An.lFrame,t=null===e?null:e.child;return null===t?go(e):t}function go(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Fo(){const e=An.lFrame;return An.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const sr=Fo;function Tn(){const e=Fo();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Bn(){return An.lFrame.selectedIndex}function yi(e){An.lFrame.selectedIndex=e}function ui(){const e=An.lFrame;return bt(e.tView,e.selectedIndex)}function ki(){An.lFrame.currentNamespace=Oi}function Qi(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[P]<0&&(e[18]+=65536),(_>11>16&&(3&e[2])===t){e[2]+=2048;try{a.call(_)}finally{}}}else try{a.call(_)}finally{}}class tr{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Or(e,t,n){const i=vi(e);let s=0;for(;st){f=a-1;break}}}for(;a>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let ur=!0;function Ar(e){const t=ur;return ur=e,t}let ka=0;function v(e,t){const n=H(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,g(i.data,e),g(t,null),g(i.blueprint,null));const s=q(e,t),a=e.injectorIndex;if(Vr(s)){const f=lr(s),_=zr(s,t),P=_[1].data;for(let ne=0;ne<8;ne++)t[a+ne]=_[f+ne]|P[f+ne]}return t[a+8]=s,a}function g(e,t){e.push(0,0,0,0,0,0,0,0,t)}function H(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function q(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,s=t;for(;null!==s;){const a=s[1],f=a.type;if(i=2===f?a.declTNode:1===f?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function be(e,t,n){!function O(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Dt)&&(i=n[Dt]),null==i&&(i=n[Dt]=ka++);const s=255&i;t.data[e+(s>>5)]|=1<=0?255&t:V:t}(n);if("function"==typeof a){if(!io(t,e,i))return i&Ve.Host?ht(s,n,i):$t(t,n,i,s);try{const f=a(i);if(null!=f||i&Ve.Optional)return f;ae(n)}finally{sr()}}else if("number"==typeof a){let f=null,_=H(e,t),P=-1,ne=i&Ve.Host?t[16][6]:null;for((-1===_||i&Ve.SkipSelf)&&(P=-1===_?q(e,t):t[_+8],-1!==P&&Gt(i,!1)?(f=t[1],_=lr(P),t=zr(P,t)):_=-1);-1!==_;){const pe=t[1];if(Yt(a,_,pe.data)){const Be=X(_,t,n,f,i,ne);if(Be!==Y)return Be}P=t[_+8],-1!==P&&Gt(i,t[1].data[_+8]===ne)&&Yt(a,_,t)?(f=pe,_=lr(P),t=zr(P,t)):_=-1}}}return $t(t,n,i,s)}const Y={};function V(){return new Nt(d(),Kt())}function X(e,t,n,i,s,a){const f=t[1],_=f.data[e+8],pe=Oe(_,f,n,null==i?Ci(_)&&ur:i!=f&&0!=(3&_.type),s&Ve.Host&&a===_);return null!==pe?Ze(t,f,pe,_):Y}function Oe(e,t,n,i,s){const a=e.providerIndexes,f=t.data,_=1048575&a,P=e.directiveStart,pe=a>>20,dt=s?_+pe:e.directiveEnd;for(let At=i?_:_+pe;At=P&&Qt.type===n)return At}if(s){const At=f[P];if(At&&si(At)&&At.type===n)return P}return null}function Ze(e,t,n,i){let s=e[n];const a=t.data;if(function gs(e){return e instanceof tr}(s)){const f=s;f.resolving&&function ve(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new k(-200,`Circular dependency in DI detected for ${e}${n}`)}(ce(a[n]));const _=Ar(f.canSeeViewProviders);f.resolving=!0;const P=f.injectImpl?Mt(f.injectImpl):null;io(e,i,Ve.Default);try{s=e[n]=f.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function mi(e,t,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:a}=t.type.prototype;if(i){const f=po(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,f),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,f)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==P&&Mt(P),Ar(_),f.resolving=!1,sr()}}return s}function Yt(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[un]||ln(t),i=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==i;){const a=s[un]||ln(s);if(a&&a!==n)return a;s=Object.getPrototypeOf(s)}return a=>new a})}function ln(e){return z(e)?()=>{const t=ln(w(e));return t&&t()}:xi(e)}function gn(e){return function $e(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let s=0;for(;s{const i=function ai(e){return function(...n){if(e){const i=e(...n);for(const s in i)this[s]=i[s]}}}(t);function s(...a){if(this instanceof s)return i.apply(this,a),this;const f=new s(...a);return _.annotation=f,_;function _(P,ne,pe){const Be=P.hasOwnProperty(Yn)?P[Yn]:Object.defineProperty(P,Yn,{value:[]})[Yn];for(;Be.length<=pe;)Be.push(null);return(Be[pe]=Be[pe]||[]).push(f),P}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}class ci{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=It({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Go=new ci("AnalyzeForEntryComponents"),Xs=Function;function Wo(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?nr(n,t):t(n))}function cl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ea(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ws(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function O2(e,t,n,i){let s=e.length;if(s==t)e.push(n,i);else if(1===s)e.push(i,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function La(e,t){const n=Wr(e,t);if(n>=0)return e[1|n]}function Wr(e,t){return function hl(e,t,n){let i=0,s=e.length>>n;for(;s!==i;){const a=i+(s-i>>1),f=e[a<t?s=a:i=a+1}return~(s<({token:e})),-1),Nr=Ss(Di("Optional"),8),$r=Ss(Di("SkipSelf"),4);let ra,sa;function Qr(e){var t;return(null===(t=function Ba(){if(void 0===ra&&(ra=null,Bt.trustedTypes))try{ra=Bt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ra}())||void 0===t?void 0:t.createHTML(e))||e}function Cl(e){var t;return(null===(t=function Ya(){if(void 0===sa&&(sa=null,Bt.trustedTypes))try{sa=Bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sa}())||void 0===t?void 0:t.createHTML(e))||e}class Rr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class t3 extends Rr{getTypeName(){return"HTML"}}class n3 extends Rr{getTypeName(){return"Style"}}class o3 extends Rr{getTypeName(){return"Script"}}class r3 extends Rr{getTypeName(){return"URL"}}class s3 extends Rr{getTypeName(){return"ResourceURL"}}function Er(e){return e instanceof Rr?e.changingThisBreaksApplicationSecurity:e}function Zr(e,t){const n=zl(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function zl(e){return e instanceof Rr&&e.getTypeName()||null}function a3(e){return new t3(e)}function c3(e){return new n3(e)}function El(e){return new o3(e)}function l3(e){return new r3(e)}function u3(e){return new s3(e)}class h3{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Qr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class d3{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Qr(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Qr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let s=n.length-1;0Ps(t.trim())).join(", ")),this.buf.push(" ",f,'="',Pl(P),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();ja.hasOwnProperty(n)&&!Tl.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Pl(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const y3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_3=/([^\#-~ |!])/g;function Pl(e){return e.replace(/&/g,"&").replace(y3,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(_3,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let aa;function Al(e,t){let n=null;try{aa=aa||function wl(e){const t=new d3(e);return function f3(){try{return!!(new window.DOMParser).parseFromString(Qr(""),"text/html")}catch(e){return!1}}()?new h3(t):t}(e);let i=t?String(t):"";n=aa.getInertBodyElement(i);let s=5,a=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=a,a=n.innerHTML,n=aa.getInertBodyElement(i)}while(i!==a);return Qr((new v3).sanitizeChildren(Wa(n)||n))}finally{if(n){const i=Wa(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Wa(e){return"content"in e&&function C3(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Li=(()=>((Li=Li||{})[Li.NONE=0]="NONE",Li[Li.HTML=1]="HTML",Li[Li.STYLE=2]="STYLE",Li[Li.SCRIPT=3]="SCRIPT",Li[Li.URL=4]="URL",Li[Li.RESOURCE_URL=5]="RESOURCE_URL",Li))();function Fl(e){const t=As();return t?Cl(t.sanitize(Li.HTML,e)||""):Zr(e,"HTML")?Cl(Er(e)):Al(zi(),ie(e))}function $a(e){const t=As();return t?t.sanitize(Li.URL,e)||"":Zr(e,"URL")?Er(e):Ps(ie(e))}function As(){const e=Kt();return e&&e[12]}const Ll="__ngContext__";function ho(e,t){e[Ll]=t}function Qa(e){const t=function Fs(e){return e[Ll]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ca(e){return e.ngOriginalError}function F3(e,...t){e.error(...t)}class ks{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function A3(e){return e&&e.ngErrorLogger||F3}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ca(t);for(;n&&ca(n);)n=ca(n);return n||null}}const Ul=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Bt))();function fr(e){return e instanceof Function?e():e}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();function qa(e,t){return undefined(e,t)}function Is(e){const t=e[3];return Mn(t)?t[3]:t}function Xa(e){return Ql(e[13])}function ec(e){return Ql(e[4])}function Ql(e){for(;null!==e&&!Mn(e);)e=e[4];return e}function Xr(e,t,n,i,s){if(null!=i){let a,f=!1;Mn(i)?a=i:dn(i)&&(f=!0,i=i[0]);const _=Zn(i);0===e&&null!==n?null==s?t1(t,n,_):Hr(t,n,_,s||null,!0):1===e&&null!==n?Hr(t,n,_,s||null,!0):2===e?function u1(e,t,n){const i=la(e,t);i&&function n6(e,t,n,i){vi(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,_,f):3===e&&t.destroyNode(_),null!=a&&function o6(e,t,n,i,s){const a=n[7];a!==Zn(n)&&Xr(t,e,i,a,s);for(let _=10;_0&&(e[n-1][4]=i[4]);const a=ea(e,10+t);!function K3(e,t){Vs(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const f=a[19];null!==f&&f.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function ql(e,t){if(!(256&t[2])){const n=t[11];vi(n)&&n.destroyNode&&Vs(e,t,n,3,null,null),function J3(e){let t=e[13];if(!t)return oc(e[1],e);for(;t;){let n=null;if(dn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)dn(t)&&oc(t[1],t),t=t[3];null===t&&(t=e),dn(t)&&oc(t[1],t),n=t&&t[4]}t=n}}(t)}}function oc(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function t6(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[s=ne]():i[s=-ne].unsubscribe(),a+=2}else{const f=i[s=n[a+1]];n[a].call(f)}if(null!==i){for(let a=s+1;aa?"":s[Be+1].toLowerCase();const At=8&i?dt:null;if(At&&-1!==f1(At,ne,0)||2&i&&ne!==dt){if(ir(i))return!1;f=!0}}}}else{if(!f&&!ir(i)&&!ir(P))return!1;if(f&&ir(P))continue;f=!1,i=P|1&i}}return ir(i)||f}function ir(e){return 0==(1&e)}function l6(e,t,n,i){if(null===t)return-1;let s=0;if(i||!n){let a=!1;for(;s-1)for(n++;n0?'="'+_+'"':"")+"]"}else 8&i?s+="."+f:4&i&&(s+=" "+f);else""!==s&&!ir(f)&&(t+=lc(a,s),s=""),i=f,a=a||!ir(i);n++}return""!==s&&(t+=lc(a,s)),t}const ei={};function v1(e){y1(re(),Kt(),Bn()+e,hn())}function y1(e,t,n,i){if(!i)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&Hi(t,a,n)}else{const a=e.preOrderHooks;null!==a&&Bi(t,a,0,n)}yi(n)}function da(e,t){return e<<17|t<<2}function or(e){return e>>17&32767}function uc(e){return 2|e}function wr(e){return(131068&e)>>2}function hc(e,t){return-131069&e|t<<2}function dc(e){return 1|e}function O1(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&y1(e,t,20,hn()),n(i,s)}finally{yi(a)}}function A1(e,t,n){if(jn(t)){const s=t.directiveEnd;for(let a=t.directiveStart;a0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(_)!=P&&_.push(P),_.push(i,s,f)}}function H1(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function wc(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function j6(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&Tc(n)}}function Tc(e){for(let i=Xa(e);null!==i;i=ec(i))for(let s=10;s0&&Tc(a)}const n=e[1].components;if(null!==n)for(let i=0;i0&&Tc(s)}}function Q6(e,t){const n=Cn(t,e),i=n[1];(function Z6(e,t){for(let n=t.length;nPromise.resolve(null))();function W1(e){return e[7]||(e[7]=[])}function $1(e){return e.cleanup||(e.cleanup=[])}function K1(e,t,n){return(null===e||si(e))&&(n=function j(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Q1(e,t){const n=e[9],i=n?n.get(ks,null):null;i&&i.handleError(t)}function Z1(e,t,n,i,s){for(let a=0;athis.processProvider(_,t,n)),nr([t],_=>this.processInjectorType(_,[],a)),this.records.set(va,os(void 0,this));const f=this.records.get(Ac);this.scope=null!=f?f.value:null,this.source=s||("object"==typeof t?null:D(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Ds,i=Ve.Default){this.assertNotDestroyed();const s=pl(this),a=Mt(void 0);try{if(!(i&Ve.SkipSelf)){let _=this.records.get(t);if(void 0===_){const P=function h8(e){return"function"==typeof e||"object"==typeof e&&e instanceof ci}(t)&&ct(t);_=P&&this.injectableDefInScope(P)?os(kc(t),Rs):null,this.records.set(t,_)}if(null!=_)return this.hydrate(t,_)}return(i&Ve.Self?q1():this.parent).get(t,n=i&Ve.Optional&&n===Ds?null:n)}catch(f){if("NullInjectorError"===f.name){if((f[ia]=f[ia]||[]).unshift(D(t)),s)throw f;return function j2(e,t,n,i){const s=e[ia];throw t[fl]&&s.unshift(t[fl]),e.message=function U2(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=D(t);if(Array.isArray(t))s=t.map(D).join(" -> ");else if("object"==typeof t){let a=[];for(let f in t)if(t.hasOwnProperty(f)){let _=t[f];a.push(f+":"+("string"==typeof _?JSON.stringify(_):D(_)))}s=`{${a.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${e.replace(L2,"\n ")}`}("\n"+e.message,s,n,i),e.ngTokenPath=s,e[ia]=null,e}(f,t,"R3InjectorError",this.source)}throw f}finally{Mt(a),pl(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,s)=>t.push(D(s))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,"")}processInjectorType(t,n,i){if(!(t=w(t)))return!1;let s=pt(t);const a=null==s&&t.ngModule||void 0,f=void 0===a?t:a,_=-1!==i.indexOf(f);if(void 0!==a&&(s=pt(a)),null==s)return!1;if(null!=s.imports&&!_){let pe;i.push(f);try{nr(s.imports,Be=>{this.processInjectorType(Be,n,i)&&(void 0===pe&&(pe=[]),pe.push(Be))})}finally{}if(void 0!==pe)for(let Be=0;Bethis.processProvider(Qt,dt,At||nn))}}this.injectorDefTypes.add(f);const P=xi(f)||(()=>new f);this.records.set(f,os(P,Rs));const ne=s.providers;if(null!=ne&&!_){const pe=t;nr(ne,Be=>this.processProvider(Be,pe,ne))}return void 0!==a&&void 0!==t.providers}processProvider(t,n,i){let s=rs(t=w(t))?t:w(t&&t.provide);const a=function s8(e,t,n){return n4(e)?os(void 0,e.useValue):os(t4(e),Rs)}(t);if(rs(t)||!0!==t.multi)this.records.get(s);else{let f=this.records.get(s);f||(f=os(void 0,Rs,!0),f.factory=()=>Ra(f.multi),this.records.set(s,f)),s=t,f.multi.push(t)}this.records.set(s,a)}hydrate(t,n){return n.value===Rs&&(n.value=i8,n.value=n.factory()),"object"==typeof n.value&&n.value&&function i4(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=w(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function kc(e){const t=ct(e),n=null!==t?t.factory:xi(e);if(null!==n)return n;if(e instanceof ci)throw new k(204,"");if(e instanceof Function)return function r8(e){const t=e.length;if(t>0)throw ws(t,"?"),new k(204,"");const n=function Ie(e){const t=e&&(e[Et]||e[en]);if(t){const n=function Pt(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new k(204,"")}function t4(e,t,n){let i;if(rs(e)){const s=w(e);return xi(s)||kc(s)}if(n4(e))i=()=>w(e.useValue);else if(function c8(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Ra(e.deps||[]));else if(function a8(e){return!(!e||!e.useExisting)}(e))i=()=>Zi(w(e.useExisting));else{const s=w(e&&(e.useClass||e.provide));if(!function u8(e){return!!e.deps}(e))return xi(s)||kc(s);i=()=>new s(...Ra(e.deps))}return i}function os(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function n4(e){return null!==e&&"object"==typeof e&&R2 in e}function rs(e){return"function"==typeof e}let $o=(()=>{class e{static create(n,i){var s;if(Array.isArray(n))return X1({name:""},i,n,"");{const a=null!==(s=n.name)&&void 0!==s?s:"";return X1({name:a},n.parent,n.providers,a)}}}return e.THROW_IF_NOT_FOUND=Ds,e.NULL=new J1,e.\u0275prov=It({token:e,providedIn:"any",factory:()=>Zi(va)}),e.__NG_ELEMENT_ID__=-1,e})();function C8(e,t){Qi(Qa(e)[1],d())}function Nc(e){let t=function p4(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let s;if(si(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new k(903,"");s=t.\u0275dir}if(s){if(n){i.push(s);const f=e;f.inputs=Rc(e.inputs),f.declaredInputs=Rc(e.declaredInputs),f.outputs=Rc(e.outputs);const _=s.hostBindings;_&&E8(e,_);const P=s.viewQuery,ne=s.contentQueries;if(P&&M8(e,P),ne&&z8(e,ne),b(e.inputs,s.inputs),b(e.declaredInputs,s.declaredInputs),b(e.outputs,s.outputs),si(s)&&s.data.animation){const pe=e.data;pe.animation=(pe.animation||[]).concat(s.data.animation)}}const a=s.features;if(a)for(let f=0;f=0;i--){const s=e[i];s.hostVars=t+=s.hostVars,s.hostAttrs=Pr(s.hostAttrs,n=Pr(n,s.hostAttrs))}}(i)}function Rc(e){return e===an?{}:e===nn?[]:e}function M8(e,t){const n=e.viewQuery;e.viewQuery=n?(i,s)=>{t(i,s),n(i,s)}:t}function z8(e,t){const n=e.contentQueries;e.contentQueries=n?(i,s,a)=>{t(i,s,a),n(i,s,a)}:t}function E8(e,t){const n=e.hostBindings;e.hostBindings=n?(i,s)=>{t(i,s),n(i,s)}:t}let ya=null;function ss(){if(!ya){const e=Bt.Symbol;if(e&&e.iterator)ya=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n_(Zn(fi[i.index])):i.index;if(vi(n)){let fi=null;if(!_&&P&&(fi=function gf(e,t,n,i){const s=e.cleanup;if(null!=s)for(let a=0;aP?_[P]:null}"string"==typeof f&&(a+=2)}return null}(e,t,s,i.index)),null!==fi)(fi.__ngLastListenerFn__||fi).__ngNextListenerFn__=a,fi.__ngLastListenerFn__=a,At=!1;else{a=S4(i,t,Be,a,!1);const Mi=n.listen(Fn,s,a);dt.push(a,Mi),pe&&pe.push(s,Un,tn,tn+1)}}else a=S4(i,t,Be,a,!0),Fn.addEventListener(s,a,f),dt.push(a),pe&&pe.push(s,Un,tn,f)}else a=S4(i,t,Be,a,!1);const Qt=i.outputs;let pn;if(At&&null!==Qt&&(pn=Qt[s])){const En=pn.length;if(En)for(let Fn=0;Fn0;)t=t[15],e--;return t}(e,An.lFrame.contextLView))[8]}(e)}function vf(e,t){let n=null;const i=function u6(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let s=0;s=0}const Ji={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function vu(e){return e.substring(Ji.key,Ji.keyEnd)}function bf(e){return e.substring(Ji.value,Ji.valueEnd)}function yu(e,t){const n=Ji.textEnd;return n===t?-1:(t=Ji.keyEnd=function Ef(e,t,n){for(;t32;)t++;return t}(e,Ji.key=t,n),Us(e,t,n))}function _u(e,t){const n=Ji.textEnd;let i=Ji.key=Us(e,t,n);return n===i?-1:(i=Ji.keyEnd=function wf(e,t,n){let i;for(;t=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=bu(e,i,n),i=Ji.value=Us(e,i,n),i=Ji.valueEnd=function Df(e,t,n){let i=-1,s=-1,a=-1,f=t,_=f;for(;f32&&(_=f),a=s,s=i,i=-33&P}return _}(e,i,n),bu(e,i,n))}function Cu(e){Ji.key=0,Ji.keyEnd=0,Ji.value=0,Ji.valueEnd=0,Ji.textEnd=e.length}function Us(e,t,n){for(;t=0;n=_u(t,n))Du(e,vu(t),bf(t))}function zu(e){_r(Lo,Tr,e,!0)}function Tr(e,t){for(let n=function Mf(e){return Cu(e),yu(e,Us(e,0,Ji.textEnd))}(t);n>=0;n=yu(t,n))Lo(e,vu(t),!0)}function yr(e,t,n,i){const s=Kt(),a=re(),f=Hn(2);a.firstUpdatePass&&wu(a,e,f,i),t!==ei&&fo(s,f,t)&&Tu(a,a.data[Bn()],s,s[11],e,s[f+1]=function kf(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=D(Er(e)))),e}(t,n),i,f)}function _r(e,t,n,i){const s=re(),a=Hn(2);s.firstUpdatePass&&wu(s,null,a,i);const f=Kt();if(n!==ei&&fo(f,a,n)){const _=s.data[Bn()];if(xu(_,i)&&!Eu(s,a)){let P=i?_.classesWithoutHost:_.stylesWithoutHost;null!==P&&(n=C(P,n||"")),C4(s,_,f,n,i)}else!function Ff(e,t,n,i,s,a,f,_){s===ei&&(s=nn);let P=0,ne=0,pe=0=e.expandoStartIndex}function wu(e,t,n,i){const s=e.data;if(null===s[n+1]){const a=s[Bn()],f=Eu(e,n);xu(a,i)&&null===t&&!f&&(t=!1),t=function Sf(e,t,n,i){const s=Ri(e);let a=i?t.residualClasses:t.residualStyles;if(null===s)0===(i?t.classBindings:t.styleBindings)&&(n=ba(n=F4(null,e,t,n,i),t.attrs,i),a=null);else{const f=t.directiveStylingLast;if(-1===f||e[f]!==s)if(n=F4(s,e,t,n,i),null===a){let P=function xf(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==wr(i))return e[or(i)]}(e,t,i);void 0!==P&&Array.isArray(P)&&(P=F4(null,e,t,P[1],i),P=ba(P,t.attrs,i),function Of(e,t,n,i){e[or(n?t.classBindings:t.styleBindings)]=i}(e,t,i,P))}else a=function Pf(e,t,n){let i;const s=t.directiveEnd;for(let a=1+t.directiveStylingLast;a0)&&(ne=!0)}else pe=n;if(s)if(0!==P){const dt=or(e[_+1]);e[i+1]=da(dt,_),0!==dt&&(e[dt+1]=hc(e[dt+1],i)),e[_+1]=function v6(e,t){return 131071&e|t<<17}(e[_+1],i)}else e[i+1]=da(_,0),0!==_&&(e[_+1]=hc(e[_+1],i)),_=i;else e[i+1]=da(P,0),0===_?_=i:e[P+1]=hc(e[P+1],i),P=i;ne&&(e[i+1]=uc(e[i+1])),gu(e,pe,i,!0),gu(e,pe,i,!1),function _f(e,t,n,i,s){const a=s?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&Wr(a,t)>=0&&(n[i+1]=dc(n[i+1]))}(t,pe,e,i,a),f=da(_,P),a?t.classBindings=f:t.styleBindings=f}(s,a,t,n,f,i)}}function F4(e,t,n,i,s){let a=null;const f=n.directiveEnd;let _=n.directiveStylingLast;for(-1===_?_=n.directiveStart:_++;_0;){const P=e[s],ne=Array.isArray(P),pe=ne?P[1]:P,Be=null===pe;let dt=n[s+1];dt===ei&&(dt=Be?nn:void 0);let At=Be?La(dt,i):pe===i?dt:void 0;if(ne&&!Uc(At)&&(At=La(P,i)),Uc(At)&&(_=At,f))return _;const Qt=e[s+1];s=f?or(Qt):wr(Qt)}if(null!==t){let P=a?t.residualClasses:t.residualStyles;null!=P&&(_=La(P,i))}return _}function Uc(e){return void 0!==e}function xu(e,t){return 0!=(e.flags&(t?16:32))}function Ou(e,t=""){const n=Kt(),i=re(),s=e+20,a=i.firstCreatePass?ts(i,s,1,t,null):i.data[s],f=n[s]=function tc(e,t){return vi(e)?e.createText(t):e.createTextNode(t)}(n[11],t);ua(i,n,f,a),Se(a,!1)}function k4(e){return Gc("",e,""),k4}function Gc(e,t,n){const i=Kt(),s=as(i,e,t,n);return s!==ei&&Dr(i,Bn(),s),Gc}function I4(e,t,n,i,s){const a=Kt(),f=cs(a,e,t,n,i,s);return f!==ei&&Dr(a,Bn(),f),I4}function V4(e,t,n,i,s,a,f){const _=Kt(),P=function ls(e,t,n,i,s,a,f,_){const ne=_a(e,Wn(),n,s,f);return Hn(3),ne?t+ie(n)+i+ie(s)+a+ie(f)+_:ei}(_,e,t,n,i,s,a,f);return P!==ei&&Dr(_,Bn(),P),V4}function Lu(e,t,n){_r(Lo,Tr,as(Kt(),e,t,n),!0)}function L4(e,t,n){const i=Kt();if(fo(i,Vn(),t)){const a=re(),f=ui();No(a,f,i,e,t,K1(Ri(a.data),f,i),n,!0)}return L4}const fs=void 0;var Xf=["en",[["a","p"],["AM","PM"],fs],[["AM","PM"],fs,fs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],fs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],fs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",fs,"{1} 'at' {0}",fs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function qf(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Gs={};function e5(e,t,n){"string"!=typeof t&&(n=t,t=e[Kn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Gs[t]=e,n&&(Gs[t][Kn.ExtraData]=n)}function N4(e){const t=function t5(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Qu(t);if(n)return n;const i=t.split("-")[0];if(n=Qu(i),n)return n;if("en"===i)return Xf;throw new Error(`Missing locale data for the locale "${e}".`)}function Ku(e){return N4(e)[Kn.PluralCase]}function Qu(e){return e in Gs||(Gs[e]=Bt.ng&&Bt.ng.common&&Bt.ng.common.locales&&Bt.ng.common.locales[e]),Gs[e]}var Kn=(()=>((Kn=Kn||{})[Kn.LocaleId=0]="LocaleId",Kn[Kn.DayPeriodsFormat=1]="DayPeriodsFormat",Kn[Kn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Kn[Kn.DaysFormat=3]="DaysFormat",Kn[Kn.DaysStandalone=4]="DaysStandalone",Kn[Kn.MonthsFormat=5]="MonthsFormat",Kn[Kn.MonthsStandalone=6]="MonthsStandalone",Kn[Kn.Eras=7]="Eras",Kn[Kn.FirstDayOfWeek=8]="FirstDayOfWeek",Kn[Kn.WeekendRange=9]="WeekendRange",Kn[Kn.DateFormat=10]="DateFormat",Kn[Kn.TimeFormat=11]="TimeFormat",Kn[Kn.DateTimeFormat=12]="DateTimeFormat",Kn[Kn.NumberSymbols=13]="NumberSymbols",Kn[Kn.NumberFormats=14]="NumberFormats",Kn[Kn.CurrencyCode=15]="CurrencyCode",Kn[Kn.CurrencySymbol=16]="CurrencySymbol",Kn[Kn.CurrencyName=17]="CurrencyName",Kn[Kn.Currencies=18]="Currencies",Kn[Kn.Directionality=19]="Directionality",Kn[Kn.PluralCase=20]="PluralCase",Kn[Kn.ExtraData=21]="ExtraData",Kn))();const Wc="en-US";let Zu=Wc;function B4(e,t,n,i,s){if(e=w(e),Array.isArray(e))for(let a=0;a>20;if(rs(e)||!e.multi){const At=new tr(P,s,Ca),Qt=j4(_,t,s?pe:pe+dt,Be);-1===Qt?(be(v(ne,f),a,_),Y4(a,e,t.length),t.push(_),ne.directiveStart++,ne.directiveEnd++,s&&(ne.providerIndexes+=1048576),n.push(At),f.push(At)):(n[Qt]=At,f[Qt]=At)}else{const At=j4(_,t,pe+dt,Be),Qt=j4(_,t,pe,pe+dt),pn=At>=0&&n[At],En=Qt>=0&&n[Qt];if(s&&!En||!s&&!pn){be(v(ne,f),a,_);const Fn=function X5(e,t,n,i,s){const a=new tr(e,n,Ca);return a.multi=[],a.index=t,a.componentProviders=0,b0(a,s,i&&!n),a}(s?q5:J5,n.length,s,i,P);!s&&En&&(n[Qt].providerFactory=Fn),Y4(a,e,t.length,0),t.push(_),ne.directiveStart++,ne.directiveEnd++,s&&(ne.providerIndexes+=1048576),n.push(Fn),f.push(Fn)}else Y4(a,e,At>-1?At:Qt,b0(n[s?Qt:At],P,!s&&i));!s&&i&&En&&n[Qt].componentProviders++}}}function Y4(e,t,n,i){const s=rs(t),a=function l8(e){return!!e.useClass}(t);if(s||a){const P=(a?w(t.useClass):t).prototype.ngOnDestroy;if(P){const ne=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const pe=ne.indexOf(n);-1===pe?ne.push(n,[i,P]):ne[pe+1].push(i,P)}else ne.push(n,P)}}}function b0(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function j4(e,t,n,i){for(let s=n;s{n.providersResolver=(i,s)=>function Z5(e,t,n){const i=re();if(i.firstCreatePass){const s=si(e);B4(n,i.data,i.blueprint,s,!0),B4(t,i.data,i.blueprint,s,!1)}}(i,s?s(e):e,t)}}class z0{}class n7{resolveComponentFactory(t){throw function t7(e){const t=Error(`No component factory found for ${D(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Da=(()=>{class e{}return e.NULL=new n7,e})();function i7(){return $s(d(),Kt())}function $s(e,t){return new Ta(ze(e,t))}let Ta=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=i7,e})();function o7(e){return e instanceof Ta?e.nativeElement:e}class w0{}let r7=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function a7(){const e=Kt(),n=Cn(d().index,e);return function s7(e){return e[11]}(dn(n)?n:e)}(),e})(),c7=(()=>{class e{}return e.\u0275prov=It({token:e,providedIn:"root",factory:()=>null}),e})();class D0{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const l7=new D0("13.1.3"),G4={};function Jc(e,t,n,i,s=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&i.push(Zn(a)),Mn(a))for(let _=10;_-1&&(ic(t,i),ea(n,i))}this._attachedToViewContainer=!1}ql(this._lView[1],this._lView)}onDestroy(t){V1(this._lView[1],this._lView,null,t)}markForCheck(){Sc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Oc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function q6(e,t,n){Sn(!0);try{Oc(e,t,n)}finally{Sn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new k(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Z3(e,t){Vs(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new k(902,"");this._appRef=t}}class u7 extends Sa{constructor(t){super(t),this._view=t}detectChanges(){G1(this._view)}checkNoChanges(){!function X6(e){Sn(!0);try{G1(e)}finally{Sn(!1)}}(this._view)}get context(){return null}}class T0 extends Da{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=De(t);return new W4(n,this.ngModule)}}function S0(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const d7=new ci("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ul});class W4 extends z0{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function m6(e){return e.map(p6).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return S0(this.componentDef.inputs)}get outputs(){return S0(this.componentDef.outputs)}create(t,n,i,s){const a=(s=s||this.ngModule)?function f7(e,t){return{get:(n,i,s)=>{const a=e.get(n,G4,s);return a!==G4||i===G4?a:t.get(n,i,s)}}}(t,s.injector):t,f=a.get(w0,ji),_=a.get(c7,null),P=f.createRenderer(null,this.componentDef),ne=this.componentDef.selectors[0][0]||"div",pe=i?function I1(e,t,n){if(vi(e))return e.selectRootElement(t,n===vt.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(P,i,this.componentDef.encapsulation):nc(f.createRenderer(null,this.componentDef),ne,function h7(e){const t=e.toLowerCase();return"svg"===t?Oi:"math"===t?"http://www.w3.org/1998/MathML/":null}(ne)),Be=this.componentDef.onPush?576:528,dt=function Lc(e,t){return{components:[],scheduler:e||Ul,clean:e8,playerHandler:t||null,flags:0}}(),At=ma(0,null,null,1,0,null,null,null,null,null),Qt=es(null,At,dt,Be,null,null,f,P,_,a);let pn,En;Po(Qt);try{const Fn=function d4(e,t,n,i,s,a){const f=n[1];n[20]=e;const P=ts(f,20,2,"#host",null),ne=P.mergedAttrs=t.hostAttrs;null!==ne&&(Ns(P,ne,!0),null!==e&&(Or(s,e,ne),null!==P.classes&&cc(s,e,P.classes),null!==P.styles&&d1(s,e,P.styles)));const pe=i.createRenderer(e,t),Be=es(n,F1(t),null,t.onPush?64:16,n[20],P,i,pe,a||null,null);return f.firstCreatePass&&(be(v(P,n),f,t.type),wc(f,P),B1(P,n.length,1)),ga(n,Be),n[20]=Be}(pe,this.componentDef,Qt,f,P);if(pe)if(i)Or(P,pe,["ng-version",l7.full]);else{const{attrs:tn,classes:Un}=function g6(e){const t=[],n=[];let i=1,s=2;for(;i0&&cc(P,pe,Un.join(" "))}if(En=bt(At,20),void 0!==n){const tn=En.projection=[];for(let Un=0;UnP(f,t)),t.contentQueries){const P=d();t.contentQueries(1,f,P.directiveStart)}const _=d();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(yi(_.index),R1(n[1],_,0,_.directiveStart,_.directiveEnd,t),H1(t,f)),f}(Fn,this.componentDef,Qt,dt,[C8]),Ls(At,Qt,null)}finally{Tn()}return new m7(this.componentType,pn,$s(En,Qt),Qt,En)}}class m7 extends class e7{}{constructor(t,n,i,s,a){super(),this.location=i,this._rootLView=s,this._tNode=a,this.instance=n,this.hostView=this.changeDetectorRef=new u7(s),this.componentType=t}get injector(){return new Nt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Ks{}class x0{}const Qs=new Map;class A0 extends Ks{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new T0(this);const i=ee(t);this._bootstrapComponents=fr(i.bootstrap),this._r3Injector=e4(t,n,[{provide:Ks,useValue:this},{provide:Da,useValue:this.componentFactoryResolver}],D(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=$o.THROW_IF_NOT_FOUND,i=Ve.Default){return t===$o||t===Ks||t===va?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class $4 extends x0{constructor(t){super(),this.moduleType=t,null!==ee(t)&&function v7(e){const t=new Set;!function n(i){const s=ee(i,!0),a=s.id;null!==a&&(function O0(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${D(t)} vs ${D(t.name)}`)}(a,Qs.get(a),i),Qs.set(a,i));const f=fr(s.imports);for(const _ of f)t.has(_)||(t.add(_),n(_))}(e)}(t)}create(t){return new A0(this.moduleType,t)}}function F0(e,t,n){const i=Pn()+e,s=Kt();return s[i]===ei?gr(s,i,n?t.call(n):t()):function Bs(e,t){return e[t]}(s,i)}function k0(e,t,n,i){return N0(Kt(),Pn(),e,t,n,i)}function I0(e,t,n,i,s){return R0(Kt(),Pn(),e,t,n,i,s)}function V0(e,t,n,i,s,a){return H0(Kt(),Pn(),e,t,n,i,s,a)}function L0(e,t,n,i,s,a,f){return function B0(e,t,n,i,s,a,f,_,P){const ne=t+n;return function Ko(e,t,n,i,s,a){const f=Br(e,t,n,i);return Br(e,t+2,s,a)||f}(e,ne,s,a,f,_)?gr(e,ne+4,P?i.call(P,s,a,f,_):i(s,a,f,_)):xa(e,ne+4)}(Kt(),Pn(),e,t,n,i,s,a,f)}function xa(e,t){const n=e[t];return n===ei?void 0:n}function N0(e,t,n,i,s,a){const f=t+n;return fo(e,f,s)?gr(e,f+1,a?i.call(a,s):i(s)):xa(e,f+1)}function R0(e,t,n,i,s,a,f){const _=t+n;return Br(e,_,s,a)?gr(e,_+2,f?i.call(f,s,a):i(s,a)):xa(e,_+2)}function H0(e,t,n,i,s,a,f,_){const P=t+n;return _a(e,P,s,a,f)?gr(e,P+3,_?i.call(_,s,a,f):i(s,a,f)):xa(e,P+3)}function j0(e,t){const n=re();let i;const s=e+20;n.firstCreatePass?(i=function z7(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const a=i.factory||(i.factory=xi(i.type)),f=Mt(Ca);try{const _=Ar(!1),P=a();return Ar(_),function $d(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Kt(),s,P),P}finally{Mt(f)}}function U0(e,t,n){const i=e+20,s=Kt(),a=Zt(s,i);return Oa(s,i)?N0(s,Pn(),t,a.transform,n,a):a.transform(n)}function G0(e,t,n,i){const s=e+20,a=Kt(),f=Zt(a,s);return Oa(a,s)?R0(a,Pn(),t,f.transform,n,i,f):f.transform(n,i)}function W0(e,t,n,i,s){const a=e+20,f=Kt(),_=Zt(f,a);return Oa(f,a)?H0(f,Pn(),t,_.transform,n,i,s,_):_.transform(n,i,s)}function Oa(e,t){return e[1].data[t].pure}function K4(e){return t=>{setTimeout(e,void 0,t)}}const Sr=class D7 extends r.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var s,a,f;let _=t,P=n||(()=>null),ne=i;if(t&&"object"==typeof t){const Be=t;_=null===(s=Be.next)||void 0===s?void 0:s.bind(Be),P=null===(a=Be.error)||void 0===a?void 0:a.bind(Be),ne=null===(f=Be.complete)||void 0===f?void 0:f.bind(Be)}this.__isAsync&&(P=K4(P),_&&(_=K4(_)),ne&&(ne=K4(ne)));const pe=super.subscribe({next:_,error:P,complete:ne});return t instanceof o.w&&t.add(pe),pe}};function T7(){return this._results[ss()]()}class qc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=ss(),i=qc.prototype;i[n]||(i[n]=T7)}get changes(){return this._changes||(this._changes=new Sr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const s=Wo(t);(this._changesDetected=!function S2(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=O7,e})();const S7=Pa,x7=class extends S7{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=es(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(i[19]=a.createEmbeddedView(n)),Ls(n,i,t),new Sa(i)}};function O7(){return Xc(d(),Kt())}function Xc(e,t){return 4&e.type?new x7(t,e,$s(e,t)):null}let el=(()=>{class e{}return e.__NG_ELEMENT_ID__=P7,e})();function P7(){return Q0(d(),Kt())}const A7=el,$0=class extends A7{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return $s(this._hostTNode,this._hostLView)}get injector(){return new Nt(this._hostTNode,this._hostLView)}get parentInjector(){const t=q(this._hostTNode,this._hostLView);if(Vr(t)){const n=zr(t,this._hostLView),i=lr(t);return new Nt(n[1].data[i+8],n)}return new Nt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=K0(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const s=t.createEmbeddedView(n||{});return this.insert(s,i),s}createComponent(t,n,i,s,a){const f=t&&!function Es(e){return"function"==typeof e}(t);let _;if(f)_=n;else{const Be=n||{};_=Be.index,i=Be.injector,s=Be.projectableNodes,a=Be.ngModuleRef}const P=f?t:new W4(De(t)),ne=i||this.parentInjector;if(!a&&null==P.ngModule&&ne){const Be=ne.get(Ks,null);Be&&(a=Be)}const pe=P.create(ne,s,void 0,a);return this.insert(pe.hostView,_),pe}insert(t,n){const i=t._lView,s=i[1];if(function oi(e){return Mn(e[3])}(i)){const pe=this.indexOf(t);if(-1!==pe)this.detach(pe);else{const Be=i[3],dt=new $0(Be,Be[6],Be[3]);dt.detach(dt.indexOf(t))}}const a=this._adjustIndex(n),f=this._lContainer;!function q3(e,t,n,i){const s=10+i,a=n.length;i>0&&(n[s-1][4]=t),i0)i.push(f[_/2]);else{const ne=a[_+1],pe=t[-P];for(let Be=10;Be{class e{constructor(n){this.appInits=n,this.resolve=il,this.reject=il,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{a.subscribe({complete:_,error:P})});n.push(f)}}Promise.all(n).then(()=>{i()}).catch(s=>{this.reject(s)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Zi(a2,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();const Mh=new ci("AppId"),op={provide:Mh,useFactory:function ip(){return`${c2()}${c2()}${c2()}`},deps:[]};function c2(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const zh=new ci("Platform Initializer"),Eh=new ci("Platform ID"),wh=new ci("appBootstrapListener");let Dh=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();const ol=new ci("LocaleId"),Th=new ci("DefaultCurrencyCode");class rp{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let l2=(()=>{class e{compileModuleSync(n){return new $4(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),a=fr(ee(n).declarations).reduce((f,_)=>{const P=De(_);return P&&f.push(new W4(P)),f},[]);return new rp(i,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();const ap=(()=>Promise.resolve(0))();function u2(e){"undefined"==typeof Zone?ap.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Qo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Sr(!1),this.onMicrotaskEmpty=new Sr(!1),this.onStable=new Sr(!1),this.onError=new Sr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&n,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function cp(){let e=Bt.requestAnimationFrame,t=Bt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function hp(e){const t=()=>{!function up(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,d2(e),e.isCheckStableRunning=!0,h2(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),d2(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,a,f,_)=>{try{return Sh(e),n.invokeTask(s,a,f,_)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),xh(e)}},onInvoke:(n,i,s,a,f,_,P)=>{try{return Sh(e),n.invoke(s,a,f,_,P)}finally{e.shouldCoalesceRunChangeDetection&&t(),xh(e)}},onHasTask:(n,i,s,a)=>{n.hasTask(s,a),i===s&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,d2(e),h2(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,i,s,a)=>(n.handleError(s,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(s)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Qo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Qo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,s){const a=this._inner,f=a.scheduleEventTask("NgZoneEvent: "+s,t,lp,il,il);try{return a.runTask(f,n,i)}finally{a.cancelTask(f)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const lp={};function h2(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function d2(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Sh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function xh(e){e._nesting--,h2(e)}class dp{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Sr,this.onMicrotaskEmpty=new Sr,this.onStable=new Sr,this.onError=new Sr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,s){return t.apply(n,i)}}let Oh=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Qo.assertNotInAngularZone(),u2(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())u2(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,s){let a=-1;i&&i>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(f=>f.timeoutId!==a),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:s})}whenStable(n,i,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,s){return[]}}return e.\u0275fac=function(n){return new(n||e)(Zi(Qo))},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})(),Ph=(()=>{class e{constructor(){this._applications=new Map,f2.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return f2.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();class fp{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function pp(e){f2=e}let Cr,f2=new fp;const Ah=new ci("AllowMultipleToken");class vp{constructor(t,n){this.name=t,this.token=n}}function Fh(e,t,n=[]){const i=`Platform: ${t}`,s=new ci(i);return(a=[])=>{let f=kh();if(!f||f.injector.get(Ah,!1))if(e)e(n.concat(a).concat({provide:s,useValue:!0}));else{const _=n.concat(a).concat({provide:s,useValue:!0},{provide:Ac,useValue:"platform"});!function yp(e){if(Cr&&!Cr.destroyed&&!Cr.injector.get(Ah,!1))throw new k(400,"");Cr=e.get(Ih);const t=e.get(zh,null);t&&t.forEach(n=>n())}($o.create({providers:_,name:i}))}return function _p(e){const t=kh();if(!t)throw new k(401,"");return t}()}}function kh(){return Cr&&!Cr.destroyed?Cr:null}let Ih=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const _=function Cp(e,t){let n;return n="noop"===e?new dp:("zone.js"===e?void 0:e)||new Qo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),P=[{provide:Qo,useValue:_}];return _.run(()=>{const ne=$o.create({providers:P,parent:this.injector,name:n.moduleType.name}),pe=n.create(ne),Be=pe.injector.get(ks,null);if(!Be)throw new k(402,"");return _.runOutsideAngular(()=>{const dt=_.onError.subscribe({next:At=>{Be.handleError(At)}});pe.onDestroy(()=>{p2(this._modules,pe),dt.unsubscribe()})}),function bp(e,t,n){try{const i=n();return w4(i)?i.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(Be,_,()=>{const dt=pe.injector.get(Js);return dt.runInitializers(),dt.donePromise.then(()=>(function r5(e){wt(e,"Expected localeId to be defined"),"string"==typeof e&&(Zu=e.toLowerCase().replace(/_/g,"-"))}(pe.injector.get(ol,Wc)||Wc),this._moduleDoBootstrap(pe),pe))})})}bootstrapModule(n,i=[]){const s=Vh({},i);return function mp(e,t,n){const i=new $4(n);return Promise.resolve(i)}(0,0,n).then(a=>this.bootstrapModuleFactory(a,s))}_moduleDoBootstrap(n){const i=n.injector.get(Fa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new k(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new k(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Zi($o))},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();function Vh(e,t){return Array.isArray(t)?t.reduce(Vh,e):Object.assign(Object.assign({},e),t)}let Fa=(()=>{class e{constructor(n,i,s,a,f){this._zone=n,this._injector=i,this._exceptionHandler=s,this._componentFactoryResolver=a,this._initStatus=f,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const _=new l.y(ne=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ne.next(this._stable),ne.complete()})}),P=new l.y(ne=>{let pe;this._zone.runOutsideAngular(()=>{pe=this._zone.onStable.subscribe(()=>{Qo.assertNotInAngularZone(),u2(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ne.next(!0))})})});const Be=this._zone.onUnstable.subscribe(()=>{Qo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ne.next(!1)}))});return()=>{pe.unsubscribe(),Be.unsubscribe()}});this.isStable=(0,K.T)(_,P.pipe((0,m.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new k(405,"");let s;s=n instanceof z0?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function gp(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Ks),_=s.create($o.NULL,[],i||s.selector,a),P=_.location.nativeElement,ne=_.injector.get(Oh,null),pe=ne&&_.injector.get(Ph);return ne&&pe&&pe.registerApplication(P,ne),_.onDestroy(()=>{this.detachView(_.hostView),p2(this.components,_),pe&&pe.unregisterApplication(P)}),this._loadComponent(_),_}tick(){if(this._runningTick)throw new k(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;p2(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(wh,[]).concat(this._bootstrapListeners).forEach(s=>s(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(Zi(Qo),Zi($o),Zi(ks),Zi(Da),Zi(Js))},e.\u0275prov=It({token:e,factory:e.\u0275fac}),e})();function p2(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Nh=!0,Rh=!1;function zp(){return Rh=!0,Nh}function Ep(){if(Rh)throw new Error("Cannot enable prod mode after platform setup.");Nh=!1}let wp=(()=>{class e{}return e.__NG_ELEMENT_ID__=Dp,e})();function Dp(e){return function Tp(e,t,n){if(Ci(e)&&!n){const i=Cn(e.index,t);return new Sa(i,i)}return 47&e.type?new Sa(t[16],t):null}(d(),Kt(),16==(16&e))}class Gh{constructor(){}supports(t){return Hs(t)}create(t){return new Fp(t)}}const Ap=(e,t)=>t;class Fp{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ap}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,s=0,a=null;for(;n||i;){const f=!i||n&&n.currentIndex<$h(i,s,a)?n:i,_=$h(f,s,a),P=f.currentIndex;if(f===i)s--,i=i._nextRemoved;else if(n=n._next,null==f.previousIndex)s++;else{a||(a=[]);const ne=_-s,pe=P-s;if(ne!=pe){for(let dt=0;dt{f=this._trackByFn(s,_),null!==n&&Object.is(n.trackById,f)?(i&&(n=this._verifyReinsertion(n,_,f,s)),Object.is(n.item,_)||this._addIdentityChange(n,_)):(n=this._mismatch(n,_,f,s),i=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,s){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,a,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,s)):t=this._addAfter(new kp(n,i),a,s),t}_verifyReinsertion(t,n,i,s){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==a?t=this._reinsertAfter(a,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,a=t._nextRemoved;return null===s?this._removalsHead=a:s._nextRemoved=a,null===a?this._removalsTail=s:a._prevRemoved=s,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Wh),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Wh),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class kp{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ip{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Wh{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new Ip,this.map.set(n,i)),i.add(t)}get(t,n){const s=this.map.get(t);return s?s.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $h(e,t,n){const i=e.previousIndex;if(null===i)return i;let s=0;return n&&i{if(n&&n.key===s)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(s,i);n=this._insertBeforeOrAppend(n,a)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const a=s._prev,f=s._next;return a&&(a._next=f),f&&(f._prev=a),s._next=null,s._prev=null,s}const i=new Lp(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class Lp{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Qh(){return new sl([new Gh])}let sl=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const s=i.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Qh()),deps:[[e,new $r,new Nr]]}}find(n){const i=this.factories.find(s=>s.supports(n));if(null!=i)return i;throw new k(901,"")}}return e.\u0275prov=It({token:e,providedIn:"root",factory:Qh}),e})();function Zh(){return new al([new Kh])}let al=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const s=i.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Zh()),deps:[[e,new $r,new Nr]]}}find(n){const i=this.factories.find(a=>a.supports(n));if(i)return i;throw new k(901,"")}}return e.\u0275prov=It({token:e,providedIn:"root",factory:Zh}),e})();const Np=[new Kh],Hp=new sl([new Gh]),Bp=new al(Np),Yp=Fh(null,"core",[{provide:Eh,useValue:"unknown"},{provide:Ih,deps:[$o]},{provide:Ph,deps:[]},{provide:Dh,deps:[]}]),$p=[{provide:Fa,useClass:Fa,deps:[Qo,$o,ks,Da,Js]},{provide:d7,deps:[Qo],useFactory:function Kp(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Js,useClass:Js,deps:[[new Nr,a2]]},{provide:l2,useClass:l2,deps:[]},op,{provide:sl,useFactory:function jp(){return Hp},deps:[]},{provide:al,useFactory:function Up(){return Bp},deps:[]},{provide:ol,useFactory:function Gp(e){return e||function Wp(){return"undefined"!=typeof $localize&&$localize.locale||Wc}()},deps:[[new xs(ol),new Nr,new $r]]},{provide:Th,useValue:"USD"}];let Qp=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Zi(Fa))},e.\u0275mod=de({type:e}),e.\u0275inj=lt({providers:$p}),e})()},4182:(Ft,Pe,c)=>{c.d(Pe,{TO:()=>Nn,ve:()=>ie,Wl:()=>M,Fj:()=>ce,Oe:()=>Jn,NI:()=>Qn,oH:()=>bo,u:()=>Vi,cw:()=>ti,sg:()=>ro,u5:()=>$n,JU:()=>w,a5:()=>Ne,JJ:()=>Ke,JL:()=>B,F:()=>ke,On:()=>si,UX:()=>hi,Q7:()=>ji,kI:()=>He,_Y:()=>pi});var r=c(5e3),o=c(9808),l=c(2916),K=c(6688),m=c(4850),A=c(7830),b=c(5254);function C($,L){return new l.y(F=>{const Te=$.length;if(0===Te)return void F.complete();const Ut=new Array(Te);let On=0,Kt=0;for(let re=0;re{d||(d=!0,Kt++),Ut[re]=x},error:x=>F.error(x),complete:()=>{On++,(On===Te||!d)&&(Kt===Te&&F.next(L?L.reduce((x,he,Se)=>(x[he]=Ut[Se],x),{}):Ut),F.complete())}}))}})}let E=(()=>{class ${constructor(F,Te){this._renderer=F,this._elementRef=Te,this.onChange=Ut=>{},this.onTouched=()=>{}}setProperty(F,Te){this._renderer.setProperty(this._elementRef.nativeElement,F,Te)}registerOnTouched(F){this.onTouched=F}registerOnChange(F){this.onChange=F}setDisabledState(F){this.setProperty("disabled",F)}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(r.Qsj),r.Y36(r.SBq))},$.\u0275dir=r.lG2({type:$}),$})(),S=(()=>{class $ extends E{}return $.\u0275fac=function(){let L;return function(Te){return(L||(L=r.n5z($)))(Te||$)}}(),$.\u0275dir=r.lG2({type:$,features:[r.qOj]}),$})();const w=new r.OlP("NgValueAccessor"),z={provide:w,useExisting:(0,r.Gpc)(()=>M),multi:!0};let M=(()=>{class $ extends S{writeValue(F){this.setProperty("checked",F)}}return $.\u0275fac=function(){let L;return function(Te){return(L||(L=r.n5z($)))(Te||$)}}(),$.\u0275dir=r.lG2({type:$,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(F,Te){1&F&&r.NdJ("change",function(On){return Te.onChange(On.target.checked)})("blur",function(){return Te.onTouched()})},features:[r._Bn([z]),r.qOj]}),$})();const k={provide:w,useExisting:(0,r.Gpc)(()=>ce),multi:!0},ie=new r.OlP("CompositionEventMode");let ce=(()=>{class $ extends E{constructor(F,Te,Ut){super(F,Te),this._compositionMode=Ut,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function N(){const $=(0,o.q)()?(0,o.q)().getUserAgent():"";return/android (\d+)/.test($.toLowerCase())}())}writeValue(F){this.setProperty("value",null==F?"":F)}_handleInput(F){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(F)}_compositionStart(){this._composing=!0}_compositionEnd(F){this._composing=!1,this._compositionMode&&this.onChange(F)}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(ie,8))},$.\u0275dir=r.lG2({type:$,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(F,Te){1&F&&r.NdJ("input",function(On){return Te._handleInput(On.target.value)})("blur",function(){return Te.onTouched()})("compositionstart",function(){return Te._compositionStart()})("compositionend",function(On){return Te._compositionEnd(On.target.value)})},features:[r._Bn([k]),r.qOj]}),$})();function ve($){return null==$||0===$.length}function Le($){return null!=$&&"number"==typeof $.length}const Re=new r.OlP("NgValidators"),ae=new r.OlP("NgAsyncValidators"),Ue=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class He{static min(L){return function me($){return L=>{if(ve(L.value)||ve($))return null;const F=parseFloat(L.value);return!isNaN(F)&&F<$?{min:{min:$,actual:L.value}}:null}}(L)}static max(L){return function fe($){return L=>{if(ve(L.value)||ve($))return null;const F=parseFloat(L.value);return!isNaN(F)&&F>$?{max:{max:$,actual:L.value}}:null}}(L)}static required(L){return U(L)}static requiredTrue(L){return function J($){return!0===$.value?null:{required:!0}}(L)}static email(L){return function Me($){return ve($.value)||Ue.test($.value)?null:{email:!0}}(L)}static minLength(L){return function se($){return L=>ve(L.value)||!Le(L.value)?null:L.value.length<$?{minlength:{requiredLength:$,actualLength:L.value.length}}:null}(L)}static maxLength(L){return function we($){return L=>Le(L.value)&&L.value.length>$?{maxlength:{requiredLength:$,actualLength:L.value.length}}:null}(L)}static pattern(L){return function ue($){if(!$)return Ye;let L,F;return"string"==typeof $?(F="","^"!==$.charAt(0)&&(F+="^"),F+=$,"$"!==$.charAt($.length-1)&&(F+="$"),L=new RegExp(F)):(F=$.toString(),L=$),Te=>{if(ve(Te.value))return null;const Ut=Te.value;return L.test(Ut)?null:{pattern:{requiredPattern:F,actualValue:Ut}}}}(L)}static nullValidator(L){return null}static compose(L){return Ct(L)}static composeAsync(L){return Xe(L)}}function U($){return ve($.value)?{required:!0}:null}function Ye($){return null}function We($){return null!=$}function rt($){const L=(0,r.QGY)($)?(0,b.D)($):$;return(0,r.CqO)(L),L}function wt($){let L={};return $.forEach(F=>{L=null!=F?Object.assign(Object.assign({},L),F):L}),0===Object.keys(L).length?null:L}function Ae($,L){return L.map(F=>F($))}function kt($){return $.map(L=>function mt($){return!$.validate}(L)?L:F=>L.validate(F))}function Ct($){if(!$)return null;const L=$.filter(We);return 0==L.length?null:function(F){return wt(Ae(F,L))}}function It($){return null!=$?Ct(kt($)):null}function Xe($){if(!$)return null;const L=$.filter(We);return 0==L.length?null:function(F){return function D(...$){if(1===$.length){const L=$[0];if((0,K.k)(L))return C(L,null);if((0,A.K)(L)&&Object.getPrototypeOf(L)===Object.prototype){const F=Object.keys(L);return C(F.map(Te=>L[Te]),F)}}if("function"==typeof $[$.length-1]){const L=$.pop();return C($=1===$.length&&(0,K.k)($[0])?$[0]:$,null).pipe((0,m.U)(F=>L(...F)))}return C($,null)}(Ae(F,L).map(rt)).pipe((0,m.U)(wt))}}function lt($){return null!=$?Xe(kt($)):null}function ct($,L){return null===$?[L]:Array.isArray($)?[...$,L]:[$,L]}function Lt($){return $._rawValidators}function Ie($){return $._rawAsyncValidators}function Pt($){return $?Array.isArray($)?$:[$]:[]}function pt($,L){return Array.isArray($)?$.includes(L):$===L}function Et($,L){const F=Pt(L);return Pt($).forEach(Ut=>{pt(F,Ut)||F.push(Ut)}),F}function ot($,L){return Pt(L).filter(F=>!pt($,F))}class en{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(L){this._rawValidators=L||[],this._composedValidatorFn=It(this._rawValidators)}_setAsyncValidators(L){this._rawAsyncValidators=L||[],this._composedAsyncValidatorFn=lt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(L){this._onDestroyCallbacks.push(L)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(L=>L()),this._onDestroyCallbacks=[]}reset(L){this.control&&this.control.reset(L)}hasError(L,F){return!!this.control&&this.control.hasError(L,F)}getError(L,F){return this.control?this.control.getError(L,F):null}}class Ne extends en{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ve extends en{get formDirective(){return null}get path(){return null}}class ye{constructor(L){this._cd=L}is(L){var F,Te,Ut;return"submitted"===L?!!(null===(F=this._cd)||void 0===F?void 0:F.submitted):!!(null===(Ut=null===(Te=this._cd)||void 0===Te?void 0:Te.control)||void 0===Ut?void 0:Ut[L])}}let Ke=(()=>{class $ extends ye{constructor(F){super(F)}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(Ne,2))},$.\u0275dir=r.lG2({type:$,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(F,Te){2&F&&r.ekj("ng-untouched",Te.is("untouched"))("ng-touched",Te.is("touched"))("ng-pristine",Te.is("pristine"))("ng-dirty",Te.is("dirty"))("ng-valid",Te.is("valid"))("ng-invalid",Te.is("invalid"))("ng-pending",Te.is("pending"))},features:[r.qOj]}),$})(),B=(()=>{class $ extends ye{constructor(F){super(F)}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(Ve,10))},$.\u0275dir=r.lG2({type:$,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(F,Te){2&F&&r.ekj("ng-untouched",Te.is("untouched"))("ng-touched",Te.is("touched"))("ng-pristine",Te.is("pristine"))("ng-dirty",Te.is("dirty"))("ng-valid",Te.is("valid"))("ng-invalid",Te.is("invalid"))("ng-pending",Te.is("pending"))("ng-submitted",Te.is("submitted"))},features:[r.qOj]}),$})();function yn($,L){return[...L.path,$]}function _n($,L){Ge($,L),L.valueAccessor.writeValue($.value),function xe($,L){L.valueAccessor.registerOnChange(F=>{$._pendingValue=F,$._pendingChange=!0,$._pendingDirty=!0,"change"===$.updateOn&&ge($,L)})}($,L),function de($,L){const F=(Te,Ut)=>{L.valueAccessor.writeValue(Te),Ut&&L.viewToModelUpdate(Te)};$.registerOnChange(F),L._registerOnDestroy(()=>{$._unregisterOnChange(F)})}($,L),function xt($,L){L.valueAccessor.registerOnTouched(()=>{$._pendingTouched=!0,"blur"===$.updateOn&&$._pendingChange&&ge($,L),"submit"!==$.updateOn&&$.markAsTouched()})}($,L),function it($,L){if(L.valueAccessor.setDisabledState){const F=Te=>{L.valueAccessor.setDisabledState(Te)};$.registerOnDisabledChange(F),L._registerOnDestroy(()=>{$._unregisterOnDisabledChange(F)})}}($,L)}function un($,L,F=!0){const Te=()=>{};L.valueAccessor&&(L.valueAccessor.registerOnChange(Te),L.valueAccessor.registerOnTouched(Te)),St($,L),$&&(L._invokeOnDestroyCallbacks(),$._registerOnCollectionChange(()=>{}))}function Dt($,L){$.forEach(F=>{F.registerOnValidatorChange&&F.registerOnValidatorChange(L)})}function Ge($,L){const F=Lt($);null!==L.validator?$.setValidators(ct(F,L.validator)):"function"==typeof F&&$.setValidators([F]);const Te=Ie($);null!==L.asyncValidator?$.setAsyncValidators(ct(Te,L.asyncValidator)):"function"==typeof Te&&$.setAsyncValidators([Te]);const Ut=()=>$.updateValueAndValidity();Dt(L._rawValidators,Ut),Dt(L._rawAsyncValidators,Ut)}function St($,L){let F=!1;if(null!==$){if(null!==L.validator){const Ut=Lt($);if(Array.isArray(Ut)&&Ut.length>0){const On=Ut.filter(Kt=>Kt!==L.validator);On.length!==Ut.length&&(F=!0,$.setValidators(On))}}if(null!==L.asyncValidator){const Ut=Ie($);if(Array.isArray(Ut)&&Ut.length>0){const On=Ut.filter(Kt=>Kt!==L.asyncValidator);On.length!==Ut.length&&(F=!0,$.setAsyncValidators(On))}}}const Te=()=>{};return Dt(L._rawValidators,Te),Dt(L._rawAsyncValidators,Te),F}function ge($,L){$._pendingDirty&&$.markAsDirty(),$.setValue($._pendingValue,{emitModelToViewChange:!1}),L.viewToModelUpdate($._pendingValue),$._pendingChange=!1}function ut($,L){Ge($,L)}function De($,L){if(!$.hasOwnProperty("model"))return!1;const F=$.model;return!!F.isFirstChange()||!Object.is(L,F.currentValue)}function Jt($,L){$._syncPendingControls(),L.forEach(F=>{const Te=F.control;"submit"===Te.updateOn&&Te._pendingChange&&(F.viewToModelUpdate(Te._pendingValue),Te._pendingChange=!1)})}function ee($,L){if(!L)return null;let F,Te,Ut;return Array.isArray(L),L.forEach(On=>{On.constructor===ce?F=On:function ft($){return Object.getPrototypeOf($.constructor)===S}(On)?Te=On:Ut=On}),Ut||Te||F||null}function T($,L){const F=$.indexOf(L);F>-1&&$.splice(F,1)}const y="VALID",R="INVALID",Ee="PENDING",et="DISABLED";function Qe($){return(on($)?$.validators:$)||null}function _t($){return Array.isArray($)?It($):$||null}function Rt($,L){return(on(L)?L.asyncValidators:$)||null}function qt($){return Array.isArray($)?lt($):$||null}function on($){return null!=$&&!Array.isArray($)&&"object"==typeof $}const Vt=$=>$ instanceof Qn,bn=$=>$ instanceof ti;function fn($){return Vt($)?$.value:$.getRawValue()}function Dn($,L){const F=bn($),Te=$.controls;if(!(F?Object.keys(Te):Te).length)throw new r.vHH(1e3,"");if(!Te[L])throw new r.vHH(1001,"")}function rn($,L){bn($),$._forEachChild((Te,Ut)=>{if(void 0===L[Ut])throw new r.vHH(1002,"")})}class Nn{constructor(L,F){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=L,this._rawAsyncValidators=F,this._composedValidatorFn=_t(this._rawValidators),this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(L){this._rawValidators=this._composedValidatorFn=L}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(L){this._rawAsyncValidators=this._composedAsyncValidatorFn=L}get parent(){return this._parent}get valid(){return this.status===y}get invalid(){return this.status===R}get pending(){return this.status==Ee}get disabled(){return this.status===et}get enabled(){return this.status!==et}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(L){this._rawValidators=L,this._composedValidatorFn=_t(L)}setAsyncValidators(L){this._rawAsyncValidators=L,this._composedAsyncValidatorFn=qt(L)}addValidators(L){this.setValidators(Et(L,this._rawValidators))}addAsyncValidators(L){this.setAsyncValidators(Et(L,this._rawAsyncValidators))}removeValidators(L){this.setValidators(ot(L,this._rawValidators))}removeAsyncValidators(L){this.setAsyncValidators(ot(L,this._rawAsyncValidators))}hasValidator(L){return pt(this._rawValidators,L)}hasAsyncValidator(L){return pt(this._rawAsyncValidators,L)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(L={}){this.touched=!0,this._parent&&!L.onlySelf&&this._parent.markAsTouched(L)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(L=>L.markAllAsTouched())}markAsUntouched(L={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(F=>{F.markAsUntouched({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}markAsDirty(L={}){this.pristine=!1,this._parent&&!L.onlySelf&&this._parent.markAsDirty(L)}markAsPristine(L={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(F=>{F.markAsPristine({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}markAsPending(L={}){this.status=Ee,!1!==L.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!L.onlySelf&&this._parent.markAsPending(L)}disable(L={}){const F=this._parentMarkedDirty(L.onlySelf);this.status=et,this.errors=null,this._forEachChild(Te=>{Te.disable(Object.assign(Object.assign({},L),{onlySelf:!0}))}),this._updateValue(),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},L),{skipPristineCheck:F})),this._onDisabledChange.forEach(Te=>Te(!0))}enable(L={}){const F=this._parentMarkedDirty(L.onlySelf);this.status=y,this._forEachChild(Te=>{Te.enable(Object.assign(Object.assign({},L),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},L),{skipPristineCheck:F})),this._onDisabledChange.forEach(Te=>Te(!1))}_updateAncestors(L){this._parent&&!L.onlySelf&&(this._parent.updateValueAndValidity(L),L.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(L){this._parent=L}updateValueAndValidity(L={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===y||this.status===Ee)&&this._runAsyncValidator(L.emitEvent)),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!L.onlySelf&&this._parent.updateValueAndValidity(L)}_updateTreeValidity(L={emitEvent:!0}){this._forEachChild(F=>F._updateTreeValidity(L)),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?et:y}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(L){if(this.asyncValidator){this.status=Ee,this._hasOwnPendingAsyncValidator=!0;const F=rt(this.asyncValidator(this));this._asyncValidationSubscription=F.subscribe(Te=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Te,{emitEvent:L})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(L,F={}){this.errors=L,this._updateControlsErrors(!1!==F.emitEvent)}get(L){return function gt($,L,F){if(null==L||(Array.isArray(L)||(L=L.split(F)),Array.isArray(L)&&0===L.length))return null;let Te=$;return L.forEach(Ut=>{Te=bn(Te)?Te.controls.hasOwnProperty(Ut)?Te.controls[Ut]:null:($=>$ instanceof Jn)(Te)&&Te.at(Ut)||null}),Te}(this,L,".")}getError(L,F){const Te=F?this.get(F):this;return Te&&Te.errors?Te.errors[L]:null}hasError(L,F){return!!this.getError(L,F)}get root(){let L=this;for(;L._parent;)L=L._parent;return L}_updateControlsErrors(L){this.status=this._calculateStatus(),L&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(L)}_initObservables(){this.valueChanges=new r.vpe,this.statusChanges=new r.vpe}_calculateStatus(){return this._allControlsDisabled()?et:this.errors?R:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ee)?Ee:this._anyControlsHaveStatus(R)?R:y}_anyControlsHaveStatus(L){return this._anyControls(F=>F.status===L)}_anyControlsDirty(){return this._anyControls(L=>L.dirty)}_anyControlsTouched(){return this._anyControls(L=>L.touched)}_updatePristine(L={}){this.pristine=!this._anyControlsDirty(),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}_updateTouched(L={}){this.touched=this._anyControlsTouched(),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}_isBoxedValue(L){return"object"==typeof L&&null!==L&&2===Object.keys(L).length&&"value"in L&&"disabled"in L}_registerOnCollectionChange(L){this._onCollectionChange=L}_setUpdateStrategy(L){on(L)&&null!=L.updateOn&&(this._updateOn=L.updateOn)}_parentMarkedDirty(L){return!L&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Qn extends Nn{constructor(L=null,F,Te){super(Qe(F),Rt(Te,F)),this._onChange=[],this._pendingChange=!1,this._applyFormState(L),this._setUpdateStrategy(F),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(L,F={}){this.value=this._pendingValue=L,this._onChange.length&&!1!==F.emitModelToViewChange&&this._onChange.forEach(Te=>Te(this.value,!1!==F.emitViewToModelChange)),this.updateValueAndValidity(F)}patchValue(L,F={}){this.setValue(L,F)}reset(L=null,F={}){this._applyFormState(L),this.markAsPristine(F),this.markAsUntouched(F),this.setValue(this.value,F),this._pendingChange=!1}_updateValue(){}_anyControls(L){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(L){this._onChange.push(L)}_unregisterOnChange(L){T(this._onChange,L)}registerOnDisabledChange(L){this._onDisabledChange.push(L)}_unregisterOnDisabledChange(L){T(this._onDisabledChange,L)}_forEachChild(L){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(L){this._isBoxedValue(L)?(this.value=this._pendingValue=L.value,L.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=L}}class ti extends Nn{constructor(L,F,Te){super(Qe(F),Rt(Te,F)),this.controls=L,this._initObservables(),this._setUpdateStrategy(F),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(L,F){return this.controls[L]?this.controls[L]:(this.controls[L]=F,F.setParent(this),F._registerOnCollectionChange(this._onCollectionChange),F)}addControl(L,F,Te={}){this.registerControl(L,F),this.updateValueAndValidity({emitEvent:Te.emitEvent}),this._onCollectionChange()}removeControl(L,F={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],this.updateValueAndValidity({emitEvent:F.emitEvent}),this._onCollectionChange()}setControl(L,F,Te={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],F&&this.registerControl(L,F),this.updateValueAndValidity({emitEvent:Te.emitEvent}),this._onCollectionChange()}contains(L){return this.controls.hasOwnProperty(L)&&this.controls[L].enabled}setValue(L,F={}){rn(this,L),Object.keys(L).forEach(Te=>{Dn(this,Te),this.controls[Te].setValue(L[Te],{onlySelf:!0,emitEvent:F.emitEvent})}),this.updateValueAndValidity(F)}patchValue(L,F={}){null!=L&&(Object.keys(L).forEach(Te=>{this.controls[Te]&&this.controls[Te].patchValue(L[Te],{onlySelf:!0,emitEvent:F.emitEvent})}),this.updateValueAndValidity(F))}reset(L={},F={}){this._forEachChild((Te,Ut)=>{Te.reset(L[Ut],{onlySelf:!0,emitEvent:F.emitEvent})}),this._updatePristine(F),this._updateTouched(F),this.updateValueAndValidity(F)}getRawValue(){return this._reduceChildren({},(L,F,Te)=>(L[Te]=fn(F),L))}_syncPendingControls(){let L=this._reduceChildren(!1,(F,Te)=>!!Te._syncPendingControls()||F);return L&&this.updateValueAndValidity({onlySelf:!0}),L}_forEachChild(L){Object.keys(this.controls).forEach(F=>{const Te=this.controls[F];Te&&L(Te,F)})}_setUpControls(){this._forEachChild(L=>{L.setParent(this),L._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(L){for(const F of Object.keys(this.controls)){const Te=this.controls[F];if(this.contains(F)&&L(Te))return!0}return!1}_reduceValue(){return this._reduceChildren({},(L,F,Te)=>((F.enabled||this.disabled)&&(L[Te]=F.value),L))}_reduceChildren(L,F){let Te=L;return this._forEachChild((Ut,On)=>{Te=F(Te,Ut,On)}),Te}_allControlsDisabled(){for(const L of Object.keys(this.controls))if(this.controls[L].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Jn extends Nn{constructor(L,F,Te){super(Qe(F),Rt(Te,F)),this.controls=L,this._initObservables(),this._setUpdateStrategy(F),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(L){return this.controls[L]}push(L,F={}){this.controls.push(L),this._registerControl(L),this.updateValueAndValidity({emitEvent:F.emitEvent}),this._onCollectionChange()}insert(L,F,Te={}){this.controls.splice(L,0,F),this._registerControl(F),this.updateValueAndValidity({emitEvent:Te.emitEvent})}removeAt(L,F={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),this.controls.splice(L,1),this.updateValueAndValidity({emitEvent:F.emitEvent})}setControl(L,F,Te={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),this.controls.splice(L,1),F&&(this.controls.splice(L,0,F),this._registerControl(F)),this.updateValueAndValidity({emitEvent:Te.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(L,F={}){rn(this,L),L.forEach((Te,Ut)=>{Dn(this,Ut),this.at(Ut).setValue(Te,{onlySelf:!0,emitEvent:F.emitEvent})}),this.updateValueAndValidity(F)}patchValue(L,F={}){null!=L&&(L.forEach((Te,Ut)=>{this.at(Ut)&&this.at(Ut).patchValue(Te,{onlySelf:!0,emitEvent:F.emitEvent})}),this.updateValueAndValidity(F))}reset(L=[],F={}){this._forEachChild((Te,Ut)=>{Te.reset(L[Ut],{onlySelf:!0,emitEvent:F.emitEvent})}),this._updatePristine(F),this._updateTouched(F),this.updateValueAndValidity(F)}getRawValue(){return this.controls.map(L=>fn(L))}clear(L={}){this.controls.length<1||(this._forEachChild(F=>F._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:L.emitEvent}))}_syncPendingControls(){let L=this.controls.reduce((F,Te)=>!!Te._syncPendingControls()||F,!1);return L&&this.updateValueAndValidity({onlySelf:!0}),L}_forEachChild(L){this.controls.forEach((F,Te)=>{L(F,Te)})}_updateValue(){this.value=this.controls.filter(L=>L.enabled||this.disabled).map(L=>L.value)}_anyControls(L){return this.controls.some(F=>F.enabled&&L(F))}_setUpControls(){this._forEachChild(L=>this._registerControl(L))}_allControlsDisabled(){for(const L of this.controls)if(L.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(L){L.setParent(this),L._registerOnCollectionChange(this._onCollectionChange)}}const qn={provide:Ve,useExisting:(0,r.Gpc)(()=>ke)},Ce=(()=>Promise.resolve(null))();let ke=(()=>{class $ extends Ve{constructor(F,Te){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.vpe,this.form=new ti({},It(F),lt(Te))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(F){Ce.then(()=>{const Te=this._findContainer(F.path);F.control=Te.registerControl(F.name,F.control),_n(F.control,F),F.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(F)})}getControl(F){return this.form.get(F.path)}removeControl(F){Ce.then(()=>{const Te=this._findContainer(F.path);Te&&Te.removeControl(F.name),T(this._directives,F)})}addFormGroup(F){Ce.then(()=>{const Te=this._findContainer(F.path),Ut=new ti({});ut(Ut,F),Te.registerControl(F.name,Ut),Ut.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(F){Ce.then(()=>{const Te=this._findContainer(F.path);Te&&Te.removeControl(F.name)})}getFormGroup(F){return this.form.get(F.path)}updateModel(F,Te){Ce.then(()=>{this.form.get(F.path).setValue(Te)})}setValue(F){this.control.setValue(F)}onSubmit(F){return this.submitted=!0,Jt(this.form,this._directives),this.ngSubmit.emit(F),!1}onReset(){this.resetForm()}resetForm(F){this.form.reset(F),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(F){return F.pop(),F.length?this.form.get(F):this.form}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(Re,10),r.Y36(ae,10))},$.\u0275dir=r.lG2({type:$,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(F,Te){1&F&&r.NdJ("submit",function(On){return Te.onSubmit(On)})("reset",function(){return Te.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r._Bn([qn]),r.qOj]}),$})();const Ci={provide:Ne,useExisting:(0,r.Gpc)(()=>si)},ii=(()=>Promise.resolve(null))();let si=(()=>{class $ extends Ne{constructor(F,Te,Ut,On){super(),this.control=new Qn,this._registered=!1,this.update=new r.vpe,this._parent=F,this._setValidators(Te),this._setAsyncValidators(Ut),this.valueAccessor=ee(0,On)}ngOnChanges(F){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in F&&this._updateDisabled(F),De(F,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?yn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(F){this.viewModel=F,this.update.emit(F)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){_n(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(F){ii.then(()=>{this.control.setValue(F,{emitViewToModelChange:!1})})}_updateDisabled(F){const Te=F.isDisabled.currentValue,Ut=""===Te||Te&&"false"!==Te;ii.then(()=>{Ut&&!this.control.disabled?this.control.disable():!Ut&&this.control.disabled&&this.control.enable()})}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(Ve,9),r.Y36(Re,10),r.Y36(ae,10),r.Y36(w,10))},$.\u0275dir=r.lG2({type:$,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r._Bn([Ci]),r.qOj,r.TTD]}),$})(),pi=(()=>{class ${}return $.\u0275fac=function(F){return new(F||$)},$.\u0275dir=r.lG2({type:$,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),$})(),qi=(()=>{class ${}return $.\u0275fac=function(F){return new(F||$)},$.\u0275mod=r.oAB({type:$}),$.\u0275inj=r.cJS({}),$})();const Co=new r.OlP("NgModelWithFormControlWarning"),Xi={provide:Ne,useExisting:(0,r.Gpc)(()=>bo)};let bo=(()=>{class $ extends Ne{constructor(F,Te,Ut,On){super(),this._ngModelWarningConfig=On,this.update=new r.vpe,this._ngModelWarningSent=!1,this._setValidators(F),this._setAsyncValidators(Te),this.valueAccessor=ee(0,Ut)}set isDisabled(F){}ngOnChanges(F){if(this._isControlChanged(F)){const Te=F.form.previousValue;Te&&un(Te,this,!1),_n(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}De(F,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&un(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(F){this.viewModel=F,this.update.emit(F)}_isControlChanged(F){return F.hasOwnProperty("form")}}return $._ngModelWarningSentOnce=!1,$.\u0275fac=function(F){return new(F||$)(r.Y36(Re,10),r.Y36(ae,10),r.Y36(w,10),r.Y36(Co,8))},$.\u0275dir=r.lG2({type:$,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r._Bn([Xi]),r.qOj,r.TTD]}),$})();const Do={provide:Ve,useExisting:(0,r.Gpc)(()=>ro)};let ro=(()=>{class $ extends Ve{constructor(F,Te){super(),this.validators=F,this.asyncValidators=Te,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r.vpe,this._setValidators(F),this._setAsyncValidators(Te)}ngOnChanges(F){this._checkFormPresent(),F.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(St(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(F){const Te=this.form.get(F.path);return _n(Te,F),Te.updateValueAndValidity({emitEvent:!1}),this.directives.push(F),Te}getControl(F){return this.form.get(F.path)}removeControl(F){un(F.control||null,F,!1),T(this.directives,F)}addFormGroup(F){this._setUpFormContainer(F)}removeFormGroup(F){this._cleanUpFormContainer(F)}getFormGroup(F){return this.form.get(F.path)}addFormArray(F){this._setUpFormContainer(F)}removeFormArray(F){this._cleanUpFormContainer(F)}getFormArray(F){return this.form.get(F.path)}updateModel(F,Te){this.form.get(F.path).setValue(Te)}onSubmit(F){return this.submitted=!0,Jt(this.form,this.directives),this.ngSubmit.emit(F),!1}onReset(){this.resetForm()}resetForm(F){this.form.reset(F),this.submitted=!1}_updateDomValue(){this.directives.forEach(F=>{const Te=F.control,Ut=this.form.get(F.path);Te!==Ut&&(un(Te||null,F),Vt(Ut)&&(_n(Ut,F),F.control=Ut))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(F){const Te=this.form.get(F.path);ut(Te,F),Te.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(F){if(this.form){const Te=this.form.get(F.path);Te&&function I($,L){return St($,L)}(Te,F)&&Te.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ge(this.form,this),this._oldForm&&St(this._oldForm,this)}_checkFormPresent(){}}return $.\u0275fac=function(F){return new(F||$)(r.Y36(Re,10),r.Y36(ae,10))},$.\u0275dir=r.lG2({type:$,selectors:[["","formGroup",""]],hostBindings:function(F,Te){1&F&&r.NdJ("submit",function(On){return Te.onSubmit(On)})("reset",function(){return Te.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r._Bn([Do]),r.qOj,r.TTD]}),$})();const So={provide:Ne,useExisting:(0,r.Gpc)(()=>Vi)};let Vi=(()=>{class $ extends Ne{constructor(F,Te,Ut,On,Kt){super(),this._ngModelWarningConfig=Kt,this._added=!1,this.update=new r.vpe,this._ngModelWarningSent=!1,this._parent=F,this._setValidators(Te),this._setAsyncValidators(Ut),this.valueAccessor=ee(0,On)}set isDisabled(F){}ngOnChanges(F){this._added||this._setUpControl(),De(F,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(F){this.viewModel=F,this.update.emit(F)}get path(){return yn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return $._ngModelWarningSentOnce=!1,$.\u0275fac=function(F){return new(F||$)(r.Y36(Ve,13),r.Y36(Re,10),r.Y36(ae,10),r.Y36(w,10),r.Y36(Co,8))},$.\u0275dir=r.lG2({type:$,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r._Bn([So]),r.qOj,r.TTD]}),$})();const er={provide:Re,useExisting:(0,r.Gpc)(()=>ji),multi:!0};let ji=(()=>{class ${constructor(){this._required=!1}get required(){return this._required}set required(F){this._required=null!=F&&!1!==F&&"false"!=`${F}`,this._onChange&&this._onChange()}validate(F){return this.required?U(F):null}registerOnValidatorChange(F){this._onChange=F}}return $.\u0275fac=function(F){return new(F||$)},$.\u0275dir=r.lG2({type:$,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(F,Te){2&F&&r.uIk("required",Te.required?"":null)},inputs:{required:"required"},features:[r._Bn([er])]}),$})(),oi=(()=>{class ${}return $.\u0275fac=function(F){return new(F||$)},$.\u0275mod=r.oAB({type:$}),$.\u0275inj=r.cJS({imports:[[qi]]}),$})(),$n=(()=>{class ${}return $.\u0275fac=function(F){return new(F||$)},$.\u0275mod=r.oAB({type:$}),$.\u0275inj=r.cJS({imports:[oi]}),$})(),hi=(()=>{class ${static withConfig(F){return{ngModule:$,providers:[{provide:Co,useValue:F.warnOnNgModelWithFormControl}]}}}return $.\u0275fac=function(F){return new(F||$)},$.\u0275mod=r.oAB({type:$}),$.\u0275inj=r.cJS({imports:[oi]}),$})()},6360:(Ft,Pe,c)=>{c.d(Pe,{Qb:()=>L,PW:()=>On});var r=c(5e3),o=c(2313),l=c(1777);function K(){return"undefined"!=typeof window&&void 0!==window.document}function m(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function A(re){switch(re.length){case 0:return new l.ZN;case 1:return re[0];default:return new l.ZE(re)}}function b(re,u,d,x,he={},Se={}){const qe=[],nt=[];let Ot=-1,Wt=null;if(x.forEach(hn=>{const Sn=hn.offset,Pn=Sn==Ot,Wn=Pn&&Wt||{};Object.keys(hn).forEach(In=>{let Vn=In,Hn=hn[In];if("offset"!==In)switch(Vn=u.normalizePropertyName(Vn,qe),Hn){case l.k1:Hn=he[In];break;case l.l3:Hn=Se[In];break;default:Hn=u.normalizeStyleValue(In,Vn,Hn,qe)}Wn[Vn]=Hn}),Pn||nt.push(Wn),Wt=Wn,Ot=Sn}),qe.length){const hn="\n - ";throw new Error(`Unable to animate due to the following errors:${hn}${qe.join(hn)}`)}return nt}function D(re,u,d,x){switch(u){case"start":re.onStart(()=>x(d&&C(d,"start",re)));break;case"done":re.onDone(()=>x(d&&C(d,"done",re)));break;case"destroy":re.onDestroy(()=>x(d&&C(d,"destroy",re)))}}function C(re,u,d){const x=d.totalTime,Se=E(re.element,re.triggerName,re.fromState,re.toState,u||re.phaseName,null==x?re.totalTime:x,!!d.disabled),qe=re._data;return null!=qe&&(Se._data=qe),Se}function E(re,u,d,x,he="",Se=0,qe){return{element:re,triggerName:u,fromState:d,toState:x,phaseName:he,totalTime:Se,disabled:!!qe}}function S(re,u,d){let x;return re instanceof Map?(x=re.get(u),x||re.set(u,x=d)):(x=re[u],x||(x=re[u]=d)),x}function w(re){const u=re.indexOf(":");return[re.substring(1,u),re.substr(u+1)]}let z=(re,u)=>!1,M=(re,u,d)=>[];(m()||"undefined"!=typeof Element)&&(z=K()?(re,u)=>{for(;u&&u!==document.documentElement;){if(u===re)return!0;u=u.parentNode||u.host}return!1}:(re,u)=>re.contains(u),M=(re,u,d)=>{if(d)return Array.from(re.querySelectorAll(u));const x=re.querySelector(u);return x?[x]:[]});let ie=null,ce=!1;function ve(re){ie||(ie=function Le(){return"undefined"!=typeof document?document.body:null}()||{},ce=!!ie.style&&"WebkitAppearance"in ie.style);let u=!0;return ie.style&&!function N(re){return"ebkit"==re.substring(1,6)}(re)&&(u=re in ie.style,!u&&ce&&(u="Webkit"+re.charAt(0).toUpperCase()+re.substr(1)in ie.style)),u}const Re=z,ae=M;function Ue(re){const u={};return Object.keys(re).forEach(d=>{const x=d.replace(/([a-z])([A-Z])/g,"$1-$2");u[x]=re[d]}),u}let He=(()=>{class re{validateStyleProperty(d){return ve(d)}matchesElement(d,x){return!1}containsElement(d,x){return Re(d,x)}query(d,x,he){return ae(d,x,he)}computeStyle(d,x,he){return he||""}animate(d,x,he,Se,qe,nt=[],Ot){return new l.ZN(he,Se)}}return re.\u0275fac=function(d){return new(d||re)},re.\u0275prov=r.Yz7({token:re,factory:re.\u0275fac}),re})(),me=(()=>{class re{}return re.NOOP=new He,re})();const Me="ng-enter",se="ng-leave",we="ng-trigger",ue=".ng-trigger",Ye="ng-animating",We=".ng-animating";function rt(re){if("number"==typeof re)return re;const u=re.match(/^(-?[\.\d]+)(m?s)/);return!u||u.length<2?0:wt(parseFloat(u[1]),u[2])}function wt(re,u){return"s"===u?1e3*re:re}function Ae(re,u,d){return re.hasOwnProperty("duration")?re:function mt(re,u,d){let he,Se=0,qe="";if("string"==typeof re){const nt=re.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===nt)return u.push(`The provided timing value "${re}" is invalid.`),{duration:0,delay:0,easing:""};he=wt(parseFloat(nt[1]),nt[2]);const Ot=nt[3];null!=Ot&&(Se=wt(parseFloat(Ot),nt[4]));const Wt=nt[5];Wt&&(qe=Wt)}else he=re;if(!d){let nt=!1,Ot=u.length;he<0&&(u.push("Duration values below 0 are not allowed for this animation step."),nt=!0),Se<0&&(u.push("Delay values below 0 are not allowed for this animation step."),nt=!0),nt&&u.splice(Ot,0,`The provided timing value "${re}" is invalid.`)}return{duration:he,delay:Se,easing:qe}}(re,u,d)}function kt(re,u={}){return Object.keys(re).forEach(d=>{u[d]=re[d]}),u}function It(re,u,d={}){if(u)for(let x in re)d[x]=re[x];else kt(re,d);return d}function Xe(re,u,d){return d?u+":"+d+";":""}function lt(re){let u="";for(let d=0;d{const he=Ve(x);d&&!d.hasOwnProperty(x)&&(d[x]=re.style[he]),re.style[he]=u[x]}),m()&<(re))}function Lt(re,u){re.style&&(Object.keys(u).forEach(d=>{const x=Ve(d);re.style[x]=""}),m()&<(re))}function Ie(re){return Array.isArray(re)?1==re.length?re[0]:(0,l.vP)(re):re}const pt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Et(re){let u=[];if("string"==typeof re){let d;for(;d=pt.exec(re);)u.push(d[1]);pt.lastIndex=0}return u}function ot(re,u,d){const x=re.toString(),he=x.replace(pt,(Se,qe)=>{let nt=u[qe];return u.hasOwnProperty(qe)||(d.push(`Please provide a value for the animation param ${qe}`),nt=""),nt.toString()});return he==x?re:he}function en(re){const u=[];let d=re.next();for(;!d.done;)u.push(d.value),d=re.next();return u}const Ne=/-+([a-z0-9])/g;function Ve(re){return re.replace(Ne,(...u)=>u[1].toUpperCase())}function ye(re){return re.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function yt(re,u){return 0===re||0===u}function Mt(re,u,d){const x=Object.keys(d);if(x.length&&u.length){let Se=u[0],qe=[];if(x.forEach(nt=>{Se.hasOwnProperty(nt)||qe.push(nt),Se[nt]=d[nt]}),qe.length)for(var he=1;hefunction Fe(re,u,d){if(":"==re[0]){const Ot=function Je(re,u){switch(re){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(d,x)=>parseFloat(x)>parseFloat(d);case":decrement":return(d,x)=>parseFloat(x) *"}}(re,d);if("function"==typeof Ot)return void u.push(Ot);re=Ot}const x=re.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==x||x.length<4)return d.push(`The provided transition expression "${re}" is not supported`),u;const he=x[1],Se=x[2],qe=x[3];u.push(je(he,qe));"<"==Se[0]&&!(he==G&&qe==G)&&u.push(je(qe,he))}(x,d,u)):d.push(re),d}const vt=new Set(["true","1"]),Tt=new Set(["false","0"]);function je(re,u){const d=vt.has(re)||Tt.has(re),x=vt.has(u)||Tt.has(u);return(he,Se)=>{let qe=re==G||re==he,nt=u==G||u==Se;return!qe&&d&&"boolean"==typeof he&&(qe=he?vt.has(re):Tt.has(re)),!nt&&x&&"boolean"==typeof Se&&(nt=Se?vt.has(u):Tt.has(u)),qe&&nt}}const jt=new RegExp("s*:selfs*,?","g");function Bt(re,u,d){return new cn(re).build(u,d)}class cn{constructor(u){this._driver=u}build(u,d){const x=new Gn(d);return this._resetContextStyleTimingState(x),Ke(this,Ie(u),x)}_resetContextStyleTimingState(u){u.currentQuerySelector="",u.collectedStyles={},u.collectedStyles[""]={},u.currentTime=0}visitTrigger(u,d){let x=d.queryCount=0,he=d.depCount=0;const Se=[],qe=[];return"@"==u.name.charAt(0)&&d.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),u.definitions.forEach(nt=>{if(this._resetContextStyleTimingState(d),0==nt.type){const Ot=nt,Wt=Ot.name;Wt.toString().split(/\s*,\s*/).forEach(hn=>{Ot.name=hn,Se.push(this.visitState(Ot,d))}),Ot.name=Wt}else if(1==nt.type){const Ot=this.visitTransition(nt,d);x+=Ot.queryCount,he+=Ot.depCount,qe.push(Ot)}else d.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:u.name,states:Se,transitions:qe,queryCount:x,depCount:he,options:null}}visitState(u,d){const x=this.visitStyle(u.styles,d),he=u.options&&u.options.params||null;if(x.containsDynamicStyles){const Se=new Set,qe=he||{};if(x.styles.forEach(nt=>{if(yn(nt)){const Ot=nt;Object.keys(Ot).forEach(Wt=>{Et(Ot[Wt]).forEach(hn=>{qe.hasOwnProperty(hn)||Se.add(hn)})})}}),Se.size){const nt=en(Se.values());d.errors.push(`state("${u.name}", ...) must define default values for all the following style substitutions: ${nt.join(", ")}`)}}return{type:0,name:u.name,style:x,options:he?{params:he}:null}}visitTransition(u,d){d.queryCount=0,d.depCount=0;const x=Ke(this,Ie(u.animation),d);return{type:1,matchers:Q(u.expr,d.errors),animation:x,queryCount:d.queryCount,depCount:d.depCount,options:un(u.options)}}visitSequence(u,d){return{type:2,steps:u.steps.map(x=>Ke(this,x,d)),options:un(u.options)}}visitGroup(u,d){const x=d.currentTime;let he=0;const Se=u.steps.map(qe=>{d.currentTime=x;const nt=Ke(this,qe,d);return he=Math.max(he,d.currentTime),nt});return d.currentTime=he,{type:3,steps:Se,options:un(u.options)}}visitAnimate(u,d){const x=function _n(re,u){let d=null;if(re.hasOwnProperty("duration"))d=re;else if("number"==typeof re)return Dt(Ae(re,u).duration,0,"");const x=re;if(x.split(/\s+/).some(Se=>"{"==Se.charAt(0)&&"{"==Se.charAt(1))){const Se=Dt(0,0,"");return Se.dynamic=!0,Se.strValue=x,Se}return d=d||Ae(x,u),Dt(d.duration,d.delay,d.easing)}(u.timings,d.errors);d.currentAnimateTimings=x;let he,Se=u.styles?u.styles:(0,l.oB)({});if(5==Se.type)he=this.visitKeyframes(Se,d);else{let qe=u.styles,nt=!1;if(!qe){nt=!0;const Wt={};x.easing&&(Wt.easing=x.easing),qe=(0,l.oB)(Wt)}d.currentTime+=x.duration+x.delay;const Ot=this.visitStyle(qe,d);Ot.isEmptyStep=nt,he=Ot}return d.currentAnimateTimings=null,{type:4,timings:x,style:he,options:null}}visitStyle(u,d){const x=this._makeStyleAst(u,d);return this._validateStyleAst(x,d),x}_makeStyleAst(u,d){const x=[];Array.isArray(u.styles)?u.styles.forEach(qe=>{"string"==typeof qe?qe==l.l3?x.push(qe):d.errors.push(`The provided style string value ${qe} is not allowed.`):x.push(qe)}):x.push(u.styles);let he=!1,Se=null;return x.forEach(qe=>{if(yn(qe)){const nt=qe,Ot=nt.easing;if(Ot&&(Se=Ot,delete nt.easing),!he)for(let Wt in nt)if(nt[Wt].toString().indexOf("{{")>=0){he=!0;break}}}),{type:6,styles:x,easing:Se,offset:u.offset,containsDynamicStyles:he,options:null}}_validateStyleAst(u,d){const x=d.currentAnimateTimings;let he=d.currentTime,Se=d.currentTime;x&&Se>0&&(Se-=x.duration+x.delay),u.styles.forEach(qe=>{"string"!=typeof qe&&Object.keys(qe).forEach(nt=>{if(!this._driver.validateStyleProperty(nt))return void d.errors.push(`The provided animation property "${nt}" is not a supported CSS property for animations`);const Ot=d.collectedStyles[d.currentQuerySelector],Wt=Ot[nt];let hn=!0;Wt&&(Se!=he&&Se>=Wt.startTime&&he<=Wt.endTime&&(d.errors.push(`The CSS property "${nt}" that exists between the times of "${Wt.startTime}ms" and "${Wt.endTime}ms" is also being animated in a parallel animation between the times of "${Se}ms" and "${he}ms"`),hn=!1),Se=Wt.startTime),hn&&(Ot[nt]={startTime:Se,endTime:he}),d.options&&function Pt(re,u,d){const x=u.params||{},he=Et(re);he.length&&he.forEach(Se=>{x.hasOwnProperty(Se)||d.push(`Unable to resolve the local animation param ${Se} in the given list of values`)})}(qe[nt],d.options,d.errors)})})}visitKeyframes(u,d){const x={type:5,styles:[],options:null};if(!d.currentAnimateTimings)return d.errors.push("keyframes() must be placed inside of a call to animate()"),x;let Se=0;const qe=[];let nt=!1,Ot=!1,Wt=0;const hn=u.steps.map(bi=>{const Ei=this._makeStyleAst(bi,d);let Ai=null!=Ei.offset?Ei.offset:function xn(re){if("string"==typeof re)return null;let u=null;if(Array.isArray(re))re.forEach(d=>{if(yn(d)&&d.hasOwnProperty("offset")){const x=d;u=parseFloat(x.offset),delete x.offset}});else if(yn(re)&&re.hasOwnProperty("offset")){const d=re;u=parseFloat(d.offset),delete d.offset}return u}(Ei.styles),Fi=0;return null!=Ai&&(Se++,Fi=Ei.offset=Ai),Ot=Ot||Fi<0||Fi>1,nt=nt||Fi0&&Se{const Ai=Pn>0?Ei==Wn?1:Pn*Ei:qe[Ei],Fi=Ai*Hn;d.currentTime=In+Vn.delay+Fi,Vn.duration=Fi,this._validateStyleAst(bi,d),bi.offset=Ai,x.styles.push(bi)}),x}visitReference(u,d){return{type:8,animation:Ke(this,Ie(u.animation),d),options:un(u.options)}}visitAnimateChild(u,d){return d.depCount++,{type:9,options:un(u.options)}}visitAnimateRef(u,d){return{type:10,animation:this.visitReference(u.animation,d),options:un(u.options)}}visitQuery(u,d){const x=d.currentQuerySelector,he=u.options||{};d.queryCount++,d.currentQuery=u;const[Se,qe]=function an(re){const u=!!re.split(/\s*,\s*/).find(d=>":self"==d);return u&&(re=re.replace(jt,"")),re=re.replace(/@\*/g,ue).replace(/@\w+/g,d=>ue+"-"+d.substr(1)).replace(/:animating/g,We),[re,u]}(u.selector);d.currentQuerySelector=x.length?x+" "+Se:Se,S(d.collectedStyles,d.currentQuerySelector,{});const nt=Ke(this,Ie(u.animation),d);return d.currentQuery=null,d.currentQuerySelector=x,{type:11,selector:Se,limit:he.limit||0,optional:!!he.optional,includeSelf:qe,animation:nt,originalSelector:u.selector,options:un(u.options)}}visitStagger(u,d){d.currentQuery||d.errors.push("stagger() can only be used inside of query()");const x="full"===u.timings?{duration:0,delay:0,easing:"full"}:Ae(u.timings,d.errors,!0);return{type:12,animation:Ke(this,Ie(u.animation),d),timings:x,options:null}}}class Gn{constructor(u){this.errors=u,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function yn(re){return!Array.isArray(re)&&"object"==typeof re}function un(re){return re?(re=kt(re)).params&&(re.params=function nn(re){return re?kt(re):null}(re.params)):re={},re}function Dt(re,u,d){return{duration:re,delay:u,easing:d}}function it(re,u,d,x,he,Se,qe=null,nt=!1){return{type:1,element:re,keyframes:u,preStyleProps:d,postStyleProps:x,duration:he,delay:Se,totalTime:he+Se,easing:qe,subTimeline:nt}}class Ge{constructor(){this._map=new Map}get(u){return this._map.get(u)||[]}append(u,d){let x=this._map.get(u);x||this._map.set(u,x=[]),x.push(...d)}has(u){return this._map.has(u)}clear(){this._map.clear()}}const xt=new RegExp(":enter","g"),de=new RegExp(":leave","g");function ut(re,u,d,x,he,Se={},qe={},nt,Ot,Wt=[]){return(new I).buildKeyframes(re,u,d,x,he,Se,qe,nt,Ot,Wt)}class I{buildKeyframes(u,d,x,he,Se,qe,nt,Ot,Wt,hn=[]){Wt=Wt||new Ge;const Sn=new oe(u,d,Wt,he,Se,hn,[]);Sn.options=Ot,Sn.currentTimeline.setStyles([qe],null,Sn.errors,Ot),Ke(this,x,Sn);const Pn=Sn.timelines.filter(Wn=>Wn.containsAnimation());if(Object.keys(nt).length){let Wn;for(let In=Pn.length-1;In>=0;In--){const Vn=Pn[In];if(Vn.element===d){Wn=Vn;break}}Wn&&!Wn.allowOnlyTimelineStyles()&&Wn.setStyles([nt],null,Sn.errors,Ot)}return Pn.length?Pn.map(Wn=>Wn.buildKeyframes()):[it(d,[],[],[],0,0,"",!1)]}visitTrigger(u,d){}visitState(u,d){}visitTransition(u,d){}visitAnimateChild(u,d){const x=d.subInstructions.get(d.element);if(x){const he=d.createSubContext(u.options),Se=d.currentTimeline.currentTime,qe=this._visitSubInstructions(x,he,he.options);Se!=qe&&d.transformIntoNewTimeline(qe)}d.previousNode=u}visitAnimateRef(u,d){const x=d.createSubContext(u.options);x.transformIntoNewTimeline(),this.visitReference(u.animation,x),d.transformIntoNewTimeline(x.currentTimeline.currentTime),d.previousNode=u}_visitSubInstructions(u,d,x){let Se=d.currentTimeline.currentTime;const qe=null!=x.duration?rt(x.duration):null,nt=null!=x.delay?rt(x.delay):null;return 0!==qe&&u.forEach(Ot=>{const Wt=d.appendInstructionToTimeline(Ot,qe,nt);Se=Math.max(Se,Wt.duration+Wt.delay)}),Se}visitReference(u,d){d.updateOptions(u.options,!0),Ke(this,u.animation,d),d.previousNode=u}visitSequence(u,d){const x=d.subContextCount;let he=d;const Se=u.options;if(Se&&(Se.params||Se.delay)&&(he=d.createSubContext(Se),he.transformIntoNewTimeline(),null!=Se.delay)){6==he.previousNode.type&&(he.currentTimeline.snapshotCurrentStyles(),he.previousNode=Z);const qe=rt(Se.delay);he.delayNextStep(qe)}u.steps.length&&(u.steps.forEach(qe=>Ke(this,qe,he)),he.currentTimeline.applyStylesToKeyframe(),he.subContextCount>x&&he.transformIntoNewTimeline()),d.previousNode=u}visitGroup(u,d){const x=[];let he=d.currentTimeline.currentTime;const Se=u.options&&u.options.delay?rt(u.options.delay):0;u.steps.forEach(qe=>{const nt=d.createSubContext(u.options);Se&&nt.delayNextStep(Se),Ke(this,qe,nt),he=Math.max(he,nt.currentTimeline.currentTime),x.push(nt.currentTimeline)}),x.forEach(qe=>d.currentTimeline.mergeTimelineCollectedStyles(qe)),d.transformIntoNewTimeline(he),d.previousNode=u}_visitTiming(u,d){if(u.dynamic){const x=u.strValue;return Ae(d.params?ot(x,d.params,d.errors):x,d.errors)}return{duration:u.duration,delay:u.delay,easing:u.easing}}visitAnimate(u,d){const x=d.currentAnimateTimings=this._visitTiming(u.timings,d),he=d.currentTimeline;x.delay&&(d.incrementTime(x.delay),he.snapshotCurrentStyles());const Se=u.style;5==Se.type?this.visitKeyframes(Se,d):(d.incrementTime(x.duration),this.visitStyle(Se,d),he.applyStylesToKeyframe()),d.currentAnimateTimings=null,d.previousNode=u}visitStyle(u,d){const x=d.currentTimeline,he=d.currentAnimateTimings;!he&&x.getCurrentStyleProperties().length&&x.forwardFrame();const Se=he&&he.easing||u.easing;u.isEmptyStep?x.applyEmptyStep(Se):x.setStyles(u.styles,Se,d.errors,d.options),d.previousNode=u}visitKeyframes(u,d){const x=d.currentAnimateTimings,he=d.currentTimeline.duration,Se=x.duration,nt=d.createSubContext().currentTimeline;nt.easing=x.easing,u.styles.forEach(Ot=>{nt.forwardTime((Ot.offset||0)*Se),nt.setStyles(Ot.styles,Ot.easing,d.errors,d.options),nt.applyStylesToKeyframe()}),d.currentTimeline.mergeTimelineCollectedStyles(nt),d.transformIntoNewTimeline(he+Se),d.previousNode=u}visitQuery(u,d){const x=d.currentTimeline.currentTime,he=u.options||{},Se=he.delay?rt(he.delay):0;Se&&(6===d.previousNode.type||0==x&&d.currentTimeline.getCurrentStyleProperties().length)&&(d.currentTimeline.snapshotCurrentStyles(),d.previousNode=Z);let qe=x;const nt=d.invokeQuery(u.selector,u.originalSelector,u.limit,u.includeSelf,!!he.optional,d.errors);d.currentQueryTotal=nt.length;let Ot=null;nt.forEach((Wt,hn)=>{d.currentQueryIndex=hn;const Sn=d.createSubContext(u.options,Wt);Se&&Sn.delayNextStep(Se),Wt===d.element&&(Ot=Sn.currentTimeline),Ke(this,u.animation,Sn),Sn.currentTimeline.applyStylesToKeyframe(),qe=Math.max(qe,Sn.currentTimeline.currentTime)}),d.currentQueryIndex=0,d.currentQueryTotal=0,d.transformIntoNewTimeline(qe),Ot&&(d.currentTimeline.mergeTimelineCollectedStyles(Ot),d.currentTimeline.snapshotCurrentStyles()),d.previousNode=u}visitStagger(u,d){const x=d.parentContext,he=d.currentTimeline,Se=u.timings,qe=Math.abs(Se.duration),nt=qe*(d.currentQueryTotal-1);let Ot=qe*d.currentQueryIndex;switch(Se.duration<0?"reverse":Se.easing){case"reverse":Ot=nt-Ot;break;case"full":Ot=x.currentStaggerTime}const hn=d.currentTimeline;Ot&&hn.delayNextStep(Ot);const Sn=hn.currentTime;Ke(this,u.animation,d),d.previousNode=u,x.currentStaggerTime=he.currentTime-Sn+(he.startTime-x.currentTimeline.startTime)}}const Z={};class oe{constructor(u,d,x,he,Se,qe,nt,Ot){this._driver=u,this.element=d,this.subInstructions=x,this._enterClassName=he,this._leaveClassName=Se,this.errors=qe,this.timelines=nt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Z,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ot||new De(this._driver,d,0),nt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(u,d){if(!u)return;const x=u;let he=this.options;null!=x.duration&&(he.duration=rt(x.duration)),null!=x.delay&&(he.delay=rt(x.delay));const Se=x.params;if(Se){let qe=he.params;qe||(qe=this.options.params={}),Object.keys(Se).forEach(nt=>{(!d||!qe.hasOwnProperty(nt))&&(qe[nt]=ot(Se[nt],qe,this.errors))})}}_copyOptions(){const u={};if(this.options){const d=this.options.params;if(d){const x=u.params={};Object.keys(d).forEach(he=>{x[he]=d[he]})}}return u}createSubContext(u=null,d,x){const he=d||this.element,Se=new oe(this._driver,he,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(he,x||0));return Se.previousNode=this.previousNode,Se.currentAnimateTimings=this.currentAnimateTimings,Se.options=this._copyOptions(),Se.updateOptions(u),Se.currentQueryIndex=this.currentQueryIndex,Se.currentQueryTotal=this.currentQueryTotal,Se.parentContext=this,this.subContextCount++,Se}transformIntoNewTimeline(u){return this.previousNode=Z,this.currentTimeline=this.currentTimeline.fork(this.element,u),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(u,d,x){const he={duration:null!=d?d:u.duration,delay:this.currentTimeline.currentTime+(null!=x?x:0)+u.delay,easing:""},Se=new ft(this._driver,u.element,u.keyframes,u.preStyleProps,u.postStyleProps,he,u.stretchStartingKeyframe);return this.timelines.push(Se),he}incrementTime(u){this.currentTimeline.forwardTime(this.currentTimeline.duration+u)}delayNextStep(u){u>0&&this.currentTimeline.delayNextStep(u)}invokeQuery(u,d,x,he,Se,qe){let nt=[];if(he&&nt.push(this.element),u.length>0){u=(u=u.replace(xt,"."+this._enterClassName)).replace(de,"."+this._leaveClassName);let Wt=this._driver.query(this.element,u,1!=x);0!==x&&(Wt=x<0?Wt.slice(Wt.length+x,Wt.length):Wt.slice(0,x)),nt.push(...Wt)}return!Se&&0==nt.length&&qe.push(`\`query("${d}")\` returned zero elements. (Use \`query("${d}", { optional: true })\` if you wish to allow this.)`),nt}}class De{constructor(u,d,x,he){this._driver=u,this.element=d,this.startTime=x,this._elementTimelineStylesLookup=he,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(d),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(d,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(u){const d=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||d?(this.forwardTime(this.currentTime+u),d&&this.snapshotCurrentStyles()):this.startTime+=u}fork(u,d){return this.applyStylesToKeyframe(),new De(this._driver,u,d||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(u){this.applyStylesToKeyframe(),this.duration=u,this._loadKeyframe()}_updateStyle(u,d){this._localTimelineStyles[u]=d,this._globalTimelineStyles[u]=d,this._styleSummary[u]={time:this.currentTime,value:d}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(u){u&&(this._previousKeyframe.easing=u),Object.keys(this._globalTimelineStyles).forEach(d=>{this._backFill[d]=this._globalTimelineStyles[d]||l.l3,this._currentKeyframe[d]=l.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(u,d,x,he){d&&(this._previousKeyframe.easing=d);const Se=he&&he.params||{},qe=function ee(re,u){const d={};let x;return re.forEach(he=>{"*"===he?(x=x||Object.keys(u),x.forEach(Se=>{d[Se]=l.l3})):It(he,!1,d)}),d}(u,this._globalTimelineStyles);Object.keys(qe).forEach(nt=>{const Ot=ot(qe[nt],Se,x);this._pendingStyles[nt]=Ot,this._localTimelineStyles.hasOwnProperty(nt)||(this._backFill[nt]=this._globalTimelineStyles.hasOwnProperty(nt)?this._globalTimelineStyles[nt]:l.l3),this._updateStyle(nt,Ot)})}applyStylesToKeyframe(){const u=this._pendingStyles,d=Object.keys(u);0!=d.length&&(this._pendingStyles={},d.forEach(x=>{this._currentKeyframe[x]=u[x]}),Object.keys(this._localTimelineStyles).forEach(x=>{this._currentKeyframe.hasOwnProperty(x)||(this._currentKeyframe[x]=this._localTimelineStyles[x])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(u=>{const d=this._localTimelineStyles[u];this._pendingStyles[u]=d,this._updateStyle(u,d)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const u=[];for(let d in this._currentKeyframe)u.push(d);return u}mergeTimelineCollectedStyles(u){Object.keys(u._styleSummary).forEach(d=>{const x=this._styleSummary[d],he=u._styleSummary[d];(!x||he.time>x.time)&&this._updateStyle(d,he.value)})}buildKeyframes(){this.applyStylesToKeyframe();const u=new Set,d=new Set,x=1===this._keyframes.size&&0===this.duration;let he=[];this._keyframes.forEach((nt,Ot)=>{const Wt=It(nt,!0);Object.keys(Wt).forEach(hn=>{const Sn=Wt[hn];Sn==l.k1?u.add(hn):Sn==l.l3&&d.add(hn)}),x||(Wt.offset=Ot/this.duration),he.push(Wt)});const Se=u.size?en(u.values()):[],qe=d.size?en(d.values()):[];if(x){const nt=he[0],Ot=kt(nt);nt.offset=0,Ot.offset=1,he=[nt,Ot]}return it(this.element,he,Se,qe,this.duration,this.startTime,this.easing,!1)}}class ft extends De{constructor(u,d,x,he,Se,qe,nt=!1){super(u,d,qe.delay),this.keyframes=x,this.preStyleProps=he,this.postStyleProps=Se,this._stretchStartingKeyframe=nt,this.timings={duration:qe.duration,delay:qe.delay,easing:qe.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let u=this.keyframes,{delay:d,duration:x,easing:he}=this.timings;if(this._stretchStartingKeyframe&&d){const Se=[],qe=x+d,nt=d/qe,Ot=It(u[0],!1);Ot.offset=0,Se.push(Ot);const Wt=It(u[0],!1);Wt.offset=Jt(nt),Se.push(Wt);const hn=u.length-1;for(let Sn=1;Sn<=hn;Sn++){let Pn=It(u[Sn],!1);Pn.offset=Jt((d+Pn.offset*x)/qe),Se.push(Pn)}x=qe,d=0,he="",u=Se}return it(this.element,u,this.preStyleProps,this.postStyleProps,x,d,he,!0)}}function Jt(re,u=3){const d=Math.pow(10,u-1);return Math.round(re*d)/d}class p{}class y extends p{normalizePropertyName(u,d){return Ve(u)}normalizeStyleValue(u,d,x,he){let Se="";const qe=x.toString().trim();if(R[d]&&0!==x&&"0"!==x)if("number"==typeof x)Se="px";else{const nt=x.match(/^[+-]?[\d\.]+([a-z]*)$/);nt&&0==nt[1].length&&he.push(`Please provide a CSS unit value for ${u}:${x}`)}return qe+Se}}const R=(()=>function Ee(re){const u={};return re.forEach(d=>u[d]=!0),u}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function et(re,u,d,x,he,Se,qe,nt,Ot,Wt,hn,Sn,Pn){return{type:0,element:re,triggerName:u,isRemovalTransition:he,fromState:d,fromStyles:Se,toState:x,toStyles:qe,timelines:nt,queriedElements:Ot,preStyleProps:Wt,postStyleProps:hn,totalTime:Sn,errors:Pn}}const gt={};class Qe{constructor(u,d,x){this._triggerName=u,this.ast=d,this._stateStyles=x}match(u,d,x,he){return function _t(re,u,d,x,he){return re.some(Se=>Se(u,d,x,he))}(this.ast.matchers,u,d,x,he)}buildStyles(u,d,x){const he=this._stateStyles["*"],Se=this._stateStyles[u],qe=he?he.buildStyles(d,x):{};return Se?Se.buildStyles(d,x):qe}build(u,d,x,he,Se,qe,nt,Ot,Wt,hn){const Sn=[],Pn=this.ast.options&&this.ast.options.params||gt,In=this.buildStyles(x,nt&&nt.params||gt,Sn),Vn=Ot&&Ot.params||gt,Hn=this.buildStyles(he,Vn,Sn),bi=new Set,Ei=new Map,Ai=new Map,Fi="void"===he,co={params:Object.assign(Object.assign({},Pn),Vn)},Ri=hn?[]:ut(u,d,this.ast.animation,Se,qe,In,Hn,co,Wt,Sn);let Pi=0;if(Ri.forEach(Ui=>{Pi=Math.max(Ui.duration+Ui.delay,Pi)}),Sn.length)return et(d,this._triggerName,x,he,Fi,In,Hn,[],[],Ei,Ai,Pi,Sn);Ri.forEach(Ui=>{const io=Ui.element,Po=S(Ei,io,{});Ui.preStyleProps.forEach(go=>Po[go]=!0);const Ao=S(Ai,io,{});Ui.postStyleProps.forEach(go=>Ao[go]=!0),io!==d&&bi.add(io)});const Ki=en(bi.values());return et(d,this._triggerName,x,he,Fi,In,Hn,Ri,Ki,Ei,Ai,Pi)}}class Rt{constructor(u,d,x){this.styles=u,this.defaultParams=d,this.normalizer=x}buildStyles(u,d){const x={},he=kt(this.defaultParams);return Object.keys(u).forEach(Se=>{const qe=u[Se];null!=qe&&(he[Se]=qe)}),this.styles.styles.forEach(Se=>{if("string"!=typeof Se){const qe=Se;Object.keys(qe).forEach(nt=>{let Ot=qe[nt];Ot.length>1&&(Ot=ot(Ot,he,d));const Wt=this.normalizer.normalizePropertyName(nt,d);Ot=this.normalizer.normalizeStyleValue(nt,Wt,Ot,d),x[Wt]=Ot})}}),x}}class on{constructor(u,d,x){this.name=u,this.ast=d,this._normalizer=x,this.transitionFactories=[],this.states={},d.states.forEach(he=>{this.states[he.name]=new Rt(he.style,he.options&&he.options.params||{},x)}),bn(this.states,"true","1"),bn(this.states,"false","0"),d.transitions.forEach(he=>{this.transitionFactories.push(new Qe(u,he,this.states))}),this.fallbackTransition=function Vt(re,u,d){return new Qe(re,{type:1,animation:{type:2,steps:[],options:null},matchers:[(qe,nt)=>!0],options:null,queryCount:0,depCount:0},u)}(u,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(u,d,x,he){return this.transitionFactories.find(qe=>qe.match(u,d,x,he))||null}matchStyles(u,d,x){return this.fallbackTransition.buildStyles(u,d,x)}}function bn(re,u,d){re.hasOwnProperty(u)?re.hasOwnProperty(d)||(re[d]=re[u]):re.hasOwnProperty(d)&&(re[u]=re[d])}const mn=new Ge;class fn{constructor(u,d,x){this.bodyNode=u,this._driver=d,this._normalizer=x,this._animations={},this._playersById={},this.players=[]}register(u,d){const x=[],he=Bt(this._driver,d,x);if(x.length)throw new Error(`Unable to build the animation due to the following errors: ${x.join("\n")}`);this._animations[u]=he}_buildPlayer(u,d,x){const he=u.element,Se=b(0,this._normalizer,0,u.keyframes,d,x);return this._driver.animate(he,Se,u.duration,u.delay,u.easing,[],!0)}create(u,d,x={}){const he=[],Se=this._animations[u];let qe;const nt=new Map;if(Se?(qe=ut(this._driver,d,Se,Me,se,{},{},x,mn,he),qe.forEach(hn=>{const Sn=S(nt,hn.element,{});hn.postStyleProps.forEach(Pn=>Sn[Pn]=null)})):(he.push("The requested animation doesn't exist or has already been destroyed"),qe=[]),he.length)throw new Error(`Unable to create the animation due to the following errors: ${he.join("\n")}`);nt.forEach((hn,Sn)=>{Object.keys(hn).forEach(Pn=>{hn[Pn]=this._driver.computeStyle(Sn,Pn,l.l3)})});const Wt=A(qe.map(hn=>{const Sn=nt.get(hn.element);return this._buildPlayer(hn,{},Sn)}));return this._playersById[u]=Wt,Wt.onDestroy(()=>this.destroy(u)),this.players.push(Wt),Wt}destroy(u){const d=this._getPlayer(u);d.destroy(),delete this._playersById[u];const x=this.players.indexOf(d);x>=0&&this.players.splice(x,1)}_getPlayer(u){const d=this._playersById[u];if(!d)throw new Error(`Unable to find the timeline player referenced by ${u}`);return d}listen(u,d,x,he){const Se=E(d,"","","");return D(this._getPlayer(u),x,Se,he),()=>{}}command(u,d,x,he){if("register"==x)return void this.register(u,he[0]);if("create"==x)return void this.create(u,d,he[0]||{});const Se=this._getPlayer(u);switch(x){case"play":Se.play();break;case"pause":Se.pause();break;case"reset":Se.reset();break;case"restart":Se.restart();break;case"finish":Se.finish();break;case"init":Se.init();break;case"setPosition":Se.setPosition(parseFloat(he[0]));break;case"destroy":this.destroy(u)}}}const Dn="ng-animate-queued",Nn="ng-animate-disabled",qn=[],Ce={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ke={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},le="__ng_removed";class tt{constructor(u,d=""){this.namespaceId=d;const x=u&&u.hasOwnProperty("value");if(this.value=function ii(re){return null!=re?re:null}(x?u.value:u),x){const Se=kt(u);delete Se.value,this.options=Se}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(u){const d=u.params;if(d){const x=this.options.params;Object.keys(d).forEach(he=>{null==x[he]&&(x[he]=d[he])})}}}const Ht="void",Xt=new tt(Ht);class dn{constructor(u,d,x){this.id=u,this.hostElement=d,this._engine=x,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+u,Ii(d,this._hostClassName)}listen(u,d,x,he){if(!this._triggers.hasOwnProperty(d))throw new Error(`Unable to listen on the animation trigger event "${x}" because the animation trigger "${d}" doesn't exist!`);if(null==x||0==x.length)throw new Error(`Unable to listen on the animation trigger "${d}" because the provided event is undefined!`);if(!function pi(re){return"start"==re||"done"==re}(x))throw new Error(`The provided animation trigger event "${x}" for the animation trigger "${d}" is not supported!`);const Se=S(this._elementListeners,u,[]),qe={name:d,phase:x,callback:he};Se.push(qe);const nt=S(this._engine.statesByElement,u,{});return nt.hasOwnProperty(d)||(Ii(u,we),Ii(u,we+"-"+d),nt[d]=Xt),()=>{this._engine.afterFlush(()=>{const Ot=Se.indexOf(qe);Ot>=0&&Se.splice(Ot,1),this._triggers[d]||delete nt[d]})}}register(u,d){return!this._triggers[u]&&(this._triggers[u]=d,!0)}_getTrigger(u){const d=this._triggers[u];if(!d)throw new Error(`The provided animation trigger "${u}" has not been registered!`);return d}trigger(u,d,x,he=!0){const Se=this._getTrigger(d),qe=new jn(this.id,d,u);let nt=this._engine.statesByElement.get(u);nt||(Ii(u,we),Ii(u,we+"-"+d),this._engine.statesByElement.set(u,nt={}));let Ot=nt[d];const Wt=new tt(x,this.id);if(!(x&&x.hasOwnProperty("value"))&&Ot&&Wt.absorbOptions(Ot.options),nt[d]=Wt,Ot||(Ot=Xt),Wt.value!==Ht&&Ot.value===Wt.value){if(!function Bo(re,u){const d=Object.keys(re),x=Object.keys(u);if(d.length!=x.length)return!1;for(let he=0;he{Lt(u,Hn),ct(u,bi)})}return}const Pn=S(this._engine.playersByElement,u,[]);Pn.forEach(Vn=>{Vn.namespaceId==this.id&&Vn.triggerName==d&&Vn.queued&&Vn.destroy()});let Wn=Se.matchTransition(Ot.value,Wt.value,u,Wt.params),In=!1;if(!Wn){if(!he)return;Wn=Se.fallbackTransition,In=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:d,transition:Wn,fromState:Ot,toState:Wt,player:qe,isFallbackTransition:In}),In||(Ii(u,Dn),qe.onStart(()=>{qi(u,Dn)})),qe.onDone(()=>{let Vn=this.players.indexOf(qe);Vn>=0&&this.players.splice(Vn,1);const Hn=this._engine.playersByElement.get(u);if(Hn){let bi=Hn.indexOf(qe);bi>=0&&Hn.splice(bi,1)}}),this.players.push(qe),Pn.push(qe),qe}deregister(u){delete this._triggers[u],this._engine.statesByElement.forEach((d,x)=>{delete d[u]}),this._elementListeners.forEach((d,x)=>{this._elementListeners.set(x,d.filter(he=>he.name!=u))})}clearElementCache(u){this._engine.statesByElement.delete(u),this._elementListeners.delete(u);const d=this._engine.playersByElement.get(u);d&&(d.forEach(x=>x.destroy()),this._engine.playersByElement.delete(u))}_signalRemovalForInnerTriggers(u,d){const x=this._engine.driver.query(u,ue,!0);x.forEach(he=>{if(he[le])return;const Se=this._engine.fetchNamespacesByElement(he);Se.size?Se.forEach(qe=>qe.triggerLeaveAnimation(he,d,!1,!0)):this.clearElementCache(he)}),this._engine.afterFlushAnimationsDone(()=>x.forEach(he=>this.clearElementCache(he)))}triggerLeaveAnimation(u,d,x,he){const Se=this._engine.statesByElement.get(u),qe=new Map;if(Se){const nt=[];if(Object.keys(Se).forEach(Ot=>{if(qe.set(Ot,Se[Ot].value),this._triggers[Ot]){const Wt=this.trigger(u,Ot,Ht,he);Wt&&nt.push(Wt)}}),nt.length)return this._engine.markElementAsRemoved(this.id,u,!0,d,qe),x&&A(nt).onDone(()=>this._engine.processLeaveNode(u)),!0}return!1}prepareLeaveAnimationListeners(u){const d=this._elementListeners.get(u),x=this._engine.statesByElement.get(u);if(d&&x){const he=new Set;d.forEach(Se=>{const qe=Se.name;if(he.has(qe))return;he.add(qe);const Ot=this._triggers[qe].fallbackTransition,Wt=x[qe]||Xt,hn=new tt(Ht),Sn=new jn(this.id,qe,u);this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:qe,transition:Ot,fromState:Wt,toState:hn,player:Sn,isFallbackTransition:!0})})}}removeNode(u,d){const x=this._engine;if(u.childElementCount&&this._signalRemovalForInnerTriggers(u,d),this.triggerLeaveAnimation(u,d,!0))return;let he=!1;if(x.totalAnimations){const Se=x.players.length?x.playersByQueriedElement.get(u):[];if(Se&&Se.length)he=!0;else{let qe=u;for(;qe=qe.parentNode;)if(x.statesByElement.get(qe)){he=!0;break}}}if(this.prepareLeaveAnimationListeners(u),he)x.markElementAsRemoved(this.id,u,!1,d);else{const Se=u[le];(!Se||Se===Ce)&&(x.afterFlush(()=>this.clearElementCache(u)),x.destroyInnerAnimations(u),x._onRemovalComplete(u,d))}}insertNode(u,d){Ii(u,this._hostClassName)}drainQueuedTransitions(u){const d=[];return this._queue.forEach(x=>{const he=x.player;if(he.destroyed)return;const Se=x.element,qe=this._elementListeners.get(Se);qe&&qe.forEach(nt=>{if(nt.name==x.triggerName){const Ot=E(Se,x.triggerName,x.fromState.value,x.toState.value);Ot._data=u,D(x.player,nt.phase,Ot,nt.callback)}}),he.markedForDestroy?this._engine.afterFlush(()=>{he.destroy()}):d.push(x)}),this._queue=[],d.sort((x,he)=>{const Se=x.transition.ast.depCount,qe=he.transition.ast.depCount;return 0==Se||0==qe?Se-qe:this._engine.driver.containsElement(x.element,he.element)?1:-1})}destroy(u){this.players.forEach(d=>d.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,u)}elementContainsData(u){let d=!1;return this._elementListeners.has(u)&&(d=!0),d=!!this._queue.find(x=>x.element===u)||d,d}}class Mn{constructor(u,d,x){this.bodyNode=u,this.driver=d,this._normalizer=x,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(he,Se)=>{}}_onRemovalComplete(u,d){this.onRemovalComplete(u,d)}get queuedPlayers(){const u=[];return this._namespaceList.forEach(d=>{d.players.forEach(x=>{x.queued&&u.push(x)})}),u}createNamespace(u,d){const x=new dn(u,d,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,d)?this._balanceNamespaceList(x,d):(this.newHostElements.set(d,x),this.collectEnterElement(d)),this._namespaceLookup[u]=x}_balanceNamespaceList(u,d){const x=this._namespaceList.length-1;if(x>=0){let he=!1;for(let Se=x;Se>=0;Se--)if(this.driver.containsElement(this._namespaceList[Se].hostElement,d)){this._namespaceList.splice(Se+1,0,u),he=!0;break}he||this._namespaceList.splice(0,0,u)}else this._namespaceList.push(u);return this.namespacesByHostElement.set(d,u),u}register(u,d){let x=this._namespaceLookup[u];return x||(x=this.createNamespace(u,d)),x}registerTrigger(u,d,x){let he=this._namespaceLookup[u];he&&he.register(d,x)&&this.totalAnimations++}destroy(u,d){if(!u)return;const x=this._fetchNamespace(u);this.afterFlush(()=>{this.namespacesByHostElement.delete(x.hostElement),delete this._namespaceLookup[u];const he=this._namespaceList.indexOf(x);he>=0&&this._namespaceList.splice(he,1)}),this.afterFlushAnimationsDone(()=>x.destroy(d))}_fetchNamespace(u){return this._namespaceLookup[u]}fetchNamespacesByElement(u){const d=new Set,x=this.statesByElement.get(u);if(x){const he=Object.keys(x);for(let Se=0;Se=0&&this.collectedLeaveElements.splice(qe,1)}if(u){const qe=this._fetchNamespace(u);qe&&qe.insertNode(d,x)}he&&this.collectEnterElement(d)}collectEnterElement(u){this.collectedEnterElements.push(u)}markElementAsDisabled(u,d){d?this.disabledNodes.has(u)||(this.disabledNodes.add(u),Ii(u,Nn)):this.disabledNodes.has(u)&&(this.disabledNodes.delete(u),qi(u,Nn))}removeNode(u,d,x,he){if(si(d)){const Se=u?this._fetchNamespace(u):null;if(Se?Se.removeNode(d,he):this.markElementAsRemoved(u,d,!1,he),x){const qe=this.namespacesByHostElement.get(d);qe&&qe.id!==u&&qe.removeNode(d,he)}}else this._onRemovalComplete(d,he)}markElementAsRemoved(u,d,x,he,Se){this.collectedLeaveElements.push(d),d[le]={namespaceId:u,setForRemoval:he,hasAnimation:x,removedBeforeQueried:!1,previousTriggersValues:Se}}listen(u,d,x,he,Se){return si(d)?this._fetchNamespace(u).listen(d,x,he,Se):()=>{}}_buildInstruction(u,d,x,he,Se){return u.transition.build(this.driver,u.element,u.fromState.value,u.toState.value,x,he,u.fromState.options,u.toState.options,d,Se)}destroyInnerAnimations(u){let d=this.driver.query(u,ue,!0);d.forEach(x=>this.destroyActiveAnimationsForElement(x)),0!=this.playersByQueriedElement.size&&(d=this.driver.query(u,We,!0),d.forEach(x=>this.finishActiveQueriedAnimationOnElement(x)))}destroyActiveAnimationsForElement(u){const d=this.playersByElement.get(u);d&&d.forEach(x=>{x.queued?x.markedForDestroy=!0:x.destroy()})}finishActiveQueriedAnimationOnElement(u){const d=this.playersByQueriedElement.get(u);d&&d.forEach(x=>x.finish())}whenRenderingDone(){return new Promise(u=>{if(this.players.length)return A(this.players).onDone(()=>u());u()})}processLeaveNode(u){var d;const x=u[le];if(x&&x.setForRemoval){if(u[le]=Ce,x.namespaceId){this.destroyInnerAnimations(u);const he=this._fetchNamespace(x.namespaceId);he&&he.clearElementCache(u)}this._onRemovalComplete(u,x.setForRemoval)}(null===(d=u.classList)||void 0===d?void 0:d.contains(Nn))&&this.markElementAsDisabled(u,!1),this.driver.query(u,".ng-animate-disabled",!0).forEach(he=>{this.markElementAsDisabled(he,!1)})}flush(u=-1){let d=[];if(this.newHostElements.size&&(this.newHostElements.forEach((x,he)=>this._balanceNamespaceList(x,he)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let x=0;xx()),this._flushFns=[],this._whenQuietFns.length){const x=this._whenQuietFns;this._whenQuietFns=[],d.length?A(d).onDone(()=>{x.forEach(he=>he())}):x.forEach(he=>he())}}reportError(u){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${u.join("\n")}`)}_flushAnimations(u,d){const x=new Ge,he=[],Se=new Map,qe=[],nt=new Map,Ot=new Map,Wt=new Map,hn=new Set;this.disabledNodes.forEach(Tn=>{hn.add(Tn);const kn=this.driver.query(Tn,".ng-animate-queued",!0);for(let Ln=0;Ln{const Ln=Me+Vn++;In.set(kn,Ln),Tn.forEach(Bn=>Ii(Bn,Ln))});const Hn=[],bi=new Set,Ei=new Set;for(let Tn=0;Tnbi.add(Bn)):Ei.add(kn))}const Ai=new Map,Fi=Si(Pn,Array.from(bi));Fi.forEach((Tn,kn)=>{const Ln=se+Vn++;Ai.set(kn,Ln),Tn.forEach(Bn=>Ii(Bn,Ln))}),u.push(()=>{Wn.forEach((Tn,kn)=>{const Ln=In.get(kn);Tn.forEach(Bn=>qi(Bn,Ln))}),Fi.forEach((Tn,kn)=>{const Ln=Ai.get(kn);Tn.forEach(Bn=>qi(Bn,Ln))}),Hn.forEach(Tn=>{this.processLeaveNode(Tn)})});const co=[],Ri=[];for(let Tn=this._namespaceList.length-1;Tn>=0;Tn--)this._namespaceList[Tn].drainQueuedTransitions(d).forEach(Ln=>{const Bn=Ln.player,yi=Ln.element;if(co.push(Bn),this.collectedEnterElements.length){const mi=yi[le];if(mi&&mi.setForMove){if(mi.previousTriggersValues&&mi.previousTriggersValues.has(Ln.triggerName)){const Qi=mi.previousTriggersValues.get(Ln.triggerName),Hi=this.statesByElement.get(Ln.element);Hi&&Hi[Ln.triggerName]&&(Hi[Ln.triggerName].value=Qi)}return void Bn.destroy()}}const ui=!Sn||!this.driver.containsElement(Sn,yi),ki=Ai.get(yi),vo=In.get(yi),_i=this._buildInstruction(Ln,x,vo,ki,ui);if(_i.errors&&_i.errors.length)return void Ri.push(_i);if(ui)return Bn.onStart(()=>Lt(yi,_i.fromStyles)),Bn.onDestroy(()=>ct(yi,_i.toStyles)),void he.push(Bn);if(Ln.isFallbackTransition)return Bn.onStart(()=>Lt(yi,_i.fromStyles)),Bn.onDestroy(()=>ct(yi,_i.toStyles)),void he.push(Bn);const ar=[];_i.timelines.forEach(mi=>{mi.stretchStartingKeyframe=!0,this.disabledNodes.has(mi.element)||ar.push(mi)}),_i.timelines=ar,x.append(yi,_i.timelines),qe.push({instruction:_i,player:Bn,element:yi}),_i.queriedElements.forEach(mi=>S(nt,mi,[]).push(Bn)),_i.preStyleProps.forEach((mi,Qi)=>{const Hi=Object.keys(mi);if(Hi.length){let Bi=Ot.get(Qi);Bi||Ot.set(Qi,Bi=new Set),Hi.forEach(yo=>Bi.add(yo))}}),_i.postStyleProps.forEach((mi,Qi)=>{const Hi=Object.keys(mi);let Bi=Wt.get(Qi);Bi||Wt.set(Qi,Bi=new Set),Hi.forEach(yo=>Bi.add(yo))})});if(Ri.length){const Tn=[];Ri.forEach(kn=>{Tn.push(`@${kn.triggerName} has failed due to:\n`),kn.errors.forEach(Ln=>Tn.push(`- ${Ln}\n`))}),co.forEach(kn=>kn.destroy()),this.reportError(Tn)}const Pi=new Map,Ki=new Map;qe.forEach(Tn=>{const kn=Tn.element;x.has(kn)&&(Ki.set(kn,kn),this._beforeAnimationBuild(Tn.player.namespaceId,Tn.instruction,Pi))}),he.forEach(Tn=>{const kn=Tn.element;this._getPreviousPlayers(kn,!1,Tn.namespaceId,Tn.triggerName,null).forEach(Bn=>{S(Pi,kn,[]).push(Bn),Bn.destroy()})});const Ui=Hn.filter(Tn=>Co(Tn,Ot,Wt)),io=new Map;oo(io,this.driver,Ei,Wt,l.l3).forEach(Tn=>{Co(Tn,Ot,Wt)&&Ui.push(Tn)});const Ao=new Map;Wn.forEach((Tn,kn)=>{oo(Ao,this.driver,new Set(Tn),Ot,l.k1)}),Ui.forEach(Tn=>{const kn=io.get(Tn),Ln=Ao.get(Tn);io.set(Tn,Object.assign(Object.assign({},kn),Ln))});const go=[],Fo=[],sr={};qe.forEach(Tn=>{const{element:kn,player:Ln,instruction:Bn}=Tn;if(x.has(kn)){if(hn.has(kn))return Ln.onDestroy(()=>ct(kn,Bn.toStyles)),Ln.disabled=!0,Ln.overrideTotalTime(Bn.totalTime),void he.push(Ln);let yi=sr;if(Ki.size>1){let ki=kn;const vo=[];for(;ki=ki.parentNode;){const _i=Ki.get(ki);if(_i){yi=_i;break}vo.push(ki)}vo.forEach(_i=>Ki.set(_i,yi))}const ui=this._buildAnimation(Ln.namespaceId,Bn,Pi,Se,Ao,io);if(Ln.setRealPlayer(ui),yi===sr)go.push(Ln);else{const ki=this.playersByElement.get(yi);ki&&ki.length&&(Ln.parentPlayer=A(ki)),he.push(Ln)}}else Lt(kn,Bn.fromStyles),Ln.onDestroy(()=>ct(kn,Bn.toStyles)),Fo.push(Ln),hn.has(kn)&&he.push(Ln)}),Fo.forEach(Tn=>{const kn=Se.get(Tn.element);if(kn&&kn.length){const Ln=A(kn);Tn.setRealPlayer(Ln)}}),he.forEach(Tn=>{Tn.parentPlayer?Tn.syncPlayerEvents(Tn.parentPlayer):Tn.destroy()});for(let Tn=0;Tn!ui.destroyed);yi.length?Ro(this,kn,yi):this.processLeaveNode(kn)}return Hn.length=0,go.forEach(Tn=>{this.players.push(Tn),Tn.onDone(()=>{Tn.destroy();const kn=this.players.indexOf(Tn);this.players.splice(kn,1)}),Tn.play()}),go}elementContainsData(u,d){let x=!1;const he=d[le];return he&&he.setForRemoval&&(x=!0),this.playersByElement.has(d)&&(x=!0),this.playersByQueriedElement.has(d)&&(x=!0),this.statesByElement.has(d)&&(x=!0),this._fetchNamespace(u).elementContainsData(d)||x}afterFlush(u){this._flushFns.push(u)}afterFlushAnimationsDone(u){this._whenQuietFns.push(u)}_getPreviousPlayers(u,d,x,he,Se){let qe=[];if(d){const nt=this.playersByQueriedElement.get(u);nt&&(qe=nt)}else{const nt=this.playersByElement.get(u);if(nt){const Ot=!Se||Se==Ht;nt.forEach(Wt=>{Wt.queued||!Ot&&Wt.triggerName!=he||qe.push(Wt)})}}return(x||he)&&(qe=qe.filter(nt=>!(x&&x!=nt.namespaceId||he&&he!=nt.triggerName))),qe}_beforeAnimationBuild(u,d,x){const Se=d.element,qe=d.isRemovalTransition?void 0:u,nt=d.isRemovalTransition?void 0:d.triggerName;for(const Ot of d.timelines){const Wt=Ot.element,hn=Wt!==Se,Sn=S(x,Wt,[]);this._getPreviousPlayers(Wt,hn,qe,nt,d.toState).forEach(Wn=>{const In=Wn.getRealPlayer();In.beforeDestroy&&In.beforeDestroy(),Wn.destroy(),Sn.push(Wn)})}Lt(Se,d.fromStyles)}_buildAnimation(u,d,x,he,Se,qe){const nt=d.triggerName,Ot=d.element,Wt=[],hn=new Set,Sn=new Set,Pn=d.timelines.map(In=>{const Vn=In.element;hn.add(Vn);const Hn=Vn[le];if(Hn&&Hn.removedBeforeQueried)return new l.ZN(In.duration,In.delay);const bi=Vn!==Ot,Ei=function Ho(re){const u=[];return wo(re,u),u}((x.get(Vn)||qn).map(Pi=>Pi.getRealPlayer())).filter(Pi=>!!Pi.element&&Pi.element===Vn),Ai=Se.get(Vn),Fi=qe.get(Vn),co=b(0,this._normalizer,0,In.keyframes,Ai,Fi),Ri=this._buildPlayer(In,co,Ei);if(In.subTimeline&&he&&Sn.add(Vn),bi){const Pi=new jn(u,nt,Vn);Pi.setRealPlayer(Ri),Wt.push(Pi)}return Ri});Wt.forEach(In=>{S(this.playersByQueriedElement,In.element,[]).push(In),In.onDone(()=>function Ci(re,u,d){let x;if(re instanceof Map){if(x=re.get(u),x){if(x.length){const he=x.indexOf(d);x.splice(he,1)}0==x.length&&re.delete(u)}}else if(x=re[u],x){if(x.length){const he=x.indexOf(d);x.splice(he,1)}0==x.length&&delete re[u]}return x}(this.playersByQueriedElement,In.element,In))}),hn.forEach(In=>Ii(In,Ye));const Wn=A(Pn);return Wn.onDestroy(()=>{hn.forEach(In=>qi(In,Ye)),ct(Ot,d.toStyles)}),Sn.forEach(In=>{S(he,In,[]).push(Wn)}),Wn}_buildPlayer(u,d,x){return d.length>0?this.driver.animate(u.element,d,u.duration,u.delay,u.easing,x):new l.ZN(u.duration,u.delay)}}class jn{constructor(u,d,x){this.namespaceId=u,this.triggerName=d,this.element=x,this._player=new l.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(u){this._containsRealPlayer||(this._player=u,Object.keys(this._queuedCallbacks).forEach(d=>{this._queuedCallbacks[d].forEach(x=>D(u,d,void 0,x))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(u.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(u){this.totalTime=u}syncPlayerEvents(u){const d=this._player;d.triggerCallback&&u.onStart(()=>d.triggerCallback("start")),u.onDone(()=>this.finish()),u.onDestroy(()=>this.destroy())}_queueEvent(u,d){S(this._queuedCallbacks,u,[]).push(d)}onDone(u){this.queued&&this._queueEvent("done",u),this._player.onDone(u)}onStart(u){this.queued&&this._queueEvent("start",u),this._player.onStart(u)}onDestroy(u){this.queued&&this._queueEvent("destroy",u),this._player.onDestroy(u)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(u){this.queued||this._player.setPosition(u)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(u){const d=this._player;d.triggerCallback&&d.triggerCallback(u)}}function si(re){return re&&1===re.nodeType}function Wi(re,u){const d=re.style.display;return re.style.display=null!=u?u:"none",d}function oo(re,u,d,x,he){const Se=[];d.forEach(Ot=>Se.push(Wi(Ot)));const qe=[];x.forEach((Ot,Wt)=>{const hn={};Ot.forEach(Sn=>{const Pn=hn[Sn]=u.computeStyle(Wt,Sn,he);(!Pn||0==Pn.length)&&(Wt[le]=ke,qe.push(Wt))}),re.set(Wt,hn)});let nt=0;return d.forEach(Ot=>Wi(Ot,Se[nt++])),qe}function Si(re,u){const d=new Map;if(re.forEach(nt=>d.set(nt,[])),0==u.length)return d;const he=new Set(u),Se=new Map;function qe(nt){if(!nt)return 1;let Ot=Se.get(nt);if(Ot)return Ot;const Wt=nt.parentNode;return Ot=d.has(Wt)?Wt:he.has(Wt)?1:qe(Wt),Se.set(nt,Ot),Ot}return u.forEach(nt=>{const Ot=qe(nt);1!==Ot&&d.get(Ot).push(nt)}),d}function Ii(re,u){var d;null===(d=re.classList)||void 0===d||d.add(u)}function qi(re,u){var d;null===(d=re.classList)||void 0===d||d.remove(u)}function Ro(re,u,d){A(d).onDone(()=>re.processLeaveNode(u))}function wo(re,u){for(let d=0;dhe.add(Se)):u.set(re,x),d.delete(re),!0}class Xi{constructor(u,d,x){this.bodyNode=u,this._driver=d,this._normalizer=x,this._triggerCache={},this.onRemovalComplete=(he,Se)=>{},this._transitionEngine=new Mn(u,d,x),this._timelineEngine=new fn(u,d,x),this._transitionEngine.onRemovalComplete=(he,Se)=>this.onRemovalComplete(he,Se)}registerTrigger(u,d,x,he,Se){const qe=u+"-"+he;let nt=this._triggerCache[qe];if(!nt){const Ot=[],Wt=Bt(this._driver,Se,Ot);if(Ot.length)throw new Error(`The animation trigger "${he}" has failed to build due to the following errors:\n - ${Ot.join("\n - ")}`);nt=function qt(re,u,d){return new on(re,u,d)}(he,Wt,this._normalizer),this._triggerCache[qe]=nt}this._transitionEngine.registerTrigger(d,he,nt)}register(u,d){this._transitionEngine.register(u,d)}destroy(u,d){this._transitionEngine.destroy(u,d)}onInsert(u,d,x,he){this._transitionEngine.insertNode(u,d,x,he)}onRemove(u,d,x,he){this._transitionEngine.removeNode(u,d,he||!1,x)}disableAnimations(u,d){this._transitionEngine.markElementAsDisabled(u,d)}process(u,d,x,he){if("@"==x.charAt(0)){const[Se,qe]=w(x);this._timelineEngine.command(Se,d,qe,he)}else this._transitionEngine.trigger(u,d,x,he)}listen(u,d,x,he,Se){if("@"==x.charAt(0)){const[qe,nt]=w(x);return this._timelineEngine.listen(qe,d,nt,Se)}return this._transitionEngine.listen(u,d,x,he,Se)}flush(u=-1){this._transitionEngine.flush(u)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function bo(re,u){let d=null,x=null;return Array.isArray(u)&&u.length?(d=ro(u[0]),u.length>1&&(x=ro(u[u.length-1]))):u&&(d=ro(u)),d||x?new Do(re,d,x):null}let Do=(()=>{class re{constructor(d,x,he){this._element=d,this._startStyles=x,this._endStyles=he,this._state=0;let Se=re.initialStylesByElement.get(d);Se||re.initialStylesByElement.set(d,Se={}),this._initialStyles=Se}start(){this._state<1&&(this._startStyles&&ct(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ct(this._element,this._initialStyles),this._endStyles&&(ct(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(re.initialStylesByElement.delete(this._element),this._startStyles&&(Lt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Lt(this._element,this._endStyles),this._endStyles=null),ct(this._element,this._initialStyles),this._state=3)}}return re.initialStylesByElement=new WeakMap,re})();function ro(re){let u=null;const d=Object.keys(re);for(let x=0;xthis._handleCallback(Ot)}apply(){(function Xo(re,u){const d=eo(re,"").trim();let x=0;d.length&&(x=function ao(re,u){let d=0;for(let x=0;x=this._delay&&x>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),po(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function xi(re,u){const x=eo(re,"").split(","),he=Yi(x,u);he>=0&&(x.splice(he,1),mo(re,"",x.join(",")))}(this._element,this._name))}}function Vi(re,u,d){mo(re,"PlayState",d,Yo(re,u))}function Yo(re,u){const d=eo(re,"");return d.indexOf(",")>0?Yi(d.split(","),u):Yi([d],u)}function Yi(re,u){for(let d=0;d=0)return d;return-1}function po(re,u,d){d?re.removeEventListener(so,u):re.addEventListener(so,u)}function mo(re,u,d,x){const he=qo+u;if(null!=x){const Se=re.style[he];if(Se.length){const qe=Se.split(",");qe[x]=d,d=qe.join(",")}}re.style[he]=d}function eo(re,u){return re.style[qo+u]||""}class $i{constructor(u,d,x,he,Se,qe,nt,Ot){this.element=u,this.keyframes=d,this.animationName=x,this._duration=he,this._delay=Se,this._finalStyles=nt,this._specialStyles=Ot,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=qe||"linear",this.totalTime=he+Se,this._buildStyler()}onStart(u){this._onStartFns.push(u)}onDone(u){this._onDoneFns.push(u)}onDestroy(u){this._onDestroyFns.push(u)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(u=>u()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(u=>u()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(u=>u()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(u){this._styler.setPosition(u)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new So(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(u){const d="start"==u?this._onStartFns:this._onDoneFns;d.forEach(x=>x()),d.length=0}beforeDestroy(){this.init();const u={};if(this.hasStarted()){const d=this._state>=3;Object.keys(this._finalStyles).forEach(x=>{"offset"!=x&&(u[x]=d?this._finalStyles[x]:B(this.element,x))})}this.currentSnapshot=u}}class zo extends l.ZN{constructor(u,d){super(),this.element=u,this._startingStyles={},this.__initialized=!1,this._styles=Ue(d)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(u=>{this._startingStyles[u]=this.element.style[u]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(u=>this.element.style.setProperty(u,this._styles[u])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(u=>{const d=this._startingStyles[u];d?this.element.style.setProperty(u,d):this.element.style.removeProperty(u)}),this._startingStyles=null,super.destroy())}}class xo{constructor(){this._count=0}validateStyleProperty(u){return ve(u)}matchesElement(u,d){return!1}containsElement(u,d){return Re(u,d)}query(u,d,x){return ae(u,d,x)}computeStyle(u,d,x){return window.getComputedStyle(u)[d]}buildKeyframeElement(u,d,x){x=x.map(nt=>Ue(nt));let he=`@keyframes ${d} {\n`,Se="";x.forEach(nt=>{Se=" ";const Ot=parseFloat(nt.offset);he+=`${Se}${100*Ot}% {\n`,Se+=" ",Object.keys(nt).forEach(Wt=>{const hn=nt[Wt];switch(Wt){case"offset":return;case"easing":return void(hn&&(he+=`${Se}animation-timing-function: ${hn};\n`));default:return void(he+=`${Se}${Wt}: ${hn};\n`)}}),he+=`${Se}}\n`}),he+="}\n";const qe=document.createElement("style");return qe.textContent=he,qe}animate(u,d,x,he,Se,qe=[],nt){const Ot=qe.filter(Hn=>Hn instanceof $i),Wt={};yt(x,he)&&Ot.forEach(Hn=>{let bi=Hn.currentSnapshot;Object.keys(bi).forEach(Ei=>Wt[Ei]=bi[Ei])});const hn=function Uo(re){let u={};return re&&(Array.isArray(re)?re:[re]).forEach(x=>{Object.keys(x).forEach(he=>{"offset"==he||"easing"==he||(u[he]=x[he])})}),u}(d=Mt(u,d,Wt));if(0==x)return new zo(u,hn);const Sn="gen_css_kf_"+this._count++,Pn=this.buildKeyframeElement(u,Sn,d);(function Oo(re){var u;const d=null===(u=re.getRootNode)||void 0===u?void 0:u.call(re);return"undefined"!=typeof ShadowRoot&&d instanceof ShadowRoot?d:document.head})(u).appendChild(Pn);const In=bo(u,d),Vn=new $i(u,d,Sn,x,he,Se,hn,In);return Vn.onDestroy(()=>function zi(re){re.parentNode.removeChild(re)}(Pn)),Vn}}class ji{constructor(u,d,x,he){this.element=u,this.keyframes=d,this.options=x,this._specialStyles=he,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=x.duration,this._delay=x.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(u=>u()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const u=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,u,this.options),this._finalKeyframe=u.length?u[u.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(u,d,x){return u.animate(d,x)}onStart(u){this._onStartFns.push(u)}onDone(u){this._onDoneFns.push(u)}onDestroy(u){this._onDestroyFns.push(u)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(u=>u()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(u=>u()),this._onDestroyFns=[])}setPosition(u){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=u*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const u={};if(this.hasStarted()){const d=this._finalKeyframe;Object.keys(d).forEach(x=>{"offset"!=x&&(u[x]=this._finished?d[x]:B(this.element,x))})}this.currentSnapshot=u}triggerCallback(u){const d="start"==u?this._onStartFns:this._onDoneFns;d.forEach(x=>x()),d.length=0}}class zn{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(j().toString()),this._cssKeyframesDriver=new xo}validateStyleProperty(u){return ve(u)}matchesElement(u,d){return!1}containsElement(u,d){return Re(u,d)}query(u,d,x){return ae(u,d,x)}computeStyle(u,d,x){return window.getComputedStyle(u)[d]}overrideWebAnimationsSupport(u){this._isNativeImpl=u}animate(u,d,x,he,Se,qe=[],nt){if(!nt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(u,d,x,he,Se,qe);const hn={duration:x,delay:he,fill:0==he?"both":"forwards"};Se&&(hn.easing=Se);const Sn={},Pn=qe.filter(In=>In instanceof ji);yt(x,he)&&Pn.forEach(In=>{let Vn=In.currentSnapshot;Object.keys(Vn).forEach(Hn=>Sn[Hn]=Vn[Hn])});const Wn=bo(u,d=Mt(u,d=d.map(In=>It(In,!1)),Sn));return new ji(u,d,hn,Wn)}}function j(){return K()&&Element.prototype.animate||{}}var _e=c(9808);let W=(()=>{class re extends l._j{constructor(d,x){super(),this._nextAnimationId=0,this._renderer=d.createRenderer(x.body,{id:"0",encapsulation:r.ifc.None,styles:[],data:{animation:[]}})}build(d){const x=this._nextAnimationId.toString();this._nextAnimationId++;const he=Array.isArray(d)?(0,l.vP)(d):d;return bt(this._renderer,null,x,"register",[he]),new ze(x,this._renderer)}}return re.\u0275fac=function(d){return new(d||re)(r.LFG(r.FYo),r.LFG(_e.K0))},re.\u0275prov=r.Yz7({token:re,factory:re.\u0275fac}),re})();class ze extends l.LC{constructor(u,d){super(),this._id=u,this._renderer=d}create(u,d){return new st(this._id,u,d||{},this._renderer)}}class st{constructor(u,d,x,he){this.id=u,this.element=d,this._renderer=he,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",x)}_listen(u,d){return this._renderer.listen(this.element,`@@${this.id}:${u}`,d)}_command(u,...d){return bt(this._renderer,this.element,this.id,u,d)}onDone(u){this._listen("done",u)}onStart(u){this._listen("start",u)}onDestroy(u){this._listen("destroy",u)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(u){this._command("setPosition",u)}getPosition(){var u,d;return null!==(d=null===(u=this._renderer.engine.players[+this.id])||void 0===u?void 0:u.getPosition())&&void 0!==d?d:0}}function bt(re,u,d,x,he){return re.setProperty(u,`@@${d}:${x}`,he)}const Cn="@.disabled";let li=(()=>{class re{constructor(d,x,he){this.delegate=d,this.engine=x,this._zone=he,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),x.onRemovalComplete=(Se,qe)=>{const nt=null==qe?void 0:qe.parentNode(Se);nt&&qe.removeChild(nt,Se)}}createRenderer(d,x){const Se=this.delegate.createRenderer(d,x);if(!(d&&x&&x.data&&x.data.animation)){let hn=this._rendererCache.get(Se);return hn||(hn=new ni("",Se,this.engine),this._rendererCache.set(Se,hn)),hn}const qe=x.id,nt=x.id+"-"+this._currentId;this._currentId++,this.engine.register(nt,d);const Ot=hn=>{Array.isArray(hn)?hn.forEach(Ot):this.engine.registerTrigger(qe,nt,d,hn.name,hn)};return x.data.animation.forEach(Ot),new oi(this,nt,Se,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(d,x,he){d>=0&&dx(he)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Se=>{const[qe,nt]=Se;qe(nt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([x,he]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return re.\u0275fac=function(d){return new(d||re)(r.LFG(r.FYo),r.LFG(Xi),r.LFG(r.R0b))},re.\u0275prov=r.Yz7({token:re,factory:re.\u0275fac}),re})();class ni{constructor(u,d,x){this.namespaceId=u,this.delegate=d,this.engine=x,this.destroyNode=this.delegate.destroyNode?he=>d.destroyNode(he):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(u,d){return this.delegate.createElement(u,d)}createComment(u){return this.delegate.createComment(u)}createText(u){return this.delegate.createText(u)}appendChild(u,d){this.delegate.appendChild(u,d),this.engine.onInsert(this.namespaceId,d,u,!1)}insertBefore(u,d,x,he=!0){this.delegate.insertBefore(u,d,x),this.engine.onInsert(this.namespaceId,d,u,he)}removeChild(u,d,x){this.engine.onRemove(this.namespaceId,d,this.delegate,x)}selectRootElement(u,d){return this.delegate.selectRootElement(u,d)}parentNode(u){return this.delegate.parentNode(u)}nextSibling(u){return this.delegate.nextSibling(u)}setAttribute(u,d,x,he){this.delegate.setAttribute(u,d,x,he)}removeAttribute(u,d,x){this.delegate.removeAttribute(u,d,x)}addClass(u,d){this.delegate.addClass(u,d)}removeClass(u,d){this.delegate.removeClass(u,d)}setStyle(u,d,x,he){this.delegate.setStyle(u,d,x,he)}removeStyle(u,d,x){this.delegate.removeStyle(u,d,x)}setProperty(u,d,x){"@"==d.charAt(0)&&d==Cn?this.disableAnimations(u,!!x):this.delegate.setProperty(u,d,x)}setValue(u,d){this.delegate.setValue(u,d)}listen(u,d,x){return this.delegate.listen(u,d,x)}disableAnimations(u,d){this.engine.disableAnimations(u,d)}}class oi extends ni{constructor(u,d,x,he){super(d,x,he),this.factory=u,this.namespaceId=d}setProperty(u,d,x){"@"==d.charAt(0)?"."==d.charAt(1)&&d==Cn?this.disableAnimations(u,x=void 0===x||!!x):this.engine.process(this.namespaceId,u,d.substr(1),x):this.delegate.setProperty(u,d,x)}listen(u,d,x){if("@"==d.charAt(0)){const he=function $n(re){switch(re){case"body":return document.body;case"document":return document;case"window":return window;default:return re}}(u);let Se=d.substr(1),qe="";return"@"!=Se.charAt(0)&&([Se,qe]=function hi(re){const u=re.indexOf(".");return[re.substring(0,u),re.substr(u+1)]}(Se)),this.engine.listen(this.namespaceId,he,Se,qe,nt=>{this.factory.scheduleListenerCallback(nt._data||-1,x,nt)})}return this.delegate.listen(u,d,x)}}let gi=(()=>{class re extends Xi{constructor(d,x,he){super(d.body,x,he)}ngOnDestroy(){this.flush()}}return re.\u0275fac=function(d){return new(d||re)(r.LFG(_e.K0),r.LFG(me),r.LFG(p))},re.\u0275prov=r.Yz7({token:re,factory:re.\u0275fac}),re})();const L=new r.OlP("AnimationModuleType"),F=[{provide:l._j,useClass:W},{provide:p,useFactory:function no(){return new y}},{provide:Xi,useClass:gi},{provide:r.FYo,useFactory:function $(re,u,d){return new li(re,u,d)},deps:[o.se,Xi,r.R0b]}],Te=[{provide:me,useFactory:function An(){return function Zn(){return"function"==typeof j()}()?new zn:new xo}},{provide:L,useValue:"BrowserAnimations"},...F],Ut=[{provide:me,useClass:He},{provide:L,useValue:"NoopAnimations"},...F];let On=(()=>{class re{static withConfig(d){return{ngModule:re,providers:d.disableAnimations?Ut:Te}}}return re.\u0275fac=function(d){return new(d||re)},re.\u0275mod=r.oAB({type:re}),re.\u0275inj=r.cJS({providers:Te,imports:[o.b2]}),re})()},2313:(Ft,Pe,c)=>{c.d(Pe,{b2:()=>en,H7:()=>xt,h_:()=>Ve,Dx:()=>Mt,q6:()=>Et,se:()=>we});var r=c(9808),o=c(5e3);class l extends r.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class K extends l{static makeCurrent(){(0,r.HT)(new K)}onAndCancel(Z,oe,De){return Z.addEventListener(oe,De,!1),()=>{Z.removeEventListener(oe,De,!1)}}dispatchEvent(Z,oe){Z.dispatchEvent(oe)}remove(Z){Z.parentNode&&Z.parentNode.removeChild(Z)}createElement(Z,oe){return(oe=oe||this.getDefaultDocument()).createElement(Z)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Z){return Z.nodeType===Node.ELEMENT_NODE}isShadowRoot(Z){return Z instanceof DocumentFragment}getGlobalEventTarget(Z,oe){return"window"===oe?window:"document"===oe?Z:"body"===oe?Z.body:null}getBaseHref(Z){const oe=function A(){return m=m||document.querySelector("base"),m?m.getAttribute("href"):null}();return null==oe?null:function D(I){b=b||document.createElement("a"),b.setAttribute("href",I);const Z=b.pathname;return"/"===Z.charAt(0)?Z:`/${Z}`}(oe)}resetBaseElement(){m=null}getUserAgent(){return window.navigator.userAgent}getCookie(Z){return(0,r.Mx)(document.cookie,Z)}}let b,m=null;const C=new o.OlP("TRANSITION_ID"),S=[{provide:o.ip1,useFactory:function E(I,Z,oe){return()=>{oe.get(o.CZH).donePromise.then(()=>{const De=(0,r.q)(),ft=Z.querySelectorAll(`style[ng-transition="${I}"]`);for(let Jt=0;Jt{const Jt=Z.findTestabilityInTree(De,ft);if(null==Jt)throw new Error("Could not find testability for element.");return Jt},o.dqk.getAllAngularTestabilities=()=>Z.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>Z.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(De=>{const ft=o.dqk.getAllAngularTestabilities();let Jt=ft.length,ee=!1;const T=function(p){ee=ee||p,Jt--,0==Jt&&De(ee)};ft.forEach(function(p){p.whenStable(T)})})}findTestabilityInTree(Z,oe,De){if(null==oe)return null;const ft=Z.getTestability(oe);return null!=ft?ft:De?(0,r.q)().isShadowRoot(oe)?this.findTestabilityInTree(Z,oe.host,!0):this.findTestabilityInTree(Z,oe.parentElement,!0):null}}let z=(()=>{class I{build(){return new XMLHttpRequest}}return I.\u0275fac=function(oe){return new(oe||I)},I.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac}),I})();const M=new o.OlP("EventManagerPlugins");let k=(()=>{class I{constructor(oe,De){this._zone=De,this._eventNameToPlugin=new Map,oe.forEach(ft=>ft.manager=this),this._plugins=oe.slice().reverse()}addEventListener(oe,De,ft){return this._findPluginFor(De).addEventListener(oe,De,ft)}addGlobalEventListener(oe,De,ft){return this._findPluginFor(De).addGlobalEventListener(oe,De,ft)}getZone(){return this._zone}_findPluginFor(oe){const De=this._eventNameToPlugin.get(oe);if(De)return De;const ft=this._plugins;for(let Jt=0;Jt{class I{constructor(){this._stylesSet=new Set}addStyles(oe){const De=new Set;oe.forEach(ft=>{this._stylesSet.has(ft)||(this._stylesSet.add(ft),De.add(ft))}),this.onStylesAdded(De)}onStylesAdded(oe){}getAllStyles(){return Array.from(this._stylesSet)}}return I.\u0275fac=function(oe){return new(oe||I)},I.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac}),I})(),ce=(()=>{class I extends ie{constructor(oe){super(),this._doc=oe,this._hostNodes=new Map,this._hostNodes.set(oe.head,[])}_addStylesToHost(oe,De,ft){oe.forEach(Jt=>{const ee=this._doc.createElement("style");ee.textContent=Jt,ft.push(De.appendChild(ee))})}addHost(oe){const De=[];this._addStylesToHost(this._stylesSet,oe,De),this._hostNodes.set(oe,De)}removeHost(oe){const De=this._hostNodes.get(oe);De&&De.forEach(ve),this._hostNodes.delete(oe)}onStylesAdded(oe){this._hostNodes.forEach((De,ft)=>{this._addStylesToHost(oe,ft,De)})}ngOnDestroy(){this._hostNodes.forEach(oe=>oe.forEach(ve))}}return I.\u0275fac=function(oe){return new(oe||I)(o.LFG(r.K0))},I.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac}),I})();function ve(I){(0,r.q)().remove(I)}const Le={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Re=/%COMP%/g;function J(I,Z,oe){for(let De=0;De{if("__ngUnwrap__"===Z)return I;!1===I(Z)&&(Z.preventDefault(),Z.returnValue=!1)}}let we=(()=>{class I{constructor(oe,De,ft){this.eventManager=oe,this.sharedStylesHost=De,this.appId=ft,this.rendererByCompId=new Map,this.defaultRenderer=new ue(oe)}createRenderer(oe,De){if(!oe||!De)return this.defaultRenderer;switch(De.encapsulation){case o.ifc.Emulated:{let ft=this.rendererByCompId.get(De.id);return ft||(ft=new rt(this.eventManager,this.sharedStylesHost,De,this.appId),this.rendererByCompId.set(De.id,ft)),ft.applyToHost(oe),ft}case 1:case o.ifc.ShadowDom:return new wt(this.eventManager,this.sharedStylesHost,oe,De);default:if(!this.rendererByCompId.has(De.id)){const ft=J(De.id,De.styles,[]);this.sharedStylesHost.addStyles(ft),this.rendererByCompId.set(De.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return I.\u0275fac=function(oe){return new(oe||I)(o.LFG(k),o.LFG(ce),o.LFG(o.AFp))},I.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac}),I})();class ue{constructor(Z){this.eventManager=Z,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Z,oe){return oe?document.createElementNS(Le[oe]||oe,Z):document.createElement(Z)}createComment(Z){return document.createComment(Z)}createText(Z){return document.createTextNode(Z)}appendChild(Z,oe){Z.appendChild(oe)}insertBefore(Z,oe,De){Z&&Z.insertBefore(oe,De)}removeChild(Z,oe){Z&&Z.removeChild(oe)}selectRootElement(Z,oe){let De="string"==typeof Z?document.querySelector(Z):Z;if(!De)throw new Error(`The selector "${Z}" did not match any elements`);return oe||(De.textContent=""),De}parentNode(Z){return Z.parentNode}nextSibling(Z){return Z.nextSibling}setAttribute(Z,oe,De,ft){if(ft){oe=ft+":"+oe;const Jt=Le[ft];Jt?Z.setAttributeNS(Jt,oe,De):Z.setAttribute(oe,De)}else Z.setAttribute(oe,De)}removeAttribute(Z,oe,De){if(De){const ft=Le[De];ft?Z.removeAttributeNS(ft,oe):Z.removeAttribute(`${De}:${oe}`)}else Z.removeAttribute(oe)}addClass(Z,oe){Z.classList.add(oe)}removeClass(Z,oe){Z.classList.remove(oe)}setStyle(Z,oe,De,ft){ft&(o.JOm.DashCase|o.JOm.Important)?Z.style.setProperty(oe,De,ft&o.JOm.Important?"important":""):Z.style[oe]=De}removeStyle(Z,oe,De){De&o.JOm.DashCase?Z.style.removeProperty(oe):Z.style[oe]=""}setProperty(Z,oe,De){Z[oe]=De}setValue(Z,oe){Z.nodeValue=oe}listen(Z,oe,De){return"string"==typeof Z?this.eventManager.addGlobalEventListener(Z,oe,Me(De)):this.eventManager.addEventListener(Z,oe,Me(De))}}class rt extends ue{constructor(Z,oe,De,ft){super(Z),this.component=De;const Jt=J(ft+"-"+De.id,De.styles,[]);oe.addStyles(Jt),this.contentAttr=function fe(I){return"_ngcontent-%COMP%".replace(Re,I)}(ft+"-"+De.id),this.hostAttr=function U(I){return"_nghost-%COMP%".replace(Re,I)}(ft+"-"+De.id)}applyToHost(Z){super.setAttribute(Z,this.hostAttr,"")}createElement(Z,oe){const De=super.createElement(Z,oe);return super.setAttribute(De,this.contentAttr,""),De}}class wt extends ue{constructor(Z,oe,De,ft){super(Z),this.sharedStylesHost=oe,this.hostEl=De,this.shadowRoot=De.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Jt=J(ft.id,ft.styles,[]);for(let ee=0;ee{class I extends N{constructor(oe){super(oe)}supports(oe){return!0}addEventListener(oe,De,ft){return oe.addEventListener(De,ft,!1),()=>this.removeEventListener(oe,De,ft)}removeEventListener(oe,De,ft){return oe.removeEventListener(De,ft)}}return I.\u0275fac=function(oe){return new(oe||I)(o.LFG(r.K0))},I.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac}),I})();const mt=["alt","control","meta","shift"],Ct={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},It={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Xe={alt:I=>I.altKey,control:I=>I.ctrlKey,meta:I=>I.metaKey,shift:I=>I.shiftKey};let lt=(()=>{class I extends N{constructor(oe){super(oe)}supports(oe){return null!=I.parseEventName(oe)}addEventListener(oe,De,ft){const Jt=I.parseEventName(De),ee=I.eventCallback(Jt.fullKey,ft,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,r.q)().onAndCancel(oe,Jt.domEventName,ee))}static parseEventName(oe){const De=oe.toLowerCase().split("."),ft=De.shift();if(0===De.length||"keydown"!==ft&&"keyup"!==ft)return null;const Jt=I._normalizeKey(De.pop());let ee="";if(mt.forEach(p=>{const h=De.indexOf(p);h>-1&&(De.splice(h,1),ee+=p+".")}),ee+=Jt,0!=De.length||0===Jt.length)return null;const T={};return T.domEventName=ft,T.fullKey=ee,T}static getEventFullKey(oe){let De="",ft=function ct(I){let Z=I.key;if(null==Z){if(Z=I.keyIdentifier,null==Z)return"Unidentified";Z.startsWith("U+")&&(Z=String.fromCharCode(parseInt(Z.substring(2),16)),3===I.location&&It.hasOwnProperty(Z)&&(Z=It[Z]))}return Ct[Z]||Z}(oe);return ft=ft.toLowerCase()," "===ft?ft="space":"."===ft&&(ft="dot"),mt.forEach(Jt=>{Jt!=ft&&Xe[Jt](oe)&&(De+=Jt+".")}),De+=ft,De}static eventCallback(oe,De,ft){return Jt=>{I.getEventFullKey(Jt)===oe&&ft.runGuarded(()=>De(Jt))}}static _normalizeKey(oe){return"esc"===oe?"escape":oe}}return I.\u0275fac=function(oe){return new(oe||I)(o.LFG(r.K0))},I.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac}),I})();const Et=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:r.bD},{provide:o.g9A,useValue:function Lt(){K.makeCurrent(),w.init()},multi:!0},{provide:r.K0,useFactory:function Pt(){return(0,o.RDi)(document),document},deps:[]}]),ot=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function Ie(){return new o.qLn},deps:[]},{provide:M,useClass:Ae,multi:!0,deps:[r.K0,o.R0b,o.Lbi]},{provide:M,useClass:lt,multi:!0,deps:[r.K0]},{provide:we,useClass:we,deps:[k,ce,o.AFp]},{provide:o.FYo,useExisting:we},{provide:ie,useExisting:ce},{provide:ce,useClass:ce,deps:[r.K0]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b]},{provide:k,useClass:k,deps:[M,o.R0b]},{provide:r.JF,useClass:z,deps:[]}];let en=(()=>{class I{constructor(oe){if(oe)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(oe){return{ngModule:I,providers:[{provide:o.AFp,useValue:oe.appId},{provide:C,useExisting:o.AFp},S]}}}return I.\u0275fac=function(oe){return new(oe||I)(o.LFG(I,12))},I.\u0275mod=o.oAB({type:I}),I.\u0275inj=o.cJS({providers:ot,imports:[r.ez,o.hGG]}),I})(),Ve=(()=>{class I{constructor(oe){this._doc=oe,this._dom=(0,r.q)()}addTag(oe,De=!1){return oe?this._getOrCreateElement(oe,De):null}addTags(oe,De=!1){return oe?oe.reduce((ft,Jt)=>(Jt&&ft.push(this._getOrCreateElement(Jt,De)),ft),[]):[]}getTag(oe){return oe&&this._doc.querySelector(`meta[${oe}]`)||null}getTags(oe){if(!oe)return[];const De=this._doc.querySelectorAll(`meta[${oe}]`);return De?[].slice.call(De):[]}updateTag(oe,De){if(!oe)return null;De=De||this._parseSelector(oe);const ft=this.getTag(De);return ft?this._setMetaElementAttributes(oe,ft):this._getOrCreateElement(oe,!0)}removeTag(oe){this.removeTagElement(this.getTag(oe))}removeTagElement(oe){oe&&this._dom.remove(oe)}_getOrCreateElement(oe,De=!1){if(!De){const ee=this._parseSelector(oe),T=this.getTags(ee).filter(p=>this._containsAttributes(oe,p))[0];if(void 0!==T)return T}const ft=this._dom.createElement("meta");return this._setMetaElementAttributes(oe,ft),this._doc.getElementsByTagName("head")[0].appendChild(ft),ft}_setMetaElementAttributes(oe,De){return Object.keys(oe).forEach(ft=>De.setAttribute(this._getMetaKeyMap(ft),oe[ft])),De}_parseSelector(oe){const De=oe.name?"name":"property";return`${De}="${oe[De]}"`}_containsAttributes(oe,De){return Object.keys(oe).every(ft=>De.getAttribute(this._getMetaKeyMap(ft))===oe[ft])}_getMetaKeyMap(oe){return ye[oe]||oe}}return I.\u0275fac=function(oe){return new(oe||I)(o.LFG(r.K0))},I.\u0275prov=o.Yz7({token:I,factory:function(oe){let De=null;return De=oe?new oe:function Ne(){return new Ve((0,o.LFG)(r.K0))}(),De},providedIn:"root"}),I})();const ye={httpEquiv:"http-equiv"};let Mt=(()=>{class I{constructor(oe){this._doc=oe}getTitle(){return this._doc.title}setTitle(oe){this._doc.title=oe||""}}return I.\u0275fac=function(oe){return new(oe||I)(o.LFG(r.K0))},I.\u0275prov=o.Yz7({token:I,factory:function(oe){let De=null;return De=oe?new oe:function yt(){return new Mt((0,o.LFG)(r.K0))}(),De},providedIn:"root"}),I})();"undefined"!=typeof window&&window;let xt=(()=>{class I{}return I.\u0275fac=function(oe){return new(oe||I)},I.\u0275prov=o.Yz7({token:I,factory:function(oe){let De=null;return De=oe?new(oe||I):o.LFG(de),De},providedIn:"root"}),I})(),de=(()=>{class I extends xt{constructor(oe){super(),this._doc=oe}sanitize(oe,De){if(null==De)return null;switch(oe){case o.q3G.NONE:return De;case o.q3G.HTML:return(0,o.qzn)(De,"HTML")?(0,o.z3N)(De):(0,o.EiD)(this._doc,String(De)).toString();case o.q3G.STYLE:return(0,o.qzn)(De,"Style")?(0,o.z3N)(De):De;case o.q3G.SCRIPT:if((0,o.qzn)(De,"Script"))return(0,o.z3N)(De);throw new Error("unsafe value used in a script context");case o.q3G.URL:return(0,o.yhl)(De),(0,o.qzn)(De,"URL")?(0,o.z3N)(De):(0,o.mCW)(String(De));case o.q3G.RESOURCE_URL:if((0,o.qzn)(De,"ResourceURL"))return(0,o.z3N)(De);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${oe} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(oe){return(0,o.JVY)(oe)}bypassSecurityTrustStyle(oe){return(0,o.L6k)(oe)}bypassSecurityTrustScript(oe){return(0,o.eBb)(oe)}bypassSecurityTrustUrl(oe){return(0,o.LAX)(oe)}bypassSecurityTrustResourceUrl(oe){return(0,o.pB0)(oe)}}return I.\u0275fac=function(oe){return new(oe||I)(o.LFG(r.K0))},I.\u0275prov=o.Yz7({token:I,factory:function(oe){let De=null;return De=oe?new oe:function ge(I){return new de(I.get(r.K0))}(o.LFG(o.zs3)),De},providedIn:"root"}),I})()},325:(Ft,Pe,c)=>{c.d(Pe,{gz:()=>Jn,m2:()=>It,eC:()=>Mt,F0:()=>mi,rH:()=>Bi,Od:()=>cr,yS:()=>yo,Bz:()=>_s,lC:()=>$i});var r=c(5e3),o=c(5254),l=c(1086),K=c(591),m=c(3426),A=c(2916),b=c(4450),D=c(1221),C=c(8514),E=c(8896),S=c(1762),w=c(8929),z=c(3489);function M(O,v){let g=!1;return arguments.length>=2&&(g=!0),function(q){return q.lift(new k(O,v,g))}}class k{constructor(v,g,H=!1){this.accumulator=v,this.seed=g,this.hasSeed=H}call(v,g){return g.subscribe(new N(v,this.accumulator,this.seed,this.hasSeed))}}class N extends z.L{constructor(v,g,H,q){super(v),this.accumulator=g,this._seed=H,this.hasSeed=q,this.index=0}get seed(){return this._seed}set seed(v){this.hasSeed=!0,this._seed=v}_next(v){if(this.hasSeed)return this._tryNext(v);this.seed=v,this.destination.next(v)}_tryNext(v){const g=this.index++;let H;try{H=this.accumulator(this.seed,v,g)}catch(q){this.destination.error(q)}this.seed=H,this.destination.next(H)}}var ie=c(2198),ce=c(4231);function ve(O){return function(g){return 0===O?(0,E.c)():g.lift(new Le(O))}}class Le{constructor(v){if(this.total=v,this.total<0)throw new ce.W}call(v,g){return g.subscribe(new Re(v,this.total))}}class Re extends z.L{constructor(v,g){super(v),this.total=g,this.ring=new Array,this.count=0}_next(v){const g=this.ring,H=this.total,q=this.count++;g.length0){const H=this.count>=this.total?this.total:this.count,q=this.ring;for(let be=0;beO.length||"full"===g.pathMatch&&(v.hasChildren()||H.lengthH[be]===q)}return O===v}function zt(O){return Array.prototype.concat.apply([],O)}function jt(O){return O.length>0?O[O.length-1]:null}function vn(O,v){for(const g in O)O.hasOwnProperty(g)&&v(O[g],g)}function cn(O){return(0,r.CqO)(O)?O:(0,r.QGY)(O)?(0,o.D)(Promise.resolve(O)):(0,l.of)(O)}const nn={exact:function _n(O,v,g){if(!de(O.segments,v.segments)||!Ge(O.segments,v.segments,g)||O.numberOfChildren!==v.numberOfChildren)return!1;for(const H in v.children)if(!O.children[H]||!_n(O.children[H],v.children[H],g))return!1;return!0},subset:Dt},Gn={exact:function yn(O,v){return Tt(O,v)},subset:function un(O,v){return Object.keys(v).length<=Object.keys(O).length&&Object.keys(v).every(g=>je(O[g],v[g]))},ignored:()=>!0};function xn(O,v,g){return nn[g.paths](O.root,v.root,g.matrixParams)&&Gn[g.queryParams](O.queryParams,v.queryParams)&&!("exact"===g.fragment&&O.fragment!==v.fragment)}function Dt(O,v,g){return it(O,v,v.segments,g)}function it(O,v,g,H){if(O.segments.length>g.length){const q=O.segments.slice(0,g.length);return!(!de(q,g)||v.hasChildren()||!Ge(q,g,H))}if(O.segments.length===g.length){if(!de(O.segments,g)||!Ge(O.segments,g,H))return!1;for(const q in v.children)if(!O.children[q]||!Dt(O.children[q],v.children[q],H))return!1;return!0}{const q=g.slice(0,O.segments.length),be=g.slice(O.segments.length);return!!(de(O.segments,q)&&Ge(O.segments,q,H)&&O.children[Mt])&&it(O.children[Mt],v,be,H)}}function Ge(O,v,g){return v.every((H,q)=>Gn[g](O[q].parameters,H.parameters))}class St{constructor(v,g,H){this.root=v,this.queryParams=g,this.fragment=H}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=B(this.queryParams)),this._queryParamMap}toString(){return oe.serialize(this)}}class xe{constructor(v,g){this.segments=v,this.children=g,this.parent=null,vn(g,(H,q)=>H.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return De(this)}}class xt{constructor(v,g){this.path=v,this.parameters=g}get parameterMap(){return this._parameterMap||(this._parameterMap=B(this.parameters)),this._parameterMap}toString(){return R(this)}}function de(O,v){return O.length===v.length&&O.every((g,H)=>g.path===v[H].path)}class I{}class Z{parse(v){const g=new Vt(v);return new St(g.parseRootSegment(),g.parseQueryParams(),g.parseFragment())}serialize(v){const g=`/${ft(v.root,!0)}`,H=function et(O){const v=Object.keys(O).map(g=>{const H=O[g];return Array.isArray(H)?H.map(q=>`${ee(g)}=${ee(q)}`).join("&"):`${ee(g)}=${ee(H)}`}).filter(g=>!!g);return v.length?`?${v.join("&")}`:""}(v.queryParams);return`${g}${H}${"string"==typeof v.fragment?`#${function T(O){return encodeURI(O)}(v.fragment)}`:""}`}}const oe=new Z;function De(O){return O.segments.map(v=>R(v)).join("/")}function ft(O,v){if(!O.hasChildren())return De(O);if(v){const g=O.children[Mt]?ft(O.children[Mt],!1):"",H=[];return vn(O.children,(q,be)=>{be!==Mt&&H.push(`${be}:${ft(q,!1)}`)}),H.length>0?`${g}(${H.join("//")})`:g}{const g=function ut(O,v){let g=[];return vn(O.children,(H,q)=>{q===Mt&&(g=g.concat(v(H,q)))}),vn(O.children,(H,q)=>{q!==Mt&&(g=g.concat(v(H,q)))}),g}(O,(H,q)=>q===Mt?[ft(O.children[Mt],!1)]:[`${q}:${ft(H,!1)}`]);return 1===Object.keys(O.children).length&&null!=O.children[Mt]?`${De(O)}/${g[0]}`:`${De(O)}/(${g.join("//")})`}}function Jt(O){return encodeURIComponent(O).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ee(O){return Jt(O).replace(/%3B/gi,";")}function p(O){return Jt(O).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function h(O){return decodeURIComponent(O)}function y(O){return h(O.replace(/\+/g,"%20"))}function R(O){return`${p(O.path)}${function Ee(O){return Object.keys(O).map(v=>`;${p(v)}=${p(O[v])}`).join("")}(O.parameters)}`}const gt=/^[^\/()?;=#]+/;function Qe(O){const v=O.match(gt);return v?v[0]:""}const _t=/^[^=?&#]+/,qt=/^[^&#]+/;class Vt{constructor(v){this.url=v,this.remaining=v}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new xe([],{}):new xe([],this.parseChildren())}parseQueryParams(){const v={};if(this.consumeOptional("?"))do{this.parseQueryParam(v)}while(this.consumeOptional("&"));return v}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const v=[];for(this.peekStartsWith("(")||v.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),v.push(this.parseSegment());let g={};this.peekStartsWith("/(")&&(this.capture("/"),g=this.parseParens(!0));let H={};return this.peekStartsWith("(")&&(H=this.parseParens(!1)),(v.length>0||Object.keys(g).length>0)&&(H[Mt]=new xe(v,g)),H}parseSegment(){const v=Qe(this.remaining);if(""===v&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(v),new xt(h(v),this.parseMatrixParams())}parseMatrixParams(){const v={};for(;this.consumeOptional(";");)this.parseParam(v);return v}parseParam(v){const g=Qe(this.remaining);if(!g)return;this.capture(g);let H="";if(this.consumeOptional("=")){const q=Qe(this.remaining);q&&(H=q,this.capture(H))}v[h(g)]=h(H)}parseQueryParam(v){const g=function Rt(O){const v=O.match(_t);return v?v[0]:""}(this.remaining);if(!g)return;this.capture(g);let H="";if(this.consumeOptional("=")){const $e=function on(O){const v=O.match(qt);return v?v[0]:""}(this.remaining);$e&&(H=$e,this.capture(H))}const q=y(g),be=y(H);if(v.hasOwnProperty(q)){let $e=v[q];Array.isArray($e)||($e=[$e],v[q]=$e),$e.push(be)}else v[q]=be}parseParens(v){const g={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const H=Qe(this.remaining),q=this.remaining[H.length];if("/"!==q&&")"!==q&&";"!==q)throw new Error(`Cannot parse url '${this.url}'`);let be;H.indexOf(":")>-1?(be=H.substr(0,H.indexOf(":")),this.capture(be),this.capture(":")):v&&(be=Mt);const $e=this.parseChildren();g[be]=1===Object.keys($e).length?$e[Mt]:new xe([],$e),this.consumeOptional("//")}return g}peekStartsWith(v){return this.remaining.startsWith(v)}consumeOptional(v){return!!this.peekStartsWith(v)&&(this.remaining=this.remaining.substring(v.length),!0)}capture(v){if(!this.consumeOptional(v))throw new Error(`Expected "${v}".`)}}class bn{constructor(v){this._root=v}get root(){return this._root.value}parent(v){const g=this.pathFromRoot(v);return g.length>1?g[g.length-2]:null}children(v){const g=mn(v,this._root);return g?g.children.map(H=>H.value):[]}firstChild(v){const g=mn(v,this._root);return g&&g.children.length>0?g.children[0].value:null}siblings(v){const g=fn(v,this._root);return g.length<2?[]:g[g.length-2].children.map(q=>q.value).filter(q=>q!==v)}pathFromRoot(v){return fn(v,this._root).map(g=>g.value)}}function mn(O,v){if(O===v.value)return v;for(const g of v.children){const H=mn(O,g);if(H)return H}return null}function fn(O,v){if(O===v.value)return[v];for(const g of v.children){const H=fn(O,g);if(H.length)return H.unshift(v),H}return[]}class Dn{constructor(v,g){this.value=v,this.children=g}toString(){return`TreeNode(${this.value})`}}function rn(O){const v={};return O&&O.children.forEach(g=>v[g.value.outlet]=g),v}class Nn extends bn{constructor(v,g){super(v),this.snapshot=g,tt(this,v)}toString(){return this.snapshot.toString()}}function Qn(O,v){const g=function ti(O,v){const $e=new ke([],{},{},"",{},Mt,v,null,O.root,-1,{});return new le("",new Dn($e,[]))}(O,v),H=new K.X([new xt("",{})]),q=new K.X({}),be=new K.X({}),$e=new K.X({}),ht=new K.X(""),$t=new Jn(H,q,$e,ht,be,Mt,v,g.root);return $t.snapshot=g.root,new Nn(new Dn($t,[]),g)}class Jn{constructor(v,g,H,q,be,$e,ht,$t){this.url=v,this.params=g,this.queryParams=H,this.fragment=q,this.data=be,this.outlet=$e,this.component=ht,this._futureSnapshot=$t}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,fe.U)(v=>B(v)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,fe.U)(v=>B(v)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qn(O,v="emptyOnly"){const g=O.pathFromRoot;let H=0;if("always"!==v)for(H=g.length-1;H>=1;){const q=g[H],be=g[H-1];if(q.routeConfig&&""===q.routeConfig.path)H--;else{if(be.component)break;H--}}return function Ce(O){return O.reduce((v,g)=>({params:Object.assign(Object.assign({},v.params),g.params),data:Object.assign(Object.assign({},v.data),g.data),resolve:Object.assign(Object.assign({},v.resolve),g._resolvedData)}),{params:{},data:{},resolve:{}})}(g.slice(H))}class ke{constructor(v,g,H,q,be,$e,ht,$t,te,Y,V){this.url=v,this.params=g,this.queryParams=H,this.fragment=q,this.data=be,this.outlet=$e,this.component=ht,this.routeConfig=$t,this._urlSegment=te,this._lastPathIndex=Y,this._resolve=V}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=B(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=B(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(H=>H.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class le extends bn{constructor(v,g){super(g),this.url=v,tt(this,g)}toString(){return Ht(this._root)}}function tt(O,v){v.value._routerState=O,v.children.forEach(g=>tt(O,g))}function Ht(O){const v=O.children.length>0?` { ${O.children.map(Ht).join(", ")} } `:"";return`${O.value}${v}`}function Xt(O){if(O.snapshot){const v=O.snapshot,g=O._futureSnapshot;O.snapshot=g,Tt(v.queryParams,g.queryParams)||O.queryParams.next(g.queryParams),v.fragment!==g.fragment&&O.fragment.next(g.fragment),Tt(v.params,g.params)||O.params.next(g.params),function vt(O,v){if(O.length!==v.length)return!1;for(let g=0;gTt(g.parameters,v[H].parameters))}(O.url,v.url);return g&&!(!O.parent!=!v.parent)&&(!O.parent||dn(O.parent,v.parent))}function jn(O,v,g){if(g&&O.shouldReuseRoute(v.value,g.value.snapshot)){const H=g.value;H._futureSnapshot=v.value;const q=function Ci(O,v,g){return v.children.map(H=>{for(const q of g.children)if(O.shouldReuseRoute(H.value,q.value.snapshot))return jn(O,H,q);return jn(O,H)})}(O,v,g);return new Dn(H,q)}{if(O.shouldAttach(v.value)){const be=O.retrieve(v.value);if(null!==be){const $e=be.route;return $e.value._futureSnapshot=v.value,$e.children=v.children.map(ht=>jn(O,ht)),$e}}const H=function ii(O){return new Jn(new K.X(O.url),new K.X(O.params),new K.X(O.queryParams),new K.X(O.fragment),new K.X(O.data),O.outlet,O.component,O)}(v.value),q=v.children.map(be=>jn(O,be));return new Dn(H,q)}}function pi(O){return"object"==typeof O&&null!=O&&!O.outlets&&!O.segmentPath}function Wi(O){return"object"==typeof O&&null!=O&&O.outlets}function oo(O,v,g,H,q){let be={};return H&&vn(H,($e,ht)=>{be[ht]=Array.isArray($e)?$e.map($t=>`${$t}`):`${$e}`}),new St(g.root===O?v:Si(g.root,O,v),be,q)}function Si(O,v,g){const H={};return vn(O.children,(q,be)=>{H[be]=q===v?g:Si(q,v,g)}),new xe(O.segments,H)}class Ii{constructor(v,g,H){if(this.isAbsolute=v,this.numberOfDoubleDots=g,this.commands=H,v&&H.length>0&&pi(H[0]))throw new Error("Root segment cannot have matrix parameters");const q=H.find(Wi);if(q&&q!==jt(H))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ro{constructor(v,g,H){this.segmentGroup=v,this.processChildren=g,this.index=H}}function Co(O,v,g){if(O||(O=new xe([],{})),0===O.segments.length&&O.hasChildren())return Xi(O,v,g);const H=function bo(O,v,g){let H=0,q=v;const be={match:!1,pathIndex:0,commandIndex:0};for(;q=g.length)return be;const $e=O.segments[q],ht=g[H];if(Wi(ht))break;const $t=`${ht}`,te=H0&&void 0===$t)break;if($t&&te&&"object"==typeof te&&void 0===te.outlets){if(!To($t,te,$e))return be;H+=2}else{if(!To($t,{},$e))return be;H++}q++}return{match:!0,pathIndex:q,commandIndex:H}}(O,v,g),q=g.slice(H.commandIndex);if(H.match&&H.pathIndex{"string"==typeof be&&(be=[be]),null!==be&&(q[$e]=Co(O.children[$e],v,be))}),vn(O.children,(be,$e)=>{void 0===H[$e]&&(q[$e]=be)}),new xe(O.segments,q)}}function Do(O,v,g){const H=O.segments.slice(0,v);let q=0;for(;q{"string"==typeof g&&(g=[g]),null!==g&&(v[H]=Do(new xe([],{}),0,g))}),v}function Jo(O){const v={};return vn(O,(g,H)=>v[H]=`${g}`),v}function To(O,v,g){return O==g.path&&Tt(v,g.parameters)}class so{constructor(v,g,H,q){this.routeReuseStrategy=v,this.futureState=g,this.currState=H,this.forwardEvent=q}activate(v){const g=this.futureState._root,H=this.currState?this.currState._root:null;this.deactivateChildRoutes(g,H,v),Xt(this.futureState.root),this.activateChildRoutes(g,H,v)}deactivateChildRoutes(v,g,H){const q=rn(g);v.children.forEach(be=>{const $e=be.value.outlet;this.deactivateRoutes(be,q[$e],H),delete q[$e]}),vn(q,(be,$e)=>{this.deactivateRouteAndItsChildren(be,H)})}deactivateRoutes(v,g,H){const q=v.value,be=g?g.value:null;if(q===be)if(q.component){const $e=H.getContext(q.outlet);$e&&this.deactivateChildRoutes(v,g,$e.children)}else this.deactivateChildRoutes(v,g,H);else be&&this.deactivateRouteAndItsChildren(g,H)}deactivateRouteAndItsChildren(v,g){v.value.component&&this.routeReuseStrategy.shouldDetach(v.value.snapshot)?this.detachAndStoreRouteSubtree(v,g):this.deactivateRouteAndOutlet(v,g)}detachAndStoreRouteSubtree(v,g){const H=g.getContext(v.value.outlet),q=H&&v.value.component?H.children:g,be=rn(v);for(const $e of Object.keys(be))this.deactivateRouteAndItsChildren(be[$e],q);if(H&&H.outlet){const $e=H.outlet.detach(),ht=H.children.onOutletDeactivated();this.routeReuseStrategy.store(v.value.snapshot,{componentRef:$e,route:v,contexts:ht})}}deactivateRouteAndOutlet(v,g){const H=g.getContext(v.value.outlet),q=H&&v.value.component?H.children:g,be=rn(v);for(const $e of Object.keys(be))this.deactivateRouteAndItsChildren(be[$e],q);H&&H.outlet&&(H.outlet.deactivate(),H.children.onOutletDeactivated(),H.attachRef=null,H.resolver=null,H.route=null)}activateChildRoutes(v,g,H){const q=rn(g);v.children.forEach(be=>{this.activateRoutes(be,q[be.value.outlet],H),this.forwardEvent(new ye(be.value.snapshot))}),v.children.length&&this.forwardEvent(new Ne(v.value.snapshot))}activateRoutes(v,g,H){const q=v.value,be=g?g.value:null;if(Xt(q),q===be)if(q.component){const $e=H.getOrCreateContext(q.outlet);this.activateChildRoutes(v,g,$e.children)}else this.activateChildRoutes(v,g,H);else if(q.component){const $e=H.getOrCreateContext(q.outlet);if(this.routeReuseStrategy.shouldAttach(q.snapshot)){const ht=this.routeReuseStrategy.retrieve(q.snapshot);this.routeReuseStrategy.store(q.snapshot,null),$e.children.onOutletReAttached(ht.contexts),$e.attachRef=ht.componentRef,$e.route=ht.route.value,$e.outlet&&$e.outlet.attach(ht.componentRef,ht.route.value),Xt(ht.route.value),this.activateChildRoutes(v,null,$e.children)}else{const ht=function Mo(O){for(let v=O.parent;v;v=v.parent){const g=v.routeConfig;if(g&&g._loadedConfig)return g._loadedConfig;if(g&&g.component)return null}return null}(q.snapshot),$t=ht?ht.module.componentFactoryResolver:null;$e.attachRef=null,$e.route=q,$e.resolver=$t,$e.outlet&&$e.outlet.activateWith(q,$t),this.activateChildRoutes(v,null,$e.children)}}else this.activateChildRoutes(v,null,H)}}class So{constructor(v,g){this.routes=v,this.module=g}}function Vi(O){return"function"==typeof O}function xi(O){return O instanceof St}const eo=Symbol("INITIAL_VALUE");function ao(){return(0,U.w)(O=>(0,m.aj)(O.map(v=>v.pipe((0,J.q)(1),(0,Me.O)(eo)))).pipe(M((v,g)=>{let H=!1;return g.reduce((q,be,$e)=>q!==eo?q:(be===eo&&(H=!0),H||!1!==be&&$e!==g.length-1&&!xi(be)?q:be),v)},eo),(0,ie.h)(v=>v!==eo),(0,fe.U)(v=>xi(v)?v:!0===v),(0,J.q)(1)))}class jo{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new to,this.attachRef=null}}class to{constructor(){this.contexts=new Map}onChildOutletCreated(v,g){const H=this.getOrCreateContext(v);H.outlet=g,this.contexts.set(v,H)}onChildOutletDestroyed(v){const g=this.getContext(v);g&&(g.outlet=null,g.attachRef=null)}onOutletDeactivated(){const v=this.contexts;return this.contexts=new Map,v}onOutletReAttached(v){this.contexts=v}getOrCreateContext(v){let g=this.getContext(v);return g||(g=new jo,this.contexts.set(v,g)),g}getContext(v){return this.contexts.get(v)||null}}let $i=(()=>{class O{constructor(g,H,q,be,$e){this.parentContexts=g,this.location=H,this.resolver=q,this.changeDetector=$e,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.attachEvents=new r.vpe,this.detachEvents=new r.vpe,this.name=be||Mt,g.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const g=this.parentContexts.getContext(this.name);g&&g.route&&(g.attachRef?this.attach(g.attachRef,g.route):this.activateWith(g.route,g.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const g=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(g.instance),g}attach(g,H){this.activated=g,this._activatedRoute=H,this.location.insert(g.hostView),this.attachEvents.emit(g.instance)}deactivate(){if(this.activated){const g=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(g)}}activateWith(g,H){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=g;const $e=(H=H||this.resolver).resolveComponentFactory(g._futureSnapshot.routeConfig.component),ht=this.parentContexts.getOrCreateContext(this.name).children,$t=new zo(g,ht,this.location.injector);this.activated=this.location.createComponent($e,this.location.length,$t),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return O.\u0275fac=function(g){return new(g||O)(r.Y36(to),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},O.\u0275dir=r.lG2({type:O,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),O})();class zo{constructor(v,g,H){this.route=v,this.childContexts=g,this.parent=H}get(v,g){return v===Jn?this.route:v===to?this.childContexts:this.parent.get(v,g)}}let Ti=(()=>{class O{}return O.\u0275fac=function(g){return new(g||O)},O.\u0275cmp=r.Xpm({type:O,selectors:[["ng-component"]],decls:1,vars:0,template:function(g,H){1&g&&r._UZ(0,"router-outlet")},directives:[$i],encapsulation:2}),O})();function Oi(O,v=""){for(let g=0;gzi(H)===v);return g.push(...O.filter(H=>zi(H)!==v)),g}const vi={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ji(O,v,g){var H;if(""===v.path)return"full"===v.pathMatch&&(O.hasChildren()||g.length>0)?Object.assign({},vi):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const be=(v.matcher||Je)(g,O,v);if(!be)return Object.assign({},vi);const $e={};vn(be.posParams,($t,te)=>{$e[te]=$t.path});const ht=be.consumed.length>0?Object.assign(Object.assign({},$e),be.consumed[be.consumed.length-1].parameters):$e;return{matched:!0,consumedSegments:be.consumed,lastChild:be.consumed.length,parameters:ht,positionalParamSegments:null!==(H=be.posParams)&&void 0!==H?H:{}}}function zn(O,v,g,H,q="corrected"){if(g.length>0&&function _e(O,v,g){return g.some(H=>ze(O,v,H)&&zi(H)!==Mt)}(O,g,H)){const $e=new xe(v,function j(O,v,g,H){const q={};q[Mt]=H,H._sourceSegment=O,H._segmentIndexShift=v.length;for(const be of g)if(""===be.path&&zi(be)!==Mt){const $e=new xe([],{});$e._sourceSegment=O,$e._segmentIndexShift=v.length,q[zi(be)]=$e}return q}(O,v,H,new xe(g,O.children)));return $e._sourceSegment=O,$e._segmentIndexShift=v.length,{segmentGroup:$e,slicedSegments:[]}}if(0===g.length&&function W(O,v,g){return g.some(H=>ze(O,v,H))}(O,g,H)){const $e=new xe(O.segments,function Zn(O,v,g,H,q,be){const $e={};for(const ht of H)if(ze(O,g,ht)&&!q[zi(ht)]){const $t=new xe([],{});$t._sourceSegment=O,$t._segmentIndexShift="legacy"===be?O.segments.length:v.length,$e[zi(ht)]=$t}return Object.assign(Object.assign({},q),$e)}(O,v,g,H,O.children,q));return $e._sourceSegment=O,$e._segmentIndexShift=v.length,{segmentGroup:$e,slicedSegments:g}}const be=new xe(O.segments,O.children);return be._sourceSegment=O,be._segmentIndexShift=v.length,{segmentGroup:be,slicedSegments:g}}function ze(O,v,g){return(!(O.hasChildren()||v.length>0)||"full"!==g.pathMatch)&&""===g.path}function st(O,v,g,H){return!!(zi(O)===H||H!==Mt&&ze(v,g,O))&&("**"===O.path||ji(v,O,g).matched)}function bt(O,v,g){return 0===v.length&&!O.children[g]}class Zt{constructor(v){this.segmentGroup=v||null}}class Cn{constructor(v){this.urlTree=v}}function li(O){return new A.y(v=>v.error(new Zt(O)))}function ni(O){return new A.y(v=>v.error(new Cn(O)))}function oi(O){return new A.y(v=>v.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${O}'`)))}class gi{constructor(v,g,H,q,be){this.configLoader=g,this.urlSerializer=H,this.urlTree=q,this.config=be,this.allowRedirects=!0,this.ngModule=v.get(r.h0i)}apply(){const v=zn(this.urlTree.root,[],[],this.config).segmentGroup,g=new xe(v.segments,v.children);return this.expandSegmentGroup(this.ngModule,this.config,g,Mt).pipe((0,fe.U)(be=>this.createUrlTree(no(be),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,se.K)(be=>{if(be instanceof Cn)return this.allowRedirects=!1,this.match(be.urlTree);throw be instanceof Zt?this.noMatchError(be):be}))}match(v){return this.expandSegmentGroup(this.ngModule,this.config,v.root,Mt).pipe((0,fe.U)(q=>this.createUrlTree(no(q),v.queryParams,v.fragment))).pipe((0,se.K)(q=>{throw q instanceof Zt?this.noMatchError(q):q}))}noMatchError(v){return new Error(`Cannot match any routes. URL Segment: '${v.segmentGroup}'`)}createUrlTree(v,g,H){const q=v.segments.length>0?new xe([],{[Mt]:v}):v;return new St(q,g,H)}expandSegmentGroup(v,g,H,q){return 0===H.segments.length&&H.hasChildren()?this.expandChildren(v,g,H).pipe((0,fe.U)(be=>new xe([],be))):this.expandSegment(v,H,g,H.segments,q,!0)}expandChildren(v,g,H){const q=[];for(const be of Object.keys(H.children))"primary"===be?q.unshift(be):q.push(be);return(0,o.D)(q).pipe((0,we.b)(be=>{const $e=H.children[be],ht=er(g,be);return this.expandSegmentGroup(v,ht,$e,be).pipe((0,fe.U)($t=>({segment:$t,outlet:be})))}),M((be,$e)=>(be[$e.outlet]=$e.segment,be),{}),function me(O,v){const g=arguments.length>=2;return H=>H.pipe(O?(0,ie.h)((q,be)=>O(q,be,H)):He.y,ve(1),g?(0,Ue.d)(v):(0,ae.T)(()=>new b.K))}())}expandSegment(v,g,H,q,be,$e){return(0,o.D)(H).pipe((0,we.b)(ht=>this.expandSegmentAgainstRoute(v,g,H,ht,q,be,$e).pipe((0,se.K)(te=>{if(te instanceof Zt)return(0,l.of)(null);throw te}))),(0,ue.P)(ht=>!!ht),(0,se.K)((ht,$t)=>{if(ht instanceof b.K||"EmptyError"===ht.name){if(bt(g,q,be))return(0,l.of)(new xe([],{}));throw new Zt(g)}throw ht}))}expandSegmentAgainstRoute(v,g,H,q,be,$e,ht){return st(q,g,be,$e)?void 0===q.redirectTo?this.matchSegmentAgainstRoute(v,g,q,be,$e):ht&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(v,g,H,q,be,$e):li(g):li(g)}expandSegmentAgainstRouteUsingRedirect(v,g,H,q,be,$e){return"**"===q.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(v,H,q,$e):this.expandRegularSegmentAgainstRouteUsingRedirect(v,g,H,q,be,$e)}expandWildCardWithParamsAgainstRouteUsingRedirect(v,g,H,q){const be=this.applyRedirectCommands([],H.redirectTo,{});return H.redirectTo.startsWith("/")?ni(be):this.lineralizeSegments(H,be).pipe((0,Ye.zg)($e=>{const ht=new xe($e,{});return this.expandSegment(v,ht,g,$e,q,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(v,g,H,q,be,$e){const{matched:ht,consumedSegments:$t,lastChild:te,positionalParamSegments:Y}=ji(g,q,be);if(!ht)return li(g);const V=this.applyRedirectCommands($t,q.redirectTo,Y);return q.redirectTo.startsWith("/")?ni(V):this.lineralizeSegments(q,V).pipe((0,Ye.zg)(X=>this.expandSegment(v,g,H,X.concat(be.slice(te)),$e,!1)))}matchSegmentAgainstRoute(v,g,H,q,be){if("**"===H.path)return H.loadChildren?(H._loadedConfig?(0,l.of)(H._loadedConfig):this.configLoader.load(v.injector,H)).pipe((0,fe.U)(X=>(H._loadedConfig=X,new xe(q,{})))):(0,l.of)(new xe(q,{}));const{matched:$e,consumedSegments:ht,lastChild:$t}=ji(g,H,q);if(!$e)return li(g);const te=q.slice($t);return this.getChildConfig(v,H,q).pipe((0,Ye.zg)(V=>{const X=V.module,Oe=V.routes,{segmentGroup:Ze,slicedSegments:at}=zn(g,ht,te,Oe),Yt=new xe(Ze.segments,Ze.children);if(0===at.length&&Yt.hasChildren())return this.expandChildren(X,Oe,Yt).pipe((0,fe.U)(ln=>new xe(ht,ln)));if(0===Oe.length&&0===at.length)return(0,l.of)(new xe(ht,{}));const Gt=zi(H)===be;return this.expandSegment(X,Yt,Oe,at,Gt?Mt:be,!0).pipe((0,fe.U)(sn=>new xe(ht.concat(sn.segments),sn.children)))}))}getChildConfig(v,g,H){return g.children?(0,l.of)(new So(g.children,v)):g.loadChildren?void 0!==g._loadedConfig?(0,l.of)(g._loadedConfig):this.runCanLoadGuards(v.injector,g,H).pipe((0,Ye.zg)(q=>q?this.configLoader.load(v.injector,g).pipe((0,fe.U)(be=>(g._loadedConfig=be,be))):function $n(O){return new A.y(v=>v.error(Q(`Cannot load children because the guard of the route "path: '${O.path}'" returned false`)))}(g))):(0,l.of)(new So([],v))}runCanLoadGuards(v,g,H){const q=g.canLoad;if(!q||0===q.length)return(0,l.of)(!0);const be=q.map($e=>{const ht=v.get($e);let $t;if(function Yo(O){return O&&Vi(O.canLoad)}(ht))$t=ht.canLoad(g,H);else{if(!Vi(ht))throw new Error("Invalid CanLoad guard");$t=ht(g,H)}return cn($t)});return(0,l.of)(be).pipe(ao(),(0,We.b)($e=>{if(!xi($e))return;const ht=Q(`Redirecting to "${this.urlSerializer.serialize($e)}"`);throw ht.url=$e,ht}),(0,fe.U)($e=>!0===$e))}lineralizeSegments(v,g){let H=[],q=g.root;for(;;){if(H=H.concat(q.segments),0===q.numberOfChildren)return(0,l.of)(H);if(q.numberOfChildren>1||!q.children[Mt])return oi(v.redirectTo);q=q.children[Mt]}}applyRedirectCommands(v,g,H){return this.applyRedirectCreatreUrlTree(g,this.urlSerializer.parse(g),v,H)}applyRedirectCreatreUrlTree(v,g,H,q){const be=this.createSegmentGroup(v,g.root,H,q);return new St(be,this.createQueryParams(g.queryParams,this.urlTree.queryParams),g.fragment)}createQueryParams(v,g){const H={};return vn(v,(q,be)=>{if("string"==typeof q&&q.startsWith(":")){const ht=q.substring(1);H[be]=g[ht]}else H[be]=q}),H}createSegmentGroup(v,g,H,q){const be=this.createSegments(v,g.segments,H,q);let $e={};return vn(g.children,(ht,$t)=>{$e[$t]=this.createSegmentGroup(v,ht,H,q)}),new xe(be,$e)}createSegments(v,g,H,q){return g.map(be=>be.path.startsWith(":")?this.findPosParam(v,be,q):this.findOrReturn(be,H))}findPosParam(v,g,H){const q=H[g.path.substring(1)];if(!q)throw new Error(`Cannot redirect to '${v}'. Cannot find '${g.path}'.`);return q}findOrReturn(v,g){let H=0;for(const q of g){if(q.path===v.path)return g.splice(H),q;H++}return v}}function no(O){const v={};for(const H of Object.keys(O.children)){const be=no(O.children[H]);(be.segments.length>0||be.hasChildren())&&(v[H]=be)}return function An(O){if(1===O.numberOfChildren&&O.children[Mt]){const v=O.children[Mt];return new xe(O.segments.concat(v.segments),v.children)}return O}(new xe(O.segments,v))}class L{constructor(v){this.path=v,this.route=this.path[this.path.length-1]}}class F{constructor(v,g){this.component=v,this.route=g}}function Te(O,v,g){const H=O._root;return re(H,v?v._root:null,g,[H.value])}function On(O,v,g){const H=function Kt(O){if(!O)return null;for(let v=O.parent;v;v=v.parent){const g=v.routeConfig;if(g&&g._loadedConfig)return g._loadedConfig}return null}(v);return(H?H.module.injector:g).get(O)}function re(O,v,g,H,q={canDeactivateChecks:[],canActivateChecks:[]}){const be=rn(v);return O.children.forEach($e=>{(function u(O,v,g,H,q={canDeactivateChecks:[],canActivateChecks:[]}){const be=O.value,$e=v?v.value:null,ht=g?g.getContext(O.value.outlet):null;if($e&&be.routeConfig===$e.routeConfig){const $t=function d(O,v,g){if("function"==typeof g)return g(O,v);switch(g){case"pathParamsChange":return!de(O.url,v.url);case"pathParamsOrQueryParamsChange":return!de(O.url,v.url)||!Tt(O.queryParams,v.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!dn(O,v)||!Tt(O.queryParams,v.queryParams);default:return!dn(O,v)}}($e,be,be.routeConfig.runGuardsAndResolvers);$t?q.canActivateChecks.push(new L(H)):(be.data=$e.data,be._resolvedData=$e._resolvedData),re(O,v,be.component?ht?ht.children:null:g,H,q),$t&&ht&&ht.outlet&&ht.outlet.isActivated&&q.canDeactivateChecks.push(new F(ht.outlet.component,$e))}else $e&&x(v,ht,q),q.canActivateChecks.push(new L(H)),re(O,null,be.component?ht?ht.children:null:g,H,q)})($e,be[$e.value.outlet],g,H.concat([$e.value]),q),delete be[$e.value.outlet]}),vn(be,($e,ht)=>x($e,g.getContext(ht),q)),q}function x(O,v,g){const H=rn(O),q=O.value;vn(H,(be,$e)=>{x(be,q.component?v?v.children.getContext($e):null:v,g)}),g.canDeactivateChecks.push(new F(q.component&&v&&v.outlet&&v.outlet.isActivated?v.outlet.component:null,q))}class Pn{}function Wn(O){return new A.y(v=>v.error(O))}class Vn{constructor(v,g,H,q,be,$e){this.rootComponentType=v,this.config=g,this.urlTree=H,this.url=q,this.paramsInheritanceStrategy=be,this.relativeLinkResolution=$e}recognize(){const v=zn(this.urlTree.root,[],[],this.config.filter($e=>void 0===$e.redirectTo),this.relativeLinkResolution).segmentGroup,g=this.processSegmentGroup(this.config,v,Mt);if(null===g)return null;const H=new ke([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Mt,this.rootComponentType,null,this.urlTree.root,-1,{}),q=new Dn(H,g),be=new le(this.url,q);return this.inheritParamsAndData(be._root),be}inheritParamsAndData(v){const g=v.value,H=qn(g,this.paramsInheritanceStrategy);g.params=Object.freeze(H.params),g.data=Object.freeze(H.data),v.children.forEach(q=>this.inheritParamsAndData(q))}processSegmentGroup(v,g,H){return 0===g.segments.length&&g.hasChildren()?this.processChildren(v,g):this.processSegment(v,g,g.segments,H)}processChildren(v,g){const H=[];for(const be of Object.keys(g.children)){const $e=g.children[be],ht=er(v,be),$t=this.processSegmentGroup(ht,$e,be);if(null===$t)return null;H.push(...$t)}const q=Ai(H);return function Hn(O){O.sort((v,g)=>v.value.outlet===Mt?-1:g.value.outlet===Mt?1:v.value.outlet.localeCompare(g.value.outlet))}(q),q}processSegment(v,g,H,q){for(const be of v){const $e=this.processSegmentAgainstRoute(be,g,H,q);if(null!==$e)return $e}return bt(g,H,q)?[]:null}processSegmentAgainstRoute(v,g,H,q){if(v.redirectTo||!st(v,g,H,q))return null;let be,$e=[],ht=[];if("**"===v.path){const Oe=H.length>0?jt(H).parameters:{};be=new ke(H,Oe,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Pi(v),zi(v),v.component,v,co(g),Ri(g)+H.length,Ki(v))}else{const Oe=ji(g,v,H);if(!Oe.matched)return null;$e=Oe.consumedSegments,ht=H.slice(Oe.lastChild),be=new ke($e,Oe.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Pi(v),zi(v),v.component,v,co(g),Ri(g)+$e.length,Ki(v))}const $t=function bi(O){return O.children?O.children:O.loadChildren?O._loadedConfig.routes:[]}(v),{segmentGroup:te,slicedSegments:Y}=zn(g,$e,ht,$t.filter(Oe=>void 0===Oe.redirectTo),this.relativeLinkResolution);if(0===Y.length&&te.hasChildren()){const Oe=this.processChildren($t,te);return null===Oe?null:[new Dn(be,Oe)]}if(0===$t.length&&0===Y.length)return[new Dn(be,[])];const V=zi(v)===q,X=this.processSegment($t,te,Y,V?Mt:q);return null===X?null:[new Dn(be,X)]}}function Ei(O){const v=O.value.routeConfig;return v&&""===v.path&&void 0===v.redirectTo}function Ai(O){const v=[],g=new Set;for(const H of O){if(!Ei(H)){v.push(H);continue}const q=v.find(be=>H.value.routeConfig===be.value.routeConfig);void 0!==q?(q.children.push(...H.children),g.add(q)):v.push(H)}for(const H of g){const q=Ai(H.children);v.push(new Dn(H.value,q))}return v.filter(H=>!g.has(H))}function co(O){let v=O;for(;v._sourceSegment;)v=v._sourceSegment;return v}function Ri(O){let v=O,g=v._segmentIndexShift?v._segmentIndexShift:0;for(;v._sourceSegment;)v=v._sourceSegment,g+=v._segmentIndexShift?v._segmentIndexShift:0;return g-1}function Pi(O){return O.data||{}}function Ki(O){return O.resolve||{}}function Fo(O){return(0,U.w)(v=>{const g=O(v);return g?(0,o.D)(g).pipe((0,fe.U)(()=>v)):(0,l.of)(v)})}class kn extends class Tn{shouldDetach(v){return!1}store(v,g){}shouldAttach(v){return!1}retrieve(v){return null}shouldReuseRoute(v,g){return v.routeConfig===g.routeConfig}}{}const Ln=new r.OlP("ROUTES");class Bn{constructor(v,g,H,q){this.injector=v,this.compiler=g,this.onLoadStartListener=H,this.onLoadEndListener=q}load(v,g){if(g._loader$)return g._loader$;this.onLoadStartListener&&this.onLoadStartListener(g);const q=this.loadModuleFactory(g.loadChildren).pipe((0,fe.U)(be=>{this.onLoadEndListener&&this.onLoadEndListener(g);const $e=be.create(v);return new So(zt($e.injector.get(Ln,void 0,r.XFs.Self|r.XFs.Optional)).map(Uo),$e)}),(0,se.K)(be=>{throw g._loader$=void 0,be}));return g._loader$=new S.c(q,()=>new w.xQ).pipe((0,rt.x)()),g._loader$}loadModuleFactory(v){return cn(v()).pipe((0,Ye.zg)(g=>g instanceof r.YKP?(0,l.of)(g):(0,o.D)(this.compiler.compileModuleAsync(g))))}}class ui{shouldProcessUrl(v){return!0}extract(v){return v}merge(v,g){return v}}function ki(O){throw O}function vo(O,v,g){return v.parse("/")}function _i(O,v){return(0,l.of)(null)}const ar={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},br={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let mi=(()=>{class O{constructor(g,H,q,be,$e,ht,$t){this.rootComponentType=g,this.urlSerializer=H,this.rootContexts=q,this.location=be,this.config=$t,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new w.xQ,this.errorHandler=ki,this.malformedUriErrorHandler=vo,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_i,afterPreactivation:_i},this.urlHandlingStrategy=new ui,this.routeReuseStrategy=new kn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=$e.get(r.h0i),this.console=$e.get(r.c2e);const V=$e.get(r.R0b);this.isNgZoneEnabled=V instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig($t),this.currentUrlTree=function an(){return new St(new xe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Bn($e,ht,X=>this.triggerEvent(new Et(X)),X=>this.triggerEvent(new ot(X))),this.routerState=Qn(this.currentUrlTree,this.rootComponentType),this.transitions=new K.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var g;return null===(g=this.location.getState())||void 0===g?void 0:g.\u0275routerPageId}setupNavigations(g){const H=this.events;return g.pipe((0,ie.h)(q=>0!==q.id),(0,fe.U)(q=>Object.assign(Object.assign({},q),{extractedUrl:this.urlHandlingStrategy.extract(q.rawUrl)})),(0,U.w)(q=>{let be=!1,$e=!1;return(0,l.of)(q).pipe((0,We.b)(ht=>{this.currentNavigation={id:ht.id,initialUrl:ht.currentRawUrl,extractedUrl:ht.extractedUrl,trigger:ht.source,extras:ht.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,U.w)(ht=>{const $t=this.browserUrlTree.toString(),te=!this.navigated||ht.extractedUrl.toString()!==$t||$t!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||te)&&this.urlHandlingStrategy.shouldProcessUrl(ht.rawUrl))return Hi(ht.source)&&(this.browserUrlTree=ht.extractedUrl),(0,l.of)(ht).pipe((0,U.w)(V=>{const X=this.transitions.getValue();return H.next(new Ct(V.id,this.serializeUrl(V.extractedUrl),V.source,V.restoredState)),X!==this.transitions.getValue()?E.E:Promise.resolve(V)}),function $(O,v,g,H){return(0,U.w)(q=>function hi(O,v,g,H,q){return new gi(O,v,g,H,q).apply()}(O,v,g,q.extractedUrl,H).pipe((0,fe.U)(be=>Object.assign(Object.assign({},q),{urlAfterRedirects:be}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,We.b)(V=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:V.urlAfterRedirects})}),function Ui(O,v,g,H,q){return(0,Ye.zg)(be=>function In(O,v,g,H,q="emptyOnly",be="legacy"){try{const $e=new Vn(O,v,g,H,q,be).recognize();return null===$e?Wn(new Pn):(0,l.of)($e)}catch($e){return Wn($e)}}(O,v,be.urlAfterRedirects,g(be.urlAfterRedirects),H,q).pipe((0,fe.U)($e=>Object.assign(Object.assign({},be),{targetSnapshot:$e}))))}(this.rootComponentType,this.config,V=>this.serializeUrl(V),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,We.b)(V=>{if("eager"===this.urlUpdateStrategy){if(!V.extras.skipLocationChange){const Oe=this.urlHandlingStrategy.merge(V.urlAfterRedirects,V.rawUrl);this.setBrowserUrl(Oe,V)}this.browserUrlTree=V.urlAfterRedirects}const X=new ct(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot);H.next(X)}));if(te&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:X,extractedUrl:Oe,source:Ze,restoredState:at,extras:Yt}=ht,Gt=new Ct(X,this.serializeUrl(Oe),Ze,at);H.next(Gt);const Nt=Qn(Oe,this.rootComponentType).snapshot;return(0,l.of)(Object.assign(Object.assign({},ht),{targetSnapshot:Nt,urlAfterRedirects:Oe,extras:Object.assign(Object.assign({},Yt),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ht.rawUrl,ht.resolve(null),E.E}),Fo(ht=>{const{targetSnapshot:$t,id:te,extractedUrl:Y,rawUrl:V,extras:{skipLocationChange:X,replaceUrl:Oe}}=ht;return this.hooks.beforePreactivation($t,{navigationId:te,appliedUrlTree:Y,rawUrlTree:V,skipLocationChange:!!X,replaceUrl:!!Oe})}),(0,We.b)(ht=>{const $t=new Lt(ht.id,this.serializeUrl(ht.extractedUrl),this.serializeUrl(ht.urlAfterRedirects),ht.targetSnapshot);this.triggerEvent($t)}),(0,fe.U)(ht=>Object.assign(Object.assign({},ht),{guards:Te(ht.targetSnapshot,ht.currentSnapshot,this.rootContexts)})),function he(O,v){return(0,Ye.zg)(g=>{const{targetSnapshot:H,currentSnapshot:q,guards:{canActivateChecks:be,canDeactivateChecks:$e}}=g;return 0===$e.length&&0===be.length?(0,l.of)(Object.assign(Object.assign({},g),{guardsResult:!0})):function Se(O,v,g,H){return(0,o.D)(O).pipe((0,Ye.zg)(q=>function Sn(O,v,g,H,q){const be=v&&v.routeConfig?v.routeConfig.canDeactivate:null;if(!be||0===be.length)return(0,l.of)(!0);const $e=be.map(ht=>{const $t=On(ht,v,q);let te;if(function mo(O){return O&&Vi(O.canDeactivate)}($t))te=cn($t.canDeactivate(O,v,g,H));else{if(!Vi($t))throw new Error("Invalid CanDeactivate guard");te=cn($t(O,v,g,H))}return te.pipe((0,ue.P)())});return(0,l.of)($e).pipe(ao())}(q.component,q.route,g,v,H)),(0,ue.P)(q=>!0!==q,!0))}($e,H,q,O).pipe((0,Ye.zg)(ht=>ht&&function Xo(O){return"boolean"==typeof O}(ht)?function qe(O,v,g,H){return(0,o.D)(v).pipe((0,we.b)(q=>(0,D.z)(function Ot(O,v){return null!==O&&v&&v(new en(O)),(0,l.of)(!0)}(q.route.parent,H),function nt(O,v){return null!==O&&v&&v(new Ve(O)),(0,l.of)(!0)}(q.route,H),function hn(O,v,g){const H=v[v.length-1],be=v.slice(0,v.length-1).reverse().map($e=>function Ut(O){const v=O.routeConfig?O.routeConfig.canActivateChild:null;return v&&0!==v.length?{node:O,guards:v}:null}($e)).filter($e=>null!==$e).map($e=>(0,C.P)(()=>{const ht=$e.guards.map($t=>{const te=On($t,$e.node,g);let Y;if(function po(O){return O&&Vi(O.canActivateChild)}(te))Y=cn(te.canActivateChild(H,O));else{if(!Vi(te))throw new Error("Invalid CanActivateChild guard");Y=cn(te(H,O))}return Y.pipe((0,ue.P)())});return(0,l.of)(ht).pipe(ao())}));return(0,l.of)(be).pipe(ao())}(O,q.path,g),function Wt(O,v,g){const H=v.routeConfig?v.routeConfig.canActivate:null;if(!H||0===H.length)return(0,l.of)(!0);const q=H.map(be=>(0,C.P)(()=>{const $e=On(be,v,g);let ht;if(function Yi(O){return O&&Vi(O.canActivate)}($e))ht=cn($e.canActivate(v,O));else{if(!Vi($e))throw new Error("Invalid CanActivate guard");ht=cn($e(v,O))}return ht.pipe((0,ue.P)())}));return(0,l.of)(q).pipe(ao())}(O,q.route,g))),(0,ue.P)(q=>!0!==q,!0))}(H,be,O,v):(0,l.of)(ht)),(0,fe.U)(ht=>Object.assign(Object.assign({},g),{guardsResult:ht})))})}(this.ngModule.injector,ht=>this.triggerEvent(ht)),(0,We.b)(ht=>{if(xi(ht.guardsResult)){const te=Q(`Redirecting to "${this.serializeUrl(ht.guardsResult)}"`);throw te.url=ht.guardsResult,te}const $t=new Ie(ht.id,this.serializeUrl(ht.extractedUrl),this.serializeUrl(ht.urlAfterRedirects),ht.targetSnapshot,!!ht.guardsResult);this.triggerEvent($t)}),(0,ie.h)(ht=>!!ht.guardsResult||(this.restoreHistory(ht),this.cancelNavigationTransition(ht,""),!1)),Fo(ht=>{if(ht.guards.canActivateChecks.length)return(0,l.of)(ht).pipe((0,We.b)($t=>{const te=new Pt($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(te)}),(0,U.w)($t=>{let te=!1;return(0,l.of)($t).pipe(function io(O,v){return(0,Ye.zg)(g=>{const{targetSnapshot:H,guards:{canActivateChecks:q}}=g;if(!q.length)return(0,l.of)(g);let be=0;return(0,o.D)(q).pipe((0,we.b)($e=>function Po(O,v,g,H){return function Ao(O,v,g,H){const q=Object.keys(O);if(0===q.length)return(0,l.of)({});const be={};return(0,o.D)(q).pipe((0,Ye.zg)($e=>function go(O,v,g,H){const q=On(O,v,H);return cn(q.resolve?q.resolve(v,g):q(v,g))}(O[$e],v,g,H).pipe((0,We.b)(ht=>{be[$e]=ht}))),ve(1),(0,Ye.zg)(()=>Object.keys(be).length===q.length?(0,l.of)(be):E.E))}(O._resolve,O,v,H).pipe((0,fe.U)(be=>(O._resolvedData=be,O.data=Object.assign(Object.assign({},O.data),qn(O,g).resolve),null)))}($e.route,H,O,v)),(0,We.b)(()=>be++),ve(1),(0,Ye.zg)($e=>be===q.length?(0,l.of)(g):E.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,We.b)({next:()=>te=!0,complete:()=>{te||(this.restoreHistory($t),this.cancelNavigationTransition($t,"At least one route resolver didn't emit any value."))}}))}),(0,We.b)($t=>{const te=new pt($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(te)}))}),Fo(ht=>{const{targetSnapshot:$t,id:te,extractedUrl:Y,rawUrl:V,extras:{skipLocationChange:X,replaceUrl:Oe}}=ht;return this.hooks.afterPreactivation($t,{navigationId:te,appliedUrlTree:Y,rawUrlTree:V,skipLocationChange:!!X,replaceUrl:!!Oe})}),(0,fe.U)(ht=>{const $t=function Mn(O,v,g){const H=jn(O,v._root,g?g._root:void 0);return new Nn(H,v)}(this.routeReuseStrategy,ht.targetSnapshot,ht.currentRouterState);return Object.assign(Object.assign({},ht),{targetRouterState:$t})}),(0,We.b)(ht=>{this.currentUrlTree=ht.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ht.urlAfterRedirects,ht.rawUrl),this.routerState=ht.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ht.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ht),this.browserUrlTree=ht.urlAfterRedirects)}),((O,v,g)=>(0,fe.U)(H=>(new so(v,H.targetRouterState,H.currentRouterState,g).activate(O),H)))(this.rootContexts,this.routeReuseStrategy,ht=>this.triggerEvent(ht)),(0,We.b)({next(){be=!0},complete(){be=!0}}),(0,wt.x)(()=>{var ht;be||$e||this.cancelNavigationTransition(q,`Navigation ID ${q.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ht=this.currentNavigation)||void 0===ht?void 0:ht.id)===q.id&&(this.currentNavigation=null)}),(0,se.K)(ht=>{if($e=!0,function Fe(O){return O&&O[G]}(ht)){const $t=xi(ht.url);$t||(this.navigated=!0,this.restoreHistory(q,!0));const te=new Xe(q.id,this.serializeUrl(q.extractedUrl),ht.message);H.next(te),$t?setTimeout(()=>{const Y=this.urlHandlingStrategy.merge(ht.url,this.rawUrlTree),V={skipLocationChange:q.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Hi(q.source)};this.scheduleNavigation(Y,"imperative",null,V,{resolve:q.resolve,reject:q.reject,promise:q.promise})},0):q.resolve(!1)}else{this.restoreHistory(q,!0);const $t=new lt(q.id,this.serializeUrl(q.extractedUrl),ht);H.next($t);try{q.resolve(this.errorHandler(ht))}catch(te){q.reject(te)}}return E.E}))}))}resetRootComponentType(g){this.rootComponentType=g,this.routerState.root.component=this.rootComponentType}setTransition(g){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),g))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(g=>{const H="popstate"===g.type?"popstate":"hashchange";"popstate"===H&&setTimeout(()=>{var q;const be={replaceUrl:!0},$e=(null===(q=g.state)||void 0===q?void 0:q.navigationId)?g.state:null;if($e){const $t=Object.assign({},$e);delete $t.navigationId,delete $t.\u0275routerPageId,0!==Object.keys($t).length&&(be.state=$t)}const ht=this.parseUrl(g.url);this.scheduleNavigation(ht,H,$e,be)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(g){this.events.next(g)}resetConfig(g){Oi(g),this.config=g.map(Uo),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(g,H={}){const{relativeTo:q,queryParams:be,fragment:$e,queryParamsHandling:ht,preserveFragment:$t}=H,te=q||this.routerState.root,Y=$t?this.currentUrlTree.fragment:$e;let V=null;switch(ht){case"merge":V=Object.assign(Object.assign({},this.currentUrlTree.queryParams),be);break;case"preserve":V=this.currentUrlTree.queryParams;break;default:V=be||null}return null!==V&&(V=this.removeEmptyProps(V)),function si(O,v,g,H,q){if(0===g.length)return oo(v.root,v.root,v,H,q);const be=function qi(O){if("string"==typeof O[0]&&1===O.length&&"/"===O[0])return new Ii(!0,0,O);let v=0,g=!1;const H=O.reduce((q,be,$e)=>{if("object"==typeof be&&null!=be){if(be.outlets){const ht={};return vn(be.outlets,($t,te)=>{ht[te]="string"==typeof $t?$t.split("/"):$t}),[...q,{outlets:ht}]}if(be.segmentPath)return[...q,be.segmentPath]}return"string"!=typeof be?[...q,be]:0===$e?(be.split("/").forEach((ht,$t)=>{0==$t&&"."===ht||(0==$t&&""===ht?g=!0:".."===ht?v++:""!=ht&&q.push(ht))}),q):[...q,be]},[]);return new Ii(g,v,H)}(g);if(be.toRoot())return oo(v.root,new xe([],{}),v,H,q);const $e=function Ho(O,v,g){if(O.isAbsolute)return new Ro(v.root,!0,0);if(-1===g.snapshot._lastPathIndex){const be=g.snapshot._urlSegment;return new Ro(be,be===v.root,0)}const H=pi(O.commands[0])?0:1;return function wo(O,v,g){let H=O,q=v,be=g;for(;be>q;){if(be-=q,H=H.parent,!H)throw new Error("Invalid number of '../'");q=H.segments.length}return new Ro(H,!1,q-be)}(g.snapshot._urlSegment,g.snapshot._lastPathIndex+H,O.numberOfDoubleDots)}(be,v,O),ht=$e.processChildren?Xi($e.segmentGroup,$e.index,be.commands):Co($e.segmentGroup,$e.index,be.commands);return oo($e.segmentGroup,ht,v,H,q)}(te,this.currentUrlTree,g,V,null!=Y?Y:null)}navigateByUrl(g,H={skipLocationChange:!1}){const q=xi(g)?g:this.parseUrl(g),be=this.urlHandlingStrategy.merge(q,this.rawUrlTree);return this.scheduleNavigation(be,"imperative",null,H)}navigate(g,H={skipLocationChange:!1}){return function Qi(O){for(let v=0;v{const be=g[q];return null!=be&&(H[q]=be),H},{})}processNavigations(){this.navigations.subscribe(g=>{this.navigated=!0,this.lastSuccessfulId=g.id,this.currentPageId=g.targetPageId,this.events.next(new It(g.id,this.serializeUrl(g.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,g.resolve(!0)},g=>{this.console.warn(`Unhandled Navigation Error: ${g}`)})}scheduleNavigation(g,H,q,be,$e){var ht,$t,te;if(this.disposed)return Promise.resolve(!1);const Y=this.transitions.value,V=Hi(H)&&Y&&!Hi(Y.source),X=Y.rawUrl.toString()===g.toString(),Oe=Y.id===(null===(ht=this.currentNavigation)||void 0===ht?void 0:ht.id);if(V&&X&&Oe)return Promise.resolve(!0);let at,Yt,Gt;$e?(at=$e.resolve,Yt=$e.reject,Gt=$e.promise):Gt=new Promise((ln,gn)=>{at=ln,Yt=gn});const Nt=++this.navigationId;let sn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(q=this.location.getState()),sn=q&&q.\u0275routerPageId?q.\u0275routerPageId:be.replaceUrl||be.skipLocationChange?null!==($t=this.browserPageId)&&void 0!==$t?$t:0:(null!==(te=this.browserPageId)&&void 0!==te?te:0)+1):sn=0,this.setTransition({id:Nt,targetPageId:sn,source:H,restoredState:q,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:g,extras:be,resolve:at,reject:Yt,promise:Gt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Gt.catch(ln=>Promise.reject(ln))}setBrowserUrl(g,H){const q=this.urlSerializer.serialize(g),be=Object.assign(Object.assign({},H.extras.state),this.generateNgRouterState(H.id,H.targetPageId));this.location.isCurrentPathEqualTo(q)||H.extras.replaceUrl?this.location.replaceState(q,"",be):this.location.go(q,"",be)}restoreHistory(g,H=!1){var q,be;if("computed"===this.canceledNavigationResolution){const $e=this.currentPageId-g.targetPageId;"popstate"!==g.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(q=this.currentNavigation)||void 0===q?void 0:q.finalUrl)||0===$e?this.currentUrlTree===(null===(be=this.currentNavigation)||void 0===be?void 0:be.finalUrl)&&0===$e&&(this.resetState(g),this.browserUrlTree=g.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo($e)}else"replace"===this.canceledNavigationResolution&&(H&&this.resetState(g),this.resetUrlToCurrentUrlTree())}resetState(g){this.routerState=g.currentRouterState,this.currentUrlTree=g.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,g.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(g,H){const q=new Xe(g.id,this.serializeUrl(g.extractedUrl),H);this.triggerEvent(q),g.resolve(!1)}generateNgRouterState(g,H){return"computed"===this.canceledNavigationResolution?{navigationId:g,\u0275routerPageId:H}:{navigationId:g}}}return O.\u0275fac=function(g){r.$Z()},O.\u0275prov=r.Yz7({token:O,factory:O.\u0275fac}),O})();function Hi(O){return"imperative"!==O}let Bi=(()=>{class O{constructor(g,H,q,be,$e){this.router=g,this.route=H,this.tabIndexAttribute=q,this.renderer=be,this.el=$e,this.commands=null,this.onChanges=new w.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(g){if(null!=this.tabIndexAttribute)return;const H=this.renderer,q=this.el.nativeElement;null!==g?H.setAttribute(q,"tabindex",g):H.removeAttribute(q,"tabindex")}ngOnChanges(g){this.onChanges.next(this)}set routerLink(g){null!=g?(this.commands=Array.isArray(g)?g:[g],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const g={skipLocationChange:ko(this.skipLocationChange),replaceUrl:ko(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,g),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ko(this.preserveFragment)})}}return O.\u0275fac=function(g){return new(g||O)(r.Y36(mi),r.Y36(Jn),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},O.\u0275dir=r.lG2({type:O,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(g,H){1&g&&r.NdJ("click",function(){return H.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[r.TTD]}),O})(),yo=(()=>{class O{constructor(g,H,q){this.router=g,this.route=H,this.locationStrategy=q,this.commands=null,this.href=null,this.onChanges=new w.xQ,this.subscription=g.events.subscribe(be=>{be instanceof It&&this.updateTargetUrlAndHref()})}set routerLink(g){this.commands=null!=g?Array.isArray(g)?g:[g]:null}ngOnChanges(g){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(g,H,q,be,$e){if(0!==g||H||q||be||$e||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ht={skipLocationChange:ko(this.skipLocationChange),replaceUrl:ko(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ht),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ko(this.preserveFragment)})}}return O.\u0275fac=function(g){return new(g||O)(r.Y36(mi),r.Y36(Jn),r.Y36(mt.S$))},O.\u0275dir=r.lG2({type:O,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(g,H){1&g&&r.NdJ("click",function(be){return H.onClick(be.button,be.ctrlKey,be.shiftKey,be.altKey,be.metaKey)}),2&g&&r.uIk("target",H.target)("href",H.href,r.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[r.TTD]}),O})();function ko(O){return""===O||!!O}let cr=(()=>{class O{constructor(g,H,q,be,$e,ht){this.router=g,this.element=H,this.renderer=q,this.cdr=be,this.link=$e,this.linkWithHref=ht,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new r.vpe,this.routerEventsSubscription=g.events.subscribe($t=>{$t instanceof It&&this.update()})}ngAfterContentInit(){(0,l.of)(this.links.changes,this.linksWithHrefs.changes,(0,l.of)(null)).pipe((0,Ae.J)()).subscribe(g=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var g;null===(g=this.linkInputChangesSubscription)||void 0===g||g.unsubscribe();const H=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(q=>!!q).map(q=>q.onChanges);this.linkInputChangesSubscription=(0,o.D)(H).pipe((0,Ae.J)()).subscribe(q=>{this.isActive!==this.isLinkActive(this.router)(q)&&this.update()})}set routerLinkActive(g){const H=Array.isArray(g)?g:g.split(" ");this.classes=H.filter(q=>!!q)}ngOnChanges(g){this.update()}ngOnDestroy(){var g;this.routerEventsSubscription.unsubscribe(),null===(g=this.linkInputChangesSubscription)||void 0===g||g.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const g=this.hasActiveLinks();this.isActive!==g&&(this.isActive=g,this.cdr.markForCheck(),this.classes.forEach(H=>{g?this.renderer.addClass(this.element.nativeElement,H):this.renderer.removeClass(this.element.nativeElement,H)}),this.isActiveChange.emit(g))})}isLinkActive(g){const H=function Io(O){return!!O.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return q=>!!q.urlTree&&g.isActive(q.urlTree,H)}hasActiveLinks(){const g=this.isLinkActive(this.router);return this.link&&g(this.link)||this.linkWithHref&&g(this.linkWithHref)||this.links.some(g)||this.linksWithHrefs.some(g)}}return O.\u0275fac=function(g){return new(g||O)(r.Y36(mi),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(Bi,8),r.Y36(yo,8))},O.\u0275dir=r.lG2({type:O,selectors:[["","routerLinkActive",""]],contentQueries:function(g,H,q){if(1&g&&(r.Suo(q,Bi,5),r.Suo(q,yo,5)),2&g){let be;r.iGM(be=r.CRH())&&(H.links=be),r.iGM(be=r.CRH())&&(H.linksWithHrefs=be)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[r.TTD]}),O})();class tr{}class Ur{preload(v,g){return(0,l.of)(null)}}let Mr=(()=>{class O{constructor(g,H,q,be){this.router=g,this.injector=q,this.preloadingStrategy=be,this.loader=new Bn(q,H,$t=>g.triggerEvent(new Et($t)),$t=>g.triggerEvent(new ot($t)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,ie.h)(g=>g instanceof It),(0,we.b)(()=>this.preload())).subscribe(()=>{})}preload(){const g=this.injector.get(r.h0i);return this.processRoutes(g,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(g,H){const q=[];for(const be of H)if(be.loadChildren&&!be.canLoad&&be._loadedConfig){const $e=be._loadedConfig;q.push(this.processRoutes($e.module,$e.routes))}else be.loadChildren&&!be.canLoad?q.push(this.preloadConfig(g,be)):be.children&&q.push(this.processRoutes(g,be.children));return(0,o.D)(q).pipe((0,Ae.J)(),(0,fe.U)(be=>{}))}preloadConfig(g,H){return this.preloadingStrategy.preload(H,()=>(H._loadedConfig?(0,l.of)(H._loadedConfig):this.loader.load(g.injector,H)).pipe((0,Ye.zg)(be=>(H._loadedConfig=be,this.processRoutes(be.module,be.routes)))))}}return O.\u0275fac=function(g){return new(g||O)(r.LFG(mi),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(tr))},O.\u0275prov=r.Yz7({token:O,factory:O.\u0275fac}),O})(),xr=(()=>{class O{constructor(g,H,q={}){this.router=g,this.viewportScroller=H,this.options=q,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},q.scrollPositionRestoration=q.scrollPositionRestoration||"disabled",q.anchorScrolling=q.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(g=>{g instanceof Ct?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=g.navigationTrigger,this.restoredId=g.restoredState?g.restoredState.navigationId:0):g instanceof It&&(this.lastId=g.id,this.scheduleScrollEvent(g,this.router.parseUrl(g.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(g=>{g instanceof yt&&(g.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(g.position):g.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(g.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(g,H){this.router.triggerEvent(new yt(g,"popstate"===this.lastSource?this.store[this.restoredId]:null,H))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return O.\u0275fac=function(g){r.$Z()},O.\u0275prov=r.Yz7({token:O,factory:O.\u0275fac}),O})();const Vo=new r.OlP("ROUTER_CONFIGURATION"),vs=new r.OlP("ROUTER_FORROOT_GUARD"),ys=[mt.Ye,{provide:I,useClass:Z},{provide:mi,useFactory:function lr(O,v,g,H,q,be,$e={},ht,$t){const te=new mi(null,O,v,g,H,q,zt(be));return ht&&(te.urlHandlingStrategy=ht),$t&&(te.routeReuseStrategy=$t),function Cs(O,v){O.errorHandler&&(v.errorHandler=O.errorHandler),O.malformedUriErrorHandler&&(v.malformedUriErrorHandler=O.malformedUriErrorHandler),O.onSameUrlNavigation&&(v.onSameUrlNavigation=O.onSameUrlNavigation),O.paramsInheritanceStrategy&&(v.paramsInheritanceStrategy=O.paramsInheritanceStrategy),O.relativeLinkResolution&&(v.relativeLinkResolution=O.relativeLinkResolution),O.urlUpdateStrategy&&(v.urlUpdateStrategy=O.urlUpdateStrategy),O.canceledNavigationResolution&&(v.canceledNavigationResolution=O.canceledNavigationResolution)}($e,te),$e.enableTracing&&te.events.subscribe(Y=>{var V,X;null===(V=console.group)||void 0===V||V.call(console,`Router Event: ${Y.constructor.name}`),console.log(Y.toString()),console.log(Y),null===(X=console.groupEnd)||void 0===X||X.call(console)}),te},deps:[I,to,mt.Ye,r.zs3,r.Sil,Ln,Vo,[class yi{},new r.FiY],[class sr{},new r.FiY]]},to,{provide:Jn,useFactory:function zr(O){return O.routerState.root},deps:[mi]},Mr,Ur,class gs{preload(v,g){return g().pipe((0,se.K)(()=>(0,l.of)(null)))}},{provide:Vo,useValue:{enableTracing:!1}}];function Or(){return new r.PXZ("Router",mi)}let _s=(()=>{class O{constructor(g,H){}static forRoot(g,H){return{ngModule:O,providers:[ys,Vr(g),{provide:vs,useFactory:Gr,deps:[[mi,new r.FiY,new r.tp0]]},{provide:Vo,useValue:H||{}},{provide:mt.S$,useFactory:Pr,deps:[mt.lw,[new r.tBr(mt.mr),new r.FiY],Vo]},{provide:xr,useFactory:Ir,deps:[mi,mt.EM,Vo]},{provide:tr,useExisting:H&&H.preloadingStrategy?H.preloadingStrategy:Ur},{provide:r.PXZ,multi:!0,useFactory:Or},[ur,{provide:r.ip1,multi:!0,useFactory:Ar,deps:[ur]},{provide:hr,useFactory:qs,deps:[ur]},{provide:r.tb,multi:!0,useExisting:hr}]]}}static forChild(g){return{ngModule:O,providers:[Vr(g)]}}}return O.\u0275fac=function(g){return new(g||O)(r.LFG(vs,8),r.LFG(mi,8))},O.\u0275mod=r.oAB({type:O}),O.\u0275inj=r.cJS({}),O})();function Ir(O,v,g){return g.scrollOffset&&v.setOffset(g.scrollOffset),new xr(O,v,g)}function Pr(O,v,g={}){return g.useHash?new mt.Do(O,v):new mt.b0(O,v)}function Gr(O){return"guarded"}function Vr(O){return[{provide:r.deG,multi:!0,useValue:O},{provide:Ln,multi:!0,useValue:O}]}let ur=(()=>{class O{constructor(g){this.injector=g,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new w.xQ}appInitializer(){return this.injector.get(mt.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let H=null;const q=new Promise(ht=>H=ht),be=this.injector.get(mi),$e=this.injector.get(Vo);return"disabled"===$e.initialNavigation?(be.setUpLocationChangeListener(),H(!0)):"enabled"===$e.initialNavigation||"enabledBlocking"===$e.initialNavigation?(be.hooks.afterPreactivation=()=>this.initNavigation?(0,l.of)(null):(this.initNavigation=!0,H(!0),this.resultOfPreactivationDone),be.initialNavigation()):H(!0),q})}bootstrapListener(g){const H=this.injector.get(Vo),q=this.injector.get(Mr),be=this.injector.get(xr),$e=this.injector.get(mi),ht=this.injector.get(r.z2F);g===ht.components[0]&&(("enabledNonBlocking"===H.initialNavigation||void 0===H.initialNavigation)&&$e.initialNavigation(),q.setUpPreloading(),be.init(),$e.resetRootComponentType(ht.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return O.\u0275fac=function(g){return new(g||O)(r.LFG(r.zs3))},O.\u0275prov=r.Yz7({token:O,factory:O.\u0275fac}),O})();function Ar(O){return O.appInitializer.bind(O)}function qs(O){return O.bootstrapListener.bind(O)}const hr=new r.OlP("Router Initializer")},9193:(Ft,Pe,c)=>{c.d(Pe,{V65:()=>Pt,ud1:()=>ut,Hkd:()=>ee,XuQ:()=>p,bBn:()=>et,BOg:()=>Ht,Rfq:()=>dn,yQU:()=>_t,U2Q:()=>fn,UKj:()=>si,BXH:()=>le,OYp:()=>pi,eLU:()=>ii,x0x:()=>zo,Ej7:()=>hi,VWu:()=>co,rMt:()=>Vn,vEg:()=>ar,RIp:()=>ys,RU0:()=>ki,M8e:()=>cr,ssy:()=>q,Z5F:()=>ur,iUK:()=>Oe,LJh:()=>ln,NFG:()=>nr,WH2:()=>ta,UTl:()=>El,nrZ:()=>Jr,gvV:()=>Bl,d2H:()=>Il,LBP:()=>ca,_ry:()=>Yl,eFY:()=>o1,sZJ:()=>lc,np6:()=>z1,UY$:()=>M6,w1L:()=>es,rHg:()=>j1,v6v:()=>wc,cN2:()=>Ns,FsU:()=>i4,s_U:()=>y8,TSL:()=>Lc,uIz:()=>Yr,d_$:()=>jr});const Pt={name:"bars",theme:"outline",icon:''},ut={name:"calendar",theme:"outline",icon:''},ee={name:"caret-down",theme:"fill",icon:''},p={name:"caret-down",theme:"outline",icon:''},et={name:"caret-up",theme:"fill",icon:''},_t={name:"check-circle",theme:"outline",icon:''},fn={name:"check",theme:"outline",icon:''},le={name:"close-circle",theme:"fill",icon:''},Ht={name:"caret-up",theme:"outline",icon:''},dn={name:"check-circle",theme:"fill",icon:''},ii={name:"close",theme:"outline",icon:''},si={name:"clock-circle",theme:"outline",icon:''},pi={name:"close-circle",theme:"outline",icon:''},zo={name:"copy",theme:"outline",icon:''},hi={name:"dashboard",theme:"outline",icon:''},Vn={name:"double-right",theme:"outline",icon:''},co={name:"double-left",theme:"outline",icon:''},ki={name:"ellipsis",theme:"outline",icon:''},ar={name:"down",theme:"outline",icon:''},cr={name:"exclamation-circle",theme:"fill",icon:''},ys={name:"edit",theme:"outline",icon:''},ur={name:"eye",theme:"outline",icon:''},q={name:"exclamation-circle",theme:"outline",icon:''},Oe={name:"file",theme:"fill",icon:''},ln={name:"file",theme:"outline",icon:''},nr={name:"filter",theme:"fill",icon:''},ta={name:"form",theme:"outline",icon:''},El={name:"info-circle",theme:"fill",icon:''},Jr={name:"info-circle",theme:"outline",icon:''},Il={name:"loading",theme:"outline",icon:''},Bl={name:"left",theme:"outline",icon:''},Yl={name:"menu-unfold",theme:"outline",icon:''},ca={name:"menu-fold",theme:"outline",icon:''},o1={name:"paper-clip",theme:"outline",icon:''},lc={name:"question-circle",theme:"outline",icon:''},z1={name:"right",theme:"outline",icon:''},M6={name:"rotate-left",theme:"outline",icon:''},es={name:"rotate-right",theme:"outline",icon:''},wc={name:"star",theme:"fill",icon:''},j1={name:"search",theme:"outline",icon:''},Ns={name:"swap-right",theme:"outline",icon:''},i4={name:"up",theme:"outline",icon:''},y8={name:"upload",theme:"outline",icon:''},Lc={name:"vertical-align-top",theme:"outline",icon:''},Yr={name:"zoom-in",theme:"outline",icon:''},jr={name:"zoom-out",theme:"outline",icon:''}},3750:(Ft,Pe,c)=>{c.d(Pe,{h:()=>b,B:()=>D});var C,E,r=c(655),l=(c(9349),c(9428)),K=c(7062),m=c(9545),b=function(){function w(){this.known=new(m.sy?WeakSet:Set),this.pool=new l.B(m.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return w.prototype.isKnown=function(z){return(0,K.s)(z)&&this.known.has(z)},w.prototype.pass=function(z){if((0,K.s)(z)){var M=function A(w){return(0,K.s)(w)?Array.isArray(w)?w.slice(0):(0,r.pi)({__proto__:Object.getPrototypeOf(w)},w):w}(z);return this.passes.set(M,z),M}return z},w.prototype.admit=function(z){var M=this;if((0,K.s)(z)){var k=this.passes.get(z);if(k)return k;switch(Object.getPrototypeOf(z)){case Array.prototype:if(this.known.has(z))return z;var ie=z.map(this.admit,this);return(ce=this.pool.lookupArray(ie)).array||(this.known.add(ce.array=ie),__DEV__&&Object.freeze(ie)),ce.array;case null:case Object.prototype:if(this.known.has(z))return z;var ve=Object.getPrototypeOf(z),Le=[ve],Re=this.sortedKeys(z);Le.push(Re.json);var ce,ae=Le.length;if(Re.sorted.forEach(function(me){Le.push(M.admit(z[me]))}),!(ce=this.pool.lookupArray(Le)).object){var Ue=ce.object=Object.create(ve);this.known.add(Ue),Re.sorted.forEach(function(me,fe){Ue[me]=Le[ae+fe]}),__DEV__&&Object.freeze(Ue)}return ce.object}}return z},w.prototype.sortedKeys=function(z){var M=Object.keys(z),k=this.pool.lookupArray(M);if(!k.keys){M.sort();var N=JSON.stringify(M);(k.keys=this.keysByJSON.get(N))||this.keysByJSON.set(N,k.keys={sorted:M,json:N})}return k.keys},w}(),D=Object.assign(function(w){if((0,K.s)(w)){void 0===C&&S();var z=C.admit(w),M=E.get(z);return void 0===M&&E.set(z,M=JSON.stringify(z)),M}return JSON.stringify(w)},{reset:S});function S(){C=new b,E=new(m.mr?WeakMap:Map)}},6430:(Ft,Pe,c)=>{c.d(Pe,{ab:()=>l,li:()=>A,_v:()=>b,QS:()=>D});var r=c(9769),l=new(c(3119).g7),K=new WeakMap;function m(E){var S=K.get(E);return S||K.set(E,S={vars:new Set,dep:(0,r.dP)()}),S}function A(E){m(E).vars.forEach(function(S){return S.forgetCache(E)})}function b(E){m(E).vars.forEach(function(S){return S.attachCache(E)})}function D(E){var S=new Set,w=new Set,z=function(k){if(arguments.length>0){if(E!==k){E=k,S.forEach(function(ce){m(ce).dep.dirty(z),C(ce)});var N=Array.from(w);w.clear(),N.forEach(function(ce){return ce(E)})}}else{var ie=l.getValue();ie&&(M(ie),m(ie).dep(z))}return E};z.onNextChange=function(k){return w.add(k),function(){w.delete(k)}};var M=z.attachCache=function(k){return S.add(k),m(k).vars.add(z),z};return z.forgetCache=function(k){return S.delete(k)},z}function C(E){E.broadcastWatches&&E.broadcastWatches()}},484:(Ft,Pe,c)=>{c.d(Pe,{i:()=>w});var r=c(655),o=c(9349),l=c(4302),m=c(9419);function D(z,M){return M?M(z):l.y.of()}function C(z){return"function"==typeof z?new w(z):z}function E(z){return z.request.length<=1}var S=function(z){function M(k,N){var ie=z.call(this,k)||this;return ie.link=N,ie}return(0,r.ZT)(M,z),M}(Error),w=function(){function z(M){M&&(this.request=M)}return z.empty=function(){return new z(function(){return l.y.of()})},z.from=function(M){return 0===M.length?z.empty():M.map(C).reduce(function(k,N){return k.concat(N)})},z.split=function(M,k,N){var ie=C(k),ce=C(N||new z(D));return E(ie)&&E(ce)?new z(function(ve){return M(ve)?ie.request(ve)||l.y.of():ce.request(ve)||l.y.of()}):new z(function(ve,Le){return M(ve)?ie.request(ve,Le)||l.y.of():ce.request(ve,Le)||l.y.of()})},z.execute=function(M,k){return M.request(function K(z,M){var k=(0,r.pi)({},z);return Object.defineProperty(M,"setContext",{enumerable:!1,value:function(ce){k=(0,r.pi)((0,r.pi)({},k),"function"==typeof ce?ce(k):ce)}}),Object.defineProperty(M,"getContext",{enumerable:!1,value:function(){return(0,r.pi)({},k)}}),M}(k.context,function A(z){var M={variables:z.variables||{},extensions:z.extensions||{},operationName:z.operationName,query:z.query};return M.operationName||(M.operationName="string"!=typeof M.query?(0,m.rY)(M.query)||void 0:""),M}(function b(z){for(var M=["query","operationName","variables","extensions","context"],k=0,N=Object.keys(z);k{function r(o){return Array.isArray(o)&&o.length>0}c.d(Pe,{O:()=>r})},9545:(Ft,Pe,c)=>{c.d(Pe,{mr:()=>r,sy:()=>o,aS:()=>l});var r="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),o="function"==typeof WeakSet,l="function"==typeof Symbol&&"function"==typeof Symbol.for},396:(Ft,Pe,c)=>{c.d(Pe,{X:()=>o});var r=Object.prototype.toString;function o(K){return l(K)}function l(K,m){switch(r.call(K)){case"[object Array]":if((m=m||new Map).has(K))return m.get(K);var A=K.slice(0);return m.set(K,A),A.forEach(function(D,C){A[C]=l(D,m)}),A;case"[object Object]":if((m=m||new Map).has(K))return m.get(K);var b=Object.create(Object.getPrototypeOf(K));return m.set(K,b),Object.keys(K).forEach(function(D){b[D]=l(K[D],m)}),b;default:return K}}},3950:(Ft,Pe,c)=>{function r(){for(var o=[],l=0;lr})},8561:(Ft,Pe,c)=>{c.d(Pe,{X:()=>o});var r=new Map;function o(l){var K=r.get(l)||1;return r.set(l,K+1),"".concat(l,":").concat(K,":").concat(Math.random().toString(36).slice(2))}},7773:(Ft,Pe,c)=>{c.d(Pe,{Ee:()=>K,bw:()=>m,w0:()=>b});var r=c(655),o=c(7062),l=Object.prototype.hasOwnProperty;function K(){for(var D=[],C=0;C1)for(var S=new b,w=1;w{function r(o){return null!==o&&"object"==typeof o}c.d(Pe,{s:()=>r})},9349:(Ft,Pe,c)=>{c.d(Pe,{ej:()=>m,kG:()=>A,wY:()=>w});var r=c(655),o="Invariant Violation",l=Object.setPrototypeOf,K=void 0===l?function(fe,U){return fe.__proto__=U,fe}:l,m=function(fe){function U(J){void 0===J&&(J=o);var Me=fe.call(this,"number"==typeof J?o+": "+J+" (see https://github.com/apollographql/invariant-packages)":J)||this;return Me.framesToPop=1,Me.name=o,K(Me,U.prototype),Me}return(0,r.ZT)(U,fe),U}(Error);function A(fe,U){if(!fe)throw new m(U)}var fe,b=["debug","log","warn","error","silent"],D=b.indexOf("log");function C(fe){return function(){if(b.indexOf(fe)>=D){var U=console[fe]||console.log;return U.apply(console,arguments)}}}function w(fe){try{return fe()}catch(U){}}(fe=A||(A={})).debug=C("debug"),fe.log=C("log"),fe.warn=C("warn"),fe.error=C("error");const z=w(function(){return globalThis})||w(function(){return window})||w(function(){return self})||w(function(){return global})||w(function(){return w.constructor("return this")()});var M="__",k=[M,M].join("DEV");const ie=function N(){try{return Boolean(__DEV__)}catch(fe){return Object.defineProperty(z,k,{value:"production"!==w(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),z[k]}}();function ce(fe){try{return fe()}catch(U){}}var ve=ce(function(){return globalThis})||ce(function(){return window})||ce(function(){return self})||ce(function(){return global})||ce(function(){return ce.constructor("return this")()}),Le=!1;!function Re(){ve&&!ce(function(){return"production"})&&!ce(function(){return process})&&(Object.defineProperty(ve,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Le=!0)}(),c(6261),function He(){(function ae(){Le&&(delete ve.process,Le=!1)})()}(),function me(){__DEV__?A("boolean"==typeof ie,ie):A("boolean"==typeof ie,36)}()},9722:(Ft,Pe,c)=>{c.d(Pe,{LZ:()=>l,FS:()=>m,mj:()=>A});var r=c(9349),o=c(1335);function l(C,E){var S=C.directives;return!S||!S.length||function D(C){var E=[];return C&&C.length&&C.forEach(function(S){if(function b(C){var E=C.name.value;return"skip"===E||"include"===E}(S)){var w=S.arguments,z=S.name.value;__DEV__?(0,r.kG)(w&&1===w.length,"Incorrect number of arguments for the @".concat(z," directive.")):(0,r.kG)(w&&1===w.length,38);var M=w[0];__DEV__?(0,r.kG)(M.name&&"if"===M.name.value,"Invalid argument for the @".concat(z," directive.")):(0,r.kG)(M.name&&"if"===M.name.value,39);var k=M.value;__DEV__?(0,r.kG)(k&&("Variable"===k.kind||"BooleanValue"===k.kind),"Argument for the @".concat(z," directive must be a variable or a boolean value.")):(0,r.kG)(k&&("Variable"===k.kind||"BooleanValue"===k.kind),40),E.push({directive:S,ifArgument:M})}}),E}(S).every(function(w){var z=w.directive,M=w.ifArgument,k=!1;return"Variable"===M.value.kind?(k=E&&E[M.value.name.value],__DEV__?(0,r.kG)(void 0!==k,"Invalid variable referenced in @".concat(z.name.value," directive.")):(0,r.kG)(void 0!==k,37)):k=M.value.value,"skip"===z.name.value?!k:k})}function m(C,E){return function K(C){var E=[];return(0,o.Vn)(C,{Directive:function(S){E.push(S.name.value)}}),E}(E).some(function(S){return C.indexOf(S)>-1})}function A(C){return C&&m(["client"],C)&&m(["export"],C)}},9661:(Ft,Pe,c)=>{c.d(Pe,{Yk:()=>l,F:()=>K,hi:()=>m});var r=c(655),o=c(9349);function l(A,b){var D=b,C=[];return A.definitions.forEach(function(S){if("OperationDefinition"===S.kind)throw __DEV__?new o.ej("Found a ".concat(S.operation," operation").concat(S.name?" named '".concat(S.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new o.ej(41);"FragmentDefinition"===S.kind&&C.push(S)}),void 0===D&&(__DEV__?(0,o.kG)(1===C.length,"Found ".concat(C.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,o.kG)(1===C.length,42),D=C[0].name.value),(0,r.pi)((0,r.pi)({},A),{definitions:(0,r.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:D}}]}}],A.definitions,!0)})}function K(A){void 0===A&&(A=[]);var b={};return A.forEach(function(D){b[D.name.value]=D}),b}function m(A,b){switch(A.kind){case"InlineFragment":return A;case"FragmentSpread":var D=b&&b[A.name.value];return __DEV__?(0,o.kG)(D,"No fragment named ".concat(A.name.value,".")):(0,o.kG)(D,43),D;default:return null}}},9419:(Ft,Pe,c)=>{c.d(Pe,{A$:()=>l,$H:()=>K,rY:()=>m,kU:()=>A,iW:()=>b,pD:()=>D,p$:()=>C,O4:()=>E});var r=c(9349),o=c(7634);function l(S){__DEV__?(0,r.kG)(S&&"Document"===S.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,r.kG)(S&&"Document"===S.kind,44);var w=S.definitions.filter(function(z){return"FragmentDefinition"!==z.kind}).map(function(z){if("OperationDefinition"!==z.kind)throw __DEV__?new r.ej('Schema type definitions not allowed in queries. Found: "'.concat(z.kind,'"')):new r.ej(45);return z});return __DEV__?(0,r.kG)(w.length<=1,"Ambiguous GraphQL document: contains ".concat(w.length," operations")):(0,r.kG)(w.length<=1,46),S}function K(S){return l(S),S.definitions.filter(function(w){return"OperationDefinition"===w.kind})[0]}function m(S){return S.definitions.filter(function(w){return"OperationDefinition"===w.kind&&w.name}).map(function(w){return w.name.value})[0]||null}function A(S){return S.definitions.filter(function(w){return"FragmentDefinition"===w.kind})}function b(S){var w=K(S);return __DEV__?(0,r.kG)(w&&"query"===w.operation,"Must contain a query definition."):(0,r.kG)(w&&"query"===w.operation,47),w}function D(S){__DEV__?(0,r.kG)("Document"===S.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,r.kG)("Document"===S.kind,48),__DEV__?(0,r.kG)(S.definitions.length<=1,"Fragment must have exactly one definition."):(0,r.kG)(S.definitions.length<=1,49);var w=S.definitions[0];return __DEV__?(0,r.kG)("FragmentDefinition"===w.kind,"Must be a fragment definition."):(0,r.kG)("FragmentDefinition"===w.kind,50),w}function C(S){l(S);for(var w,z=0,M=S.definitions;z{c.d(Pe,{kQ:()=>K,Yk:()=>m,JW:()=>A,vb:()=>N,vf:()=>ie,PT:()=>ve,NC:()=>ae,u2:()=>Ue,qw:()=>He,My:()=>me,Ao:()=>fe});var r=c(9349),o=c(7062),l=c(9661);function K(U){return{__ref:String(U)}}function m(U){return Boolean(U&&"object"==typeof U&&"string"==typeof U.__ref)}function A(U){return(0,o.s)(U)&&"Document"===U.kind&&Array.isArray(U.definitions)}function N(U,J,Me,se){if(function C(U){return"IntValue"===U.kind}(Me)||function E(U){return"FloatValue"===U.kind}(Me))U[J.value]=Number(Me.value);else if(function D(U){return"BooleanValue"===U.kind}(Me)||function b(U){return"StringValue"===U.kind}(Me))U[J.value]=Me.value;else if(function w(U){return"ObjectValue"===U.kind}(Me)){var we={};Me.fields.map(function(Ye){return N(we,Ye.name,Ye.value,se)}),U[J.value]=we}else if(function S(U){return"Variable"===U.kind}(Me))U[J.value]=(se||{})[Me.name.value];else if(function z(U){return"ListValue"===U.kind}(Me))U[J.value]=Me.values.map(function(Ye){var We={};return N(We,J,Ye,se),We[J.value]});else if(function M(U){return"EnumValue"===U.kind}(Me))U[J.value]=Me.value;else{if(!function k(U){return"NullValue"===U.kind}(Me))throw __DEV__?new r.ej('The inline argument "'.concat(J.value,'" of kind "').concat(Me.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new r.ej(52);U[J.value]=null}}function ie(U,J){var Me=null;U.directives&&(Me={},U.directives.forEach(function(we){Me[we.name.value]={},we.arguments&&we.arguments.forEach(function(ue){return N(Me[we.name.value],ue.name,ue.value,J)})}));var se=null;return U.arguments&&U.arguments.length&&(se={},U.arguments.forEach(function(we){return N(se,we.name,we.value,J)})),ve(U.name.value,se,Me)}var ce=["connection","include","skip","client","rest","export"],ve=Object.assign(function(U,J,Me){if(J&&Me&&Me.connection&&Me.connection.key){if(Me.connection.filter&&Me.connection.filter.length>0){var se=Me.connection.filter?Me.connection.filter:[];se.sort();var we={};return se.forEach(function(We){we[We]=J[We]}),"".concat(Me.connection.key,"(").concat(Le(we),")")}return Me.connection.key}var ue=U;if(J){var Ye=Le(J);ue+="(".concat(Ye,")")}return Me&&Object.keys(Me).forEach(function(We){-1===ce.indexOf(We)&&(Me[We]&&Object.keys(Me[We]).length?ue+="@".concat(We,"(").concat(Le(Me[We]),")"):ue+="@".concat(We))}),ue},{setStringify:function(U){var J=Le;return Le=U,J}}),Le=function(J){return JSON.stringify(J,Re)};function Re(U,J){return(0,o.s)(J)&&!Array.isArray(J)&&(J=Object.keys(J).sort().reduce(function(Me,se){return Me[se]=J[se],Me},{})),J}function ae(U,J){if(U.arguments&&U.arguments.length){var Me={};return U.arguments.forEach(function(se){return N(Me,se.name,se.value,J)}),Me}return null}function Ue(U){return U.alias?U.alias.value:U.name.value}function He(U,J,Me){if("string"==typeof U.__typename)return U.__typename;for(var se=0,we=J.selections;se{c.d(Pe,{Gw:()=>z,aL:()=>ae,ob:()=>Ue,Fo:()=>k});var r=c(655),o=c(9349),l=c(1335),K=c(9419);function m(He,me,fe){var U=0;return He.forEach(function(J,Me){me.call(this,J,Me,He)&&(He[U++]=J)},fe),He.length=U,He}var A=c(7634),b=c(9661),D={kind:"Field",name:{kind:"Name",value:"__typename"}};function C(He,me){return He.selectionSet.selections.every(function(fe){return"FragmentSpread"===fe.kind&&C(me[fe.name.value],me)})}function E(He){return C((0,K.$H)(He)||(0,K.pD)(He),(0,b.F)((0,K.kU)(He)))?null:He}function S(He){return function(fe){return He.some(function(U){return U.name&&U.name===fe.name.value||U.test&&U.test(fe)})}}function w(He,me){var fe=Object.create(null),U=[],J=Object.create(null),Me=[],se=E((0,l.Vn)(me,{Variable:{enter:function(we,ue,Ye){"VariableDefinition"!==Ye.kind&&(fe[we.name.value]=!0)}},Field:{enter:function(we){if(He&&we.directives&&He.some(function(Ye){return Ye.remove})&&we.directives&&we.directives.some(S(He)))return we.arguments&&we.arguments.forEach(function(Ye){"Variable"===Ye.value.kind&&U.push({name:Ye.value.name.value})}),we.selectionSet&&Re(we.selectionSet).forEach(function(Ye){Me.push({name:Ye.name.value})}),null}},FragmentSpread:{enter:function(we){J[we.name.value]=!0}},Directive:{enter:function(we){if(S(He)(we))return null}}}));return se&&m(U,function(we){return!!we.name&&!fe[we.name]}).length&&(se=function ve(He,me){var fe=function ce(He){return function(fe){return He.some(function(U){return fe.value&&"Variable"===fe.value.kind&&fe.value.name&&(U.name===fe.value.name.value||U.test&&U.test(fe))})}}(He);return E((0,l.Vn)(me,{OperationDefinition:{enter:function(U){return(0,r.pi)((0,r.pi)({},U),{variableDefinitions:U.variableDefinitions?U.variableDefinitions.filter(function(J){return!He.some(function(Me){return Me.name===J.variable.name.value})}):[]})}},Field:{enter:function(U){var J=He.some(function(se){return se.remove});if(J){var Me=0;if(U.arguments&&U.arguments.forEach(function(se){fe(se)&&(Me+=1)}),1===Me)return null}}},Argument:{enter:function(U){if(fe(U))return null}}}))}(U,se)),se&&m(Me,function(we){return!!we.name&&!J[we.name]}).length&&(se=function Le(He,me){function fe(U){if(He.some(function(J){return J.name===U.name.value}))return null}return E((0,l.Vn)(me,{FragmentSpread:{enter:fe},FragmentDefinition:{enter:fe}}))}(Me,se)),se}var z=Object.assign(function(He){return(0,l.Vn)((0,K.A$)(He),{SelectionSet:{enter:function(me,fe,U){if(!U||"OperationDefinition"!==U.kind){var J=me.selections;if(J&&!J.some(function(we){return(0,A.My)(we)&&("__typename"===we.name.value||0===we.name.value.lastIndexOf("__",0))})){var se=U;if(!((0,A.My)(se)&&se.directives&&se.directives.some(function(we){return"export"===we.name.value})))return(0,r.pi)((0,r.pi)({},me),{selections:(0,r.ev)((0,r.ev)([],J,!0),[D],!1)})}}}}})},{added:function(He){return He===D}}),M={test:function(He){var me="connection"===He.name.value;return me&&(!He.arguments||!He.arguments.some(function(fe){return"key"===fe.name.value}))&&__DEV__&&o.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),me}};function k(He){return w([M],(0,K.A$)(He))}function Re(He){var me=[];return He.selections.forEach(function(fe){((0,A.My)(fe)||(0,A.Ao)(fe))&&fe.selectionSet?Re(fe.selectionSet).forEach(function(U){return me.push(U)}):"FragmentSpread"===fe.kind&&me.push(fe)}),me}function ae(He){return"query"===(0,K.p$)(He).operation?He:(0,l.Vn)(He,{OperationDefinition:{enter:function(J){return(0,r.pi)((0,r.pi)({},J),{operation:"query"})}}})}function Ue(He){(0,K.A$)(He);var me=w([{test:function(fe){return"client"===fe.name.value},remove:!0}],He);return me&&(me=(0,l.Vn)(me,{FragmentDefinition:{enter:function(fe){if(fe.selectionSet&&fe.selectionSet.selections.every(function(J){return(0,A.My)(J)&&"__typename"===J.name.value}))return null}}})),me}},744:(Ft,Pe,c)=>{c.d(Pe,{Z:()=>m});var r=c(5202);function o(w){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(w)}function m(w){return A(w,[])}function A(w,z){switch(o(w)){case"string":return JSON.stringify(w);case"function":return w.name?"[function ".concat(w.name,"]"):"[function]";case"object":return null===w?"null":function b(w,z){if(-1!==z.indexOf(w))return"[Circular]";var M=[].concat(z,[w]),k=function E(w){var z=w[String(r.Z)];return"function"==typeof z?z:"function"==typeof w.inspect?w.inspect:void 0}(w);if(void 0!==k){var N=k.call(w);if(N!==w)return"string"==typeof N?N:A(N,M)}else if(Array.isArray(w))return function C(w,z){if(0===w.length)return"[]";if(z.length>2)return"[Array]";for(var M=Math.min(10,w.length),k=w.length-M,N=[],ie=0;ie1&&N.push("... ".concat(k," more items")),"["+N.join(", ")+"]"}(w,M);return function D(w,z){var M=Object.keys(w);if(0===M.length)return"{}";if(z.length>2)return"["+function S(w){var z=Object.prototype.toString.call(w).replace(/^\[object /,"").replace(/]$/,"");if("Object"===z&&"function"==typeof w.constructor){var M=w.constructor.name;if("string"==typeof M&&""!==M)return M}return z}(w)+"]";var k=M.map(function(N){return N+": "+A(w[N],z)});return"{ "+k.join(", ")+" }"}(w,M)}(w,z);default:return String(w)}}},5202:(Ft,Pe,c)=>{c.d(Pe,{Z:()=>o});const o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},848:(Ft,Pe,c)=>{c.d(Pe,{Ye:()=>K,WU:()=>m,UG:()=>A});var o=c(5202);function l(b){var D=b.prototype.toJSON;"function"==typeof D||function r(b,D){if(!Boolean(b))throw new Error(null!=D?D:"Unexpected invariant triggered.")}(0),b.prototype.inspect=D,o.Z&&(b.prototype[o.Z]=D)}var K=function(){function b(C,E,S){this.start=C.start,this.end=E.end,this.startToken=C,this.endToken=E,this.source=S}return b.prototype.toJSON=function(){return{start:this.start,end:this.end}},b}();l(K);var m=function(){function b(C,E,S,w,z,M,k){this.kind=C,this.start=E,this.end=S,this.line=w,this.column=z,this.value=k,this.prev=M,this.next=null}return b.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},b}();function A(b){return null!=b&&"string"==typeof b.kind}l(m)},2032:(Ft,Pe,c)=>{function r(m){var A=m.split(/\r\n|[\n\r]/g),b=function l(m){for(var A,b=!0,D=!0,C=0,E=null,S=0;SC&&o(A[E-1]);)--E;return A.slice(C,E).join("\n")}function o(m){for(var A=0;A1&&void 0!==arguments[1]?arguments[1]:"",b=arguments.length>2&&void 0!==arguments[2]&&arguments[2],D=-1===m.indexOf("\n"),C=" "===m[0]||"\t"===m[0],E='"'===m[m.length-1],S="\\"===m[m.length-1],w=!D||E||S||b,z="";return w&&!(D&&C)&&(z+="\n"+A),z+=A?m.replace(/\n/g,"\n"+A):m,w&&(z+="\n"),'"""'+z.replace(/"""/g,'\\"""')+'"""'}c.d(Pe,{W7:()=>r,LZ:()=>K})},4989:(Ft,Pe,c)=>{c.d(Pe,{S:()=>l});var r=c(1335),o=c(2032);function l(z){return(0,r.Vn)(z,{leave:m})}var m={Name:function(M){return M.value},Variable:function(M){return"$"+M.name},Document:function(M){return b(M.definitions,"\n\n")+"\n"},OperationDefinition:function(M){var k=M.operation,N=M.name,ie=C("(",b(M.variableDefinitions,", "),")"),ce=b(M.directives," "),ve=M.selectionSet;return N||ce||ie||"query"!==k?b([k,b([N,ie]),ce,ve]," "):ve},VariableDefinition:function(M){var ce=M.directives;return M.variable+": "+M.type+C(" = ",M.defaultValue)+C(" ",b(ce," "))},SelectionSet:function(M){return D(M.selections)},Field:function(M){var N=M.name,ie=M.arguments,ce=M.directives,ve=M.selectionSet,Le=C("",M.alias,": ")+N,Re=Le+C("(",b(ie,", "),")");return Re.length>80&&(Re=Le+C("(\n",E(b(ie,"\n")),"\n)")),b([Re,b(ce," "),ve]," ")},Argument:function(M){return M.name+": "+M.value},FragmentSpread:function(M){return"..."+M.name+C(" ",b(M.directives," "))},InlineFragment:function(M){var N=M.directives,ie=M.selectionSet;return b(["...",C("on ",M.typeCondition),b(N," "),ie]," ")},FragmentDefinition:function(M){var N=M.typeCondition,ie=M.variableDefinitions,ce=M.directives,ve=M.selectionSet;return"fragment ".concat(M.name).concat(C("(",b(ie,", "),")")," ")+"on ".concat(N," ").concat(C("",b(ce," ")," "))+ve},IntValue:function(M){return M.value},FloatValue:function(M){return M.value},StringValue:function(M,k){var N=M.value;return M.block?(0,o.LZ)(N,"description"===k?"":" "):JSON.stringify(N)},BooleanValue:function(M){return M.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(M){return M.value},ListValue:function(M){return"["+b(M.values,", ")+"]"},ObjectValue:function(M){return"{"+b(M.fields,", ")+"}"},ObjectField:function(M){return M.name+": "+M.value},Directive:function(M){return"@"+M.name+C("(",b(M.arguments,", "),")")},NamedType:function(M){return M.name},ListType:function(M){return"["+M.type+"]"},NonNullType:function(M){return M.type+"!"},SchemaDefinition:A(function(z){var k=z.operationTypes;return b(["schema",b(z.directives," "),D(k)]," ")}),OperationTypeDefinition:function(M){return M.operation+": "+M.type},ScalarTypeDefinition:A(function(z){return b(["scalar",z.name,b(z.directives," ")]," ")}),ObjectTypeDefinition:A(function(z){var N=z.directives,ie=z.fields;return b(["type",z.name,C("implements ",b(z.interfaces," & ")),b(N," "),D(ie)]," ")}),FieldDefinition:A(function(z){var k=z.arguments,N=z.type,ie=z.directives;return z.name+(w(k)?C("(\n",E(b(k,"\n")),"\n)"):C("(",b(k,", "),")"))+": "+N+C(" ",b(ie," "))}),InputValueDefinition:A(function(z){var ie=z.directives;return b([z.name+": "+z.type,C("= ",z.defaultValue),b(ie," ")]," ")}),InterfaceTypeDefinition:A(function(z){var N=z.directives,ie=z.fields;return b(["interface",z.name,C("implements ",b(z.interfaces," & ")),b(N," "),D(ie)]," ")}),UnionTypeDefinition:A(function(z){var N=z.types;return b(["union",z.name,b(z.directives," "),N&&0!==N.length?"= "+b(N," | "):""]," ")}),EnumTypeDefinition:A(function(z){var N=z.values;return b(["enum",z.name,b(z.directives," "),D(N)]," ")}),EnumValueDefinition:A(function(z){return b([z.name,b(z.directives," ")]," ")}),InputObjectTypeDefinition:A(function(z){var N=z.fields;return b(["input",z.name,b(z.directives," "),D(N)]," ")}),DirectiveDefinition:A(function(z){var k=z.arguments,N=z.repeatable,ie=z.locations;return"directive @"+z.name+(w(k)?C("(\n",E(b(k,"\n")),"\n)"):C("(",b(k,", "),")"))+(N?" repeatable":"")+" on "+b(ie," | ")}),SchemaExtension:function(M){var N=M.operationTypes;return b(["extend schema",b(M.directives," "),D(N)]," ")},ScalarTypeExtension:function(M){return b(["extend scalar",M.name,b(M.directives," ")]," ")},ObjectTypeExtension:function(M){var ie=M.directives,ce=M.fields;return b(["extend type",M.name,C("implements ",b(M.interfaces," & ")),b(ie," "),D(ce)]," ")},InterfaceTypeExtension:function(M){var ie=M.directives,ce=M.fields;return b(["extend interface",M.name,C("implements ",b(M.interfaces," & ")),b(ie," "),D(ce)]," ")},UnionTypeExtension:function(M){var ie=M.types;return b(["extend union",M.name,b(M.directives," "),ie&&0!==ie.length?"= "+b(ie," | "):""]," ")},EnumTypeExtension:function(M){var ie=M.values;return b(["extend enum",M.name,b(M.directives," "),D(ie)]," ")},InputObjectTypeExtension:function(M){var ie=M.fields;return b(["extend input",M.name,b(M.directives," "),D(ie)]," ")}};function A(z){return function(M){return b([M.description,z(M)],"\n")}}function b(z){var M,k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(M=null==z?void 0:z.filter(function(N){return N}).join(k))&&void 0!==M?M:""}function D(z){return C("{\n",E(b(z,"\n")),"\n}")}function C(z,M){var k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=M&&""!==M?z+M+k:""}function E(z){return C(" ",z.replace(/\n/g,"\n "))}function S(z){return-1!==z.indexOf("\n")}function w(z){return null!=z&&z.some(S)}},6261:(Ft,Pe,c)=>{c.d(Pe,{H:()=>b,T:()=>D});var r=c(9245),o=c(744);function l(C,E){if(!Boolean(C))throw new Error(E)}function m(C,E){for(var S=0;S1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof E||l(0,"Body must be a string. Received: ".concat((0,o.Z)(E),".")),this.body=E,this.name=S,this.locationOffset=w,this.locationOffset.line>0||l(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||l(0,"column in locationOffset is 1-indexed and must be positive.")}return function A(C,E,S){E&&m(C.prototype,E),S&&m(C,S)}(C,[{key:r.YF,get:function(){return"Source"}}]),C}();function D(C){return C instanceof b}},1335:(Ft,Pe,c)=>{c.d(Pe,{$_:()=>K,Vn:()=>m});var r=c(744),o=c(848),l={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},K=Object.freeze({});function m(D,C){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,S=void 0,w=Array.isArray(D),z=[D],M=-1,k=[],N=void 0,ie=void 0,ce=void 0,ve=[],Le=[],Re=D;do{var ae=++M===z.length,Ue=ae&&0!==k.length;if(ae){if(ie=0===Le.length?void 0:ve[ve.length-1],N=ce,ce=Le.pop(),Ue){if(w)N=N.slice();else{for(var He={},me=0,fe=Object.keys(N);me{c.d(Pe,{YF:()=>l}),"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol;var l="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},2359:(Ft,Pe,c)=>{c.d(Pe,{r:()=>He,L:()=>me});var r=c(655),o=c(5e3),l=c(8929),K=c(7625),m=c(8076),A=c(9439),b=c(1721),D=c(226),C=c(9808),E=c(647),S=c(969);function w(fe,U){if(1&fe&&(o.ynx(0),o._UZ(1,"i",5),o.BQk()),2&fe){const J=o.oxw(2);o.xp6(1),o.Q6J("nzType",J.nzIconType||J.inferredIconType)("nzTheme",J.iconTheme)}}function z(fe,U){if(1&fe&&(o.ynx(0),o._uU(1),o.BQk()),2&fe){const J=o.oxw(4);o.xp6(1),o.Oqu(J.nzMessage)}}function M(fe,U){if(1&fe&&(o.TgZ(0,"span",9),o.YNc(1,z,2,1,"ng-container",10),o.qZA()),2&fe){const J=o.oxw(3);o.xp6(1),o.Q6J("nzStringTemplateOutlet",J.nzMessage)}}function k(fe,U){if(1&fe&&(o.ynx(0),o._uU(1),o.BQk()),2&fe){const J=o.oxw(4);o.xp6(1),o.Oqu(J.nzDescription)}}function N(fe,U){if(1&fe&&(o.TgZ(0,"span",11),o.YNc(1,k,2,1,"ng-container",10),o.qZA()),2&fe){const J=o.oxw(3);o.xp6(1),o.Q6J("nzStringTemplateOutlet",J.nzDescription)}}function ie(fe,U){if(1&fe&&(o.TgZ(0,"div",6),o.YNc(1,M,2,1,"span",7),o.YNc(2,N,2,1,"span",8),o.qZA()),2&fe){const J=o.oxw(2);o.xp6(1),o.Q6J("ngIf",J.nzMessage),o.xp6(1),o.Q6J("ngIf",J.nzDescription)}}function ce(fe,U){1&fe&&o._UZ(0,"i",15)}function ve(fe,U){if(1&fe&&(o.ynx(0),o.TgZ(1,"span",16),o._uU(2),o.qZA(),o.BQk()),2&fe){const J=o.oxw(4);o.xp6(2),o.Oqu(J.nzCloseText)}}function Le(fe,U){if(1&fe&&(o.ynx(0),o.YNc(1,ve,3,1,"ng-container",10),o.BQk()),2&fe){const J=o.oxw(3);o.xp6(1),o.Q6J("nzStringTemplateOutlet",J.nzCloseText)}}function Re(fe,U){if(1&fe){const J=o.EpF();o.TgZ(0,"button",12),o.NdJ("click",function(){return o.CHM(J),o.oxw(2).closeAlert()}),o.YNc(1,ce,1,0,"ng-template",null,13,o.W1O),o.YNc(3,Le,2,1,"ng-container",14),o.qZA()}if(2&fe){const J=o.MAs(2),Me=o.oxw(2);o.xp6(3),o.Q6J("ngIf",Me.nzCloseText)("ngIfElse",J)}}function ae(fe,U){if(1&fe){const J=o.EpF();o.TgZ(0,"div",1),o.NdJ("@slideAlertMotion.done",function(){return o.CHM(J),o.oxw().onFadeAnimationDone()}),o.YNc(1,w,2,2,"ng-container",2),o.YNc(2,ie,3,2,"div",3),o.YNc(3,Re,4,2,"button",4),o.qZA()}if(2&fe){const J=o.oxw();o.ekj("ant-alert-rtl","rtl"===J.dir)("ant-alert-success","success"===J.nzType)("ant-alert-info","info"===J.nzType)("ant-alert-warning","warning"===J.nzType)("ant-alert-error","error"===J.nzType)("ant-alert-no-icon",!J.nzShowIcon)("ant-alert-banner",J.nzBanner)("ant-alert-closable",J.nzCloseable)("ant-alert-with-description",!!J.nzDescription),o.Q6J("@.disabled",J.nzNoAnimation)("@slideAlertMotion",void 0),o.xp6(1),o.Q6J("ngIf",J.nzShowIcon),o.xp6(1),o.Q6J("ngIf",J.nzMessage||J.nzDescription),o.xp6(1),o.Q6J("ngIf",J.nzCloseable||J.nzCloseText)}}let He=(()=>{class fe{constructor(J,Me,se){this.nzConfigService=J,this.cdr=Me,this.directionality=se,this._nzModuleName="alert",this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new o.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new l.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,K.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var J;null===(J=this.directionality.change)||void 0===J||J.pipe((0,K.R)(this.destroy$)).subscribe(Me=>{this.dir=Me,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(J){const{nzShowIcon:Me,nzDescription:se,nzType:we,nzBanner:ue}=J;if(Me&&(this.isShowIconSet=!0),we)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}se&&(this.iconTheme=this.nzDescription?"outline":"fill"),ue&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return fe.\u0275fac=function(J){return new(J||fe)(o.Y36(A.jY),o.Y36(o.sBO),o.Y36(D.Is,8))},fe.\u0275cmp=o.Xpm({type:fe,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[o.TTD],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(J,Me){1&J&&o.YNc(0,ae,4,23,"div",0),2&J&&o.Q6J("ngIf",!Me.closed)},directives:[C.O5,E.Ls,S.f],encapsulation:2,data:{animation:[m.Rq]},changeDetection:0}),(0,r.gn)([(0,A.oS)(),(0,b.yF)()],fe.prototype,"nzCloseable",void 0),(0,r.gn)([(0,A.oS)(),(0,b.yF)()],fe.prototype,"nzShowIcon",void 0),(0,r.gn)([(0,b.yF)()],fe.prototype,"nzBanner",void 0),(0,r.gn)([(0,b.yF)()],fe.prototype,"nzNoAnimation",void 0),fe})(),me=(()=>{class fe{}return fe.\u0275fac=function(J){return new(J||fe)},fe.\u0275mod=o.oAB({type:fe}),fe.\u0275inj=o.cJS({imports:[[D.vT,C.ez,E.PV,S.T]]}),fe})()},6042:(Ft,Pe,c)=>{c.d(Pe,{ix:()=>ve,fY:()=>Le,sL:()=>Re});var r=c(655),o=c(5e3),l=c(8929),K=c(3753),m=c(7625),A=c(1059),b=c(2198),D=c(9439),C=c(1721),E=c(647),S=c(226),w=c(9808),z=c(2683),M=c(2643);const k=["nz-button",""];function N(ae,Ue){1&ae&&o._UZ(0,"i",1)}const ie=["*"];let ve=(()=>{class ae{constructor(He,me,fe,U,J,Me){this.ngZone=He,this.elementRef=me,this.cdr=fe,this.renderer=U,this.nzConfigService=J,this.directionality=Me,this._nzModuleName="button",this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new l.xQ,this.loading$=new l.xQ,this.nzConfigService.getConfigChangeEventForComponent("button").pipe((0,m.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}insertSpan(He,me){He.forEach(fe=>{if("#text"===fe.nodeName){const U=me.createElement("span"),J=me.parentNode(fe);me.insertBefore(J,U,fe),me.appendChild(U,fe)}})}assertIconOnly(He,me){const fe=Array.from(He.childNodes),U=fe.filter(we=>"I"===we.nodeName).length,J=fe.every(we=>"#text"!==we.nodeName);fe.every(we=>"SPAN"!==we.nodeName)&&J&&U>=1&&me.addClass(He,"ant-btn-icon-only")}ngOnInit(){var He;null===(He=this.directionality.change)||void 0===He||He.pipe((0,m.R)(this.destroy$)).subscribe(me=>{this.dir=me,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,K.R)(this.elementRef.nativeElement,"click").pipe((0,m.R)(this.destroy$)).subscribe(me=>{var fe;this.disabled&&"A"===(null===(fe=me.target)||void 0===fe?void 0:fe.tagName)&&(me.preventDefault(),me.stopImmediatePropagation())})})}ngOnChanges(He){const{nzLoading:me}=He;me&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,A.O)(this.nzLoading),(0,b.h)(()=>!!this.nzIconDirectiveElement),(0,m.R)(this.destroy$)).subscribe(He=>{const me=this.nzIconDirectiveElement.nativeElement;He?this.renderer.setStyle(me,"display","none"):this.renderer.removeStyle(me,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ae.\u0275fac=function(He){return new(He||ae)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(D.jY),o.Y36(S.Is,8))},ae.\u0275cmp=o.Xpm({type:ae,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(He,me,fe){if(1&He&&o.Suo(fe,E.Ls,5,o.SBq),2&He){let U;o.iGM(U=o.CRH())&&(me.nzIconDirectiveElement=U.first)}},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(He,me){2&He&&(o.uIk("tabindex",me.disabled?-1:null===me.tabIndex?null:me.tabIndex)("disabled",me.disabled||null),o.ekj("ant-btn-primary","primary"===me.nzType)("ant-btn-dashed","dashed"===me.nzType)("ant-btn-link","link"===me.nzType)("ant-btn-text","text"===me.nzType)("ant-btn-circle","circle"===me.nzShape)("ant-btn-round","round"===me.nzShape)("ant-btn-lg","large"===me.nzSize)("ant-btn-sm","small"===me.nzSize)("ant-btn-dangerous",me.nzDanger)("ant-btn-loading",me.nzLoading)("ant-btn-background-ghost",me.nzGhost)("ant-btn-block",me.nzBlock)("ant-input-search-button",me.nzSearch)("ant-btn-rtl","rtl"===me.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[o.TTD],attrs:k,ngContentSelectors:ie,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(He,me){1&He&&(o.F$t(),o.YNc(0,N,1,0,"i",0),o.Hsn(1)),2&He&&o.Q6J("ngIf",me.nzLoading)},directives:[w.O5,E.Ls,z.w],encapsulation:2,changeDetection:0}),(0,r.gn)([(0,C.yF)()],ae.prototype,"nzBlock",void 0),(0,r.gn)([(0,C.yF)()],ae.prototype,"nzGhost",void 0),(0,r.gn)([(0,C.yF)()],ae.prototype,"nzSearch",void 0),(0,r.gn)([(0,C.yF)()],ae.prototype,"nzLoading",void 0),(0,r.gn)([(0,C.yF)()],ae.prototype,"nzDanger",void 0),(0,r.gn)([(0,C.yF)()],ae.prototype,"disabled",void 0),(0,r.gn)([(0,D.oS)()],ae.prototype,"nzSize",void 0),ae})(),Le=(()=>{class ae{constructor(He){this.directionality=He,this.nzSize="default",this.dir="ltr",this.destroy$=new l.xQ}ngOnInit(){var He;this.dir=this.directionality.value,null===(He=this.directionality.change)||void 0===He||He.pipe((0,m.R)(this.destroy$)).subscribe(me=>{this.dir=me})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ae.\u0275fac=function(He){return new(He||ae)(o.Y36(S.Is,8))},ae.\u0275cmp=o.Xpm({type:ae,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(He,me){2&He&&o.ekj("ant-btn-group-lg","large"===me.nzSize)("ant-btn-group-sm","small"===me.nzSize)("ant-btn-group-rtl","rtl"===me.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:ie,decls:1,vars:0,template:function(He,me){1&He&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),ae})(),Re=(()=>{class ae{}return ae.\u0275fac=function(He){return new(He||ae)},ae.\u0275mod=o.oAB({type:ae}),ae.\u0275inj=o.cJS({imports:[[S.vT,w.ez,M.vG,E.PV,z.a],z.a,M.vG]}),ae})()},6114:(Ft,Pe,c)=>{c.d(Pe,{Ie:()=>N,Wr:()=>ce});var r=c(655),o=c(5e3),l=c(4182),K=c(8929),m=c(3753),A=c(7625),b=c(1721),D=c(5664),C=c(226),E=c(9808);const S=["*"],w=["inputElement"],z=["nz-checkbox",""];let k=(()=>{class ve{constructor(Re,ae){this.nzOnChange=new o.vpe,this.checkboxList=[],Re.addClass(ae.nativeElement,"ant-checkbox-group")}addCheckbox(Re){this.checkboxList.push(Re)}removeCheckbox(Re){this.checkboxList.splice(this.checkboxList.indexOf(Re),1)}onChange(){const Re=this.checkboxList.filter(ae=>ae.nzChecked).map(ae=>ae.nzValue);this.nzOnChange.emit(Re)}}return ve.\u0275fac=function(Re){return new(Re||ve)(o.Y36(o.Qsj),o.Y36(o.SBq))},ve.\u0275cmp=o.Xpm({type:ve,selectors:[["nz-checkbox-wrapper"]],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:S,decls:1,vars:0,template:function(Re,ae){1&Re&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),ve})(),N=(()=>{class ve{constructor(Re,ae,Ue,He,me,fe){this.ngZone=Re,this.elementRef=ae,this.nzCheckboxWrapperComponent=Ue,this.cdr=He,this.focusMonitor=me,this.directionality=fe,this.dir="ltr",this.destroy$=new K.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new o.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}innerCheckedChange(Re){this.nzDisabled||(this.nzChecked=Re,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(Re){this.nzChecked=Re,this.cdr.markForCheck()}registerOnChange(Re){this.onChange=Re}registerOnTouched(Re){this.onTouched=Re}setDisabledState(Re){this.nzDisabled=Re,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,A.R)(this.destroy$)).subscribe(Re=>{Re||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,A.R)(this.destroy$)).subscribe(Re=>{this.dir=Re,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.elementRef.nativeElement,"click").pipe((0,A.R)(this.destroy$)).subscribe(Re=>{Re.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,m.R)(this.inputElement.nativeElement,"click").pipe((0,A.R)(this.destroy$)).subscribe(Re=>Re.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}}return ve.\u0275fac=function(Re){return new(Re||ve)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(k,8),o.Y36(o.sBO),o.Y36(D.tE),o.Y36(C.Is,8))},ve.\u0275cmp=o.Xpm({type:ve,selectors:[["","nz-checkbox",""]],viewQuery:function(Re,ae){if(1&Re&&o.Gf(w,7),2&Re){let Ue;o.iGM(Ue=o.CRH())&&(ae.inputElement=Ue.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:4,hostBindings:function(Re,ae){2&Re&&o.ekj("ant-checkbox-wrapper-checked",ae.nzChecked)("ant-checkbox-rtl","rtl"===ae.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[o._Bn([{provide:l.JU,useExisting:(0,o.Gpc)(()=>ve),multi:!0}])],attrs:z,ngContentSelectors:S,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(Re,ae){1&Re&&(o.F$t(),o.TgZ(0,"span",0),o.TgZ(1,"input",1,2),o.NdJ("ngModelChange",function(He){return ae.innerCheckedChange(He)}),o.qZA(),o._UZ(3,"span",3),o.qZA(),o.TgZ(4,"span"),o.Hsn(5),o.qZA()),2&Re&&(o.ekj("ant-checkbox-checked",ae.nzChecked&&!ae.nzIndeterminate)("ant-checkbox-disabled",ae.nzDisabled)("ant-checkbox-indeterminate",ae.nzIndeterminate),o.xp6(1),o.Q6J("checked",ae.nzChecked)("ngModel",ae.nzChecked)("disabled",ae.nzDisabled),o.uIk("autofocus",ae.nzAutoFocus?"autofocus":null)("id",ae.nzId))},directives:[l.Wl,l.JJ,l.On],encapsulation:2,changeDetection:0}),(0,r.gn)([(0,b.yF)()],ve.prototype,"nzAutoFocus",void 0),(0,r.gn)([(0,b.yF)()],ve.prototype,"nzDisabled",void 0),(0,r.gn)([(0,b.yF)()],ve.prototype,"nzIndeterminate",void 0),(0,r.gn)([(0,b.yF)()],ve.prototype,"nzChecked",void 0),ve})(),ce=(()=>{class ve{}return ve.\u0275fac=function(Re){return new(Re||ve)},ve.\u0275mod=o.oAB({type:ve}),ve.\u0275inj=o.cJS({imports:[[C.vT,E.ez,l.u5,D.rt]]}),ve})()},8076:(Ft,Pe,c)=>{c.d(Pe,{J_:()=>K,MC:()=>A,c8:()=>b,Rq:()=>z,mF:()=>w,Ev:()=>k,$C:()=>M});var r=c(1777);let o=(()=>{class N{}return N.SLOW="0.3s",N.BASE="0.2s",N.FAST="0.1s",N})(),l=(()=>{class N{}return N.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",N.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",N.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",N.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",N.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",N.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",N.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",N.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",N.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",N.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",N.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",N.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",N.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",N.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",N})();const K=(0,r.X$)("collapseMotion",[(0,r.SB)("expanded",(0,r.oB)({height:"*"})),(0,r.SB)("collapsed",(0,r.oB)({height:0,overflow:"hidden"})),(0,r.SB)("hidden",(0,r.oB)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,r.eR)("expanded => collapsed",(0,r.jt)(`150ms ${l.EASE_IN_OUT}`)),(0,r.eR)("expanded => hidden",(0,r.jt)(`150ms ${l.EASE_IN_OUT}`)),(0,r.eR)("collapsed => expanded",(0,r.jt)(`150ms ${l.EASE_IN_OUT}`)),(0,r.eR)("hidden => expanded",(0,r.jt)(`150ms ${l.EASE_IN_OUT}`))]),A=((0,r.X$)("treeCollapseMotion",[(0,r.eR)("* => *",[(0,r.IO)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,r.oB)({overflow:"hidden"}),(0,r.EY)(0,[(0,r.jt)(`150ms ${l.EASE_IN_OUT}`,(0,r.oB)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,r.IO)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,r.oB)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,r.EY)(0,[(0,r.jt)(`150ms ${l.EASE_IN_OUT}`,(0,r.oB)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,r.X$)("fadeMotion",[(0,r.eR)(":enter",[(0,r.oB)({opacity:0}),(0,r.jt)(`${o.BASE}`,(0,r.oB)({opacity:1}))]),(0,r.eR)(":leave",[(0,r.oB)({opacity:1}),(0,r.jt)(`${o.BASE}`,(0,r.oB)({opacity:0}))])])),b=(0,r.X$)("helpMotion",[(0,r.eR)(":enter",[(0,r.oB)({opacity:0,transform:"translateY(-5px)"}),(0,r.jt)(`${o.SLOW} ${l.EASE_IN_OUT}`,(0,r.oB)({opacity:1,transform:"translateY(0)"}))]),(0,r.eR)(":leave",[(0,r.oB)({opacity:1,transform:"translateY(0)"}),(0,r.jt)(`${o.SLOW} ${l.EASE_IN_OUT}`,(0,r.oB)({opacity:0,transform:"translateY(-5px)"}))])]),E=((0,r.X$)("moveUpMotion",[(0,r.eR)("* => enter",[(0,r.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,r.jt)(`${o.BASE}`,(0,r.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,r.eR)("* => leave",[(0,r.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,r.jt)(`${o.BASE}`,(0,r.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),(0,r.X$)("notificationMotion",[(0,r.SB)("enterRight",(0,r.oB)({opacity:1,transform:"translateX(0)"})),(0,r.eR)("* => enterRight",[(0,r.oB)({opacity:0,transform:"translateX(5%)"}),(0,r.jt)("100ms linear")]),(0,r.SB)("enterLeft",(0,r.oB)({opacity:1,transform:"translateX(0)"})),(0,r.eR)("* => enterLeft",[(0,r.oB)({opacity:0,transform:"translateX(-5%)"}),(0,r.jt)("100ms linear")]),(0,r.SB)("leave",(0,r.oB)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,r.eR)("* => leave",[(0,r.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,r.jt)("100ms linear")])]),`${o.BASE} ${l.EASE_OUT_QUINT}`),S=`${o.BASE} ${l.EASE_IN_QUINT}`,w=(0,r.X$)("slideMotion",[(0,r.SB)("void",(0,r.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,r.SB)("enter",(0,r.oB)({opacity:1,transform:"scaleY(1)"})),(0,r.eR)("void => *",[(0,r.jt)(E)]),(0,r.eR)("* => void",[(0,r.jt)(S)])]),z=(0,r.X$)("slideAlertMotion",[(0,r.eR)(":leave",[(0,r.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,r.jt)(`${o.SLOW} ${l.EASE_IN_OUT_CIRC}`,(0,r.oB)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),M=(0,r.X$)("zoomBigMotion",[(0,r.eR)("void => active",[(0,r.oB)({opacity:0,transform:"scale(0.8)"}),(0,r.jt)(`${o.BASE} ${l.EASE_OUT_CIRC}`,(0,r.oB)({opacity:1,transform:"scale(1)"}))]),(0,r.eR)("active => void",[(0,r.oB)({opacity:1,transform:"scale(1)"}),(0,r.jt)(`${o.BASE} ${l.EASE_IN_OUT_CIRC}`,(0,r.oB)({opacity:0,transform:"scale(0.8)"}))])]),k=(0,r.X$)("zoomBadgeMotion",[(0,r.eR)(":enter",[(0,r.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,r.jt)(`${o.SLOW} ${l.EASE_OUT_BACK}`,(0,r.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,r.eR)(":leave",[(0,r.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,r.jt)(`${o.SLOW} ${l.EASE_IN_BACK}`,(0,r.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},8693:(Ft,Pe,c)=>{c.d(Pe,{o2:()=>l,M8:()=>K,uf:()=>o,Bh:()=>r});const r=["success","processing","error","default","warning"],o=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function l(m){return-1!==o.indexOf(m)}function K(m){return-1!==r.indexOf(m)}},9439:(Ft,Pe,c)=>{c.d(Pe,{jY:()=>b,oS:()=>D});var r=c(5e3),o=c(8929),l=c(2198),K=c(7604);const m=new r.OlP("nz-config"),A=function(C){return void 0!==C};let b=(()=>{class C{constructor(S){this.configUpdated$=new o.xQ,this.config=S||{}}getConfig(){return this.config}getConfigForComponent(S){return this.config[S]}getConfigChangeEventForComponent(S){return this.configUpdated$.pipe((0,l.h)(w=>w===S),(0,K.h)(void 0))}set(S,w){this.config[S]=Object.assign(Object.assign({},this.config[S]),w),this.configUpdated$.next(S)}}return C.\u0275fac=function(S){return new(S||C)(r.LFG(m,8))},C.\u0275prov=r.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();function D(){return function(E,S,w){const z=`$$__zorroConfigDecorator__${S}`;return Object.defineProperty(E,z,{configurable:!0,writable:!0,enumerable:!1}),{get(){var M,k;const N=(null==w?void 0:w.get)?w.get.bind(this)():this[z],ie=((null===(M=this.propertyAssignCounter)||void 0===M?void 0:M[S])||0)>1,ce=null===(k=this.nzConfigService.getConfigForComponent(this._nzModuleName))||void 0===k?void 0:k[S];return ie&&A(N)?N:A(ce)?ce:N},set(M){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[S]=(this.propertyAssignCounter[S]||0)+1,(null==w?void 0:w.set)?w.set.bind(this)(M):this[z]=M},configurable:!0,enumerable:!0}}}},948:(Ft,Pe,c)=>{c.d(Pe,{Bq:()=>K,ZK:()=>b});var r=c(5e3);const l={},K="[NG-ZORRO]:";const b=(...E)=>function A(E,...S){(0,r.X6Q)()&&function m(...E){const S=E.reduce((w,z)=>w+z.toString(),"");return!l[S]&&(l[S]=!0,!0)}(...S)&&E(...S)}((...S)=>console.warn(K,...S),...E)},4832:(Ft,Pe,c)=>{c.d(Pe,{P:()=>D,g:()=>C});var r=c(9808),o=c(5e3),l=c(655),K=c(3191),m=c(6360),A=c(1721);const b="nz-animate-disabled";let D=(()=>{class E{constructor(w,z,M){this.element=w,this.renderer=z,this.animationType=M,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const w=(0,K.fI)(this.element);!w||(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(w,b):this.renderer.removeClass(w,b))}}return E.\u0275fac=function(w){return new(w||E)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(m.Qb,8))},E.\u0275dir=o.lG2({type:E,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[o.TTD]}),(0,l.gn)([(0,A.yF)()],E.prototype,"nzNoAnimation",void 0),E})(),C=(()=>{class E{}return E.\u0275fac=function(w){return new(w||E)},E.\u0275mod=o.oAB({type:E}),E.\u0275inj=o.cJS({imports:[[r.ez]]}),E})()},969:(Ft,Pe,c)=>{c.d(Pe,{T:()=>m,f:()=>l});var r=c(9808),o=c(5e3);let l=(()=>{class A{constructor(D,C){this.viewContainer=D,this.templateRef=C,this.embeddedViewRef=null,this.context=new K,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}static ngTemplateContextGuard(D,C){return!0}recreateView(){this.viewContainer.clear();const D=this.nzStringTemplateOutlet instanceof o.Rgc;this.embeddedViewRef=this.viewContainer.createEmbeddedView(D?this.nzStringTemplateOutlet:this.templateRef,D?this.nzStringTemplateOutletContext:this.context)}updateContext(){const C=this.nzStringTemplateOutlet instanceof o.Rgc?this.nzStringTemplateOutletContext:this.context,E=this.embeddedViewRef.context;if(C)for(const S of Object.keys(C))E[S]=C[S]}ngOnChanges(D){const{nzStringTemplateOutletContext:C,nzStringTemplateOutlet:E}=D;E&&(this.context.$implicit=E.currentValue),(()=>{let z=!1;if(E)if(E.firstChange)z=!0;else{const ie=E.currentValue instanceof o.Rgc;z=E.previousValue instanceof o.Rgc||ie}return C&&(N=>{const ie=Object.keys(N.previousValue||{}),ce=Object.keys(N.currentValue||{});if(ie.length===ce.length){for(const ve of ce)if(-1===ie.indexOf(ve))return!0;return!1}return!0})(C)||z})()?this.recreateView():this.updateContext()}}return A.\u0275fac=function(D){return new(D||A)(o.Y36(o.s_b),o.Y36(o.Rgc))},A.\u0275dir=o.lG2({type:A,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[o.TTD]}),A})();class K{}let m=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275mod=o.oAB({type:A}),A.\u0275inj=o.cJS({imports:[[r.ez]]}),A})()},6950:(Ft,Pe,c)=>{c.d(Pe,{fG:()=>S,A7:()=>E,Ek:()=>D,hQ:()=>z,e4:()=>M,yW:()=>b,d_:()=>w});var r=c(655),o=c(2845),l=c(5e3),K=c(7625),m=c(4090),A=c(1721);const b={top:new o.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new o.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new o.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new o.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new o.tR({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new o.tR({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new o.tR({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new o.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new o.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new o.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new o.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new o.tR({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new o.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new o.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},D=[b.top,b.right,b.bottom,b.left],E=[new o.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new o.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})],S=[b.bottomLeft,new o.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"})];function w(k){for(const N in b)if(k.connectionPair.originX===b[N].originX&&k.connectionPair.originY===b[N].originY&&k.connectionPair.overlayX===b[N].overlayX&&k.connectionPair.overlayY===b[N].overlayY)return N}let z=(()=>{class k{constructor(ie,ce){this.cdkConnectedOverlay=ie,this.nzDestroyService=ce,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,K.R)(this.nzDestroyService)).subscribe(ve=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(ve)})}updateArrowPosition(ie){const ce=this.getOriginRect(),ve=w(ie);let Le=0,Re=0;"topLeft"===ve||"bottomLeft"===ve?Le=ce.width/2-14:"topRight"===ve||"bottomRight"===ve?Le=-(ce.width/2-14):"leftTop"===ve||"rightTop"===ve?Re=ce.height/2-10:("leftBottom"===ve||"rightBottom"===ve)&&(Re=-(ce.height/2-10)),(this.cdkConnectedOverlay.offsetX!==Le||this.cdkConnectedOverlay.offsetY!==Re)&&(this.cdkConnectedOverlay.offsetY=Re,this.cdkConnectedOverlay.offsetX=Le,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof o.xu?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const ie=this.getFlexibleConnectedPositionStrategyOrigin();if(ie instanceof l.SBq)return ie.nativeElement.getBoundingClientRect();if(ie instanceof Element)return ie.getBoundingClientRect();const ce=ie.width||0,ve=ie.height||0;return{top:ie.y,bottom:ie.y+ve,left:ie.x,right:ie.x+ce,height:ve,width:ce}}}return k.\u0275fac=function(ie){return new(ie||k)(l.Y36(o.pI),l.Y36(m.kn))},k.\u0275dir=l.lG2({type:k,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[l._Bn([m.kn])]}),(0,r.gn)([(0,A.yF)()],k.prototype,"nzArrowPointAtCenter",void 0),k})(),M=(()=>{class k{}return k.\u0275fac=function(ie){return new(ie||k)},k.\u0275mod=l.oAB({type:k}),k.\u0275inj=l.cJS({}),k})()},6987:(Ft,Pe,c)=>{c.d(Pe,{h:()=>K,e:()=>m});const r=["moz","ms","webkit"];function K(A){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(A);const b=r.filter(D=>`${D}CancelAnimationFrame`in window||`${D}CancelRequestAnimationFrame`in window)[0];return b?(window[`${b}CancelAnimationFrame`]||window[`${b}CancelRequestAnimationFrame`]).call(this,A):clearTimeout(A)}const m=function l(){if("undefined"==typeof window)return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const A=r.filter(b=>`${b}RequestAnimationFrame`in window)[0];return A?window[`${A}RequestAnimationFrame`]:function o(){let A=0;return function(b){const D=(new Date).getTime(),C=Math.max(0,16-(D-A)),E=setTimeout(()=>{b(D+C)},C);return A=D+C,E}}()}()},4090:(Ft,Pe,c)=>{c.d(Pe,{G_:()=>ae,r3:()=>me,kn:()=>fe,Ml:()=>ve,rI:()=>k,MF:()=>Re,WV:()=>Ue,ow:()=>He});var r=c(5e3),o=c(8929),l=c(7138),K=c(537),m=c(4850),A=c(2198),b=c(7625),D=c(1059),C=c(5778),E=c(1721),S=c(9808),w=c(6987),z=c(5113);const M=()=>{};let k=(()=>{class J{constructor(se,we){this.ngZone=se,this.rendererFactory2=we,this.resizeSource$=new o.xQ,this.listeners=0,this.disposeHandle=M,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=M}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,l.e)(16),(0,K.x)(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=M)}}return J.\u0275fac=function(se){return new(se||J)(r.LFG(r.R0b),r.LFG(r.FYo))},J.\u0275prov=r.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),ve=(()=>{class J{constructor(se){this.draggingThreshold=5,this.currentDraggingSequence=null,this.currentStartingPoint=null,this.handleRegistry=new Set,this.renderer=se.createRenderer(null,null)}requestDraggingSequence(se){return this.handleRegistry.size||this.registerDraggingHandler((0,E.z6)(se)),this.currentDraggingSequence&&this.currentDraggingSequence.complete(),this.currentStartingPoint=function ce(J){const Me=(0,E.wv)(J);return{x:Me.pageX,y:Me.pageY}}(se),this.currentDraggingSequence=new o.xQ,this.currentDraggingSequence.pipe((0,m.U)(we=>({x:we.pageX-this.currentStartingPoint.x,y:we.pageY-this.currentStartingPoint.y})),(0,A.h)(we=>Math.abs(we.x)>this.draggingThreshold||Math.abs(we.y)>this.draggingThreshold),(0,K.x)(()=>this.teardownDraggingSequence()))}registerDraggingHandler(se){se?(this.handleRegistry.add({teardown:this.renderer.listen("document","touchmove",we=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(we.touches[0]||we.changedTouches[0])})}),this.handleRegistry.add({teardown:this.renderer.listen("document","touchend",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})})):(this.handleRegistry.add({teardown:this.renderer.listen("document","mousemove",we=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(we)})}),this.handleRegistry.add({teardown:this.renderer.listen("document","mouseup",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})}))}teardownDraggingSequence(){this.currentDraggingSequence=null}}return J.\u0275fac=function(se){return new(se||J)(r.LFG(r.FYo))},J.\u0275prov=r.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();function Le(J,Me,se,we){const ue=se-Me;let Ye=J/(we/2);return Ye<1?ue/2*Ye*Ye*Ye+Me:ue/2*((Ye-=2)*Ye*Ye+2)+Me}let Re=(()=>{class J{constructor(se,we){this.ngZone=se,this.doc=we}setScrollTop(se,we=0){se===window?(this.doc.body.scrollTop=we,this.doc.documentElement.scrollTop=we):se.scrollTop=we}getOffset(se){const we={top:0,left:0};if(!se||!se.getClientRects().length)return we;const ue=se.getBoundingClientRect();if(ue.width||ue.height){const Ye=se.ownerDocument.documentElement;we.top=ue.top-Ye.clientTop,we.left=ue.left-Ye.clientLeft}else we.top=ue.top,we.left=ue.left;return we}getScroll(se,we=!0){if("undefined"==typeof window)return 0;const ue=we?"scrollTop":"scrollLeft";let Ye=0;return this.isWindow(se)?Ye=se[we?"pageYOffset":"pageXOffset"]:se instanceof Document?Ye=se.documentElement[ue]:se&&(Ye=se[ue]),se&&!this.isWindow(se)&&"number"!=typeof Ye&&(Ye=(se.ownerDocument||se).documentElement[ue]),Ye}isWindow(se){return null!=se&&se===se.window}scrollTo(se,we=0,ue={}){const Ye=se||window,We=this.getScroll(Ye),rt=Date.now(),{easing:wt,callback:Ae,duration:mt=450}=ue,kt=()=>{const It=Date.now()-rt,Xe=(wt||Le)(It>mt?mt:It,We,we,mt);this.isWindow(Ye)?Ye.scrollTo(window.pageXOffset,Xe):Ye instanceof HTMLDocument||"HTMLDocument"===Ye.constructor.name?Ye.documentElement.scrollTop=Xe:Ye.scrollTop=Xe,It(0,w.e)(kt))}}return J.\u0275fac=function(se){return new(se||J)(r.LFG(r.R0b),r.LFG(S.K0))},J.\u0275prov=r.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();var ae=(()=>{return(J=ae||(ae={})).xxl="xxl",J.xl="xl",J.lg="lg",J.md="md",J.sm="sm",J.xs="xs",ae;var J})();const Ue={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},He={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"};let me=(()=>{class J{constructor(se,we){this.resizeService=se,this.mediaMatcher=we,this.destroy$=new o.xQ,this.resizeService.subscribe().pipe((0,b.R)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(se,we){if(we){const ue=()=>this.matchMedia(se,!0);return this.resizeService.subscribe().pipe((0,m.U)(ue),(0,D.O)(ue()),(0,C.x)((Ye,We)=>Ye[0]===We[0]),(0,m.U)(Ye=>Ye[1]))}{const ue=()=>this.matchMedia(se);return this.resizeService.subscribe().pipe((0,m.U)(ue),(0,D.O)(ue()),(0,C.x)())}}matchMedia(se,we){let ue=ae.md;const Ye={};return Object.keys(se).map(We=>{const rt=We,wt=this.mediaMatcher.matchMedia(Ue[rt]).matches;Ye[We]=wt,wt&&(ue=rt)}),we?[ue,Ye]:ue}}return J.\u0275fac=function(se){return new(se||J)(r.LFG(k),r.LFG(z.vx))},J.\u0275prov=r.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),fe=(()=>{class J extends o.xQ{ngOnDestroy(){this.next(),this.complete()}}return J.\u0275fac=function(){let Me;return function(we){return(Me||(Me=r.n5z(J)))(we||J)}}(),J.\u0275prov=r.Yz7({token:J,factory:J.\u0275fac}),J})()},2683:(Ft,Pe,c)=>{c.d(Pe,{w:()=>l,a:()=>K});var r=c(925),o=c(5e3);let l=(()=>{class m{constructor(b,D){this.elementRef=b,this.renderer=D,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return m.\u0275fac=function(b){return new(b||m)(o.Y36(o.SBq),o.Y36(o.Qsj))},m.\u0275dir=o.lG2({type:m,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[o.TTD]}),m})(),K=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.oAB({type:m}),m.\u0275inj=o.cJS({imports:[[r.ud]]}),m})()},1721:(Ft,Pe,c)=>{c.d(Pe,{yF:()=>Re,Rn:()=>Ue,cO:()=>C,Ly:()=>Lt,pW:()=>me,wv:()=>U,qR:()=>Me,GM:()=>pt,ov:()=>vt,kK:()=>w,DX:()=>S,ui:()=>Ae,tI:()=>Ye,GL:()=>Pt,z6:()=>fe,L8:()=>Ke,D8:()=>Fe,zT:()=>Ct,wU:()=>z,Sm:()=>kt,sw:()=>N,WX:()=>ce,YM:()=>mt,He:()=>ie,lN:()=>Tt});var r=c(3191),o=c(948),l=c(8929),K=c(4715),m=c(5254),A=c(1086),b=c(2986);function C(je,zt){if(!je||!zt||je.length!==zt.length)return!1;const jt=je.length;for(let Bt=0;Btie(zt,je))}function me(je){if(!je.getClientRects().length)return{top:0,left:0};const zt=je.getBoundingClientRect(),jt=je.ownerDocument.defaultView;return{top:zt.top+jt.pageYOffset,left:zt.left+jt.pageXOffset}}function fe(je){return je.type.startsWith("touch")}function U(je){return fe(je)?je.touches[0]||je.changedTouches[0]:je}function Me(je,zt="@"){if("string"!=typeof je)return[];const jt=function J(je){const zt=Array.isArray(je)?je:[je];let jt=zt.join("").replace(/(\$|\^)/g,"\\$1");return zt.length>1&&(jt=`[${jt}]`),new RegExp(`(\\s|^)(${jt})[^\\s]*`,"g")}(zt),Bt=je.match(jt);return null!==Bt?Bt.map(vn=>vn.trim()):[]}function Ye(je){return!!je&&"function"==typeof je.then&&"function"==typeof je.catch}function Ae(je){return"number"==typeof je&&isFinite(je)}function mt(je,zt){return Math.round(je*Math.pow(10,zt))/Math.pow(10,zt)}function kt(je,zt=0){return je.reduce((jt,Bt)=>jt+Bt,zt)}function Ct(je){je.scrollIntoViewIfNeeded?je.scrollIntoViewIfNeeded(!1):je.scrollIntoView&&je.scrollIntoView(!1)}const It=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],Xe="undefined"!=typeof window,lt=Xe&&null!=window.mozInnerScreenX,ct=je=>parseInt(je,10);function Lt(je,zt,jt){if(!Xe)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");const Bt=jt&&jt.debug||!1;if(Bt){const yn=document.querySelector("#input-textarea-caret-position-mirror-div");yn&&yn.parentNode.removeChild(yn)}const vn=document.createElement("div");vn.id="input-textarea-caret-position-mirror-div",document.body.appendChild(vn);const cn=vn.style,an=window.getComputedStyle?window.getComputedStyle(je):je.currentStyle,nn="INPUT"===je.nodeName;cn.whiteSpace="pre-wrap",nn||(cn.wordWrap="break-word"),cn.position="absolute",Bt||(cn.visibility="hidden"),It.forEach(yn=>{nn&&"lineHeight"===yn?cn.lineHeight=an.height:cn[yn]=an[yn]}),lt?je.scrollHeight>ct(an.height)&&(cn.overflowY="scroll"):cn.overflow="hidden",vn.textContent=je.value.substring(0,zt),nn&&(vn.textContent=vn.textContent.replace(/\s/g,"\xa0"));const Gn=document.createElement("span");Gn.textContent=je.value.substring(zt)||".",vn.appendChild(Gn);const xn={top:Gn.offsetTop+ct(an.borderTopWidth),left:Gn.offsetLeft+ct(an.borderLeftWidth),height:ct(an.lineHeight)};return Bt?(Gn.style.backgroundColor="#eee",function Ie(je,zt){const jt=getComputedStyle(je).getPropertyValue("font-size"),Bt=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(Bt),Bt.id="DEBUG",Bt.style.position="absolute",Bt.style.backgroundColor="red",Bt.style.height=jt,Bt.style.width="1px",Bt.style.top=`${je.getBoundingClientRect().top-je.scrollTop+window.pageYOffset+zt.top}px`,Bt.style.left=`${je.getBoundingClientRect().left-je.scrollLeft+window.pageXOffset+zt.left}px`}(je,xn)):document.body.removeChild(vn),xn}function Pt(je){if("undefined"!=typeof window&&window.document&&window.document.documentElement){const zt=Array.isArray(je)?je:[je],{documentElement:jt}=window.document;return zt.some(Bt=>Bt in jt.style)}return!1}function pt(je){return je?Object.keys(je).map(zt=>{const jt=je[zt];return`${zt}:${"string"==typeof jt?jt:`${jt}px`}`}).join(";"):""}let Ne;const Ve={padding:"0",margin:"0",display:"inline",lineHeight:"inherit"};function ye(je){if(!je)return 0;const zt=je.match(/^\d*(\.\d*)?/);return zt?Number(zt[0]):0}function Ke(je,zt,jt,Bt,vn,cn=""){Ne||(Ne=document.createElement("div"),Ne.setAttribute("aria-hidden","true"),document.body.appendChild(Ne));const an=window.getComputedStyle(je),nn=function yt(je){return Array.prototype.slice.apply(je).map(jt=>`${jt}: ${je.getPropertyValue(jt)};`).join("")}(an),Gn=ye(an.lineHeight),xn=Math.round(Gn*(zt+1)+ye(an.paddingTop)+ye(an.paddingBottom));Ne.setAttribute("style",nn),Ne.style.position="fixed",Ne.style.left="0",Ne.style.height="auto",Ne.style.minHeight="auto",Ne.style.maxHeight="auto",Ne.style.top="-999999px",Ne.style.zIndex="-1000",Ne.style.textOverflow="clip",Ne.style.whiteSpace="normal",Ne.style.webkitLineClamp="none";const yn=function Mt(je){const zt=[];return je.forEach(jt=>{const Bt=zt[zt.length-1];Bt&&3===jt.nodeType&&3===Bt.nodeType?Bt.data+=jt.data:zt.push(jt)}),zt}(jt),_n=document.createElement("div"),un=document.createElement("span"),Dt=document.createTextNode(cn),it=document.createElement("span");function Ge(){return Ne.offsetHeight{un.appendChild(De)}),un.appendChild(Dt),Bt.forEach(De=>{it.appendChild(De.cloneNode(!0))}),_n.appendChild(un),_n.appendChild(it),Ne.appendChild(_n),Ge()){const De=Ne.innerHTML;return Ne.removeChild(_n),{contentNodes:jt,text:De,ellipsis:!1}}const St=Array.prototype.slice.apply(Ne.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(({nodeType:De})=>8!==De),xe=Array.prototype.slice.apply(Ne.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Ne.removeChild(_n),Ne.innerHTML="";const xt=document.createElement("span");Ne.appendChild(xt);const ge=document.createTextNode(vn+cn);function ut(De,ft,Jt=0,ee=ft.length,T=0){const p=Math.floor((Jt+ee)/2);if(De.textContent=ft.slice(0,p),Jt>=ee-1)for(let h=ee;h>=Jt;h-=1){const y=ft.slice(0,h);if(De.textContent=y,Ge()||!y)return h===ft.length?{finished:!1,node:document.createTextNode(ft)}:{finished:!0,node:document.createTextNode(y)}}return Ge()?ut(De,ft,p,ee,p):ut(De,ft,Jt,p,T)}function I(De,ft){const Jt=De.nodeType;if(1===Jt)return Ge()?{finished:!1,node:yn[ft]}:(xt.removeChild(De),{finished:!0,node:null});if(3===Jt){const ee=De.textContent||"",T=document.createTextNode(ee);return function de(De){xt.insertBefore(De,ge)}(T),ut(T,ee)}return{finished:!1,node:null}}xt.appendChild(ge),xe.forEach(De=>{Ne.appendChild(De)});const Z=[];St.some((De,ft)=>{const{finished:Jt,node:ee}=I(De,ft);return ee&&Z.push(ee),Jt});const oe={contentNodes:Z,text:Ne.innerHTML,ellipsis:!0};for(;Ne.firstChild;)Ne.removeChild(Ne.firstChild);return oe}let B,G;const Q={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function Fe(je="vertical",zt="ant"){if("undefined"==typeof document||"undefined"==typeof window)return 0;const jt="vertical"===je;if(jt&&B)return B;if(!jt&&G)return G;const Bt=document.createElement("div");Object.keys(Q).forEach(cn=>{Bt.style[cn]=Q[cn]}),Bt.className=`${zt}-hide-scrollbar scroll-div-append-to-body`,jt?Bt.style.overflowY="scroll":Bt.style.overflowX="scroll",document.body.appendChild(Bt);let vn=0;return jt?(vn=Bt.offsetWidth-Bt.clientWidth,B=vn):(vn=Bt.offsetHeight-Bt.clientHeight,G=vn),document.body.removeChild(Bt),vn}function vt(){const je=new l.xQ;return Promise.resolve().then(()=>je.next()),je.pipe((0,b.q)(1))}function Tt(je){return(0,K.b)(je)?je:Ye(je)?(0,m.D)(Promise.resolve(je)):(0,A.of)(je)}},2643:(Ft,Pe,c)=>{c.d(Pe,{dQ:()=>D,vG:()=>C});var r=c(925),o=c(5e3),l=c(6360);class K{constructor(S,w,z,M){this.triggerElement=S,this.ngZone=w,this.insertExtraNode=z,this.platformId=M,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=k=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===k.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new r.t4(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)})}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const S=this.triggerElement,w=this.getWaveColor(S);S.setAttribute(this.waveAttributeName,"true"),!(Date.now(){S.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(S){return!!S&&"#ffffff"!==S&&"rgb(255, 255, 255)"!==S&&this.isNotGrey(S)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(S)&&"transparent"!==S}isNotGrey(S){const w=S.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(w&&w[1]&&w[2]&&w[3]&&w[1]===w[2]&&w[2]===w[3])}getWaveColor(S){const w=getComputedStyle(S);return w.getPropertyValue("border-top-color")||w.getPropertyValue("border-color")||w.getPropertyValue("background-color")}runTimeoutOutsideZone(S,w){this.ngZone.runOutsideAngular(()=>setTimeout(S,w))}}const m={disabled:!1},A=new o.OlP("nz-wave-global-options",{providedIn:"root",factory:function b(){return m}});let D=(()=>{class E{constructor(w,z,M,k,N){this.ngZone=w,this.elementRef=z,this.config=M,this.animationType=k,this.platformId=N,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}isConfigDisabled(){let w=!1;return this.config&&"boolean"==typeof this.config.disabled&&(w=this.config.disabled),"NoopAnimations"===this.animationType&&(w=!0),w}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new K(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}return E.\u0275fac=function(w){return new(w||E)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(A,8),o.Y36(l.Qb,8),o.Y36(o.Lbi))},E.\u0275dir=o.lG2({type:E,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),E})(),C=(()=>{class E{}return E.\u0275fac=function(w){return new(w||E)},E.\u0275mod=o.oAB({type:E}),E.\u0275inj=o.cJS({imports:[[r.ud]]}),E})()},685:(Ft,Pe,c)=>{c.d(Pe,{gB:()=>Ye,p9:()=>we,Xo:()=>We});var r=c(7429),o=c(5e3),l=c(8929),K=c(7625),m=c(1059),A=c(9439),b=c(4170),D=c(9808),C=c(969),E=c(226);function S(rt,wt){if(1&rt&&(o.ynx(0),o._UZ(1,"img",5),o.BQk()),2&rt){const Ae=o.oxw(2);o.xp6(1),o.Q6J("src",Ae.nzNotFoundImage,o.LSH)("alt",Ae.isContentString?Ae.nzNotFoundContent:"empty")}}function w(rt,wt){if(1&rt&&(o.ynx(0),o.YNc(1,S,2,2,"ng-container",4),o.BQk()),2&rt){const Ae=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",Ae.nzNotFoundImage)}}function z(rt,wt){1&rt&&o._UZ(0,"nz-empty-default")}function M(rt,wt){1&rt&&o._UZ(0,"nz-empty-simple")}function k(rt,wt){if(1&rt&&(o.ynx(0),o._uU(1),o.BQk()),2&rt){const Ae=o.oxw(2);o.xp6(1),o.hij(" ",Ae.isContentString?Ae.nzNotFoundContent:Ae.locale.description," ")}}function N(rt,wt){if(1&rt&&(o.TgZ(0,"p",6),o.YNc(1,k,2,1,"ng-container",4),o.qZA()),2&rt){const Ae=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",Ae.nzNotFoundContent)}}function ie(rt,wt){if(1&rt&&(o.ynx(0),o._uU(1),o.BQk()),2&rt){const Ae=o.oxw(2);o.xp6(1),o.hij(" ",Ae.nzNotFoundFooter," ")}}function ce(rt,wt){if(1&rt&&(o.TgZ(0,"div",7),o.YNc(1,ie,2,1,"ng-container",4),o.qZA()),2&rt){const Ae=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",Ae.nzNotFoundFooter)}}function ve(rt,wt){1&rt&&o._UZ(0,"nz-empty",6),2&rt&&o.Q6J("nzNotFoundImage","simple")}function Le(rt,wt){1&rt&&o._UZ(0,"nz-empty",7),2&rt&&o.Q6J("nzNotFoundImage","simple")}function Re(rt,wt){1&rt&&o._UZ(0,"nz-empty")}function ae(rt,wt){if(1&rt&&(o.ynx(0,2),o.YNc(1,ve,1,1,"nz-empty",3),o.YNc(2,Le,1,1,"nz-empty",4),o.YNc(3,Re,1,0,"nz-empty",5),o.BQk()),2&rt){const Ae=o.oxw();o.Q6J("ngSwitch",Ae.size),o.xp6(1),o.Q6J("ngSwitchCase","normal"),o.xp6(1),o.Q6J("ngSwitchCase","small")}}function Ue(rt,wt){}function He(rt,wt){if(1&rt&&o.YNc(0,Ue,0,0,"ng-template",8),2&rt){const Ae=o.oxw(2);o.Q6J("cdkPortalOutlet",Ae.contentPortal)}}function me(rt,wt){if(1&rt&&(o.ynx(0),o._uU(1),o.BQk()),2&rt){const Ae=o.oxw(2);o.xp6(1),o.hij(" ",Ae.content," ")}}function fe(rt,wt){if(1&rt&&(o.ynx(0),o.YNc(1,He,1,1,void 0,1),o.YNc(2,me,2,1,"ng-container",1),o.BQk()),2&rt){const Ae=o.oxw();o.xp6(1),o.Q6J("ngIf","string"!==Ae.contentType),o.xp6(1),o.Q6J("ngIf","string"===Ae.contentType)}}const U=new o.OlP("nz-empty-component-name");let J=(()=>{class rt{}return rt.\u0275fac=function(Ae){return new(Ae||rt)},rt.\u0275cmp=o.Xpm({type:rt,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(Ae,mt){1&Ae&&(o.O4$(),o.TgZ(0,"svg",0),o.TgZ(1,"g",1),o.TgZ(2,"g",2),o._UZ(3,"ellipse",3),o._UZ(4,"path",4),o._UZ(5,"path",5),o._UZ(6,"path",6),o._UZ(7,"path",7),o.qZA(),o._UZ(8,"path",8),o.TgZ(9,"g",9),o._UZ(10,"ellipse",10),o._UZ(11,"path",11),o.qZA(),o.qZA(),o.qZA())},encapsulation:2,changeDetection:0}),rt})(),Me=(()=>{class rt{}return rt.\u0275fac=function(Ae){return new(Ae||rt)},rt.\u0275cmp=o.Xpm({type:rt,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(Ae,mt){1&Ae&&(o.O4$(),o.TgZ(0,"svg",0),o.TgZ(1,"g",1),o._UZ(2,"ellipse",2),o.TgZ(3,"g",3),o._UZ(4,"path",4),o._UZ(5,"path",5),o.qZA(),o.qZA(),o.qZA())},encapsulation:2,changeDetection:0}),rt})();const se=["default","simple"];let we=(()=>{class rt{constructor(Ae,mt){this.i18n=Ae,this.cdr=mt,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new l.xQ}ngOnChanges(Ae){const{nzNotFoundContent:mt,nzNotFoundImage:kt}=Ae;if(mt&&(this.isContentString="string"==typeof mt.currentValue),kt){const Ct=kt.currentValue||"default";this.isImageBuildIn=se.findIndex(It=>It===Ct)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,K.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return rt.\u0275fac=function(Ae){return new(Ae||rt)(o.Y36(b.wi),o.Y36(o.sBO))},rt.\u0275cmp=o.Xpm({type:rt,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[o.TTD],decls:6,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function(Ae,mt){1&Ae&&(o.TgZ(0,"div",0),o.YNc(1,w,2,1,"ng-container",1),o.YNc(2,z,1,0,"nz-empty-default",1),o.YNc(3,M,1,0,"nz-empty-simple",1),o.qZA(),o.YNc(4,N,2,1,"p",2),o.YNc(5,ce,2,1,"div",3)),2&Ae&&(o.xp6(1),o.Q6J("ngIf",!mt.isImageBuildIn),o.xp6(1),o.Q6J("ngIf",mt.isImageBuildIn&&"simple"!==mt.nzNotFoundImage),o.xp6(1),o.Q6J("ngIf",mt.isImageBuildIn&&"simple"===mt.nzNotFoundImage),o.xp6(1),o.Q6J("ngIf",null!==mt.nzNotFoundContent),o.xp6(1),o.Q6J("ngIf",mt.nzNotFoundFooter))},directives:[J,Me,D.O5,C.f],encapsulation:2,changeDetection:0}),rt})(),Ye=(()=>{class rt{constructor(Ae,mt,kt,Ct){this.configService=Ae,this.viewContainerRef=mt,this.cdr=kt,this.injector=Ct,this.contentType="string",this.size="",this.destroy$=new l.xQ}ngOnChanges(Ae){Ae.nzComponentName&&(this.size=function ue(rt){switch(rt){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(Ae.nzComponentName.currentValue)),Ae.specificContent&&!Ae.specificContent.isFirstChange()&&(this.content=Ae.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const Ae=this.content;if("string"==typeof Ae)this.contentType="string";else if(Ae instanceof o.Rgc){const mt={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new r.UE(Ae,this.viewContainerRef,mt)}else if(Ae instanceof o.DyG){const mt=o.zs3.create({parent:this.injector,providers:[{provide:U,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new r.C5(Ae,this.viewContainerRef,mt)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,m.O)(!0),(0,K.R)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return rt.\u0275fac=function(Ae){return new(Ae||rt)(o.Y36(A.jY),o.Y36(o.s_b),o.Y36(o.sBO),o.Y36(o.zs3))},rt.\u0275cmp=o.Xpm({type:rt,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[o.TTD],decls:2,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function(Ae,mt){1&Ae&&(o.YNc(0,ae,4,3,"ng-container",0),o.YNc(1,fe,3,2,"ng-container",1)),2&Ae&&(o.Q6J("ngIf",!mt.content&&null!==mt.specificContent),o.xp6(1),o.Q6J("ngIf",mt.content))},directives:[we,D.O5,D.RF,D.n9,D.ED,r.Pl],encapsulation:2,changeDetection:0}),rt})(),We=(()=>{class rt{}return rt.\u0275fac=function(Ae){return new(Ae||rt)},rt.\u0275mod=o.oAB({type:rt}),rt.\u0275inj=o.cJS({imports:[[E.vT,D.ez,r.eL,C.T,b.YI]]}),rt})()},4546:(Ft,Pe,c)=>{c.d(Pe,{Fd:()=>mt,Lr:()=>wt,Nx:()=>Ye,iK:()=>Ct,U5:()=>lt});var r=c(226),o=c(5113),l=c(925),K=c(9808),m=c(5e3),A=c(969),b=c(1894),D=c(647),C=c(404),E=c(4182),S=c(8929),w=c(2654),z=c(7625),M=c(2198),k=c(4850),N=c(2868),ie=c(1059),ce=c(8076),ve=c(1721),Le=c(4170),Re=c(655),ae=c(9439);const Ue=["*"];function He(ct,Lt){if(1&ct&&m._UZ(0,"i",6),2&ct){const Ie=m.oxw();m.Q6J("nzType",Ie.iconType)}}function me(ct,Lt){if(1&ct&&(m.ynx(0),m._uU(1),m.BQk()),2&ct){const Ie=m.oxw(2);m.xp6(1),m.Oqu(Ie.innerTip)}}const fe=function(ct){return[ct]},U=function(ct){return{$implicit:ct}};function J(ct,Lt){if(1&ct&&(m.TgZ(0,"div",7),m.TgZ(1,"div",8),m.YNc(2,me,2,1,"ng-container",9),m.qZA(),m.qZA()),2&ct){const Ie=m.oxw();m.Q6J("@helpMotion",void 0),m.xp6(1),m.Q6J("ngClass",m.VKq(4,fe,"ant-form-item-explain-"+Ie.status)),m.xp6(1),m.Q6J("nzStringTemplateOutlet",Ie.innerTip)("nzStringTemplateOutletContext",m.VKq(6,U,Ie.validateControl))}}function Me(ct,Lt){if(1&ct&&(m.ynx(0),m._uU(1),m.BQk()),2&ct){const Ie=m.oxw(2);m.xp6(1),m.Oqu(Ie.nzExtra)}}function se(ct,Lt){if(1&ct&&(m.TgZ(0,"div",10),m.YNc(1,Me,2,1,"ng-container",11),m.qZA()),2&ct){const Ie=m.oxw();m.xp6(1),m.Q6J("nzStringTemplateOutlet",Ie.nzExtra)}}function we(ct,Lt){if(1&ct&&(m.ynx(0),m._UZ(1,"i",3),m.BQk()),2&ct){const Ie=Lt.$implicit,Pt=m.oxw(2);m.xp6(1),m.Q6J("nzType",Ie)("nzTheme",Pt.tooltipIcon.theme)}}function ue(ct,Lt){if(1&ct&&(m.TgZ(0,"span",1),m.YNc(1,we,2,2,"ng-container",2),m.qZA()),2&ct){const Ie=m.oxw();m.Q6J("nzTooltipTitle",Ie.nzTooltipTitle),m.xp6(1),m.Q6J("nzStringTemplateOutlet",Ie.tooltipIcon.type)}}let Ye=(()=>{class ct{constructor(Ie,Pt,pt){this.cdr=pt,this.status=null,this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new S.xQ,Pt.addClass(Ie.nativeElement,"ant-form-item")}setWithHelpViaTips(Ie){this.withHelpClass=Ie,this.cdr.markForCheck()}setStatus(Ie){this.status=Ie,this.cdr.markForCheck()}setHasFeedback(Ie){this.hasFeedback=Ie,this.cdr.markForCheck()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ct.\u0275fac=function(Ie){return new(Ie||ct)(m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(m.sBO))},ct.\u0275cmp=m.Xpm({type:ct,selectors:[["nz-form-item"]],hostVars:12,hostBindings:function(Ie,Pt){2&Ie&&m.ekj("ant-form-item-has-success","success"===Pt.status)("ant-form-item-has-warning","warning"===Pt.status)("ant-form-item-has-error","error"===Pt.status)("ant-form-item-is-validating","validating"===Pt.status)("ant-form-item-has-feedback",Pt.hasFeedback&&Pt.status)("ant-form-item-with-help",Pt.withHelpClass)},exportAs:["nzFormItem"],ngContentSelectors:Ue,decls:1,vars:0,template:function(Ie,Pt){1&Ie&&(m.F$t(),m.Hsn(0))},encapsulation:2,changeDetection:0}),ct})();const rt={type:"question-circle",theme:"outline"};let wt=(()=>{class ct{constructor(Ie,Pt,pt,Et){var ot;this.nzConfigService=Ie,this.renderer=pt,this.directionality=Et,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=rt,this.dir="ltr",this.destroy$=new S.xQ,this.inputChanges$=new S.xQ,this.renderer.addClass(Pt.nativeElement,"ant-form"),this.dir=this.directionality.value,null===(ot=this.directionality.change)||void 0===ot||ot.pipe((0,z.R)(this.destroy$)).subscribe(en=>{this.dir=en})}getInputObservable(Ie){return this.inputChanges$.pipe((0,M.h)(Pt=>Ie in Pt),(0,k.U)(Pt=>Pt[Ie]))}ngOnChanges(Ie){this.inputChanges$.next(Ie)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(),this.destroy$.complete()}}return ct.\u0275fac=function(Ie){return new(Ie||ct)(m.Y36(ae.jY),m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(r.Is,8))},ct.\u0275dir=m.lG2({type:ct,selectors:[["","nz-form",""]],hostVars:8,hostBindings:function(Ie,Pt){2&Ie&&m.ekj("ant-form-horizontal","horizontal"===Pt.nzLayout)("ant-form-vertical","vertical"===Pt.nzLayout)("ant-form-inline","inline"===Pt.nzLayout)("ant-form-rtl","rtl"===Pt.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:"nzNoColon",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzForm"],features:[m.TTD]}),(0,Re.gn)([(0,ae.oS)(),(0,ve.yF)()],ct.prototype,"nzNoColon",void 0),(0,Re.gn)([(0,ae.oS)()],ct.prototype,"nzAutoTips",void 0),(0,Re.gn)([(0,ve.yF)()],ct.prototype,"nzDisableAutoTips",void 0),(0,Re.gn)([(0,ae.oS)()],ct.prototype,"nzTooltipIcon",void 0),ct})();const Ae={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let mt=(()=>{class ct{constructor(Ie,Pt,pt,Et,ot,en){var Ne,Ve;this.nzFormItemComponent=Pt,this.cdr=pt,this.nzFormDirective=en,this._hasFeedback=!1,this.validateChanges=w.w.EMPTY,this.validateString=null,this.destroyed$=new S.xQ,this.status=null,this.validateControl=null,this.iconType=null,this.innerTip=null,this.nzAutoTips={},this.nzDisableAutoTips="default",Et.addClass(Ie.nativeElement,"ant-form-item-control"),this.subscribeAutoTips(ot.localeChange.pipe((0,N.b)(ye=>this.localeId=ye.locale))),this.subscribeAutoTips(null===(Ne=this.nzFormDirective)||void 0===Ne?void 0:Ne.getInputObservable("nzAutoTips")),this.subscribeAutoTips(null===(Ve=this.nzFormDirective)||void 0===Ve?void 0:Ve.getInputObservable("nzDisableAutoTips").pipe((0,M.h)(()=>"default"===this.nzDisableAutoTips)))}get disableAutoTips(){var Ie;return"default"!==this.nzDisableAutoTips?(0,ve.sw)(this.nzDisableAutoTips):null===(Ie=this.nzFormDirective)||void 0===Ie?void 0:Ie.nzDisableAutoTips}set nzHasFeedback(Ie){this._hasFeedback=(0,ve.sw)(Ie),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(Ie){Ie instanceof E.TO||Ie instanceof E.On?(this.validateControl=Ie,this.validateString=null,this.watchControl()):Ie instanceof E.u?(this.validateControl=Ie.control,this.validateString=null,this.watchControl()):(this.validateString=Ie,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,ie.O)(null),(0,z.R)(this.destroyed$)).subscribe(Ie=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.iconType=this.status?Ae[this.status]:null,this.innerTip=this.getInnerTip(this.status),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(Ie){let Pt;return Pt="warning"===Ie||this.validateControlStatus("INVALID","warning")?"warning":"error"===Ie||this.validateControlStatus("INVALID")?"error":"validating"===Ie||"pending"===Ie||this.validateControlStatus("PENDING")?"validating":"success"===Ie||this.validateControlStatus("VALID")?"success":null,Pt}validateControlStatus(Ie,Pt){if(this.validateControl){const{dirty:pt,touched:Et,status:ot}=this.validateControl;return(!!pt||!!Et)&&(Pt?this.validateControl.hasError(Pt):ot===Ie)}return!1}getInnerTip(Ie){switch(Ie){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){var Ie,Pt,pt,Et,ot,en,Ne,Ve,ye,yt,Mt,Ke,B;if(this.validateControl){const G=this.validateControl.errors||{};let Q="";for(const Fe in G)if(G.hasOwnProperty(Fe)&&(Q=null!==(Mt=null!==(Ne=null!==(ot=null!==(Pt=null===(Ie=G[Fe])||void 0===Ie?void 0:Ie[this.localeId])&&void 0!==Pt?Pt:null===(Et=null===(pt=this.nzAutoTips)||void 0===pt?void 0:pt[this.localeId])||void 0===Et?void 0:Et[Fe])&&void 0!==ot?ot:null===(en=this.nzAutoTips.default)||void 0===en?void 0:en[Fe])&&void 0!==Ne?Ne:null===(yt=null===(ye=null===(Ve=this.nzFormDirective)||void 0===Ve?void 0:Ve.nzAutoTips)||void 0===ye?void 0:ye[this.localeId])||void 0===yt?void 0:yt[Fe])&&void 0!==Mt?Mt:null===(B=null===(Ke=this.nzFormDirective)||void 0===Ke?void 0:Ke.nzAutoTips.default)||void 0===B?void 0:B[Fe]),Q)break;this.autoErrorTip=Q}}subscribeAutoTips(Ie){null==Ie||Ie.pipe((0,z.R)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}ngOnChanges(Ie){const{nzDisableAutoTips:Pt,nzAutoTips:pt,nzSuccessTip:Et,nzWarningTip:ot,nzErrorTip:en,nzValidatingTip:Ne}=Ie;Pt||pt?(this.updateAutoErrorTip(),this.setStatus()):(Et||ot||en||Ne)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof E.oH?this.defaultValidateControl.control:this.defaultValidateControl)}}return ct.\u0275fac=function(Ie){return new(Ie||ct)(m.Y36(m.SBq),m.Y36(Ye,9),m.Y36(m.sBO),m.Y36(m.Qsj),m.Y36(Le.wi),m.Y36(wt,8))},ct.\u0275cmp=m.Xpm({type:ct,selectors:[["nz-form-control"]],contentQueries:function(Ie,Pt,pt){if(1&Ie&&m.Suo(pt,E.a5,5),2&Ie){let Et;m.iGM(Et=m.CRH())&&(Pt.defaultValidateControl=Et.first)}},inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],features:[m.TTD],ngContentSelectors:Ue,decls:7,vars:3,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-children-icon"],["nz-icon","",3,"nzType",4,"ngIf"],["class","ant-form-item-explain ant-form-item-explain-connected",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-form-item-extra"],[4,"nzStringTemplateOutlet"]],template:function(Ie,Pt){1&Ie&&(m.F$t(),m.TgZ(0,"div",0),m.TgZ(1,"div",1),m.Hsn(2),m.qZA(),m.TgZ(3,"span",2),m.YNc(4,He,1,1,"i",3),m.qZA(),m.qZA(),m.YNc(5,J,3,8,"div",4),m.YNc(6,se,2,1,"div",5)),2&Ie&&(m.xp6(4),m.Q6J("ngIf",Pt.nzHasFeedback&&Pt.iconType),m.xp6(1),m.Q6J("ngIf",Pt.innerTip),m.xp6(1),m.Q6J("ngIf",Pt.nzExtra))},directives:[K.O5,D.Ls,K.mk,A.f],encapsulation:2,data:{animation:[ce.c8]},changeDetection:0}),ct})();function kt(ct){const Lt="string"==typeof ct?{type:ct}:ct;return Object.assign(Object.assign({},rt),Lt)}let Ct=(()=>{class ct{constructor(Ie,Pt,pt,Et){this.cdr=pt,this.nzFormDirective=Et,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.destroy$=new S.xQ,Pt.addClass(Ie.nativeElement,"ant-form-item-label"),this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,M.h)(()=>"default"===this.noColon),(0,z.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,M.h)(()=>"default"===this._tooltipIcon),(0,z.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}set nzNoColon(Ie){this.noColon=(0,ve.sw)(Ie)}get nzNoColon(){var Ie;return"default"!==this.noColon?this.noColon:null===(Ie=this.nzFormDirective)||void 0===Ie?void 0:Ie.nzNoColon}set nzTooltipIcon(Ie){this._tooltipIcon=kt(Ie)}get tooltipIcon(){var Ie;return"default"!==this._tooltipIcon?this._tooltipIcon:kt((null===(Ie=this.nzFormDirective)||void 0===Ie?void 0:Ie.nzTooltipIcon)||rt)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ct.\u0275fac=function(Ie){return new(Ie||ct)(m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(m.sBO),m.Y36(wt,12))},ct.\u0275cmp=m.Xpm({type:ct,selectors:[["nz-form-label"]],inputs:{nzFor:"nzFor",nzRequired:"nzRequired",nzNoColon:"nzNoColon",nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzFormLabel"],ngContentSelectors:Ue,decls:3,vars:6,consts:[["class","ant-form-item-tooltip","nz-tooltip","",3,"nzTooltipTitle",4,"ngIf"],["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(Ie,Pt){1&Ie&&(m.F$t(),m.TgZ(0,"label"),m.Hsn(1),m.YNc(2,ue,2,2,"span",0),m.qZA()),2&Ie&&(m.ekj("ant-form-item-no-colon",Pt.nzNoColon)("ant-form-item-required",Pt.nzRequired),m.uIk("for",Pt.nzFor),m.xp6(2),m.Q6J("ngIf",Pt.nzTooltipTitle))},directives:[K.O5,C.SY,A.f,D.Ls],encapsulation:2,changeDetection:0}),(0,Re.gn)([(0,ve.yF)()],ct.prototype,"nzRequired",void 0),ct})(),lt=(()=>{class ct{}return ct.\u0275fac=function(Ie){return new(Ie||ct)},ct.\u0275mod=m.oAB({type:ct}),ct.\u0275inj=m.cJS({imports:[[r.vT,K.ez,b.Jb,D.PV,C.cg,o.xu,l.ud,A.T],b.Jb]}),ct})()},1894:(Ft,Pe,c)=>{c.d(Pe,{t3:()=>w,Jb:()=>z,SK:()=>S});var r=c(5e3),o=c(839),l=c(8929),K=c(7625),m=c(4090),A=c(5113),b=c(925),D=c(226),C=c(1721),E=c(9808);let S=(()=>{class M{constructor(N,ie,ce,ve,Le,Re,ae){this.elementRef=N,this.renderer=ie,this.mediaMatcher=ce,this.ngZone=ve,this.platform=Le,this.breakpointService=Re,this.directionality=ae,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new o.t(1),this.dir="ltr",this.destroy$=new l.xQ}getGutter(){const N=[null,null],ie=this.nzGutter||0;return(Array.isArray(ie)?ie:[ie,null]).forEach((ve,Le)=>{"object"==typeof ve&&null!==ve?(N[Le]=null,Object.keys(m.WV).map(Re=>{const ae=Re;this.mediaMatcher.matchMedia(m.WV[ae]).matches&&ve[ae]&&(N[Le]=ve[ae])})):N[Le]=Number(ve)||null}),N}setGutterStyle(){const[N,ie]=this.getGutter();this.actualGutter$.next([N,ie]);const ce=(ve,Le)=>{null!==Le&&this.renderer.setStyle(this.elementRef.nativeElement,ve,`-${Le/2}px`)};ce("margin-left",N),ce("margin-right",N),ce("margin-top",ie),ce("margin-bottom",ie)}ngOnInit(){var N;this.dir=this.directionality.value,null===(N=this.directionality.change)||void 0===N||N.pipe((0,K.R)(this.destroy$)).subscribe(ie=>{this.dir=ie}),this.setGutterStyle()}ngOnChanges(N){N.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(m.WV).pipe((0,K.R)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return M.\u0275fac=function(N){return new(N||M)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(A.vx),r.Y36(r.R0b),r.Y36(b.t4),r.Y36(m.r3),r.Y36(D.Is,8))},M.\u0275dir=r.lG2({type:M,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:18,hostBindings:function(N,ie){2&N&&r.ekj("ant-row-top","top"===ie.nzAlign)("ant-row-middle","middle"===ie.nzAlign)("ant-row-bottom","bottom"===ie.nzAlign)("ant-row-start","start"===ie.nzJustify)("ant-row-end","end"===ie.nzJustify)("ant-row-center","center"===ie.nzJustify)("ant-row-space-around","space-around"===ie.nzJustify)("ant-row-space-between","space-between"===ie.nzJustify)("ant-row-rtl","rtl"===ie.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[r.TTD]}),M})(),w=(()=>{class M{constructor(N,ie,ce,ve){this.elementRef=N,this.nzRowDirective=ie,this.renderer=ce,this.directionality=ve,this.classMap={},this.destroy$=new l.xQ,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}setHostClassMap(){const N=Object.assign({"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,C.DX)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,C.DX)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,C.DX)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,C.DX)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,C.DX)(this.nzPush),"ant-col-rtl":"rtl"===this.dir},this.generateClass());for(const ie in this.classMap)this.classMap.hasOwnProperty(ie)&&this.renderer.removeClass(this.elementRef.nativeElement,ie);this.classMap=Object.assign({},N);for(const ie in this.classMap)this.classMap.hasOwnProperty(ie)&&this.classMap[ie]&&this.renderer.addClass(this.elementRef.nativeElement,ie)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(N){return"number"==typeof N?`${N} ${N} auto`:"string"==typeof N&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(N)?`0 0 ${N}`:N}generateClass(){const ie={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(ce=>{const ve=ce.replace("nz","").toLowerCase();if((0,C.DX)(this[ce]))if("number"==typeof this[ce]||"string"==typeof this[ce])ie[`ant-col-${ve}-${this[ce]}`]=!0;else{const Le=this[ce];["span","pull","push","offset","order"].forEach(ae=>{ie[`ant-col-${ve}${"span"===ae?"-":`-${ae}-`}${Le[ae]}`]=Le&&(0,C.DX)(Le[ae])})}}),ie}ngOnInit(){this.dir=this.directionality.value,this.directionality.change.pipe((0,K.R)(this.destroy$)).subscribe(N=>{this.dir=N,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(N){this.setHostClassMap();const{nzFlex:ie}=N;ie&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,K.R)(this.destroy$)).subscribe(([N,ie])=>{const ce=(ve,Le)=>{null!==Le&&this.renderer.setStyle(this.elementRef.nativeElement,ve,Le/2+"px")};ce("padding-left",N),ce("padding-right",N),ce("padding-top",ie),ce("padding-bottom",ie)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return M.\u0275fac=function(N){return new(N||M)(r.Y36(r.SBq),r.Y36(S,9),r.Y36(r.Qsj),r.Y36(D.Is,8))},M.\u0275dir=r.lG2({type:M,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(N,ie){2&N&&r.Udp("flex",ie.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[r.TTD]}),M})(),z=(()=>{class M{}return M.\u0275fac=function(N){return new(N||M)},M.\u0275mod=r.oAB({type:M}),M.\u0275inj=r.cJS({imports:[[D.vT,E.ez,A.xu,b.ud]]}),M})()},4170:(Ft,Pe,c)=>{c.d(Pe,{u7:()=>A,YI:()=>E,wi:()=>D,iF:()=>K});var r=c(5e3),o=c(591),l=c(948),K={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},m={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"},DatePicker:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},TimePicker:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},Calendar:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"}};const A=new r.OlP("nz-i18n"),b=new r.OlP("nz-date-locale");let D=(()=>{class yn{constructor(un,Dt){this._change=new o.X(this._locale),this.setLocale(un||m),this.setDateLocale(Dt||null)}get localeChange(){return this._change.asObservable()}translate(un,Dt){let it=this._getObjectPath(this._locale,un);return"string"==typeof it?(Dt&&Object.keys(Dt).forEach(Ge=>it=it.replace(new RegExp(`%${Ge}%`,"g"),Dt[Ge])),it):un}setLocale(un){this._locale&&this._locale.locale===un.locale||(this._locale=un,this._change.next(un))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(un){this.dateLocale=un}getDateLocale(){return this.dateLocale}getLocaleData(un,Dt){const it=un?this._getObjectPath(this._locale,un):this._locale;return!it&&!Dt&&(0,l.ZK)(`Missing translations for "${un}" in language "${this._locale.locale}".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),it||Dt||this._getObjectPath(K,un)||{}}_getObjectPath(un,Dt){let it=un;const Ge=Dt.split("."),St=Ge.length;let xe=0;for(;it&&xe{class yn{}return yn.\u0275fac=function(un){return new(un||yn)},yn.\u0275mod=r.oAB({type:yn}),yn.\u0275inj=r.cJS({}),yn})();new r.OlP("date-config")},647:(Ft,Pe,c)=>{c.d(Pe,{Ls:()=>Jn,PV:()=>qn,H5:()=>Nn});var r=c(925),o=c(5e3),l=c(655),K=c(8929),m=c(5254),A=c(7625),b=c(9808);function D(Ce,ke){(function E(Ce){return"string"==typeof Ce&&Ce.includes(".")&&1===parseFloat(Ce)})(Ce)&&(Ce="100%");var le=function S(Ce){return"string"==typeof Ce&&Ce.includes("%")}(Ce);return Ce=360===ke?Ce:Math.min(ke,Math.max(0,parseFloat(Ce))),le&&(Ce=parseInt(String(Ce*ke),10)/100),Math.abs(Ce-ke)<1e-6?1:Ce=360===ke?(Ce<0?Ce%ke+ke:Ce%ke)/parseFloat(String(ke)):Ce%ke/parseFloat(String(ke))}function C(Ce){return Math.min(1,Math.max(0,Ce))}function w(Ce){return Ce=parseFloat(Ce),(isNaN(Ce)||Ce<0||Ce>1)&&(Ce=1),Ce}function z(Ce){return Ce<=1?100*Number(Ce)+"%":Ce}function M(Ce){return 1===Ce.length?"0"+Ce:String(Ce)}function N(Ce,ke,le){Ce=D(Ce,255),ke=D(ke,255),le=D(le,255);var tt=Math.max(Ce,ke,le),Ht=Math.min(Ce,ke,le),Xt=0,dn=0,Mn=(tt+Ht)/2;if(tt===Ht)dn=0,Xt=0;else{var jn=tt-Ht;switch(dn=Mn>.5?jn/(2-tt-Ht):jn/(tt+Ht),tt){case Ce:Xt=(ke-le)/jn+(ke1&&(le-=1),le<1/6?Ce+6*le*(ke-Ce):le<.5?ke:le<2/3?Ce+(ke-Ce)*(2/3-le)*6:Ce}function ve(Ce,ke,le){Ce=D(Ce,255),ke=D(ke,255),le=D(le,255);var tt=Math.max(Ce,ke,le),Ht=Math.min(Ce,ke,le),Xt=0,dn=tt,Mn=tt-Ht,jn=0===tt?0:Mn/tt;if(tt===Ht)Xt=0;else{switch(tt){case Ce:Xt=(ke-le)/Mn+(ke>16,g:(65280&Ce)>>8,b:255&Ce}}(ke)),this.originalInput=ke;var Ht=function Me(Ce){var ke={r:0,g:0,b:0},le=1,tt=null,Ht=null,Xt=null,dn=!1,Mn=!1;return"string"==typeof Ce&&(Ce=function wt(Ce){if(0===(Ce=Ce.trim().toLowerCase()).length)return!1;var ke=!1;if(J[Ce])Ce=J[Ce],ke=!0;else if("transparent"===Ce)return{r:0,g:0,b:0,a:0,format:"name"};var le=rt.rgb.exec(Ce);return le?{r:le[1],g:le[2],b:le[3]}:(le=rt.rgba.exec(Ce))?{r:le[1],g:le[2],b:le[3],a:le[4]}:(le=rt.hsl.exec(Ce))?{h:le[1],s:le[2],l:le[3]}:(le=rt.hsla.exec(Ce))?{h:le[1],s:le[2],l:le[3],a:le[4]}:(le=rt.hsv.exec(Ce))?{h:le[1],s:le[2],v:le[3]}:(le=rt.hsva.exec(Ce))?{h:le[1],s:le[2],v:le[3],a:le[4]}:(le=rt.hex8.exec(Ce))?{r:fe(le[1]),g:fe(le[2]),b:fe(le[3]),a:me(le[4]),format:ke?"name":"hex8"}:(le=rt.hex6.exec(Ce))?{r:fe(le[1]),g:fe(le[2]),b:fe(le[3]),format:ke?"name":"hex"}:(le=rt.hex4.exec(Ce))?{r:fe(le[1]+le[1]),g:fe(le[2]+le[2]),b:fe(le[3]+le[3]),a:me(le[4]+le[4]),format:ke?"name":"hex8"}:!!(le=rt.hex3.exec(Ce))&&{r:fe(le[1]+le[1]),g:fe(le[2]+le[2]),b:fe(le[3]+le[3]),format:ke?"name":"hex"}}(Ce)),"object"==typeof Ce&&(Ae(Ce.r)&&Ae(Ce.g)&&Ae(Ce.b)?(ke=function k(Ce,ke,le){return{r:255*D(Ce,255),g:255*D(ke,255),b:255*D(le,255)}}(Ce.r,Ce.g,Ce.b),dn=!0,Mn="%"===String(Ce.r).substr(-1)?"prgb":"rgb"):Ae(Ce.h)&&Ae(Ce.s)&&Ae(Ce.v)?(tt=z(Ce.s),Ht=z(Ce.v),ke=function Le(Ce,ke,le){Ce=6*D(Ce,360),ke=D(ke,100),le=D(le,100);var tt=Math.floor(Ce),Ht=Ce-tt,Xt=le*(1-ke),dn=le*(1-Ht*ke),Mn=le*(1-(1-Ht)*ke),jn=tt%6;return{r:255*[le,dn,Xt,Xt,Mn,le][jn],g:255*[Mn,le,le,dn,Xt,Xt][jn],b:255*[Xt,Xt,Mn,le,le,dn][jn]}}(Ce.h,tt,Ht),dn=!0,Mn="hsv"):Ae(Ce.h)&&Ae(Ce.s)&&Ae(Ce.l)&&(tt=z(Ce.s),Xt=z(Ce.l),ke=function ce(Ce,ke,le){var tt,Ht,Xt;if(Ce=D(Ce,360),ke=D(ke,100),le=D(le,100),0===ke)Ht=le,Xt=le,tt=le;else{var dn=le<.5?le*(1+ke):le+ke-le*ke,Mn=2*le-dn;tt=ie(Mn,dn,Ce+1/3),Ht=ie(Mn,dn,Ce),Xt=ie(Mn,dn,Ce-1/3)}return{r:255*tt,g:255*Ht,b:255*Xt}}(Ce.h,tt,Xt),dn=!0,Mn="hsl"),Object.prototype.hasOwnProperty.call(Ce,"a")&&(le=Ce.a)),le=w(le),{ok:dn,format:Ce.format||Mn,r:Math.min(255,Math.max(ke.r,0)),g:Math.min(255,Math.max(ke.g,0)),b:Math.min(255,Math.max(ke.b,0)),a:le}}(ke);this.originalInput=ke,this.r=Ht.r,this.g=Ht.g,this.b=Ht.b,this.a=Ht.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(tt=le.format)&&void 0!==tt?tt:Ht.format,this.gradientType=le.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=Ht.ok}return Ce.prototype.isDark=function(){return this.getBrightness()<128},Ce.prototype.isLight=function(){return!this.isDark()},Ce.prototype.getBrightness=function(){var ke=this.toRgb();return(299*ke.r+587*ke.g+114*ke.b)/1e3},Ce.prototype.getLuminance=function(){var ke=this.toRgb(),Xt=ke.r/255,dn=ke.g/255,Mn=ke.b/255;return.2126*(Xt<=.03928?Xt/12.92:Math.pow((Xt+.055)/1.055,2.4))+.7152*(dn<=.03928?dn/12.92:Math.pow((dn+.055)/1.055,2.4))+.0722*(Mn<=.03928?Mn/12.92:Math.pow((Mn+.055)/1.055,2.4))},Ce.prototype.getAlpha=function(){return this.a},Ce.prototype.setAlpha=function(ke){return this.a=w(ke),this.roundA=Math.round(100*this.a)/100,this},Ce.prototype.toHsv=function(){var ke=ve(this.r,this.g,this.b);return{h:360*ke.h,s:ke.s,v:ke.v,a:this.a}},Ce.prototype.toHsvString=function(){var ke=ve(this.r,this.g,this.b),le=Math.round(360*ke.h),tt=Math.round(100*ke.s),Ht=Math.round(100*ke.v);return 1===this.a?"hsv("+le+", "+tt+"%, "+Ht+"%)":"hsva("+le+", "+tt+"%, "+Ht+"%, "+this.roundA+")"},Ce.prototype.toHsl=function(){var ke=N(this.r,this.g,this.b);return{h:360*ke.h,s:ke.s,l:ke.l,a:this.a}},Ce.prototype.toHslString=function(){var ke=N(this.r,this.g,this.b),le=Math.round(360*ke.h),tt=Math.round(100*ke.s),Ht=Math.round(100*ke.l);return 1===this.a?"hsl("+le+", "+tt+"%, "+Ht+"%)":"hsla("+le+", "+tt+"%, "+Ht+"%, "+this.roundA+")"},Ce.prototype.toHex=function(ke){return void 0===ke&&(ke=!1),Re(this.r,this.g,this.b,ke)},Ce.prototype.toHexString=function(ke){return void 0===ke&&(ke=!1),"#"+this.toHex(ke)},Ce.prototype.toHex8=function(ke){return void 0===ke&&(ke=!1),function ae(Ce,ke,le,tt,Ht){var Xt=[M(Math.round(Ce).toString(16)),M(Math.round(ke).toString(16)),M(Math.round(le).toString(16)),M(He(tt))];return Ht&&Xt[0].startsWith(Xt[0].charAt(1))&&Xt[1].startsWith(Xt[1].charAt(1))&&Xt[2].startsWith(Xt[2].charAt(1))&&Xt[3].startsWith(Xt[3].charAt(1))?Xt[0].charAt(0)+Xt[1].charAt(0)+Xt[2].charAt(0)+Xt[3].charAt(0):Xt.join("")}(this.r,this.g,this.b,this.a,ke)},Ce.prototype.toHex8String=function(ke){return void 0===ke&&(ke=!1),"#"+this.toHex8(ke)},Ce.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},Ce.prototype.toRgbString=function(){var ke=Math.round(this.r),le=Math.round(this.g),tt=Math.round(this.b);return 1===this.a?"rgb("+ke+", "+le+", "+tt+")":"rgba("+ke+", "+le+", "+tt+", "+this.roundA+")"},Ce.prototype.toPercentageRgb=function(){var ke=function(le){return Math.round(100*D(le,255))+"%"};return{r:ke(this.r),g:ke(this.g),b:ke(this.b),a:this.a}},Ce.prototype.toPercentageRgbString=function(){var ke=function(le){return Math.round(100*D(le,255))};return 1===this.a?"rgb("+ke(this.r)+"%, "+ke(this.g)+"%, "+ke(this.b)+"%)":"rgba("+ke(this.r)+"%, "+ke(this.g)+"%, "+ke(this.b)+"%, "+this.roundA+")"},Ce.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var ke="#"+Re(this.r,this.g,this.b,!1),le=0,tt=Object.entries(J);le=0&&(ke.startsWith("hex")||"name"===ke)?"name"===ke&&0===this.a?this.toName():this.toRgbString():("rgb"===ke&&(tt=this.toRgbString()),"prgb"===ke&&(tt=this.toPercentageRgbString()),("hex"===ke||"hex6"===ke)&&(tt=this.toHexString()),"hex3"===ke&&(tt=this.toHexString(!0)),"hex4"===ke&&(tt=this.toHex8String(!0)),"hex8"===ke&&(tt=this.toHex8String()),"name"===ke&&(tt=this.toName()),"hsl"===ke&&(tt=this.toHslString()),"hsv"===ke&&(tt=this.toHsvString()),tt||this.toHexString())},Ce.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},Ce.prototype.clone=function(){return new Ce(this.toString())},Ce.prototype.lighten=function(ke){void 0===ke&&(ke=10);var le=this.toHsl();return le.l+=ke/100,le.l=C(le.l),new Ce(le)},Ce.prototype.brighten=function(ke){void 0===ke&&(ke=10);var le=this.toRgb();return le.r=Math.max(0,Math.min(255,le.r-Math.round(-ke/100*255))),le.g=Math.max(0,Math.min(255,le.g-Math.round(-ke/100*255))),le.b=Math.max(0,Math.min(255,le.b-Math.round(-ke/100*255))),new Ce(le)},Ce.prototype.darken=function(ke){void 0===ke&&(ke=10);var le=this.toHsl();return le.l-=ke/100,le.l=C(le.l),new Ce(le)},Ce.prototype.tint=function(ke){return void 0===ke&&(ke=10),this.mix("white",ke)},Ce.prototype.shade=function(ke){return void 0===ke&&(ke=10),this.mix("black",ke)},Ce.prototype.desaturate=function(ke){void 0===ke&&(ke=10);var le=this.toHsl();return le.s-=ke/100,le.s=C(le.s),new Ce(le)},Ce.prototype.saturate=function(ke){void 0===ke&&(ke=10);var le=this.toHsl();return le.s+=ke/100,le.s=C(le.s),new Ce(le)},Ce.prototype.greyscale=function(){return this.desaturate(100)},Ce.prototype.spin=function(ke){var le=this.toHsl(),tt=(le.h+ke)%360;return le.h=tt<0?360+tt:tt,new Ce(le)},Ce.prototype.mix=function(ke,le){void 0===le&&(le=50);var tt=this.toRgb(),Ht=new Ce(ke).toRgb(),Xt=le/100;return new Ce({r:(Ht.r-tt.r)*Xt+tt.r,g:(Ht.g-tt.g)*Xt+tt.g,b:(Ht.b-tt.b)*Xt+tt.b,a:(Ht.a-tt.a)*Xt+tt.a})},Ce.prototype.analogous=function(ke,le){void 0===ke&&(ke=6),void 0===le&&(le=30);var tt=this.toHsl(),Ht=360/le,Xt=[this];for(tt.h=(tt.h-(Ht*ke>>1)+720)%360;--ke;)tt.h=(tt.h+Ht)%360,Xt.push(new Ce(tt));return Xt},Ce.prototype.complement=function(){var ke=this.toHsl();return ke.h=(ke.h+180)%360,new Ce(ke)},Ce.prototype.monochromatic=function(ke){void 0===ke&&(ke=6);for(var le=this.toHsv(),tt=le.h,Ht=le.s,Xt=le.v,dn=[],Mn=1/ke;ke--;)dn.push(new Ce({h:tt,s:Ht,v:Xt})),Xt=(Xt+Mn)%1;return dn},Ce.prototype.splitcomplement=function(){var ke=this.toHsl(),le=ke.h;return[this,new Ce({h:(le+72)%360,s:ke.s,l:ke.l}),new Ce({h:(le+216)%360,s:ke.s,l:ke.l})]},Ce.prototype.onBackground=function(ke){var le=this.toRgb(),tt=new Ce(ke).toRgb();return new Ce({r:tt.r+(le.r-tt.r)*le.a,g:tt.g+(le.g-tt.g)*le.a,b:tt.b+(le.b-tt.b)*le.a})},Ce.prototype.triad=function(){return this.polyad(3)},Ce.prototype.tetrad=function(){return this.polyad(4)},Ce.prototype.polyad=function(ke){for(var le=this.toHsl(),tt=le.h,Ht=[this],Xt=360/ke,dn=1;dn=60&&Math.round(Ce.h)<=240?le?Math.round(Ce.h)-2*ke:Math.round(Ce.h)+2*ke:le?Math.round(Ce.h)+2*ke:Math.round(Ce.h)-2*ke)<0?tt+=360:tt>=360&&(tt-=360),tt}function Et(Ce,ke,le){return 0===Ce.h&&0===Ce.s?Ce.s:((tt=le?Ce.s-.16*ke:4===ke?Ce.s+.16:Ce.s+.05*ke)>1&&(tt=1),le&&5===ke&&tt>.1&&(tt=.1),tt<.06&&(tt=.06),Number(tt.toFixed(2)));var tt}function ot(Ce,ke,le){var tt;return(tt=le?Ce.v+.05*ke:Ce.v-.15*ke)>1&&(tt=1),Number(tt.toFixed(2))}function en(Ce){for(var ke=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},le=[],tt=new mt(Ce),Ht=5;Ht>0;Ht-=1){var Xt=tt.toHsv(),dn=new mt({h:pt(Xt,Ht,!0),s:Et(Xt,Ht,!0),v:ot(Xt,Ht,!0)}).toHexString();le.push(dn)}le.push(tt.toHexString());for(var Mn=1;Mn<=4;Mn+=1){var jn=tt.toHsv(),Ci=new mt({h:pt(jn,Mn),s:Et(jn,Mn),v:ot(jn,Mn)}).toHexString();le.push(Ci)}return"dark"===ke.theme?Pt.map(function(ii){var si=ii.index,pi=ii.opacity;return new mt(ke.backgroundColor||"#141414").mix(le[si],100*pi).toHexString()}):le}var Ne={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ve={},ye={};Object.keys(Ne).forEach(function(Ce){Ve[Ce]=en(Ne[Ce]),Ve[Ce].primary=Ve[Ce][5],ye[Ce]=en(Ne[Ce],{theme:"dark",backgroundColor:"#141414"}),ye[Ce].primary=ye[Ce][5]});var Bt=c(520),vn=c(1086),cn=c(2916),an=c(4850),nn=c(2868),Gn=c(537),xn=c(7221),yn=c(2474),_n=c(2198),un=c(2986),Dt=c(2313);const it="[@ant-design/icons-angular]:";function St(Ce){(0,o.X6Q)()&&console.warn(`${it} ${Ce}.`)}function xe(Ce){return en(Ce)[0]}function xt(Ce,ke){switch(ke){case"fill":return`${Ce}-fill`;case"outline":return`${Ce}-o`;case"twotone":return`${Ce}-twotone`;case void 0:return Ce;default:throw new Error(`${it}Theme "${ke}" is not a recognized theme!`)}}function I(Ce){return"object"==typeof Ce&&"string"==typeof Ce.name&&("string"==typeof Ce.theme||void 0===Ce.theme)&&"string"==typeof Ce.icon}function ft(Ce){const ke=Ce.split(":");switch(ke.length){case 1:return[Ce,""];case 2:return[ke[1],ke[0]];default:throw new Error(`${it}The icon type ${Ce} is not valid!`)}}function y(){return new Error(`${it} tag not found.`)}let et=(()=>{class Ce{constructor(le,tt,Ht,Xt){this._rendererFactory=le,this._handler=tt,this._document=Ht,this.sanitizer=Xt,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new K.xQ,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new Bt.eN(this._handler))}set twoToneColor({primaryColor:le,secondaryColor:tt}){this._twoToneColorPalette.primaryColor=le,this._twoToneColorPalette.secondaryColor=tt||xe(le)}get twoToneColor(){return Object.assign({},this._twoToneColorPalette)}useJsonpLoading(){this._enableJsonpLoading?St("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=le=>{this._jsonpIconLoad$.next(le)})}changeAssetsSource(le){this._assetsUrlRoot=le.endsWith("/")?le:le+"/"}addIcon(...le){le.forEach(tt=>{this._svgDefinitions.set(xt(tt.name,tt.theme),tt)})}addIconLiteral(le,tt){const[Ht,Xt]=ft(le);if(!Xt)throw function ee(){return new Error(`${it}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:le,icon:tt})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(le,tt){const Ht=I(le)?le:this._svgDefinitions.get(le)||null;return(Ht?(0,vn.of)(Ht):this._loadIconDynamically(le)).pipe((0,an.U)(dn=>{if(!dn)throw function T(Ce){return new Error(`${it}the icon ${Ce} does not exist or is not registered.`)}(le);return this._loadSVGFromCacheOrCreateNew(dn,tt)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(le){if(!this._http&&!this._enableJsonpLoading)return(0,vn.of)(function p(){return function Ge(Ce){console.error(`${it} ${Ce}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let tt=this._inProgressFetches.get(le);if(!tt){const[Ht,Xt]=ft(le),dn=Xt?{name:le,icon:""}:function Z(Ce){const ke=Ce.split("-"),le=function de(Ce){return"o"===Ce?"outline":Ce}(ke.splice(ke.length-1,1)[0]);return{name:ke.join("-"),theme:le,icon:""}}(Ht),jn=(Xt?`${this._assetsUrlRoot}assets/${Xt}/${Ht}`:`${this._assetsUrlRoot}assets/${dn.theme}/${dn.name}`)+(this._enableJsonpLoading?".js":".svg"),Ci=this.sanitizer.sanitize(o.q3G.URL,jn);if(!Ci)throw function h(Ce){return new Error(`${it}The url "${Ce}" is unsafe.`)}(jn);tt=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(dn,Ci):this._http.get(Ci,{responseType:"text"}).pipe((0,an.U)(si=>Object.assign(Object.assign({},dn),{icon:si})))).pipe((0,nn.b)(si=>this.addIcon(si)),(0,Gn.x)(()=>this._inProgressFetches.delete(le)),(0,xn.K)(()=>(0,vn.of)(null)),(0,yn.B)()),this._inProgressFetches.set(le,tt)}return tt}_loadIconDynamicallyWithJsonp(le,tt){return new cn.y(Ht=>{const Xt=this._document.createElement("script"),dn=setTimeout(()=>{Mn(),Ht.error(function R(){return new Error(`${it}Importing timeout error.`)}())},6e3);function Mn(){Xt.parentNode.removeChild(Xt),clearTimeout(dn)}Xt.src=tt,this._document.body.appendChild(Xt),this._jsonpIconLoad$.pipe((0,_n.h)(jn=>jn.name===le.name&&jn.theme===le.theme),(0,un.q)(1)).subscribe(jn=>{Ht.next(jn),Mn()})})}_loadSVGFromCacheOrCreateNew(le,tt){let Ht;const Xt=tt||this._twoToneColorPalette.primaryColor,dn=xe(Xt)||this._twoToneColorPalette.secondaryColor,Mn="twotone"===le.theme?function ge(Ce,ke,le,tt){return`${xt(Ce,ke)}-${le}-${tt}`}(le.name,le.theme,Xt,dn):void 0===le.theme?le.name:xt(le.name,le.theme),jn=this._svgRenderedDefinitions.get(Mn);return jn?Ht=jn.icon:(Ht=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function Jt(Ce){return""!==ft(Ce)[1]}(le.name)?le.icon:function De(Ce){return Ce.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(le.icon)),"twotone"===le.theme,Xt,dn)),this._svgRenderedDefinitions.set(Mn,Object.assign(Object.assign({},le),{icon:Ht}))),function oe(Ce){return Ce.cloneNode(!0)}(Ht)}_createSVGElementFromString(le){const tt=this._document.createElement("div");tt.innerHTML=le;const Ht=tt.querySelector("svg");if(!Ht)throw y;return Ht}_setSVGAttribute(le){return this._renderer.setAttribute(le,"width","1em"),this._renderer.setAttribute(le,"height","1em"),le}_colorizeSVGIcon(le,tt,Ht,Xt){if(tt){const dn=le.childNodes,Mn=dn.length;for(let jn=0;jn{class Ce{constructor(le,tt,Ht){this._iconService=le,this._elementRef=tt,this._renderer=Ht}ngOnChanges(le){(le.type||le.theme||le.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(le=>{if(this.type){const tt=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(Ht=>{!function gt(Ce,ke){return Ce.type===ke.type&&Ce.theme===ke.theme&&Ce.twoToneColor===ke.twoToneColor}(tt,this._getSelfRenderMeta())?le(null):(this._setSVGElement(Ht),le(Ht))})}else this._clearSVGElement(),le(null)})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(le,tt){if(I(le))return le;{const[Ht,Xt]=ft(le);return Xt?le:function ut(Ce){return Ce.endsWith("-fill")||Ce.endsWith("-o")||Ce.endsWith("-twotone")}(Ht)?(tt&&St(`'type' ${Ht} already gets a theme inside so 'theme' ${tt} would be ignored`),Ht):xt(Ht,tt||this._iconService.defaultTheme)}}_setSVGElement(le){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,le)}_clearSVGElement(){var le;const tt=this._elementRef.nativeElement,Ht=tt.childNodes;for(let dn=Ht.length-1;dn>=0;dn--){const Mn=Ht[dn];"svg"===(null===(le=Mn.tagName)||void 0===le?void 0:le.toLowerCase())&&this._renderer.removeChild(tt,Mn)}}}return Ce.\u0275fac=function(le){return new(le||Ce)(o.Y36(et),o.Y36(o.SBq),o.Y36(o.Qsj))},Ce.\u0275dir=o.lG2({type:Ce,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[o.TTD]}),Ce})();var qt=c(1721),on=c(948),Vt=c(9193),bn=c(9439);const mn=[Vt.V65,Vt.ud1,Vt.bBn,Vt.BOg,Vt.Hkd,Vt.XuQ,Vt.Rfq,Vt.yQU,Vt.U2Q,Vt.UKj,Vt.OYp,Vt.BXH,Vt.eLU,Vt.x0x,Vt.VWu,Vt.rMt,Vt.vEg,Vt.RIp,Vt.RU0,Vt.M8e,Vt.ssy,Vt.Z5F,Vt.iUK,Vt.LJh,Vt.NFG,Vt.UTl,Vt.nrZ,Vt.gvV,Vt.d2H,Vt.eFY,Vt.sZJ,Vt.np6,Vt.w1L,Vt.UY$,Vt.v6v,Vt.rHg,Vt.v6v,Vt.s_U,Vt.TSL,Vt.FsU,Vt.cN2,Vt.uIz,Vt.d_$],fn=new o.OlP("nz_icons"),rn=(new o.OlP("nz_icon_default_twotone_color"),"#1890ff");let Nn=(()=>{class Ce extends et{constructor(le,tt,Ht,Xt,dn,Mn){super(le,Xt,dn,tt),this.nzConfigService=Ht,this.configUpdated$=new K.xQ,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.addIcon(...mn,...Mn||[]),this.configDefaultTwotoneColor(),this.configDefaultTheme()}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(le){le.getAttribute("viewBox")||this._renderer.setAttribute(le,"viewBox","0 0 1024 1024"),(!le.getAttribute("width")||!le.getAttribute("height"))&&(this._renderer.setAttribute(le,"width","1em"),this._renderer.setAttribute(le,"height","1em")),le.getAttribute("fill")||this._renderer.setAttribute(le,"fill","currentColor")}fetchFromIconfont(le){const{scriptUrl:tt}=le;if(this._document&&!this.iconfontCache.has(tt)){const Ht=this._renderer.createElement("script");this._renderer.setAttribute(Ht,"src",tt),this._renderer.setAttribute(Ht,"data-namespace",tt.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,Ht),this.iconfontCache.add(tt)}}createIconfontIcon(le){return this._createSVGElementFromString(``)}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const le=this.getConfig();this.defaultTheme=le.nzTheme||"outline"}configDefaultTwotoneColor(){const tt=this.getConfig().nzTwotoneColor||rn;let Ht=rn;tt&&(tt.startsWith("#")?Ht=tt:(0,on.ZK)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:Ht}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return Ce.\u0275fac=function(le){return new(le||Ce)(o.LFG(o.FYo),o.LFG(Dt.H7),o.LFG(bn.jY),o.LFG(Bt.jN,8),o.LFG(b.K0,8),o.LFG(fn,8))},Ce.\u0275prov=o.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();const Qn=new o.OlP("nz_icons_patch");let ti=(()=>{class Ce{constructor(le,tt){this.extraIcons=le,this.rootIconService=tt,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(le=>this.rootIconService.addIcon(le)),this.patched=!0)}}return Ce.\u0275fac=function(le){return new(le||Ce)(o.LFG(Qn,2),o.LFG(Nn))},Ce.\u0275prov=o.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Jn=(()=>{class Ce extends Qe{constructor(le,tt,Ht,Xt,dn,Mn){super(Xt,Ht,dn),this.ngZone=le,this.changeDetectorRef=tt,this.iconService=Xt,this.renderer=dn,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new K.xQ,Mn&&Mn.doPatch(),this.el=Ht.nativeElement}set nzSpin(le){this.spin=le}set nzType(le){this.type=le}set nzTheme(le){this.theme=le}set nzTwotoneColor(le){this.twoToneColor=le}set nzIconfont(le){this.iconfont=le}ngOnChanges(le){const{nzType:tt,nzTwotoneColor:Ht,nzSpin:Xt,nzTheme:dn,nzRotate:Mn}=le;tt||Ht||Xt||dn?this.changeIcon2():Mn?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`))}ngOnInit(){this.renderer.setAttribute(this.el,"class",`anticon ${this.el.className}`.trim())}ngAfterContentChecked(){if(!this.type){const le=this.el.children;let tt=le.length;if(!this.type&&le.length)for(;tt--;){const Ht=le[tt];"svg"===Ht.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(Ht)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,m.D)(this._changeIcon()).pipe((0,A.R)(this.destroy$)).subscribe(le=>{this.changeDetectorRef.detectChanges(),le&&(this.setSVGData(le),this.handleSpin(le),this.handleRotate(le))})})}handleSpin(le){this.spin||"loading"===this.type?this.renderer.addClass(le,"anticon-spin"):this.renderer.removeClass(le,"anticon-spin")}handleRotate(le){this.nzRotate?this.renderer.setAttribute(le,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(le,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(le){this.renderer.setAttribute(le,"data-icon",this.type),this.renderer.setAttribute(le,"aria-hidden","true")}}return Ce.\u0275fac=function(le){return new(le||Ce)(o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(o.SBq),o.Y36(Nn),o.Y36(o.Qsj),o.Y36(ti,8))},Ce.\u0275dir=o.lG2({type:Ce,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(le,tt){2&le&&o.ekj("anticon",!0)},inputs:{nzSpin:"nzSpin",nzRotate:"nzRotate",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[o.qOj,o.TTD]}),(0,l.gn)([(0,qt.yF)()],Ce.prototype,"nzSpin",null),Ce})(),qn=(()=>{class Ce{static forRoot(le){return{ngModule:Ce,providers:[{provide:fn,useValue:le}]}}static forChild(le){return{ngModule:Ce,providers:[ti,{provide:Qn,useValue:le}]}}}return Ce.\u0275fac=function(le){return new(le||Ce)},Ce.\u0275mod=o.oAB({type:Ce}),Ce.\u0275inj=o.cJS({imports:[[r.ud]]}),Ce})()},656:(Ft,Pe,c)=>{c.d(Pe,{_:()=>M,Z:()=>k});var r=c(655),o=c(1159),l=c(5e3),K=c(4182),m=c(8929),A=c(3753),b=c(7625),D=c(1721),C=c(5664),E=c(226),S=c(647),w=c(9808);const z=["inputElement"];let M=(()=>{class N{constructor(ce,ve,Le,Re,ae){this.ngZone=ce,this.elementRef=ve,this.cdr=Le,this.focusMonitor=Re,this.directionality=ae,this.destroy$=new m.xQ,this.isFocused=!1,this.disabledUp=!1,this.disabledDown=!1,this.dir="ltr",this.onChange=()=>{},this.onTouched=()=>{},this.nzBlur=new l.vpe,this.nzFocus=new l.vpe,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=Ue=>Ue.trim().replace(/\u3002/g,".").replace(/[^\w\.-]+/g,""),this.nzPrecisionMode="toFixed",this.nzPlaceHolder="",this.nzStep=1,this.nzInputMode="decimal",this.nzId=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzFormatter=Ue=>Ue}onModelChange(ce){this.parsedValue=this.nzParser(ce),this.inputElement.nativeElement.value=`${this.parsedValue}`;const ve=this.getCurrentValidValue(this.parsedValue);this.setValue(ve)}getCurrentValidValue(ce){let ve=ce;return ve=""===ve?"":this.isNotCompleteNumber(ve)?this.value:`${this.getValidValue(ve)}`,this.toNumber(ve)}isNotCompleteNumber(ce){return isNaN(ce)||""===ce||null===ce||!(!ce||ce.toString().indexOf(".")!==ce.toString().length-1)}getValidValue(ce){let ve=parseFloat(ce);return isNaN(ve)?ce:(vethis.nzMax&&(ve=this.nzMax),ve)}toNumber(ce){if(this.isNotCompleteNumber(ce))return ce;const ve=String(ce);if(ve.indexOf(".")>=0&&(0,D.DX)(this.nzPrecision)){if("function"==typeof this.nzPrecisionMode)return this.nzPrecisionMode(ce,this.nzPrecision);if("cut"===this.nzPrecisionMode){const Le=ve.split(".");return Le[1]=Le[1].slice(0,this.nzPrecision),Number(Le.join("."))}return Number(Number(ce).toFixed(this.nzPrecision))}return Number(ce)}getRatio(ce){let ve=1;return ce.metaKey||ce.ctrlKey?ve=.1:ce.shiftKey&&(ve=10),ve}down(ce,ve){this.isFocused||this.focus(),this.step("down",ce,ve)}up(ce,ve){this.isFocused||this.focus(),this.step("up",ce,ve)}getPrecision(ce){const ve=ce.toString();if(ve.indexOf("e-")>=0)return parseInt(ve.slice(ve.indexOf("e-")+2),10);let Le=0;return ve.indexOf(".")>=0&&(Le=ve.length-ve.indexOf(".")-1),Le}getMaxPrecision(ce,ve){if((0,D.DX)(this.nzPrecision))return this.nzPrecision;const Le=this.getPrecision(ve),Re=this.getPrecision(this.nzStep),ae=this.getPrecision(ce);return ce?Math.max(ae,Le+Re):Le+Re}getPrecisionFactor(ce,ve){const Le=this.getMaxPrecision(ce,ve);return Math.pow(10,Le)}upStep(ce,ve){const Le=this.getPrecisionFactor(ce,ve),Re=Math.abs(this.getMaxPrecision(ce,ve));let ae;return ae="number"==typeof ce?((Le*ce+Le*this.nzStep*ve)/Le).toFixed(Re):this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(ae)}downStep(ce,ve){const Le=this.getPrecisionFactor(ce,ve),Re=Math.abs(this.getMaxPrecision(ce,ve));let ae;return ae="number"==typeof ce?((Le*ce-Le*this.nzStep*ve)/Le).toFixed(Re):this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(ae)}step(ce,ve,Le=1){if(this.stop(),ve.preventDefault(),this.nzDisabled)return;const Re=this.getCurrentValidValue(this.parsedValue)||0;let ae=0;"up"===ce?ae=this.upStep(Re,Le):"down"===ce&&(ae=this.downStep(Re,Le));const Ue=ae>this.nzMax||aethis.nzMax?ae=this.nzMax:ae{this[ce](ve,Le)},300))}stop(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)}setValue(ce){if(`${this.value}`!=`${ce}`&&this.onChange(ce),this.value=ce,this.parsedValue=ce,this.disabledUp=this.disabledDown=!1,ce||0===ce){const ve=Number(ce);ve>=this.nzMax&&(this.disabledUp=!0),ve<=this.nzMin&&(this.disabledDown=!0)}}updateDisplayValue(ce){const ve=(0,D.DX)(this.nzFormatter(ce))?this.nzFormatter(ce):"";this.displayValue=ve,this.inputElement.nativeElement.value=`${ve}`}writeValue(ce){this.value=ce,this.setValue(ce),this.updateDisplayValue(ce),this.cdr.markForCheck()}registerOnChange(ce){this.onChange=ce}registerOnTouched(ce){this.onTouched=ce}setDisabledState(ce){this.nzDisabled=ce,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(ce=>{ce?(this.isFocused=!0,this.nzFocus.emit()):(this.isFocused=!1,this.updateDisplayValue(this.value),this.nzBlur.emit(),Promise.resolve().then(()=>this.onTouched()))}),this.dir=this.directionality.value,this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(ce=>{this.dir=ce}),this.ngZone.runOutsideAngular(()=>{(0,A.R)(this.inputElement.nativeElement,"keyup").pipe((0,b.R)(this.destroy$)).subscribe(()=>this.stop()),(0,A.R)(this.inputElement.nativeElement,"keydown").pipe((0,b.R)(this.destroy$)).subscribe(ce=>{const{keyCode:ve}=ce;ve!==o.LH&&ve!==o.JH&&ve!==o.K5||this.ngZone.run(()=>{if(ve===o.LH){const Le=this.getRatio(ce);this.up(ce,Le),this.stop()}else if(ve===o.JH){const Le=this.getRatio(ce);this.down(ce,Le),this.stop()}else this.updateDisplayValue(this.value);this.cdr.markForCheck()})})})}ngOnChanges(ce){if(ce.nzFormatter&&!ce.nzFormatter.isFirstChange()){const ve=this.getCurrentValidValue(this.parsedValue);this.setValue(ve),this.updateDisplayValue(ve)}}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}}return N.\u0275fac=function(ce){return new(ce||N)(l.Y36(l.R0b),l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(C.tE),l.Y36(E.Is,8))},N.\u0275cmp=l.Xpm({type:N,selectors:[["nz-input-number"]],viewQuery:function(ce,ve){if(1&ce&&l.Gf(z,7),2&ce){let Le;l.iGM(Le=l.CRH())&&(ve.inputElement=Le.first)}},hostAttrs:[1,"ant-input-number"],hostVars:10,hostBindings:function(ce,ve){2&ce&&l.ekj("ant-input-number-focused",ve.isFocused)("ant-input-number-lg","large"===ve.nzSize)("ant-input-number-sm","small"===ve.nzSize)("ant-input-number-disabled",ve.nzDisabled)("ant-input-number-rtl","rtl"===ve.dir)},inputs:{nzSize:"nzSize",nzMin:"nzMin",nzMax:"nzMax",nzParser:"nzParser",nzPrecision:"nzPrecision",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStep:"nzStep",nzInputMode:"nzInputMode",nzId:"nzId",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzFormatter:"nzFormatter"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],features:[l._Bn([{provide:K.JU,useExisting:(0,l.Gpc)(()=>N),multi:!0}]),l.TTD],decls:8,vars:13,consts:[[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown","mouseup","mouseleave"],["nz-icon","","nzType","up",1,"ant-input-number-handler-up-inner"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-down",3,"mousedown","mouseup","mouseleave"],["nz-icon","","nzType","down",1,"ant-input-number-handler-down-inner"],[1,"ant-input-number-input-wrap"],["autocomplete","off",1,"ant-input-number-input",3,"disabled","placeholder","ngModel","ngModelChange"],["inputElement",""]],template:function(ce,ve){1&ce&&(l.TgZ(0,"div",0),l.TgZ(1,"span",1),l.NdJ("mousedown",function(Re){return ve.up(Re)})("mouseup",function(){return ve.stop()})("mouseleave",function(){return ve.stop()}),l._UZ(2,"i",2),l.qZA(),l.TgZ(3,"span",3),l.NdJ("mousedown",function(Re){return ve.down(Re)})("mouseup",function(){return ve.stop()})("mouseleave",function(){return ve.stop()}),l._UZ(4,"i",4),l.qZA(),l.qZA(),l.TgZ(5,"div",5),l.TgZ(6,"input",6,7),l.NdJ("ngModelChange",function(Re){return ve.onModelChange(Re)}),l.qZA(),l.qZA()),2&ce&&(l.xp6(1),l.ekj("ant-input-number-handler-up-disabled",ve.disabledUp),l.xp6(2),l.ekj("ant-input-number-handler-down-disabled",ve.disabledDown),l.xp6(3),l.Q6J("disabled",ve.nzDisabled)("placeholder",ve.nzPlaceHolder)("ngModel",ve.displayValue),l.uIk("id",ve.nzId)("autofocus",ve.nzAutoFocus?"autofocus":null)("min",ve.nzMin)("max",ve.nzMax)("step",ve.nzStep)("inputmode",ve.nzInputMode))},directives:[S.Ls,K.Fj,K.JJ,K.On],encapsulation:2,changeDetection:0}),(0,r.gn)([(0,D.yF)()],N.prototype,"nzDisabled",void 0),(0,r.gn)([(0,D.yF)()],N.prototype,"nzAutoFocus",void 0),N})(),k=(()=>{class N{}return N.\u0275fac=function(ce){return new(ce||N)},N.\u0275mod=l.oAB({type:N}),N.\u0275inj=l.cJS({imports:[[E.vT,w.ez,K.u5,S.PV]]}),N})()},1047:(Ft,Pe,c)=>{c.d(Pe,{rh:()=>lt,Zp:()=>kt,gB:()=>Xe,ke:()=>It,o7:()=>Lt});var r=c(655),o=c(5e3),l=c(8929),K=c(6787),m=c(2198),A=c(7625),b=c(1059),D=c(7545),C=c(1709),E=c(4850),S=c(1721),w=c(4182),z=c(226),M=c(5664),k=c(9808),N=c(647),ie=c(969),ce=c(925),ve=c(4090);const Le=["nz-input-group-slot",""];function Re(Ie,Pt){if(1&Ie&&o._UZ(0,"i",2),2&Ie){const pt=o.oxw();o.Q6J("nzType",pt.icon)}}function ae(Ie,Pt){if(1&Ie&&(o.ynx(0),o._uU(1),o.BQk()),2&Ie){const pt=o.oxw();o.xp6(1),o.Oqu(pt.template)}}function Ue(Ie,Pt){if(1&Ie&&o._UZ(0,"span",7),2&Ie){const pt=o.oxw(2);o.Q6J("icon",pt.nzAddOnBeforeIcon)("template",pt.nzAddOnBefore)}}function He(Ie,Pt){}function me(Ie,Pt){if(1&Ie&&(o.TgZ(0,"span",8),o.YNc(1,He,0,0,"ng-template",9),o.qZA()),2&Ie){const pt=o.oxw(2),Et=o.MAs(4);o.ekj("ant-input-affix-wrapper-sm",pt.isSmall)("ant-input-affix-wrapper-lg",pt.isLarge),o.xp6(1),o.Q6J("ngTemplateOutlet",Et)}}function fe(Ie,Pt){if(1&Ie&&o._UZ(0,"span",7),2&Ie){const pt=o.oxw(2);o.Q6J("icon",pt.nzAddOnAfterIcon)("template",pt.nzAddOnAfter)}}function U(Ie,Pt){if(1&Ie&&(o.TgZ(0,"span",4),o.YNc(1,Ue,1,2,"span",5),o.YNc(2,me,2,5,"span",6),o.YNc(3,fe,1,2,"span",5),o.qZA()),2&Ie){const pt=o.oxw(),Et=o.MAs(6);o.xp6(1),o.Q6J("ngIf",pt.nzAddOnBefore||pt.nzAddOnBeforeIcon),o.xp6(1),o.Q6J("ngIf",pt.isAffix)("ngIfElse",Et),o.xp6(1),o.Q6J("ngIf",pt.nzAddOnAfter||pt.nzAddOnAfterIcon)}}function J(Ie,Pt){}function Me(Ie,Pt){if(1&Ie&&o.YNc(0,J,0,0,"ng-template",9),2&Ie){o.oxw(2);const pt=o.MAs(4);o.Q6J("ngTemplateOutlet",pt)}}function se(Ie,Pt){if(1&Ie&&o.YNc(0,Me,1,1,"ng-template",10),2&Ie){const pt=o.oxw(),Et=o.MAs(6);o.Q6J("ngIf",pt.isAffix)("ngIfElse",Et)}}function we(Ie,Pt){if(1&Ie&&o._UZ(0,"span",13),2&Ie){const pt=o.oxw(2);o.Q6J("icon",pt.nzPrefixIcon)("template",pt.nzPrefix)}}function ue(Ie,Pt){}function Ye(Ie,Pt){if(1&Ie&&o._UZ(0,"span",14),2&Ie){const pt=o.oxw(2);o.Q6J("icon",pt.nzSuffixIcon)("template",pt.nzSuffix)}}function We(Ie,Pt){if(1&Ie&&(o.YNc(0,we,1,2,"span",11),o.YNc(1,ue,0,0,"ng-template",9),o.YNc(2,Ye,1,2,"span",12)),2&Ie){const pt=o.oxw(),Et=o.MAs(6);o.Q6J("ngIf",pt.nzPrefix||pt.nzPrefixIcon),o.xp6(1),o.Q6J("ngTemplateOutlet",Et),o.xp6(1),o.Q6J("ngIf",pt.nzSuffix||pt.nzSuffixIcon)}}function rt(Ie,Pt){1&Ie&&o.Hsn(0)}const wt=["*"];let kt=(()=>{class Ie{constructor(pt,Et,ot,en){this.ngControl=pt,this.directionality=en,this.nzBorderless=!1,this.nzSize="default",this._disabled=!1,this.disabled$=new l.xQ,this.dir="ltr",this.destroy$=new l.xQ,Et.addClass(ot.nativeElement,"ant-input")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(pt){this._disabled=null!=pt&&"false"!=`${pt}`}ngOnInit(){var pt,Et;this.ngControl&&(null===(pt=this.ngControl.statusChanges)||void 0===pt||pt.pipe((0,m.h)(()=>null!==this.ngControl.disabled),(0,A.R)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)})),this.dir=this.directionality.value,null===(Et=this.directionality.change)||void 0===Et||Et.pipe((0,A.R)(this.destroy$)).subscribe(ot=>{this.dir=ot})}ngOnChanges(pt){const{disabled:Et}=pt;Et&&this.disabled$.next(this.disabled)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Ie.\u0275fac=function(pt){return new(pt||Ie)(o.Y36(w.a5,10),o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(z.Is,8))},Ie.\u0275dir=o.lG2({type:Ie,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostVars:11,hostBindings:function(pt,Et){2&pt&&(o.uIk("disabled",Et.disabled||null),o.ekj("ant-input-disabled",Et.disabled)("ant-input-borderless",Et.nzBorderless)("ant-input-lg","large"===Et.nzSize)("ant-input-sm","small"===Et.nzSize)("ant-input-rtl","rtl"===Et.dir))},inputs:{nzBorderless:"nzBorderless",nzSize:"nzSize",disabled:"disabled"},exportAs:["nzInput"],features:[o.TTD]}),(0,r.gn)([(0,S.yF)()],Ie.prototype,"nzBorderless",void 0),Ie})(),Ct=(()=>{class Ie{constructor(){this.icon=null,this.type=null,this.template=null}}return Ie.\u0275fac=function(pt){return new(pt||Ie)},Ie.\u0275cmp=o.Xpm({type:Ie,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(pt,Et){2&pt&&o.ekj("ant-input-group-addon","addon"===Et.type)("ant-input-prefix","prefix"===Et.type)("ant-input-suffix","suffix"===Et.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:Le,decls:2,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(pt,Et){1&pt&&(o.YNc(0,Re,1,1,"i",0),o.YNc(1,ae,2,1,"ng-container",1)),2&pt&&(o.Q6J("ngIf",Et.icon),o.xp6(1),o.Q6J("nzStringTemplateOutlet",Et.template))},directives:[k.O5,N.Ls,ie.f],encapsulation:2,changeDetection:0}),Ie})(),It=(()=>{class Ie{constructor(pt){this.elementRef=pt}}return Ie.\u0275fac=function(pt){return new(pt||Ie)(o.Y36(o.SBq))},Ie.\u0275dir=o.lG2({type:Ie,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]]}),Ie})(),Xe=(()=>{class Ie{constructor(pt,Et,ot,en){this.focusMonitor=pt,this.elementRef=Et,this.cdr=ot,this.directionality=en,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.destroy$=new l.xQ}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(pt=>pt.nzSize=this.nzSize)}ngOnInit(){var pt;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,A.R)(this.destroy$)).subscribe(Et=>{this.focused=!!Et,this.cdr.markForCheck()}),this.dir=this.directionality.value,null===(pt=this.directionality.change)||void 0===pt||pt.pipe((0,A.R)(this.destroy$)).subscribe(Et=>{this.dir=Et})}ngAfterContentInit(){this.updateChildrenInputSize();const pt=this.listOfNzInputDirective.changes.pipe((0,b.O)(this.listOfNzInputDirective));pt.pipe((0,D.w)(Et=>(0,K.T)(pt,...Et.map(ot=>ot.disabled$))),(0,C.zg)(()=>pt),(0,E.U)(Et=>Et.some(ot=>ot.disabled)),(0,A.R)(this.destroy$)).subscribe(Et=>{this.disabled=Et,this.cdr.markForCheck()})}ngOnChanges(pt){const{nzSize:Et,nzSuffix:ot,nzPrefix:en,nzPrefixIcon:Ne,nzSuffixIcon:Ve,nzAddOnAfter:ye,nzAddOnBefore:yt,nzAddOnAfterIcon:Mt,nzAddOnBeforeIcon:Ke}=pt;Et&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(ot||en||Ne||Ve)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(ye||yt||Mt||Ke)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon))}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}}return Ie.\u0275fac=function(pt){return new(pt||Ie)(o.Y36(M.tE),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(z.Is,8))},Ie.\u0275cmp=o.Xpm({type:Ie,selectors:[["nz-input-group"]],contentQueries:function(pt,Et,ot){if(1&pt&&o.Suo(ot,kt,4),2&pt){let en;o.iGM(en=o.CRH())&&(Et.listOfNzInputDirective=en)}},hostVars:40,hostBindings:function(pt,Et){2&pt&&o.ekj("ant-input-group-compact",Et.nzCompact)("ant-input-search-enter-button",Et.nzSearch)("ant-input-search",Et.nzSearch)("ant-input-search-rtl","rtl"===Et.dir)("ant-input-search-sm",Et.nzSearch&&Et.isSmall)("ant-input-search-large",Et.nzSearch&&Et.isLarge)("ant-input-group-wrapper",Et.isAddOn)("ant-input-group-wrapper-rtl","rtl"===Et.dir)("ant-input-group-wrapper-lg",Et.isAddOn&&Et.isLarge)("ant-input-group-wrapper-sm",Et.isAddOn&&Et.isSmall)("ant-input-affix-wrapper",Et.isAffix&&!Et.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===Et.dir)("ant-input-affix-wrapper-focused",Et.isAffix&&Et.focused)("ant-input-affix-wrapper-disabled",Et.isAffix&&Et.disabled)("ant-input-affix-wrapper-lg",Et.isAffix&&!Et.isAddOn&&Et.isLarge)("ant-input-affix-wrapper-sm",Et.isAffix&&!Et.isAddOn&&Et.isSmall)("ant-input-group",!Et.isAffix&&!Et.isAddOn)("ant-input-group-rtl","rtl"===Et.dir)("ant-input-group-lg",!Et.isAffix&&!Et.isAddOn&&Et.isLarge)("ant-input-group-sm",!Et.isAffix&&!Et.isAddOn&&Et.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:"nzSearch",nzCompact:"nzCompact"},exportAs:["nzInputGroup"],features:[o.TTD],ngContentSelectors:wt,decls:7,vars:2,consts:[["class","ant-input-wrapper ant-input-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-affix-wrapper",3,"ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg",4,"ngIf","ngIfElse"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"]],template:function(pt,Et){if(1&pt&&(o.F$t(),o.YNc(0,U,4,4,"span",0),o.YNc(1,se,1,2,"ng-template",null,1,o.W1O),o.YNc(3,We,3,3,"ng-template",null,2,o.W1O),o.YNc(5,rt,1,0,"ng-template",null,3,o.W1O)),2&pt){const ot=o.MAs(2);o.Q6J("ngIf",Et.isAddOn)("ngIfElse",ot)}},directives:[Ct,k.O5,k.tP],encapsulation:2,changeDetection:0}),(0,r.gn)([(0,S.yF)()],Ie.prototype,"nzSearch",void 0),(0,r.gn)([(0,S.yF)()],Ie.prototype,"nzCompact",void 0),Ie})(),lt=(()=>{class Ie{constructor(pt,Et,ot,en){this.elementRef=pt,this.ngZone=Et,this.platform=ot,this.resizeService=en,this.autosize=!1,this.el=this.elementRef.nativeElement,this.maxHeight=null,this.minHeight=null,this.destroy$=new l.xQ,this.inputGap=10}set nzAutosize(pt){var ot;"string"==typeof pt||!0===pt?this.autosize=!0:"string"!=typeof(ot=pt)&&"boolean"!=typeof ot&&(ot.maxRows||ot.minRows)&&(this.autosize=!0,this.minRows=pt.minRows,this.maxRows=pt.maxRows,this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight())}resizeToFitContent(pt=!1){if(this.cacheTextareaLineHeight(),!this.cachedLineHeight)return;const Et=this.el,ot=Et.value;if(!pt&&this.minRows===this.previousMinRows&&ot===this.previousValue)return;const en=Et.placeholder;Et.classList.add("nz-textarea-autosize-measuring"),Et.placeholder="";let Ne=Math.round((Et.scrollHeight-this.inputGap)/this.cachedLineHeight)*this.cachedLineHeight+this.inputGap;null!==this.maxHeight&&Ne>this.maxHeight&&(Ne=this.maxHeight),null!==this.minHeight&&NerequestAnimationFrame(()=>{const{selectionStart:Ve,selectionEnd:ye}=Et;!this.destroy$.isStopped&&document.activeElement===Et&&Et.setSelectionRange(Ve,ye)})),this.previousValue=ot,this.previousMinRows=this.minRows}cacheTextareaLineHeight(){if(this.cachedLineHeight>=0||!this.el.parentNode)return;const pt=this.el.cloneNode(!1);pt.rows=1,pt.style.position="absolute",pt.style.visibility="hidden",pt.style.border="none",pt.style.padding="0",pt.style.height="",pt.style.minHeight="",pt.style.maxHeight="",pt.style.overflow="hidden",this.el.parentNode.appendChild(pt),this.cachedLineHeight=pt.clientHeight-this.inputGap,this.el.parentNode.removeChild(pt),this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight()}setMinHeight(){const pt=this.minRows&&this.cachedLineHeight?this.minRows*this.cachedLineHeight+this.inputGap:null;return null!==pt&&(this.el.style.minHeight=`${pt}px`),pt}setMaxHeight(){const pt=this.maxRows&&this.cachedLineHeight?this.maxRows*this.cachedLineHeight+this.inputGap:null;return null!==pt&&(this.el.style.maxHeight=`${pt}px`),pt}noopInputHandler(){}ngAfterViewInit(){this.autosize&&this.platform.isBrowser&&(this.resizeToFitContent(),this.resizeService.subscribe().pipe((0,A.R)(this.destroy$)).subscribe(()=>this.resizeToFitContent(!0)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngDoCheck(){this.autosize&&this.platform.isBrowser&&this.resizeToFitContent()}}return Ie.\u0275fac=function(pt){return new(pt||Ie)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(ce.t4),o.Y36(ve.rI))},Ie.\u0275dir=o.lG2({type:Ie,selectors:[["textarea","nzAutosize",""]],hostAttrs:["rows","1"],hostBindings:function(pt,Et){1&pt&&o.NdJ("input",function(){return Et.noopInputHandler()})},inputs:{nzAutosize:"nzAutosize"},exportAs:["nzAutosize"]}),Ie})(),Lt=(()=>{class Ie{}return Ie.\u0275fac=function(pt){return new(pt||Ie)},Ie.\u0275mod=o.oAB({type:Ie}),Ie.\u0275inj=o.cJS({imports:[[z.vT,k.ez,N.PV,ce.ud,ie.T]]}),Ie})()},3640:(Ft,Pe,c)=>{c.d(Pe,{du:()=>it,Hf:()=>_n,Qp:()=>Ge,Sf:()=>yn});var r=c(2845),o=c(7429),l=c(5e3),K=c(8929),m=c(3753),A=c(8514),b=c(7625),D=c(2198),C=c(2986),E=c(1059),S=c(948),w=c(1721),z=c(9808),M=c(6360),k=c(1777),N=c(5664),ie=c(9439),ce=c(4170),ve=c(969),Le=c(2683),Re=c(647),ae=c(6042),Ue=c(2643),He=c(2051),me=c(655),fe=c(1159),U=c(226),J=c(4832);const Me=["nz-modal-close",""];function se(xe,xt){if(1&xe&&(l.ynx(0),l._UZ(1,"i",2),l.BQk()),2&xe){const ge=xt.$implicit;l.xp6(1),l.Q6J("nzType",ge)}}const we=["modalElement"];function ue(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",16),l.NdJ("click",function(){return l.CHM(ge),l.oxw().onCloseClick()}),l.qZA()}}function Ye(xe,xt){if(1&xe&&(l.ynx(0),l._UZ(1,"span",17),l.BQk()),2&xe){const ge=l.oxw();l.xp6(1),l.Q6J("innerHTML",ge.config.nzTitle,l.oJD)}}function We(xe,xt){}function rt(xe,xt){if(1&xe&&l._UZ(0,"div",17),2&xe){const ge=l.oxw();l.Q6J("innerHTML",ge.config.nzContent,l.oJD)}}function wt(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",18),l.NdJ("click",function(){return l.CHM(ge),l.oxw().onCancel()}),l._uU(1),l.qZA()}if(2&xe){const ge=l.oxw();l.Q6J("nzLoading",!!ge.config.nzCancelLoading)("disabled",ge.config.nzCancelDisabled),l.uIk("cdkFocusInitial","cancel"===ge.config.nzAutofocus||null),l.xp6(1),l.hij(" ",ge.config.nzCancelText||ge.locale.cancelText," ")}}function Ae(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",19),l.NdJ("click",function(){return l.CHM(ge),l.oxw().onOk()}),l._uU(1),l.qZA()}if(2&xe){const ge=l.oxw();l.Q6J("nzType",ge.config.nzOkType)("nzLoading",!!ge.config.nzOkLoading)("disabled",ge.config.nzOkDisabled)("nzDanger",ge.config.nzOkDanger),l.uIk("cdkFocusInitial","ok"===ge.config.nzAutofocus||null),l.xp6(1),l.hij(" ",ge.config.nzOkText||ge.locale.okText," ")}}const mt=["nz-modal-title",""];function kt(xe,xt){if(1&xe&&(l.ynx(0),l._UZ(1,"div",2),l.BQk()),2&xe){const ge=l.oxw();l.xp6(1),l.Q6J("innerHTML",ge.config.nzTitle,l.oJD)}}const Ct=["nz-modal-footer",""];function It(xe,xt){if(1&xe&&l._UZ(0,"div",5),2&xe){const ge=l.oxw(3);l.Q6J("innerHTML",ge.config.nzFooter,l.oJD)}}function Xe(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",7),l.NdJ("click",function(){const I=l.CHM(ge).$implicit;return l.oxw(4).onButtonClick(I)}),l._uU(1),l.qZA()}if(2&xe){const ge=xt.$implicit,de=l.oxw(4);l.Q6J("hidden",!de.getButtonCallableProp(ge,"show"))("nzLoading",de.getButtonCallableProp(ge,"loading"))("disabled",de.getButtonCallableProp(ge,"disabled"))("nzType",ge.type)("nzDanger",ge.danger)("nzShape",ge.shape)("nzSize",ge.size)("nzGhost",ge.ghost),l.xp6(1),l.hij(" ",ge.label," ")}}function lt(xe,xt){if(1&xe&&(l.ynx(0),l.YNc(1,Xe,2,9,"button",6),l.BQk()),2&xe){const ge=l.oxw(3);l.xp6(1),l.Q6J("ngForOf",ge.buttons)}}function ct(xe,xt){if(1&xe&&(l.ynx(0),l.YNc(1,It,1,1,"div",3),l.YNc(2,lt,2,1,"ng-container",4),l.BQk()),2&xe){const ge=l.oxw(2);l.xp6(1),l.Q6J("ngIf",!ge.buttonsFooter),l.xp6(1),l.Q6J("ngIf",ge.buttonsFooter)}}const Lt=function(xe,xt){return{$implicit:xe,modalRef:xt}};function Ie(xe,xt){if(1&xe&&(l.ynx(0),l.YNc(1,ct,3,2,"ng-container",2),l.BQk()),2&xe){const ge=l.oxw();l.xp6(1),l.Q6J("nzStringTemplateOutlet",ge.config.nzFooter)("nzStringTemplateOutletContext",l.WLB(2,Lt,ge.config.nzComponentParams,ge.modalRef))}}function Pt(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(ge),l.oxw(2).onCancel()}),l._uU(1),l.qZA()}if(2&xe){const ge=l.oxw(2);l.Q6J("nzLoading",!!ge.config.nzCancelLoading)("disabled",ge.config.nzCancelDisabled),l.uIk("cdkFocusInitial","cancel"===ge.config.nzAutofocus||null),l.xp6(1),l.hij(" ",ge.config.nzCancelText||ge.locale.cancelText," ")}}function pt(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(ge),l.oxw(2).onOk()}),l._uU(1),l.qZA()}if(2&xe){const ge=l.oxw(2);l.Q6J("nzType",ge.config.nzOkType)("nzDanger",ge.config.nzOkDanger)("nzLoading",!!ge.config.nzOkLoading)("disabled",ge.config.nzOkDisabled),l.uIk("cdkFocusInitial","ok"===ge.config.nzAutofocus||null),l.xp6(1),l.hij(" ",ge.config.nzOkText||ge.locale.okText," ")}}function Et(xe,xt){if(1&xe&&(l.YNc(0,Pt,2,4,"button",8),l.YNc(1,pt,2,6,"button",9)),2&xe){const ge=l.oxw();l.Q6J("ngIf",null!==ge.config.nzCancelText),l.xp6(1),l.Q6J("ngIf",null!==ge.config.nzOkText)}}function ot(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"button",9),l.NdJ("click",function(){return l.CHM(ge),l.oxw().onCloseClick()}),l.qZA()}}function en(xe,xt){1&xe&&l._UZ(0,"div",10)}function Ne(xe,xt){}function Ve(xe,xt){if(1&xe&&l._UZ(0,"div",11),2&xe){const ge=l.oxw();l.Q6J("innerHTML",ge.config.nzContent,l.oJD)}}function ye(xe,xt){if(1&xe){const ge=l.EpF();l.TgZ(0,"div",12),l.NdJ("cancelTriggered",function(){return l.CHM(ge),l.oxw().onCloseClick()})("okTriggered",function(){return l.CHM(ge),l.oxw().onOkClick()}),l.qZA()}if(2&xe){const ge=l.oxw();l.Q6J("modalRef",ge.modalRef)}}const yt=()=>{};class Mt{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=yt,this.nzOnOk=yt,this.nzIconType="question-circle"}}const G="ant-modal-mask",Q="modal",Fe={modalContainer:(0,k.X$)("modalContainer",[(0,k.SB)("void, exit",(0,k.oB)({})),(0,k.SB)("enter",(0,k.oB)({})),(0,k.eR)("* => enter",(0,k.jt)(".24s",(0,k.oB)({}))),(0,k.eR)("* => void, * => exit",(0,k.jt)(".2s",(0,k.oB)({})))])};function vt(xe,xt,ge){return void 0===xe?void 0===xt?ge:xt:xe}function je(xe){const{nzCentered:xt,nzMask:ge,nzMaskClosable:de,nzClosable:ut,nzOkLoading:I,nzOkDisabled:Z,nzCancelDisabled:oe,nzCancelLoading:De,nzKeyboard:ft,nzNoAnimation:Jt,nzContent:ee,nzComponentParams:T,nzFooter:p,nzZIndex:h,nzWidth:y,nzWrapClassName:R,nzClassName:Ee,nzStyle:et,nzTitle:gt,nzCloseIcon:Qe,nzMaskStyle:_t,nzBodyStyle:Rt,nzOkText:qt,nzCancelText:on,nzOkType:Vt,nzOkDanger:bn,nzIconType:mn,nzModalType:fn,nzOnOk:Dn,nzOnCancel:rn,nzAfterOpen:Nn,nzAfterClose:Qn,nzCloseOnNavigation:ti,nzAutofocus:Jn}=xe;return{nzCentered:xt,nzMask:ge,nzMaskClosable:de,nzClosable:ut,nzOkLoading:I,nzOkDisabled:Z,nzCancelDisabled:oe,nzCancelLoading:De,nzKeyboard:ft,nzNoAnimation:Jt,nzContent:ee,nzComponentParams:T,nzFooter:p,nzZIndex:h,nzWidth:y,nzWrapClassName:R,nzClassName:Ee,nzStyle:et,nzTitle:gt,nzCloseIcon:Qe,nzMaskStyle:_t,nzBodyStyle:Rt,nzOkText:qt,nzCancelText:on,nzOkType:Vt,nzOkDanger:bn,nzIconType:mn,nzModalType:fn,nzOnOk:Dn,nzOnCancel:rn,nzAfterOpen:Nn,nzAfterClose:Qn,nzCloseOnNavigation:ti,nzAutofocus:Jn}}function zt(){throw Error("Attempting to attach modal content after content is already attached")}let jt=(()=>{class xe extends o.en{constructor(ge,de,ut,I,Z,oe,De,ft,Jt,ee){super(),this.ngZone=ge,this.host=de,this.focusTrapFactory=ut,this.cdr=I,this.render=Z,this.overlayRef=oe,this.nzConfigService=De,this.config=ft,this.animationType=ee,this.animationStateChanged=new l.vpe,this.containerClick=new l.vpe,this.cancelTriggered=new l.vpe,this.okTriggered=new l.vpe,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new K.xQ,this.document=Jt,this.dir=oe.getDirection(),this.isStringContent="string"==typeof ft.nzContent,this.nzConfigService.getConfigChangeEventForComponent(Q).pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}get showMask(){const ge=this.nzConfigService.getConfigForComponent(Q)||{};return!!vt(this.config.nzMask,ge.nzMask,!0)}get maskClosable(){const ge=this.nzConfigService.getConfigForComponent(Q)||{};return!!vt(this.config.nzMaskClosable,ge.nzMaskClosable,!0)}onContainerClick(ge){ge.target===ge.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(ge){return this.portalOutlet.hasAttached()&&zt(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(ge)}attachTemplatePortal(ge){return this.portalOutlet.hasAttached()&&zt(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(ge)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const ge=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const de=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),ut=(0,w.pW)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(ge,"transform-origin",`${ut.left+de.width/2-ge.offsetLeft}px ${ut.top+de.height/2-ge.offsetTop}px 0px`)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.host.nativeElement.focus())))}trapFocus(){const ge=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const de=this.document.activeElement;de!==ge&&!ge.contains(de)&&ge.focus()}}restoreFocus(){const ge=this.elementFocusedBeforeModalWasOpened;if(ge&&"function"==typeof ge.focus){const de=this.document.activeElement,ut=this.host.nativeElement;(!de||de===this.document.body||de===ut||ut.contains(de))&&ge.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const ge=this.modalElementRef.nativeElement,de=this.overlayRef.backdropElement;ge.classList.add("ant-zoom-enter"),ge.classList.add("ant-zoom-enter-active"),de&&(de.classList.add("ant-fade-enter"),de.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const ge=this.modalElementRef.nativeElement;ge.classList.add("ant-zoom-leave"),ge.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(ge=!1){const de=this.overlayRef.backdropElement;if(de){if(this.animationDisabled()||ge)return void de.classList.remove(G);de.classList.add("ant-fade-leave"),de.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const ge=this.overlayRef.backdropElement,de=this.modalElementRef.nativeElement;ge&&(ge.classList.remove("ant-fade-enter"),ge.classList.remove("ant-fade-enter-active")),de.classList.remove("ant-zoom-enter"),de.classList.remove("ant-zoom-enter-active"),de.classList.remove("ant-zoom-leave"),de.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const ge=this.overlayRef.backdropElement;ge&&(0,w.DX)(this.config.nzZIndex)&&this.render.setStyle(ge,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const ge=this.overlayRef.backdropElement;if(ge&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(ut=>{this.render.removeStyle(ge,ut)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const de=Object.assign({},this.config.nzMaskStyle);Object.keys(de).forEach(ut=>{this.render.setStyle(ge,ut,de[ut])}),this.oldMaskStyle=de}}updateMaskClassname(){const ge=this.overlayRef.backdropElement;ge&&(this.showMask?ge.classList.add(G):ge.classList.remove(G))}onAnimationDone(ge){"enter"===ge.toState?this.trapFocus():"exit"===ge.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(ge)}onAnimationStart(ge){"enter"===ge.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===ge.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(ge)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(),this.destroy$.complete()}setupMouseListeners(ge){this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.host.nativeElement,"mouseup").pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,m.R)(ge.nativeElement,"mousedown").pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}}return xe.\u0275fac=function(ge){l.$Z()},xe.\u0275dir=l.lG2({type:xe,features:[l.qOj]}),xe})(),Bt=(()=>{class xe{constructor(ge){this.config=ge}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(Mt))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:Me,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(ge,de){1&ge&&(l.TgZ(0,"span",0),l.YNc(1,se,2,1,"ng-container",1),l.qZA()),2&ge&&(l.xp6(1),l.Q6J("nzStringTemplateOutlet",de.config.nzCloseIcon))},directives:[ve.f,Le.w,Re.Ls],encapsulation:2,changeDetection:0}),xe})(),vn=(()=>{class xe extends jt{constructor(ge,de,ut,I,Z,oe,De,ft,Jt,ee,T){super(ge,ut,I,Z,oe,De,ft,Jt,ee,T),this.i18n=de,this.config=Jt,this.cancelTriggered=new l.vpe,this.okTriggered=new l.vpe,this.i18n.localeChange.pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(l.R0b),l.Y36(ce.wi),l.Y36(l.SBq),l.Y36(N.qV),l.Y36(l.sBO),l.Y36(l.Qsj),l.Y36(r.Iu),l.Y36(ie.jY),l.Y36(Mt),l.Y36(z.K0,8),l.Y36(M.Qb,8))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["nz-modal-confirm-container"]],viewQuery:function(ge,de){if(1&ge&&(l.Gf(o.Pl,7),l.Gf(we,7)),2&ge){let ut;l.iGM(ut=l.CRH())&&(de.portalOutlet=ut.first),l.iGM(ut=l.CRH())&&(de.modalElementRef=ut.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ge,de){1&ge&&(l.WFA("@modalContainer.start",function(I){return de.onAnimationStart(I)})("@modalContainer.done",function(I){return de.onAnimationDone(I)}),l.NdJ("click",function(I){return de.onContainerClick(I)})),2&ge&&(l.d8E("@.disabled",de.config.nzNoAnimation)("@modalContainer",de.state),l.Tol(de.config.nzWrapClassName?"ant-modal-wrap "+de.config.nzWrapClassName:"ant-modal-wrap"),l.Udp("z-index",de.config.nzZIndex),l.ekj("ant-modal-wrap-rtl","rtl"===de.dir)("ant-modal-centered",de.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[l.qOj],decls:17,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click"]],template:function(ge,de){1&ge&&(l.TgZ(0,"div",0,1),l.ALo(2,"nzToCssUnit"),l.TgZ(3,"div",2),l.YNc(4,ue,1,0,"button",3),l.TgZ(5,"div",4),l.TgZ(6,"div",5),l.TgZ(7,"div",6),l._UZ(8,"i",7),l.TgZ(9,"span",8),l.YNc(10,Ye,2,1,"ng-container",9),l.qZA(),l.TgZ(11,"div",10),l.YNc(12,We,0,0,"ng-template",11),l.YNc(13,rt,1,1,"div",12),l.qZA(),l.qZA(),l.TgZ(14,"div",13),l.YNc(15,wt,2,4,"button",14),l.YNc(16,Ae,2,6,"button",15),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&ge&&(l.Udp("width",l.lcZ(2,11,null==de.config?null:de.config.nzWidth)),l.Q6J("ngClass",de.config.nzClassName)("ngStyle",de.config.nzStyle),l.xp6(4),l.Q6J("ngIf",de.config.nzClosable),l.xp6(1),l.Q6J("ngStyle",de.config.nzBodyStyle),l.xp6(3),l.Q6J("nzType",de.config.nzIconType),l.xp6(2),l.Q6J("nzStringTemplateOutlet",de.config.nzTitle),l.xp6(3),l.Q6J("ngIf",de.isStringContent),l.xp6(2),l.Q6J("ngIf",null!==de.config.nzCancelText),l.xp6(1),l.Q6J("ngIf",null!==de.config.nzOkText))},directives:[Bt,ae.ix,z.mk,z.PC,z.O5,Le.w,Re.Ls,ve.f,o.Pl,Ue.dQ],pipes:[He.ku],encapsulation:2,data:{animation:[Fe.modalContainer]}}),xe})(),cn=(()=>{class xe{constructor(ge){this.config=ge}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(Mt))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:mt,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(ge,de){1&ge&&(l.TgZ(0,"div",0),l.YNc(1,kt,2,1,"ng-container",1),l.qZA()),2&ge&&(l.xp6(1),l.Q6J("nzStringTemplateOutlet",de.config.nzTitle))},directives:[ve.f],encapsulation:2,changeDetection:0}),xe})(),an=(()=>{class xe{constructor(ge,de){this.i18n=ge,this.config=de,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new l.vpe,this.okTriggered=new l.vpe,this.destroy$=new K.xQ,Array.isArray(de.nzFooter)&&(this.buttonsFooter=!0,this.buttons=de.nzFooter.map(nn)),this.i18n.localeChange.pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(ge,de){const ut=ge[de],I=this.modalRef.getContentComponent();return"function"==typeof ut?ut.apply(ge,I&&[I]):ut}onButtonClick(ge){if(!this.getButtonCallableProp(ge,"loading")){const ut=this.getButtonCallableProp(ge,"onClick");ge.autoLoading&&(0,w.tI)(ut)&&(ge.loading=!0,ut.then(()=>ge.loading=!1).catch(I=>{throw ge.loading=!1,I}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(ce.wi),l.Y36(Mt))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:Ct,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click"]],template:function(ge,de){if(1&ge&&(l.YNc(0,Ie,2,5,"ng-container",0),l.YNc(1,Et,2,2,"ng-template",null,1,l.W1O)),2&ge){const ut=l.MAs(2);l.Q6J("ngIf",de.config.nzFooter)("ngIfElse",ut)}},directives:[ae.ix,z.O5,ve.f,z.sg,Ue.dQ,Le.w],encapsulation:2}),xe})();function nn(xe){return Object.assign({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},xe)}let Gn=(()=>{class xe extends jt{constructor(ge,de,ut,I,Z,oe,De,ft,Jt,ee){super(ge,de,ut,I,Z,oe,De,ft,Jt,ee),this.config=ft}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(l.R0b),l.Y36(l.SBq),l.Y36(N.qV),l.Y36(l.sBO),l.Y36(l.Qsj),l.Y36(r.Iu),l.Y36(ie.jY),l.Y36(Mt),l.Y36(z.K0,8),l.Y36(M.Qb,8))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["nz-modal-container"]],viewQuery:function(ge,de){if(1&ge&&(l.Gf(o.Pl,7),l.Gf(we,7)),2&ge){let ut;l.iGM(ut=l.CRH())&&(de.portalOutlet=ut.first),l.iGM(ut=l.CRH())&&(de.modalElementRef=ut.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ge,de){1&ge&&(l.WFA("@modalContainer.start",function(I){return de.onAnimationStart(I)})("@modalContainer.done",function(I){return de.onAnimationDone(I)}),l.NdJ("click",function(I){return de.onContainerClick(I)})),2&ge&&(l.d8E("@.disabled",de.config.nzNoAnimation)("@modalContainer",de.state),l.Tol(de.config.nzWrapClassName?"ant-modal-wrap "+de.config.nzWrapClassName:"ant-modal-wrap"),l.Udp("z-index",de.config.nzZIndex),l.ekj("ant-modal-wrap-rtl","rtl"===de.dir)("ant-modal-centered",de.config.nzCentered))},exportAs:["nzModalContainer"],features:[l.qOj],decls:10,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(ge,de){1&ge&&(l.TgZ(0,"div",0,1),l.ALo(2,"nzToCssUnit"),l.TgZ(3,"div",2),l.YNc(4,ot,1,0,"button",3),l.YNc(5,en,1,0,"div",4),l.TgZ(6,"div",5),l.YNc(7,Ne,0,0,"ng-template",6),l.YNc(8,Ve,1,1,"div",7),l.qZA(),l.YNc(9,ye,1,1,"div",8),l.qZA(),l.qZA()),2&ge&&(l.Udp("width",l.lcZ(2,9,null==de.config?null:de.config.nzWidth)),l.Q6J("ngClass",de.config.nzClassName)("ngStyle",de.config.nzStyle),l.xp6(4),l.Q6J("ngIf",de.config.nzClosable),l.xp6(1),l.Q6J("ngIf",de.config.nzTitle),l.xp6(1),l.Q6J("ngStyle",de.config.nzBodyStyle),l.xp6(2),l.Q6J("ngIf",de.isStringContent),l.xp6(1),l.Q6J("ngIf",null!==de.config.nzFooter))},directives:[Bt,cn,an,z.mk,z.PC,z.O5,o.Pl],pipes:[He.ku],encapsulation:2,data:{animation:[Fe.modalContainer]}}),xe})();class xn{constructor(xt,ge,de){this.overlayRef=xt,this.config=ge,this.containerInstance=de,this.componentInstance=null,this.state=0,this.afterClose=new K.xQ,this.afterOpen=new K.xQ,this.destroy$=new K.xQ,de.animationStateChanged.pipe((0,D.h)(ut=>"done"===ut.phaseName&&"enter"===ut.toState),(0,C.q)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),ge.nzAfterOpen instanceof l.vpe&&ge.nzAfterOpen.emit()}),de.animationStateChanged.pipe((0,D.h)(ut=>"done"===ut.phaseName&&"exit"===ut.toState),(0,C.q)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),de.containerClick.pipe((0,C.q)(1),(0,b.R)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),xt.keydownEvents().pipe((0,D.h)(ut=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&ut.keyCode===fe.hY&&!(0,fe.Vb)(ut))).subscribe(ut=>{ut.preventDefault(),this.trigger("cancel")}),de.cancelTriggered.pipe((0,b.R)(this.destroy$)).subscribe(()=>this.trigger("cancel")),de.okTriggered.pipe((0,b.R)(this.destroy$)).subscribe(()=>this.trigger("ok")),xt.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),ge.nzAfterClose instanceof l.vpe&&ge.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(xt){this.close(xt)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(xt){0===this.state&&(this.result=xt,this.containerInstance.animationStateChanged.pipe((0,D.h)(ge=>"start"===ge.phaseName),(0,C.q)(1)).subscribe(ge=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},ge.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(xt){Object.assign(this.config,xt),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(xt){return(0,me.mG)(this,void 0,void 0,function*(){const ge={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[xt],de={ok:"nzOkLoading",cancel:"nzCancelLoading"}[xt];if(!this.config[de])if(ge instanceof l.vpe)ge.emit(this.getContentComponent());else if("function"==typeof ge){const I=ge(this.getContentComponent());if((0,w.tI)(I)){this.config[de]=!0;let Z=!1;try{Z=yield I}finally{this.config[de]=!1,this.closeWhitResult(Z)}}else this.closeWhitResult(I)}})}closeWhitResult(xt){!1!==xt&&this.close(xt)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let yn=(()=>{class xe{constructor(ge,de,ut,I,Z){this.overlay=ge,this.injector=de,this.nzConfigService=ut,this.parentModal=I,this.directionality=Z,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new K.xQ,this.afterAllClose=(0,A.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,E.O)(void 0)))}get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const ge=this.parentModal;return ge?ge._afterAllClosed:this.afterAllClosedAtThisLevel}create(ge){return this.open(ge.nzContent,ge)}closeAll(){this.closeModals(this.openModals)}confirm(ge={},de="confirm"){return"nzFooter"in ge&&(0,S.ZK)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in ge||(ge.nzWidth=416),"nzMaskClosable"in ge||(ge.nzMaskClosable=!1),ge.nzModalType="confirm",ge.nzClassName=`ant-modal-confirm ant-modal-confirm-${de} ${ge.nzClassName||""}`,this.create(ge)}info(ge={}){return this.confirmFactory(ge,"info")}success(ge={}){return this.confirmFactory(ge,"success")}error(ge={}){return this.confirmFactory(ge,"error")}warning(ge={}){return this.confirmFactory(ge,"warning")}open(ge,de){const ut=function Je(xe,xt){return Object.assign(Object.assign({},xt),xe)}(de||{},new Mt),I=this.createOverlay(ut),Z=this.attachModalContainer(I,ut),oe=this.attachModalContent(ge,Z,I,ut);return Z.modalRef=oe,this.openModals.push(oe),oe.afterClose.subscribe(()=>this.removeOpenModal(oe)),oe}removeOpenModal(ge){const de=this.openModals.indexOf(ge);de>-1&&(this.openModals.splice(de,1),this.openModals.length||this._afterAllClosed.next())}closeModals(ge){let de=ge.length;for(;de--;)ge[de].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(ge){const de=this.nzConfigService.getConfigForComponent(Q)||{},ut=new r.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:vt(ge.nzCloseOnNavigation,de.nzCloseOnNavigation,!0),direction:vt(ge.nzDirection,de.nzDirection,this.directionality.value)});return vt(ge.nzMask,de.nzMask,!0)&&(ut.backdropClass=G),this.overlay.create(ut)}attachModalContainer(ge,de){const I=l.zs3.create({parent:de&&de.nzViewContainerRef&&de.nzViewContainerRef.injector||this.injector,providers:[{provide:r.Iu,useValue:ge},{provide:Mt,useValue:de}]}),oe=new o.C5("confirm"===de.nzModalType?vn:Gn,de.nzViewContainerRef,I);return ge.attach(oe).instance}attachModalContent(ge,de,ut,I){const Z=new xn(ut,I,de);if(ge instanceof l.Rgc)de.attachTemplatePortal(new o.UE(ge,null,{$implicit:I.nzComponentParams,modalRef:Z}));else if((0,w.DX)(ge)&&"string"!=typeof ge){const oe=this.createInjector(Z,I),De=de.attachComponentPortal(new o.C5(ge,I.nzViewContainerRef,oe));(function Tt(xe,xt){Object.assign(xe,xt)})(De.instance,I.nzComponentParams),Z.componentInstance=De.instance}else de.attachStringContent();return Z}createInjector(ge,de){return l.zs3.create({parent:de&&de.nzViewContainerRef&&de.nzViewContainerRef.injector||this.injector,providers:[{provide:xn,useValue:ge}]})}confirmFactory(ge={},de){return"nzIconType"in ge||(ge.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[de]),"nzCancelText"in ge||(ge.nzCancelText=null),this.confirm(ge,de)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.LFG(r.aV),l.LFG(l.zs3),l.LFG(ie.jY),l.LFG(xe,12),l.LFG(U.Is,8))},xe.\u0275prov=l.Yz7({token:xe,factory:xe.\u0275fac}),xe})(),_n=(()=>{class xe{constructor(ge){this.templateRef=ge}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(l.Rgc))},xe.\u0275dir=l.lG2({type:xe,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),xe})(),un=(()=>{class xe{constructor(ge,de){this.nzModalRef=ge,this.templateRef=de,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(xn,8),l.Y36(l.Rgc))},xe.\u0275dir=l.lG2({type:xe,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),xe})(),Dt=(()=>{class xe{constructor(ge,de){this.nzModalRef=ge,this.templateRef=de,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(xn,8),l.Y36(l.Rgc))},xe.\u0275dir=l.lG2({type:xe,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]}),xe})(),it=(()=>{class xe{constructor(ge,de,ut){this.cdr=ge,this.modal=de,this.viewContainerRef=ut,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new l.vpe,this.nzOnCancel=new l.vpe,this.nzAfterOpen=new l.vpe,this.nzAfterClose=new l.vpe,this.nzVisibleChange=new l.vpe,this.modalRef=null,this.destroy$=new K.xQ}set modalTitle(ge){ge&&this.setTitleWithTemplate(ge)}set modalFooter(ge){ge&&this.setFooterWithTemplate(ge)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const ge=this.getConfig();this.modalRef=this.modal.create(ge),this.modalRef.afterClose.asObservable().pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.close()})}}close(ge){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(ge),this.modalRef=null)}destroy(ge){this.close(ge)}triggerOk(){var ge;null===(ge=this.modalRef)||void 0===ge||ge.triggerOk()}triggerCancel(){var ge;null===(ge=this.modalRef)||void 0===ge||ge.triggerCancel()}getContentComponent(){var ge;return null===(ge=this.modalRef)||void 0===ge?void 0:ge.getContentComponent()}getElement(){var ge;return null===(ge=this.modalRef)||void 0===ge?void 0:ge.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(ge){this.nzTitle=ge,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(ge){this.nzFooter=ge,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const ge=je(this);return ge.nzViewContainerRef=this.viewContainerRef,ge.nzContent=this.nzContent||this.contentFromContentChild,ge}ngOnChanges(ge){const{nzVisible:de}=ge,ut=(0,me._T)(ge,["nzVisible"]);Object.keys(ut).length&&this.modalRef&&this.modalRef.updateConfig(je(this)),de&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){var ge;null===(ge=this.modalRef)||void 0===ge||ge._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}}return xe.\u0275fac=function(ge){return new(ge||xe)(l.Y36(l.sBO),l.Y36(yn),l.Y36(l.s_b))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["nz-modal"]],contentQueries:function(ge,de,ut){if(1&ge&&(l.Suo(ut,Dt,7,l.Rgc),l.Suo(ut,_n,7,l.Rgc),l.Suo(ut,un,7,l.Rgc)),2&ge){let I;l.iGM(I=l.CRH())&&(de.modalTitle=I.first),l.iGM(I=l.CRH())&&(de.contentFromContentChild=I.first),l.iGM(I=l.CRH())&&(de.modalFooter=I.first)}},inputs:{nzMask:"nzMask",nzMaskClosable:"nzMaskClosable",nzCloseOnNavigation:"nzCloseOnNavigation",nzVisible:"nzVisible",nzClosable:"nzClosable",nzOkLoading:"nzOkLoading",nzOkDisabled:"nzOkDisabled",nzCancelDisabled:"nzCancelDisabled",nzCancelLoading:"nzCancelLoading",nzKeyboard:"nzKeyboard",nzNoAnimation:"nzNoAnimation",nzCentered:"nzCentered",nzContent:"nzContent",nzComponentParams:"nzComponentParams",nzFooter:"nzFooter",nzZIndex:"nzZIndex",nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:"nzOkDanger",nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[l.TTD],decls:0,vars:0,template:function(ge,de){},encapsulation:2,changeDetection:0}),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzMask",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzMaskClosable",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzCloseOnNavigation",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzVisible",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzClosable",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzOkLoading",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzOkDisabled",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzCancelDisabled",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzCancelLoading",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzKeyboard",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzNoAnimation",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzCentered",void 0),(0,me.gn)([(0,w.yF)()],xe.prototype,"nzOkDanger",void 0),xe})(),Ge=(()=>{class xe{}return xe.\u0275fac=function(ge){return new(ge||xe)},xe.\u0275mod=l.oAB({type:xe}),xe.\u0275inj=l.cJS({providers:[yn],imports:[[z.ez,U.vT,r.U8,ve.T,o.eL,ce.YI,ae.sL,Re.PV,He.YS,J.g,He.YS]]}),xe})()},2051:(Ft,Pe,c)=>{c.d(Pe,{YS:()=>z,ku:()=>b});var r=c(9808),o=c(5e3),l=c(1721);c(2313);class A{transform(k,N=0,ie="B",ce){if(!((0,l.ui)(k)&&(0,l.ui)(N)&&N%1==0&&N>=0))return k;let ve=k,Le=ie;for(;"B"!==Le;)ve*=1024,Le=A.formats[Le].prev;if(ce){const ae=(0,l.YM)(A.calculateResult(A.formats[ce],ve),N);return A.formatResult(ae,ce)}for(const Re in A.formats)if(A.formats.hasOwnProperty(Re)){const ae=A.formats[Re];if(ve{class M{transform(N,ie="px"){let ae="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some(Ue=>Ue===ie)&&(ae=ie),"number"==typeof N?`${N}${ae}`:`${N}`}}return M.\u0275fac=function(N){return new(N||M)},M.\u0275pipe=o.Yjl({name:"nzToCssUnit",type:M,pure:!0}),M})(),z=(()=>{class M{}return M.\u0275fac=function(N){return new(N||M)},M.\u0275mod=o.oAB({type:M}),M.\u0275inj=o.cJS({imports:[[r.ez]]}),M})()},3868:(Ft,Pe,c)=>{c.d(Pe,{Bq:()=>k,Of:()=>ce,Dg:()=>ie,aF:()=>ve});var r=c(5e3),o=c(655),l=c(4182),K=c(839),m=c(8929),A=c(3753),b=c(7625),D=c(1721),C=c(226),E=c(5664),S=c(9808);const w=["*"],z=["inputElement"],M=["nz-radio",""];let k=(()=>{class Le{}return Le.\u0275fac=function(ae){return new(ae||Le)},Le.\u0275dir=r.lG2({type:Le,selectors:[["","nz-radio-button",""]]}),Le})(),N=(()=>{class Le{constructor(){this.selected$=new K.t(1),this.touched$=new m.xQ,this.disabled$=new K.t(1),this.name$=new K.t(1)}touch(){this.touched$.next()}select(ae){this.selected$.next(ae)}setDisabled(ae){this.disabled$.next(ae)}setName(ae){this.name$.next(ae)}}return Le.\u0275fac=function(ae){return new(ae||Le)},Le.\u0275prov=r.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),ie=(()=>{class Le{constructor(ae,Ue,He){this.cdr=ae,this.nzRadioService=Ue,this.directionality=He,this.value=null,this.destroy$=new m.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){var ae;this.nzRadioService.selected$.pipe((0,b.R)(this.destroy$)).subscribe(Ue=>{this.value!==Ue&&(this.value=Ue,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,b.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),null===(ae=this.directionality.change)||void 0===ae||ae.pipe((0,b.R)(this.destroy$)).subscribe(Ue=>{this.dir=Ue,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(ae){const{nzDisabled:Ue,nzName:He}=ae;Ue&&this.nzRadioService.setDisabled(this.nzDisabled),He&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}writeValue(ae){this.value=ae,this.nzRadioService.select(ae),this.cdr.markForCheck()}registerOnChange(ae){this.onChange=ae}registerOnTouched(ae){this.onTouched=ae}setDisabledState(ae){this.nzDisabled=ae,this.nzRadioService.setDisabled(ae),this.cdr.markForCheck()}}return Le.\u0275fac=function(ae){return new(ae||Le)(r.Y36(r.sBO),r.Y36(N),r.Y36(C.Is,8))},Le.\u0275cmp=r.Xpm({type:Le,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(ae,Ue){2&ae&&r.ekj("ant-radio-group-large","large"===Ue.nzSize)("ant-radio-group-small","small"===Ue.nzSize)("ant-radio-group-solid","solid"===Ue.nzButtonStyle)("ant-radio-group-rtl","rtl"===Ue.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[r._Bn([N,{provide:l.JU,useExisting:(0,r.Gpc)(()=>Le),multi:!0}]),r.TTD],ngContentSelectors:w,decls:1,vars:0,template:function(ae,Ue){1&ae&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),(0,o.gn)([(0,D.yF)()],Le.prototype,"nzDisabled",void 0),Le})(),ce=(()=>{class Le{constructor(ae,Ue,He,me,fe,U,J){this.ngZone=ae,this.elementRef=Ue,this.cdr=He,this.focusMonitor=me,this.directionality=fe,this.nzRadioService=U,this.nzRadioButtonDirective=J,this.isNgModel=!1,this.destroy$=new m.xQ,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}setDisabledState(ae){this.nzDisabled=ae,this.cdr.markForCheck()}writeValue(ae){this.isChecked=ae,this.cdr.markForCheck()}registerOnChange(ae){this.isNgModel=!0,this.onChange=ae}registerOnTouched(ae){this.onTouched=ae}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,b.R)(this.destroy$)).subscribe(ae=>{this.name=ae,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,b.R)(this.destroy$)).subscribe(ae=>{this.nzDisabled=ae,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,b.R)(this.destroy$)).subscribe(ae=>{this.isChecked=this.nzValue===ae,this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(ae=>{ae||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(ae=>{this.dir=ae,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,A.R)(this.elementRef.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(ae=>{ae.stopPropagation(),ae.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}}return Le.\u0275fac=function(ae){return new(ae||Le)(r.Y36(r.R0b),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(E.tE),r.Y36(C.Is,8),r.Y36(N,8),r.Y36(k,8))},Le.\u0275cmp=r.Xpm({type:Le,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(ae,Ue){if(1&ae&&r.Gf(z,5),2&ae){let He;r.iGM(He=r.CRH())&&(Ue.inputElement=He.first)}},hostVars:16,hostBindings:function(ae,Ue){2&ae&&r.ekj("ant-radio-wrapper",!Ue.isRadioButton)("ant-radio-button-wrapper",Ue.isRadioButton)("ant-radio-wrapper-checked",Ue.isChecked&&!Ue.isRadioButton)("ant-radio-button-wrapper-checked",Ue.isChecked&&Ue.isRadioButton)("ant-radio-wrapper-disabled",Ue.nzDisabled&&!Ue.isRadioButton)("ant-radio-button-wrapper-disabled",Ue.nzDisabled&&Ue.isRadioButton)("ant-radio-wrapper-rtl",!Ue.isRadioButton&&"rtl"===Ue.dir)("ant-radio-button-wrapper-rtl",Ue.isRadioButton&&"rtl"===Ue.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[r._Bn([{provide:l.JU,useExisting:(0,r.Gpc)(()=>Le),multi:!0}])],attrs:M,ngContentSelectors:w,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(ae,Ue){1&ae&&(r.F$t(),r.TgZ(0,"span"),r._UZ(1,"input",0,1),r._UZ(3,"span"),r.qZA(),r.TgZ(4,"span"),r.Hsn(5),r.qZA()),2&ae&&(r.ekj("ant-radio",!Ue.isRadioButton)("ant-radio-checked",Ue.isChecked&&!Ue.isRadioButton)("ant-radio-disabled",Ue.nzDisabled&&!Ue.isRadioButton)("ant-radio-button",Ue.isRadioButton)("ant-radio-button-checked",Ue.isChecked&&Ue.isRadioButton)("ant-radio-button-disabled",Ue.nzDisabled&&Ue.isRadioButton),r.xp6(1),r.ekj("ant-radio-input",!Ue.isRadioButton)("ant-radio-button-input",Ue.isRadioButton),r.Q6J("disabled",Ue.nzDisabled)("checked",Ue.isChecked),r.uIk("autofocus",Ue.nzAutoFocus?"autofocus":null)("name",Ue.name),r.xp6(2),r.ekj("ant-radio-inner",!Ue.isRadioButton)("ant-radio-button-inner",Ue.isRadioButton))},encapsulation:2,changeDetection:0}),(0,o.gn)([(0,D.yF)()],Le.prototype,"nzDisabled",void 0),(0,o.gn)([(0,D.yF)()],Le.prototype,"nzAutoFocus",void 0),Le})(),ve=(()=>{class Le{}return Le.\u0275fac=function(ae){return new(ae||Le)},Le.\u0275mod=r.oAB({type:Le}),Le.\u0275inj=r.cJS({imports:[[C.vT,S.ez,l.u5]]}),Le})()},8054:(Ft,Pe,c)=>{c.d(Pe,{Ip:()=>xn,Yy:()=>cn,Vq:()=>xt,LV:()=>ge});var r=c(5e3),o=c(8929),l=c(3753),K=c(591),m=c(3426),A=c(6787),b=c(2321),D=c(685),C=c(969),E=c(9808),S=c(647),w=c(2683),z=c(655),M=c(1059),k=c(7625),N=c(7545),ie=c(4090),ce=c(1721),ve=c(1159),Le=c(2845),Re=c(4182),ae=c(8076),Ue=c(9439),He=c(6987),me=c(5664),fe=c(4832),U=c(925),J=c(226),Me=c(6950),se=c(4170);const we=["*"];function ue(de,ut){if(1&de&&(r.ynx(0),r._uU(1),r.BQk()),2&de){const I=r.oxw();r.xp6(1),r.Oqu(I.nzLabel)}}function Ye(de,ut){if(1&de&&(r.ynx(0),r._uU(1),r.BQk()),2&de){const I=r.oxw();r.xp6(1),r.Oqu(I.label)}}function We(de,ut){}function rt(de,ut){if(1&de&&(r.ynx(0),r.YNc(1,We,0,0,"ng-template",3),r.BQk()),2&de){const I=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",I.template)}}function wt(de,ut){1&de&&r._UZ(0,"i",6)}function Ae(de,ut){if(1&de&&(r.TgZ(0,"div",4),r.YNc(1,wt,1,0,"i",5),r.qZA()),2&de){const I=r.oxw();r.xp6(1),r.Q6J("ngIf",!I.icon)("ngIfElse",I.icon)}}function mt(de,ut){if(1&de&&(r.TgZ(0,"div",4),r._UZ(1,"nz-embed-empty",5),r.qZA()),2&de){const I=r.oxw();r.xp6(1),r.Q6J("specificContent",I.notFoundContent)}}function kt(de,ut){if(1&de&&r._UZ(0,"nz-option-item-group",9),2&de){const I=r.oxw().$implicit;r.Q6J("nzLabel",I.groupLabel)}}function Ct(de,ut){if(1&de){const I=r.EpF();r.TgZ(0,"nz-option-item",10),r.NdJ("itemHover",function(oe){return r.CHM(I),r.oxw(2).onItemHover(oe)})("itemClick",function(oe){return r.CHM(I),r.oxw(2).onItemClick(oe)}),r.qZA()}if(2&de){const I=r.oxw().$implicit,Z=r.oxw();r.Q6J("icon",Z.menuItemSelectedIcon)("customContent",I.nzCustomContent)("template",I.template)("grouped",!!I.groupLabel)("disabled",I.nzDisabled)("showState","tags"===Z.mode||"multiple"===Z.mode)("label",I.nzLabel)("compareWith",Z.compareWith)("activatedValue",Z.activatedValue)("listOfSelectedValue",Z.listOfSelectedValue)("value",I.nzValue)}}function It(de,ut){1&de&&(r.ynx(0,6),r.YNc(1,kt,1,1,"nz-option-item-group",7),r.YNc(2,Ct,1,11,"nz-option-item",8),r.BQk()),2&de&&(r.Q6J("ngSwitch",ut.$implicit.type),r.xp6(1),r.Q6J("ngSwitchCase","group"),r.xp6(1),r.Q6J("ngSwitchCase","item"))}function Xe(de,ut){}function lt(de,ut){1&de&&r.Hsn(0)}const ct=["inputElement"],Lt=["mirrorElement"];function Ie(de,ut){1&de&&r._UZ(0,"span",3,4)}function Pt(de,ut){if(1&de&&(r.TgZ(0,"div",4),r._uU(1),r.qZA()),2&de){const I=r.oxw(2);r.xp6(1),r.Oqu(I.label)}}function pt(de,ut){if(1&de&&r._uU(0),2&de){const I=r.oxw(2);r.Oqu(I.label)}}function Et(de,ut){if(1&de&&(r.ynx(0),r.YNc(1,Pt,2,1,"div",2),r.YNc(2,pt,1,1,"ng-template",null,3,r.W1O),r.BQk()),2&de){const I=r.MAs(3),Z=r.oxw();r.xp6(1),r.Q6J("ngIf",Z.deletable)("ngIfElse",I)}}function ot(de,ut){1&de&&r._UZ(0,"i",7)}function en(de,ut){if(1&de){const I=r.EpF();r.TgZ(0,"span",5),r.NdJ("click",function(oe){return r.CHM(I),r.oxw().onDelete(oe)}),r.YNc(1,ot,1,0,"i",6),r.qZA()}if(2&de){const I=r.oxw();r.xp6(1),r.Q6J("ngIf",!I.removeIcon)("ngIfElse",I.removeIcon)}}const Ne=function(de){return{$implicit:de}};function Ve(de,ut){if(1&de&&(r.ynx(0),r._uU(1),r.BQk()),2&de){const I=r.oxw();r.xp6(1),r.hij(" ",I.placeholder," ")}}function ye(de,ut){if(1&de&&r._UZ(0,"nz-select-item",6),2&de){const I=r.oxw(2);r.Q6J("deletable",!1)("disabled",!1)("removeIcon",I.removeIcon)("label",I.listOfTopItem[0].nzLabel)("contentTemplateOutlet",I.customTemplate)("contentTemplateOutletContext",I.listOfTopItem[0])}}function yt(de,ut){if(1&de){const I=r.EpF();r.ynx(0),r.TgZ(1,"nz-select-search",4),r.NdJ("isComposingChange",function(oe){return r.CHM(I),r.oxw().isComposingChange(oe)})("valueChange",function(oe){return r.CHM(I),r.oxw().onInputValueChange(oe)}),r.qZA(),r.YNc(2,ye,1,6,"nz-select-item",5),r.BQk()}if(2&de){const I=r.oxw();r.xp6(1),r.Q6J("nzId",I.nzId)("disabled",I.disabled)("value",I.inputValue)("showInput",I.showSearch)("mirrorSync",!1)("autofocus",I.autofocus)("focusTrigger",I.open),r.xp6(1),r.Q6J("ngIf",I.isShowSingleLabel)}}function Mt(de,ut){if(1&de){const I=r.EpF();r.TgZ(0,"nz-select-item",9),r.NdJ("delete",function(){const De=r.CHM(I).$implicit;return r.oxw(2).onDeleteItem(De.contentTemplateOutletContext)}),r.qZA()}if(2&de){const I=ut.$implicit,Z=r.oxw(2);r.Q6J("removeIcon",Z.removeIcon)("label",I.nzLabel)("disabled",I.nzDisabled||Z.disabled)("contentTemplateOutlet",I.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",I.contentTemplateOutletContext)}}function Ke(de,ut){if(1&de){const I=r.EpF();r.ynx(0),r.YNc(1,Mt,1,6,"nz-select-item",7),r.TgZ(2,"nz-select-search",8),r.NdJ("isComposingChange",function(oe){return r.CHM(I),r.oxw().isComposingChange(oe)})("valueChange",function(oe){return r.CHM(I),r.oxw().onInputValueChange(oe)}),r.qZA(),r.BQk()}if(2&de){const I=r.oxw();r.xp6(1),r.Q6J("ngForOf",I.listOfSlicedItem)("ngForTrackBy",I.trackValue),r.xp6(1),r.Q6J("nzId",I.nzId)("disabled",I.disabled)("value",I.inputValue)("autofocus",I.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",I.open)}}function B(de,ut){if(1&de&&r._UZ(0,"nz-select-placeholder",10),2&de){const I=r.oxw();r.Q6J("placeholder",I.placeHolder)}}function G(de,ut){1&de&&r._UZ(0,"i",2)}function Q(de,ut){1&de&&r._UZ(0,"i",7)}function Fe(de,ut){1&de&&r._UZ(0,"i",8)}function Je(de,ut){if(1&de&&(r.ynx(0),r.YNc(1,Q,1,0,"i",5),r.YNc(2,Fe,1,0,"i",6),r.BQk()),2&de){const I=r.oxw(2);r.xp6(1),r.Q6J("ngIf",!I.search),r.xp6(1),r.Q6J("ngIf",I.search)}}function vt(de,ut){if(1&de&&(r.ynx(0),r._UZ(1,"i",10),r.BQk()),2&de){const I=ut.$implicit;r.xp6(1),r.Q6J("nzType",I)}}function Tt(de,ut){if(1&de&&r.YNc(0,vt,2,1,"ng-container",9),2&de){const I=r.oxw(2);r.Q6J("nzStringTemplateOutlet",I.suffixIcon)}}function je(de,ut){if(1&de&&(r.YNc(0,Je,3,2,"ng-container",3),r.YNc(1,Tt,1,1,"ng-template",null,4,r.W1O)),2&de){const I=r.MAs(2),Z=r.oxw();r.Q6J("ngIf",!Z.suffixIcon)("ngIfElse",I)}}function zt(de,ut){1&de&&r._UZ(0,"i",1)}function jt(de,ut){if(1&de&&r._UZ(0,"nz-select-arrow",5),2&de){const I=r.oxw();r.Q6J("loading",I.nzLoading)("search",I.nzOpen&&I.nzShowSearch)("suffixIcon",I.nzSuffixIcon)}}function Bt(de,ut){if(1&de){const I=r.EpF();r.TgZ(0,"nz-select-clear",6),r.NdJ("clear",function(){return r.CHM(I),r.oxw().onClearSelection()}),r.qZA()}if(2&de){const I=r.oxw();r.Q6J("clearIcon",I.nzClearIcon)}}function vn(de,ut){if(1&de){const I=r.EpF();r.TgZ(0,"nz-option-container",7),r.NdJ("keydown",function(oe){return r.CHM(I),r.oxw().onKeyDown(oe)})("itemClick",function(oe){return r.CHM(I),r.oxw().onItemClick(oe)})("scrollToBottom",function(){return r.CHM(I),r.oxw().nzScrollToBottom.emit()}),r.qZA()}if(2&de){const I=r.oxw();r.ekj("ant-select-dropdown-placement-bottomLeft","bottom"===I.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===I.dropDownPosition),r.Q6J("ngStyle",I.nzDropdownStyle)("itemSize",I.nzOptionHeightPx)("maxItemLength",I.nzOptionOverflowSize)("matchWidth",I.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",null==I.noAnimation?null:I.noAnimation.nzNoAnimation)("nzNoAnimation",null==I.noAnimation?null:I.noAnimation.nzNoAnimation)("listOfContainerItem",I.listOfContainerItem)("menuItemSelectedIcon",I.nzMenuItemSelectedIcon)("notFoundContent",I.nzNotFoundContent)("activatedValue",I.activatedValue)("listOfSelectedValue",I.listOfValue)("dropdownRender",I.nzDropdownRender)("compareWith",I.compareWith)("mode",I.nzMode)}}let cn=(()=>{class de{constructor(){this.nzLabel=null,this.changes=new o.xQ}ngOnChanges(){this.changes.next()}}return de.\u0275fac=function(I){return new(I||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[r.TTD],ngContentSelectors:we,decls:1,vars:0,template:function(I,Z){1&I&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),de})(),an=(()=>{class de{constructor(){this.nzLabel=null}}return de.\u0275fac=function(I){return new(I||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(I,Z){1&I&&r.YNc(0,ue,2,1,"ng-container",0),2&I&&r.Q6J("nzStringTemplateOutlet",Z.nzLabel)},directives:[C.f],encapsulation:2,changeDetection:0}),de})(),nn=(()=>{class de{constructor(){this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new r.vpe,this.itemHover=new r.vpe}onHostMouseEnter(){this.disabled||this.itemHover.next(this.value)}onHostClick(){this.disabled||this.itemClick.next(this.value)}ngOnChanges(I){const{value:Z,activatedValue:oe,listOfSelectedValue:De}=I;(Z||De)&&(this.selected=this.listOfSelectedValue.some(ft=>this.compareWith(ft,this.value))),(Z||oe)&&(this.activated=this.compareWith(this.activatedValue,this.value))}}return de.\u0275fac=function(I){return new(I||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(I,Z){1&I&&r.NdJ("mouseenter",function(){return Z.onHostMouseEnter()})("click",function(){return Z.onHostClick()}),2&I&&(r.uIk("title",Z.label),r.ekj("ant-select-item-option-grouped",Z.grouped)("ant-select-item-option-selected",Z.selected&&!Z.disabled)("ant-select-item-option-disabled",Z.disabled)("ant-select-item-option-active",Z.activated&&!Z.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[r.TTD],decls:4,vars:3,consts:[[1,"ant-select-item-option-content"],[4,"ngIf"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(I,Z){1&I&&(r.TgZ(0,"div",0),r.YNc(1,Ye,2,1,"ng-container",1),r.YNc(2,rt,2,1,"ng-container",1),r.qZA(),r.YNc(3,Ae,2,2,"div",2)),2&I&&(r.xp6(1),r.Q6J("ngIf",!Z.customContent),r.xp6(1),r.Q6J("ngIf",Z.customContent),r.xp6(1),r.Q6J("ngIf",Z.showState&&Z.selected))},directives:[E.O5,E.tP,S.Ls,w.w],encapsulation:2,changeDetection:0}),de})(),Gn=(()=>{class de{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new r.vpe,this.scrollToBottom=new r.vpe,this.scrolledIndex=0}onItemClick(I){this.itemClick.emit(I)}onItemHover(I){this.activatedValue=I}trackValue(I,Z){return Z.key}onScrolledIndexChange(I){this.scrolledIndex=I,I===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const I=this.listOfContainerItem.findIndex(Z=>this.compareWith(Z.key,this.activatedValue));(I=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(I||0)}ngOnChanges(I){const{listOfContainerItem:Z,activatedValue:oe}=I;(Z||oe)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return de.\u0275fac=function(I){return new(I||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-option-container"]],viewQuery:function(I,Z){if(1&I&&r.Gf(b.N7,7),2&I){let oe;r.iGM(oe=r.CRH())&&(Z.cdkVirtualScrollViewport=oe.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[r.TTD],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(I,Z){1&I&&(r.TgZ(0,"div"),r.YNc(1,mt,2,1,"div",0),r.TgZ(2,"cdk-virtual-scroll-viewport",1),r.NdJ("scrolledIndexChange",function(De){return Z.onScrolledIndexChange(De)}),r.YNc(3,It,3,3,"ng-template",2),r.qZA(),r.YNc(4,Xe,0,0,"ng-template",3),r.qZA()),2&I&&(r.xp6(1),r.Q6J("ngIf",0===Z.listOfContainerItem.length),r.xp6(1),r.Udp("height",Z.listOfContainerItem.length*Z.itemSize,"px")("max-height",Z.itemSize*Z.maxItemLength,"px"),r.ekj("full-width",!Z.matchWidth),r.Q6J("itemSize",Z.itemSize)("maxBufferPx",Z.itemSize*Z.maxItemLength)("minBufferPx",Z.itemSize*Z.maxItemLength),r.xp6(1),r.Q6J("cdkVirtualForOf",Z.listOfContainerItem)("cdkVirtualForTrackBy",Z.trackValue)("cdkVirtualForTemplateCacheSize",0),r.xp6(1),r.Q6J("ngTemplateOutlet",Z.dropdownRender))},directives:[D.gB,b.N7,an,nn,E.O5,b.xd,b.x0,E.RF,E.n9,E.tP],encapsulation:2,changeDetection:0}),de})(),xn=(()=>{class de{constructor(I,Z){this.nzOptionGroupComponent=I,this.destroy$=Z,this.changes=new o.xQ,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,M.O)(!0),(0,k.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return de.\u0275fac=function(I){return new(I||de)(r.Y36(cn,8),r.Y36(ie.kn))},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-option"]],viewQuery:function(I,Z){if(1&I&&r.Gf(r.Rgc,7),2&I){let oe;r.iGM(oe=r.CRH())&&(Z.template=oe.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[r._Bn([ie.kn]),r.TTD],ngContentSelectors:we,decls:1,vars:0,template:function(I,Z){1&I&&(r.F$t(),r.YNc(0,lt,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzDisabled",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzHide",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzCustomContent",void 0),de})(),yn=(()=>{class de{constructor(I,Z,oe){this.elementRef=I,this.renderer=Z,this.focusMonitor=oe,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new r.vpe,this.isComposingChange=new r.vpe}setCompositionState(I){this.isComposingChange.next(I)}onValueChange(I){this.value=I,this.valueChange.next(I),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const I=this.mirrorElement.nativeElement,Z=this.elementRef.nativeElement,oe=this.inputElement.nativeElement;this.renderer.removeStyle(Z,"width"),I.innerHTML=this.renderer.createText(`${oe.value} `),this.renderer.setStyle(Z,"width",`${I.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(I){const Z=this.inputElement.nativeElement,{focusTrigger:oe,showInput:De}=I;De&&(this.showInput?this.renderer.removeAttribute(Z,"readonly"):this.renderer.setAttribute(Z,"readonly","readonly")),oe&&!0===oe.currentValue&&!1===oe.previousValue&&Z.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return de.\u0275fac=function(I){return new(I||de)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(me.tE))},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-search"]],viewQuery:function(I,Z){if(1&I&&(r.Gf(ct,7),r.Gf(Lt,5)),2&I){let oe;r.iGM(oe=r.CRH())&&(Z.inputElement=oe.first),r.iGM(oe=r.CRH())&&(Z.mirrorElement=oe.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[r._Bn([{provide:Re.ve,useValue:!1}]),r.TTD],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(I,Z){1&I&&(r.TgZ(0,"input",0,1),r.NdJ("ngModelChange",function(De){return Z.onValueChange(De)})("compositionstart",function(){return Z.setCompositionState(!0)})("compositionend",function(){return Z.setCompositionState(!1)}),r.qZA(),r.YNc(2,Ie,2,0,"span",2)),2&I&&(r.Udp("opacity",Z.showInput?null:0),r.Q6J("ngModel",Z.value)("disabled",Z.disabled),r.uIk("id",Z.nzId)("autofocus",Z.autofocus?"autofocus":null),r.xp6(2),r.Q6J("ngIf",Z.mirrorSync))},directives:[Re.Fj,Re.JJ,Re.On,E.O5],encapsulation:2,changeDetection:0}),de})(),_n=(()=>{class de{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new r.vpe}onDelete(I){I.preventDefault(),I.stopPropagation(),this.disabled||this.delete.next(I)}}return de.\u0275fac=function(I){return new(I||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(I,Z){2&I&&(r.uIk("title",Z.label),r.ekj("ant-select-selection-item-disabled",Z.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(I,Z){1&I&&(r.YNc(0,Et,4,2,"ng-container",0),r.YNc(1,en,2,2,"span",1)),2&I&&(r.Q6J("nzStringTemplateOutlet",Z.contentTemplateOutlet)("nzStringTemplateOutletContext",r.VKq(3,Ne,Z.contentTemplateOutletContext)),r.xp6(1),r.Q6J("ngIf",Z.deletable&&!Z.disabled))},directives:[C.f,E.O5,S.Ls,w.w],encapsulation:2,changeDetection:0}),de})(),un=(()=>{class de{constructor(){this.placeholder=null}}return de.\u0275fac=function(I){return new(I||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(I,Z){1&I&&r.YNc(0,Ve,2,1,"ng-container",0),2&I&&r.Q6J("nzStringTemplateOutlet",Z.placeholder)},directives:[C.f],encapsulation:2,changeDetection:0}),de})(),Dt=(()=>{class de{constructor(I,Z,oe){this.elementRef=I,this.ngZone=Z,this.noAnimation=oe,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new r.vpe,this.inputValueChange=new r.vpe,this.deleteItem=new r.vpe,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new o.xQ}updateTemplateVariable(){const I=0===this.listOfTopItem.length;this.isShowPlaceholder=I&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!I&&!this.isComposing&&!this.inputValue}isComposingChange(I){this.isComposing=I,this.updateTemplateVariable()}onInputValueChange(I){I!==this.inputValue&&(this.inputValue=I,this.updateTemplateVariable(),this.inputValueChange.emit(I),this.tokenSeparate(I,this.tokenSeparators))}tokenSeparate(I,Z){if(I&&I.length&&Z.length&&"default"!==this.mode&&((ft,Jt)=>{for(let ee=0;ee0)return!0;return!1})(I,Z)){const ft=((ft,Jt)=>{const ee=new RegExp(`[${Jt.join()}]`),T=ft.split(ee).filter(p=>p);return[...new Set(T)]})(I,Z);this.tokenize.next(ft)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(I,Z){return Z.nzValue}onDeleteItem(I){!this.disabled&&!I.nzDisabled&&this.deleteItem.next(I)}ngOnChanges(I){const{listOfTopItem:Z,maxTagCount:oe,customTemplate:De,maxTagPlaceholder:ft}=I;if(Z&&this.updateTemplateVariable(),Z||oe||De||ft){const Jt=this.listOfTopItem.slice(0,this.maxTagCount).map(ee=>({nzLabel:ee.nzLabel,nzValue:ee.nzValue,nzDisabled:ee.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:ee}));if(this.listOfTopItem.length>this.maxTagCount){const ee=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,T=this.listOfTopItem.map(h=>h.nzValue),p={nzLabel:ee,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:T.slice(this.maxTagCount)};Jt.push(p)}this.listOfSlicedItem=Jt}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,l.R)(this.elementRef.nativeElement,"click").pipe((0,k.R)(this.destroy$)).subscribe(I=>{I.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,l.R)(this.elementRef.nativeElement,"keydown").pipe((0,k.R)(this.destroy$)).subscribe(I=>{if(I.target instanceof HTMLInputElement){const Z=I.target.value;I.keyCode===ve.ZH&&"default"!==this.mode&&!Z&&this.listOfTopItem.length>0&&(I.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})})}ngOnDestroy(){this.destroy$.next()}}return de.\u0275fac=function(I){return new(I||de)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(fe.P,9))},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-top-control"]],viewQuery:function(I,Z){if(1&I&&r.Gf(yn,5),2&I){let oe;r.iGM(oe=r.CRH())&&(Z.nzSelectSearchComponent=oe.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[r.TTD],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(I,Z){1&I&&(r.ynx(0,0),r.YNc(1,yt,3,8,"ng-container",1),r.YNc(2,Ke,3,9,"ng-container",2),r.BQk(),r.YNc(3,B,1,1,"nz-select-placeholder",3)),2&I&&(r.Q6J("ngSwitch",Z.mode),r.xp6(1),r.Q6J("ngSwitchCase","default"),r.xp6(2),r.Q6J("ngIf",Z.isShowPlaceholder))},directives:[yn,_n,un,E.RF,E.n9,E.O5,E.ED,E.sg,w.w],encapsulation:2,changeDetection:0}),de})(),it=(()=>{class de{constructor(){this.loading=!1,this.search=!1,this.suffixIcon=null}}return de.\u0275fac=function(I){return new(I||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(I,Z){2&I&&r.ekj("ant-select-arrow-loading",Z.loading)},inputs:{loading:"loading",search:"search",suffixIcon:"suffixIcon"},decls:3,vars:2,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(I,Z){if(1&I&&(r.YNc(0,G,1,0,"i",0),r.YNc(1,je,3,2,"ng-template",null,1,r.W1O)),2&I){const oe=r.MAs(2);r.Q6J("ngIf",Z.loading)("ngIfElse",oe)}},directives:[E.O5,S.Ls,w.w,C.f],encapsulation:2,changeDetection:0}),de})(),Ge=(()=>{class de{constructor(){this.clearIcon=null,this.clear=new r.vpe}onClick(I){I.preventDefault(),I.stopPropagation(),this.clear.emit(I)}}return de.\u0275fac=function(I){return new(I||de)},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(I,Z){1&I&&r.NdJ("click",function(De){return Z.onClick(De)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(I,Z){1&I&&r.YNc(0,zt,1,0,"i",0),2&I&&r.Q6J("ngIf",!Z.clearIcon)("ngIfElse",Z.clearIcon)},directives:[E.O5,S.Ls,w.w],encapsulation:2,changeDetection:0}),de})();const St=(de,ut)=>!(!ut||!ut.nzLabel)&&ut.nzLabel.toString().toLowerCase().indexOf(de.toLowerCase())>-1;let xt=(()=>{class de{constructor(I,Z,oe,De,ft,Jt,ee,T){this.destroy$=I,this.nzConfigService=Z,this.cdr=oe,this.elementRef=De,this.platform=ft,this.focusMonitor=Jt,this.directionality=ee,this.noAnimation=T,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=St,this.compareWith=(p,h)=>p===h,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new r.vpe,this.nzScrollToBottom=new r.vpe,this.nzOpenChange=new r.vpe,this.nzBlur=new r.vpe,this.nzFocus=new r.vpe,this.listOfValue$=new K.X([]),this.listOfTemplateItem$=new K.X([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottom",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr"}set nzShowArrow(I){this._nzShowArrow=I}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(I){return{nzValue:I,nzLabel:I,type:"item"}}onItemClick(I){if(this.activatedValue=I,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],I))&&this.updateListOfValue([I]),this.setOpenState(!1);else{const Z=this.listOfValue.findIndex(oe=>this.compareWith(oe,I));if(-1!==Z){const oe=this.listOfValue.filter((De,ft)=>ft!==Z);this.updateListOfValue(oe)}else if(this.listOfValue.length!this.compareWith(oe,I.nzValue));this.updateListOfValue(Z),this.clearInput()}onHostClick(){this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.setOpenState(!this.nzOpen)}updateListOfContainerItem(){let I=this.listOfTagAndTemplateItem.filter(De=>!De.nzHide).filter(De=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,De));if("tags"===this.nzMode&&this.searchValue){const De=this.listOfTagAndTemplateItem.find(ft=>ft.nzLabel===this.searchValue);if(De)this.activatedValue=De.nzValue;else{const ft=this.generateTagItem(this.searchValue);I=[ft,...I],this.activatedValue=ft.nzValue}}const Z=I.find(De=>this.compareWith(De.nzValue,this.listOfValue[0]))||I[0];this.activatedValue=Z&&Z.nzValue||null;let oe=[];this.isReactiveDriven?oe=[...new Set(this.nzOptions.filter(De=>De.groupLabel).map(De=>De.groupLabel))]:this.listOfNzOptionGroupComponent&&(oe=this.listOfNzOptionGroupComponent.map(De=>De.nzLabel)),oe.forEach(De=>{const ft=I.findIndex(Jt=>De===Jt.groupLabel);ft>-1&&I.splice(ft,0,{groupLabel:De,type:"group",key:De})}),this.listOfContainerItem=[...I],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(I){const oe=((De,ft)=>"default"===this.nzMode?De.length>0?De[0]:null:De)(I);this.value!==oe&&(this.listOfValue=I,this.listOfValue$.next(I),this.value=oe,this.onChange(this.value))}onTokenSeparate(I){const Z=this.listOfTagAndTemplateItem.filter(oe=>-1!==I.findIndex(De=>De===oe.nzLabel)).map(oe=>oe.nzValue).filter(oe=>-1===this.listOfValue.findIndex(De=>this.compareWith(De,oe)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...Z]);else if("tags"===this.nzMode){const oe=I.filter(De=>-1===this.listOfTagAndTemplateItem.findIndex(ft=>ft.nzLabel===De));this.updateListOfValue([...this.listOfValue,...Z,...oe])}this.clearInput()}onOverlayKeyDown(I){I.keyCode===ve.hY&&this.setOpenState(!1)}onKeyDown(I){if(this.nzDisabled)return;const Z=this.listOfContainerItem.filter(De=>"item"===De.type).filter(De=>!De.nzDisabled),oe=Z.findIndex(De=>this.compareWith(De.nzValue,this.activatedValue));switch(I.keyCode){case ve.LH:I.preventDefault(),this.nzOpen&&(this.activatedValue=Z[oe>0?oe-1:Z.length-1].nzValue);break;case ve.JH:I.preventDefault(),this.nzOpen?this.activatedValue=Z[oe{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,I!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){(0,He.e)(()=>{var I,Z;null===(Z=null===(I=this.cdkConnectedOverlay)||void 0===I?void 0:I.overlayRef)||void 0===Z||Z.updatePosition()})}writeValue(I){if(this.value!==I){this.value=I;const oe=((De,ft)=>null==De?[]:"default"===this.nzMode?[De]:De)(I);this.listOfValue=oe,this.listOfValue$.next(oe),this.cdr.markForCheck()}}registerOnChange(I){this.onChange=I}registerOnTouched(I){this.onTouched=I}setDisabledState(I){this.nzDisabled=I,I&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(I){const{nzOpen:Z,nzDisabled:oe,nzOptions:De}=I;if(Z&&this.onOpenChange(),oe&&this.nzDisabled&&this.setOpenState(!1),De){this.isReactiveDriven=!0;const Jt=(this.nzOptions||[]).map(ee=>({template:ee.label instanceof r.Rgc?ee.label:null,nzLabel:"string"==typeof ee.label||"number"==typeof ee.label?ee.label:null,nzValue:ee.value,nzDisabled:ee.disabled||!1,nzHide:ee.hide||!1,nzCustomContent:ee.label instanceof r.Rgc,groupLabel:ee.groupLabel||null,type:"item",key:ee.value}));this.listOfTemplateItem$.next(Jt)}}ngOnInit(){var I;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,k.R)(this.destroy$)).subscribe(Z=>{Z?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,m.aj)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,k.R)(this.destroy$)).subscribe(([Z,oe])=>{const De=Z.filter(()=>"tags"===this.nzMode).filter(ft=>-1===oe.findIndex(Jt=>this.compareWith(Jt.nzValue,ft))).map(ft=>this.listOfTopItem.find(Jt=>this.compareWith(Jt.nzValue,ft))||this.generateTagItem(ft));this.listOfTagAndTemplateItem=[...oe,...De],this.listOfTopItem=this.listOfValue.map(ft=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(Jt=>this.compareWith(ft,Jt.nzValue))).filter(ft=>!!ft),this.updateListOfContainerItem()}),null===(I=this.directionality.change)||void 0===I||I.pipe((0,k.R)(this.destroy$)).subscribe(Z=>{this.dir=Z,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,k.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value}ngAfterContentInit(){this.isReactiveDriven||(0,A.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,M.O)(!0),(0,N.w)(()=>(0,A.T)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(I=>I.changes),...this.listOfNzOptionGroupComponent.map(I=>I.changes)).pipe((0,M.O)(!0))),(0,k.R)(this.destroy$)).subscribe(()=>{const I=this.listOfNzOptionComponent.toArray().map(Z=>{const{template:oe,nzLabel:De,nzValue:ft,nzDisabled:Jt,nzHide:ee,nzCustomContent:T,groupLabel:p}=Z;return{template:oe,nzLabel:De,nzValue:ft,nzDisabled:Jt,nzHide:ee,nzCustomContent:T,groupLabel:p,type:"item",key:ft}});this.listOfTemplateItem$.next(I),this.cdr.markForCheck()})}ngOnDestroy(){(0,He.h)(this.requestId),this.focusMonitor.stopMonitoring(this.elementRef)}}return de.\u0275fac=function(I){return new(I||de)(r.Y36(ie.kn),r.Y36(Ue.jY),r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(U.t4),r.Y36(me.tE),r.Y36(J.Is,8),r.Y36(fe.P,9))},de.\u0275cmp=r.Xpm({type:de,selectors:[["nz-select"]],contentQueries:function(I,Z,oe){if(1&I&&(r.Suo(oe,xn,5),r.Suo(oe,cn,5)),2&I){let De;r.iGM(De=r.CRH())&&(Z.listOfNzOptionComponent=De),r.iGM(De=r.CRH())&&(Z.listOfNzOptionGroupComponent=De)}},viewQuery:function(I,Z){if(1&I&&(r.Gf(Le.xu,7,r.SBq),r.Gf(Le.pI,7),r.Gf(Dt,7),r.Gf(cn,7,r.SBq),r.Gf(Dt,7,r.SBq)),2&I){let oe;r.iGM(oe=r.CRH())&&(Z.originElement=oe.first),r.iGM(oe=r.CRH())&&(Z.cdkConnectedOverlay=oe.first),r.iGM(oe=r.CRH())&&(Z.nzSelectTopControlComponent=oe.first),r.iGM(oe=r.CRH())&&(Z.nzOptionGroupComponentElement=oe.first),r.iGM(oe=r.CRH())&&(Z.nzSelectTopControlComponentElement=oe.first)}},hostAttrs:[1,"ant-select"],hostVars:24,hostBindings:function(I,Z){1&I&&r.NdJ("click",function(){return Z.onHostClick()}),2&I&&r.ekj("ant-select-lg","large"===Z.nzSize)("ant-select-sm","small"===Z.nzSize)("ant-select-show-arrow",Z.nzShowArrow)("ant-select-disabled",Z.nzDisabled)("ant-select-show-search",(Z.nzShowSearch||"default"!==Z.nzMode)&&!Z.nzDisabled)("ant-select-allow-clear",Z.nzAllowClear)("ant-select-borderless",Z.nzBorderless)("ant-select-open",Z.nzOpen)("ant-select-focused",Z.nzOpen||Z.focused)("ant-select-single","default"===Z.nzMode)("ant-select-multiple","default"!==Z.nzMode)("ant-select-rtl","rtl"===Z.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[r._Bn([ie.kn,{provide:Re.JU,useExisting:(0,r.Gpc)(()=>de),multi:!0}]),r.TTD],decls:5,vars:24,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"loading","search","suffixIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","overlayKeydown","overlayOutsideClick","detach","positionChange"],[3,"loading","search","suffixIcon"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(I,Z){if(1&I&&(r.TgZ(0,"nz-select-top-control",0,1),r.NdJ("inputValueChange",function(De){return Z.onInputValueChange(De)})("tokenize",function(De){return Z.onTokenSeparate(De)})("deleteItem",function(De){return Z.onItemDelete(De)})("keydown",function(De){return Z.onKeyDown(De)}),r.qZA(),r.YNc(2,jt,1,3,"nz-select-arrow",2),r.YNc(3,Bt,1,1,"nz-select-clear",3),r.YNc(4,vn,1,19,"ng-template",4),r.NdJ("overlayKeydown",function(De){return Z.onOverlayKeyDown(De)})("overlayOutsideClick",function(De){return Z.onClickOutside(De)})("detach",function(){return Z.setOpenState(!1)})("positionChange",function(De){return Z.onPositionChange(De)})),2&I){const oe=r.MAs(1);r.Q6J("nzId",Z.nzId)("open",Z.nzOpen)("disabled",Z.nzDisabled)("mode",Z.nzMode)("@.disabled",null==Z.noAnimation?null:Z.noAnimation.nzNoAnimation)("nzNoAnimation",null==Z.noAnimation?null:Z.noAnimation.nzNoAnimation)("maxTagPlaceholder",Z.nzMaxTagPlaceholder)("removeIcon",Z.nzRemoveIcon)("placeHolder",Z.nzPlaceHolder)("maxTagCount",Z.nzMaxTagCount)("customTemplate",Z.nzCustomTemplate)("tokenSeparators",Z.nzTokenSeparators)("showSearch",Z.nzShowSearch)("autofocus",Z.nzAutoFocus)("listOfTopItem",Z.listOfTopItem),r.xp6(2),r.Q6J("ngIf",Z.nzShowArrow),r.xp6(1),r.Q6J("ngIf",Z.nzAllowClear&&!Z.nzDisabled&&Z.listOfValue.length),r.xp6(1),r.Q6J("cdkConnectedOverlayHasBackdrop",Z.nzBackdrop)("cdkConnectedOverlayMinWidth",Z.nzDropdownMatchSelectWidth?null:Z.triggerWidth)("cdkConnectedOverlayWidth",Z.nzDropdownMatchSelectWidth?Z.triggerWidth:null)("cdkConnectedOverlayOrigin",oe)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",Z.nzDropdownClassName)("cdkConnectedOverlayOpen",Z.nzOpen)}},directives:[Dt,it,Ge,Gn,w.w,Le.xu,fe.P,E.O5,Le.pI,Me.hQ,E.PC],encapsulation:2,data:{animation:[ae.mF]},changeDetection:0}),(0,z.gn)([(0,Ue.oS)()],de.prototype,"nzSuffixIcon",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzAllowClear",void 0),(0,z.gn)([(0,Ue.oS)(),(0,ce.yF)()],de.prototype,"nzBorderless",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzShowSearch",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzLoading",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzAutoFocus",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzAutoClearSearchValue",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzServerSearch",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzDisabled",void 0),(0,z.gn)([(0,ce.yF)()],de.prototype,"nzOpen",void 0),(0,z.gn)([(0,Ue.oS)(),(0,ce.yF)()],de.prototype,"nzBackdrop",void 0),de})(),ge=(()=>{class de{}return de.\u0275fac=function(I){return new(I||de)},de.\u0275mod=r.oAB({type:de}),de.\u0275inj=r.cJS({imports:[[J.vT,E.ez,se.YI,Re.u5,U.ud,Le.U8,S.PV,C.T,D.Xo,Me.e4,fe.g,w.a,b.Cl,me.rt]]}),de})()},404:(Ft,Pe,c)=>{c.d(Pe,{XK:()=>Ue,cg:()=>He,Mg:()=>ve,SY:()=>ae,pu:()=>Re});var r=c(655),o=c(5e3),l=c(8076),K=c(8693),m=c(1721),A=c(8929),b=c(5778),D=c(7625),C=c(6950),E=c(4832),S=c(9439),w=c(226),z=c(2845),M=c(9808),k=c(969);const N=["overlay"];function ie(me,fe){if(1&me&&(o.ynx(0),o._uU(1),o.BQk()),2&me){const U=o.oxw(2);o.xp6(1),o.Oqu(U.nzTitle)}}function ce(me,fe){if(1&me&&(o.TgZ(0,"div",2),o.TgZ(1,"div",3),o.TgZ(2,"div",4),o._UZ(3,"span",5),o.qZA(),o.TgZ(4,"div",6),o.YNc(5,ie,2,1,"ng-container",7),o.qZA(),o.qZA(),o.qZA()),2&me){const U=o.oxw();o.ekj("ant-tooltip-rtl","rtl"===U.dir),o.Q6J("ngClass",U._classMap)("ngStyle",U.nzOverlayStyle)("@.disabled",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)("nzNoAnimation",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),o.xp6(3),o.Q6J("ngStyle",U._contentStyleMap),o.xp6(1),o.Q6J("ngStyle",U._contentStyleMap),o.xp6(1),o.Q6J("nzStringTemplateOutlet",U.nzTitle)("nzStringTemplateOutletContext",U.nzTitleContext)}}let ve=(()=>{class me{constructor(U,J,Me,se,we,ue){this.elementRef=U,this.hostView=J,this.resolver=Me,this.renderer=se,this.noAnimation=we,this.nzConfigService=ue,this.visibleChange=new o.vpe,this.internalVisible=!1,this.destroy$=new A.xQ,this.triggerDisposables=[]}get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return void 0!==this.trigger?this.trigger:"hover"}get _placement(){const U=this.placement;return Array.isArray(U)&&U.length>0?U:"string"==typeof U&&U?[U]:["top"]}get _visible(){return(void 0!==this.visible?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}ngOnChanges(U){const{trigger:J}=U;J&&!J.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(U)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){var U;null===(U=this.component)||void 0===U||U.show()}hide(){var U;null===(U=this.component)||void 0===U||U.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const U=this.componentRef;this.component=U.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),U.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties(),this.component.nzVisibleChange.pipe((0,b.x)(),(0,D.R)(this.destroy$)).subscribe(J=>{this.internalVisible=J,this.visibleChange.emit(J)})}registerTriggers(){const U=this.elementRef.nativeElement,J=this.trigger;if(this.removeTriggerListeners(),"hover"===J){let Me;this.triggerDisposables.push(this.renderer.listen(U,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(U,"mouseleave",()=>{var se;this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),(null===(se=this.component)||void 0===se?void 0:se.overlay.overlayRef)&&!Me&&(Me=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(Me,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(Me,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===J?(this.triggerDisposables.push(this.renderer.listen(U,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(U,"focusout",()=>this.hide()))):"click"===J&&this.triggerDisposables.push(this.renderer.listen(U,"click",Me=>{Me.preventDefault(),this.show()}))}updatePropertiesByChanges(U){this.updatePropertiesByKeys(Object.keys(U))}updatePropertiesByKeys(U){var J;const Me=Object.assign({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(U||Object.keys(Me).filter(se=>!se.startsWith("directive"))).forEach(se=>{if(Me[se]){const[we,ue]=Me[se];this.updateComponentValue(we,ue())}}),null===(J=this.component)||void 0===J||J.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(U,J){void 0!==J&&(this.component[U]=J)}delayEnterLeave(U,J,Me=-1){this.delayTimer?this.clearTogglingTimer():Me>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,J?this.show():this.hide()},1e3*Me):J&&U?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(U=>U()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return me.\u0275fac=function(U){return new(U||me)(o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(o._Vd),o.Y36(o.Qsj),o.Y36(E.P),o.Y36(S.jY))},me.\u0275dir=o.lG2({type:me,features:[o.TTD]}),me})(),Le=(()=>{class me{constructor(U,J,Me){this.cdr=U,this.directionality=J,this.noAnimation=Me,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.nzVisibleChange=new A.xQ,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...C.Ek],this.destroy$=new A.xQ}set nzVisible(U){const J=(0,m.sw)(U);this._visible!==J&&(this._visible=J,this.nzVisibleChange.next(J))}get nzVisible(){return this._visible}set nzTrigger(U){this._trigger=U}get nzTrigger(){return this._trigger}set nzPlacement(U){const J=U.map(Me=>C.yW[Me]);this._positions=[...J,...C.Ek]}ngOnInit(){var U;null===(U=this.directionality.change)||void 0===U||U.pipe((0,D.R)(this.destroy$)).subscribe(J=>{this.dir=J,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){!this.nzVisible||(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(U){this.preferredPlacement=(0,C.d_)(U),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(U){this.origin=U,this.cdr.markForCheck()}onClickOutside(U){!this.origin.nativeElement.contains(U.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}}return me.\u0275fac=function(U){return new(U||me)(o.Y36(o.sBO),o.Y36(w.Is,8),o.Y36(E.P))},me.\u0275dir=o.lG2({type:me,viewQuery:function(U,J){if(1&U&&o.Gf(N,5),2&U){let Me;o.iGM(Me=o.CRH())&&(J.overlay=Me.first)}}}),me})();function Re(me){return!(me instanceof o.Rgc||""!==me&&(0,m.DX)(me))}let ae=(()=>{class me extends ve{constructor(U,J,Me,se,we){super(U,J,Me,se,we),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new o.vpe,this.componentRef=this.hostView.createComponent(Ue)}getProxyPropertyMap(){return Object.assign(Object.assign({},super.getProxyPropertyMap()),{nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]})}}return me.\u0275fac=function(U){return new(U||me)(o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(o._Vd),o.Y36(o.Qsj),o.Y36(E.P,9))},me.\u0275dir=o.lG2({type:me,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(U,J){2&U&&o.ekj("ant-tooltip-open",J.visible)},inputs:{title:["nzTooltipTitle","title"],titleContext:["nzTooltipTitleContext","titleContext"],directiveTitle:["nz-tooltip","directiveTitle"],trigger:["nzTooltipTrigger","trigger"],placement:["nzTooltipPlacement","placement"],origin:["nzTooltipOrigin","origin"],visible:["nzTooltipVisible","visible"],mouseEnterDelay:["nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzTooltipOverlayClassName","overlayClassName"],overlayStyle:["nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:["nzTooltipArrowPointAtCenter","arrowPointAtCenter"],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],features:[o.qOj]}),(0,r.gn)([(0,m.yF)()],me.prototype,"arrowPointAtCenter",void 0),me})(),Ue=(()=>{class me extends Le{constructor(U,J,Me){super(U,J,Me),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return Re(this.nzTitle)}updateStyles(){const U=this.nzColor&&(0,K.o2)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:U},this._contentStyleMap={backgroundColor:this.nzColor&&!U?this.nzColor:null}}}return me.\u0275fac=function(U){return new(U||me)(o.Y36(o.sBO),o.Y36(w.Is,8),o.Y36(E.P,9))},me.\u0275cmp=o.Xpm({type:me,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[o.qOj],decls:2,vars:5,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(U,J){1&U&&(o.YNc(0,ce,6,11,"ng-template",0,1,o.W1O),o.NdJ("overlayOutsideClick",function(se){return J.onClickOutside(se)})("detach",function(){return J.hide()})("positionChange",function(se){return J.onPositionChange(se)})),2&U&&o.Q6J("cdkConnectedOverlayOrigin",J.origin)("cdkConnectedOverlayOpen",J._visible)("cdkConnectedOverlayPositions",J._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",J.nzArrowPointAtCenter)},directives:[z.pI,C.hQ,M.mk,M.PC,E.P,k.f],encapsulation:2,data:{animation:[l.$C]},changeDetection:0}),me})(),He=(()=>{class me{}return me.\u0275fac=function(U){return new(U||me)},me.\u0275mod=o.oAB({type:me}),me.\u0275inj=o.cJS({imports:[[w.vT,M.ez,z.U8,k.T,C.e4,E.g]]}),me})()},3618:(Ft,Pe,c)=>{c.d(Pe,{ZU:()=>pt,ZJ:()=>Et});var r=c(226),o=c(9287),l=c(925),K=c(9808),m=c(5e3),A=c(969);let b=(()=>{class ot{}return ot.\u0275fac=function(Ne){return new(Ne||ot)},ot.\u0275dir=m.lG2({type:ot,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(Ne,Ve){2&Ne&&m.Udp("border","0")("background","transparent")("padding","0")("line-height","inherit")}}),ot})(),D=(()=>{class ot{}return ot.\u0275fac=function(Ne){return new(Ne||ot)},ot.\u0275mod=m.oAB({type:ot}),ot.\u0275inj=m.cJS({imports:[[K.ez]]}),ot})();var C=c(4170),E=c(647),S=c(1047),w=c(404),z=c(8929),M=c(2654),k=c(7625),N=c(2986),ie=c(655),ce=c(9439),ve=c(6987),Le=c(1721),Re=c(4090);function ae(ot,en){if(1&ot&&(m.ynx(0),m._UZ(1,"i",2),m.BQk()),2&ot){const Ne=en.$implicit;m.xp6(1),m.Q6J("nzType",Ne)}}const Ue=["textarea"];function He(ot,en){if(1&ot&&(m.ynx(0),m._UZ(1,"i",4),m.BQk()),2&ot){const Ne=en.$implicit;m.xp6(1),m.Q6J("nzType",Ne)}}function me(ot,en){if(1&ot){const Ne=m.EpF();m.TgZ(0,"button",2),m.NdJ("click",function(){return m.CHM(Ne),m.oxw().onClick()}),m.YNc(1,He,2,1,"ng-container",3),m.qZA()}if(2&ot){const Ne=m.oxw();m.Q6J("nzTooltipTitle",null===Ne.tooltip?null:Ne.tooltip||(null==Ne.locale?null:Ne.locale.edit)),m.xp6(1),m.Q6J("nzStringTemplateOutlet",Ne.icon)}}function fe(ot,en){if(1&ot){const Ne=m.EpF();m.ynx(0),m.TgZ(1,"textarea",5,6),m.NdJ("input",function(ye){return m.CHM(Ne),m.oxw().onInput(ye)})("blur",function(){return m.CHM(Ne),m.oxw().confirm()})("keydown.esc",function(){return m.CHM(Ne),m.oxw().onCancel()})("keydown.enter",function(ye){return m.CHM(Ne),m.oxw().onEnter(ye)}),m.qZA(),m.TgZ(3,"button",7),m.NdJ("click",function(){return m.CHM(Ne),m.oxw().confirm()}),m._UZ(4,"i",8),m.qZA(),m.BQk()}}const U=["ellipsisContainer"],J=["expandable"],Me=["contentTemplate"];function se(ot,en){1&ot&&m.Hsn(0,0,["*ngIf","!content"])}function we(ot,en){if(1&ot&&(m.YNc(0,se,1,0,"ng-content",1),m._uU(1)),2&ot){const Ne=en.content;m.Q6J("ngIf",!Ne),m.xp6(1),m.hij(" ",Ne," ")}}function ue(ot,en){}function Ye(ot,en){if(1&ot&&(m.ynx(0),m._uU(1),m.BQk()),2&ot){const Ne=m.oxw(3);m.xp6(1),m.Oqu(Ne.nzSuffix)}}const We=function(ot){return{content:ot}};function rt(ot,en){if(1&ot&&(m.ynx(0),m.YNc(1,ue,0,0,"ng-template",6),m.YNc(2,Ye,2,1,"ng-container",1),m.BQk()),2&ot){const Ne=m.oxw(2),Ve=m.MAs(1);m.xp6(1),m.Q6J("ngTemplateOutlet",Ve)("ngTemplateOutletContext",m.VKq(3,We,Ne.nzContent)),m.xp6(1),m.Q6J("ngIf",Ne.nzSuffix)}}function wt(ot,en){if(1&ot&&(m.ynx(0),m._uU(1),m.BQk()),2&ot){const Ne=m.oxw(3);m.xp6(1),m.Oqu(Ne.ellipsisStr)}}function Ae(ot,en){if(1&ot&&(m.ynx(0),m._uU(1),m.BQk()),2&ot){const Ne=m.oxw(3);m.xp6(1),m.Oqu(Ne.nzSuffix)}}function mt(ot,en){if(1&ot){const Ne=m.EpF();m.TgZ(0,"a",9,10),m.NdJ("click",function(){return m.CHM(Ne),m.oxw(3).onExpand()}),m._uU(2),m.qZA()}if(2&ot){const Ne=m.oxw(3);m.xp6(2),m.hij(" ",null==Ne.locale?null:Ne.locale.expand," ")}}function kt(ot,en){if(1&ot&&(m._UZ(0,"span",null,7),m.YNc(2,wt,2,1,"ng-container",1),m.YNc(3,Ae,2,1,"ng-container",1),m.YNc(4,mt,3,1,"a",8)),2&ot){const Ne=m.oxw(2);m.xp6(2),m.Q6J("ngIf",Ne.isEllipsis),m.xp6(1),m.Q6J("ngIf",Ne.nzSuffix),m.xp6(1),m.Q6J("ngIf",Ne.nzExpandable&&Ne.isEllipsis)}}function Ct(ot,en){if(1&ot&&(m.ynx(0),m.YNc(1,rt,3,5,"ng-container",4),m.YNc(2,kt,5,3,"ng-template",null,5,m.W1O),m.BQk()),2&ot){const Ne=m.MAs(3),Ve=m.oxw();m.xp6(1),m.Q6J("ngIf",Ve.expanded||!Ve.hasOperationsWithEllipsis&&1===Ve.nzEllipsisRows&&!Ve.hasEllipsisObservers||Ve.canCssEllipsis||Ve.nzSuffix&&Ve.expanded)("ngIfElse",Ne)}}function It(ot,en){if(1&ot){const Ne=m.EpF();m.TgZ(0,"nz-text-edit",11),m.NdJ("endEditing",function(ye){return m.CHM(Ne),m.oxw().onEndEditing(ye)})("startEditing",function(){return m.CHM(Ne),m.oxw().onStartEditing()}),m.qZA()}if(2&ot){const Ne=m.oxw();m.Q6J("text",Ne.nzContent)("icon",Ne.nzEditIcon)("tooltip",Ne.nzEditTooltip)}}function Xe(ot,en){if(1&ot){const Ne=m.EpF();m.TgZ(0,"nz-text-copy",12),m.NdJ("textCopy",function(ye){return m.CHM(Ne),m.oxw().onTextCopy(ye)}),m.qZA()}if(2&ot){const Ne=m.oxw();m.Q6J("text",Ne.copyText)("tooltips",Ne.nzCopyTooltips)("icons",Ne.nzCopyIcons)}}const lt=["*"];let ct=(()=>{class ot{constructor(Ne,Ve,ye,yt){this.host=Ne,this.cdr=Ve,this.clipboard=ye,this.i18n=yt,this.copied=!1,this.copyId=-1,this.nativeElement=this.host.nativeElement,this.copyTooltip=null,this.copedTooltip=null,this.copyIcon="copy",this.copedIcon="check",this.destroy$=new z.xQ,this.icons=["copy","check"],this.textCopy=new m.vpe}ngOnInit(){this.i18n.localeChange.pipe((0,k.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(Ne){const{tooltips:Ve,icons:ye}=Ne;Ve&&this.updateTooltips(),ye&&this.updateIcons()}ngOnDestroy(){clearTimeout(this.copyId),this.destroy$.next(),this.destroy$.complete()}onClick(){if(this.copied)return;this.copied=!0,this.cdr.detectChanges();const Ne=this.text;this.textCopy.emit(Ne),this.clipboard.copy(Ne),this.onCopied()}onCopied(){clearTimeout(this.copyId),this.copyId=setTimeout(()=>{this.copied=!1,this.cdr.detectChanges()},3e3)}updateTooltips(){var Ne,Ve,ye,yt;if(null===this.tooltips)this.copedTooltip=null,this.copyTooltip=null;else if(Array.isArray(this.tooltips)){const[Mt,Ke]=this.tooltips;this.copyTooltip=Mt||(null===(Ne=this.locale)||void 0===Ne?void 0:Ne.copy),this.copedTooltip=Ke||(null===(Ve=this.locale)||void 0===Ve?void 0:Ve.copied)}else this.copyTooltip=null===(ye=this.locale)||void 0===ye?void 0:ye.copy,this.copedTooltip=null===(yt=this.locale)||void 0===yt?void 0:yt.copied;this.cdr.markForCheck()}updateIcons(){const[Ne,Ve]=this.icons;this.copyIcon=Ne,this.copedIcon=Ve,this.cdr.markForCheck()}}return ot.\u0275fac=function(Ne){return new(Ne||ot)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(o.TU),m.Y36(C.wi))},ot.\u0275cmp=m.Xpm({type:ot,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],features:[m.TTD],decls:2,vars:4,consts:[["type","button","nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"nzTooltipTitle","click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(Ne,Ve){1&Ne&&(m.TgZ(0,"button",0),m.NdJ("click",function(){return Ve.onClick()}),m.YNc(1,ae,2,1,"ng-container",1),m.qZA()),2&Ne&&(m.ekj("ant-typography-copy-success",Ve.copied),m.Q6J("nzTooltipTitle",Ve.copied?Ve.copedTooltip:Ve.copyTooltip),m.xp6(1),m.Q6J("nzStringTemplateOutlet",Ve.copied?Ve.copedIcon:Ve.copyIcon))},directives:[b,w.SY,A.f,E.Ls],encapsulation:2,changeDetection:0}),ot})(),Lt=(()=>{class ot{constructor(Ne,Ve,ye,yt){this.zone=Ne,this.host=Ve,this.cdr=ye,this.i18n=yt,this.editing=!1,this.destroy$=new z.xQ,this.icon="edit",this.startEditing=new m.vpe,this.endEditing=new m.vpe(!0),this.nativeElement=this.host.nativeElement}ngOnInit(){this.i18n.localeChange.pipe((0,k.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onClick(){this.beforeText=this.text,this.currentText=this.beforeText,this.editing=!0,this.startEditing.emit(),this.focusAndSetValue()}confirm(){this.editing=!1,this.endEditing.emit(this.currentText)}onInput(Ne){this.currentText=Ne.target.value}onEnter(Ne){Ne.stopPropagation(),Ne.preventDefault(),this.confirm()}onCancel(){this.currentText=this.beforeText,this.confirm()}focusAndSetValue(){this.zone.onStable.pipe((0,N.q)(1),(0,k.R)(this.destroy$)).subscribe(()=>{var Ne;(null===(Ne=this.textarea)||void 0===Ne?void 0:Ne.nativeElement)&&(this.textarea.nativeElement.focus(),this.textarea.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck())})}}return ot.\u0275fac=function(Ne){return new(Ne||ot)(m.Y36(m.R0b),m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(C.wi))},ot.\u0275cmp=m.Xpm({type:ot,selectors:[["nz-text-edit"]],viewQuery:function(Ne,Ve){if(1&Ne&&(m.Gf(Ue,5),m.Gf(S.rh,5)),2&Ne){let ye;m.iGM(ye=m.CRH())&&(Ve.textarea=ye.first),m.iGM(ye=m.CRH())&&(Ve.autosizeDirective=ye.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],decls:2,vars:2,consts:[["nz-tooltip","","nz-trans-button","","class","ant-typography-edit",3,"nzTooltipTitle","click",4,"ngIf"],[4,"ngIf"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"nzTooltipTitle","click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-input","","nzAutosize","",3,"input","blur","keydown.esc","keydown.enter"],["textarea",""],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nz-icon","","nzType","enter"]],template:function(Ne,Ve){1&Ne&&(m.YNc(0,me,2,2,"button",0),m.YNc(1,fe,5,0,"ng-container",1)),2&Ne&&(m.Q6J("ngIf",!Ve.editing),m.xp6(1),m.Q6J("ngIf",Ve.editing))},directives:[K.O5,b,w.SY,A.f,E.Ls,S.Zp,S.rh],encapsulation:2,changeDetection:0}),ot})(),pt=(()=>{class ot{constructor(Ne,Ve,ye,yt,Mt,Ke,B,G,Q,Fe){this.nzConfigService=Ne,this.host=Ve,this.cdr=ye,this.viewContainerRef=yt,this.renderer=Mt,this.platform=Ke,this.i18n=B,this.resizeService=Q,this.directionality=Fe,this._nzModuleName="typography",this.nzCopyable=!1,this.nzEditable=!1,this.nzDisabled=!1,this.nzExpandable=!1,this.nzEllipsis=!1,this.nzCopyTooltips=void 0,this.nzCopyIcons=["copy","check"],this.nzEditTooltip=void 0,this.nzEditIcon="edit",this.nzEllipsisRows=1,this.nzContentChange=new m.vpe,this.nzCopy=new m.vpe,this.nzExpandChange=new m.vpe,this.nzOnEllipsis=new m.vpe,this.expandableBtnElementCache=null,this.editing=!1,this.cssEllipsis=!1,this.isEllipsis=!0,this.expanded=!1,this.ellipsisStr="...",this.dir="ltr",this.viewInit=!1,this.rfaId=-1,this.destroy$=new z.xQ,this.windowResizeSubscription=M.w.EMPTY,this.document=G}get hasEllipsisObservers(){return this.nzOnEllipsis.observers.length>0}get canCssEllipsis(){return this.nzEllipsis&&this.cssEllipsis&&!this.expanded&&!this.hasEllipsisObservers}get hasOperationsWithEllipsis(){return(this.nzCopyable||this.nzEditable||this.nzExpandable)&&this.nzEllipsis}get copyText(){return"string"==typeof this.nzCopyText?this.nzCopyText:this.nzContent}onTextCopy(Ne){this.nzCopy.emit(Ne)}onStartEditing(){this.editing=!0}onEndEditing(Ne){this.editing=!1,this.nzContentChange.emit(Ne),this.nzContent===Ne&&this.renderOnNextFrame(),this.cdr.markForCheck()}onExpand(){this.isEllipsis=!1,this.expanded=!0,this.nzExpandChange.emit(),this.nzOnEllipsis.emit(!1)}canUseCSSEllipsis(){return!(this.nzEditable||this.nzCopyable||this.nzExpandable||this.nzSuffix||this.hasEllipsisObservers)&&(0,Le.GL)(1===this.nzEllipsisRows?"textOverflow":"webkitLineClamp")}renderOnNextFrame(){(0,ve.h)(this.rfaId),this.viewInit&&this.nzEllipsis&&!(this.nzEllipsisRows<0)&&!this.expanded&&this.platform.isBrowser&&(this.rfaId=(0,ve.e)(()=>{this.syncEllipsis()}))}getOriginContentViewRef(){const Ne=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return Ne.detectChanges(),{viewRef:Ne,removeView:()=>{this.viewContainerRef.remove(this.viewContainerRef.indexOf(Ne))}}}syncEllipsis(){if(this.cssEllipsis)return;const{viewRef:Ne,removeView:Ve}=this.getOriginContentViewRef(),ye=[this.textCopyRef,this.textEditRef].filter(Q=>Q&&Q.nativeElement).map(Q=>Q.nativeElement),yt=this.getExpandableBtnElement();yt&&ye.push(yt);const{contentNodes:Mt,text:Ke,ellipsis:B}=(0,Le.L8)(this.host.nativeElement,this.nzEllipsisRows,Ne.rootNodes,ye,this.ellipsisStr,this.nzSuffix);Ve(),this.ellipsisText=Ke,B!==this.isEllipsis&&(this.isEllipsis=B,this.nzOnEllipsis.emit(B));const G=this.ellipsisContainer.nativeElement;for(;G.firstChild;)this.renderer.removeChild(G,G.firstChild);Mt.forEach(Q=>{this.renderer.appendChild(G,Q.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){const Ne=this.locale?this.locale.expand:"",Ve=this.expandableBtnElementCache;if(!Ve||Ve.innerText===Ne){const ye=this.document.createElement("a");ye.className="ant-typography-expand",ye.innerText=Ne,this.expandableBtnElementCache=ye}return this.expandableBtnElementCache}return this.expandableBtnElementCache=null,null}renderAndSubscribeWindowResize(){this.platform.isBrowser&&(this.windowResizeSubscription.unsubscribe(),this.cssEllipsis=this.canUseCSSEllipsis(),this.renderOnNextFrame(),this.windowResizeSubscription=this.resizeService.subscribe().pipe((0,k.R)(this.destroy$)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){var Ne;this.i18n.localeChange.pipe((0,k.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),null===(Ne=this.directionality.change)||void 0===Ne||Ne.pipe((0,k.R)(this.destroy$)).subscribe(Ve=>{this.dir=Ve,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(Ne){const{nzCopyable:Ve,nzEditable:ye,nzExpandable:yt,nzEllipsis:Mt,nzContent:Ke,nzEllipsisRows:B,nzSuffix:G}=Ne;(Ve||ye||yt||Mt||Ke||B||G)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()}}return ot.\u0275fac=function(Ne){return new(Ne||ot)(m.Y36(ce.jY),m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(m.s_b),m.Y36(m.Qsj),m.Y36(l.t4),m.Y36(C.wi),m.Y36(K.K0),m.Y36(Re.rI),m.Y36(r.Is,8))},ot.\u0275cmp=m.Xpm({type:ot,selectors:[["nz-typography"],["","nz-typography",""],["p","nz-paragraph",""],["span","nz-text",""],["h1","nz-title",""],["h2","nz-title",""],["h3","nz-title",""],["h4","nz-title",""]],viewQuery:function(Ne,Ve){if(1&Ne&&(m.Gf(Lt,5),m.Gf(ct,5),m.Gf(U,5),m.Gf(J,5),m.Gf(Me,5)),2&Ne){let ye;m.iGM(ye=m.CRH())&&(Ve.textEditRef=ye.first),m.iGM(ye=m.CRH())&&(Ve.textCopyRef=ye.first),m.iGM(ye=m.CRH())&&(Ve.ellipsisContainer=ye.first),m.iGM(ye=m.CRH())&&(Ve.expandableBtn=ye.first),m.iGM(ye=m.CRH())&&(Ve.contentTemplate=ye.first)}},hostVars:26,hostBindings:function(Ne,Ve){2&Ne&&(m.Udp("-webkit-line-clamp",Ve.canCssEllipsis&&Ve.nzEllipsisRows>1?Ve.nzEllipsisRows:null),m.ekj("ant-typography",!Ve.editing)("ant-typography-rtl","rtl"===Ve.dir)("ant-typography-edit-content",Ve.editing)("ant-typography-secondary","secondary"===Ve.nzType)("ant-typography-warning","warning"===Ve.nzType)("ant-typography-danger","danger"===Ve.nzType)("ant-typography-success","success"===Ve.nzType)("ant-typography-disabled",Ve.nzDisabled)("ant-typography-ellipsis",Ve.nzEllipsis&&!Ve.expanded)("ant-typography-single-line",Ve.nzEllipsis&&1===Ve.nzEllipsisRows)("ant-typography-ellipsis-single-line",Ve.canCssEllipsis&&1===Ve.nzEllipsisRows)("ant-typography-ellipsis-multiple-line",Ve.canCssEllipsis&&Ve.nzEllipsisRows>1))},inputs:{nzCopyable:"nzCopyable",nzEditable:"nzEditable",nzDisabled:"nzDisabled",nzExpandable:"nzExpandable",nzEllipsis:"nzEllipsis",nzCopyTooltips:"nzCopyTooltips",nzCopyIcons:"nzCopyIcons",nzEditTooltip:"nzEditTooltip",nzEditIcon:"nzEditIcon",nzContent:"nzContent",nzEllipsisRows:"nzEllipsisRows",nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange",nzOnEllipsis:"nzOnEllipsis"},exportAs:["nzTypography"],features:[m.TTD],ngContentSelectors:lt,decls:5,vars:3,consts:[["contentTemplate",""],[4,"ngIf"],[3,"text","icon","tooltip","endEditing","startEditing",4,"ngIf"],[3,"text","tooltips","icons","textCopy",4,"ngIf"],[4,"ngIf","ngIfElse"],["jsEllipsis",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["ellipsisContainer",""],["class","ant-typography-expand",3,"click",4,"ngIf"],[1,"ant-typography-expand",3,"click"],["expandable",""],[3,"text","icon","tooltip","endEditing","startEditing"],[3,"text","tooltips","icons","textCopy"]],template:function(Ne,Ve){1&Ne&&(m.F$t(),m.YNc(0,we,2,2,"ng-template",null,0,m.W1O),m.YNc(2,Ct,4,2,"ng-container",1),m.YNc(3,It,1,3,"nz-text-edit",2),m.YNc(4,Xe,1,3,"nz-text-copy",3)),2&Ne&&(m.xp6(2),m.Q6J("ngIf",!Ve.editing),m.xp6(1),m.Q6J("ngIf",Ve.nzEditable),m.xp6(1),m.Q6J("ngIf",Ve.nzCopyable&&!Ve.editing))},directives:[Lt,ct,K.O5,K.tP],encapsulation:2,changeDetection:0}),(0,ie.gn)([(0,Le.yF)()],ot.prototype,"nzCopyable",void 0),(0,ie.gn)([(0,Le.yF)()],ot.prototype,"nzEditable",void 0),(0,ie.gn)([(0,Le.yF)()],ot.prototype,"nzDisabled",void 0),(0,ie.gn)([(0,Le.yF)()],ot.prototype,"nzExpandable",void 0),(0,ie.gn)([(0,Le.yF)()],ot.prototype,"nzEllipsis",void 0),(0,ie.gn)([(0,ce.oS)()],ot.prototype,"nzCopyTooltips",void 0),(0,ie.gn)([(0,ce.oS)()],ot.prototype,"nzCopyIcons",void 0),(0,ie.gn)([(0,ce.oS)()],ot.prototype,"nzEditTooltip",void 0),(0,ie.gn)([(0,ce.oS)()],ot.prototype,"nzEditIcon",void 0),(0,ie.gn)([(0,ce.oS)(),(0,Le.Rn)()],ot.prototype,"nzEllipsisRows",void 0),ot})(),Et=(()=>{class ot{}return ot.\u0275fac=function(Ne){return new(Ne||ot)},ot.\u0275mod=m.oAB({type:ot}),ot.\u0275inj=m.cJS({imports:[[r.vT,K.ez,E.PV,w.cg,S.o7,C.YI,D,o.Iq,A.T],l.ud]}),ot})()},2160:(Ft,Pe,c)=>{c.d(Pe,{N:()=>l});var r=c(5e3),o=c(9808);let l=(()=>{class K{constructor(A,b){this.document=A,this.platformId=b,this.documentIsAccessible=(0,o.NF)(this.platformId)}static getCookieRegExp(A){const b=A.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+b+"|;\\s*"+b+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(A){try{return decodeURIComponent(A)}catch(b){return A}}check(A){return!!this.documentIsAccessible&&(A=encodeURIComponent(A),K.getCookieRegExp(A).test(this.document.cookie))}get(A){if(this.documentIsAccessible&&this.check(A)){A=encodeURIComponent(A);const D=K.getCookieRegExp(A).exec(this.document.cookie);return D[1]?K.safeDecodeURIComponent(D[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const A={},b=this.document;return b.cookie&&""!==b.cookie&&b.cookie.split(";").forEach(D=>{const[C,E]=D.split("=");A[K.safeDecodeURIComponent(C.replace(/^ /,""))]=K.safeDecodeURIComponent(E)}),A}set(A,b,D,C,E,S,w){if(!this.documentIsAccessible)return;if("number"==typeof D||D instanceof Date||C||E||S||w)return void this.set(A,b,{expires:D,path:C,domain:E,secure:S,sameSite:w||"Lax"});let z=encodeURIComponent(A)+"="+encodeURIComponent(b)+";";const M=D||{};M.expires&&(z+="number"==typeof M.expires?"expires="+new Date((new Date).getTime()+1e3*M.expires*60*60*24).toUTCString()+";":"expires="+M.expires.toUTCString()+";"),M.path&&(z+="path="+M.path+";"),M.domain&&(z+="domain="+M.domain+";"),!1===M.secure&&"None"===M.sameSite&&(M.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${A} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),M.secure&&(z+="secure;"),M.sameSite||(M.sameSite="Lax"),z+="sameSite="+M.sameSite+";",this.document.cookie=z}delete(A,b,D,C,E="Lax"){if(!this.documentIsAccessible)return;const S=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(A,"",{expires:S,path:b,domain:D,secure:C,sameSite:E})}deleteAll(A,b,D,C="Lax"){if(!this.documentIsAccessible)return;const E=this.getAll();for(const S in E)E.hasOwnProperty(S)&&this.delete(S,A,b,D,C)}}return K.\u0275fac=function(A){return new(A||K)(r.LFG(o.K0),r.LFG(r.Lbi))},K.\u0275prov=r.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},8298:(Ft,Pe,c)=>{c.d(Pe,{f9:()=>kt,Kf:()=>Ae,_z:()=>We});var r=c(520),o=c(5e3),l=c(1086),K=c(1737),m=c(3489);class b{constructor(It,Xe){this.count=It,this.source=Xe}call(It,Xe){return Xe.subscribe(new D(It,this.count,this.source))}}class D extends m.L{constructor(It,Xe,lt){super(It),this.count=Xe,this.source=lt}error(It){if(!this.isStopped){const{source:Xe,count:lt}=this;if(0===lt)return super.error(It);lt>-1&&(this.count=lt-1),Xe.subscribe(this._unsubscribeAndRecycle())}}}var C=c(2198),E=c(4850),S=c(5154),w=c(7221),z=c(2986),M={},k={};function N(Ct){for(var It=[],Xe=0,lt=0,ct=0;ct>>=1,It.push(Pt?0===lt?-2147483648:-lt:lt),lt=Xe=0}}return It}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(Ct,It){M[Ct]=It,k[It]=Ct});var ve=c(9808);const Le="TOKEN_LOGGER_CONFIG";class Re{constructor(It){this.config=this._clone(It)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}updateConfig(It){this.config=this._clone(It)}getConfig(){return this._clone(this.config)}_clone(It){const Xe={level:null};return Object.keys(It).forEach(lt=>{Xe[lt]=It[lt]}),Xe}}const ae="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY";class Ue{provideConfigEngine(It){return new Re(It)}}const He="TOKEN_LOGGER_MAPPER_SERVICE";let me=(()=>{class Ct{constructor(Xe){this.httpBackend=Xe,this.sourceMapCache=new Map,this.logPositionCache=new Map}getLogPosition(Xe,lt){const ct=this.getStackLine(Xe);if(!ct)return(0,l.of)({fileName:"",lineNumber:0,columnNumber:0});const Lt=this.getLocalPosition(ct);if(!Xe.enableSourceMaps)return(0,l.of)(Lt);const Ie=this.getSourceMapLocation(ct);return this.getSourceMap(Ie,Lt)}getStackLine(Xe){const lt=new Error;try{throw lt}catch(ct){try{let Lt=4;return lt.stack.split("\n")[0].includes(".js:")||(Lt+=1),lt.stack.split("\n")[Lt+(Xe.proxiedSteps||0)]}catch(Lt){return null}}}getLocalPosition(Xe){const lt=Xe.lastIndexOf("/");let ct=Xe.indexOf(")");ct<0&&(ct=void 0);const Ie=Xe.substring(lt+1,ct).split(":");return 3===Ie.length?{fileName:Ie[0],lineNumber:+Ie[1],columnNumber:+Ie[2]}:{fileName:"unknown",lineNumber:0,columnNumber:0}}getTranspileLocation(Xe){let lt=Xe.indexOf("(");lt<0&&(lt=Xe.lastIndexOf("@"),lt<0&&(lt=Xe.lastIndexOf(" ")));let ct=Xe.indexOf(")");return ct<0&&(ct=void 0),Xe.substring(lt+1,ct)}getSourceMapLocation(Xe){const lt=this.getTranspileLocation(Xe),ct=lt.substring(0,lt.lastIndexOf(":"));return ct.substring(0,ct.lastIndexOf(":"))+".map"}getMapping(Xe,lt){let ct=0,Lt=0,Ie=0;const Pt=Xe.mappings.split(";");for(let pt=0;pt=4&&(Et+=Ne[0],ct+=Ne[1],Lt+=Ne[2],Ie+=Ne[3]),pt===lt.lineNumber){if(Et===lt.columnNumber)return{fileName:Xe.sources[ct],lineNumber:Lt,columnNumber:Ie};if(en+1===ot.length)return{fileName:Xe.sources[ct],lineNumber:Lt,columnNumber:0}}}}return{fileName:"unknown",lineNumber:0,columnNumber:0}}getSourceMap(Xe,lt){const ct=new r.aW("GET",Xe),Lt=`${lt.fileName}:${lt.lineNumber}:${lt.columnNumber}`;if(this.logPositionCache.has(Lt))return this.logPositionCache.get(Lt);this.sourceMapCache.has(Xe)||(this.httpBackend?this.sourceMapCache.set(Xe,this.httpBackend.handle(ct).pipe((0,C.h)(Pt=>Pt instanceof r.Zn),(0,E.U)(Pt=>Pt.body),function A(Ct=-1){return It=>It.lift(new b(Ct,It))}(3),(0,S.d)(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(Xe,(0,l.of)(null))));const Ie=this.sourceMapCache.get(Xe).pipe((0,E.U)(Pt=>Pt?this.getMapping(Pt,lt):lt),(0,w.K)(()=>(0,l.of)(lt)),(0,S.d)(1));return this.logPositionCache.set(Lt,Ie),Ie}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(r.jN,8))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const fe="TOKEN_LOGGER_METADATA_SERVICE";let U=(()=>{class Ct{constructor(Xe){this.datePipe=Xe}getMetadata(Xe,lt,ct,Lt){const Ie={level:Xe,additional:Lt};return Ie.message=ct&&"function"==typeof ct?ct():ct,Ie.timestamp=lt.timestampFormat?this.datePipe.transform(new Date,lt.timestampFormat):(new Date).toISOString(),Ie}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(ve.uU))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const Me="TOKEN_LOGGER_RULES_SERVICE";let se=(()=>{class Ct{shouldCallWriter(Xe,lt,ct,Lt){return!lt.disableConsoleLogging&&Xe>=lt.level}shouldCallServer(Xe,lt,ct,Lt){return!!lt.serverLoggingUrl&&Xe>=lt.serverLogLevel}shouldCallMonitor(Xe,lt,ct,Lt){return this.shouldCallWriter(Xe,lt,ct,Lt)||this.shouldCallServer(Xe,lt,ct,Lt)}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const we="TOKEN_LOGGER_SERVER_SERVICE";let ue=(()=>{class Ct{constructor(Xe){this.httpBackend=Xe}secureErrorObject(Xe){return null==Xe?void 0:Xe.stack}secureAdditionalParameters(Xe){return null==Xe?null:Xe.map((lt,ct)=>{try{return lt instanceof Error?this.secureErrorObject(lt):("object"==typeof lt&&JSON.stringify(lt),lt)}catch(Lt){return`The additional[${ct}] value could not be parsed using JSON.stringify().`}})}secureMessage(Xe){try{if(Xe instanceof Error)return this.secureErrorObject(Xe);"string"!=typeof Xe&&(Xe=JSON.stringify(Xe,null,2))}catch(lt){Xe='The provided "message" value could not be parsed with JSON.stringify().'}return Xe}logOnServer(Xe,lt,ct){const Lt=new r.aW("POST",Xe,lt,ct||{});return this.httpBackend?this.httpBackend.handle(Lt).pipe((0,C.h)(Ie=>Ie instanceof r.Zn),(0,E.U)(Ie=>Ie.body)):(console.error("NGXLogger : Can't log on server because HttpBackend is not provided. You need to import HttpClientModule"),(0,l.of)(null))}customiseRequestBody(Xe){return Xe}sendToServer(Xe,lt){const ct=Object.assign({},Xe);ct.additional=this.secureAdditionalParameters(ct.additional),ct.message=this.secureMessage(ct.message);const Lt=this.customiseRequestBody(ct),Ie=lt.customHttpHeaders||new r.WM;Ie.has("Content-Type")||Ie.set("Content-Type","application/json"),this.logOnServer(lt.serverLoggingUrl,Lt,{headers:Ie,params:lt.customHttpParams||new r.LE,responseType:lt.httpResponseType||"json",withCredentials:lt.withCredentials||!1}).pipe((0,w.K)(Pt=>(console.error("NGXLogger: Failed to log on server",Pt),(0,K._)(Pt)))).subscribe()}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(r.jN,8))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const Ye="TOKEN_LOGGER_WRITER_SERVICE";var We=(()=>{return(Ct=We||(We={}))[Ct.TRACE=0]="TRACE",Ct[Ct.DEBUG=1]="DEBUG",Ct[Ct.INFO=2]="INFO",Ct[Ct.LOG=3]="LOG",Ct[Ct.WARN=4]="WARN",Ct[Ct.ERROR=5]="ERROR",Ct[Ct.FATAL=6]="FATAL",Ct[Ct.OFF=7]="OFF",We;var Ct})();const rt=["purple","teal","gray","gray","red","red","red"];let wt=(()=>{class Ct{constructor(Xe){this.platformId=Xe,this.isIE=(0,ve.NF)(Xe)&&navigator&&navigator.userAgent&&!(-1===navigator.userAgent.indexOf("MSIE")&&!navigator.userAgent.match(/Trident\//)&&!navigator.userAgent.match(/Edge\//)),this.logFunc=this.isIE?this.logIE.bind(this):this.logModern.bind(this)}prepareMetaString(Xe,lt){return`${Xe.timestamp} ${We[Xe.level]} ${!0===lt.disableFileDetails?"":`[${Xe.fileName}:${Xe.lineNumber}:${Xe.columnNumber}]`}`}getColor(Xe,lt){var ct;const Lt=null!==(ct=lt.colorScheme)&&void 0!==ct?ct:rt;if(Xe.level!==We.OFF)return Lt[Xe.level]}logIE(Xe,lt,ct){const Lt=Xe.additional||[];switch(Xe.level){case We.WARN:console.warn(`${ct} `,Xe.message,...Lt);break;case We.ERROR:case We.FATAL:console.error(`${ct} `,Xe.message,...Lt);break;case We.INFO:console.info(`${ct} `,Xe.message,...Lt);break;default:console.log(`${ct} `,Xe.message,...Lt)}}logModern(Xe,lt,ct){const Lt=this.getColor(Xe,lt),Ie=Xe.additional||[];switch(Xe.level){case We.WARN:console.warn(`%c${ct}`,`color:${Lt}`,Xe.message,...Ie);break;case We.ERROR:case We.FATAL:console.error(`%c${ct}`,`color:${Lt}`,Xe.message,...Ie);break;case We.INFO:console.info(`%c${ct}`,`color:${Lt}`,Xe.message,...Ie);break;case We.DEBUG:console.debug(`%c${ct}`,`color:${Lt}`,Xe.message,...Ie);break;default:console.log(`%c${ct}`,`color:${Lt}`,Xe.message,...Ie)}}writeMessage(Xe,lt){const ct=this.prepareMetaString(Xe,lt);this.logFunc(Xe,lt,ct)}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(o.Lbi))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})(),Ae=(()=>{class Ct{constructor(Xe,lt,ct,Lt,Ie,Pt,pt){this.metadataService=ct,this.ruleService=Lt,this.mapperService=Ie,this.writerService=Pt,this.serverService=pt,this.configEngine=lt.provideConfigEngine(Xe)}get level(){return this.configEngine.level}get serverLogLevel(){return this.configEngine.serverLogLevel}trace(Xe,...lt){this._log(We.TRACE,Xe,lt)}debug(Xe,...lt){this._log(We.DEBUG,Xe,lt)}info(Xe,...lt){this._log(We.INFO,Xe,lt)}log(Xe,...lt){this._log(We.LOG,Xe,lt)}warn(Xe,...lt){this._log(We.WARN,Xe,lt)}error(Xe,...lt){this._log(We.ERROR,Xe,lt)}fatal(Xe,...lt){this._log(We.FATAL,Xe,lt)}setCustomHttpHeaders(Xe){const lt=this.getConfigSnapshot();lt.customHttpHeaders=Xe,this.updateConfig(lt)}setCustomParams(Xe){const lt=this.getConfigSnapshot();lt.customHttpParams=Xe,this.updateConfig(lt)}setWithCredentialsOptionValue(Xe){const lt=this.getConfigSnapshot();lt.withCredentials=Xe,this.updateConfig(lt)}registerMonitor(Xe){this._loggerMonitor=Xe}updateConfig(Xe){this.configEngine.updateConfig(Xe)}getConfigSnapshot(){return this.configEngine.getConfig()}_log(Xe,lt,ct=[]){const Lt=this.configEngine.getConfig(),Ie=this.ruleService.shouldCallWriter(Xe,Lt,lt,ct),Pt=this.ruleService.shouldCallServer(Xe,Lt,lt,ct),pt=this.ruleService.shouldCallMonitor(Xe,Lt,lt,ct);if(!Ie&&!Pt&&!pt)return;const Et=this.metadataService.getMetadata(Xe,Lt,lt,ct);this.mapperService.getLogPosition(Lt,Et).pipe((0,z.q)(1)).subscribe(ot=>{ot&&(Et.fileName=ot.fileName,Et.lineNumber=ot.lineNumber,Et.columnNumber=ot.columnNumber),pt&&this._loggerMonitor&&this._loggerMonitor.onLog(Et,Lt),Ie&&this.writerService.writeMessage(Et,Lt),Pt&&this.serverService.sendToServer(Et,Lt)})}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(Le),o.LFG(ae),o.LFG(fe),o.LFG(Me),o.LFG(He),o.LFG(Ye),o.LFG(we))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})(),mt=(()=>{class Ct{constructor(Xe,lt,ct,Lt,Ie,Pt){this.configEngineFactory=Xe,this.metadataService=lt,this.ruleService=ct,this.mapperService=Lt,this.writerService=Ie,this.serverService=Pt}create(Xe,lt,ct,Lt){const Ie=new Ae(Xe,this.configEngineFactory,this.metadataService,this.ruleService,Lt||this.mapperService,this.writerService,lt||this.serverService);return ct&&Ie.registerMonitor(ct),Ie}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)(o.LFG(ae),o.LFG(fe),o.LFG(Me),o.LFG(He),o.LFG(Ye),o.LFG(we))},Ct.\u0275prov=o.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})(),kt=(()=>{class Ct{static forRoot(Xe,lt){if(lt||(lt={}),lt.configProvider){if(lt.configProvider.provide!==Le)throw new Error(`Wrong injection token for configProvider, it should be ${Le} and you used ${lt.configProvider.provide}`)}else lt.configProvider={provide:Le,useValue:Xe||{}};if(lt.configEngineFactoryProvider){if(lt.configEngineFactoryProvider.provide!==ae)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${ae}' and you used '${lt.configEngineFactoryProvider.provide}'`)}else lt.configEngineFactoryProvider={provide:ae,useClass:Ue};if(lt.metadataProvider){if(lt.metadataProvider.provide!==fe)throw new Error(`Wrong injection token for metadataProvider, it should be '${fe}' and you used '${lt.metadataProvider.provide}'`)}else lt.metadataProvider={provide:fe,useClass:U};if(lt.ruleProvider){if(lt.ruleProvider.provide!==Me)throw new Error(`Wrong injection token for ruleProvider, it should be '${Me}' and you used '${lt.ruleProvider.provide}'`)}else lt.ruleProvider={provide:Me,useClass:se};if(lt.mapperProvider){if(lt.mapperProvider.provide!==He)throw new Error(`Wrong injection token for mapperProvider, it should be '${He}' and you used '${lt.mapperProvider.provide}'`)}else lt.mapperProvider={provide:He,useClass:me};if(lt.writerProvider){if(lt.writerProvider.provide!==Ye)throw new Error(`Wrong injection token for writerProvider, it should be '${Ye}' and you used '${lt.writerProvider.provide}'`)}else lt.writerProvider={provide:Ye,useClass:wt};if(lt.serverProvider){if(lt.serverProvider.provide!==we)throw new Error(`Wrong injection token for serverProvider, it should be '${we}' and you used '${lt.writerProvider.provide}'`)}else lt.serverProvider={provide:we,useClass:ue};return{ngModule:Ct,providers:[Ae,lt.configProvider,lt.configEngineFactoryProvider,lt.metadataProvider,lt.ruleProvider,lt.mapperProvider,lt.writerProvider,lt.serverProvider,mt]}}static forChild(){return{ngModule:Ct}}}return Ct.\u0275fac=function(Xe){return new(Xe||Ct)},Ct.\u0275mod=o.oAB({type:Ct}),Ct.\u0275inj=o.cJS({providers:[ve.uU],imports:[[ve.ez]]}),Ct})()},4302:(Ft,Pe,c)=>{function l(me,fe){(null==fe||fe>me.length)&&(fe=me.length);for(var U=0,J=new Array(fe);UHe});var A=function(){return"function"==typeof Symbol},b=function(me){return A()&&Boolean(Symbol[me])},D=function(me){return b(me)?Symbol[me]:"@@"+me};A()&&!b("observable")&&(Symbol.observable=Symbol("observable"));var C=D("iterator"),E=D("observable"),S=D("species");function w(me,fe){var U=me[fe];if(null!=U){if("function"!=typeof U)throw new TypeError(U+" is not a function");return U}}function z(me){var fe=me.constructor;return void 0!==fe&&null===(fe=fe[S])&&(fe=void 0),void 0!==fe?fe:He}function k(me){k.log?k.log(me):setTimeout(function(){throw me})}function N(me){Promise.resolve().then(function(){try{me()}catch(fe){k(fe)}})}function ie(me){var fe=me._cleanup;if(void 0!==fe&&(me._cleanup=void 0,fe))try{if("function"==typeof fe)fe();else{var U=w(fe,"unsubscribe");U&&U.call(fe)}}catch(J){k(J)}}function ce(me){me._observer=void 0,me._queue=void 0,me._state="closed"}function Le(me,fe,U){me._state="running";var J=me._observer;try{var Me=w(J,fe);switch(fe){case"next":Me&&Me.call(J,U);break;case"error":if(ce(me),!Me)throw U;Me.call(J,U);break;case"complete":ce(me),Me&&Me.call(J)}}catch(se){k(se)}"closed"===me._state?ie(me):"running"===me._state&&(me._state="ready")}function Re(me,fe,U){if("closed"!==me._state){if("buffering"===me._state)return void me._queue.push({type:fe,value:U});if("ready"!==me._state)return me._state="buffering",me._queue=[{type:fe,value:U}],void N(function(){return function ve(me){var fe=me._queue;if(fe){me._queue=void 0,me._state="ready";for(var U=0;U1,ue=!1,Ye=arguments[1],We=Ye;return new se(function(rt){return Me.subscribe({next:function(wt){var Ae=!ue;if(ue=!0,!Ae||we)try{We=J(We,wt)}catch(mt){return rt.error(mt)}else We=wt},error:function(wt){rt.error(wt)},complete:function(){if(!ue&&!we)return rt.error(new TypeError("Cannot reduce an empty sequence"));rt.next(We),rt.complete()}})})},fe.concat=function(){for(var J=this,Me=arguments.length,se=new Array(Me),we=0;we=0&&ue.splice(Ae,1),We()}});ue.push(wt)},error:function(rt){we.error(rt)},complete:function(){We()}});function We(){Ye.closed&&0===ue.length&&we.complete()}return function(){ue.forEach(function(rt){return rt.unsubscribe()}),Ye.unsubscribe()}})},fe[E]=function(){return this},me.from=function(J){var Me="function"==typeof this?this:me;if(null==J)throw new TypeError(J+" is not an object");var se=w(J,E);if(se){var we=se.call(J);if(Object(we)!==we)throw new TypeError(we+" is not an object");return function M(me){return me instanceof He}(we)&&we.constructor===Me?we:new Me(function(ue){return we.subscribe(ue)})}if(b("iterator")&&(se=w(J,C)))return new Me(function(ue){N(function(){if(!ue.closed){for(var We,Ye=function r(me,fe){var U="undefined"!=typeof Symbol&&me[Symbol.iterator]||me["@@iterator"];if(U)return(U=U.call(me)).next.bind(U);if(Array.isArray(me)||(U=function o(me,fe){if(me){if("string"==typeof me)return l(me,fe);var U=Object.prototype.toString.call(me).slice(8,-1);if("Object"===U&&me.constructor&&(U=me.constructor.name),"Map"===U||"Set"===U)return Array.from(me);if("Arguments"===U||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return l(me,fe)}}(me))||fe&&me&&"number"==typeof me.length){U&&(me=U);var J=0;return function(){return J>=me.length?{done:!0}:{done:!1,value:me[J++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(se.call(J));!(We=Ye()).done;)if(ue.next(We.value),ue.closed)return;ue.complete()}})});if(Array.isArray(J))return new Me(function(ue){N(function(){if(!ue.closed){for(var Ye=0;Ye{Ft(Ft.s=2215)}]); \ No newline at end of file diff --git a/server/public/runtime.2fa38d3546d84168.js b/server/public/runtime.2fa38d3546d84168.js deleted file mode 100644 index 95b4cc581..000000000 --- a/server/public/runtime.2fa38d3546d84168.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var d=m[e]={exports:{}};return v[e](d,d.exports,a),d.exports}a.m=v,e=[],a.O=(t,d,c,n)=>{if(!d){var r=1/0;for(f=0;f=n)&&Object.keys(a.O).every(p=>a.O[p](d[b]))?d.splice(b--,1):(u=!1,n0&&e[f-1][2]>n;f--)e[f]=e[f-1];e[f]=[d,c,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var d in t)a.o(t,d)&&!a.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:t[d]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,d)=>(a.f[d](e,t),t),[])),a.u=e=>(8592===e?"common":e)+"."+{55:"ba71fd90dd4b7d35",79:"45fe3ea68943616b",305:"ecaea6e75949c224",376:"7d40cc5e50ad1ea4",392:"a049a6aab72fd2be",605:"96b969c7e87e0600",681:"507ad8cc8bfeed0c",775:"703c42969bc547c0",885:"804f55ce4225958b",1457:"519fd91650f6c554",1679:"15e17716906d9cee",1750:"ef738b35fad0c01c",2043:"7c7f493d3e460c95",2395:"68bf796d686227c0",2738:"9e4f1b8d15d1377a",2826:"58d99e896f2f009b",3021:"7c78e6391c41d18d",3073:"8d568bbec340ee7a",3074:"57e66fe8a4d34a20",3179:"ea3e6bc0a3ac79f8",3218:"c3517fe66324250b",3438:"4547ca58cf6ba4f4",3482:"0effe2652c710328",3501:"b1fe2600e6217dad",3648:"3b315459a2689166",3730:"ac4e30b97f660758",3883:"55b6fb276f141f05",3894:"018c5c978b2c0e0b",4024:"9ef20c158d4b219e",4038:"e12c5244226e28c0",4276:"08cec2ef34d7116e",4292:"431ce70ec225de05",4376:"d1c8d351b50a66d5",4456:"170972231c6912d9",4579:"221a4086674a9f5c",4658:"e20841b6eacdd605",4721:"c2e56ff842a0cd32",4729:"9aac9fade23b2a04",5193:"079fc90b586abf32",5787:"5ff21f0a9c6baf5f",6256:"28967a1cf9c2f744",6303:"39a638159b50f07b",6519:"60c53bbe3f288f8c",7064:"584260498fd7f7a1",7259:"5cb9a32d5c87028f",7559:"a5a35b67a5a564b7",7598:"72692bbf9e6a5d2a",7717:"a81202fba78291a9",8422:"0298b53dd3400950",8482:"43089493207c0c97",8571:"5eda17590c08c24e",8592:"acceea69d48490b4",8776:"ed869c164e41c284",9001:"783bec1be99695ec",9020:"4668e5b29104dae0",9081:"0ab72e89b7403f00",9286:"0271474b4e5106b0",9484:"aee7e3e6cb2747e5",9636:"8eed820d942857de",9890:"3c50bc91546fa679"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(d,c,n,f)=>{if(e[d])e[d].push(c);else{var r,u;if(void 0!==n)for(var b=document.getElementsByTagName("script"),o=0;o{r.onerror=r.onload=null,clearTimeout(s);var _=e[d];if(delete e[d],r.parentNode&&r.parentNode.removeChild(r),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),u&&document.head.appendChild(r)}}})(),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tu=t=>(void 0===e&&(e={createScriptURL:d=>d},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(t))})(),a.p="",(()=>{var e={3666:0};a.f.j=(c,n)=>{var f=a.o(e,c)?e[c]:void 0;if(0!==f)if(f)n.push(f[2]);else if(3666!=c){var r=new Promise((i,l)=>f=e[c]=[i,l]);n.push(f[2]=r);var u=a.p+a.u(c),b=new Error;a.l(u,i=>{if(a.o(e,c)&&(0!==(f=e[c])&&(e[c]=void 0),f)){var l=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;b.message="Loading chunk "+c+" failed.\n("+l+": "+s+")",b.name="ChunkLoadError",b.type=l,b.request=s,f[1](b)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var t=(c,n)=>{var b,o,[f,r,u]=n,i=0;if(f.some(s=>0!==e[s])){for(b in r)a.o(r,b)&&(a.m[b]=r[b]);if(u)var l=u(a)}for(c&&c(n);i{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var d=m[e]={exports:{}};return v[e](d,d.exports,a),d.exports}a.m=v,e=[],a.O=(t,d,c,b)=>{if(!d){var f=1/0;for(r=0;r=b)&&Object.keys(a.O).every(p=>a.O[p](d[n]))?d.splice(n--,1):(u=!1,b0&&e[r-1][2]>b;r--)e[r]=e[r-1];e[r]=[d,c,b]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var d in t)a.o(t,d)&&!a.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:t[d]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,d)=>(a.f[d](e,t),t),[])),a.u=e=>(8592===e?"common":e)+"."+{55:"ba71fd90dd4b7d35",79:"88f59fde8cf78eea",305:"ecaea6e75949c224",376:"7d40cc5e50ad1ea4",392:"a049a6aab72fd2be",605:"0b7e1919acad6432",681:"80f46e569d77955f",775:"703c42969bc547c0",885:"804f55ce4225958b",1457:"91c95cefa3cfff40",1679:"15e17716906d9cee",1750:"ef738b35fad0c01c",2033:"98c7d970352312a5",2043:"7c7f493d3e460c95",2395:"68bf796d686227c0",2738:"9e4f1b8d15d1377a",2826:"58d99e896f2f009b",3073:"8d568bbec340ee7a",3074:"57e66fe8a4d34a20",3218:"9a2a6eae0aa809aa",3438:"4547ca58cf6ba4f4",3482:"ed6f7f94eb7c422d",3501:"b1fe2600e6217dad",3648:"3b315459a2689166",3730:"7141625c22d9cd58",3883:"55b6fb276f141f05",3894:"018c5c978b2c0e0b",4024:"5e7368279f79aeb4",4038:"e12c5244226e28c0",4276:"08cec2ef34d7116e",4292:"73f4c12168601c38",4456:"170972231c6912d9",4579:"221a4086674a9f5c",4584:"94bce0e7cd7772b3",4658:"0b2f1cd78524e647",4721:"c2e56ff842a0cd32",4729:"9aac9fade23b2a04",5193:"079fc90b586abf32",5632:"b4048d1a94cb9e29",5787:"6afd9133542c6e90",6256:"28967a1cf9c2f744",6303:"e5fe598bc8a5dfd2",6519:"60c53bbe3f288f8c",6875:"9a3f371a86467784",7012:"f719422393652a3a",7064:"584260498fd7f7a1",7259:"5cb9a32d5c87028f",7559:"f6ca9a429933f621",7717:"a81202fba78291a9",7893:"09cc89d441456629",8422:"0298b53dd3400950",8482:"43089493207c0c97",8571:"600728d2995f4bfc",8592:"0319ec8b62184fc2",9001:"783bec1be99695ec",9020:"4a98dc48a9af4544",9286:"0271474b4e5106b0",9484:"eba4a2cb1d41b5d4",9636:"fb2df4966b3986b1",9890:"3c50bc91546fa679"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(d,c,b,r)=>{if(e[d])e[d].push(c);else{var f,u;if(void 0!==b)for(var n=document.getElementsByTagName("script"),o=0;o{f.onerror=f.onload=null,clearTimeout(s);var _=e[d];if(delete e[d],f.parentNode&&f.parentNode.removeChild(f),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),u&&document.head.appendChild(f)}}})(),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tu=t=>(void 0===e&&(e={createScriptURL:d=>d},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(t))})(),a.p="",(()=>{var e={3666:0};a.f.j=(c,b)=>{var r=a.o(e,c)?e[c]:void 0;if(0!==r)if(r)b.push(r[2]);else if(3666!=c){var f=new Promise((i,l)=>r=e[c]=[i,l]);b.push(r[2]=f);var u=a.p+a.u(c),n=new Error;a.l(u,i=>{if(a.o(e,c)&&(0!==(r=e[c])&&(e[c]=void 0),r)){var l=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;n.message="Loading chunk "+c+" failed.\n("+l+": "+s+")",n.name="ChunkLoadError",n.type=l,n.request=s,r[1](n)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var t=(c,b)=>{var n,o,[r,f,u]=b,i=0;if(r.some(s=>0!==e[s])){for(n in f)a.o(f,n)&&(a.m[n]=f[n]);if(u)var l=u(a)}for(c&&c(b);i